@jackbo_vip/admin-kit 1.0.20 → 1.0.21

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +20 -275
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -20,9 +20,14 @@ export { createIconifyIcon };
20
20
  // ==========================================
21
21
  // From @admin-kit/shared
22
22
  // ==========================================
23
+ export { StateHandler, VisibleDomRect, arraysEqual, bindMethods, capitalizeFirstLetter, cn, diff, downloadFileFromBase64, downloadFileFromBlob, downloadFileFromBlobPart, downloadFileFromImageUrl, downloadFileFromUrl, filterTree, formatDate, formatDateTime, getCurrentTimezone, getElementVisibleRect, getFirstNonNullOrUndefined, getNestedValue, getScrollbarWidth, getSystemTimezone, isBoolean, isDate, isDayjsObject, isEmpty, isHttpUrl, isMacOs, isNumber, isUndefined, isWindow, isWindowsOs, kebabToCamelCase, loadScript, mapTree, mergeWithArrayOverride, needsScrollbar, openRouteInNewWindow, openWindow, setCurrentTimezone, sortTree, startProgress, stopProgress, to, toCamelCase, toLowerCaseFirstLetter, traverseTreeValues, triggerDownload, triggerWindowResize, uniqueByField, updateCSSVariables, urlToBase64 };
23
24
  export { get, isEqual, set } from 'es-toolkit/compat';
24
25
  export { default as cloneDeep } from 'lodash.clonedeep';
26
+ export { IGlobalSharedState, globalShareState };
27
+ export { StorageManager };
28
+ export { convertToHsl, convertToHslCssVar, convertToRgb, generatorColorVariables, isDarkColor, isLightColor, isValidColor };
25
29
  export { TinyColor } from '@ctrl/tinycolor';
30
+ export { ADMIN_ANT_PREVIEW_URL, ADMIN_DOC_URL, ADMIN_ELE_PREVIEW_URL, ADMIN_GITHUB_URL, ADMIN_LOGO_URL, ADMIN_NAIVE_PREVIEW_URL, ADMIN_PREVIEW_URL, ADMIN_TD_PREVIEW_URL, CSS_VARIABLE_LAYOUT_CONTENT_HEIGHT, CSS_VARIABLE_LAYOUT_CONTENT_WIDTH, CSS_VARIABLE_LAYOUT_FOOTER_HEIGHT, CSS_VARIABLE_LAYOUT_HEADER_HEIGHT, DEFAULT_NAMESPACE, ELEMENT_ID_MAIN_CONTENT };
26
31
  export { isFunction, isObject, isString } from '@vue/shared';
27
32
  export { createDefu as createMerge, defu as merge } from 'defu';
28
33
  export * from '@tanstack/vue-store';
@@ -544,11 +549,7 @@ export type { UseNamespaceReturn };
544
549
  // ==========================================
545
550
  // From @admin-kit/form-ui
546
551
  // ==========================================
547
- import type { Component } from 'vue';
548
- export declare const DEFAULT_FORM_COMMON_CONFIG: FormCommonConfig;
549
- export declare const COMPONENT_MAP: Record<BaseFormComponentType, Component>;
550
- export declare const COMPONENT_BIND_EVENT_MAP: Partial<Record<BaseFormComponentType, string>>;
551
- export declare function setupAdminForm<T extends BaseFormComponentType = BaseFormComponentType>(options: AdminFormAdapterOptions<T>): void;
552
+ export { setupAdminForm };
552
553
  import type { FieldOptions, FormContext, GenericObject } from 'vee-validate';
553
554
  import type { ZodTypeAny } from 'zod';
554
555
  import type { Component, HtmlHTMLAttributes, Ref } from 'vue';
@@ -1066,109 +1067,13 @@ interface AdminLayoutProps {
1066
1067
  zIndex?: number;
1067
1068
  }
1068
1069
  export type { AdminLayoutProps };
1069
- interface Props extends AdminLayoutProps {
1070
- }
1071
- type __VLS_Props = Props;
1072
- type __VLS_ModelProps = {
1073
- 'sidebarCollapse'?: boolean;
1074
- 'sidebarExtraVisible'?: boolean;
1075
- 'sidebarExtraCollapse'?: boolean;
1076
- 'sidebarExpandOnHover'?: boolean;
1077
- 'sidebarEnable'?: boolean;
1078
- };
1079
- type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
1080
- declare var __VLS_10: {}, __VLS_12: {}, __VLS_14: {}, __VLS_17: {}, __VLS_20: {}, __VLS_29: {}, __VLS_50: {}, __VLS_58: {}, __VLS_66: {}, __VLS_69: {}, __VLS_77: {}, __VLS_79: {};
1081
- type __VLS_Slots = {} & {
1082
- logo?: (props: typeof __VLS_10) => any;
1083
- } & {
1084
- 'mixed-menu'?: (props: typeof __VLS_12) => any;
1085
- } & {
1086
- menu?: (props: typeof __VLS_14) => any;
1087
- } & {
1088
- 'side-extra'?: (props: typeof __VLS_17) => any;
1089
- } & {
1090
- 'side-extra-title'?: (props: typeof __VLS_20) => any;
1091
- } & {
1092
- logo?: (props: typeof __VLS_29) => any;
1093
- } & {
1094
- header?: (props: typeof __VLS_50) => any;
1095
- } & {
1096
- tabbar?: (props: typeof __VLS_58) => any;
1097
- } & {
1098
- content?: (props: typeof __VLS_66) => any;
1099
- } & {
1100
- 'content-overlay'?: (props: typeof __VLS_69) => any;
1101
- } & {
1102
- footer?: (props: typeof __VLS_77) => any;
1103
- } & {
1104
- extra?: (props: typeof __VLS_79) => any;
1105
- };
1106
- declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
1107
- sideMouseLeave: () => any;
1108
- toggleSidebar: () => any;
1109
- "update:sidebarCollapse": (value: boolean) => any;
1110
- "update:sidebarExtraVisible": (value: boolean | undefined) => any;
1111
- "update:sidebarExtraCollapse": (value: boolean) => any;
1112
- "update:sidebarExpandOnHover": (value: boolean) => any;
1113
- "update:sidebarEnable": (value: boolean) => any;
1114
- }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
1115
- onSideMouseLeave?: (() => any) | undefined;
1116
- onToggleSidebar?: (() => any) | undefined;
1117
- "onUpdate:sidebarCollapse"?: ((value: boolean) => any) | undefined;
1118
- "onUpdate:sidebarExtraVisible"?: ((value: boolean | undefined) => any) | undefined;
1119
- "onUpdate:sidebarExtraCollapse"?: ((value: boolean) => any) | undefined;
1120
- "onUpdate:sidebarExpandOnHover"?: ((value: boolean) => any) | undefined;
1121
- "onUpdate:sidebarEnable"?: ((value: boolean) => any) | undefined;
1122
- }>, {
1123
- zIndex: number;
1124
- layout: import("@admin-kit/typings").LayoutType;
1125
- contentCompact: import("@admin-kit/typings").ContentCompactType;
1126
- contentCompactWidth: number;
1127
- isMobile: boolean;
1128
- sidebarWidth: number;
1129
- headerHeight: number;
1130
- contentPadding: number;
1131
- contentPaddingBottom: number;
1132
- contentPaddingLeft: number;
1133
- contentPaddingRight: number;
1134
- contentPaddingTop: number;
1135
- footerEnable: boolean;
1136
- footerFixed: boolean;
1137
- footerHeight: number;
1138
- headerHidden: boolean;
1139
- headerMode: import("@admin-kit/typings").LayoutHeaderModeType;
1140
- headerToggleSidebarButton: boolean;
1141
- headerVisible: boolean;
1142
- sidebarCollapsedButton: boolean;
1143
- sidebarCollapseShowTitle: boolean;
1144
- sidebarExtraCollapsedWidth: number;
1145
- sidebarFixedButton: boolean;
1146
- sidebarHidden: boolean;
1147
- sidebarMixedWidth: number;
1148
- sidebarTheme: import("@admin-kit/typings").ThemeModeType;
1149
- sideCollapseWidth: number;
1150
- tabbarEnable: boolean;
1151
- tabbarHeight: number;
1152
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
1153
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
1154
- declare const _default: typeof __VLS_export;
1155
- export default _default;
1156
- type __VLS_WithSlots<T, S> = T & {
1157
- new (): {
1158
- $slots: S;
1159
- };
1160
- };
1070
+ export { default as AdminLayout };
1161
1071
 
1162
1072
 
1163
1073
  // ==========================================
1164
1074
  // From @admin-kit/menu-ui
1165
1075
  // ==========================================
1166
- interface Props extends MenuRecordBadgeRaw {
1167
- hasChildren?: boolean;
1168
- }
1169
- declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
1170
- declare const _default: typeof __VLS_export;
1171
- export default _default;
1076
+ export { default as MenuBadge };
1172
1077
  interface NormalMenuProps {
1173
1078
  /**
1174
1079
  * 菜单数据
@@ -1193,30 +1098,8 @@ interface NormalMenuProps {
1193
1098
  theme?: 'dark' | 'light';
1194
1099
  }
1195
1100
  export type { NormalMenuProps };
1196
- interface Props extends NormalMenuProps {
1197
- }
1198
- declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
1199
- select: (args_0: MenuRecordRaw) => any;
1200
- enter: (args_0: MenuRecordRaw) => any;
1201
- }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
1202
- onSelect?: ((args_0: MenuRecordRaw) => any) | undefined;
1203
- onEnter?: ((args_0: MenuRecordRaw) => any) | undefined;
1204
- }>, {
1205
- menus: MenuRecordRaw[];
1206
- theme: "dark" | "light";
1207
- collapse: boolean;
1208
- activePath: string;
1209
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
1210
- declare const _default: typeof __VLS_export;
1211
- export default _default;
1212
- interface Props extends MenuProps {
1213
- menus: MenuRecordRaw[];
1214
- }
1215
- declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
1216
- collapse: boolean;
1217
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
1218
- declare const _default: typeof __VLS_export;
1219
- export default _default;
1101
+ export { default as NormalMenu };
1102
+ export { default as Menu };
1220
1103
  import type { Component, Ref } from 'vue';
1221
1104
  interface MenuProps {
1222
1105
  /**
@@ -1413,36 +1296,9 @@ export declare const injectAlertContext: <T extends AlertContext | null | undefi
1413
1296
  * @returns AlertContext
1414
1297
  */
1415
1298
  export declare function useAlertContext(): AlertContext;
1416
- type __VLS_Props = AlertProps;
1417
- type __VLS_ModelProps = {
1418
- 'open'?: boolean;
1419
- };
1420
- type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
1421
- declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
1422
- closed: (...args: any[]) => void;
1423
- opened: (...args: any[]) => void;
1424
- confirm: (...args: any[]) => void;
1425
- "update:open": (value: boolean) => void;
1426
- }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
1427
- "onUpdate:open"?: ((value: boolean) => any) | undefined;
1428
- onClosed?: ((...args: any[]) => any) | undefined;
1429
- onOpened?: ((...args: any[]) => any) | undefined;
1430
- onConfirm?: ((...args: any[]) => any) | undefined;
1431
- }>, {
1432
- centered: boolean;
1433
- bordered: boolean;
1434
- buttonAlign: "center" | "end" | "start";
1435
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
1436
- declare const _default: typeof __VLS_export;
1437
- export default _default;
1438
- export declare function adminAlert(options: AlertProps): Promise<void>;
1439
- export declare function adminAlert(message: string, options?: Partial<AlertProps>): Promise<void>;
1440
- export declare function adminAlert(message: string, title?: string, options?: Partial<AlertProps>): Promise<void>;
1441
- export declare function adminConfirm(options: AlertProps): Promise<void>;
1442
- export declare function adminConfirm(message: string, options?: Partial<AlertProps>): Promise<void>;
1443
- export declare function adminConfirm(message: string, title?: string, options?: Partial<AlertProps>): Promise<void>;
1444
- export declare function adminPrompt<T = any>(options: PromptProps<T>): Promise<T | undefined>;
1445
- export declare function clearAllAlerts(): void;
1299
+ export { useAlertContext };
1300
+ export { default as Alert };
1301
+ export { adminAlert as alert, clearAllAlerts, adminConfirm as confirm, adminPrompt as prompt, };
1446
1302
  import type { Component, Ref } from 'vue';
1447
1303
  export type DrawerPlacement = 'bottom' | 'left' | 'right' | 'top';
1448
1304
  export type CloseIconPlacement = 'left' | 'right';
@@ -1608,53 +1464,8 @@ export interface DrawerApiOptions extends DrawerState {
1608
1464
  */
1609
1465
  onOpened?: () => void;
1610
1466
  }
1611
- interface Props extends DrawerProps {
1612
- drawerApi?: ExtendedDrawerApi;
1613
- }
1614
- declare var __VLS_37: {}, __VLS_61: {}, __VLS_75: {}, __VLS_93: {}, __VLS_101: {}, __VLS_130: {}, __VLS_143: {}, __VLS_145: {}, __VLS_155: {}, __VLS_157: {}, __VLS_167: {}, __VLS_169: {};
1615
- type __VLS_Slots = {} & {
1616
- 'close-icon'?: (props: typeof __VLS_37) => any;
1617
- } & {
1618
- title?: (props: typeof __VLS_61) => any;
1619
- } & {
1620
- description?: (props: typeof __VLS_75) => any;
1621
- } & {
1622
- extra?: (props: typeof __VLS_93) => any;
1623
- } & {
1624
- 'close-icon'?: (props: typeof __VLS_101) => any;
1625
- } & {
1626
- default?: (props: typeof __VLS_130) => any;
1627
- } & {
1628
- 'prepend-footer'?: (props: typeof __VLS_143) => any;
1629
- } & {
1630
- footer?: (props: typeof __VLS_145) => any;
1631
- } & {
1632
- cancelText?: (props: typeof __VLS_155) => any;
1633
- } & {
1634
- 'center-footer'?: (props: typeof __VLS_157) => any;
1635
- } & {
1636
- confirmText?: (props: typeof __VLS_167) => any;
1637
- } & {
1638
- 'append-footer'?: (props: typeof __VLS_169) => any;
1639
- };
1640
- declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
1641
- zIndex: number;
1642
- appendToMain: boolean;
1643
- closeIconPlacement: import("./drawer").CloseIconPlacement;
1644
- destroyOnClose: boolean;
1645
- submitting: boolean;
1646
- drawerApi: ExtendedDrawerApi;
1647
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
1648
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
1649
- declare const _default: typeof __VLS_export;
1650
- export default _default;
1651
- type __VLS_WithSlots<T, S> = T & {
1652
- new (): {
1653
- $slots: S;
1654
- };
1655
- };
1656
- export declare function setDefaultDrawerProps(props: Partial<DrawerProps>): void;
1657
- export declare function useAdminDrawer<TParentDrawerProps extends DrawerProps = DrawerProps>(options?: DrawerApiOptions): readonly [import("vue").DefineSetupFnComponent<DrawerProps, {}, {}, DrawerProps & {}, import("vue").PublicProps>, ExtendedDrawerApi];
1467
+ export { default as AdminDrawer };
1468
+ export { setDefaultDrawerProps, useAdminDrawer };
1658
1469
  import type { Component, Ref } from 'vue';
1659
1470
  export interface ModalProps {
1660
1471
  /**
@@ -1837,81 +1648,15 @@ export interface ModalApiOptions extends ModalState {
1837
1648
  */
1838
1649
  onOpened?: () => void;
1839
1650
  }
1840
- interface Props extends ModalProps {
1841
- modalApi?: ExtendedModalApi;
1842
- }
1843
- declare var __VLS_41: {}, __VLS_43: {}, __VLS_57: {}, __VLS_75: {}, __VLS_108: {}, __VLS_110: {}, __VLS_120: {}, __VLS_122: {}, __VLS_132: {}, __VLS_134: {};
1844
- type __VLS_Slots = {} & {
1845
- title?: (props: typeof __VLS_41) => any;
1846
- } & {
1847
- titleTooltip?: (props: typeof __VLS_43) => any;
1848
- } & {
1849
- description?: (props: typeof __VLS_57) => any;
1850
- } & {
1851
- default?: (props: typeof __VLS_75) => any;
1852
- } & {
1853
- 'prepend-footer'?: (props: typeof __VLS_108) => any;
1854
- } & {
1855
- footer?: (props: typeof __VLS_110) => any;
1856
- } & {
1857
- cancelText?: (props: typeof __VLS_120) => any;
1858
- } & {
1859
- 'center-footer'?: (props: typeof __VLS_122) => any;
1860
- } & {
1861
- confirmText?: (props: typeof __VLS_132) => any;
1862
- } & {
1863
- 'append-footer'?: (props: typeof __VLS_134) => any;
1864
- };
1865
- declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
1866
- appendToMain: boolean;
1867
- destroyOnClose: boolean;
1868
- modalApi: ExtendedModalApi;
1869
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
1870
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
1871
- declare const _default: typeof __VLS_export;
1872
- export default _default;
1873
- type __VLS_WithSlots<T, S> = T & {
1874
- new (): {
1875
- $slots: S;
1876
- };
1877
- };
1878
- export declare function setDefaultModalProps(props: Partial<ModalProps>): void;
1879
- export declare function useAdminModal<TParentModalProps extends ModalProps = ModalProps>(options?: ModalApiOptions): readonly [import("vue").DefineSetupFnComponent<ModalProps, {}, {}, ModalProps & {}, import("vue").PublicProps>, ExtendedModalApi];
1651
+ export { default as AdminModal };
1652
+ export { setDefaultModalProps, useAdminModal };
1880
1653
 
1881
1654
 
1882
1655
  // ==========================================
1883
1656
  // From @admin-kit/tabs-ui
1884
1657
  // ==========================================
1885
- declare const __VLS_export: import("vue").DefineComponent<DropdownMenuProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DropdownMenuProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
1886
- declare const _default: typeof __VLS_export;
1887
- export default _default;
1888
- type __VLS_ModelProps = {
1889
- 'screen'?: boolean;
1890
- };
1891
- declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
1892
- "update:screen": (value: boolean | undefined) => any;
1893
- }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
1894
- "onUpdate:screen"?: ((value: boolean | undefined) => any) | undefined;
1895
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
1896
- declare const _default: typeof __VLS_export;
1897
- export default _default;
1898
- interface Props extends TabsProps {
1899
- }
1900
- declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
1901
- close: (args_0: string) => any;
1902
- unpin: (args_0: import("@admin-kit/typings").TabDefinition) => any;
1903
- sortTabs: (args_0: number, args_1: number) => any;
1904
- }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
1905
- onClose?: ((args_0: string) => any) | undefined;
1906
- onUnpin?: ((args_0: import("@admin-kit/typings").TabDefinition) => any) | undefined;
1907
- onSortTabs?: ((args_0: number, args_1: number) => any) | undefined;
1908
- }>, {
1909
- contentClass: string;
1910
- styleType: import("@admin-kit/typings").TabsStyleType;
1911
- draggable: boolean;
1912
- wheelable: boolean;
1913
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
1914
- declare const _default: typeof __VLS_export;
1915
- export default _default;
1658
+ export { default as TabsToolMore };
1659
+ export { default as TabsToolScreen };
1660
+ export { default as TabsView };
1916
1661
  export type { IContextMenuItem } from '@admin-kit/shadcn-ui';
1917
1662
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jackbo_vip/admin-kit",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
4
4
  "description": "A comprehensive Vue 3 admin UI component library with TypeScript support",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",