@byteluck-fe/model-driven-controls 2.7.0-alpha.1 → 2.7.0-alpha.2

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.
@@ -4,7 +4,7 @@ import * as layoutControls from './layoutControls';
4
4
  import * as listControls from './listControls';
5
5
  import * as columnControls from './columnControls';
6
6
  import * as searchControls from './searchControls';
7
- import * as wrapControls from './wrapControls/GridWrap';
7
+ import * as wrapControls from './wrapControls';
8
8
  export { baseControls, formControls, layoutControls, listControls, columnControls, searchControls, wrapControls, };
9
9
  export * from './baseControls';
10
10
  export * from './formControls';
@@ -14,4 +14,4 @@ export * from './columnControls';
14
14
  export * from './searchControls';
15
15
  export * from './type';
16
16
  export * from './framework';
17
- export * from './wrapControls/GridWrap';
17
+ export * from './wrapControls';
@@ -0,0 +1,13 @@
1
+ import { CONTROL_TYPE } from '@byteluck-fe/model-driven-shared';
2
+ import { DesignerLayoutControl, DesignerControl, LayoutControlSchema } from '@byteluck-fe/model-driven-core';
3
+ import GridLayoutContainerControlProperty from './property';
4
+ declare class GridLayoutContainerControl extends DesignerLayoutControl {
5
+ static get controlName(): string;
6
+ static get controlType(): string;
7
+ static get controlIcon(): string;
8
+ static excludes: CONTROL_TYPE[];
9
+ props: GridLayoutContainerControlProperty;
10
+ constructor(props?: Partial<LayoutControlSchema<'grid-layout-container', GridLayoutContainerControlProperty, DesignerControl>>);
11
+ }
12
+ export default GridLayoutContainerControl;
13
+ export { GridLayoutContainerControl as DesignerColControl };
@@ -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,8 @@
1
+ import { LayoutControlProperty } from '@byteluck-fe/model-driven-core';
2
+ declare class GridLayoutContainerControlProperty extends LayoutControlProperty {
3
+ minWidth: number;
4
+ gap: number;
5
+ constructor(props?: Partial<GridLayoutContainerControlProperty>);
6
+ }
7
+ export default GridLayoutContainerControlProperty;
8
+ export { GridLayoutContainerControlProperty };
@@ -0,0 +1,10 @@
1
+ import { RuntimeControl, RuntimeLayoutControl } from '@byteluck-fe/model-driven-core';
2
+ import GridLayoutContainerControlProperty from './property';
3
+ import { LayoutControlSchema } from '@byteluck-fe/model-driven-core';
4
+ declare class GridLayoutContainerControl extends RuntimeLayoutControl {
5
+ static get controlType(): string;
6
+ props: GridLayoutContainerControlProperty;
7
+ constructor(props?: Partial<LayoutControlSchema<'grid-layout-container', GridLayoutContainerControlProperty, RuntimeControl>>);
8
+ }
9
+ export default GridLayoutContainerControl;
10
+ export { GridLayoutContainerControl as RuntimeGridContainerControlontrol };
@@ -6,6 +6,7 @@ export { default as CardGroup } from './CardGroup';
6
6
  export { default as SubTableColumn } from './SubTableColumn';
7
7
  export { default as SubTableRow } from './SubTableRow';
8
8
  export { default as GridTableColumn } from './GridTableColumn';
9
+ export { default as GridLayoutContainer } from './GridLayoutContainer';
9
10
  export { default as Tab } from './Tab';
10
11
  export { default as TabPane } from './TabPane';
11
12
  export { default as Toolbox } from './Toolbox';
@@ -1,6 +1,6 @@
1
1
  import { Divider, Text, Link, Button, Title, CreateFormListButton, BatchSubmissionListButton, SubmissionRecordListButton, ImportRecordListButton, ExportRecordListButton, ExportListButton, FormSelectButton, ListSelectButton, Pagination, Dashboard, ListViewSelect, TextOcrButton, InvoiceCheckButton, BatchPrintListButton, BatchPrintRecordListButton, OperationButton } from './baseControls';
2
2
  import { Address, Amount, Attachment, AutoNumber, Checkbox, DatePicker, DateRange, Department, Employee, Image, Input, Number, Radio, Score, Select, SelectMultiple, Textarea, RichText, Calc, SearchNumberRange, SearchDateRange, SearchInput, VueFormItem, SelectRelation, Tree, Employee2, ElectronicSignature, WPS, Department2, OrganizationSelection } from './formControls';
3
- import { CardGroup, Col, Grid, GridRow, Row, SubTableColumn, SubTableRow, GridTableColumn, Tab, TabPane, Toolbox, ListView, DataView, Page, AdvancedContainer, PositioningContainer, Position, ActionBar } from './layoutControls';
3
+ import { CardGroup, Col, Grid, GridRow, Row, SubTableColumn, SubTableRow, GridTableColumn, GridLayoutContainer, Tab, TabPane, Toolbox, ListView, DataView, Page, AdvancedContainer, PositioningContainer, Position, ActionBar } 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 } from './columnControls';
6
6
  import { SimpleSearch } from './searchControls';
@@ -73,6 +73,7 @@ declare module '@byteluck-fe/model-driven-core' {
73
73
  'tab-pane': typeof TabPane;
74
74
  toolbox: typeof Toolbox;
75
75
  'grid-table-column': typeof GridTableColumn;
76
+ 'grid-layout-container': typeof GridLayoutContainer;
76
77
  'list-view': typeof ListView;
77
78
  'data-view': typeof DataView;
78
79
  page: typeof Page;
@@ -4,6 +4,8 @@ declare class GridWrapControl extends DesignerWrapControl {
4
4
  static get controlName(): string;
5
5
  static get controlIcon(): string;
6
6
  static get controlType(): string;
7
+ static readonly setting: any;
8
+ props: GridWrapProperty;
7
9
  constructor(props?: WrapControlSchema<'grid-wrap', GridWrapProperty, DesignerWrapControl>);
8
10
  }
9
11
  export default GridWrapControl;
@@ -1,5 +1,4 @@
1
- import { RuntimeWrapControl } from '@byteluck-fe/model-driven-core';
2
- import { WrapControlSchema } from '@byteluck-fe/model-driven-core';
1
+ import { RuntimeWrapControl, WrapControlSchema } from '@byteluck-fe/model-driven-core';
3
2
  import GridWrapProperty from './property';
4
3
  declare class GridWrapControl extends RuntimeWrapControl {
5
4
  static get controlType(): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byteluck-fe/model-driven-controls",
3
- "version": "2.7.0-alpha.1",
3
+ "version": "2.7.0-alpha.2",
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": "2.7.0-alpha.1",
30
- "@byteluck-fe/model-driven-settings": "2.7.0-alpha.1",
31
- "@byteluck-fe/model-driven-shared": "2.7.0-alpha.0",
29
+ "@byteluck-fe/model-driven-core": "2.7.0-alpha.2",
30
+ "@byteluck-fe/model-driven-settings": "2.7.0-alpha.2",
31
+ "@byteluck-fe/model-driven-shared": "2.7.0-alpha.2",
32
32
  "async-validator": "3.5.1"
33
33
  },
34
- "gitHead": "0c20ba5391d84052c268e2f56e577453ed02fd63"
34
+ "gitHead": "23607484dc1f65494b32a6c2e9fff86f0ce8dc54"
35
35
  }
@@ -1,49 +0,0 @@
1
- function _arrayLikeToArray(arr, len) {
2
- if (len == null || len > arr.length) len = arr.length;
3
- for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
4
- return arr2;
5
- }
6
- function _arrayWithoutHoles(arr) {
7
- if (Array.isArray(arr)) return _arrayLikeToArray(arr);
8
- }
9
- function _iterableToArray(iter) {
10
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
11
- }
12
- function _nonIterableSpread() {
13
- throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
14
- }
15
- function _toConsumableArray(arr) {
16
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
17
- }
18
- function _unsupportedIterableToArray(o, minLen) {
19
- if (!o) return;
20
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
21
- var n = Object.prototype.toString.call(o).slice(8, -1);
22
- if (n === "Object" && o.constructor) n = o.constructor.name;
23
- if (n === "Map" || n === "Set") return Array.from(n);
24
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
25
- }
26
- import { defineInstance, createBaseFields } from "@byteluck-fe/model-driven-settings";
27
- export default defineInstance({
28
- fields: _toConsumableArray(createBaseFields()).concat([
29
- {
30
- key: "wholeRow",
31
- type: "boolean",
32
- component: "switch",
33
- label: "充满整行"
34
- }
35
- ]),
36
- groups: [
37
- {
38
- type: "tab",
39
- title: "属性",
40
- items: [
41
- {
42
- items: [
43
- "wholeRow"
44
- ]
45
- }
46
- ]
47
- }
48
- ]
49
- });