@base-framework/base 3.5.49 → 3.5.50

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.
Files changed (78) hide show
  1. package/dist/base.js +1 -1
  2. package/dist/base.js.map +3 -3
  3. package/dist/types/main/base.d.ts +10 -11
  4. package/dist/types/main/data-tracker/data-tracker.d.ts +2 -2
  5. package/dist/types/main/data-tracker/tracker.d.ts +1 -1
  6. package/dist/types/main/events/event-methods.d.ts +1 -1
  7. package/dist/types/main/events/events.d.ts +9 -9
  8. package/dist/types/modules/ajax/ajax.d.ts +2 -2
  9. package/dist/types/modules/ajax/xhr-default-settings.d.ts +7 -9
  10. package/dist/types/modules/ajax/xhr-request.d.ts +4 -4
  11. package/dist/types/modules/animation/animation.d.ts +3 -3
  12. package/dist/types/modules/animations/animation-controller.d.ts +4 -1
  13. package/dist/types/modules/animations/attr-movement.d.ts +0 -14
  14. package/dist/types/modules/animations/css-movement.d.ts +11 -1
  15. package/dist/types/modules/animations/movement.d.ts +79 -14
  16. package/dist/types/modules/animations/value.d.ts +113 -25
  17. package/dist/types/modules/component/cloak.d.ts +1 -1
  18. package/dist/types/modules/component/component.d.ts +12 -13
  19. package/dist/types/modules/component/event-helper.d.ts +4 -4
  20. package/dist/types/modules/component/parse-args.d.ts +1 -1
  21. package/dist/types/modules/component/pod.d.ts +1 -1
  22. package/dist/types/modules/component/prop-utils.d.ts +2 -2
  23. package/dist/types/modules/component/state-helper.d.ts +13 -13
  24. package/dist/types/modules/component/unit.d.ts +27 -25
  25. package/dist/types/modules/data/types/basic-data.d.ts +6 -6
  26. package/dist/types/modules/data/types/deep-data/data-utils.d.ts +2 -2
  27. package/dist/types/modules/data/types/deep-data/deep-data.d.ts +2 -2
  28. package/dist/types/modules/data/types/deep-data/publisher.d.ts +2 -2
  29. package/dist/types/modules/data/types/model/model-service.d.ts +28 -28
  30. package/dist/types/modules/data-binder/connection-tracker/connection-tracker.d.ts +2 -2
  31. package/dist/types/modules/data-binder/connection-tracker/connections/one-way-connection.d.ts +2 -3
  32. package/dist/types/modules/data-binder/connection-tracker/connections/two-way-connection.d.ts +8 -10
  33. package/dist/types/modules/data-binder/data-binder.d.ts +17 -16
  34. package/dist/types/modules/data-binder/data-pub-sub.d.ts +1 -1
  35. package/dist/types/modules/data-binder/sources/data-source.d.ts +3 -3
  36. package/dist/types/modules/data-binder/sources/element-source.d.ts +4 -4
  37. package/dist/types/modules/data-binder/sources/source.d.ts +4 -4
  38. package/dist/types/modules/data-binder/sources/two-way-source.d.ts +2 -2
  39. package/dist/types/modules/date/date-time.d.ts +4 -4
  40. package/dist/types/modules/html/html.d.ts +2 -2
  41. package/dist/types/modules/import/group.d.ts +4 -4
  42. package/dist/types/modules/import/import-wrapper.d.ts +2 -2
  43. package/dist/types/modules/layout/builder.d.ts +2 -2
  44. package/dist/types/modules/layout/directives/core/parent/parent-directives.d.ts +1 -1
  45. package/dist/types/modules/layout/directives/core/reactive/data-set.d.ts +2 -2
  46. package/dist/types/modules/layout/directives/core/reactive/map.d.ts +1 -1
  47. package/dist/types/modules/layout/directives/core/reactive/on-set.d.ts +1 -1
  48. package/dist/types/modules/layout/directives/core/reactive/on-state.d.ts +1 -1
  49. package/dist/types/modules/layout/directives/core/switch.d.ts +1 -1
  50. package/dist/types/modules/layout/directives/directives.d.ts +4 -4
  51. package/dist/types/modules/layout/element/element.d.ts +1 -1
  52. package/dist/types/modules/layout/element/parser.d.ts +6 -6
  53. package/dist/types/modules/layout/html-helper.d.ts +4 -4
  54. package/dist/types/modules/layout/html-to-string.d.ts +4 -4
  55. package/dist/types/modules/layout/render/render.d.ts +2 -2
  56. package/dist/types/modules/router/history/browser-history.d.ts +6 -6
  57. package/dist/types/modules/router/history/hash-history.d.ts +6 -0
  58. package/dist/types/modules/router/history/history.d.ts +2 -2
  59. package/dist/types/modules/router/nav-link.d.ts +2 -2
  60. package/dist/types/modules/router/router.d.ts +37 -28
  61. package/dist/types/modules/router/routes/component-helper.d.ts +0 -5
  62. package/dist/types/modules/router/routes/param-pattern.d.ts +2 -2
  63. package/dist/types/modules/router/routes/route.d.ts +1 -1
  64. package/dist/types/modules/router/utils.d.ts +9 -9
  65. package/dist/types/modules/state/state-tracker.d.ts +1 -1
  66. package/dist/types/shared/arrays.d.ts +4 -4
  67. package/dist/types/shared/dom.d.ts +2 -2
  68. package/dist/types/shared/encode/encode.d.ts +4 -9
  69. package/package.json +1 -1
  70. package/dist/types/modules/atom/atoms.d.ts +0 -343
  71. package/dist/types/modules/data/attrs.d.ts +0 -1
  72. package/dist/types/modules/data/basic-data.d.ts +0 -259
  73. package/dist/types/modules/data/data-utils.d.ts +0 -17
  74. package/dist/types/modules/data/deep-data.d.ts +0 -162
  75. package/dist/types/modules/data/model-service.d.ts +0 -280
  76. package/dist/types/modules/data/model.d.ts +0 -33
  77. package/dist/types/modules/data/simple-data.d.ts +0 -12
  78. package/dist/types/modules/router/routes/cloak.d.ts +0 -12
@@ -1,343 +0,0 @@
1
- /**
2
- * Creates a div element.
3
- *
4
- * @param {object} props - Properties for the div element.
5
- * @param {array} children - Children elements of the div.
6
- * @returns {object} - Returns an object representing the div element.
7
- */
8
- export const Div: Function;
9
- /**
10
- * Creates a span element.
11
- *
12
- * @param {object} props - Properties for the span element.
13
- * @param {array} children - Children elements of the span.
14
- * @returns {object} - Returns an object representing the span element.
15
- */
16
- export const Span: Function;
17
- /**
18
- * Creates a paragraph (p) element.
19
- *
20
- * @param {object} props - Properties for the paragraph element.
21
- * @param {array} children - Children elements of the paragraph.
22
- * @returns {object} - Returns an object representing the paragraph element.
23
- */
24
- export const P: Function;
25
- /**
26
- * Creates an anchor (a) element.
27
- *
28
- * @param {object} props - Properties for the anchor element.
29
- * @param {array} children - Children elements of the anchor.
30
- * @returns {object} - Returns an object representing the anchor element.
31
- */
32
- export const A: Function;
33
- /**
34
- * Creates a button element.
35
- */
36
- export const Button: Function;
37
- /**
38
- * Creates an unordered list (ul) element.
39
- */
40
- export const Ul: Function;
41
- /**
42
- * Creates a list item (li) element.
43
- */
44
- export const Li: Function;
45
- /**
46
- * Creates an image (img) element.
47
- */
48
- export const Img: Function;
49
- /**
50
- * Create a br element.
51
- *
52
- * @param {object} props - Properties for the br element.
53
- * @returns {object} - Returns an object representing the br element.
54
- */
55
- export const Br: Function;
56
- /**
57
- * Creates a horizontal rule (hr) element.
58
- */
59
- export const Hr: Function;
60
- /**
61
- * Creates a text (text) element.
62
- */
63
- export const Text: Function;
64
- /**
65
- * Creates a header 1 (h1) element.
66
- */
67
- export const H1: Function;
68
- /**
69
- * Creates a header 2 (h2) element.
70
- */
71
- export const H2: Function;
72
- /**
73
- * Creates a header 3 (h3) element.
74
- */
75
- export const H3: Function;
76
- /**
77
- * Creates a header 4 (h4) element.
78
- */
79
- export const H4: Function;
80
- /**
81
- * Creates a header 5 (h5) element.
82
- */
83
- export const H5: Function;
84
- /**
85
- * Creates a header 6 (h6) element.
86
- */
87
- export const H6: Function;
88
- /**
89
- * Creates an input element.
90
- */
91
- export const Input: Function;
92
- /**
93
- * Creates a label element.
94
- */
95
- export const Label: Function;
96
- /**
97
- * Creates a section element.
98
- */
99
- export const Section: Function;
100
- /**
101
- * Creates an article element.
102
- */
103
- export const Article: Function;
104
- /**
105
- * Creates a header (header) element.
106
- */
107
- export const Header: Function;
108
- /**
109
- * Creates a footer element.
110
- */
111
- export const Footer: Function;
112
- /**
113
- * Creates a nav element.
114
- */
115
- export const Nav: Function;
116
- /**
117
- * Creates an aside element.
118
- */
119
- export const Aside: Function;
120
- /**
121
- * Creates a figure element.
122
- */
123
- export const Figure: Function;
124
- /**
125
- * Creates a figcaption element.
126
- */
127
- export const Figcaption: Function;
128
- /**
129
- * Creates a main element.
130
- */
131
- export const Main: Function;
132
- /**
133
- * Creates a video element.
134
- */
135
- export const Video: Function;
136
- /**
137
- * Creates an audio element.
138
- */
139
- export const Audio: Function;
140
- /**
141
- * Creates a table element.
142
- */
143
- export const Table: Function;
144
- /**
145
- * Creates a table row (tr) element.
146
- */
147
- export const Tr: Function;
148
- /**
149
- * Creates a table header (th) element.
150
- */
151
- export const Th: Function;
152
- /**
153
- * Creates a table data (td) element.
154
- */
155
- export const Td: Function;
156
- /**
157
- * Creates a table header group (thead) element.
158
- */
159
- export const Thead: Function;
160
- /**
161
- * Creates a table body (tbody) element.
162
- */
163
- export const Tbody: Function;
164
- /**
165
- * Creates a table footer (tfoot) element.
166
- */
167
- export const Tfoot: Function;
168
- /**
169
- * Creates a form element.
170
- */
171
- export const Form: Function;
172
- /**
173
- * Creates a select element.
174
- */
175
- export const Select: Function;
176
- /**
177
- * Creates an option element for a select tag.
178
- */
179
- export const Option: Function;
180
- /**
181
- * Creates a textarea element.
182
- */
183
- export const Textarea: Function;
184
- /**
185
- * Creates a canvas element.
186
- */
187
- export const Canvas: Function;
188
- /**
189
- * Creates a progress element.
190
- */
191
- export const Progress: Function;
192
- /**
193
- * Creates a blockquote element.
194
- */
195
- export const Blockquote: Function;
196
- /**
197
- * Creates a preformatted text (pre) element.
198
- */
199
- export const Pre: Function;
200
- /**
201
- * Creates a code element.
202
- */
203
- export const Code: Function;
204
- /**
205
- * Creates an ordered list (ol) element.
206
- */
207
- export const Ol: Function;
208
- /**
209
- * Creates a definition list (dl) element.
210
- */
211
- export const Dl: Function;
212
- /**
213
- * Creates a definition term (dt) element.
214
- */
215
- export const Dt: Function;
216
- /**
217
- * Creates a definition description (dd) element.
218
- */
219
- export const Dd: Function;
220
- /**
221
- * Creates a fieldset element.
222
- */
223
- export const Fieldset: Function;
224
- /**
225
- * Creates a legend element.
226
- */
227
- export const Legend: Function;
228
- /**
229
- * Creates a meter element.
230
- */
231
- export const Meter: Function;
232
- /**
233
- * Creates an iframe element.
234
- */
235
- export const Iframe: Function;
236
- /**
237
- * Creates a details element.
238
- */
239
- export const Details: Function;
240
- /**
241
- * Creates a summary element.
242
- */
243
- export const Summary: Function;
244
- /**
245
- * Creates an em element.
246
- */
247
- export const Em: Function;
248
- /**
249
- * Creates a strong element.
250
- */
251
- export const Strong: Function;
252
- /**
253
- * Creates a small element.
254
- */
255
- export const Small: Function;
256
- /**
257
- * Creates a s element (strikethrough).
258
- */
259
- export const S: Function;
260
- /**
261
- * Creates a cite element.
262
- */
263
- export const Cite: Function;
264
- /**
265
- * Creates a q element (inline quotation).
266
- */
267
- export const Q: Function;
268
- /**
269
- * Creates a dfn element (definition element).
270
- */
271
- export const Dfn: Function;
272
- /**
273
- * Creates an abbr element (abbreviation).
274
- */
275
- export const Abbr: Function;
276
- /**
277
- * Creates a data element.
278
- */
279
- export const Data: Function;
280
- /**
281
- * Creates a time element.
282
- */
283
- export const Time: Function;
284
- /**
285
- * Creates a var element (variable).
286
- */
287
- export const Var: Function;
288
- /**
289
- * Creates a samp element (sample output).
290
- */
291
- export const Samp: Function;
292
- /**
293
- * Creates a kbd element (keyboard input).
294
- */
295
- export const Kbd: Function;
296
- /**
297
- * Creates a sub element (subscript).
298
- */
299
- export const Sub: Function;
300
- /**
301
- * Creates a sup element (superscript).
302
- */
303
- export const Sup: Function;
304
- /**
305
- * Creates an i element (italic).
306
- */
307
- export const I: Function;
308
- /**
309
- * Creates a b element (bold).
310
- */
311
- export const B: Function;
312
- /**
313
- * Creates a u element (underline).
314
- */
315
- export const U: Function;
316
- /**
317
- * Creates a mark element.
318
- */
319
- export const Mark: Function;
320
- /**
321
- * Creates a ruby element (for East Asian typography).
322
- */
323
- export const Ruby: Function;
324
- /**
325
- * Creates an rt element (explanation/pronunciation of characters in East Asian typography).
326
- */
327
- export const Rt: Function;
328
- /**
329
- * Creates an rp element (for East Asian fallback parenthesis).
330
- */
331
- export const Rp: Function;
332
- /**
333
- * Creates a bdi element (Bi-Directional Isolation).
334
- */
335
- export const Bdi: Function;
336
- /**
337
- * Creates a bdo element (Bi-Directional Override).
338
- */
339
- export const Bdo: Function;
340
- /**
341
- * Creates a wbr element (Word Break Opportunity).
342
- */
343
- export const Wbr: Function;
@@ -1 +0,0 @@
1
- export function setupAttrSettings(settings: object): object;
@@ -1,259 +0,0 @@
1
- /**
2
- * BasicData
3
- *
4
- * This will create a bindable base class. This will
5
- * allow shallow one level deep data to be created
6
- * and watched.
7
- *
8
- * @class
9
- */
10
- export class BasicData {
11
- /**
12
- * This will create a basic data object.
13
- *
14
- * @constructor
15
- * @param {object} [settings]
16
- */
17
- constructor(settings?: object);
18
- dirty: boolean;
19
- links: {};
20
- /**
21
- * @member {string} dataTypeId
22
- */
23
- dataTypeId: string;
24
- eventSub: DataPubSub;
25
- /**
26
- * This will setup the data object.
27
- *
28
- * @protected
29
- * @returns {void}
30
- */
31
- protected setup(): void;
32
- stage: {};
33
- /**
34
- * This will setup the number and unique id of the data object.
35
- *
36
- * @protected
37
- * @returns {void}
38
- */
39
- protected _init(): void;
40
- _dataNumber: number;
41
- _id: string;
42
- _dataId: string;
43
- /**
44
- * This will get the data id.
45
- *
46
- * @returns {string}
47
- */
48
- getDataId(): string;
49
- /**
50
- * This is a placeholder.
51
- *
52
- * @returns {void}
53
- */
54
- remove(): void;
55
- /**
56
- * This will setup a one way bind.
57
- *
58
- * @param {string} attrName
59
- * @param {function} callBack
60
- * @returns {string} The subscription token.
61
- */
62
- on(attrName: string, callBack: Function): string;
63
- /**
64
- * This will unbind from a one way bind.
65
- *
66
- * @param {string} attrName
67
- * @param {string} token
68
- * @returns {void}
69
- */
70
- off(attrName: string, token: string): void;
71
- /**
72
- * This will set the attribute value.
73
- *
74
- * @protected
75
- * @param {string} attr
76
- * @param {*} val
77
- * @param {object} committer
78
- * @param {boolean} stopMerge
79
- * @returns {void}
80
- */
81
- protected _setAttr(attr: string, val: any, committer?: object, stopMerge?: boolean): void;
82
- /**
83
- * This will publish an update to the data binder.
84
- *
85
- * @protected
86
- * @param {string} attr
87
- * @param {*} val
88
- * @param {*} committer
89
- * @param {*} prevValue
90
- * @returns {void}
91
- */
92
- protected _publish(attr: string, val: any, committer: any, prevValue: any): void;
93
- /**
94
- * This will set the data value of an attribute or attributes.
95
- *
96
- * @overload
97
- * @param {string} key
98
- * @param {*} value
99
- * @param {object} [committer]
100
- *
101
- * @overload
102
- * @param {object} data
103
- * @returns {object} this
104
- */
105
- set(key: string, value: any, committer?: object): any;
106
- /**
107
- * This will set the data value of an attribute or attributes.
108
- *
109
- * @overload
110
- * @param {string} key
111
- * @param {*} value
112
- * @param {object} [committer]
113
- *
114
- * @overload
115
- * @param {object} data
116
- * @returns {object} this
117
- */
118
- set(data: object): object;
119
- /**
120
- * This will get the model data.
121
- *
122
- * @protected
123
- * @returns {object}
124
- */
125
- protected getModelData(): object;
126
- /**
127
- * This will delete an attribute.
128
- *
129
- * @protected
130
- * @param {object} obj
131
- * @param {string} attr
132
- * @returns {void}
133
- */
134
- protected _deleteAttr(obj: object, attr: string): void;
135
- /**
136
- * This will toggle a bool attribute.
137
- *
138
- * @param {string} attr
139
- * @returns {object} this
140
- */
141
- toggle(attr: string): object;
142
- /**
143
- * This will increment an attribute.
144
- *
145
- * @param {string} attr
146
- * @returns {object} this
147
- */
148
- increment(attr: string): object;
149
- /**
150
- * This will decrement an attribute.
151
- *
152
- * @param {string} attr
153
- * @returns {object} this
154
- */
155
- decrement(attr: string): object;
156
- /**
157
- * This will concat an attribute.
158
- *
159
- * @param {string} attr
160
- * @returns {object} this
161
- */
162
- concat(attr: string, value: any): object;
163
- /**
164
- * This will set the key value if it is null.
165
- *
166
- * @param {string} key
167
- * @param {*} value
168
- * @returns {object} this
169
- */
170
- ifNull(key: string, value: any): object;
171
- /**
172
- * This will set the data local storage key.
173
- *
174
- * @param {string} key
175
- * @returns {object} this
176
- */
177
- setKey(key: string): object;
178
- key: string;
179
- /**
180
- * This will restore the data from local storage.
181
- *
182
- * @param {*} defaultValue
183
- * @returns {object} this
184
- */
185
- resume(defaultValue: any): object;
186
- /**
187
- * This will store the data to the local stoage under
188
- * the storage key.
189
- *
190
- * @returns {boolean}
191
- */
192
- store(): boolean;
193
- /**
194
- * This will delete a property value or the model data.
195
- *
196
- * @param {string} [attrName]
197
- * @returns {*}
198
- */
199
- delete(attrName?: string): any;
200
- /**
201
- * This will get the value of an attribute.
202
- *
203
- * @protected
204
- * @param {object} obj
205
- * @param {string} attr
206
- * @returns {*}
207
- */
208
- protected _getAttr(obj: object, attr: string): any;
209
- /**
210
- * This will get a property value or the model data.
211
- *
212
- * @param {string} [attrName]
213
- * @returns {*}
214
- */
215
- get(attrName?: string): any;
216
- /**
217
- * This will link a data source property to another data source.
218
- *
219
- * @param {object} data
220
- * @param {string|object} attr
221
- * @param {string} alias
222
- * @returns {string|array}
223
- */
224
- link(data: object, attr: string | object, alias: string, ...args: any[]): string | any[];
225
- /**
226
- * This will link a remote data source by property.
227
- *
228
- * @param {object} data
229
- * @param {string} attr
230
- * @param {string} [alias]
231
- * @returns {string}
232
- */
233
- remoteLink(data: object, attr: string, alias?: string): string;
234
- /**
235
- * This will add a link token to the links array.
236
- *
237
- * @param {string} token
238
- * @param {object} data
239
- * @returns {void}
240
- */
241
- addLink(token: string, data: object): void;
242
- /**
243
- * This will remove a link or all links if no token is provided.
244
- *
245
- * @param {string} [token]
246
- * @returns {void}
247
- */
248
- unlink(token?: string): void;
249
- /**
250
- * This will remove the linked subscription.
251
- *
252
- * @param {string} token
253
- * @param {boolean} [removeFromLinks]
254
- * @returns {void}
255
- */
256
- removeLink(token: string, removeFromLinks?: boolean): void;
257
- isData: boolean;
258
- }
259
- import { DataPubSub } from '../data-binder/data-pub-sub.js';
@@ -1,17 +0,0 @@
1
- export namespace DataUtils {
2
- let deepDataPattern: RegExp;
3
- /**
4
- * This will check if a string has deep data.
5
- *
6
- * @param {string} str
7
- * @returns {boolean}
8
- */
9
- function hasDeepData(str: string): boolean;
10
- /**
11
- * This will get the deep data segments.
12
- *
13
- * @param {string} str
14
- * @returns {array}
15
- */
16
- function getSegments(str: string): any[];
17
- }