@byteluck-fe/model-driven-controls 7.0.0-props.47 → 7.0.0-props.49
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/esm/api-doc-index.js +2 -0
- package/dist/esm/formControls/Barcode/designer.js +252 -0
- package/dist/esm/formControls/Barcode/index.js +11 -0
- package/dist/esm/formControls/Barcode/property.js +133 -0
- package/dist/esm/formControls/Barcode/runtime.js +114 -0
- package/dist/esm/formControls/Barcode/schema.json +206 -0
- package/dist/esm/formControls/QrCode/designer.js +337 -0
- package/dist/esm/formControls/QrCode/index.js +11 -0
- package/dist/esm/formControls/QrCode/property.js +134 -0
- package/dist/esm/formControls/QrCode/runtime.js +114 -0
- package/dist/esm/formControls/QrCode/schema.json +256 -0
- package/dist/esm/formControls/Switch/designer.js +5 -1
- package/dist/esm/formControls/index.js +2 -0
- package/dist/index.umd.js +1 -1
- package/dist/types/api-doc-index.d.ts +2 -0
- package/dist/types/formControls/Barcode/designer.d.ts +15 -0
- package/dist/types/formControls/Barcode/index.d.ts +12 -0
- package/dist/types/formControls/Barcode/property.d.ts +72 -0
- package/dist/types/formControls/Barcode/runtime.d.ts +12 -0
- package/dist/types/formControls/QrCode/designer.d.ts +15 -0
- package/dist/types/formControls/QrCode/index.d.ts +12 -0
- package/dist/types/formControls/QrCode/property.d.ts +79 -0
- package/dist/types/formControls/QrCode/runtime.d.ts +12 -0
- package/dist/types/formControls/index.d.ts +4 -0
- package/dist/types/type.d.ts +3 -1
- package/package.json +5 -5
|
@@ -22,6 +22,8 @@ export { default as OperationButton } from './baseControls/OperationButton/prope
|
|
|
22
22
|
export { default as BatchDeleteButton } from './baseControls/BatchDeleteButton/property';
|
|
23
23
|
export { default as Switch } from './formControls/Switch/property';
|
|
24
24
|
export { default as Tag } from './formControls/Tag/property';
|
|
25
|
+
export { default as Barcode } from './formControls/Barcode/property';
|
|
26
|
+
export { default as QrCode } from './formControls/QrCode/property';
|
|
25
27
|
export { default as VarcharColumn } from './columnControls/VarcharColumn/property';
|
|
26
28
|
export { default as TextColumn } from './columnControls/TextColumn/property';
|
|
27
29
|
export { default as DecimalColumn } from './columnControls/DecimalColumn/property';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DesignerFormControl, Schema, SettingOption } from '@byteluck-fe/model-driven-core';
|
|
2
|
+
import { FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
3
|
+
import BarcodeProperty from './property';
|
|
4
|
+
declare class BarcodeControl extends DesignerFormControl {
|
|
5
|
+
static controlEventKeys: string[];
|
|
6
|
+
static get controlName(): string;
|
|
7
|
+
static get controlIcon(): string;
|
|
8
|
+
static get controlType(): string;
|
|
9
|
+
static controlFieldType: FieldTypes;
|
|
10
|
+
static readonly setting: SettingOption[];
|
|
11
|
+
readonly props: BarcodeProperty;
|
|
12
|
+
constructor(props?: Partial<Schema<'barcode'>>);
|
|
13
|
+
}
|
|
14
|
+
export default BarcodeControl;
|
|
15
|
+
export { BarcodeControl as DesignerBarcodeControl };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Designer from './designer';
|
|
2
|
+
import Runtime from './runtime';
|
|
3
|
+
import Property from './property';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
Designer: typeof Designer;
|
|
6
|
+
Runtime: typeof Runtime;
|
|
7
|
+
Property: typeof Property;
|
|
8
|
+
};
|
|
9
|
+
export default _default;
|
|
10
|
+
export * from './designer';
|
|
11
|
+
export * from './runtime';
|
|
12
|
+
export * from './property';
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { BaseControlProperty, BaseControlPropertyInterface, BaseControlPropertyRules, BaseControlPropertyRuntimeRules } from '@byteluck-fe/model-driven-core';
|
|
2
|
+
declare class BarcodePropertyRules extends BaseControlPropertyRules {
|
|
3
|
+
constructor(props: BarcodeProperty);
|
|
4
|
+
}
|
|
5
|
+
declare class BarcodePropertyRuntimeRules extends BaseControlPropertyRuntimeRules {
|
|
6
|
+
constructor(props: BarcodeProperty);
|
|
7
|
+
}
|
|
8
|
+
interface BarcodePropertyInterface extends BaseControlPropertyInterface {
|
|
9
|
+
/**
|
|
10
|
+
* 默认值
|
|
11
|
+
* @defaultValue ''
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
14
|
+
defaultValue: string;
|
|
15
|
+
/**
|
|
16
|
+
* 条码内容(编码文本)
|
|
17
|
+
* @defaultValue ''
|
|
18
|
+
* @public
|
|
19
|
+
*/
|
|
20
|
+
codeContent: string;
|
|
21
|
+
/**
|
|
22
|
+
* 条码高度;单位 px
|
|
23
|
+
* @defaultValue 40
|
|
24
|
+
* @public
|
|
25
|
+
*/
|
|
26
|
+
codeHeight: number;
|
|
27
|
+
/**
|
|
28
|
+
* 条码宽度;单位 px
|
|
29
|
+
* @defaultValue 200
|
|
30
|
+
* @public
|
|
31
|
+
*/
|
|
32
|
+
codeWidth: number;
|
|
33
|
+
/**
|
|
34
|
+
* 边距;单位 px
|
|
35
|
+
* @defaultValue 0
|
|
36
|
+
* @public
|
|
37
|
+
*/
|
|
38
|
+
codeMargin: number;
|
|
39
|
+
/**
|
|
40
|
+
* 背景色
|
|
41
|
+
* @defaultValue '#ffffff'
|
|
42
|
+
* @public
|
|
43
|
+
*/
|
|
44
|
+
backgroundColor: string;
|
|
45
|
+
/**
|
|
46
|
+
* 条码颜色
|
|
47
|
+
* @defaultValue '#000000'
|
|
48
|
+
* @public
|
|
49
|
+
*/
|
|
50
|
+
barcodeColor: string;
|
|
51
|
+
/**
|
|
52
|
+
* 对齐;取值:left:左对齐;center:居中;right:右对齐;
|
|
53
|
+
* @defaultValue 'left'
|
|
54
|
+
* @public
|
|
55
|
+
*/
|
|
56
|
+
align: 'left' | 'center' | 'right';
|
|
57
|
+
}
|
|
58
|
+
declare class BarcodeProperty extends BaseControlProperty implements BarcodePropertyInterface {
|
|
59
|
+
static readonly Rules: typeof BarcodePropertyRules;
|
|
60
|
+
static readonly RuntimeRules: typeof BarcodePropertyRuntimeRules;
|
|
61
|
+
defaultValue: string;
|
|
62
|
+
codeContent: string;
|
|
63
|
+
codeHeight: number;
|
|
64
|
+
codeWidth: number;
|
|
65
|
+
codeMargin: number;
|
|
66
|
+
backgroundColor: string;
|
|
67
|
+
barcodeColor: string;
|
|
68
|
+
align: 'left' | 'center' | 'right';
|
|
69
|
+
constructor(props?: Partial<BarcodeProperty>);
|
|
70
|
+
}
|
|
71
|
+
export default BarcodeProperty;
|
|
72
|
+
export { BarcodeProperty, BarcodePropertyInterface, BarcodePropertyRules, BarcodePropertyRuntimeRules, };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RuntimeFormControl } from '@byteluck-fe/model-driven-core';
|
|
2
|
+
import { FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
3
|
+
import BarcodeProperty from './property';
|
|
4
|
+
import { Schema } from '@byteluck-fe/model-driven-core';
|
|
5
|
+
declare class BarcodeControl extends RuntimeFormControl {
|
|
6
|
+
static get controlType(): string;
|
|
7
|
+
static controlFieldType: FieldTypes;
|
|
8
|
+
readonly props: BarcodeProperty;
|
|
9
|
+
constructor(props?: Partial<Schema<'barcode'>>);
|
|
10
|
+
}
|
|
11
|
+
export default BarcodeControl;
|
|
12
|
+
export { BarcodeControl as RuntimeBarcodeControl };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DesignerFormControl, Schema, SettingOption } from '@byteluck-fe/model-driven-core';
|
|
2
|
+
import { FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
3
|
+
import QrCodeProperty from './property';
|
|
4
|
+
declare class QrCodeControl extends DesignerFormControl {
|
|
5
|
+
static controlEventKeys: string[];
|
|
6
|
+
static get controlName(): string;
|
|
7
|
+
static get controlIcon(): string;
|
|
8
|
+
static get controlType(): string;
|
|
9
|
+
static controlFieldType: FieldTypes;
|
|
10
|
+
static readonly setting: SettingOption[];
|
|
11
|
+
readonly props: QrCodeProperty;
|
|
12
|
+
constructor(props?: Partial<Schema<'qr-code'>>);
|
|
13
|
+
}
|
|
14
|
+
export default QrCodeControl;
|
|
15
|
+
export { QrCodeControl as DesignerQrCodeControl };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Designer from './designer';
|
|
2
|
+
import Runtime from './runtime';
|
|
3
|
+
import Property from './property';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
Designer: typeof Designer;
|
|
6
|
+
Runtime: typeof Runtime;
|
|
7
|
+
Property: typeof Property;
|
|
8
|
+
};
|
|
9
|
+
export default _default;
|
|
10
|
+
export * from './designer';
|
|
11
|
+
export * from './runtime';
|
|
12
|
+
export * from './property';
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { BaseControlProperty, BaseControlPropertyInterface, BaseControlPropertyRules, BaseControlPropertyRuntimeRules } from '@byteluck-fe/model-driven-core';
|
|
2
|
+
declare class QrCodePropertyRules extends BaseControlPropertyRules {
|
|
3
|
+
constructor(props: QrCodeProperty);
|
|
4
|
+
}
|
|
5
|
+
declare class QrCodePropertyRuntimeRules extends BaseControlPropertyRuntimeRules {
|
|
6
|
+
constructor(props: QrCodeProperty);
|
|
7
|
+
}
|
|
8
|
+
interface QrCodePropertyInterface extends BaseControlPropertyInterface {
|
|
9
|
+
/**
|
|
10
|
+
* 默认值
|
|
11
|
+
* @defaultValue ''
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
14
|
+
defaultValue: string;
|
|
15
|
+
/**
|
|
16
|
+
* 二维码版本;取值:auto:自动;1:V1;2:V2;3:V3;4:V4;5:V5;6:V6;7:V7;8:V8;9:V9;10:V10;
|
|
17
|
+
* @defaultValue 'auto'
|
|
18
|
+
* @public
|
|
19
|
+
*/
|
|
20
|
+
qrVersion: 'auto' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10';
|
|
21
|
+
/**
|
|
22
|
+
* 容错级别;取值:L:低;M:中;Q:较高;H:高;
|
|
23
|
+
* @defaultValue 'M'
|
|
24
|
+
* @public
|
|
25
|
+
*/
|
|
26
|
+
errorCorrectionLevel: 'L' | 'M' | 'Q' | 'H';
|
|
27
|
+
/**
|
|
28
|
+
* 码制;取值:byte:字节;numeric:数字;alphanumeric:字母数字;
|
|
29
|
+
* @defaultValue 'byte'
|
|
30
|
+
* @public
|
|
31
|
+
*/
|
|
32
|
+
codeMode: 'byte' | 'numeric' | 'alphanumeric';
|
|
33
|
+
/**
|
|
34
|
+
* 尺寸;单位 px
|
|
35
|
+
* @defaultValue 160
|
|
36
|
+
* @public
|
|
37
|
+
*/
|
|
38
|
+
size: number | '';
|
|
39
|
+
/**
|
|
40
|
+
* 边距;单位 px
|
|
41
|
+
* @defaultValue 0
|
|
42
|
+
* @public
|
|
43
|
+
*/
|
|
44
|
+
codeMargin: number | '';
|
|
45
|
+
/**
|
|
46
|
+
* 背景色
|
|
47
|
+
* @defaultValue '#ffffff'
|
|
48
|
+
* @public
|
|
49
|
+
*/
|
|
50
|
+
backgroundColor: string;
|
|
51
|
+
/**
|
|
52
|
+
* 码点颜色
|
|
53
|
+
* @defaultValue '#000000'
|
|
54
|
+
* @public
|
|
55
|
+
*/
|
|
56
|
+
barcodeColor: string;
|
|
57
|
+
/**
|
|
58
|
+
* 对齐;取值:left:左对齐;center:居中;right:右对齐;
|
|
59
|
+
* @defaultValue 'left'
|
|
60
|
+
* @public
|
|
61
|
+
*/
|
|
62
|
+
align: 'left' | 'center' | 'right';
|
|
63
|
+
}
|
|
64
|
+
declare class QrCodeProperty extends BaseControlProperty implements QrCodePropertyInterface {
|
|
65
|
+
static readonly Rules: typeof QrCodePropertyRules;
|
|
66
|
+
static readonly RuntimeRules: typeof QrCodePropertyRuntimeRules;
|
|
67
|
+
defaultValue: string;
|
|
68
|
+
qrVersion: 'auto' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10';
|
|
69
|
+
errorCorrectionLevel: 'L' | 'M' | 'Q' | 'H';
|
|
70
|
+
codeMode: 'byte' | 'numeric' | 'alphanumeric';
|
|
71
|
+
size: number | '';
|
|
72
|
+
codeMargin: number | '';
|
|
73
|
+
backgroundColor: string;
|
|
74
|
+
barcodeColor: string;
|
|
75
|
+
align: 'left' | 'center' | 'right';
|
|
76
|
+
constructor(props?: Partial<QrCodeProperty>);
|
|
77
|
+
}
|
|
78
|
+
export default QrCodeProperty;
|
|
79
|
+
export { QrCodeProperty, QrCodePropertyInterface, QrCodePropertyRules, QrCodePropertyRuntimeRules, };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RuntimeFormControl } from '@byteluck-fe/model-driven-core';
|
|
2
|
+
import { FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
3
|
+
import QrCodeProperty from './property';
|
|
4
|
+
import { Schema } from '@byteluck-fe/model-driven-core';
|
|
5
|
+
declare class QrCodeControl extends RuntimeFormControl {
|
|
6
|
+
static get controlType(): string;
|
|
7
|
+
static controlFieldType: FieldTypes;
|
|
8
|
+
readonly props: QrCodeProperty;
|
|
9
|
+
constructor(props?: Partial<Schema<'qr-code'>>);
|
|
10
|
+
}
|
|
11
|
+
export default QrCodeControl;
|
|
12
|
+
export { QrCodeControl as RuntimeQrCodeControl };
|
|
@@ -16,6 +16,10 @@ export { default as Switch } from './Switch';
|
|
|
16
16
|
export type { SwitchPropertyInterface } from './Switch';
|
|
17
17
|
export { default as Tag } from './Tag';
|
|
18
18
|
export type { TagPropertyInterface } from './Tag';
|
|
19
|
+
export { default as Barcode } from './Barcode';
|
|
20
|
+
export type { BarcodePropertyInterface } from './Barcode';
|
|
21
|
+
export { default as QrCode } from './QrCode';
|
|
22
|
+
export type { QrCodePropertyInterface } from './QrCode';
|
|
19
23
|
export { default as DatePicker } from './DatePicker';
|
|
20
24
|
export type { DatePickerPropertyInterface } from './DatePicker';
|
|
21
25
|
export { default as DateRange } from './DateRange';
|
package/dist/types/type.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Divider, Text, Link, Button, Title, CreateFormListButton, BatchSubmissionListButton, SubmissionRecordListButton, ImportRecordListButton, ExportRecordListButton, ExportListButton, FormSelectButton, ListSelectButton, Pagination, Dashboard, ListViewSelect, TextOcrButton, InvoiceCheckButton, BatchPrintListButton, BatchPrintRecordListButton, OperationButton, ReferenceList, CommentControl } from './baseControls';
|
|
2
|
-
import { Address, Amount, Attachment, AutoNumber, Checkbox, Cascader, Counter, DatePicker, DateRange, Department, Employee, Image, Input, Number, Slider, Switch, Radio, Score, Select, SelectMultiple, Textarea, RichText, Calc, SearchNumberRange, SearchDateRange, SearchInput, VueFormItem, SelectRelation, TimeRange, TimePicker, Tree, Employee2, ElectronicSignature, WPS, Department2, OrganizationSelection, VuePage, Tag } from './formControls';
|
|
2
|
+
import { Address, Amount, Attachment, AutoNumber, Checkbox, Cascader, Counter, DatePicker, DateRange, Department, Employee, Image, Input, Number, Slider, Switch, Radio, Score, Select, SelectMultiple, Textarea, RichText, Calc, SearchNumberRange, SearchDateRange, SearchInput, VueFormItem, SelectRelation, TimeRange, TimePicker, Tree, Employee2, ElectronicSignature, WPS, Department2, OrganizationSelection, VuePage, Tag, Barcode, QrCode } from './formControls';
|
|
3
3
|
import { CardGroup, Col, Grid, GridRow, Row, SubTableColumn, SubTableRow, GridTableColumn, GridLayoutContainer, Tab, TabPane, Toolbox, ListView, DataView, Page, AdvancedContainer, PositioningContainer, Position, ActionBar, Step, StepPane, TableLayout, TableLayoutRow, TableLayoutCol, TableLayoutWrapper, Collapse, CollapsePane } from './layoutControls';
|
|
4
4
|
import { SubTable, GridTable } from './listControls';
|
|
5
5
|
import { VarcharColumn, TextColumn, DecimalColumn, TimescopeColumn, TimestampColumn, ArrayColumn, DepartmentColumn, AutoNumberColumn, FileColumn, ImageColumn, PeopleColumn, LocationColumn, CustomColumn, OrderColumn, OperationColumn, EmployeeColumn, ApprovalStatusColumn, GroupColumn } from './columnControls';
|
|
@@ -69,6 +69,8 @@ declare module '@byteluck-fe/model-driven-core' {
|
|
|
69
69
|
'organization-selection': typeof OrganizationSelection;
|
|
70
70
|
'vue-page': typeof VuePage;
|
|
71
71
|
tag: typeof Tag;
|
|
72
|
+
barcode: typeof Barcode;
|
|
73
|
+
'qr-code': typeof QrCode;
|
|
72
74
|
}
|
|
73
75
|
interface LayoutControls {
|
|
74
76
|
'subtable-column': typeof SubTableColumn;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@byteluck-fe/model-driven-controls",
|
|
3
|
-
"version": "7.0.0-props.
|
|
3
|
+
"version": "7.0.0-props.49",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "郝晨光 <2293885211@qq.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"postpublish": "node ../../scripts/postpublish.js"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@byteluck-fe/model-driven-core": "7.0.0-props.
|
|
30
|
-
"@byteluck-fe/model-driven-settings": "7.0.0-props.
|
|
31
|
-
"@byteluck-fe/model-driven-shared": "7.0.0-props.
|
|
29
|
+
"@byteluck-fe/model-driven-core": "7.0.0-props.49",
|
|
30
|
+
"@byteluck-fe/model-driven-settings": "7.0.0-props.49",
|
|
31
|
+
"@byteluck-fe/model-driven-shared": "7.0.0-props.49",
|
|
32
32
|
"async-validator": "3.5.1"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "8d7009655226d4c798afaf168c94ba0ac87b18e8"
|
|
35
35
|
}
|