cradova 3.2.1 โ†’ 3.3.0

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  <br/>
2
2
  <p align="center">
3
- <a href="https://github.com/fridaycandour/cradova">
3
+ <a href="https://github.com/uiedbook/cradova">
4
4
  <img src="cradova.png" alt="Logo" width="80" height="80">
5
5
  </a>
6
6
 
@@ -10,22 +10,51 @@
10
10
  Cradova is a JavaScript framework for building Single Page Applications and PWAs.
11
11
  <br/>
12
12
  <br/>
13
- <a href="https://github.com/fridaycandour/cradova#examples"><strong>Explore the ๐ŸŽ™๏ธ docs ยป</strong></a>
13
+ <a href="https://github.com/uiedbook/cradova#examples"><strong>Explore the ๐ŸŽ™๏ธ docs ยป</strong></a>
14
14
  <br/>
15
15
  <br/>
16
- <a href="https://t.me/cradovaframework">Join Community</a>
16
+ <a href="https://t.me/uiedbookHQ">Join Community</a>
17
17
  .
18
- <a href="https://github.com/fridaycandour/cradova/issues">Report Bug</a>
18
+ <a href="https://github.com/uiedbook/cradova/issues">Report Bug</a>
19
19
  .
20
- <a href="https://github.com/fridaycandour/cradova/issues">Request Feature</a>
20
+ <a href="https://github.com/uiedbook/cradova/issues">Request Feature</a>
21
21
  </p>
22
22
  </p>
23
23
 
24
- ![Contributors](https://img.shields.io/github/contributors/fridaycandour/cradova?color=dark-green) ![Issues](https://img.shields.io/github/issues/fridaycandour/cradova) ![License](https://img.shields.io/github/license/fridaycandour/cradova)
24
+ ![Contributors](https://img.shields.io/github/contributors/uiedbook/cradova?color=dark-green) ![Issues](https://img.shields.io/github/issues/uiedbook/cradova) ![License](https://img.shields.io/github/license/uiedbook/cradova)
25
25
  [![npm Version](https://img.shields.io/npm/v/cradova.svg)](https://www.npmjs.com/package/cradova)
26
26
  [![License](https://img.shields.io/npm/l/cradova.svg)](https://github.com/cradova/cradova.js/blob/next/LICENSE)
27
27
  [![npm Downloads](https://img.shields.io/npm/dm/cradova.svg)](https://www.npmjs.com/package/cradova)
28
- [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/cradova/cradova.js/blob/next/contributing.md)![Forks](https://img.shields.io/github/forks/fridaycandour/cradova?style=social) ![Stargazers](https://img.shields.io/github/stars/fridaycandour/cradova?style=social)
28
+ [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/cradova/cradova.js/blob/next/contributing.md)![Forks](https://img.shields.io/github/forks/uiedbook/cradova?style=social) ![Stargazers](https://img.shields.io/github/stars/uiedbook/cradova?style=social)
29
+
30
+ ## What's New? Conditionals!
31
+
32
+ ```js
33
+ import { div, h1, $if, $ifelse, $case, $switch } from "cradova";
34
+
35
+ function Hello({ name }) {
36
+ return div(
37
+ $if(name === "john", h1("Hello john")),
38
+ $if(name === "paul", h1("Goodbye paul")),
39
+ $ifelse(name === "john", h1("Hello john"), h1("Hello Paul"))
40
+ );
41
+ }
42
+
43
+ const html = div(Hello("john"), Hello("paul"));
44
+
45
+ function whatsAllowed({ age }) {
46
+ return div(
47
+ $switch(
48
+ age,
49
+ $case(12, h1("too young")),
50
+ $case(26, h1("you are welcome")),
51
+ $case(52, h1("too old"))
52
+ )
53
+ );
54
+ }
55
+
56
+ document.body.append(html, whatsAllowed({ age: 26 }));
57
+ ```
29
58
 
30
59
  # Contents
31
60
 
@@ -43,7 +72,7 @@ Cradova is a web development framework for building Single Page Applications and
43
72
 
44
73
  It's a fast and simple framework, it provides an easy to use state management and router system.
45
74
 
46
- Cradova follows the [VJS specification](https://github.com/FridayCandour/cradova/blob/main/VJS_spec/spec.md)
75
+ Cradova follows the [VJS specification](https://github.com/uiedbook/cradova/blob/main/VJS_spec/spec.md)
47
76
 
48
77
  ## What's the benefit?
49
78
 
@@ -58,7 +87,7 @@ Undoubtedly, this provides a significant advantage.
58
87
 
59
88
  Cradova has already been utilized in multiple production projects, and we will continuously update this page to showcase our advancements as we keep improving.
60
89
 
61
- [current version changes](https://github.com/fridaycandour/cradova/blob/main/CHANGELOG.md#v300)
90
+ [current version changes](https://github.com/uiedbook/cradova/blob/main/CHANGELOG.md#v330)
62
91
 
63
92
  ## Installation
64
93
 
@@ -431,23 +460,33 @@ At the moment, we're in the process of creating a documentation website for Crad
431
460
 
432
461
  ## Getting Help
433
462
 
434
- To get further insights and help on Cradova, visit our [Discord](https://discord.gg/b7fvMg38) and [Telegram](https://t.me/cradovaframework) Community Chats.
463
+ To get further insights and help on Cradova, visit our [Discord](https://discord.gg/b7fvMg38) and [Telegram](https://t.me/uiedbookHQ) Community Chats.
435
464
 
436
465
  ## Contributing
437
466
 
438
- We are currently working to [set](https://github.com/fridaycandour/cradova/blob/main/contributing.md) up the following:
467
+ We are currently working to [set](https://github.com/uiedbook/cradova/blob/main/contributing.md) up the following:
439
468
 
440
469
  - building Cradova CLI (in progress)
441
470
  - Cradova Documentation Website
442
471
  - UI component libraries for cradova
443
472
  - Sample projects
444
473
  - maintenance and promotion
445
- <!--
474
+
475
+ ```
476
+ โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•โ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—
477
+ โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ• โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•”โ•โ•—โ–ˆโ–ˆโ•‘ โ–ˆ โ–ˆโ–ˆ โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ•โ•โ–ˆ โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•”โ•โ•—โ–ˆโ–ˆ
478
+ โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ• โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•‘ โ–ˆ โ–ˆโ–ˆ โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆ โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—
479
+ โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘ โ–ˆ โ–ˆโ–ˆ โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆ โ•šโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•”โ• โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•—
480
+ โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ• โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ โ•šโ–ˆโ–ˆโ–ˆโ•”โ• โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘
481
+ โ•šโ•โ•โ•โ•โ•โ• โ•šโ•โ• โ•šโ•โ• โ•šโ•โ• โ•šโ•โ• โ•šโ•โ•โ•โ•โ•โ•โ• โ•šโ•โ•โ•โ•โ• โ•šโ•โ•โ• โ•šโ•โ• โ•šโ•โ•
482
+ ```
446
483
 
447
484
  ## Sponsor
448
485
 
449
- Your support is appreciated and needed to advance Cradova for more performance and improvements.
486
+ Your contribution(s) is a good force for change anytime you do it, you can ensure Cradova's growth and improvement by contributing a re-occuring or fixed donations to:
487
+
488
+ https://www.buymeacoffee.com/fridaycandour
450
489
 
451
- Sponsorships can be done via [Patreon](https://www.patreon.com/FridayCandour) and [KO-FI](https://www.ko-fi.com/fridaycandour).
490
+ Or Click.
452
491
 
453
- Both monthly-recurring sponsorships and one-time donations are accepted. -->
492
+ <a href="https://www.buymeacoffee.com/fridaycandour"><img src="https://img.buymeacoffee.com/button-api/?text=Buy us a coffee&emoji=&slug=fridaycandour&button_colour=FFDD00&font_colour=000000&outline_colour=000000&coffee_colour=ffffff" /></a>
package/dist/index.d.ts CHANGED
@@ -1,5 +1,15 @@
1
1
  import * as CSS from 'csstype';
2
2
 
3
+ /*! *****************************************************************************
4
+ Copyright 2022 Friday Candour. All rights reserved.
5
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
6
+ this file except in compliance with the License. You may obtain a copy of the
7
+ License at http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ See the Apache Version 2.0 License for specific language governing permissions
10
+ and limitations under the License.
11
+ ***************************************************************************** */
12
+
3
13
  /**
4
14
  * Cradova Signal
5
15
  * ----
@@ -103,14 +113,27 @@ declare class createSignal<Type extends Record<string, unknown>> {
103
113
  clearPersist(): void;
104
114
  }
105
115
 
116
+ /*! *****************************************************************************
117
+ Copyright 2022 Friday Candour. All rights reserved.
118
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
119
+ this file except in compliance with the License. You may obtain a copy of the
120
+ License at http://www.apache.org/licenses/LICENSE-2.0
121
+
122
+ See the Apache Version 2.0 License for specific language governing permissions
123
+ and limitations under the License.
124
+ ***************************************************************************** */
125
+
106
126
  declare const isNode: (element: unknown) => boolean;
107
127
  /**
108
128
  * Cradova event
109
129
  */
110
130
  declare class cradovaEvent {
111
131
  private listeners;
132
+ private active_listeners;
112
133
  addEventListener(eventName: string, callback: () => void): Promise<void>;
134
+ addActiveEventListener(eventName: string, callback: () => void): Promise<void>;
113
135
  dispatchEvent(eventName: string, eventArgs?: unknown): Promise<void>;
136
+ dispatchActiveEvent(eventName: string, eventArgs?: unknown): Promise<void>;
114
137
  }
115
138
  declare const CradovaEvent: cradovaEvent;
116
139
  declare function Rhoda(l: VJSType<HTMLElement>[] | (() => any)[] | Ref<unknown>[] | HTMLElement[]): DocumentFragment;
@@ -120,10 +143,13 @@ declare function css(identifier: string | TemplateStringsArray): void;
120
143
  * @param {expression} condition
121
144
  * @param {function} elements[]
122
145
  */
123
- declare function assert<Type>(condition: boolean, ...elements: VJS_Child_TYPE<Type | HTMLElement>[]): HTMLElement[] | undefined;
124
- declare function assertOr<Type>(condition: boolean, ifTrue: VJS_Child_TYPE<Type | HTMLElement>, ifFalse: VJS_Child_TYPE<Type | HTMLElement>): VJS_Child_TYPE<HTMLElement | Type>;
146
+ declare function $if<Type>(condition: boolean, ...elements: VJS_Child_TYPE<Type | HTMLElement>[]): HTMLElement[] | undefined;
147
+ declare function $ifelse<Type>(condition: boolean, ifTrue: VJS_Child_TYPE<Type | HTMLElement>, ifFalse: VJS_Child_TYPE<Type | HTMLElement>): VJS_Child_TYPE<HTMLElement | Type>;
148
+ declare function $case<Type>(value: any, ...elements: VJS_Child_TYPE<Type | HTMLElement>[]): (key: any) => HTMLElement[] | undefined;
149
+ declare function $switch(key: unknown, ...cases: ((key: any) => HTMLElement[] | undefined)[]): HTMLElement[] | undefined;
125
150
  type LoopData<Type> = Type[];
126
151
  declare function loop<Type>(datalist: LoopData<Type>, component: (value: Type, index?: number, array?: LoopData<Type>) => HTMLElement | DocumentFragment | undefined): HTMLElement[] | undefined;
152
+ declare function memo_SNRU(): void;
127
153
  /**
128
154
  * Cradova Ref
129
155
  * -------
@@ -137,7 +163,6 @@ declare class Ref<D> {
137
163
  private published;
138
164
  private preRendered;
139
165
  private reference;
140
- private current_id?;
141
166
  Signal: createSignal<any> | undefined;
142
167
  _state: D[];
143
168
  _state_track: {
@@ -145,9 +170,20 @@ declare class Ref<D> {
145
170
  };
146
171
  _state_index: number;
147
172
  stash: D | undefined;
148
- constructor(component: (this: Ref<D>, data: D) => HTMLElement | DocumentFragment);
173
+ constructor(component: (this: Ref<D>, data: D) => HTMLElement | DocumentFragment, options?: {
174
+ active: boolean;
175
+ } | boolean);
149
176
  preRender(data?: D, stash?: boolean): void;
150
177
  destroyPreRendered(): void;
178
+ /**
179
+ * Cradova Ref
180
+ * ---
181
+ * construct to add custom methods to Refs
182
+ * @param methodName
183
+ * @param method
184
+ * @returns void
185
+ */
186
+ define(methodName: string, method: () => void): void;
151
187
  /**
152
188
  * Cradova Ref
153
189
  * ---
@@ -156,7 +192,7 @@ declare class Ref<D> {
156
192
  * @returns () => HTMLElement
157
193
  */
158
194
  render(data?: D, stash?: boolean): HTMLElement | DocumentFragment;
159
- instance(): Record<string, any>;
195
+ instance(): HTMLElement;
160
196
  _setExtra(Extra: createSignal<any>): void;
161
197
  _roll_state(data: D, idx: number, get?: boolean): D;
162
198
  _effect(fn: () => Promise<void> | void): void;
@@ -194,7 +230,8 @@ declare class lazy<Type> {
194
230
  * make reference to dom elements
195
231
  */
196
232
  declare class reference {
197
- [x: string]: Record<string, any>;
233
+ tree: Record<string, any>;
234
+ globalTree: Record<string, HTMLElement>;
198
235
  /**
199
236
  * Bind a DOM element to a reference name.
200
237
  * @param name - The name to reference the DOM element by.
@@ -204,13 +241,14 @@ declare class reference {
204
241
  * Retrieve a referenced DOM element.
205
242
  * @param name - The name of the referenced DOM element.
206
243
  */
207
- dom<ElementType extends HTMLElement>(name: string): ElementType | undefined;
244
+ current<ElementType extends HTMLElement = HTMLElement>(name: string): ElementType;
208
245
  /**
209
246
  * Append a DOM element to the reference, overwriting any existing reference.
210
247
  * @param name - The name to reference the DOM element by.
211
248
  * @param element - The DOM element to reference.
212
249
  */
213
250
  _appendDomForce(name: string, Element: HTMLElement): void;
251
+ _appendDomForceGlobal(name: string, Element: HTMLElement): void;
214
252
  }
215
253
  /**
216
254
  * Cradova
@@ -237,36 +275,55 @@ Returns a mutable reference object of dom elements that persists across componen
237
275
  */
238
276
  declare function useRef(): Record<string, HTMLElement | undefined>;
239
277
 
278
+ /*! *****************************************************************************
279
+ Copyright 2022 Friday Candour. All rights reserved.
280
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
281
+ this file except in compliance with the License. You may obtain a copy of the
282
+ License at http://www.apache.org/licenses/LICENSE-2.0
283
+
284
+ See the Apache Version 2.0 License for specific language governing permissions
285
+ and limitations under the License.
286
+ ***************************************************************************** */
287
+
240
288
  /**
241
289
  * Cradova Screen
242
290
  * ---
243
- * create instances of manageable pages and scaffolds
291
+ * create instances of manageable pages
244
292
  * @param name
245
293
  * @param template
246
- * @param transitions
247
294
  */
248
295
  declare class Screen {
249
296
  /**
250
- * this should be a cradova screen component
251
- */
252
- _html: ((this: Screen, data?: unknown) => HTMLElement | DocumentFragment) | HTMLElement | DocumentFragment;
253
- /**
254
- * error handler for the screen
297
+ * used internally
255
298
  */
256
- _errorHandler: ((err: unknown) => void) | null;
299
+ private _name;
257
300
  /**
258
- * used internally
301
+ * this should be a cradova screen component
259
302
  */
260
- _name: string;
303
+ _html: ((this: Screen, data?: unknown) => HTMLElement | DocumentFragment) | HTMLElement | DocumentFragment;
261
304
  private _packed;
262
305
  private _template;
263
306
  private _callBack;
264
307
  private _deCallBack;
265
308
  private _persist;
266
309
  private _delegatedRoutesCount;
267
- private _transition;
268
310
  private _dropped;
311
+ /**
312
+ * error handler for the screen
313
+ */
314
+ _errorHandler: ((err: unknown) => void) | null;
269
315
  constructor(cradova_screen_initials: CradovaScreenType);
316
+ _derive(): {
317
+ _name: string;
318
+ _callBack: ((cradovaScreenSet: HTMLElement) => void | Promise<void>) | undefined;
319
+ _deCallBack: ((cradovaScreenSet: HTMLElement) => void | Promise<void>) | undefined;
320
+ };
321
+ _apply_derivation(derivation: {
322
+ _name: string;
323
+ _transition: string | undefined;
324
+ _callBack: (() => void | Promise<void>) | undefined;
325
+ _deCallBack: (() => void | Promise<void>) | undefined;
326
+ }): void;
270
327
  get _delegatedRoutes(): boolean;
271
328
  set _delegatedRoutes(count: boolean);
272
329
  setErrorHandler(errorHandler: (err: unknown) => void): void;
@@ -278,6 +335,16 @@ declare class Screen {
278
335
  _Activate(force?: boolean): Promise<void>;
279
336
  }
280
337
 
338
+ /*! *****************************************************************************
339
+ Copyright 2022 Friday Candour. All rights reserved.
340
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
341
+ this file except in compliance with the License. You may obtain a copy of the
342
+ License at http://www.apache.org/licenses/LICENSE-2.0
343
+
344
+ See the Apache Version 2.0 License for specific language governing permissions
345
+ and limitations under the License.
346
+ ***************************************************************************** */
347
+
281
348
  type DataAttributes = {
282
349
  [key: `data-${string}`]: string;
283
350
  };
@@ -322,7 +389,7 @@ type CradovaScreenType<T = unknown> = {
322
389
  * title of the page
323
390
  * .
324
391
  */
325
- name: string;
392
+ name?: string;
326
393
  /**
327
394
  * Cradova screen
328
395
  * ---
@@ -330,7 +397,6 @@ type CradovaScreenType<T = unknown> = {
330
397
  * Usually for adding css transitions
331
398
  * .
332
399
  */
333
- transition?: string;
334
400
  /**
335
401
  * Cradova screen
336
402
  * ---
@@ -361,6 +427,16 @@ type CradovaScreenType<T = unknown> = {
361
427
  persist?: boolean;
362
428
  };
363
429
 
430
+ /*! *****************************************************************************
431
+ Copyright 2022 Friday Candour. All rights reserved.
432
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
433
+ this file except in compliance with the License. You may obtain a copy of the
434
+ License at http://www.apache.org/licenses/LICENSE-2.0
435
+
436
+ See the Apache Version 2.0 License for specific language governing permissions
437
+ and limitations under the License.
438
+ ***************************************************************************** */
439
+
364
440
  /** cradova router
365
441
  * ---
366
442
  * Registers a route.
@@ -461,24 +537,27 @@ declare class Router {
461
537
  static _mount(): void;
462
538
  }
463
539
 
540
+ /*! *****************************************************************************
541
+ Copyright 2022 Friday Candour. All rights reserved.
542
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
543
+ this file except in compliance with the License. You may obtain a copy of the
544
+ License at http://www.apache.org/licenses/LICENSE-2.0
545
+
546
+ See the Apache Version 2.0 License for specific language governing permissions
547
+ and limitations under the License.
548
+ ***************************************************************************** */
549
+
464
550
  declare const makeElement: <E extends HTMLElement>(element: E & HTMLElement, ElementChildrenAndPropertyList: VJS_params_TYPE<E>) => E;
465
551
  declare const make: (descriptor: any) => any[];
466
552
  declare const a: VJSType<HTMLAnchorElement>;
467
- declare const area: VJSType<HTMLAreaElement>;
468
553
  declare const article: VJSType<HTMLElement>;
469
- declare const aside: VJSType<HTMLElement>;
470
554
  declare const audio: VJSType<HTMLAudioElement>;
471
- declare const b: VJSType<HTMLElement>;
472
- declare const base: VJSType<HTMLBaseElement>;
473
- declare const blockquote: VJSType<HTMLElement>;
474
555
  declare const br: VJSType<HTMLBRElement>;
475
556
  declare const button: VJSType<HTMLButtonElement>;
476
557
  declare const canvas: VJSType<HTMLCanvasElement>;
477
558
  declare const caption: VJSType<HTMLTableCaptionElement>;
478
- declare const code: VJSType<HTMLElement>;
479
559
  declare const col: VJSType<HTMLTableColElement>;
480
560
  declare const colgroup: VJSType<HTMLOptGroupElement>;
481
- declare const data: VJSType<HTMLDataElement>;
482
561
  declare const datalist: VJSType<HTMLDataListElement>;
483
562
  declare const details: VJSType<HTMLDetailsElement>;
484
563
  declare const dialog: VJSType<HTMLDialogElement>;
@@ -502,18 +581,13 @@ declare const iframe: VJSType<HTMLIFrameElement>;
502
581
  declare const img: VJSType<HTMLImageElement>;
503
582
  declare const input: VJSType<HTMLInputElement>;
504
583
  declare const label: VJSType<HTMLLabelElement>;
505
- declare const legend: VJSType<HTMLLegendElement>;
506
584
  declare const li: VJSType<HTMLLIElement>;
507
- declare const link: VJSType<HTMLLinkElement>;
508
585
  declare const main: VJSType<HTMLElement>;
509
- declare const menu: VJSType<HTMLMenuElement>;
510
586
  declare const nav: VJSType<HTMLElement>;
511
- declare const object: VJSType<HTMLObjectElement>;
512
587
  declare const ol: VJSType<HTMLOListElement>;
513
588
  declare const optgroup: VJSType<HTMLOptGroupElement>;
514
589
  declare const option: VJSType<HTMLOptionElement>;
515
590
  declare const p: VJSType<HTMLParagraphElement>;
516
- declare const pre: VJSType<HTMLPreElement>;
517
591
  declare const progress: VJSType<HTMLProgressElement>;
518
592
  declare const q: VJSType<HTMLQuoteElement>;
519
593
  declare const section: VJSType<HTMLElement>;
@@ -535,25 +609,7 @@ declare const u: VJSType<HTMLUListElement>;
535
609
  declare const ul: VJSType<HTMLUListElement>;
536
610
  declare const video: VJSType<HTMLVideoElement>;
537
611
  declare const svg: (svg: string, properties?: VJS_props_TYPE) => HTMLSpanElement;
538
-
539
- /**
540
- *
541
- * Cradova Ajax
542
- * ------------------
543
- * your new axios alternative
544
- * supports files upload
545
- * @param url string
546
- * @param {{method: string;data;header;callbacks;}} opts
547
- * @returns unknown
548
- */
549
- declare function Ajax(url: string | URL, opts?: {
550
- method?: "GET" | "POST";
551
- data?: Record<string, unknown>;
552
- header?: {
553
- "content-type"?: string;
554
- } & Record<string, string>;
555
- callbacks?: Record<string, (arg: Function) => void>;
556
- }): Promise<string>;
612
+ declare const raw: (html: string) => HTMLElement[];
557
613
 
558
614
  type TemplateType = <E extends HTMLElement>(...element_initials: VJS_params_TYPE<E | HTMLElement>) => E | HTMLElement | DocumentFragment;
559
615
  /**
@@ -563,21 +619,9 @@ type TemplateType = <E extends HTMLElement>(...element_initials: VJS_params_TYPE
563
619
  * @example
564
620
  * // using template
565
621
  * const p = _("p");
566
- * _("p.class");
567
- * _("p#id");
568
- * _("p.class#id");
569
622
  * _("p.foo.bar#poo.loo");
570
623
  *
571
- * // using inline props
572
- *
573
- * _("p",{
574
- * text: "am a p tag",
575
- * style: {
576
- * color: "blue"
577
- * }
578
- * })
579
- *
580
- * // props and children
624
+ * // full example
581
625
  * _("p", // template first
582
626
  * // property next if wanted
583
627
  * {style: {color: "brown"}, // optional
@@ -591,4 +635,4 @@ type TemplateType = <E extends HTMLElement>(...element_initials: VJS_params_TYPE
591
635
  */
592
636
  declare const _: TemplateType;
593
637
 
594
- export { Ajax, CradovaEvent, Ref, Rhoda, Router, Screen, a, area, article, aside, assert, assertOr, audio, b, base, blockquote, br, button, canvas, caption, code, col, colgroup, createSignal, css, data, datalist, _ as default, details, dialog, div, em, embed, figure, footer, form, frag, h1, h2, h3, h4, h5, h6, head, header, hr, i, iframe, img, input, isNode, label, lazy, legend, li, link, loop, main, make, makeElement, menu, nav, object, ol, optgroup, option, p, pre, progress, q, reference, section, select, source, span, strong, summary, svg, table, tbody, td, template, textarea, th, title, tr, track, u, ul, useEffect, useRef, useState, video };
638
+ export { $case, $if, $ifelse, $switch, CradovaEvent, Ref, Rhoda, Router, Screen, a, article, audio, br, button, canvas, caption, col, colgroup, createSignal, css, datalist, _ as default, details, dialog, div, em, embed, figure, footer, form, frag, h1, h2, h3, h4, h5, h6, head, header, hr, i, iframe, img, input, isNode, label, lazy, li, loop, main, make, makeElement, memo_SNRU, nav, ol, optgroup, option, p, progress, q, raw, reference, section, select, source, span, strong, summary, svg, table, tbody, td, template, textarea, th, title, tr, track, u, ul, useEffect, useRef, useState, video };