@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/jsx-runtime.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jsx-runtime.cjs","sources":["../src/jsx-runtime.ts"],"sourcesContent":["import type { ComponentBase, ElementType, EventArgs, IBaseProp } from \"./\";\n\ntype motifPrimitive = string | number | boolean | Node | Text | Element | null | undefined;\n\ndeclare const DEV: boolean;\n\nexport type MotifStyle = string | (() => any) | Array<any> | Object | Partial<CSSStyleDeclaration> | CSSStyleDeclaration;\nexport type MotifClass = string | Record<string, any> | Array<any> | (() => any);\nexport type MotifValue = string | number | boolean | Record<string, any> | Array<any> | (() => any);\nexport type MotifBindable<T> = T | string | (() => T | string);\n\nexport interface MotifBaseProps {\n children?: any;\n key?: string | number;\n ref?: ComponentBase | ((component: any) => void);\n style?: MotifStyle;\n class?: MotifClass;\n className?: MotifClass;\n}\n\ntype MethodLikeProps = {\n focus?: any;\n blur?: any;\n click?: any;\n select?: any;\n scrollIntoView?: any;\n scrollTo?: any;\n scrollBy?: any;\n requestFullscreen?: any;\n exitFullscreen?: any;\n play?: any;\n pause?: any;\n submit?: any;\n reset?: any;\n requestSubmit?: any;\n checkValidity?: any;\n reportValidity?: any;\n show?: any;\n showModal?: any;\n close?: any;\n showPicker?: any;\n setSelectionRange?: any;\n setRangeText?: any;\n requestPointerLock?: any;\n exitPointerLock?: any;\n setPointerCapture?: any;\n releasePointerCapture?: any;\n requestPictureInPicture?: any;\n exitPictureInPicture?: any;\n load?: any;\n fastSeek?: any;\n showPopover?: any;\n hidePopover?: any;\n togglePopover?: any;\n
|
|
1
|
+
{"version":3,"file":"jsx-runtime.cjs","sources":["../src/jsx-runtime.ts"],"sourcesContent":["import type { ComponentBase, ElementType, EventArgs, IBaseProp, VisibilityChangedEventArgs } from \"./\";\n\ntype motifPrimitive = string | number | boolean | Node | Text | Element | null | undefined;\n\ndeclare const DEV: boolean;\n\nexport type MotifStyle = string | (() => any) | Array<any> | Object | Partial<CSSStyleDeclaration> | CSSStyleDeclaration;\nexport type MotifClass = string | Record<string, any> | Array<any> | (() => any);\nexport type MotifValue = string | number | boolean | Record<string, any> | Array<any> | (() => any);\nexport type MotifBindable<T> = T | string | (() => T | string);\n\nexport interface MotifBaseProps {\n children?: any;\n key?: string | number;\n ref?: ComponentBase | ((component: any) => void);\n style?: MotifStyle;\n class?: MotifClass;\n className?: MotifClass;\n}\n\ntype MethodLikeProps = {\n focus?: any;\n blur?: any;\n click?: any;\n select?: any;\n scrollIntoView?: any;\n scrollTo?: any;\n scrollBy?: any;\n requestFullscreen?: any;\n exitFullscreen?: any;\n play?: any;\n pause?: any;\n submit?: any;\n reset?: any;\n requestSubmit?: any;\n checkValidity?: any;\n reportValidity?: any;\n show?: any;\n showModal?: any;\n close?: any;\n showPicker?: any;\n setSelectionRange?: any;\n setRangeText?: any;\n requestPointerLock?: any;\n exitPointerLock?: any;\n setPointerCapture?: any;\n releasePointerCapture?: any;\n requestPictureInPicture?: any;\n exitPictureInPicture?: any;\n load?: any;\n fastSeek?: any;\n showPopover?: any;\n hidePopover?: any;\n togglePopover?: any;\n onConfig?: (sender: ComponentBase, e: EventArgs) => void;\n onBuilding?: (sender: ComponentBase, e: EventArgs) => void;\n onBuilt?: (sender: ComponentBase, e: EventArgs) => void;\n /** Element canlı DOM'a (document) bağlandığında bir kez; focus/ölçüm gibi işler için. */\n onMounted?: (sender: ComponentBase, e: EventArgs) => void;\n onConfigured?: (sender: ComponentBase, e: EventArgs) => void;\n onInitializing?: (sender: ComponentBase, e: EventArgs) => void;\n onInitialized?: (sender: ComponentBase, e: EventArgs) => void;\n onDisposing?: (sender: ComponentBase, e: EventArgs) => void;\n onDisposed?: (sender: ComponentBase, e: EventArgs) => void;\n onVisibilityChanged?: (sender: ComponentBase, e: VisibilityChangedEventArgs) => void;\n onActivated?: (sender: ComponentBase, e: EventArgs) => void;\n onDeactivated?: (sender: ComponentBase, e: EventArgs) => void;\n};\ntype MethodLikeKeys = keyof MethodLikeProps;\n\nexport type MotifFunctionalComponent<P = Record<string, unknown>> = (\n props: P & MotifBaseProps & any\n) => unknown;\n\nexport type MotifFunctionalComponentBasic = (\n props: MotifBaseProps\n) => unknown;\n\nexport type AnyFunctionalComponent<P = any> = (props: P) => unknown;\nexport type MotifComponentConstructor<TElement extends ElementType = any, P extends Record<string, unknown> = Record<string, unknown>> =\n new (...args: any[]) => ComponentBase<TElement, P>;\n\nexport type MotifComponentType<P = Record<string, unknown>, TElement = unknown> =\n | string\n | MotifFunctionalComponent<P>\n | MotifFunctionalComponentBasic\n | AnyFunctionalComponent<P>\n | MotifComponentConstructor<TElement extends ElementType ? TElement : any, P extends Record<string, unknown> ? P : any>\n | { el: string; ctor?: (this: any, props?: any) => any;[newProp: string]: any };\n\ntype ExtractEventArg<T> = T extends ((this: any, ev: infer EV) => any) | null ? EV : never;\nexport type MotifDomEventHandler<EV> = (senderOrEvent: EV & ComponentBase, ev: EV) => unknown;\ntype motifEventsFor<TElement> = {\n [P in keyof TElement as P extends `on${string}` ? P : never]?:\n TElement[P] extends ((this: any, ev: infer EV) => any) | null\n ? MotifDomEventHandler<EV>\n : MotifDomEventHandler<Event>;\n};\nexport type MotifDomEventProps = motifEventsFor<HTMLElement>;\ntype MotifTagProps = MotifDomEventProps & {\n class?: MotifClass;\n className?: MotifClass;\n style?: MotifStyle;\n id?: MotifBindable<string>;\n tabindex?: MotifBindable<number | string>;\n role?: MotifBindable<string>;\n};\ntype WithTagProps<T> = T & Omit<MotifTagProps, keyof T>;\ntype MotifManagedProps<P> = 0 extends (1 & P) ? IBaseProp<{}> : WithTagProps<Exclude<P, string | Node | undefined>>;\n\n// Transform DOM attributes so that non-event, non-method, non-style/class/value props accept either the value or a function returning it\ntype MotifElementProps<TElement> = {\n [P in keyof Omit<\n Partial<TElement>,\n keyof motifEventsFor<TElement> | 'style' | 'class' | 'className' | 'value' | 'for' | MethodLikeKeys\n >]?: MotifBindable<Partial<TElement>[P]>;\n};\n\ntype IntrinsicHTML = {\n [K in keyof HTMLElementTagNameMap]:\n MotifElementProps<HTMLElementTagNameMap[K]> &\n motifEventsFor<HTMLElementTagNameMap[K]> &\n Partial<MotifBaseProps> &\n MethodLikeProps &\n (K extends 'input' | 'textarea' ? { value?: MotifValue } : {}) & object & { [key: string]: any };\n};\n\ntype IntrinsicSVG = IntrinsicHTML;\n// type IntrinsicSVG = {\n// keyof motifEventsFor<SVGElementTagNameMap[\"svg\"]> | 'style' | 'class' | 'className' | 'value' | MethodLikeKeys\n\ntype IntrinsicElementsMap = IntrinsicHTML & IntrinsicSVG;\n\nexport type __attr = {\n key?: string | number;\n ref?: ComponentBase | ((component: any) => void);\n initializeComponent?: (sender: ComponentBase) => void;\n \"x-wait\"?: (sender: ComponentBase, e: EventArgs) => boolean;\n \"x-building\"?: (sender: ComponentBase, e: EventArgs) => void;\n \"x-built\"?: (sender: ComponentBase, e: EventArgs) => void;\n \"x-config\"?: (sender: ComponentBase, e: EventArgs) => void;\n \"x-configured\"?: (sender: ComponentBase, e: EventArgs) => void;\n \"x-initializing\"?: (sender: ComponentBase, e: EventArgs) => void;\n \"x-initialized\"?: (sender: ComponentBase, e: EventArgs) => void;\n onBuilding?: (sender: ComponentBase, e: EventArgs) => void;\n onBuilt?: (sender: ComponentBase, e: EventArgs) => void;\n /** Element canlı DOM'a (document) bağlandığında bir kez;*/\n onMounted?: (sender: ComponentBase, e: EventArgs) => void;\n onConfig?: (sender: ComponentBase, e: EventArgs) => void;\n onConfigured?: (sender: ComponentBase, e: EventArgs) => void;\n onInitializing?: (sender: ComponentBase, e: EventArgs) => void;\n onInitialized?: (sender: ComponentBase, e: EventArgs) => void;\n onDisposing?: (sender: ComponentBase, e: EventArgs) => void;\n onDisposed?: (sender: ComponentBase, e: EventArgs) => void;\n onVisibilityChanged?: (sender: ComponentBase, e: VisibilityChangedEventArgs) => void;\n onActivated?: (sender: ComponentBase, e: EventArgs) => void;\n onDeactivated?: (sender: ComponentBase, e: EventArgs) => void;\n \"x-style\"?: MotifStyle;\n}\nexport namespace JSX {\n export type Element = ComponentBase<any, any>;\n export type ElementType = MotifComponentType<any, any>;\n export interface ElementClass extends ComponentBase { }\n export interface ElementAttributesProperty extends __attr {\n props: {};\n };\n\n export interface IntrinsicElements extends IntrinsicElementsMap {\n [elementName: string]: IntrinsicElementsMap[keyof IntrinsicElementsMap];\n }\n\n export type LibraryManagedAttributes<C, P> = MotifManagedProps<P>;\n\n export interface IntrinsicAttributes extends __attr { };\n}\n\ndeclare global {\n namespace JSX {\n export type Element = ComponentBase<any, any>;\n export type ElementType = MotifComponentType<any, any>;\n export interface ElementClass extends ComponentBase { }\n export interface ElementAttributesProperty extends __attr {\n props: {};\n }\n\n export interface IntrinsicElements extends IntrinsicElementsMap {\n [elementName: string]: IntrinsicElementsMap[keyof IntrinsicElementsMap];\n }\n\n export type LibraryManagedAttributes<C, P> = MotifManagedProps<P>;\n\n export interface IntrinsicAttributes extends __attr { }\n }\n}\n"],"names":["JSX"],"mappings":";;AA+JiBA;AAAjB,CAAA,UAAiB,GAAG,EAAA;AAepB,CAAC,EAfgBA,WAAG,KAAHA,WAAG,GAAA,EAAA,CAAA,CAAA;;"}
|
package/dist/jsx-runtime.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentBase, ElementType, EventArgs, IBaseProp } from './index.cjs';
|
|
1
|
+
import { ComponentBase, ElementType, EventArgs, VisibilityChangedEventArgs, IBaseProp } from './index.cjs';
|
|
2
2
|
|
|
3
3
|
type MotifStyle = string | (() => any) | Array<any> | Object | Partial<CSSStyleDeclaration> | CSSStyleDeclaration;
|
|
4
4
|
type MotifClass = string | Record<string, any> | Array<any> | (() => any);
|
|
@@ -46,14 +46,19 @@ type MethodLikeProps = {
|
|
|
46
46
|
showPopover?: any;
|
|
47
47
|
hidePopover?: any;
|
|
48
48
|
togglePopover?: any;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
onConfig?: (sender: ComponentBase, e: EventArgs) => void;
|
|
50
|
+
onBuilding?: (sender: ComponentBase, e: EventArgs) => void;
|
|
51
|
+
onBuilt?: (sender: ComponentBase, e: EventArgs) => void;
|
|
52
52
|
/** Element canlı DOM'a (document) bağlandığında bir kez; focus/ölçüm gibi işler için. */
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
53
|
+
onMounted?: (sender: ComponentBase, e: EventArgs) => void;
|
|
54
|
+
onConfigured?: (sender: ComponentBase, e: EventArgs) => void;
|
|
55
|
+
onInitializing?: (sender: ComponentBase, e: EventArgs) => void;
|
|
56
|
+
onInitialized?: (sender: ComponentBase, e: EventArgs) => void;
|
|
57
|
+
onDisposing?: (sender: ComponentBase, e: EventArgs) => void;
|
|
58
|
+
onDisposed?: (sender: ComponentBase, e: EventArgs) => void;
|
|
59
|
+
onVisibilityChanged?: (sender: ComponentBase, e: VisibilityChangedEventArgs) => void;
|
|
60
|
+
onActivated?: (sender: ComponentBase, e: EventArgs) => void;
|
|
61
|
+
onDeactivated?: (sender: ComponentBase, e: EventArgs) => void;
|
|
57
62
|
};
|
|
58
63
|
type MethodLikeKeys = keyof MethodLikeProps;
|
|
59
64
|
type MotifFunctionalComponent<P = Record<string, unknown>> = (props: P & MotifBaseProps & any) => unknown;
|
|
@@ -103,14 +108,19 @@ type __attr = {
|
|
|
103
108
|
"x-configured"?: (sender: ComponentBase, e: EventArgs) => void;
|
|
104
109
|
"x-initializing"?: (sender: ComponentBase, e: EventArgs) => void;
|
|
105
110
|
"x-initialized"?: (sender: ComponentBase, e: EventArgs) => void;
|
|
106
|
-
|
|
107
|
-
|
|
111
|
+
onBuilding?: (sender: ComponentBase, e: EventArgs) => void;
|
|
112
|
+
onBuilt?: (sender: ComponentBase, e: EventArgs) => void;
|
|
108
113
|
/** Element canlı DOM'a (document) bağlandığında bir kez;*/
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
+
onMounted?: (sender: ComponentBase, e: EventArgs) => void;
|
|
115
|
+
onConfig?: (sender: ComponentBase, e: EventArgs) => void;
|
|
116
|
+
onConfigured?: (sender: ComponentBase, e: EventArgs) => void;
|
|
117
|
+
onInitializing?: (sender: ComponentBase, e: EventArgs) => void;
|
|
118
|
+
onInitialized?: (sender: ComponentBase, e: EventArgs) => void;
|
|
119
|
+
onDisposing?: (sender: ComponentBase, e: EventArgs) => void;
|
|
120
|
+
onDisposed?: (sender: ComponentBase, e: EventArgs) => void;
|
|
121
|
+
onVisibilityChanged?: (sender: ComponentBase, e: VisibilityChangedEventArgs) => void;
|
|
122
|
+
onActivated?: (sender: ComponentBase, e: EventArgs) => void;
|
|
123
|
+
onDeactivated?: (sender: ComponentBase, e: EventArgs) => void;
|
|
114
124
|
"x-style"?: MotifStyle;
|
|
115
125
|
};
|
|
116
126
|
declare namespace JSX {
|
package/dist/jsx-runtime.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentBase, ElementType, EventArgs, IBaseProp } from './index.js';
|
|
1
|
+
import { ComponentBase, ElementType, EventArgs, VisibilityChangedEventArgs, IBaseProp } from './index.js';
|
|
2
2
|
|
|
3
3
|
type MotifStyle = string | (() => any) | Array<any> | Object | Partial<CSSStyleDeclaration> | CSSStyleDeclaration;
|
|
4
4
|
type MotifClass = string | Record<string, any> | Array<any> | (() => any);
|
|
@@ -46,14 +46,19 @@ type MethodLikeProps = {
|
|
|
46
46
|
showPopover?: any;
|
|
47
47
|
hidePopover?: any;
|
|
48
48
|
togglePopover?: any;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
onConfig?: (sender: ComponentBase, e: EventArgs) => void;
|
|
50
|
+
onBuilding?: (sender: ComponentBase, e: EventArgs) => void;
|
|
51
|
+
onBuilt?: (sender: ComponentBase, e: EventArgs) => void;
|
|
52
52
|
/** Element canlı DOM'a (document) bağlandığında bir kez; focus/ölçüm gibi işler için. */
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
53
|
+
onMounted?: (sender: ComponentBase, e: EventArgs) => void;
|
|
54
|
+
onConfigured?: (sender: ComponentBase, e: EventArgs) => void;
|
|
55
|
+
onInitializing?: (sender: ComponentBase, e: EventArgs) => void;
|
|
56
|
+
onInitialized?: (sender: ComponentBase, e: EventArgs) => void;
|
|
57
|
+
onDisposing?: (sender: ComponentBase, e: EventArgs) => void;
|
|
58
|
+
onDisposed?: (sender: ComponentBase, e: EventArgs) => void;
|
|
59
|
+
onVisibilityChanged?: (sender: ComponentBase, e: VisibilityChangedEventArgs) => void;
|
|
60
|
+
onActivated?: (sender: ComponentBase, e: EventArgs) => void;
|
|
61
|
+
onDeactivated?: (sender: ComponentBase, e: EventArgs) => void;
|
|
57
62
|
};
|
|
58
63
|
type MethodLikeKeys = keyof MethodLikeProps;
|
|
59
64
|
type MotifFunctionalComponent<P = Record<string, unknown>> = (props: P & MotifBaseProps & any) => unknown;
|
|
@@ -103,14 +108,19 @@ type __attr = {
|
|
|
103
108
|
"x-configured"?: (sender: ComponentBase, e: EventArgs) => void;
|
|
104
109
|
"x-initializing"?: (sender: ComponentBase, e: EventArgs) => void;
|
|
105
110
|
"x-initialized"?: (sender: ComponentBase, e: EventArgs) => void;
|
|
106
|
-
|
|
107
|
-
|
|
111
|
+
onBuilding?: (sender: ComponentBase, e: EventArgs) => void;
|
|
112
|
+
onBuilt?: (sender: ComponentBase, e: EventArgs) => void;
|
|
108
113
|
/** Element canlı DOM'a (document) bağlandığında bir kez;*/
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
+
onMounted?: (sender: ComponentBase, e: EventArgs) => void;
|
|
115
|
+
onConfig?: (sender: ComponentBase, e: EventArgs) => void;
|
|
116
|
+
onConfigured?: (sender: ComponentBase, e: EventArgs) => void;
|
|
117
|
+
onInitializing?: (sender: ComponentBase, e: EventArgs) => void;
|
|
118
|
+
onInitialized?: (sender: ComponentBase, e: EventArgs) => void;
|
|
119
|
+
onDisposing?: (sender: ComponentBase, e: EventArgs) => void;
|
|
120
|
+
onDisposed?: (sender: ComponentBase, e: EventArgs) => void;
|
|
121
|
+
onVisibilityChanged?: (sender: ComponentBase, e: VisibilityChangedEventArgs) => void;
|
|
122
|
+
onActivated?: (sender: ComponentBase, e: EventArgs) => void;
|
|
123
|
+
onDeactivated?: (sender: ComponentBase, e: EventArgs) => void;
|
|
114
124
|
"x-style"?: MotifStyle;
|
|
115
125
|
};
|
|
116
126
|
declare namespace JSX {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jsx-runtime.esm.js","sources":["../src/jsx-runtime.ts"],"sourcesContent":["import type { ComponentBase, ElementType, EventArgs, IBaseProp } from \"./\";\n\ntype motifPrimitive = string | number | boolean | Node | Text | Element | null | undefined;\n\ndeclare const DEV: boolean;\n\nexport type MotifStyle = string | (() => any) | Array<any> | Object | Partial<CSSStyleDeclaration> | CSSStyleDeclaration;\nexport type MotifClass = string | Record<string, any> | Array<any> | (() => any);\nexport type MotifValue = string | number | boolean | Record<string, any> | Array<any> | (() => any);\nexport type MotifBindable<T> = T | string | (() => T | string);\n\nexport interface MotifBaseProps {\n children?: any;\n key?: string | number;\n ref?: ComponentBase | ((component: any) => void);\n style?: MotifStyle;\n class?: MotifClass;\n className?: MotifClass;\n}\n\ntype MethodLikeProps = {\n focus?: any;\n blur?: any;\n click?: any;\n select?: any;\n scrollIntoView?: any;\n scrollTo?: any;\n scrollBy?: any;\n requestFullscreen?: any;\n exitFullscreen?: any;\n play?: any;\n pause?: any;\n submit?: any;\n reset?: any;\n requestSubmit?: any;\n checkValidity?: any;\n reportValidity?: any;\n show?: any;\n showModal?: any;\n close?: any;\n showPicker?: any;\n setSelectionRange?: any;\n setRangeText?: any;\n requestPointerLock?: any;\n exitPointerLock?: any;\n setPointerCapture?: any;\n releasePointerCapture?: any;\n requestPictureInPicture?: any;\n exitPictureInPicture?: any;\n load?: any;\n fastSeek?: any;\n showPopover?: any;\n hidePopover?: any;\n togglePopover?: any;\n
|
|
1
|
+
{"version":3,"file":"jsx-runtime.esm.js","sources":["../src/jsx-runtime.ts"],"sourcesContent":["import type { ComponentBase, ElementType, EventArgs, IBaseProp, VisibilityChangedEventArgs } from \"./\";\n\ntype motifPrimitive = string | number | boolean | Node | Text | Element | null | undefined;\n\ndeclare const DEV: boolean;\n\nexport type MotifStyle = string | (() => any) | Array<any> | Object | Partial<CSSStyleDeclaration> | CSSStyleDeclaration;\nexport type MotifClass = string | Record<string, any> | Array<any> | (() => any);\nexport type MotifValue = string | number | boolean | Record<string, any> | Array<any> | (() => any);\nexport type MotifBindable<T> = T | string | (() => T | string);\n\nexport interface MotifBaseProps {\n children?: any;\n key?: string | number;\n ref?: ComponentBase | ((component: any) => void);\n style?: MotifStyle;\n class?: MotifClass;\n className?: MotifClass;\n}\n\ntype MethodLikeProps = {\n focus?: any;\n blur?: any;\n click?: any;\n select?: any;\n scrollIntoView?: any;\n scrollTo?: any;\n scrollBy?: any;\n requestFullscreen?: any;\n exitFullscreen?: any;\n play?: any;\n pause?: any;\n submit?: any;\n reset?: any;\n requestSubmit?: any;\n checkValidity?: any;\n reportValidity?: any;\n show?: any;\n showModal?: any;\n close?: any;\n showPicker?: any;\n setSelectionRange?: any;\n setRangeText?: any;\n requestPointerLock?: any;\n exitPointerLock?: any;\n setPointerCapture?: any;\n releasePointerCapture?: any;\n requestPictureInPicture?: any;\n exitPictureInPicture?: any;\n load?: any;\n fastSeek?: any;\n showPopover?: any;\n hidePopover?: any;\n togglePopover?: any;\n onConfig?: (sender: ComponentBase, e: EventArgs) => void;\n onBuilding?: (sender: ComponentBase, e: EventArgs) => void;\n onBuilt?: (sender: ComponentBase, e: EventArgs) => void;\n /** Element canlı DOM'a (document) bağlandığında bir kez; focus/ölçüm gibi işler için. */\n onMounted?: (sender: ComponentBase, e: EventArgs) => void;\n onConfigured?: (sender: ComponentBase, e: EventArgs) => void;\n onInitializing?: (sender: ComponentBase, e: EventArgs) => void;\n onInitialized?: (sender: ComponentBase, e: EventArgs) => void;\n onDisposing?: (sender: ComponentBase, e: EventArgs) => void;\n onDisposed?: (sender: ComponentBase, e: EventArgs) => void;\n onVisibilityChanged?: (sender: ComponentBase, e: VisibilityChangedEventArgs) => void;\n onActivated?: (sender: ComponentBase, e: EventArgs) => void;\n onDeactivated?: (sender: ComponentBase, e: EventArgs) => void;\n};\ntype MethodLikeKeys = keyof MethodLikeProps;\n\nexport type MotifFunctionalComponent<P = Record<string, unknown>> = (\n props: P & MotifBaseProps & any\n) => unknown;\n\nexport type MotifFunctionalComponentBasic = (\n props: MotifBaseProps\n) => unknown;\n\nexport type AnyFunctionalComponent<P = any> = (props: P) => unknown;\nexport type MotifComponentConstructor<TElement extends ElementType = any, P extends Record<string, unknown> = Record<string, unknown>> =\n new (...args: any[]) => ComponentBase<TElement, P>;\n\nexport type MotifComponentType<P = Record<string, unknown>, TElement = unknown> =\n | string\n | MotifFunctionalComponent<P>\n | MotifFunctionalComponentBasic\n | AnyFunctionalComponent<P>\n | MotifComponentConstructor<TElement extends ElementType ? TElement : any, P extends Record<string, unknown> ? P : any>\n | { el: string; ctor?: (this: any, props?: any) => any;[newProp: string]: any };\n\ntype ExtractEventArg<T> = T extends ((this: any, ev: infer EV) => any) | null ? EV : never;\nexport type MotifDomEventHandler<EV> = (senderOrEvent: EV & ComponentBase, ev: EV) => unknown;\ntype motifEventsFor<TElement> = {\n [P in keyof TElement as P extends `on${string}` ? P : never]?:\n TElement[P] extends ((this: any, ev: infer EV) => any) | null\n ? MotifDomEventHandler<EV>\n : MotifDomEventHandler<Event>;\n};\nexport type MotifDomEventProps = motifEventsFor<HTMLElement>;\ntype MotifTagProps = MotifDomEventProps & {\n class?: MotifClass;\n className?: MotifClass;\n style?: MotifStyle;\n id?: MotifBindable<string>;\n tabindex?: MotifBindable<number | string>;\n role?: MotifBindable<string>;\n};\ntype WithTagProps<T> = T & Omit<MotifTagProps, keyof T>;\ntype MotifManagedProps<P> = 0 extends (1 & P) ? IBaseProp<{}> : WithTagProps<Exclude<P, string | Node | undefined>>;\n\n// Transform DOM attributes so that non-event, non-method, non-style/class/value props accept either the value or a function returning it\ntype MotifElementProps<TElement> = {\n [P in keyof Omit<\n Partial<TElement>,\n keyof motifEventsFor<TElement> | 'style' | 'class' | 'className' | 'value' | 'for' | MethodLikeKeys\n >]?: MotifBindable<Partial<TElement>[P]>;\n};\n\ntype IntrinsicHTML = {\n [K in keyof HTMLElementTagNameMap]:\n MotifElementProps<HTMLElementTagNameMap[K]> &\n motifEventsFor<HTMLElementTagNameMap[K]> &\n Partial<MotifBaseProps> &\n MethodLikeProps &\n (K extends 'input' | 'textarea' ? { value?: MotifValue } : {}) & object & { [key: string]: any };\n};\n\ntype IntrinsicSVG = IntrinsicHTML;\n// type IntrinsicSVG = {\n// keyof motifEventsFor<SVGElementTagNameMap[\"svg\"]> | 'style' | 'class' | 'className' | 'value' | MethodLikeKeys\n\ntype IntrinsicElementsMap = IntrinsicHTML & IntrinsicSVG;\n\nexport type __attr = {\n key?: string | number;\n ref?: ComponentBase | ((component: any) => void);\n initializeComponent?: (sender: ComponentBase) => void;\n \"x-wait\"?: (sender: ComponentBase, e: EventArgs) => boolean;\n \"x-building\"?: (sender: ComponentBase, e: EventArgs) => void;\n \"x-built\"?: (sender: ComponentBase, e: EventArgs) => void;\n \"x-config\"?: (sender: ComponentBase, e: EventArgs) => void;\n \"x-configured\"?: (sender: ComponentBase, e: EventArgs) => void;\n \"x-initializing\"?: (sender: ComponentBase, e: EventArgs) => void;\n \"x-initialized\"?: (sender: ComponentBase, e: EventArgs) => void;\n onBuilding?: (sender: ComponentBase, e: EventArgs) => void;\n onBuilt?: (sender: ComponentBase, e: EventArgs) => void;\n /** Element canlı DOM'a (document) bağlandığında bir kez;*/\n onMounted?: (sender: ComponentBase, e: EventArgs) => void;\n onConfig?: (sender: ComponentBase, e: EventArgs) => void;\n onConfigured?: (sender: ComponentBase, e: EventArgs) => void;\n onInitializing?: (sender: ComponentBase, e: EventArgs) => void;\n onInitialized?: (sender: ComponentBase, e: EventArgs) => void;\n onDisposing?: (sender: ComponentBase, e: EventArgs) => void;\n onDisposed?: (sender: ComponentBase, e: EventArgs) => void;\n onVisibilityChanged?: (sender: ComponentBase, e: VisibilityChangedEventArgs) => void;\n onActivated?: (sender: ComponentBase, e: EventArgs) => void;\n onDeactivated?: (sender: ComponentBase, e: EventArgs) => void;\n \"x-style\"?: MotifStyle;\n}\nexport namespace JSX {\n export type Element = ComponentBase<any, any>;\n export type ElementType = MotifComponentType<any, any>;\n export interface ElementClass extends ComponentBase { }\n export interface ElementAttributesProperty extends __attr {\n props: {};\n };\n\n export interface IntrinsicElements extends IntrinsicElementsMap {\n [elementName: string]: IntrinsicElementsMap[keyof IntrinsicElementsMap];\n }\n\n export type LibraryManagedAttributes<C, P> = MotifManagedProps<P>;\n\n export interface IntrinsicAttributes extends __attr { };\n}\n\ndeclare global {\n namespace JSX {\n export type Element = ComponentBase<any, any>;\n export type ElementType = MotifComponentType<any, any>;\n export interface ElementClass extends ComponentBase { }\n export interface ElementAttributesProperty extends __attr {\n props: {};\n }\n\n export interface IntrinsicElements extends IntrinsicElementsMap {\n [elementName: string]: IntrinsicElementsMap[keyof IntrinsicElementsMap];\n }\n\n export type LibraryManagedAttributes<C, P> = MotifManagedProps<P>;\n\n export interface IntrinsicAttributes extends __attr { }\n }\n}\n"],"names":[],"mappings":"AA+JM,IAAW;AAAjB,CAAA,UAAiB,GAAG,EAAA;AAepB,CAAC,EAfgB,GAAG,KAAH,GAAG,GAAA,EAAA,CAAA,CAAA;;;;"}
|