yuyeon 0.0.47-rc.8 → 0.0.47
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/yuyeon.js +3034 -2920
- package/dist/yuyeon.umd.cjs +6 -6
- package/lib/components/button/YButton.mjs +3 -2
- package/lib/components/button/YButton.mjs.map +1 -1
- package/lib/components/dialog/YDialog.mjs +25 -0
- package/lib/components/dialog/YDialog.mjs.map +1 -1
- package/lib/components/dropdown/YDropdown.mjs +5 -1
- package/lib/components/dropdown/YDropdown.mjs.map +1 -1
- package/lib/components/field-input/YFieldInput.mjs +8 -11
- package/lib/components/field-input/YFieldInput.mjs.map +1 -1
- package/lib/components/form/YForm.mjs +53 -68
- package/lib/components/form/YForm.mjs.map +1 -1
- package/lib/components/hover/YHover.mjs +47 -0
- package/lib/components/hover/YHover.mjs.map +1 -0
- package/lib/components/input/YInput.mjs +22 -18
- package/lib/components/input/YInput.mjs.map +1 -1
- package/lib/components/layer/base.mjs +9 -5
- package/lib/components/layer/base.mjs.map +1 -1
- package/lib/components/table/YDataTable.mjs +5 -2
- package/lib/components/table/YDataTable.mjs.map +1 -1
- package/lib/components/table/YDataTableBody.mjs +2 -1
- package/lib/components/table/YDataTableBody.mjs.map +1 -1
- package/lib/components/table/YDataTableRow.mjs +2 -1
- package/lib/components/table/YDataTableRow.mjs.map +1 -1
- package/lib/components/table/YDataTableServer.mjs +3 -1
- package/lib/components/table/YDataTableServer.mjs.map +1 -1
- package/lib/components/table/YTable.mjs +10 -3
- package/lib/components/table/YTable.mjs.map +1 -1
- package/lib/components/table/composibles/selection.mjs +11 -2
- package/lib/components/table/composibles/selection.mjs.map +1 -1
- package/lib/components/textarea/YTextarea.mjs +2 -8
- package/lib/components/textarea/YTextarea.mjs.map +1 -1
- package/lib/composables/communication.mjs.map +1 -1
- package/lib/composables/form.mjs +100 -0
- package/lib/composables/form.mjs.map +1 -0
- package/lib/composables/timing.mjs +27 -0
- package/lib/composables/timing.mjs.map +1 -1
- package/lib/composables/validation.mjs +26 -1
- package/lib/composables/validation.mjs.map +1 -1
- package/lib/index.mjs +6 -1
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
- package/types/components/checkbox/YCheckbox.d.ts +2 -2
- package/types/components/checkbox/YInputCheckbox.d.ts +2 -2
- package/types/components/dialog/YDialog.d.ts +7 -0
- package/types/components/dropdown/YDropdown.d.ts +11 -2
- package/types/components/field-input/YFieldInput.d.ts +11 -7
- package/types/components/form/YForm.d.ts +32 -23
- package/types/components/input/YInput.d.ts +17 -20
- package/types/components/select/YSelect.d.ts +7 -0
- package/types/components/table/YDataTable.d.ts +29 -0
- package/types/components/table/YDataTableRow.d.ts +7 -0
- package/types/components/table/YDataTableServer.d.ts +27 -0
- package/types/components/table/YTable.d.ts +11 -2
- package/types/components/table/composibles/selection.d.ts +13 -0
- package/types/components/textarea/YTextarea.d.ts +21 -45
- package/types/composables/communication.d.ts +1 -1
- package/types/composables/form.d.ts +126 -0
- package/types/composables/timing.d.ts +4 -0
- package/types/composables/validation.d.ts +6 -0
- package/types/index.d.ts +1 -0
package/lib/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["nextTick","reactive","components","YUYEON_DATE_KEY","YUYEON_DATE_OPTIONS_KEY","createDateModule","createI18nModule","YUYEON_I18N_KEY","YUYEON_THEME_KEY","createThemeModule","useTheme","PlateWave","YUYEON_LOGO","createIconModule","YUYEON_ICON_KEY","defaultOptions","credit","init","options","arguments","length","undefined","themeModule","theme","i18nModule","i18n","dateModule","date","localeModule","iconModule","icon","install","app","yuyeon","root","instance","rtlModule","Object","keys","forEach","componentName","comp","component","directive","provide","config","globalProperties","$yuyeon","_instance","_container","Error","$el","classList","add","setAttribute","console","log","unmount","scope","stop"],"sources":["../src/index.ts"],"sourcesContent":["import { Component, ComponentInternalInstance } from '@vue/runtime-core';\r\nimport type { App } from 'vue';\r\nimport { nextTick, reactive } from 'vue';\r\n\r\nimport * as components from './components';\r\nimport {\r\n YUYEON_DATE_KEY,\r\n YUYEON_DATE_OPTIONS_KEY,\r\n createDateModule,\r\n} from './composables/date';\r\nimport { createI18nModule } from './composables/i18n';\r\nimport { YUYEON_I18N_KEY } from './composables/i18n/share';\r\nimport {\r\n YUYEON_THEME_KEY,\r\n createThemeModule,\r\n useTheme,\r\n} from './composables/theme';\r\nimport PlateWave from './directives/plate-wave';\r\nimport { YUYEON_LOGO } from './etc';\r\n\r\n//\r\nimport './styles/base.scss';\r\nimport {createIconModule, YUYEON_ICON_KEY} from \"./composables/icon\";\r\n\r\nconst defaultOptions = {\r\n credit: true,\r\n};\r\n\r\ndeclare module 'vue' {\r\n interface ComponentCustomProperties {\r\n $yuyeon: any;\r\n }\r\n}\r\n\r\nexport function init(options: any = defaultOptions) {\r\n const themeModule = createThemeModule(options?.theme);\r\n const i18nModule = createI18nModule(options?.i18n);\r\n const dateModule = createDateModule(options?.date, i18nModule.localeModule);\r\n const iconModule = createIconModule(options?.icon);\r\n const install = (app: App): any => {\r\n themeModule.install(app);\r\n\r\n const yuyeon = reactive({\r\n app: null as ComponentInternalInstance | null,\r\n root: null as HTMLElement | null,\r\n theme: themeModule.instance,\r\n i18n: {\r\n ...i18nModule.localeModule,\r\n ...i18nModule.rtlModule,\r\n },\r\n date: dateModule,\r\n });\r\n\r\n Object.keys(components).forEach((componentName) => {\r\n const comp = components[componentName as keyof typeof components];\r\n app.component(componentName, comp as Component);\r\n });\r\n\r\n app.directive('plate-wave', PlateWave);\r\n\r\n app.provide(YUYEON_THEME_KEY, themeModule.instance);\r\n app.provide(YUYEON_ICON_KEY, iconModule);\r\n app.provide(YUYEON_I18N_KEY, {\r\n ...i18nModule.localeModule,\r\n ...i18nModule.rtlModule,\r\n });\r\n app.provide(YUYEON_DATE_OPTIONS_KEY, dateModule.options);\r\n app.provide(YUYEON_DATE_KEY, dateModule.instance);\r\n\r\n app.config.globalProperties.$yuyeon = yuyeon;\r\n\r\n nextTick(() => {\r\n yuyeon.app = app._instance as any;\r\n yuyeon.root = app._container;\r\n if (!yuyeon.root) {\r\n throw new Error(`yuyeon: Can't found instance`);\r\n }\r\n const $el = yuyeon.root;\r\n $el.classList.add('y-root');\r\n $el.setAttribute('data-y-root', '');\r\n themeModule.init(yuyeon);\r\n });\r\n if (options?.credit) {\r\n console.log(YUYEON_LOGO);\r\n }\r\n const { unmount } = app;\r\n app.unmount = () => {\r\n unmount();\r\n themeModule.scope.stop();\r\n app.unmount = unmount;\r\n };\r\n };\r\n\r\n return {\r\n install,\r\n };\r\n}\r\n\r\nexport { useTheme };\r\n"],"mappings":"AAEA,SAASA,QAAQ,EAAEC,QAAQ,QAAQ,KAAK;AAAC,
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["getCurrentInstance","nextTick","reactive","components","YUYEON_DATE_KEY","YUYEON_DATE_OPTIONS_KEY","createDateModule","createI18nModule","YUYEON_I18N_KEY","YUYEON_THEME_KEY","createThemeModule","useTheme","PlateWave","YUYEON_LOGO","createIconModule","YUYEON_ICON_KEY","defaultOptions","credit","init","options","arguments","length","undefined","themeModule","theme","i18nModule","i18n","dateModule","date","localeModule","iconModule","icon","install","app","yuyeon","root","instance","rtlModule","Object","keys","forEach","componentName","comp","component","directive","provide","config","globalProperties","$yuyeon","_instance","_container","Error","$el","classList","add","setAttribute","console","log","unmount","scope","stop","useYuyeon","vm","appContext"],"sources":["../src/index.ts"],"sourcesContent":["import { Component, ComponentInternalInstance } from '@vue/runtime-core';\r\nimport type { App } from 'vue';\r\nimport { getCurrentInstance, nextTick, reactive } from 'vue';\r\n\r\nimport * as components from './components';\r\nimport {\r\n YUYEON_DATE_KEY,\r\n YUYEON_DATE_OPTIONS_KEY,\r\n createDateModule,\r\n} from './composables/date';\r\nimport { createI18nModule } from './composables/i18n';\r\nimport { YUYEON_I18N_KEY } from './composables/i18n/share';\r\nimport {\r\n YUYEON_THEME_KEY,\r\n createThemeModule,\r\n useTheme,\r\n} from './composables/theme';\r\nimport PlateWave from './directives/plate-wave';\r\nimport { YUYEON_LOGO } from './etc';\r\n\r\n//\r\nimport './styles/base.scss';\r\nimport {createIconModule, YUYEON_ICON_KEY} from \"./composables/icon\";\r\n\r\nconst defaultOptions = {\r\n credit: true,\r\n};\r\n\r\ndeclare module 'vue' {\r\n interface ComponentCustomProperties {\r\n $yuyeon: any;\r\n }\r\n}\r\n\r\nexport function init(options: any = defaultOptions) {\r\n const themeModule = createThemeModule(options?.theme);\r\n const i18nModule = createI18nModule(options?.i18n);\r\n const dateModule = createDateModule(options?.date, i18nModule.localeModule);\r\n const iconModule = createIconModule(options?.icon);\r\n const install = (app: App): any => {\r\n themeModule.install(app);\r\n\r\n const yuyeon = reactive({\r\n app: null as ComponentInternalInstance | null,\r\n root: null as HTMLElement | null,\r\n theme: themeModule.instance,\r\n i18n: {\r\n ...i18nModule.localeModule,\r\n ...i18nModule.rtlModule,\r\n },\r\n date: dateModule,\r\n });\r\n\r\n Object.keys(components).forEach((componentName) => {\r\n const comp = components[componentName as keyof typeof components];\r\n app.component(componentName, comp as Component);\r\n });\r\n\r\n app.directive('plate-wave', PlateWave);\r\n\r\n app.provide(YUYEON_THEME_KEY, themeModule.instance);\r\n app.provide(YUYEON_ICON_KEY, iconModule);\r\n app.provide(YUYEON_I18N_KEY, {\r\n ...i18nModule.localeModule,\r\n ...i18nModule.rtlModule,\r\n });\r\n app.provide(YUYEON_DATE_OPTIONS_KEY, dateModule.options);\r\n app.provide(YUYEON_DATE_KEY, dateModule.instance);\r\n\r\n app.config.globalProperties.$yuyeon = yuyeon;\r\n\r\n nextTick(() => {\r\n yuyeon.app = app._instance as any;\r\n yuyeon.root = app._container;\r\n if (!yuyeon.root) {\r\n throw new Error(`yuyeon: Can't found instance`);\r\n }\r\n const $el = yuyeon.root;\r\n $el.classList.add('y-root');\r\n $el.setAttribute('data-y-root', '');\r\n themeModule.init(yuyeon);\r\n });\r\n if (options?.credit) {\r\n console.log(YUYEON_LOGO);\r\n }\r\n const { unmount } = app;\r\n app.unmount = () => {\r\n unmount();\r\n themeModule.scope.stop();\r\n app.unmount = unmount;\r\n };\r\n };\r\n\r\n return {\r\n install,\r\n };\r\n}\r\n\r\nexport function useYuyeon() {\r\n const vm = getCurrentInstance();\r\n if (!vm) throw new Error('[yuyeon] Called outside of setup context');\r\n\r\n return vm.appContext.config.globalProperties.$yuyeon;\r\n}\r\n\r\nexport { useTheme };\r\n"],"mappings":"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"}
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@ export declare const YCheckbox: import("vue").DefineComponent<{
|
|
|
18
18
|
readonly: PropType<boolean>;
|
|
19
19
|
}, {
|
|
20
20
|
checked: import("vue").Ref<boolean>;
|
|
21
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "
|
|
21
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "blur" | "focus" | "update:modelValue" | "change")[], "click" | "blur" | "focus" | "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
22
|
modelValue: PropType<boolean | any[]>;
|
|
23
23
|
value: PropType<any>;
|
|
24
24
|
label: PropType<string>;
|
|
@@ -37,8 +37,8 @@ export declare const YCheckbox: import("vue").DefineComponent<{
|
|
|
37
37
|
readonly: PropType<boolean>;
|
|
38
38
|
}>> & {
|
|
39
39
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
40
|
-
onFocus?: ((...args: any[]) => any) | undefined;
|
|
41
40
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
41
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
|
42
42
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
43
43
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
44
44
|
}, {
|
|
@@ -34,7 +34,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
34
34
|
onFocus(e: FocusEvent): void;
|
|
35
35
|
onBlur(e: FocusEvent): void;
|
|
36
36
|
onClick(event: MouseEvent): void;
|
|
37
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "
|
|
37
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "blur" | "focus")[], "click" | "blur" | "focus", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
38
38
|
id: PropType<string>;
|
|
39
39
|
value: PropType<boolean>;
|
|
40
40
|
icon: PropType<string>;
|
|
@@ -46,8 +46,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
46
46
|
readonly: PropType<boolean>;
|
|
47
47
|
}>> & {
|
|
48
48
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
49
|
-
onFocus?: ((...args: any[]) => any) | undefined;
|
|
50
49
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
50
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
|
51
51
|
}, {
|
|
52
52
|
color: string;
|
|
53
53
|
}, {}>;
|
|
@@ -28,6 +28,7 @@ export declare const pressYDialogPropsOptions: <Defaults extends {
|
|
|
28
28
|
persistent?: unknown;
|
|
29
29
|
dialogClasses?: unknown;
|
|
30
30
|
maximized?: unknown;
|
|
31
|
+
focusTrap?: unknown;
|
|
31
32
|
offset?: unknown;
|
|
32
33
|
} = {}>(defaults?: Defaults | undefined) => {
|
|
33
34
|
disabled: unknown extends Defaults["disabled"] ? {
|
|
@@ -260,6 +261,10 @@ export declare const pressYDialogPropsOptions: <Defaults extends {
|
|
|
260
261
|
type: PropType<unknown extends Defaults["maximized"] ? boolean : boolean | Defaults["maximized"]>;
|
|
261
262
|
default: unknown extends Defaults["maximized"] ? boolean : boolean | Defaults["maximized"];
|
|
262
263
|
};
|
|
264
|
+
focusTrap: unknown extends Defaults["focusTrap"] ? PropType<string | false | string[] | HTMLElement> : {
|
|
265
|
+
type: PropType<unknown extends Defaults["focusTrap"] ? string | false | string[] | HTMLElement : Defaults["focusTrap"] | NonNullable<string | false | string[] | HTMLElement>>;
|
|
266
|
+
default: unknown extends Defaults["focusTrap"] ? string | false | string[] | HTMLElement : Defaults["focusTrap"] | NonNullable<string | false | string[] | HTMLElement>;
|
|
267
|
+
};
|
|
263
268
|
offset: unknown extends Defaults["offset"] ? {
|
|
264
269
|
type: PropType<string>;
|
|
265
270
|
} : Omit<{
|
|
@@ -353,6 +358,7 @@ export declare const YDialog: import("vue").DefineComponent<{
|
|
|
353
358
|
type: PropType<string | string[] | Record<string, any>>;
|
|
354
359
|
};
|
|
355
360
|
maximized: PropType<boolean>;
|
|
361
|
+
focusTrap: PropType<string | false | string[] | HTMLElement>;
|
|
356
362
|
offset: {
|
|
357
363
|
type: PropType<string>;
|
|
358
364
|
};
|
|
@@ -2217,6 +2223,7 @@ export declare const YDialog: import("vue").DefineComponent<{
|
|
|
2217
2223
|
type: PropType<string | string[] | Record<string, any>>;
|
|
2218
2224
|
};
|
|
2219
2225
|
maximized: PropType<boolean>;
|
|
2226
|
+
focusTrap: PropType<string | false | string[] | HTMLElement>;
|
|
2220
2227
|
offset: {
|
|
2221
2228
|
type: PropType<string>;
|
|
2222
2229
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
1
|
+
import { PropType, SlotsType } from 'vue';
|
|
2
2
|
import { YIconIconProp } from '../icon';
|
|
3
3
|
export declare const pressYDropdownPropsOptions: <Defaults extends {
|
|
4
4
|
items?: unknown;
|
|
@@ -237,4 +237,13 @@ export declare const YDropdown: import("vue").DefineComponent<{
|
|
|
237
237
|
itemText: string;
|
|
238
238
|
itemChildren: string | boolean;
|
|
239
239
|
dropdownIcon: YIconIconProp;
|
|
240
|
-
}, {
|
|
240
|
+
}, SlotsType<{
|
|
241
|
+
base: any;
|
|
242
|
+
default: any;
|
|
243
|
+
'dropdown-icon': any;
|
|
244
|
+
menu: any;
|
|
245
|
+
item: {
|
|
246
|
+
text: string;
|
|
247
|
+
item: any;
|
|
248
|
+
};
|
|
249
|
+
}>>;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { PropType, SlotsType } from 'vue';
|
|
2
|
+
import { YInputDefaultSlotProps } from '../input';
|
|
2
3
|
export declare const pressYFieldInputPropsOptions: <Defaults extends {
|
|
4
|
+
extended?: unknown;
|
|
3
5
|
focused?: unknown;
|
|
4
6
|
'onUpdate:focused'?: unknown;
|
|
5
7
|
readonly?: unknown;
|
|
@@ -33,6 +35,10 @@ export declare const pressYFieldInputPropsOptions: <Defaults extends {
|
|
|
33
35
|
tabindex?: unknown;
|
|
34
36
|
type?: unknown;
|
|
35
37
|
} = {}>(defaults?: Defaults | undefined) => {
|
|
38
|
+
extended: unknown extends Defaults["extended"] ? PropType<any> : {
|
|
39
|
+
type: PropType<unknown extends Defaults["extended"] ? any : any>;
|
|
40
|
+
default: unknown extends Defaults["extended"] ? any : any;
|
|
41
|
+
};
|
|
36
42
|
focused: unknown extends Defaults["focused"] ? BooleanConstructor : {
|
|
37
43
|
type: PropType<unknown extends Defaults["focused"] ? boolean : boolean | Defaults["focused"]>;
|
|
38
44
|
default: unknown extends Defaults["focused"] ? boolean : boolean | Defaults["focused"];
|
|
@@ -229,6 +235,7 @@ export declare const pressYFieldInputPropsOptions: <Defaults extends {
|
|
|
229
235
|
};
|
|
230
236
|
};
|
|
231
237
|
export declare const YFieldInput: import("vue").DefineComponent<{
|
|
238
|
+
extended: PropType<any>;
|
|
232
239
|
focused: BooleanConstructor;
|
|
233
240
|
'onUpdate:focused': PropType<(v: boolean) => void>;
|
|
234
241
|
readonly: PropType<boolean>;
|
|
@@ -299,7 +306,8 @@ export declare const YFieldInput: import("vue").DefineComponent<{
|
|
|
299
306
|
readonly rxValue: any;
|
|
300
307
|
};
|
|
301
308
|
inValue: any;
|
|
302
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "
|
|
309
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "input" | "blur" | "focus" | "mousedown" | "mouseup" | "mousedown:display" | "update:modelValue" | "update:focused" | "change" | "keydown" | "keyup")[], "click" | "input" | "blur" | "focus" | "mousedown" | "mouseup" | "mousedown:display" | "update:modelValue" | "update:focused" | "change" | "keydown" | "keyup", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
310
|
+
extended: PropType<any>;
|
|
303
311
|
focused: BooleanConstructor;
|
|
304
312
|
'onUpdate:focused': PropType<(v: boolean) => void>;
|
|
305
313
|
readonly: PropType<boolean>;
|
|
@@ -368,10 +376,10 @@ export declare const YFieldInput: import("vue").DefineComponent<{
|
|
|
368
376
|
}>> & {
|
|
369
377
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
370
378
|
"onUpdate:focused"?: ((...args: any[]) => any) | undefined;
|
|
379
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
|
371
380
|
onFocus?: ((...args: any[]) => any) | undefined;
|
|
372
381
|
onMousedown?: ((...args: any[]) => any) | undefined;
|
|
373
382
|
onMouseup?: ((...args: any[]) => any) | undefined;
|
|
374
|
-
onBlur?: ((...args: any[]) => any) | undefined;
|
|
375
383
|
"onMousedown:display"?: ((...args: any[]) => any) | undefined;
|
|
376
384
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
377
385
|
onInput?: ((...args: any[]) => any) | undefined;
|
|
@@ -392,11 +400,7 @@ export declare const YFieldInput: import("vue").DefineComponent<{
|
|
|
392
400
|
prepend: any;
|
|
393
401
|
append: any;
|
|
394
402
|
label: any;
|
|
395
|
-
default:
|
|
396
|
-
value: any;
|
|
397
|
-
formLoading: boolean;
|
|
398
|
-
attrId: string;
|
|
399
|
-
};
|
|
403
|
+
default: YInputDefaultSlotProps;
|
|
400
404
|
leading: {
|
|
401
405
|
error: boolean;
|
|
402
406
|
};
|
|
@@ -1,32 +1,41 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SubmitEventPromise } from '../../composables/form';
|
|
2
2
|
export declare const YForm: import("vue").DefineComponent<{
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
readonly: BooleanConstructor;
|
|
4
|
+
disabled: BooleanConstructor;
|
|
5
|
+
loading: BooleanConstructor;
|
|
6
|
+
modelValue: {
|
|
7
|
+
type: import("vue").PropType<boolean | null>;
|
|
8
|
+
default: null;
|
|
9
|
+
};
|
|
10
|
+
validateOn: {
|
|
11
|
+
type: import("vue").PropType<string>;
|
|
5
12
|
default: string;
|
|
6
|
-
validator(value: string): boolean;
|
|
7
13
|
};
|
|
14
|
+
}, void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
|
+
'update:modelValue': (val: boolean | null) => true;
|
|
16
|
+
submit: (e: SubmitEventPromise) => true;
|
|
17
|
+
'keydown.enter': (e: Event) => true;
|
|
18
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
|
+
readonly: BooleanConstructor;
|
|
20
|
+
disabled: BooleanConstructor;
|
|
8
21
|
loading: BooleanConstructor;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
register(component: any): void;
|
|
16
|
-
unregister(component: any): void;
|
|
17
|
-
validate(): boolean;
|
|
18
|
-
}, import("vue").DefineComponent<{}, {}, {
|
|
19
|
-
attrs_$: any;
|
|
20
|
-
listeners_$: any;
|
|
21
|
-
}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
|
-
tag: {
|
|
23
|
-
type: PropType<string>;
|
|
22
|
+
modelValue: {
|
|
23
|
+
type: import("vue").PropType<boolean | null>;
|
|
24
|
+
default: null;
|
|
25
|
+
};
|
|
26
|
+
validateOn: {
|
|
27
|
+
type: import("vue").PropType<string>;
|
|
24
28
|
default: string;
|
|
25
|
-
validator(value: string): boolean;
|
|
26
29
|
};
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
+
}>> & {
|
|
31
|
+
"onUpdate:modelValue"?: ((val: boolean | null) => any) | undefined;
|
|
32
|
+
onSubmit?: ((e: SubmitEventPromise) => any) | undefined;
|
|
33
|
+
"onKeydown.enter"?: ((e: Event) => any) | undefined;
|
|
34
|
+
}, {
|
|
35
|
+
disabled: boolean;
|
|
30
36
|
loading: boolean;
|
|
37
|
+
modelValue: boolean | null;
|
|
38
|
+
validateOn: string;
|
|
39
|
+
readonly: boolean;
|
|
31
40
|
}, {}>;
|
|
32
41
|
export type YForm = InstanceType<typeof YForm>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { PropType, SlotsType
|
|
1
|
+
import { PropType, SlotsType } from 'vue';
|
|
2
2
|
export declare const pressYInputPropsOptions: <Defaults extends {
|
|
3
|
+
extended?: unknown;
|
|
3
4
|
focused?: unknown;
|
|
4
5
|
'onUpdate:focused'?: unknown;
|
|
5
6
|
readonly?: unknown;
|
|
@@ -27,6 +28,10 @@ export declare const pressYInputPropsOptions: <Defaults extends {
|
|
|
27
28
|
filled?: unknown;
|
|
28
29
|
ceramic?: unknown;
|
|
29
30
|
} = {}>(defaults?: Defaults | undefined) => {
|
|
31
|
+
extended: unknown extends Defaults["extended"] ? PropType<any> : {
|
|
32
|
+
type: PropType<unknown extends Defaults["extended"] ? any : any>;
|
|
33
|
+
default: unknown extends Defaults["extended"] ? any : any;
|
|
34
|
+
};
|
|
30
35
|
focused: unknown extends Defaults["focused"] ? BooleanConstructor : {
|
|
31
36
|
type: PropType<unknown extends Defaults["focused"] ? boolean : boolean | Defaults["focused"]>;
|
|
32
37
|
default: unknown extends Defaults["focused"] ? boolean : boolean | Defaults["focused"];
|
|
@@ -180,7 +185,13 @@ export declare const pressYInputPropsOptions: <Defaults extends {
|
|
|
180
185
|
default: unknown extends Defaults["ceramic"] ? boolean : boolean | Defaults["ceramic"];
|
|
181
186
|
};
|
|
182
187
|
};
|
|
188
|
+
export interface YInputDefaultSlotProps {
|
|
189
|
+
value: any;
|
|
190
|
+
loading: boolean;
|
|
191
|
+
attrId: string;
|
|
192
|
+
}
|
|
183
193
|
export declare const YInput: import("vue").DefineComponent<{
|
|
194
|
+
extended: PropType<any>;
|
|
184
195
|
focused: BooleanConstructor;
|
|
185
196
|
'onUpdate:focused': PropType<(v: boolean) => void>;
|
|
186
197
|
readonly: PropType<boolean>;
|
|
@@ -232,19 +243,8 @@ export declare const YInput: import("vue").DefineComponent<{
|
|
|
232
243
|
filled: PropType<boolean>;
|
|
233
244
|
ceramic: PropType<boolean>;
|
|
234
245
|
theme: PropType<string>;
|
|
235
|
-
}, {
|
|
236
|
-
|
|
237
|
-
isFocused: import("vue").WritableComputedRef<any> & {
|
|
238
|
-
readonly rxValue: any;
|
|
239
|
-
};
|
|
240
|
-
focusedClasses: import("vue").ComputedRef<{
|
|
241
|
-
[x: string]: any;
|
|
242
|
-
}>;
|
|
243
|
-
whenFocus: () => void;
|
|
244
|
-
whenBlur: () => void;
|
|
245
|
-
createLabel: () => VNode | undefined;
|
|
246
|
-
invokeValidators: () => Promise<any[]>;
|
|
247
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "error" | "focus" | "mousedown" | "mouseup" | "blur" | "mousedown:display" | "mouseup:display" | "click:leading" | "update:modelValue" | "update:focused")[], "click" | "error" | "focus" | "mousedown" | "mouseup" | "blur" | "mousedown:display" | "mouseup:display" | "click:leading" | "update:modelValue" | "update:focused", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
246
|
+
}, any, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "error" | "blur" | "focus" | "mousedown" | "mouseup" | "mousedown:display" | "mouseup:display" | "click:leading" | "update:modelValue" | "update:focused")[], "click" | "error" | "blur" | "focus" | "mousedown" | "mouseup" | "mousedown:display" | "mouseup:display" | "click:leading" | "update:modelValue" | "update:focused", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
247
|
+
extended: PropType<any>;
|
|
248
248
|
focused: BooleanConstructor;
|
|
249
249
|
'onUpdate:focused': PropType<(v: boolean) => void>;
|
|
250
250
|
readonly: PropType<boolean>;
|
|
@@ -300,10 +300,10 @@ export declare const YInput: import("vue").DefineComponent<{
|
|
|
300
300
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
301
301
|
"onUpdate:focused"?: ((...args: any[]) => any) | undefined;
|
|
302
302
|
onError?: ((...args: any[]) => any) | undefined;
|
|
303
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
|
303
304
|
onFocus?: ((...args: any[]) => any) | undefined;
|
|
304
305
|
onMousedown?: ((...args: any[]) => any) | undefined;
|
|
305
306
|
onMouseup?: ((...args: any[]) => any) | undefined;
|
|
306
|
-
onBlur?: ((...args: any[]) => any) | undefined;
|
|
307
307
|
"onMousedown:display"?: ((...args: any[]) => any) | undefined;
|
|
308
308
|
"onMouseup:display"?: ((...args: any[]) => any) | undefined;
|
|
309
309
|
"onClick:leading"?: ((...args: any[]) => any) | undefined;
|
|
@@ -319,11 +319,7 @@ export declare const YInput: import("vue").DefineComponent<{
|
|
|
319
319
|
prepend: any;
|
|
320
320
|
append: any;
|
|
321
321
|
label: any;
|
|
322
|
-
default:
|
|
323
|
-
value: any;
|
|
324
|
-
formLoading: boolean;
|
|
325
|
-
attrId: string;
|
|
326
|
-
};
|
|
322
|
+
default: YInputDefaultSlotProps;
|
|
327
323
|
leading: {
|
|
328
324
|
error: boolean;
|
|
329
325
|
};
|
|
@@ -331,6 +327,7 @@ export declare const YInput: import("vue").DefineComponent<{
|
|
|
331
327
|
'helper-text': {
|
|
332
328
|
error: boolean;
|
|
333
329
|
errorResult: string | undefined;
|
|
330
|
+
errors: any[];
|
|
334
331
|
};
|
|
335
332
|
}>>;
|
|
336
333
|
export type YInput = InstanceType<typeof YInput>;
|
|
@@ -600,6 +600,7 @@ export declare const pressYSelectPropsOptions: <Defaults extends {
|
|
|
600
600
|
origin?: unknown;
|
|
601
601
|
offset?: unknown;
|
|
602
602
|
viewportMargin?: unknown;
|
|
603
|
+
extended?: unknown;
|
|
603
604
|
focused?: unknown;
|
|
604
605
|
'onUpdate:focused'?: unknown;
|
|
605
606
|
readonly?: unknown;
|
|
@@ -702,6 +703,10 @@ export declare const pressYSelectPropsOptions: <Defaults extends {
|
|
|
702
703
|
type: PropType<unknown extends Defaults["viewportMargin"] ? number : number | Defaults["viewportMargin"]>;
|
|
703
704
|
default: unknown extends Defaults["viewportMargin"] ? number : number | Defaults["viewportMargin"];
|
|
704
705
|
};
|
|
706
|
+
extended: unknown extends Defaults["extended"] ? PropType<any> : {
|
|
707
|
+
type: PropType<unknown extends Defaults["extended"] ? any : any>;
|
|
708
|
+
default: unknown extends Defaults["extended"] ? any : any;
|
|
709
|
+
};
|
|
705
710
|
focused: unknown extends Defaults["focused"] ? BooleanConstructor : {
|
|
706
711
|
type: PropType<unknown extends Defaults["focused"] ? boolean : boolean | Defaults["focused"]>;
|
|
707
712
|
default: unknown extends Defaults["focused"] ? boolean : boolean | Defaults["focused"];
|
|
@@ -1536,6 +1541,7 @@ export declare const YSelect: import("vue").DefineComponent<{
|
|
|
1536
1541
|
type: NumberConstructor;
|
|
1537
1542
|
default: number;
|
|
1538
1543
|
};
|
|
1544
|
+
extended: PropType<any>;
|
|
1539
1545
|
focused: BooleanConstructor;
|
|
1540
1546
|
'onUpdate:focused': PropType<(v: boolean) => void>;
|
|
1541
1547
|
readonly: PropType<boolean>;
|
|
@@ -5661,6 +5667,7 @@ export declare const YSelect: import("vue").DefineComponent<{
|
|
|
5661
5667
|
type: NumberConstructor;
|
|
5662
5668
|
default: number;
|
|
5663
5669
|
};
|
|
5670
|
+
extended: PropType<any>;
|
|
5664
5671
|
focused: BooleanConstructor;
|
|
5665
5672
|
'onUpdate:focused': PropType<(v: boolean) => void>;
|
|
5666
5673
|
readonly: PropType<boolean>;
|
|
@@ -4,6 +4,7 @@ export declare const pressDataTableProps: <Defaults extends {
|
|
|
4
4
|
fixedHead?: unknown;
|
|
5
5
|
height?: unknown;
|
|
6
6
|
flexHeight?: unknown;
|
|
7
|
+
onScroll?: unknown;
|
|
7
8
|
multiSort?: unknown;
|
|
8
9
|
sortAscIcon?: unknown;
|
|
9
10
|
sortDescIcon?: unknown;
|
|
@@ -12,6 +13,7 @@ export declare const pressDataTableProps: <Defaults extends {
|
|
|
12
13
|
enableSelect?: unknown;
|
|
13
14
|
selectStrategy?: unknown;
|
|
14
15
|
modelValue?: unknown;
|
|
16
|
+
valueEqual?: unknown;
|
|
15
17
|
sortBy?: unknown;
|
|
16
18
|
items?: unknown;
|
|
17
19
|
itemKey?: unknown;
|
|
@@ -64,6 +66,10 @@ export declare const pressDataTableProps: <Defaults extends {
|
|
|
64
66
|
type: PropType<unknown extends Defaults["flexHeight"] ? boolean : boolean | Defaults["flexHeight"]>;
|
|
65
67
|
default: unknown extends Defaults["flexHeight"] ? boolean : boolean | Defaults["flexHeight"];
|
|
66
68
|
};
|
|
69
|
+
onScroll: unknown extends Defaults["onScroll"] ? PropType<(e: Event) => void> : {
|
|
70
|
+
type: PropType<unknown extends Defaults["onScroll"] ? (e: Event) => void : ((e: Event) => void) | Defaults["onScroll"]>;
|
|
71
|
+
default: unknown extends Defaults["onScroll"] ? (e: Event) => void : ((e: Event) => void) | Defaults["onScroll"];
|
|
72
|
+
};
|
|
67
73
|
multiSort: unknown extends Defaults["multiSort"] ? BooleanConstructor : {
|
|
68
74
|
type: PropType<unknown extends Defaults["multiSort"] ? boolean : boolean | Defaults["multiSort"]>;
|
|
69
75
|
default: unknown extends Defaults["multiSort"] ? boolean : boolean | Defaults["multiSort"];
|
|
@@ -120,6 +126,16 @@ export declare const pressDataTableProps: <Defaults extends {
|
|
|
120
126
|
type: PropType<unknown extends Defaults["modelValue"] ? readonly any[] : readonly any[] | Defaults["modelValue"]>;
|
|
121
127
|
default: unknown extends Defaults["modelValue"] ? readonly any[] : readonly any[] | Defaults["modelValue"];
|
|
122
128
|
};
|
|
129
|
+
valueEqual: unknown extends Defaults["valueEqual"] ? {
|
|
130
|
+
type: PropType<typeof import("../../util").deepEqual>;
|
|
131
|
+
default: typeof import("../../util").deepEqual;
|
|
132
|
+
} : Omit<{
|
|
133
|
+
type: PropType<typeof import("../../util").deepEqual>;
|
|
134
|
+
default: typeof import("../../util").deepEqual;
|
|
135
|
+
}, "type" | "default"> & {
|
|
136
|
+
type: PropType<unknown extends Defaults["valueEqual"] ? typeof import("../../util").deepEqual : typeof import("../../util").deepEqual | Defaults["valueEqual"]>;
|
|
137
|
+
default: unknown extends Defaults["valueEqual"] ? typeof import("../../util").deepEqual : typeof import("../../util").deepEqual | Defaults["valueEqual"];
|
|
138
|
+
};
|
|
123
139
|
sortBy: unknown extends Defaults["sortBy"] ? {
|
|
124
140
|
type: PropType<readonly import("./types").SortOption[]>;
|
|
125
141
|
default: () => never[];
|
|
@@ -239,6 +255,7 @@ export declare const YDataTable: import("vue").DefineComponent<{
|
|
|
239
255
|
flexHeight: {
|
|
240
256
|
type: PropType<boolean>;
|
|
241
257
|
};
|
|
258
|
+
onScroll: PropType<(e: Event) => void>;
|
|
242
259
|
multiSort: BooleanConstructor;
|
|
243
260
|
sortAscIcon: {
|
|
244
261
|
type: StringConstructor;
|
|
@@ -259,6 +276,10 @@ export declare const YDataTable: import("vue").DefineComponent<{
|
|
|
259
276
|
type: PropType<readonly any[]>;
|
|
260
277
|
default: () => never[];
|
|
261
278
|
};
|
|
279
|
+
valueEqual: {
|
|
280
|
+
type: PropType<typeof import("../../util").deepEqual>;
|
|
281
|
+
default: typeof import("../../util").deepEqual;
|
|
282
|
+
};
|
|
262
283
|
sortBy: {
|
|
263
284
|
type: PropType<readonly import("./types").SortOption[]>;
|
|
264
285
|
default: () => never[];
|
|
@@ -313,6 +334,7 @@ export declare const YDataTable: import("vue").DefineComponent<{
|
|
|
313
334
|
'click:row': (e: Event, value: {
|
|
314
335
|
row: any;
|
|
315
336
|
}) => true;
|
|
337
|
+
scroll: (e: Event) => true;
|
|
316
338
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
317
339
|
tag: {
|
|
318
340
|
type: PropType<string>;
|
|
@@ -327,6 +349,7 @@ export declare const YDataTable: import("vue").DefineComponent<{
|
|
|
327
349
|
flexHeight: {
|
|
328
350
|
type: PropType<boolean>;
|
|
329
351
|
};
|
|
352
|
+
onScroll: PropType<(e: Event) => void>;
|
|
330
353
|
multiSort: BooleanConstructor;
|
|
331
354
|
sortAscIcon: {
|
|
332
355
|
type: StringConstructor;
|
|
@@ -347,6 +370,10 @@ export declare const YDataTable: import("vue").DefineComponent<{
|
|
|
347
370
|
type: PropType<readonly any[]>;
|
|
348
371
|
default: () => never[];
|
|
349
372
|
};
|
|
373
|
+
valueEqual: {
|
|
374
|
+
type: PropType<typeof import("../../util").deepEqual>;
|
|
375
|
+
default: typeof import("../../util").deepEqual;
|
|
376
|
+
};
|
|
350
377
|
sortBy: {
|
|
351
378
|
type: PropType<readonly import("./types").SortOption[]>;
|
|
352
379
|
default: () => never[];
|
|
@@ -392,6 +419,7 @@ export declare const YDataTable: import("vue").DefineComponent<{
|
|
|
392
419
|
};
|
|
393
420
|
}>> & {
|
|
394
421
|
"onUpdate:modelValue"?: ((value: any[]) => any) | undefined;
|
|
422
|
+
onScroll?: ((e: Event) => any) | undefined;
|
|
395
423
|
"onClick:row"?: ((e: Event, value: {
|
|
396
424
|
row: any;
|
|
397
425
|
}) => any) | undefined;
|
|
@@ -414,6 +442,7 @@ export declare const YDataTable: import("vue").DefineComponent<{
|
|
|
414
442
|
itemSelectable: any;
|
|
415
443
|
sortBy: readonly import("./types").SortOption[];
|
|
416
444
|
multiSort: boolean;
|
|
445
|
+
valueEqual: typeof import("../../util").deepEqual;
|
|
417
446
|
sortAscIcon: string;
|
|
418
447
|
sortDescIcon: string;
|
|
419
448
|
dualSortIcon: boolean;
|
|
@@ -5,6 +5,7 @@ export declare const pressYDataTableRowProps: <Defaults extends {
|
|
|
5
5
|
onClick?: unknown;
|
|
6
6
|
onContextmenu?: unknown;
|
|
7
7
|
onDblclick?: unknown;
|
|
8
|
+
onHover?: unknown;
|
|
8
9
|
} = {}>(defaults?: Defaults | undefined) => {
|
|
9
10
|
index: unknown extends Defaults["index"] ? PropType<number> : {
|
|
10
11
|
type: PropType<unknown extends Defaults["index"] ? number : number | Defaults["index"]>;
|
|
@@ -22,12 +23,17 @@ export declare const pressYDataTableRowProps: <Defaults extends {
|
|
|
22
23
|
type: PropType<unknown extends Defaults["onDblclick"] ? (...args: any[]) => void : ((...args: any[]) => void) | Defaults["onDblclick"]>;
|
|
23
24
|
default: unknown extends Defaults["onDblclick"] ? (...args: any[]) => void : ((...args: any[]) => void) | Defaults["onDblclick"];
|
|
24
25
|
};
|
|
26
|
+
onHover: unknown extends Defaults["onHover"] ? PropType<(...args: any[]) => void> : {
|
|
27
|
+
type: PropType<unknown extends Defaults["onHover"] ? (...args: any[]) => void : ((...args: any[]) => void) | Defaults["onHover"]>;
|
|
28
|
+
default: unknown extends Defaults["onHover"] ? (...args: any[]) => void : ((...args: any[]) => void) | Defaults["onHover"];
|
|
29
|
+
};
|
|
25
30
|
};
|
|
26
31
|
export declare const YDataTableRow: import("vue").DefineComponent<{
|
|
27
32
|
index: PropType<number>;
|
|
28
33
|
onClick: PropType<(...args: any[]) => void>;
|
|
29
34
|
onContextmenu: PropType<(...args: any[]) => void>;
|
|
30
35
|
onDblclick: PropType<(...args: any[]) => void>;
|
|
36
|
+
onHover: PropType<(...args: any[]) => void>;
|
|
31
37
|
item: PropType<DataTableItem<any>>;
|
|
32
38
|
cellProps: PropType<CellProps>;
|
|
33
39
|
}, void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -35,6 +41,7 @@ export declare const YDataTableRow: import("vue").DefineComponent<{
|
|
|
35
41
|
onClick: PropType<(...args: any[]) => void>;
|
|
36
42
|
onContextmenu: PropType<(...args: any[]) => void>;
|
|
37
43
|
onDblclick: PropType<(...args: any[]) => void>;
|
|
44
|
+
onHover: PropType<(...args: any[]) => void>;
|
|
38
45
|
item: PropType<DataTableItem<any>>;
|
|
39
46
|
cellProps: PropType<CellProps>;
|
|
40
47
|
}>>, {}, {}>;
|
|
@@ -4,6 +4,7 @@ export declare const pressDataTableServerProps: <Defaults extends {
|
|
|
4
4
|
fixedHead?: unknown;
|
|
5
5
|
height?: unknown;
|
|
6
6
|
flexHeight?: unknown;
|
|
7
|
+
onScroll?: unknown;
|
|
7
8
|
multiSort?: unknown;
|
|
8
9
|
sortAscIcon?: unknown;
|
|
9
10
|
sortDescIcon?: unknown;
|
|
@@ -12,6 +13,7 @@ export declare const pressDataTableServerProps: <Defaults extends {
|
|
|
12
13
|
enableSelect?: unknown;
|
|
13
14
|
selectStrategy?: unknown;
|
|
14
15
|
modelValue?: unknown;
|
|
16
|
+
valueEqual?: unknown;
|
|
15
17
|
sortBy?: unknown;
|
|
16
18
|
items?: unknown;
|
|
17
19
|
itemKey?: unknown;
|
|
@@ -67,6 +69,10 @@ export declare const pressDataTableServerProps: <Defaults extends {
|
|
|
67
69
|
type: PropType<unknown extends Defaults["flexHeight"] ? boolean : boolean | Defaults["flexHeight"]>;
|
|
68
70
|
default: unknown extends Defaults["flexHeight"] ? boolean : boolean | Defaults["flexHeight"];
|
|
69
71
|
};
|
|
72
|
+
onScroll: unknown extends Defaults["onScroll"] ? PropType<(e: Event) => void> : {
|
|
73
|
+
type: PropType<unknown extends Defaults["onScroll"] ? (e: Event) => void : ((e: Event) => void) | Defaults["onScroll"]>;
|
|
74
|
+
default: unknown extends Defaults["onScroll"] ? (e: Event) => void : ((e: Event) => void) | Defaults["onScroll"];
|
|
75
|
+
};
|
|
70
76
|
multiSort: unknown extends Defaults["multiSort"] ? BooleanConstructor : {
|
|
71
77
|
type: PropType<unknown extends Defaults["multiSort"] ? boolean : boolean | Defaults["multiSort"]>;
|
|
72
78
|
default: unknown extends Defaults["multiSort"] ? boolean : boolean | Defaults["multiSort"];
|
|
@@ -123,6 +129,16 @@ export declare const pressDataTableServerProps: <Defaults extends {
|
|
|
123
129
|
type: PropType<unknown extends Defaults["modelValue"] ? readonly any[] : readonly any[] | Defaults["modelValue"]>;
|
|
124
130
|
default: unknown extends Defaults["modelValue"] ? readonly any[] : readonly any[] | Defaults["modelValue"];
|
|
125
131
|
};
|
|
132
|
+
valueEqual: unknown extends Defaults["valueEqual"] ? {
|
|
133
|
+
type: PropType<typeof import("../../util").deepEqual>;
|
|
134
|
+
default: typeof import("../../util").deepEqual;
|
|
135
|
+
} : Omit<{
|
|
136
|
+
type: PropType<typeof import("../../util").deepEqual>;
|
|
137
|
+
default: typeof import("../../util").deepEqual;
|
|
138
|
+
}, "type" | "default"> & {
|
|
139
|
+
type: PropType<unknown extends Defaults["valueEqual"] ? typeof import("../../util").deepEqual : typeof import("../../util").deepEqual | Defaults["valueEqual"]>;
|
|
140
|
+
default: unknown extends Defaults["valueEqual"] ? typeof import("../../util").deepEqual : typeof import("../../util").deepEqual | Defaults["valueEqual"];
|
|
141
|
+
};
|
|
126
142
|
sortBy: unknown extends Defaults["sortBy"] ? {
|
|
127
143
|
type: PropType<readonly import("./types").SortOption[]>;
|
|
128
144
|
default: () => never[];
|
|
@@ -272,6 +288,7 @@ export declare const YDataTableServer: import("vue").DefineComponent<{
|
|
|
272
288
|
flexHeight: {
|
|
273
289
|
type: PropType<boolean>;
|
|
274
290
|
};
|
|
291
|
+
onScroll: PropType<(e: Event) => void>;
|
|
275
292
|
multiSort: BooleanConstructor;
|
|
276
293
|
sortAscIcon: {
|
|
277
294
|
type: StringConstructor;
|
|
@@ -292,6 +309,10 @@ export declare const YDataTableServer: import("vue").DefineComponent<{
|
|
|
292
309
|
type: PropType<readonly any[]>;
|
|
293
310
|
default: () => never[];
|
|
294
311
|
};
|
|
312
|
+
valueEqual: {
|
|
313
|
+
type: PropType<typeof import("../../util").deepEqual>;
|
|
314
|
+
default: typeof import("../../util").deepEqual;
|
|
315
|
+
};
|
|
295
316
|
sortBy: {
|
|
296
317
|
type: PropType<readonly import("./types").SortOption[]>;
|
|
297
318
|
default: () => never[];
|
|
@@ -362,6 +383,7 @@ export declare const YDataTableServer: import("vue").DefineComponent<{
|
|
|
362
383
|
flexHeight: {
|
|
363
384
|
type: PropType<boolean>;
|
|
364
385
|
};
|
|
386
|
+
onScroll: PropType<(e: Event) => void>;
|
|
365
387
|
multiSort: BooleanConstructor;
|
|
366
388
|
sortAscIcon: {
|
|
367
389
|
type: StringConstructor;
|
|
@@ -382,6 +404,10 @@ export declare const YDataTableServer: import("vue").DefineComponent<{
|
|
|
382
404
|
type: PropType<readonly any[]>;
|
|
383
405
|
default: () => never[];
|
|
384
406
|
};
|
|
407
|
+
valueEqual: {
|
|
408
|
+
type: PropType<typeof import("../../util").deepEqual>;
|
|
409
|
+
default: typeof import("../../util").deepEqual;
|
|
410
|
+
};
|
|
385
411
|
sortBy: {
|
|
386
412
|
type: PropType<readonly import("./types").SortOption[]>;
|
|
387
413
|
default: () => never[];
|
|
@@ -453,6 +479,7 @@ export declare const YDataTableServer: import("vue").DefineComponent<{
|
|
|
453
479
|
itemSelectable: any;
|
|
454
480
|
sortBy: readonly import("./types").SortOption[];
|
|
455
481
|
multiSort: boolean;
|
|
482
|
+
valueEqual: typeof import("../../util").deepEqual;
|
|
456
483
|
sortAscIcon: string;
|
|
457
484
|
sortDescIcon: string;
|
|
458
485
|
dualSortIcon: boolean;
|