@cyclonium/core 1.0.0 → 1.0.1
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,6 +4,7 @@ export declare function executionOrder(order: number): ClassDecorator;
|
|
|
4
4
|
export declare namespace executionOrder {
|
|
5
5
|
function lateThan(component: CycloComponentClass): ClassDecorator;
|
|
6
6
|
}
|
|
7
|
+
export declare const disallowMultiple: ((value?: boolean) => ClassDecorator) & ClassDecorator;
|
|
7
8
|
export declare const executeInEditMode: ((value?: boolean) => ClassDecorator) & ClassDecorator;
|
|
8
9
|
export declare function requiresComponent<T extends Component>(componentType: Constructor<T>): MethodDecorator;
|
|
9
10
|
type CycloComponentClass = new (...args: never[]) => CycloComponent;
|
|
@@ -16,6 +16,9 @@ export function executionOrder(order) {
|
|
|
16
16
|
}
|
|
17
17
|
executionOrder.lateThan = lateThan;
|
|
18
18
|
})(executionOrder || (executionOrder = {}));
|
|
19
|
+
export const disallowMultiple = defineComponentDecoratorWithOptionalBoolean((target, value) => {
|
|
20
|
+
_decorator.disallowMultiple(value)(target);
|
|
21
|
+
});
|
|
19
22
|
export const executeInEditMode = defineComponentDecoratorWithOptionalBoolean((target, value) => {
|
|
20
23
|
_decorator.executeInEditMode(value)(target);
|
|
21
24
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { designType, editable, editorOnly, cycloClass, createScopedCycloClassDecorator, dynamicDefault, idem, idemBy, stored, type CycloClassOptions, type CycloClassDecorator, } from '../decorator/legacy/legacy-general-decorator.ts';
|
|
2
|
-
export { executionOrder, executeInEditMode, requiresComponent, } from '../decorator/legacy/legacy-component-decorator.ts';
|
|
2
|
+
export { disallowMultiple, executionOrder, executeInEditMode, requiresComponent, } from '../decorator/legacy/legacy-component-decorator.ts';
|
|
3
3
|
export { applyLegacyDecorators } from '../decorator/legacy/apply-legacy-decorators.ts';
|
|
4
4
|
//# sourceMappingURL=legacy-decorator.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { designType, editable, editorOnly, cycloClass, createScopedCycloClassDecorator, dynamicDefault, idem, idemBy, stored, } from "../decorator/legacy/legacy-general-decorator.js";
|
|
2
|
-
export { executionOrder, executeInEditMode, requiresComponent, } from "../decorator/legacy/legacy-component-decorator.js";
|
|
2
|
+
export { disallowMultiple, executionOrder, executeInEditMode, requiresComponent, } from "../decorator/legacy/legacy-component-decorator.js";
|
|
3
3
|
export { applyLegacyDecorators } from "../decorator/legacy/apply-legacy-decorators.js";
|
|
4
4
|
//# sourceMappingURL=legacy-decorator.js.map
|