@motifx/core 1.2.0-rc.4 → 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-C-BpS-QN.esm.js → core-Cq96WPGz.esm.js} +548 -416
- package/dist/chunks/core-Cq96WPGz.esm.js.map +1 -0
- package/dist/chunks/{core-ZMoM1273.cjs → core-ZhqTS1zK.cjs} +548 -416
- 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 +4 -6
- package/dist/index.d.ts +4 -6
- 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 -14213
- 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-C-BpS-QN.esm.js.map +0 -1
- package/dist/chunks/core-ZMoM1273.cjs.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;
|
|
@@ -357,7 +359,6 @@ declare abstract class ComponentBase<TElement extends ElementType = any, TProps
|
|
|
357
359
|
set controls(value: ControlCollection);
|
|
358
360
|
private _eventHandlers?;
|
|
359
361
|
private _class?;
|
|
360
|
-
private _attr?;
|
|
361
362
|
get class(): IClass<TElement>;
|
|
362
363
|
set class(value: IClass<TElement>);
|
|
363
364
|
get attr(): controlAttribute<TElement>;
|
|
@@ -376,7 +377,6 @@ declare abstract class ComponentBase<TElement extends ElementType = any, TProps
|
|
|
376
377
|
childs?: any[];
|
|
377
378
|
private _baseCtx?;
|
|
378
379
|
private _init?;
|
|
379
|
-
private _leaveContainer?;
|
|
380
380
|
parent: ComponentBase | null;
|
|
381
381
|
onElementCreating?(): TElement;
|
|
382
382
|
initializeComponent?(sender: ComponentBase): void;
|
|
@@ -495,15 +495,14 @@ declare class ContentBlock extends Component<any, ContentBlockProps> {
|
|
|
495
495
|
constructor(props: ContentBlockProps);
|
|
496
496
|
onConfigured(sender: ComponentBase, e: EventArgs): void;
|
|
497
497
|
onDisposing(sender: ComponentBase, e: EventArgs): void;
|
|
498
|
-
ondisposing(sender: Component<any, ContentBlockProps>): void;
|
|
499
498
|
}
|
|
500
499
|
interface ContentBodyProps {
|
|
501
500
|
name: string;
|
|
502
|
-
|
|
501
|
+
onConfig?: any;
|
|
503
502
|
}
|
|
504
503
|
declare class ContentBody extends Component<any, ContentBodyProps> {
|
|
505
504
|
constructor(props: ContentBodyProps);
|
|
506
|
-
|
|
505
|
+
onDisposing(sender: Component<any, ContentBodyProps>): void;
|
|
507
506
|
}
|
|
508
507
|
|
|
509
508
|
declare class Transport extends Component<any, {
|
|
@@ -909,7 +908,6 @@ declare const motifMessages: {
|
|
|
909
908
|
MJX608: () => string;
|
|
910
909
|
MJX609: () => string;
|
|
911
910
|
MJX610: () => string;
|
|
912
|
-
MJX611: () => string;
|
|
913
911
|
};
|
|
914
912
|
type MotifErrorCode = keyof typeof motifMessages;
|
|
915
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;
|
|
@@ -357,7 +359,6 @@ declare abstract class ComponentBase<TElement extends ElementType = any, TProps
|
|
|
357
359
|
set controls(value: ControlCollection);
|
|
358
360
|
private _eventHandlers?;
|
|
359
361
|
private _class?;
|
|
360
|
-
private _attr?;
|
|
361
362
|
get class(): IClass<TElement>;
|
|
362
363
|
set class(value: IClass<TElement>);
|
|
363
364
|
get attr(): controlAttribute<TElement>;
|
|
@@ -376,7 +377,6 @@ declare abstract class ComponentBase<TElement extends ElementType = any, TProps
|
|
|
376
377
|
childs?: any[];
|
|
377
378
|
private _baseCtx?;
|
|
378
379
|
private _init?;
|
|
379
|
-
private _leaveContainer?;
|
|
380
380
|
parent: ComponentBase | null;
|
|
381
381
|
onElementCreating?(): TElement;
|
|
382
382
|
initializeComponent?(sender: ComponentBase): void;
|
|
@@ -495,15 +495,14 @@ declare class ContentBlock extends Component<any, ContentBlockProps> {
|
|
|
495
495
|
constructor(props: ContentBlockProps);
|
|
496
496
|
onConfigured(sender: ComponentBase, e: EventArgs): void;
|
|
497
497
|
onDisposing(sender: ComponentBase, e: EventArgs): void;
|
|
498
|
-
ondisposing(sender: Component<any, ContentBlockProps>): void;
|
|
499
498
|
}
|
|
500
499
|
interface ContentBodyProps {
|
|
501
500
|
name: string;
|
|
502
|
-
|
|
501
|
+
onConfig?: any;
|
|
503
502
|
}
|
|
504
503
|
declare class ContentBody extends Component<any, ContentBodyProps> {
|
|
505
504
|
constructor(props: ContentBodyProps);
|
|
506
|
-
|
|
505
|
+
onDisposing(sender: Component<any, ContentBodyProps>): void;
|
|
507
506
|
}
|
|
508
507
|
|
|
509
508
|
declare class Transport extends Component<any, {
|
|
@@ -909,7 +908,6 @@ declare const motifMessages: {
|
|
|
909
908
|
MJX608: () => string;
|
|
910
909
|
MJX609: () => string;
|
|
911
910
|
MJX610: () => string;
|
|
912
|
-
MJX611: () => string;
|
|
913
911
|
};
|
|
914
912
|
type MotifErrorCode = keyof typeof motifMessages;
|
|
915
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) => {
|