@ws-ui/shared 0.1.21 → 0.1.22
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/declarations/datasources/datasource.d.ts +11 -0
- package/dist/declarations/datasources/methods.d.ts +1 -0
- package/dist/declarations/webform/webform.d.ts +2 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js.map +1 -1
- package/dist/types/webform-state.d.ts +2 -2
- package/package.json +2 -2
|
@@ -27,6 +27,7 @@ declare namespace datasources {
|
|
|
27
27
|
interface IEnhancedCatalog extends ICatalog {
|
|
28
28
|
dataClasses: IDataClasses;
|
|
29
29
|
dataClassByCollectionName: IDataClasses;
|
|
30
|
+
singletons: ISingletons
|
|
30
31
|
}
|
|
31
32
|
interface ICollection<T extends IEntity = IEntity> {
|
|
32
33
|
__COUNT: number;
|
|
@@ -132,11 +133,19 @@ declare namespace datasources {
|
|
|
132
133
|
__TIMESTAMP?: Date;
|
|
133
134
|
__STAMP?: number;
|
|
134
135
|
}
|
|
136
|
+
|
|
137
|
+
type TSingletonMethod = Partial<catalog.IMethod>
|
|
138
|
+
|
|
139
|
+
interface ISingletonClass {
|
|
140
|
+
name: string;
|
|
141
|
+
methods: ISingletonMethod[]
|
|
142
|
+
}
|
|
135
143
|
interface ICatalog {
|
|
136
144
|
__UNIQID: string;
|
|
137
145
|
__BASEID: string;
|
|
138
146
|
methods: catalog.IMethod[];
|
|
139
147
|
dataClasses: IDetailedDataClass[];
|
|
148
|
+
singletons?: ISingletonClass[]
|
|
140
149
|
}
|
|
141
150
|
|
|
142
151
|
interface IDataClass {
|
|
@@ -160,6 +169,8 @@ declare namespace datasources {
|
|
|
160
169
|
|
|
161
170
|
type IDataClasses = { [key: string]: IDetailedDataClass };
|
|
162
171
|
|
|
172
|
+
type ISingletons = { [key: string]: ISingletonClass }
|
|
173
|
+
|
|
163
174
|
class AttributeFilter {
|
|
164
175
|
addAttribute(attname: string, subfilter?: any): void;
|
|
165
176
|
mergeWith(mergeWith: { filter: any }): void;
|
|
@@ -43,6 +43,7 @@ declare namespace datasources {
|
|
|
43
43
|
},
|
|
44
44
|
associatedData: { namespace: string },
|
|
45
45
|
ownerSource: DataSource | null,
|
|
46
|
+
singleton?: string | null
|
|
46
47
|
): Method4D;
|
|
47
48
|
static buildAction(component: { action: string }): string;
|
|
48
49
|
static buildEvents(component: { eventType: string }): {
|
|
@@ -3,6 +3,7 @@ declare namespace webforms {
|
|
|
3
3
|
type CraftComponent = import('@ws-ui/craftjs-core').SerializedNode;
|
|
4
4
|
|
|
5
5
|
type ComponentProps<CSSProperties = ReactCSSProperties> = {
|
|
6
|
+
disabled?: boolean;
|
|
6
7
|
moveable?: boolean;
|
|
7
8
|
deletable?: boolean;
|
|
8
9
|
className?: string;
|
|
@@ -167,6 +168,7 @@ declare namespace webforms {
|
|
|
167
168
|
feedback: boolean;
|
|
168
169
|
datasource: string;
|
|
169
170
|
variadicType: string;
|
|
171
|
+
methodType?: 'dataclass' | 'singleton'
|
|
170
172
|
}>;
|
|
171
173
|
|
|
172
174
|
type WebformStateActionType = 'add' | 'delete' | 'clear';
|