@byteluck-fe/model-driven-controls 7.0.0-props.62 → 7.0.0-props.64

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 (27) hide show
  1. package/dist/esm/api-doc-index.js +2 -0
  2. package/dist/esm/baseControls/Iframe/designer.js +158 -0
  3. package/dist/esm/baseControls/Iframe/index.js +11 -0
  4. package/dist/esm/baseControls/Iframe/property.js +121 -0
  5. package/dist/esm/baseControls/Iframe/runtime.js +112 -0
  6. package/dist/esm/baseControls/Iframe/schema.json +47 -0
  7. package/dist/esm/baseControls/index.js +1 -0
  8. package/dist/esm/layoutControls/BlankContainer/designer.js +190 -0
  9. package/dist/esm/layoutControls/BlankContainer/index.js +11 -0
  10. package/dist/esm/layoutControls/BlankContainer/property.js +112 -0
  11. package/dist/esm/layoutControls/BlankContainer/runtime.js +112 -0
  12. package/dist/esm/layoutControls/BlankContainer/schema.json +57 -0
  13. package/dist/esm/layoutControls/index.js +1 -0
  14. package/dist/index.umd.js +1 -1
  15. package/dist/types/api-doc-index.d.ts +2 -0
  16. package/dist/types/baseControls/Iframe/designer.d.ts +12 -0
  17. package/dist/types/baseControls/Iframe/index.d.ts +12 -0
  18. package/dist/types/baseControls/Iframe/property.d.ts +40 -0
  19. package/dist/types/baseControls/Iframe/runtime.d.ts +10 -0
  20. package/dist/types/baseControls/index.d.ts +2 -0
  21. package/dist/types/layoutControls/BlankContainer/designer.d.ts +13 -0
  22. package/dist/types/layoutControls/BlankContainer/index.d.ts +12 -0
  23. package/dist/types/layoutControls/BlankContainer/property.d.ts +45 -0
  24. package/dist/types/layoutControls/BlankContainer/runtime.d.ts +9 -0
  25. package/dist/types/layoutControls/index.d.ts +2 -0
  26. package/dist/types/type.d.ts +4 -2
  27. package/package.json +5 -5
@@ -1,5 +1,6 @@
1
1
  export { default as Text } from './baseControls/Text/property';
2
2
  export { default as Link } from './baseControls/Link/property';
3
+ export { default as Iframe } from './baseControls/Iframe/property';
3
4
  export { default as Button } from './baseControls/Button/property';
4
5
  export { default as Divider } from './baseControls/Divider/property';
5
6
  export { default as Title } from './baseControls/Title/property';
@@ -75,6 +76,7 @@ export { default as Col } from './layoutControls/Col/property';
75
76
  export { default as Row } from './layoutControls/Row/property';
76
77
  export { default as GridRow } from './layoutControls/GridRow/property';
77
78
  export { default as CardGroup } from './layoutControls/CardGroup/property';
79
+ export { default as BlankContainer } from './layoutControls/BlankContainer/property';
78
80
  export { default as SubTableColumn } from './layoutControls/SubTableColumn/property';
79
81
  export { default as SubTableRow } from './layoutControls/SubTableRow/property';
80
82
  export { default as GridTableColumn } from './layoutControls/GridTableColumn/property';
@@ -0,0 +1,12 @@
1
+ import { DesignerControl, Schema, SettingOption } from '@byteluck-fe/model-driven-core';
2
+ import IframeProperty from './property';
3
+ declare class IframeControl extends DesignerControl {
4
+ static get controlName(): string;
5
+ static get controlIcon(): string;
6
+ static get controlType(): string;
7
+ static readonly setting: SettingOption[];
8
+ readonly props: IframeProperty;
9
+ constructor(props?: Partial<Schema<'iframe'>>);
10
+ }
11
+ export default IframeControl;
12
+ export { IframeControl as DesignerIframeControl };
@@ -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,40 @@
1
+ /**
2
+ * name: rok_iframe
3
+ * description: 网页嵌入组件。用于在页面中嵌入外部 URL 页面。支持配置链接地址、宽度和高度,适合展示第三方报表、系统页面或外部内容。
4
+ */
5
+ import { RuleItem } from 'async-validator';
6
+ import { Property, PropertyInterface, PropertyRules } from '@byteluck-fe/model-driven-core';
7
+ declare class IframePropertyRules extends PropertyRules {
8
+ content: RuleItem;
9
+ width: RuleItem;
10
+ height: RuleItem;
11
+ }
12
+ interface IframePropertyInterface extends PropertyInterface {
13
+ /**
14
+ * URL
15
+ * @defaultValue ''
16
+ * @public
17
+ */
18
+ content: string;
19
+ /**
20
+ * 宽
21
+ * @defaultValue 600
22
+ * @public
23
+ */
24
+ width: number;
25
+ /**
26
+ * 高
27
+ * @defaultValue 400
28
+ * @public
29
+ */
30
+ height: number;
31
+ }
32
+ declare class IframeProperty extends Property implements IframePropertyInterface {
33
+ static readonly Rules: typeof IframePropertyRules;
34
+ content: string;
35
+ width: number;
36
+ height: number;
37
+ constructor(props?: Partial<IframeProperty>);
38
+ }
39
+ export default IframeProperty;
40
+ export { IframeProperty, IframePropertyInterface, IframePropertyRules };
@@ -0,0 +1,10 @@
1
+ import { RuntimeControl } from '@byteluck-fe/model-driven-core';
2
+ import IframeProperty from './property';
3
+ import { Schema } from '@byteluck-fe/model-driven-core';
4
+ declare class IframeControl extends RuntimeControl {
5
+ static get controlType(): string;
6
+ readonly props: IframeProperty;
7
+ constructor(props?: Partial<Schema<'iframe'>>);
8
+ }
9
+ export default IframeControl;
10
+ export { IframeControl as RuntimeIframeControl };
@@ -2,6 +2,8 @@ export { default as Text } from './Text';
2
2
  export type { TextPropertyInterface } from './Text';
3
3
  export { default as Link } from './Link';
4
4
  export type { LinkPropertyInterface } from './Link';
5
+ export { default as Iframe } from './Iframe';
6
+ export type { IframePropertyInterface } from './Iframe';
5
7
  export { default as Button } from './Button';
6
8
  export type { ButtonPropertyInterface } from './Button';
7
9
  export { default as Divider } from './Divider';
@@ -0,0 +1,13 @@
1
+ import { DesignerLayoutControl, DesignerControl, SettingOption, LayoutControlSchema } from '@byteluck-fe/model-driven-core';
2
+ import BlankContainerProperty from './property';
3
+ declare class BlankContainerControl extends DesignerLayoutControl {
4
+ static get controlName(): string;
5
+ static get controlIcon(): string;
6
+ static get controlType(): string;
7
+ static excludes: never[];
8
+ static readonly setting: SettingOption[];
9
+ readonly props: BlankContainerProperty;
10
+ constructor(props?: LayoutControlSchema<'blank-container', BlankContainerProperty, DesignerControl>);
11
+ }
12
+ export default BlankContainerControl;
13
+ export { BlankContainerControl as DesignerBlankContainerControl };
@@ -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,45 @@
1
+ /**
2
+ * name: rok_blank_container
3
+ * description: 空白容器布局组件。用于作为自由编排内容的占位容器。支持标题字体样式、标题居中方式、背景色和阴影开关设置,适合页面分区与内容承载场景。
4
+ */
5
+ import { RuleItem } from 'async-validator';
6
+ import { LayoutControlProperty, LayoutControlPropertyInterface } from '@byteluck-fe/model-driven-core';
7
+ declare class BlankContainerPropertyRules extends LayoutControlProperty.Rules {
8
+ caption: RuleItem;
9
+ }
10
+ interface BlankContainerPropertyInterface extends LayoutControlPropertyInterface {
11
+ /**
12
+ * 标题
13
+ * @defaultValue '空白容器'
14
+ * @public
15
+ */
16
+ caption: string;
17
+ /**
18
+ * 标题对齐方式;取值:left:左对齐;center:居中;right:右对齐;
19
+ * @defaultValue 'left'
20
+ * @public
21
+ */
22
+ position: 'left' | 'center' | 'right';
23
+ /**
24
+ * 背景色
25
+ * @defaultValue ''
26
+ * @public
27
+ */
28
+ backgroundColor: string;
29
+ /**
30
+ * 是否开启阴影
31
+ * @defaultValue false
32
+ * @public
33
+ */
34
+ showShadow: boolean;
35
+ }
36
+ declare class BlankContainerProperty extends LayoutControlProperty implements BlankContainerPropertyInterface {
37
+ static readonly Rules: typeof BlankContainerPropertyRules;
38
+ caption: string;
39
+ position: 'left' | 'center' | 'right';
40
+ backgroundColor: string;
41
+ showShadow: boolean;
42
+ constructor(props?: Partial<BlankContainerProperty>);
43
+ }
44
+ export default BlankContainerProperty;
45
+ export { BlankContainerProperty, BlankContainerPropertyInterface, BlankContainerPropertyRules, };
@@ -0,0 +1,9 @@
1
+ import { RuntimeControl, RuntimeLayoutControl, LayoutControlSchema } from '@byteluck-fe/model-driven-core';
2
+ import BlankContainerProperty from './property';
3
+ declare class BlankContainerControl extends RuntimeLayoutControl {
4
+ static get controlType(): string;
5
+ readonly props: BlankContainerProperty;
6
+ constructor(props?: LayoutControlSchema<'blank-container', BlankContainerProperty, RuntimeControl>);
7
+ }
8
+ export default BlankContainerControl;
9
+ export { BlankContainerControl as RuntimeBlankContainerControl };
@@ -8,6 +8,8 @@ export { default as GridRow } from './GridRow';
8
8
  export type { GridRowPropertyInterface } from './GridRow';
9
9
  export { default as CardGroup } from './CardGroup';
10
10
  export type { CardGroupPropertyInterface } from './CardGroup';
11
+ export { default as BlankContainer } from './BlankContainer';
12
+ export type { BlankContainerPropertyInterface } from './BlankContainer';
11
13
  export { default as SubTableColumn } from './SubTableColumn';
12
14
  export type { SubTableColumnPropertyInterface } from './SubTableColumn';
13
15
  export { default as SubTableRow } from './SubTableRow';
@@ -1,6 +1,6 @@
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';
1
+ import { Divider, Text, Link, Iframe, Button, Title, CreateFormListButton, BatchSubmissionListButton, SubmissionRecordListButton, ImportRecordListButton, ExportRecordListButton, ExportListButton, FormSelectButton, ListSelectButton, Pagination, Dashboard, ListViewSelect, TextOcrButton, InvoiceCheckButton, BatchPrintListButton, BatchPrintRecordListButton, OperationButton, ReferenceList, CommentControl } from './baseControls';
2
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
- 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';
3
+ import { CardGroup, BlankContainer, 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';
6
6
  import { SimpleSearch } from './searchControls';
@@ -11,6 +11,7 @@ declare module '@byteluck-fe/model-driven-core' {
11
11
  text: typeof Text;
12
12
  title: typeof Title;
13
13
  link: typeof Link;
14
+ iframe: typeof Iframe;
14
15
  button: typeof Button;
15
16
  'list-page-btn-create-form': typeof CreateFormListButton;
16
17
  'list-page-btn-batch-submission': typeof BatchSubmissionListButton;
@@ -76,6 +77,7 @@ declare module '@byteluck-fe/model-driven-core' {
76
77
  'subtable-column': typeof SubTableColumn;
77
78
  'subtable-row': typeof SubTableRow;
78
79
  'card-group': typeof CardGroup;
80
+ 'blank-container': typeof BlankContainer;
79
81
  col: typeof Col;
80
82
  grid: typeof Grid;
81
83
  'grid-row': typeof GridRow;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byteluck-fe/model-driven-controls",
3
- "version": "7.0.0-props.62",
3
+ "version": "7.0.0-props.64",
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.62",
30
- "@byteluck-fe/model-driven-settings": "7.0.0-props.62",
31
- "@byteluck-fe/model-driven-shared": "7.0.0-props.49",
29
+ "@byteluck-fe/model-driven-core": "7.0.0-props.64",
30
+ "@byteluck-fe/model-driven-settings": "7.0.0-props.64",
31
+ "@byteluck-fe/model-driven-shared": "7.0.0-props.64",
32
32
  "async-validator": "3.5.1"
33
33
  },
34
- "gitHead": "e5edc07cd68d62d530c9e802f161dfe9799b5d42"
34
+ "gitHead": "0add9d9e3c1de945974f6b8b1eb8e679bc98bde1"
35
35
  }