@juzhenfe/page-model 3.9.48 → 3.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.d.ts CHANGED
@@ -1,7 +1,5 @@
1
1
  import { InstallOptions } from './components/page-model/type';
2
2
  import defineConfig from './utils/define-config';
3
- import useFilter from './components/page-model/patches/pach-filter-creator';
4
- import useScene from './components/page-model/patches/pach-scenes-creator';
5
3
  import { App } from 'vue';
6
4
  import ButtonsRenderer from './components/buttons-renderer/index.vue';
7
5
  import FormDialog from './components/form-dialog/index.vue';
@@ -14,7 +12,7 @@ declare const columnTools: {
14
12
  saveTableColumns: any;
15
13
  genSaveColumnName: any;
16
14
  };
17
- export { defineConfig, useFilter, useScene, ButtonsRenderer, TableCellRenderer, FormDialog, FormDrawer, EditableTable, defineEditableTable, columnTools, TableColumnSetting };
15
+ export { defineConfig, ButtonsRenderer, TableCellRenderer, FormDialog, FormDrawer, EditableTable, defineEditableTable, columnTools, TableColumnSetting };
18
16
  declare const ModelComponent: {
19
17
  install: (app: App, options: InstallOptions) => App<any>;
20
18
  version: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juzhenfe/page-model",
3
- "version": "3.9.48",
3
+ "version": "3.10.0",
4
4
  "types": "dist/main.d.ts",
5
5
  "main": "dist/index.umd.js",
6
6
  "keywords": [
@@ -1,81 +0,0 @@
1
- declare const _sfc_main: import("vue").DefineComponent<{
2
- action: {
3
- type: any;
4
- required: true;
5
- };
6
- manager: {
7
- type: any;
8
- required: false;
9
- };
10
- }, {
11
- props: any;
12
- ButtonsRenderer: import("vue").DefineComponent<{
13
- els: {
14
- type: ArrayConstructor;
15
- required: true;
16
- };
17
- context: {
18
- type: any;
19
- required: false;
20
- };
21
- executeData: {
22
- type: ArrayConstructor;
23
- required: false;
24
- default: () => any[];
25
- };
26
- }, {
27
- props: any;
28
- isOpenAuthButton: import("vue").Ref<boolean>;
29
- authButtons: import("vue").Ref<string[]>;
30
- showEls: import("vue").ComputedRef<any>;
31
- BEMSpace: string;
32
- createBEMName: (name: string) => string;
33
- emit: (event: "add" | "upd" | "del" | "custom", ...args: any[]) => void;
34
- addButtonHandler: (button: PageModel.Button<AnyObject, any>) => boolean;
35
- updButtonHandler: (button: PageModel.Button<AnyObject, any>) => boolean;
36
- delButtonHandler: (button: PageModel.Button<AnyObject, any>) => boolean;
37
- importButtonHandler: (button: PageModel.Button<AnyObject, any>) => boolean;
38
- copyButtonHandler: (button: PageModel.Button<AnyObject, any>) => boolean;
39
- eventButtonHandler: (button: PageModel.Button<AnyObject, any>) => boolean;
40
- eventChain: import("../../utils/event-chain").default;
41
- execButtonClickEvent: (button: PageModel.Button<AnyObject, any>) => void;
42
- handleCommand: (command: string) => void;
43
- handleButtonClick: (index: number) => void;
44
- readonly ArrowDown: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
45
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("add" | "upd" | "del" | "custom")[], "add" | "upd" | "del" | "custom", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
46
- els: {
47
- type: ArrayConstructor;
48
- required: true;
49
- };
50
- context: {
51
- type: any;
52
- required: false;
53
- };
54
- executeData: {
55
- type: ArrayConstructor;
56
- required: false;
57
- default: () => any[];
58
- };
59
- }>> & {
60
- onAdd?: (...args: any[]) => any;
61
- onUpd?: (...args: any[]) => any;
62
- onDel?: (...args: any[]) => any;
63
- onImport?: (...args: any[]) => any;
64
- onCustom?: (...args: any[]) => any;
65
- }, {
66
- context: any;
67
- executeData: unknown[];
68
- }, {}>;
69
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
70
- action: {
71
- type: any;
72
- required: true;
73
- };
74
- manager: {
75
- type: any;
76
- required: false;
77
- };
78
- }>>, {
79
- manager: any;
80
- }, {}>;
81
- export default _sfc_main;
@@ -1,10 +0,0 @@
1
- /// <reference path="../../types/common.d.ts" />
2
-
3
- declare namespace PageModel {
4
-
5
- type ActionItem = Button;
6
-
7
- type Action = {
8
- els: ActionItem[];
9
- }
10
- }
@@ -1,5 +0,0 @@
1
- type CreateFilterConfig = {
2
- url: string;
3
- };
4
- declare const patchFilterCreator: (opt: CreateFilterConfig) => (config: PageModel.Config) => PageModel.Config<AnyObject, any>;
5
- export default patchFilterCreator;
@@ -1,5 +0,0 @@
1
- type CreateScenesConfig = {
2
- url: string;
3
- };
4
- declare const patchScenesCreator: (opt: CreateScenesConfig) => (config: PageModel.Config) => PageModel.Config<AnyObject, any>;
5
- export default patchScenesCreator;
@@ -1,2 +0,0 @@
1
- declare const patchConfigAction: (config: PageModel.Config) => PageModel.Config<AnyObject, any>;
2
- export default patchConfigAction;