@base-framework/base 3.0.259 → 3.0.261
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/types/base.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ import { DataTracker } from './main/data-tracker/data-tracker.js';
|
|
|
10
10
|
import { DateTime } from "./modules/date/date-time.js";
|
|
11
11
|
import { Directives } from './modules/layout/directives/directives.js';
|
|
12
12
|
import { Dom } from './shared/dom.js';
|
|
13
|
+
import { EventMethods } from './main/events/event-methods.js';
|
|
13
14
|
import { Html } from './modules/html/html.js';
|
|
14
15
|
import { Import } from './modules/import/import.js';
|
|
15
16
|
import { Jot } from './modules/component/jot.js';
|
|
@@ -23,4 +24,4 @@ import { StateTracker as State } from './modules/state/state-tracker.js';
|
|
|
23
24
|
import { Strings } from './shared/strings.js';
|
|
24
25
|
import { Types } from './shared/types.js';
|
|
25
26
|
import { Unit } from './modules/component/unit.js';
|
|
26
|
-
export { Ajax, Arrays, Atom, base, Builder, Component, Data, dataBinder, DataTracker, DateTime, Directives, Dom, Html, Import, Jot, Model, NavLink, Objects, Pod, router, SimpleData, State, Strings, Types, Unit };
|
|
27
|
+
export { Ajax, Arrays, Atom, base, Builder, Component, Data, dataBinder, DataTracker, DateTime, Directives, Dom, EventMethods as Events, Html, Import, Jot, Model, NavLink, Objects, Pod, router, SimpleData, State, Strings, Types, Unit };
|
|
@@ -1,33 +1,24 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Model
|
|
2
|
+
* The Model class extends Data to provide structure
|
|
3
|
+
* for connecting to a remote service.
|
|
3
4
|
*
|
|
4
|
-
*
|
|
5
|
-
* a service that connects to a remote source.
|
|
6
|
-
*
|
|
7
|
-
* @class
|
|
5
|
+
* @class Model
|
|
8
6
|
* @extends Data
|
|
9
7
|
*/
|
|
10
8
|
export class Model extends Data {
|
|
11
9
|
/**
|
|
12
|
-
*
|
|
10
|
+
* Creates a new subclass of the current Model and returns its constructor.
|
|
13
11
|
*
|
|
14
12
|
* @static
|
|
15
|
-
* @param {object} [settings={}]
|
|
16
|
-
* @returns {
|
|
17
|
-
*/
|
|
18
|
-
static extend(settings?: object): object;
|
|
19
|
-
/**
|
|
20
|
-
* @member {string|null} url
|
|
21
|
-
* @default null
|
|
13
|
+
* @param {object} [settings={}] - Configuration for the extended model.
|
|
14
|
+
* @returns {typeof Model} The extended model class (subclass of Model).
|
|
22
15
|
*/
|
|
16
|
+
static extend(settings?: object): typeof Model;
|
|
23
17
|
url: any;
|
|
24
|
-
/**
|
|
25
|
-
* @member {object|null} xhr
|
|
26
|
-
*/
|
|
27
18
|
xhr: any;
|
|
28
19
|
/**
|
|
29
|
-
*
|
|
30
|
-
*
|
|
20
|
+
* Called after the model is constructed to allow
|
|
21
|
+
* additional initialization logic.
|
|
31
22
|
*
|
|
32
23
|
* @protected
|
|
33
24
|
* @returns {void}
|