@motifx/core 1.2.0-rc.3 → 1.2.0-rc.5
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/chunks/{core-W7wNt8bq.esm.js → core-Cq96WPGz.esm.js} +564 -421
- package/dist/chunks/core-Cq96WPGz.esm.js.map +1 -0
- package/dist/chunks/{core-DD3SssnS.cjs → core-ZhqTS1zK.cjs} +564 -421
- package/dist/chunks/core-ZhqTS1zK.cjs.map +1 -0
- package/dist/devtools.cjs +1 -1
- package/dist/devtools.esm.js +1 -1
- package/dist/index.cjs +3 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -8
- package/dist/index.d.ts +5 -8
- package/dist/index.esm.js +4 -8
- package/dist/index.esm.js.map +1 -1
- package/dist/index.esm.min.js +1 -1
- package/dist/index.esm.min.js.map +1 -1
- package/dist/index.umd.js +14341 -14202
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/dist/jsx-runtime.cjs.map +1 -1
- package/dist/jsx-runtime.d.cts +25 -15
- package/dist/jsx-runtime.d.ts +25 -15
- package/dist/jsx-runtime.esm.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/core-DD3SssnS.cjs.map +0 -1
- package/dist/chunks/core-W7wNt8bq.esm.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -7,10 +7,12 @@ interface IDisposable {
|
|
|
7
7
|
|
|
8
8
|
declare class DisposableStore implements IDisposable {
|
|
9
9
|
private _items?;
|
|
10
|
+
private _one?;
|
|
10
11
|
private _closed;
|
|
11
12
|
constructor();
|
|
12
13
|
get isDisposed(): boolean;
|
|
13
14
|
add<T extends IDisposable>(item: T): T;
|
|
15
|
+
private _take;
|
|
14
16
|
delete<T extends IDisposable>(item: T): void;
|
|
15
17
|
detach<T extends IDisposable>(item: T): void;
|
|
16
18
|
clear(): void;
|
|
@@ -335,7 +337,6 @@ interface SiblingsApi {
|
|
|
335
337
|
declare abstract class ComponentBase<TElement extends ElementType = any, TProps extends object = any> extends Disposable {
|
|
336
338
|
private _motif?;
|
|
337
339
|
get motif(): ComponentMotif<this, TProps>;
|
|
338
|
-
set motif(value: ComponentMotif<this, TProps>);
|
|
339
340
|
element: TElement;
|
|
340
341
|
props: TProps;
|
|
341
342
|
private _flags;
|
|
@@ -358,7 +359,6 @@ declare abstract class ComponentBase<TElement extends ElementType = any, TProps
|
|
|
358
359
|
set controls(value: ControlCollection);
|
|
359
360
|
private _eventHandlers?;
|
|
360
361
|
private _class?;
|
|
361
|
-
private _attr?;
|
|
362
362
|
get class(): IClass<TElement>;
|
|
363
363
|
set class(value: IClass<TElement>);
|
|
364
364
|
get attr(): controlAttribute<TElement>;
|
|
@@ -377,7 +377,6 @@ declare abstract class ComponentBase<TElement extends ElementType = any, TProps
|
|
|
377
377
|
childs?: any[];
|
|
378
378
|
private _baseCtx?;
|
|
379
379
|
private _init?;
|
|
380
|
-
private _leaveContainer?;
|
|
381
380
|
parent: ComponentBase | null;
|
|
382
381
|
onElementCreating?(): TElement;
|
|
383
382
|
initializeComponent?(sender: ComponentBase): void;
|
|
@@ -445,7 +444,7 @@ declare class Component<TElement extends ElementType = any, TProps extends objec
|
|
|
445
444
|
}
|
|
446
445
|
type viewFn<P extends object> = (props: P) => any;
|
|
447
446
|
declare function FNComponent<P extends object>(view: viewFn<P>): (props: P) => FragmentNode<any>;
|
|
448
|
-
declare function motifComponent(element: unknown, props?: any): any;
|
|
447
|
+
declare function motifComponent(element: unknown, props?: any, lone?: number): any;
|
|
449
448
|
declare function motifFragment(props?: any): FragmentNode<any>;
|
|
450
449
|
declare class FragmentNode<TProps extends object = any> extends Component<Comment, TProps> {
|
|
451
450
|
constructor(options?: IBaseProp<TProps>);
|
|
@@ -496,15 +495,14 @@ declare class ContentBlock extends Component<any, ContentBlockProps> {
|
|
|
496
495
|
constructor(props: ContentBlockProps);
|
|
497
496
|
onConfigured(sender: ComponentBase, e: EventArgs): void;
|
|
498
497
|
onDisposing(sender: ComponentBase, e: EventArgs): void;
|
|
499
|
-
ondisposing(sender: Component<any, ContentBlockProps>): void;
|
|
500
498
|
}
|
|
501
499
|
interface ContentBodyProps {
|
|
502
500
|
name: string;
|
|
503
|
-
|
|
501
|
+
onConfig?: any;
|
|
504
502
|
}
|
|
505
503
|
declare class ContentBody extends Component<any, ContentBodyProps> {
|
|
506
504
|
constructor(props: ContentBodyProps);
|
|
507
|
-
|
|
505
|
+
onDisposing(sender: Component<any, ContentBodyProps>): void;
|
|
508
506
|
}
|
|
509
507
|
|
|
510
508
|
declare class Transport extends Component<any, {
|
|
@@ -910,7 +908,6 @@ declare const motifMessages: {
|
|
|
910
908
|
MJX608: () => string;
|
|
911
909
|
MJX609: () => string;
|
|
912
910
|
MJX610: () => string;
|
|
913
|
-
MJX611: () => string;
|
|
914
911
|
};
|
|
915
912
|
type MotifErrorCode = keyof typeof motifMessages;
|
|
916
913
|
declare class MotifError extends Error {
|
package/dist/index.d.ts
CHANGED
|
@@ -7,10 +7,12 @@ interface IDisposable {
|
|
|
7
7
|
|
|
8
8
|
declare class DisposableStore implements IDisposable {
|
|
9
9
|
private _items?;
|
|
10
|
+
private _one?;
|
|
10
11
|
private _closed;
|
|
11
12
|
constructor();
|
|
12
13
|
get isDisposed(): boolean;
|
|
13
14
|
add<T extends IDisposable>(item: T): T;
|
|
15
|
+
private _take;
|
|
14
16
|
delete<T extends IDisposable>(item: T): void;
|
|
15
17
|
detach<T extends IDisposable>(item: T): void;
|
|
16
18
|
clear(): void;
|
|
@@ -335,7 +337,6 @@ interface SiblingsApi {
|
|
|
335
337
|
declare abstract class ComponentBase<TElement extends ElementType = any, TProps extends object = any> extends Disposable {
|
|
336
338
|
private _motif?;
|
|
337
339
|
get motif(): ComponentMotif<this, TProps>;
|
|
338
|
-
set motif(value: ComponentMotif<this, TProps>);
|
|
339
340
|
element: TElement;
|
|
340
341
|
props: TProps;
|
|
341
342
|
private _flags;
|
|
@@ -358,7 +359,6 @@ declare abstract class ComponentBase<TElement extends ElementType = any, TProps
|
|
|
358
359
|
set controls(value: ControlCollection);
|
|
359
360
|
private _eventHandlers?;
|
|
360
361
|
private _class?;
|
|
361
|
-
private _attr?;
|
|
362
362
|
get class(): IClass<TElement>;
|
|
363
363
|
set class(value: IClass<TElement>);
|
|
364
364
|
get attr(): controlAttribute<TElement>;
|
|
@@ -377,7 +377,6 @@ declare abstract class ComponentBase<TElement extends ElementType = any, TProps
|
|
|
377
377
|
childs?: any[];
|
|
378
378
|
private _baseCtx?;
|
|
379
379
|
private _init?;
|
|
380
|
-
private _leaveContainer?;
|
|
381
380
|
parent: ComponentBase | null;
|
|
382
381
|
onElementCreating?(): TElement;
|
|
383
382
|
initializeComponent?(sender: ComponentBase): void;
|
|
@@ -445,7 +444,7 @@ declare class Component<TElement extends ElementType = any, TProps extends objec
|
|
|
445
444
|
}
|
|
446
445
|
type viewFn<P extends object> = (props: P) => any;
|
|
447
446
|
declare function FNComponent<P extends object>(view: viewFn<P>): (props: P) => FragmentNode<any>;
|
|
448
|
-
declare function motifComponent(element: unknown, props?: any): any;
|
|
447
|
+
declare function motifComponent(element: unknown, props?: any, lone?: number): any;
|
|
449
448
|
declare function motifFragment(props?: any): FragmentNode<any>;
|
|
450
449
|
declare class FragmentNode<TProps extends object = any> extends Component<Comment, TProps> {
|
|
451
450
|
constructor(options?: IBaseProp<TProps>);
|
|
@@ -496,15 +495,14 @@ declare class ContentBlock extends Component<any, ContentBlockProps> {
|
|
|
496
495
|
constructor(props: ContentBlockProps);
|
|
497
496
|
onConfigured(sender: ComponentBase, e: EventArgs): void;
|
|
498
497
|
onDisposing(sender: ComponentBase, e: EventArgs): void;
|
|
499
|
-
ondisposing(sender: Component<any, ContentBlockProps>): void;
|
|
500
498
|
}
|
|
501
499
|
interface ContentBodyProps {
|
|
502
500
|
name: string;
|
|
503
|
-
|
|
501
|
+
onConfig?: any;
|
|
504
502
|
}
|
|
505
503
|
declare class ContentBody extends Component<any, ContentBodyProps> {
|
|
506
504
|
constructor(props: ContentBodyProps);
|
|
507
|
-
|
|
505
|
+
onDisposing(sender: Component<any, ContentBodyProps>): void;
|
|
508
506
|
}
|
|
509
507
|
|
|
510
508
|
declare class Transport extends Component<any, {
|
|
@@ -910,7 +908,6 @@ declare const motifMessages: {
|
|
|
910
908
|
MJX608: () => string;
|
|
911
909
|
MJX609: () => string;
|
|
912
910
|
MJX610: () => string;
|
|
913
|
-
MJX611: () => string;
|
|
914
911
|
};
|
|
915
912
|
type MotifErrorCode = keyof typeof motifMessages;
|
|
916
913
|
declare class MotifError extends Error {
|
package/dist/index.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { m as motifError, C as Component, r as reportWarning, T as TransportRegistry, A as Application, S as SLOT_REGISTERED_EVENT, a as SLOT_UNREGISTERED_EVENT, c as contentBlocks, f as findAppendableComponent, u as untracked, e as effect, b as reportError, d as ComponentBase, n as notifyDeactivated, g as autoRegistry, M as MotifError, h as formatMotifMessage } from './chunks/core-
|
|
2
|
-
export { i as ApplicationBuilder, l as ComponentMotif, o as Computed, q as ControlCollection, D as Disposable, y as DisposableStore, E as Emitter, F as ErrorHandler, G as FNComponent, H as FragmentNode, I as Frame, L as Lazy, K as LazyComputed, N as LinkedList, R as NodeTypes, V as RouterView, Z as ServiceCollection, _ as ServiceProvider, a0 as Signal, j as asyncTracking, k as clearModel, p as configureReactivityLeakMonitor, s as createComputed, t as createLazyComputed, v as createSignal, w as deepClone, x as disposableCore, z as dom, B as errorHandler, J as inject, O as motifCompiled, P as motifComponent, Q as motifFragment, U as reactive, W as safeCall, X as safeCallAsync, Y as safeCallSilent, $ as setUnexpectedErrorHandler, a1 as toDisposable, a2 as useApplication, a3 as useModel, a4 as useNavigation } from './chunks/core-
|
|
1
|
+
import { m as motifError, C as Component, r as reportWarning, T as TransportRegistry, A as Application, S as SLOT_REGISTERED_EVENT, a as SLOT_UNREGISTERED_EVENT, c as contentBlocks, f as findAppendableComponent, u as untracked, e as effect, b as reportError, d as ComponentBase, n as notifyDeactivated, g as autoRegistry, M as MotifError, h as formatMotifMessage } from './chunks/core-Cq96WPGz.esm.js';
|
|
2
|
+
export { i as ApplicationBuilder, l as ComponentMotif, o as Computed, q as ControlCollection, D as Disposable, y as DisposableStore, E as Emitter, F as ErrorHandler, G as FNComponent, H as FragmentNode, I as Frame, L as Lazy, K as LazyComputed, N as LinkedList, R as NodeTypes, V as RouterView, Z as ServiceCollection, _ as ServiceProvider, a0 as Signal, j as asyncTracking, k as clearModel, p as configureReactivityLeakMonitor, s as createComputed, t as createLazyComputed, v as createSignal, w as deepClone, x as disposableCore, z as dom, B as errorHandler, J as inject, O as motifCompiled, P as motifComponent, Q as motifFragment, U as reactive, W as safeCall, X as safeCallAsync, Y as safeCallSilent, $ as setUnexpectedErrorHandler, a1 as toDisposable, a2 as useApplication, a3 as useModel, a4 as useNavigation } from './chunks/core-Cq96WPGz.esm.js';
|
|
3
3
|
|
|
4
4
|
class NameValuePair {
|
|
5
5
|
}
|
|
@@ -280,10 +280,6 @@ class ContentBlock extends Component {
|
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
|
-
ondisposing(sender) {
|
|
284
|
-
// var cb = ContentBodyCollectionHandable.get(this.props.target);
|
|
285
|
-
// if (cb) {
|
|
286
|
-
}
|
|
287
283
|
}
|
|
288
284
|
class ContentBody extends Component {
|
|
289
285
|
constructor(props) {
|
|
@@ -291,7 +287,7 @@ class ContentBody extends Component {
|
|
|
291
287
|
ContentBodyCollectionHandable.set(this.props.name, this);
|
|
292
288
|
this.context.fire(changeBodyCollectionHandler);
|
|
293
289
|
}
|
|
294
|
-
|
|
290
|
+
onDisposing(sender) {
|
|
295
291
|
if (ContentBodyCollectionHandable.get(this.props.name) === this) {
|
|
296
292
|
ContentBodyCollectionHandable.delete(this.props.name);
|
|
297
293
|
}
|
|
@@ -1068,7 +1064,7 @@ class RouterLink extends Component {
|
|
|
1068
1064
|
constructor(props) {
|
|
1069
1065
|
super(props.el ?? 'a', props);
|
|
1070
1066
|
if (props.showHref !== false)
|
|
1071
|
-
this.attr.add({ href: props.to });
|
|
1067
|
+
this.attr.add({ href: Application.main?._addressOf(props.to) ?? props.to });
|
|
1072
1068
|
if (props.target)
|
|
1073
1069
|
this.attr.add({ target: props.target });
|
|
1074
1070
|
this.motif.on('click', (s, e) => {
|