morghulis 1.0.24 → 1.0.26
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/index.css +1 -1
- package/dist/index.js +396 -380
- package/dist/index.umd.cjs +14 -14
- package/dist/types.d.ts +731 -0
- package/package.json +15 -2
- package/dist/components/cell/MCell.vue.d.ts +0 -11
- package/dist/components/cell/char/CharCell.vue.d.ts +0 -15
- package/dist/components/cell/date/DateCell.vue.d.ts +0 -15
- package/dist/components/cell/refer/SelectCell.vue.d.ts +0 -15
- package/dist/components/cell/simple/BooleanCell.vue.d.ts +0 -15
- package/dist/components/cell/simple/DefaultCell.vue.d.ts +0 -15
- package/dist/components/cell/simple/NumberCell.vue.d.ts +0 -18
- package/dist/components/cell/useCellComponents.d.ts +0 -2
- package/dist/components/common/MCtrlBtn.vue.d.ts +0 -30
- package/dist/components/common/MOption.vue.d.ts +0 -10
- package/dist/components/dialog/MDialog.vue.d.ts +0 -57
- package/dist/components/dialog/MDialogHeader.vue.d.ts +0 -9
- package/dist/components/form/MForm.vue.d.ts +0 -13
- package/dist/components/table/MTable.vue.d.ts +0 -65
- package/dist/components/table/MTableButtons.vue.d.ts +0 -17
- package/dist/components/table/MTableHeader.vue.d.ts +0 -17
- package/dist/components/table/data/DCell.vue.d.ts +0 -18
- package/dist/components/table/data/DForm.vue.d.ts +0 -16
- package/dist/components/table/data/DTable.vue.d.ts +0 -78
- package/dist/components/table/data/DTableController.vue.d.ts +0 -19
- package/dist/components/table/data/DTablePopController.vue.d.ts +0 -13
- package/dist/components/table/data/useDTable.d.ts +0 -77
- package/dist/components/table/data/useDTableCell.d.ts +0 -6
- package/dist/components/table/useMTable.d.ts +0 -25
- package/dist/hooks/authorize.d.ts +0 -13
- package/dist/hooks/channel.d.ts +0 -13
- package/dist/hooks/cookies.d.ts +0 -6
- package/dist/hooks/request.d.ts +0 -5
- package/dist/hooks/socket.d.ts +0 -7
- package/dist/index.d.ts +0 -5
- package/dist/tools/dao.d.ts +0 -27
- package/dist/tools/feedback.d.ts +0 -4
- package/dist/tools/query.d.ts +0 -20
- package/dist/types/dialog/dialog.types.d.ts +0 -41
- package/dist/types/table/m.table.types.d.ts +0 -55
    
        package/dist/types.d.ts
    ADDED
    
    | @@ -0,0 +1,731 @@ | |
| 1 | 
            +
            import { App } from 'vue';
         | 
| 2 | 
            +
            import { AxiosInstance } from 'axios';
         | 
| 3 | 
            +
            import { Component } from 'vue';
         | 
| 4 | 
            +
            import { ComponentOptionsMixin } from 'vue';
         | 
| 5 | 
            +
            import { ComponentProvideOptions } from 'vue';
         | 
| 6 | 
            +
            import { CreateComponentPublicInstanceWithMixins } from 'vue';
         | 
| 7 | 
            +
            import { CSSProperties } from 'vue';
         | 
| 8 | 
            +
            import { DefineComponent } from 'vue';
         | 
| 9 | 
            +
            import { ElTooltipProps } from 'element-plus';
         | 
| 10 | 
            +
            import { GlobalComponents } from 'vue';
         | 
| 11 | 
            +
            import { GlobalDirectives } from 'vue';
         | 
| 12 | 
            +
            import { PublicProps } from 'vue';
         | 
| 13 | 
            +
            import { Ref } from 'vue';
         | 
| 14 | 
            +
            import { Sort } from 'element-plus';
         | 
| 15 | 
            +
            import { TreeNode } from 'element-plus';
         | 
| 16 | 
            +
            import { VNode } from 'vue';
         | 
| 17 | 
            +
             | 
| 18 | 
            +
            declare const __VLS_component: DefineComponent<MorghulisTableProps, {
         | 
| 19 | 
            +
                getSelection: typeof getSelection_2;
         | 
| 20 | 
            +
                setSelection: (keys: any[]) => void;
         | 
| 21 | 
            +
                closePopover: () => boolean;
         | 
| 22 | 
            +
            }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<MorghulisTableProps> & Readonly<{}>, {
         | 
| 23 | 
            +
                border: boolean;
         | 
| 24 | 
            +
                fit: boolean;
         | 
| 25 | 
            +
                showHeader: boolean;
         | 
| 26 | 
            +
                highlightCurrentRow: boolean;
         | 
| 27 | 
            +
                headerCellClassName: ((data: {
         | 
| 28 | 
            +
                    row: any;
         | 
| 29 | 
            +
                    column: any;
         | 
| 30 | 
            +
                    rowIndex: number;
         | 
| 31 | 
            +
                    columnIndex: number;
         | 
| 32 | 
            +
                }) => string) | string;
         | 
| 33 | 
            +
                showOverflowTooltip: boolean;
         | 
| 34 | 
            +
            }, {}, {}, {}, string, ComponentProvideOptions, false, {
         | 
| 35 | 
            +
                table: unknown;
         | 
| 36 | 
            +
            }, any>;
         | 
| 37 | 
            +
             | 
| 38 | 
            +
            declare const __VLS_component_2: DefineComponent<MorghulisDialogProps, {
         | 
| 39 | 
            +
                open: typeof open_2;
         | 
| 40 | 
            +
                close: typeof close_2;
         | 
| 41 | 
            +
            }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
         | 
| 42 | 
            +
                close: (...args: any[]) => void;
         | 
| 43 | 
            +
                "update:title": (...args: any[]) => void;
         | 
| 44 | 
            +
                "update:subtitle": (...args: any[]) => void;
         | 
| 45 | 
            +
            }, string, PublicProps, Readonly<MorghulisDialogProps> & Readonly<{
         | 
| 46 | 
            +
                onClose?: (...args: any[]) => any;
         | 
| 47 | 
            +
                "onUpdate:title"?: (...args: any[]) => any;
         | 
| 48 | 
            +
                "onUpdate:subtitle"?: (...args: any[]) => any;
         | 
| 49 | 
            +
            }>, {
         | 
| 50 | 
            +
                title: string;
         | 
| 51 | 
            +
                subtitle: string;
         | 
| 52 | 
            +
                confirmButtonText: string;
         | 
| 53 | 
            +
                cancelButtonText: string;
         | 
| 54 | 
            +
                cancel: (data: any, done: () => void) => void;
         | 
| 55 | 
            +
                width: string | number;
         | 
| 56 | 
            +
                fullscreen: boolean;
         | 
| 57 | 
            +
                top: string;
         | 
| 58 | 
            +
                modal: boolean;
         | 
| 59 | 
            +
                modalClass: string;
         | 
| 60 | 
            +
                headerClass: string;
         | 
| 61 | 
            +
                bodyClass: string;
         | 
| 62 | 
            +
                footerClass: string;
         | 
| 63 | 
            +
                appendToBody: boolean;
         | 
| 64 | 
            +
                appendTo: string;
         | 
| 65 | 
            +
                lockScroll: boolean;
         | 
| 66 | 
            +
                openDelay: number;
         | 
| 67 | 
            +
                closeDelay: number;
         | 
| 68 | 
            +
                closeOnClickModal: boolean;
         | 
| 69 | 
            +
                closeOnPressEscape: boolean;
         | 
| 70 | 
            +
                showClose: boolean;
         | 
| 71 | 
            +
                beforeClose: (done: () => void) => void;
         | 
| 72 | 
            +
                draggable: boolean;
         | 
| 73 | 
            +
                overFlow: boolean;
         | 
| 74 | 
            +
                center: boolean;
         | 
| 75 | 
            +
                alignCenter: boolean;
         | 
| 76 | 
            +
                destroyOnClose: boolean;
         | 
| 77 | 
            +
                closeIcon: string;
         | 
| 78 | 
            +
                zIndex: number;
         | 
| 79 | 
            +
                headerAriaLevel: string;
         | 
| 80 | 
            +
                confirm: (data: any, done: () => void) => void;
         | 
| 81 | 
            +
            }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
         | 
| 82 | 
            +
             | 
| 83 | 
            +
            declare const __VLS_component_3: DefineComponent<DTableProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<DTableProps> & Readonly<{}>, {
         | 
| 84 | 
            +
                size: number;
         | 
| 85 | 
            +
                page: number;
         | 
| 86 | 
            +
            }, {}, {}, {}, string, ComponentProvideOptions, false, {
         | 
| 87 | 
            +
                table: unknown;
         | 
| 88 | 
            +
                dialog: unknown;
         | 
| 89 | 
            +
                form: CreateComponentPublicInstanceWithMixins<Readonly<{
         | 
| 90 | 
            +
                    selection: any[];
         | 
| 91 | 
            +
                    view: MetaView;
         | 
| 92 | 
            +
                    db: DaoTypes;
         | 
| 93 | 
            +
                    bean: DataItem;
         | 
| 94 | 
            +
                }> & Readonly<{}>, {
         | 
| 95 | 
            +
                    getData: () => any[];
         | 
| 96 | 
            +
                }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
         | 
| 97 | 
            +
                    form: unknown;
         | 
| 98 | 
            +
                }, any, ComponentProvideOptions, {
         | 
| 99 | 
            +
                    P: {};
         | 
| 100 | 
            +
                    B: {};
         | 
| 101 | 
            +
                    D: {};
         | 
| 102 | 
            +
                    C: {};
         | 
| 103 | 
            +
                    M: {};
         | 
| 104 | 
            +
                    Defaults: {};
         | 
| 105 | 
            +
                }, Readonly<{
         | 
| 106 | 
            +
                    selection: any[];
         | 
| 107 | 
            +
                    view: MetaView;
         | 
| 108 | 
            +
                    db: DaoTypes;
         | 
| 109 | 
            +
                    bean: DataItem;
         | 
| 110 | 
            +
                }> & Readonly<{}>, {
         | 
| 111 | 
            +
                    getData: () => any[];
         | 
| 112 | 
            +
                }, {}, {}, {}, {}>;
         | 
| 113 | 
            +
            }, any>;
         | 
| 114 | 
            +
             | 
| 115 | 
            +
            declare type __VLS_Props = {
         | 
| 116 | 
            +
                item: DataItem;
         | 
| 117 | 
            +
                view: MetaView;
         | 
| 118 | 
            +
                db: DaoTypes;
         | 
| 119 | 
            +
            };
         | 
| 120 | 
            +
             | 
| 121 | 
            +
            declare function __VLS_template(): {
         | 
| 122 | 
            +
                attrs: Partial<{}>;
         | 
| 123 | 
            +
                slots: {
         | 
| 124 | 
            +
                    header?(_: {}): any;
         | 
| 125 | 
            +
                    'header-tool'?(_: {}): any;
         | 
| 126 | 
            +
                    cell?(_: {
         | 
| 127 | 
            +
                        field: MetaField;
         | 
| 128 | 
            +
                        row: any;
         | 
| 129 | 
            +
                        prop: string | number;
         | 
| 130 | 
            +
                    }): any;
         | 
| 131 | 
            +
                    footer?(_: {}): any;
         | 
| 132 | 
            +
                    'footer-tool'?(_: {}): any;
         | 
| 133 | 
            +
                    'pop-meta'?(_: {
         | 
| 134 | 
            +
                        view: MetaView;
         | 
| 135 | 
            +
                    }): any;
         | 
| 136 | 
            +
                    'pop-search'?(_: {
         | 
| 137 | 
            +
                        field: any;
         | 
| 138 | 
            +
                    }): any;
         | 
| 139 | 
            +
                    'pop-field'?(_: {
         | 
| 140 | 
            +
                        field: any;
         | 
| 141 | 
            +
                    }): any;
         | 
| 142 | 
            +
                    'pop-cell'?(_: {
         | 
| 143 | 
            +
                        data: any;
         | 
| 144 | 
            +
                        prop: any;
         | 
| 145 | 
            +
                    }): any;
         | 
| 146 | 
            +
                    'pop-index'?(_: {
         | 
| 147 | 
            +
                        row: any;
         | 
| 148 | 
            +
                    }): any;
         | 
| 149 | 
            +
                };
         | 
| 150 | 
            +
                refs: {
         | 
| 151 | 
            +
                    table: unknown;
         | 
| 152 | 
            +
                };
         | 
| 153 | 
            +
                rootEl: any;
         | 
| 154 | 
            +
            };
         | 
| 155 | 
            +
             | 
| 156 | 
            +
            declare function __VLS_template_2(): any;
         | 
| 157 | 
            +
             | 
| 158 | 
            +
            declare function __VLS_template_3(): {
         | 
| 159 | 
            +
                attrs: Partial<{}>;
         | 
| 160 | 
            +
                slots: {
         | 
| 161 | 
            +
                    header?(_: {}): any;
         | 
| 162 | 
            +
                };
         | 
| 163 | 
            +
                refs: {
         | 
| 164 | 
            +
                    table: unknown;
         | 
| 165 | 
            +
                    dialog: unknown;
         | 
| 166 | 
            +
                    form: CreateComponentPublicInstanceWithMixins<Readonly<{
         | 
| 167 | 
            +
                        selection: any[];
         | 
| 168 | 
            +
                        view: MetaView;
         | 
| 169 | 
            +
                        db: DaoTypes;
         | 
| 170 | 
            +
                        bean: DataItem;
         | 
| 171 | 
            +
                    }> & Readonly<{}>, {
         | 
| 172 | 
            +
                        getData: () => any[];
         | 
| 173 | 
            +
                    }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
         | 
| 174 | 
            +
                        form: unknown;
         | 
| 175 | 
            +
                    }, any, ComponentProvideOptions, {
         | 
| 176 | 
            +
                        P: {};
         | 
| 177 | 
            +
                        B: {};
         | 
| 178 | 
            +
                        D: {};
         | 
| 179 | 
            +
                        C: {};
         | 
| 180 | 
            +
                        M: {};
         | 
| 181 | 
            +
                        Defaults: {};
         | 
| 182 | 
            +
                    }, Readonly<{
         | 
| 183 | 
            +
                        selection: any[];
         | 
| 184 | 
            +
                        view: MetaView;
         | 
| 185 | 
            +
                        db: DaoTypes;
         | 
| 186 | 
            +
                        bean: DataItem;
         | 
| 187 | 
            +
                    }> & Readonly<{}>, {
         | 
| 188 | 
            +
                        getData: () => any[];
         | 
| 189 | 
            +
                    }, {}, {}, {}, {}>;
         | 
| 190 | 
            +
                };
         | 
| 191 | 
            +
                rootEl: any;
         | 
| 192 | 
            +
            };
         | 
| 193 | 
            +
             | 
| 194 | 
            +
            declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
         | 
| 195 | 
            +
             | 
| 196 | 
            +
            declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
         | 
| 197 | 
            +
             | 
| 198 | 
            +
            declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
         | 
| 199 | 
            +
             | 
| 200 | 
            +
            declare type __VLS_WithTemplateSlots<T, S> = T & {
         | 
| 201 | 
            +
                new (): {
         | 
| 202 | 
            +
                    $slots: S;
         | 
| 203 | 
            +
                };
         | 
| 204 | 
            +
            };
         | 
| 205 | 
            +
             | 
| 206 | 
            +
            declare type __VLS_WithTemplateSlots_2<T, S> = T & {
         | 
| 207 | 
            +
                new (): {
         | 
| 208 | 
            +
                    $slots: S;
         | 
| 209 | 
            +
                };
         | 
| 210 | 
            +
            };
         | 
| 211 | 
            +
             | 
| 212 | 
            +
            declare type __VLS_WithTemplateSlots_3<T, S> = T & {
         | 
| 213 | 
            +
                new (): {
         | 
| 214 | 
            +
                    $slots: S;
         | 
| 215 | 
            +
                };
         | 
| 216 | 
            +
            };
         | 
| 217 | 
            +
             | 
| 218 | 
            +
            declare type CellClassNameFn = (data: {
         | 
| 219 | 
            +
                row: any;
         | 
| 220 | 
            +
                column: any;
         | 
| 221 | 
            +
                rowIndex: number;
         | 
| 222 | 
            +
                columnIndex: number;
         | 
| 223 | 
            +
            }) => string;
         | 
| 224 | 
            +
             | 
| 225 | 
            +
            declare type CellStyleFn = (data: {
         | 
| 226 | 
            +
                row: any;
         | 
| 227 | 
            +
                column: any;
         | 
| 228 | 
            +
                rowIndex: number;
         | 
| 229 | 
            +
                columnIndex: number;
         | 
| 230 | 
            +
            }) => CSSProperties;
         | 
| 231 | 
            +
             | 
| 232 | 
            +
            declare function close_2(): void;
         | 
| 233 | 
            +
             | 
| 234 | 
            +
            export declare type Condition = {
         | 
| 235 | 
            +
                includes: DataItem;
         | 
| 236 | 
            +
                excludes: DataItem;
         | 
| 237 | 
            +
            };
         | 
| 238 | 
            +
             | 
| 239 | 
            +
            export declare const createMorghulis: (options?: MorghulisOptions) => {
         | 
| 240 | 
            +
                install: (Vue: App) => void;
         | 
| 241 | 
            +
            };
         | 
| 242 | 
            +
             | 
| 243 | 
            +
            export declare type Dao = {
         | 
| 244 | 
            +
                save_one: (item: DataItem, callback: DaoItemCallback) => void;
         | 
| 245 | 
            +
                delete_one: (id: DataItemId, callback: DaoCallback) => void;
         | 
| 246 | 
            +
                find_one: (id: DataItemId, callback: DaoItemCallback) => void;
         | 
| 247 | 
            +
                save_many: (array: DataItem[]) => void;
         | 
| 248 | 
            +
                delete_many: (query: Query, callback: DaoCallback) => void;
         | 
| 249 | 
            +
                find_many: (query: Query, callback: DaoResultsCallback) => void;
         | 
| 250 | 
            +
                update_many: (query: Query, template: DataItem, callback: DaoCallback) => void;
         | 
| 251 | 
            +
                status: DaoStatus;
         | 
| 252 | 
            +
                meta: (callback: DaoViewCallback) => void;
         | 
| 253 | 
            +
            };
         | 
| 254 | 
            +
             | 
| 255 | 
            +
            export declare type DaoCallback = () => void;
         | 
| 256 | 
            +
             | 
| 257 | 
            +
            export declare type DaoConfig = {
         | 
| 258 | 
            +
                auth?: boolean;
         | 
| 259 | 
            +
            } & MorghulisChannel;
         | 
| 260 | 
            +
             | 
| 261 | 
            +
            export declare type DaoInfo = {
         | 
| 262 | 
            +
                current: number;
         | 
| 263 | 
            +
                total: number;
         | 
| 264 | 
            +
                page: number;
         | 
| 265 | 
            +
                size: number;
         | 
| 266 | 
            +
            };
         | 
| 267 | 
            +
             | 
| 268 | 
            +
            export declare type DaoItemCallback = (item: DataItem) => void;
         | 
| 269 | 
            +
             | 
| 270 | 
            +
            export declare type DaoPayload = {
         | 
| 271 | 
            +
                results: DataItem[];
         | 
| 272 | 
            +
                total?: number;
         | 
| 273 | 
            +
            };
         | 
| 274 | 
            +
             | 
| 275 | 
            +
            export declare type DaoResultsCallback = (payload: DaoPayload) => void;
         | 
| 276 | 
            +
             | 
| 277 | 
            +
            export declare type DaoStatus = {
         | 
| 278 | 
            +
                loading: boolean;
         | 
| 279 | 
            +
                payload?: Ticker;
         | 
| 280 | 
            +
            };
         | 
| 281 | 
            +
             | 
| 282 | 
            +
            export declare type DaoTypes = 'orm' | 'mon';
         | 
| 283 | 
            +
             | 
| 284 | 
            +
            export declare type DaoViewCallback = (view: MetaView) => void;
         | 
| 285 | 
            +
             | 
| 286 | 
            +
            export declare type DataItem = {
         | 
| 287 | 
            +
                [key: string]: any;
         | 
| 288 | 
            +
            };
         | 
| 289 | 
            +
             | 
| 290 | 
            +
            export declare type DataItemId = string | number;
         | 
| 291 | 
            +
             | 
| 292 | 
            +
            declare type DialogProps = {
         | 
| 293 | 
            +
                width?: string | number;
         | 
| 294 | 
            +
                fullscreen?: boolean;
         | 
| 295 | 
            +
                top?: string;
         | 
| 296 | 
            +
                modal?: boolean;
         | 
| 297 | 
            +
                modalClass?: string;
         | 
| 298 | 
            +
                headerClass?: string;
         | 
| 299 | 
            +
                bodyClass?: string;
         | 
| 300 | 
            +
                footerClass?: string;
         | 
| 301 | 
            +
                appendToBody?: boolean;
         | 
| 302 | 
            +
                appendTo?: string;
         | 
| 303 | 
            +
                lockScroll?: boolean;
         | 
| 304 | 
            +
                openDelay?: number;
         | 
| 305 | 
            +
                closeDelay?: number;
         | 
| 306 | 
            +
                closeOnClickModal?: boolean;
         | 
| 307 | 
            +
                closeOnPressEscape?: boolean;
         | 
| 308 | 
            +
                showClose?: boolean;
         | 
| 309 | 
            +
                beforeClose?: (done: () => void) => void;
         | 
| 310 | 
            +
                draggable?: boolean;
         | 
| 311 | 
            +
                overFlow?: boolean;
         | 
| 312 | 
            +
                center?: boolean;
         | 
| 313 | 
            +
                alignCenter?: boolean;
         | 
| 314 | 
            +
                destroyOnClose?: boolean;
         | 
| 315 | 
            +
                closeIcon?: string;
         | 
| 316 | 
            +
                zIndex?: number;
         | 
| 317 | 
            +
                headerAriaLevel?: string;
         | 
| 318 | 
            +
            };
         | 
| 319 | 
            +
             | 
| 320 | 
            +
            export declare const DTable: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
         | 
| 321 | 
            +
             | 
| 322 | 
            +
            export declare type DTableProps = {
         | 
| 323 | 
            +
                auth?: boolean;
         | 
| 324 | 
            +
                db: DaoTypes;
         | 
| 325 | 
            +
                entity: string;
         | 
| 326 | 
            +
                code?: string;
         | 
| 327 | 
            +
                size?: number;
         | 
| 328 | 
            +
                page?: number;
         | 
| 329 | 
            +
                includes?: DataItem;
         | 
| 330 | 
            +
                excludes?: DataItem;
         | 
| 331 | 
            +
                orders?: Orders;
         | 
| 332 | 
            +
                buttons?: MTableButton[];
         | 
| 333 | 
            +
                columns?: MTableColumn[];
         | 
| 334 | 
            +
            };
         | 
| 335 | 
            +
             | 
| 336 | 
            +
            declare function getData(): any;
         | 
| 337 | 
            +
             | 
| 338 | 
            +
            declare function getSelection_2(): any;
         | 
| 339 | 
            +
             | 
| 340 | 
            +
            declare type HeaderCellClassNameFn = (data: {
         | 
| 341 | 
            +
                row: any;
         | 
| 342 | 
            +
                column: any;
         | 
| 343 | 
            +
                rowIndex: number;
         | 
| 344 | 
            +
                columnIndex: number;
         | 
| 345 | 
            +
            }) => string;
         | 
| 346 | 
            +
             | 
| 347 | 
            +
            declare type HeaderCellStyleFn = (data: {
         | 
| 348 | 
            +
                row: any;
         | 
| 349 | 
            +
                column: any;
         | 
| 350 | 
            +
                rowIndex: number;
         | 
| 351 | 
            +
                columnIndex: number;
         | 
| 352 | 
            +
            }) => CSSProperties;
         | 
| 353 | 
            +
             | 
| 354 | 
            +
            declare type HeaderRowClassNameFn = (data: {
         | 
| 355 | 
            +
                row: any;
         | 
| 356 | 
            +
                rowIndex: number;
         | 
| 357 | 
            +
            }) => string;
         | 
| 358 | 
            +
             | 
| 359 | 
            +
            declare type HeaderRowStyleFn = (data: {
         | 
| 360 | 
            +
                row: any;
         | 
| 361 | 
            +
                rowIndex: number;
         | 
| 362 | 
            +
            }) => CSSProperties;
         | 
| 363 | 
            +
             | 
| 364 | 
            +
            declare type LoadFn = (row: any, treeNode: TreeNode, resolve: (data: any[]) => void) => void;
         | 
| 365 | 
            +
             | 
| 366 | 
            +
            export declare function loadMorghulisSockets(baseURL: string): MorghulisSockets;
         | 
| 367 | 
            +
             | 
| 368 | 
            +
            export declare const MDialog: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
         | 
| 369 | 
            +
             | 
| 370 | 
            +
            export declare type Meta = {
         | 
| 371 | 
            +
                db: DaoTypes;
         | 
| 372 | 
            +
                entity: string;
         | 
| 373 | 
            +
                code?: string;
         | 
| 374 | 
            +
            };
         | 
| 375 | 
            +
             | 
| 376 | 
            +
            export declare type MetaField = {
         | 
| 377 | 
            +
                prop?: string;
         | 
| 378 | 
            +
                label?: string;
         | 
| 379 | 
            +
                name?: string;
         | 
| 380 | 
            +
                domain?: string;
         | 
| 381 | 
            +
                tool?: string;
         | 
| 382 | 
            +
                refer?: MetaRefer;
         | 
| 383 | 
            +
                format?: MetaFormat;
         | 
| 384 | 
            +
                unit?: string | null;
         | 
| 385 | 
            +
                not_null?: boolean;
         | 
| 386 | 
            +
                read_only?: boolean;
         | 
| 387 | 
            +
                sortable?: boolean;
         | 
| 388 | 
            +
                allow_search?: boolean;
         | 
| 389 | 
            +
                allow_download?: boolean;
         | 
| 390 | 
            +
                allow_upload?: boolean;
         | 
| 391 | 
            +
                allow_update?: boolean;
         | 
| 392 | 
            +
                column_width?: number;
         | 
| 393 | 
            +
                align?: 'left' | 'center' | 'right';
         | 
| 394 | 
            +
                fixed?: '' | 'left' | 'right';
         | 
| 395 | 
            +
                header_color?: string | null;
         | 
| 396 | 
            +
                cell_color?: string | null;
         | 
| 397 | 
            +
                edit_on_table?: boolean;
         | 
| 398 | 
            +
                hide_on_table?: boolean;
         | 
| 399 | 
            +
                span?: number;
         | 
| 400 | 
            +
                hide_on_form?: boolean;
         | 
| 401 | 
            +
                hide_on_form_edit?: boolean;
         | 
| 402 | 
            +
                hide_on_form_insert?: boolean;
         | 
| 403 | 
            +
                hide_on_form_branch?: boolean;
         | 
| 404 | 
            +
                hide_on_form_leaf?: boolean;
         | 
| 405 | 
            +
            };
         | 
| 406 | 
            +
             | 
| 407 | 
            +
            export declare type MetaFormat = {
         | 
| 408 | 
            +
                maxlength?: number;
         | 
| 409 | 
            +
                type?: 'date' | 'datetime';
         | 
| 410 | 
            +
                min?: number | null;
         | 
| 411 | 
            +
                max?: number | null;
         | 
| 412 | 
            +
                step?: number | null;
         | 
| 413 | 
            +
                precision?: number | null;
         | 
| 414 | 
            +
                step_strictly?: boolean;
         | 
| 415 | 
            +
                accept?: string;
         | 
| 416 | 
            +
                width?: number | string;
         | 
| 417 | 
            +
                height?: number | string;
         | 
| 418 | 
            +
                locket?: boolean;
         | 
| 419 | 
            +
            };
         | 
| 420 | 
            +
             | 
| 421 | 
            +
            export declare type MetaRefer = {
         | 
| 422 | 
            +
                entity?: string;
         | 
| 423 | 
            +
                value?: string;
         | 
| 424 | 
            +
                label?: string;
         | 
| 425 | 
            +
                display?: string;
         | 
| 426 | 
            +
                multiple?: boolean;
         | 
| 427 | 
            +
                strict?: boolean;
         | 
| 428 | 
            +
                remote?: boolean;
         | 
| 429 | 
            +
                includes?: object;
         | 
| 430 | 
            +
                excludes?: object;
         | 
| 431 | 
            +
                root?: number;
         | 
| 432 | 
            +
            };
         | 
| 433 | 
            +
             | 
| 434 | 
            +
            export declare type MetaView = {
         | 
| 435 | 
            +
                fields?: {
         | 
| 436 | 
            +
                    [key: string]: MetaField;
         | 
| 437 | 
            +
                };
         | 
| 438 | 
            +
                path?: string;
         | 
| 439 | 
            +
                code?: string;
         | 
| 440 | 
            +
                meta_name?: string;
         | 
| 441 | 
            +
                view_name?: string;
         | 
| 442 | 
            +
                form_width?: number;
         | 
| 443 | 
            +
                form_height?: number;
         | 
| 444 | 
            +
                table_width?: number;
         | 
| 445 | 
            +
                table_height?: number;
         | 
| 446 | 
            +
                enable?: boolean;
         | 
| 447 | 
            +
                show_header?: boolean;
         | 
| 448 | 
            +
                allow_batch?: boolean;
         | 
| 449 | 
            +
                allow_search?: boolean;
         | 
| 450 | 
            +
                allow_sort?: boolean;
         | 
| 451 | 
            +
                allow_pop?: boolean;
         | 
| 452 | 
            +
                allow_insert?: boolean;
         | 
| 453 | 
            +
                allow_edit?: boolean;
         | 
| 454 | 
            +
                allow_remove?: boolean;
         | 
| 455 | 
            +
                allow_download?: boolean;
         | 
| 456 | 
            +
                allow_upload?: boolean;
         | 
| 457 | 
            +
            };
         | 
| 458 | 
            +
             | 
| 459 | 
            +
            export declare const MForm: DefineComponent<__VLS_Props, {
         | 
| 460 | 
            +
                getData: typeof getData;
         | 
| 461 | 
            +
            }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
         | 
| 462 | 
            +
             | 
| 463 | 
            +
            export declare type MorghulisChannel = {
         | 
| 464 | 
            +
                start?: () => void;
         | 
| 465 | 
            +
                stop?: () => void;
         | 
| 466 | 
            +
                proceed?: (payload: any) => void;
         | 
| 467 | 
            +
            };
         | 
| 468 | 
            +
             | 
| 469 | 
            +
            export declare type MorghulisChannels = {
         | 
| 470 | 
            +
                [key: string]: MorghulisChannel;
         | 
| 471 | 
            +
            };
         | 
| 472 | 
            +
             | 
| 473 | 
            +
            export declare type MorghulisDialogConfig = {
         | 
| 474 | 
            +
                title?: string;
         | 
| 475 | 
            +
                subtitle?: string;
         | 
| 476 | 
            +
            };
         | 
| 477 | 
            +
             | 
| 478 | 
            +
            export declare type MorghulisDialogProps = DialogProps & {
         | 
| 479 | 
            +
                title?: string;
         | 
| 480 | 
            +
                subtitle?: string;
         | 
| 481 | 
            +
                confirm?: (data: any, done: () => void) => void;
         | 
| 482 | 
            +
                cancel?: (data: any, done: () => void) => void;
         | 
| 483 | 
            +
                confirmButtonText?: string;
         | 
| 484 | 
            +
                cancelButtonText?: string;
         | 
| 485 | 
            +
            };
         | 
| 486 | 
            +
             | 
| 487 | 
            +
            export declare const morghulisDialogPropsDefaults: MorghulisDialogProps;
         | 
| 488 | 
            +
             | 
| 489 | 
            +
            export declare interface MorghulisMessageBoxInterface {
         | 
| 490 | 
            +
                info: (content: string, title?: string) => Promise<any>;
         | 
| 491 | 
            +
                success: (content: string, title?: string) => Promise<any>;
         | 
| 492 | 
            +
                warning: (content: string, title?: string) => Promise<any>;
         | 
| 493 | 
            +
                error: (content: string, title?: string) => Promise<any>;
         | 
| 494 | 
            +
            }
         | 
| 495 | 
            +
             | 
| 496 | 
            +
            export declare interface MorghulisMessageInterface {
         | 
| 497 | 
            +
                info: (content: string) => void;
         | 
| 498 | 
            +
                success: (content: string) => void;
         | 
| 499 | 
            +
                warning: (content: string) => void;
         | 
| 500 | 
            +
                error: (content: string) => void;
         | 
| 501 | 
            +
            }
         | 
| 502 | 
            +
             | 
| 503 | 
            +
            export declare type MorghulisOptions = {
         | 
| 504 | 
            +
                baseURL?: string;
         | 
| 505 | 
            +
                minioURL?: string;
         | 
| 506 | 
            +
            };
         | 
| 507 | 
            +
             | 
| 508 | 
            +
            export declare type MorghulisSockets = {
         | 
| 509 | 
            +
                status: Ref<string>;
         | 
| 510 | 
            +
                open: () => void;
         | 
| 511 | 
            +
                channels: MorghulisChannels;
         | 
| 512 | 
            +
            };
         | 
| 513 | 
            +
             | 
| 514 | 
            +
            export declare type MorghulisTableProps = TableProps & {
         | 
| 515 | 
            +
                loading?: boolean;
         | 
| 516 | 
            +
                view: MetaView;
         | 
| 517 | 
            +
                buttons?: MTableButton[];
         | 
| 518 | 
            +
                columns?: MTableColumn[];
         | 
| 519 | 
            +
                sortableCallback?: SortableCallbackFn;
         | 
| 520 | 
            +
            };
         | 
| 521 | 
            +
             | 
| 522 | 
            +
            export declare const morghulisTablePropsDefaults: {
         | 
| 523 | 
            +
                border: boolean;
         | 
| 524 | 
            +
                fit: boolean;
         | 
| 525 | 
            +
                showHeader: boolean;
         | 
| 526 | 
            +
                highlightCurrentRow: boolean;
         | 
| 527 | 
            +
                headerCellClassName: string;
         | 
| 528 | 
            +
                showOverflowTooltip: boolean;
         | 
| 529 | 
            +
            };
         | 
| 530 | 
            +
             | 
| 531 | 
            +
            export declare const MTable: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
         | 
| 532 | 
            +
             | 
| 533 | 
            +
            export declare type MTableButton = {
         | 
| 534 | 
            +
                size?: UISizeTypes;
         | 
| 535 | 
            +
                handler?: (row: any, event?: Event) => void;
         | 
| 536 | 
            +
                title?: string | Function;
         | 
| 537 | 
            +
                type?: UITextTypes | Function;
         | 
| 538 | 
            +
                link?: boolean | Function;
         | 
| 539 | 
            +
                plain?: boolean | Function;
         | 
| 540 | 
            +
                text?: boolean | Function;
         | 
| 541 | 
            +
                round?: boolean | Function;
         | 
| 542 | 
            +
                circle?: boolean | Function;
         | 
| 543 | 
            +
                disabled?: boolean | Function;
         | 
| 544 | 
            +
                dark?: boolean | Function;
         | 
| 545 | 
            +
                color?: string | Function;
         | 
| 546 | 
            +
                tag?: string | Function;
         | 
| 547 | 
            +
            };
         | 
| 548 | 
            +
             | 
| 549 | 
            +
            export declare type MTableColumn = {
         | 
| 550 | 
            +
                label: string;
         | 
| 551 | 
            +
                component: Component;
         | 
| 552 | 
            +
                width?: string | number;
         | 
| 553 | 
            +
            };
         | 
| 554 | 
            +
             | 
| 555 | 
            +
            declare function open_2(data?: any, config?: MorghulisDialogConfig): void;
         | 
| 556 | 
            +
             | 
| 557 | 
            +
            export declare type Orders = {
         | 
| 558 | 
            +
                [key: string]: 1 | -1;
         | 
| 559 | 
            +
            };
         | 
| 560 | 
            +
             | 
| 561 | 
            +
            declare class Query {
         | 
| 562 | 
            +
                condition: Condition;
         | 
| 563 | 
            +
                orders: Orders;
         | 
| 564 | 
            +
                page: number;
         | 
| 565 | 
            +
                size: number;
         | 
| 566 | 
            +
                template: DataItem;
         | 
| 567 | 
            +
                search: Condition[];
         | 
| 568 | 
            +
                constructor(queryBean: QueryBean);
         | 
| 569 | 
            +
                private clearCondition;
         | 
| 570 | 
            +
                private getTemplate;
         | 
| 571 | 
            +
            }
         | 
| 572 | 
            +
             | 
| 573 | 
            +
            declare type QueryBean = {
         | 
| 574 | 
            +
                includes?: DataItem;
         | 
| 575 | 
            +
                excludes?: DataItem;
         | 
| 576 | 
            +
                orders?: Orders;
         | 
| 577 | 
            +
                page?: number;
         | 
| 578 | 
            +
                size?: number;
         | 
| 579 | 
            +
            };
         | 
| 580 | 
            +
             | 
| 581 | 
            +
            /**
         | 
| 582 | 
            +
             * style function
         | 
| 583 | 
            +
             */
         | 
| 584 | 
            +
            declare type RowClassNameFn = (data: {
         | 
| 585 | 
            +
                row: any;
         | 
| 586 | 
            +
                rowIndex: number;
         | 
| 587 | 
            +
            }) => string;
         | 
| 588 | 
            +
             | 
| 589 | 
            +
            /**
         | 
| 590 | 
            +
             * control function
         | 
| 591 | 
            +
             */
         | 
| 592 | 
            +
            declare type RowKeyFn = (row: any) => string;
         | 
| 593 | 
            +
             | 
| 594 | 
            +
            declare type RowStyleFn = (data: {
         | 
| 595 | 
            +
                row: any;
         | 
| 596 | 
            +
                rowIndex: number;
         | 
| 597 | 
            +
            }) => CSSProperties;
         | 
| 598 | 
            +
             | 
| 599 | 
            +
            export declare type SortableCallbackFn = (newIndex: number, oldIndex: number) => void;
         | 
| 600 | 
            +
             | 
| 601 | 
            +
            declare type SpanMethodFn = (data: {
         | 
| 602 | 
            +
                row: any;
         | 
| 603 | 
            +
                column: any;
         | 
| 604 | 
            +
                rowIndex: number;
         | 
| 605 | 
            +
                columnIndex: number;
         | 
| 606 | 
            +
            }) => number[] | {
         | 
| 607 | 
            +
                rowspan: number;
         | 
| 608 | 
            +
                colspan: number;
         | 
| 609 | 
            +
            } | void;
         | 
| 610 | 
            +
             | 
| 611 | 
            +
            declare type SummaryMethodFn = (data: {
         | 
| 612 | 
            +
                columns: any[];
         | 
| 613 | 
            +
                data: any[];
         | 
| 614 | 
            +
            }) => (VNode | string)[];
         | 
| 615 | 
            +
             | 
| 616 | 
            +
            export declare type TablePopper = {
         | 
| 617 | 
            +
                ref?: any;
         | 
| 618 | 
            +
                visible?: boolean;
         | 
| 619 | 
            +
                type?: string | null | undefined;
         | 
| 620 | 
            +
                data?: any;
         | 
| 621 | 
            +
                placement?: 'left' | 'right' | 'top' | 'bottom' | null | string;
         | 
| 622 | 
            +
            };
         | 
| 623 | 
            +
             | 
| 624 | 
            +
            export declare interface TableProps {
         | 
| 625 | 
            +
                data: any[];
         | 
| 626 | 
            +
                height?: number | string;
         | 
| 627 | 
            +
                maxHeight?: number | string;
         | 
| 628 | 
            +
                stripe?: boolean;
         | 
| 629 | 
            +
                border?: boolean;
         | 
| 630 | 
            +
                size?: '' | 'large' | 'default' | 'small';
         | 
| 631 | 
            +
                fit?: boolean;
         | 
| 632 | 
            +
                showHeader?: boolean;
         | 
| 633 | 
            +
                highlightCurrentRow?: boolean;
         | 
| 634 | 
            +
                currentRowKey?: string | number;
         | 
| 635 | 
            +
                rowClassName?: RowClassNameFn | string;
         | 
| 636 | 
            +
                rowStyle?: RowStyleFn | CSSProperties;
         | 
| 637 | 
            +
                cellClassName?: CellClassNameFn | string;
         | 
| 638 | 
            +
                cellStyle?: CellStyleFn | CSSProperties;
         | 
| 639 | 
            +
                headerRowClassName?: HeaderRowClassNameFn | string;
         | 
| 640 | 
            +
                headerRowStyle?: HeaderRowStyleFn | CSSProperties;
         | 
| 641 | 
            +
                headerCellClassName?: HeaderCellClassNameFn | string;
         | 
| 642 | 
            +
                headerCellStyle?: HeaderCellStyleFn | CSSProperties;
         | 
| 643 | 
            +
                rowKey?: RowKeyFn | string;
         | 
| 644 | 
            +
                emptyText?: string;
         | 
| 645 | 
            +
                defaultExpandAll?: boolean;
         | 
| 646 | 
            +
                expandRowKeys?: string[];
         | 
| 647 | 
            +
                defaultSort?: Sort;
         | 
| 648 | 
            +
                tooltipEffect?: 'dark' | 'light';
         | 
| 649 | 
            +
                tooltipOptions?: Pick<ElTooltipProps, 'effect' | 'enterable' | 'hideAfter' | 'offset' | 'placement' | 'popperClass' | 'popperOptions' | 'showAfter' | 'showArrow'>;
         | 
| 650 | 
            +
                appendFilterPanelTo?: string;
         | 
| 651 | 
            +
                showSummary?: boolean;
         | 
| 652 | 
            +
                sumText?: string;
         | 
| 653 | 
            +
                summaryMethod?: SummaryMethodFn;
         | 
| 654 | 
            +
                spanMethod?: SpanMethodFn;
         | 
| 655 | 
            +
                selectOnIndeterminate?: boolean;
         | 
| 656 | 
            +
                indent?: number;
         | 
| 657 | 
            +
                lazy?: boolean;
         | 
| 658 | 
            +
                load?: LoadFn;
         | 
| 659 | 
            +
                treeProps?: {
         | 
| 660 | 
            +
                    hasChildren?: string;
         | 
| 661 | 
            +
                    children?: string;
         | 
| 662 | 
            +
                    checkStrictly?: boolean;
         | 
| 663 | 
            +
                };
         | 
| 664 | 
            +
                tableLayout?: 'fixed' | 'auto';
         | 
| 665 | 
            +
                scrollbarAlwaysOn?: boolean;
         | 
| 666 | 
            +
                showOverflowTooltip?: boolean;
         | 
| 667 | 
            +
                flexible?: boolean;
         | 
| 668 | 
            +
                scrollbarTabindex?: string | number;
         | 
| 669 | 
            +
                allowDragLastColumn?: boolean;
         | 
| 670 | 
            +
                tooltipFormatter?: TooltipFormatterFn;
         | 
| 671 | 
            +
                preserveExpandedContent?: boolean;
         | 
| 672 | 
            +
            }
         | 
| 673 | 
            +
             | 
| 674 | 
            +
            export declare type Ticker = {
         | 
| 675 | 
            +
                length: number | string;
         | 
| 676 | 
            +
                index: number | string;
         | 
| 677 | 
            +
                percentage: number;
         | 
| 678 | 
            +
            } | null;
         | 
| 679 | 
            +
             | 
| 680 | 
            +
            declare type TooltipFormatterFn = (data: {
         | 
| 681 | 
            +
                row: any;
         | 
| 682 | 
            +
                column: any;
         | 
| 683 | 
            +
                cellValue: any;
         | 
| 684 | 
            +
            }) => VNode | string;
         | 
| 685 | 
            +
             | 
| 686 | 
            +
            export declare type UIFeedbackTypes = "success" | "info" | "warning" | "error";
         | 
| 687 | 
            +
             | 
| 688 | 
            +
            export declare type UISizeTypes = 'default' | 'small' | 'large' | "";
         | 
| 689 | 
            +
             | 
| 690 | 
            +
            export declare type UITextTypes = "success" | "info" | "warning" | "danger" | 'primary';
         | 
| 691 | 
            +
             | 
| 692 | 
            +
            export declare function useMorghulisAuthorize(): {
         | 
| 693 | 
            +
                $client: string;
         | 
| 694 | 
            +
                user: () => any;
         | 
| 695 | 
            +
                check: (uid?: any) => boolean;
         | 
| 696 | 
            +
                login: (uid: any) => void;
         | 
| 697 | 
            +
                logout: () => void;
         | 
| 698 | 
            +
                bearer: () => string;
         | 
| 699 | 
            +
            };
         | 
| 700 | 
            +
             | 
| 701 | 
            +
            export declare function useMorghulisChannel(auth?: boolean): {
         | 
| 702 | 
            +
                register: (handler: string, channel: MorghulisChannel, url?: string) => void;
         | 
| 703 | 
            +
                activate: (body: any) => void;
         | 
| 704 | 
            +
                status: {
         | 
| 705 | 
            +
                    loading: boolean;
         | 
| 706 | 
            +
                    payload?: {
         | 
| 707 | 
            +
                        length: number | string;
         | 
| 708 | 
            +
                        index: number | string;
         | 
| 709 | 
            +
                        percentage: number;
         | 
| 710 | 
            +
                    };
         | 
| 711 | 
            +
                };
         | 
| 712 | 
            +
            };
         | 
| 713 | 
            +
             | 
| 714 | 
            +
            export declare function useMorghulisCookies(): {
         | 
| 715 | 
            +
                get: (path: string) => any;
         | 
| 716 | 
            +
                set: (path: string, value?: any) => void;
         | 
| 717 | 
            +
                remove: (path: string) => void;
         | 
| 718 | 
            +
                load: (key: string, value?: any) => any;
         | 
| 719 | 
            +
            };
         | 
| 720 | 
            +
             | 
| 721 | 
            +
            export declare function useMorghulisRequest(): {
         | 
| 722 | 
            +
                getHttpRequest: (auth?: boolean) => AxiosInstance;
         | 
| 723 | 
            +
                all: () => void;
         | 
| 724 | 
            +
            };
         | 
| 725 | 
            +
             | 
| 726 | 
            +
            export declare function useMorghulisSockets(): {
         | 
| 727 | 
            +
                open: () => void;
         | 
| 728 | 
            +
                status: Ref<string, string>;
         | 
| 729 | 
            +
            };
         | 
| 730 | 
            +
             | 
| 731 | 
            +
            export { }
         |