native-document 1.0.147 → 1.0.148
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/cdn.js +26 -0
- package/dist/native-document.components.min.js +43 -43
- package/dist/native-document.dev.js +5141 -5141
- package/dist/native-document.dev.js.map +1 -1
- package/dist/native-document.min.js +1 -1
- package/index.js +3 -4
- package/package.json +1 -1
- package/rollup.config.js +3 -3
package/cdn.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export { default as HtmlElementWrapper, createTextNode } from './src/core/wrappers/HtmlElementWrapper'
|
|
2
|
+
export { ElementCreator } from './src/core/wrappers/ElementCreator';
|
|
3
|
+
export { NDElement } from './src/core/wrappers/NDElement';
|
|
4
|
+
export { TemplateCloner, useCache } from './src/core/wrappers/template-cloner/TemplateCloner';
|
|
5
|
+
export { SingletonView, useSingleton } from './src/core/wrappers/SingletonView';
|
|
6
|
+
export { default as PluginsManager } from './src/core/utils/plugins-manager';
|
|
7
|
+
export { default as Validator } from './src/core/utils/validator';
|
|
8
|
+
|
|
9
|
+
import './src/core/utils/prototypes.js';
|
|
10
|
+
|
|
11
|
+
export * from './src/core/utils/property-accumulator';
|
|
12
|
+
export * from './src/core/utils/args-types';
|
|
13
|
+
export * from './src/core/utils/memoize';
|
|
14
|
+
export * from './src/core/data/Observable';
|
|
15
|
+
export * from './src/core/data/observable-helpers/array';
|
|
16
|
+
export * from './src/core/data/observable-helpers/batch';
|
|
17
|
+
export * from './src/core/data/observable-helpers/object';
|
|
18
|
+
export * from './src/core/data/observable-helpers/computed';
|
|
19
|
+
export * from './src/core/data/observable-helpers/observable.is-to';
|
|
20
|
+
export * from './src/core/data/Store';
|
|
21
|
+
|
|
22
|
+
import * as elements from './elements';
|
|
23
|
+
import * as router from './router';
|
|
24
|
+
import * as utils from './utils';
|
|
25
|
+
|
|
26
|
+
export { elements, router, utils };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
var NativeComponents = (function (exports) {
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
let DebugManager$
|
|
4
|
+
let DebugManager$1 = {};
|
|
5
5
|
{
|
|
6
|
-
DebugManager$
|
|
6
|
+
DebugManager$1 = {
|
|
7
7
|
log() {},
|
|
8
8
|
warn() {},
|
|
9
9
|
error() {},
|
|
10
10
|
disable() {}
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
|
-
var DebugManager$
|
|
13
|
+
var DebugManager$2 = DebugManager$1;
|
|
14
14
|
|
|
15
15
|
class NativeDocumentError extends Error {
|
|
16
16
|
constructor(message, context = {}) {
|
|
@@ -68,7 +68,7 @@ var NativeComponents = (function (exports) {
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
if (cleanedCount > 0) {
|
|
71
|
-
DebugManager$
|
|
71
|
+
DebugManager$2.log('Memory Auto Clean', `🧹 Cleaned ${cleanedCount} orphaned observables`);
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
};
|
|
@@ -3303,7 +3303,7 @@ var NativeComponents = (function (exports) {
|
|
|
3303
3303
|
const $getStoreOrThrow = (method, name) => {
|
|
3304
3304
|
const item = $stores.get(name);
|
|
3305
3305
|
if (!item) {
|
|
3306
|
-
DebugManager$
|
|
3306
|
+
DebugManager$2.error('Store', `Store.${method}('${name}') : store not found. Did you call Store.create('${name}') first?`);
|
|
3307
3307
|
throw new NativeDocumentError(
|
|
3308
3308
|
`Store.${method}('${name}') : store not found.`
|
|
3309
3309
|
);
|
|
@@ -3316,7 +3316,7 @@ var NativeComponents = (function (exports) {
|
|
|
3316
3316
|
*/
|
|
3317
3317
|
const $applyReadOnly = (observer, name, context) => {
|
|
3318
3318
|
const readOnlyError = (method) => () => {
|
|
3319
|
-
DebugManager$
|
|
3319
|
+
DebugManager$2.error('Store', `Store.${context}('${name}') is read-only. '${method}()' is not allowed.`);
|
|
3320
3320
|
throw new NativeDocumentError(
|
|
3321
3321
|
`Store.${context}('${name}') is read-only.`
|
|
3322
3322
|
);
|
|
@@ -3347,7 +3347,7 @@ var NativeComponents = (function (exports) {
|
|
|
3347
3347
|
*/
|
|
3348
3348
|
create(name, value) {
|
|
3349
3349
|
if ($stores.has(name)) {
|
|
3350
|
-
DebugManager$
|
|
3350
|
+
DebugManager$2.warn('Store', `Store.create('${name}') : a store with this name already exists. Use Store.get('${name}') to retrieve it.`);
|
|
3351
3351
|
throw new NativeDocumentError(
|
|
3352
3352
|
`Store.create('${name}') : a store with this name already exists.`
|
|
3353
3353
|
);
|
|
@@ -3368,7 +3368,7 @@ var NativeComponents = (function (exports) {
|
|
|
3368
3368
|
*/
|
|
3369
3369
|
createResettable(name, value) {
|
|
3370
3370
|
if ($stores.has(name)) {
|
|
3371
|
-
DebugManager$
|
|
3371
|
+
DebugManager$2.warn('Store', `Store.createResettable('${name}') : a store with this name already exists.`);
|
|
3372
3372
|
throw new NativeDocumentError(
|
|
3373
3373
|
`Store.createResettable('${name}') : a store with this name already exists.`
|
|
3374
3374
|
);
|
|
@@ -3404,7 +3404,7 @@ var NativeComponents = (function (exports) {
|
|
|
3404
3404
|
*/
|
|
3405
3405
|
createComposed(name, computation, dependencies) {
|
|
3406
3406
|
if ($stores.has(name)) {
|
|
3407
|
-
DebugManager$
|
|
3407
|
+
DebugManager$2.warn('Store', `Store.createComposed('${name}') : a store with this name already exists.`);
|
|
3408
3408
|
throw new NativeDocumentError(
|
|
3409
3409
|
`Store.createComposed('${name}') : a store with this name already exists.`
|
|
3410
3410
|
);
|
|
@@ -3427,7 +3427,7 @@ var NativeComponents = (function (exports) {
|
|
|
3427
3427
|
}
|
|
3428
3428
|
const depItem = $stores.get(depName);
|
|
3429
3429
|
if (!depItem) {
|
|
3430
|
-
DebugManager$
|
|
3430
|
+
DebugManager$2.error('Store', `Store.createComposed('${name}') : dependency '${depName}' not found. Create it first.`);
|
|
3431
3431
|
throw new NativeDocumentError(
|
|
3432
3432
|
`Store.createComposed('${name}') : dependency store '${depName}' not found.`
|
|
3433
3433
|
);
|
|
@@ -3461,13 +3461,13 @@ var NativeComponents = (function (exports) {
|
|
|
3461
3461
|
reset(name) {
|
|
3462
3462
|
const item = $getStoreOrThrow('reset', name);
|
|
3463
3463
|
if (item.composed) {
|
|
3464
|
-
DebugManager$
|
|
3464
|
+
DebugManager$2.error('Store', `Store.reset('${name}') : composed stores cannot be reset. Their value is derived from dependencies.`);
|
|
3465
3465
|
throw new NativeDocumentError(
|
|
3466
3466
|
`Store.reset('${name}') : composed stores cannot be reset.`
|
|
3467
3467
|
);
|
|
3468
3468
|
}
|
|
3469
3469
|
if (!item.resettable) {
|
|
3470
|
-
DebugManager$
|
|
3470
|
+
DebugManager$2.error('Store', `Store.reset('${name}') : this store is not resettable. Use Store.createResettable('${name}', value) instead of Store.create().`);
|
|
3471
3471
|
throw new NativeDocumentError(
|
|
3472
3472
|
`Store.reset('${name}') : this store is not resettable. Use Store.createResettable('${name}', value) instead of Store.create().`
|
|
3473
3473
|
);
|
|
@@ -3488,7 +3488,7 @@ var NativeComponents = (function (exports) {
|
|
|
3488
3488
|
const item = $getStoreOrThrow('use', name);
|
|
3489
3489
|
|
|
3490
3490
|
if (item.composed) {
|
|
3491
|
-
DebugManager$
|
|
3491
|
+
DebugManager$2.error('Store', `Store.use('${name}') : composed stores are read-only. Use Store.follow('${name}') instead.`);
|
|
3492
3492
|
throw new NativeDocumentError(
|
|
3493
3493
|
`Store.use('${name}') : composed stores are read-only. Use Store.follow('${name}') instead.`
|
|
3494
3494
|
);
|
|
@@ -3555,7 +3555,7 @@ var NativeComponents = (function (exports) {
|
|
|
3555
3555
|
get(name) {
|
|
3556
3556
|
const item = $stores.get(name);
|
|
3557
3557
|
if (!item) {
|
|
3558
|
-
DebugManager$
|
|
3558
|
+
DebugManager$2.warn('Store', `Store.get('${name}') : store not found.`);
|
|
3559
3559
|
return null;
|
|
3560
3560
|
}
|
|
3561
3561
|
return item.observer;
|
|
@@ -3577,7 +3577,7 @@ var NativeComponents = (function (exports) {
|
|
|
3577
3577
|
delete(name) {
|
|
3578
3578
|
const item = $stores.get(name);
|
|
3579
3579
|
if (!item) {
|
|
3580
|
-
DebugManager$
|
|
3580
|
+
DebugManager$2.warn('Store', `Store.delete('${name}') : store not found, nothing to delete.`);
|
|
3581
3581
|
return;
|
|
3582
3582
|
}
|
|
3583
3583
|
item.subscribers.forEach(follower => follower.destroy());
|
|
@@ -3679,7 +3679,7 @@ var NativeComponents = (function (exports) {
|
|
|
3679
3679
|
return undefined;
|
|
3680
3680
|
},
|
|
3681
3681
|
set(target, prop, value) {
|
|
3682
|
-
DebugManager$
|
|
3682
|
+
DebugManager$2.error('Store', `Forbidden: You cannot overwrite the store key '${String(prop)}'. Use .use('${String(prop)}').set(value) instead.`);
|
|
3683
3683
|
throw new NativeDocumentError(`Store structure is immutable. Use .set() on the observable.`);
|
|
3684
3684
|
},
|
|
3685
3685
|
deleteProperty(target, prop) {
|
|
@@ -3712,7 +3712,7 @@ var NativeComponents = (function (exports) {
|
|
|
3712
3712
|
return condition ? ElementCreator.getChild(child) : null;
|
|
3713
3713
|
}
|
|
3714
3714
|
|
|
3715
|
-
return DebugManager$
|
|
3715
|
+
return DebugManager$2.warn('ShowIf', "ShowIf : condition must be an Observable or boolean / "+comment, condition);
|
|
3716
3716
|
}
|
|
3717
3717
|
const element = Anchor('Show if : '+(comment || ''));
|
|
3718
3718
|
|
|
@@ -4162,7 +4162,7 @@ var NativeComponents = (function (exports) {
|
|
|
4162
4162
|
const method = methods[name];
|
|
4163
4163
|
|
|
4164
4164
|
if (typeof method !== 'function') {
|
|
4165
|
-
DebugManager$
|
|
4165
|
+
DebugManager$2.warn(`⚠️ extends(): "${name}" is not a function, skipping`);
|
|
4166
4166
|
continue;
|
|
4167
4167
|
}
|
|
4168
4168
|
|
|
@@ -4212,17 +4212,17 @@ var NativeComponents = (function (exports) {
|
|
|
4212
4212
|
const method = methods[name];
|
|
4213
4213
|
|
|
4214
4214
|
if (typeof method !== 'function') {
|
|
4215
|
-
DebugManager$
|
|
4215
|
+
DebugManager$2.warn('NDElement.extend', `"${name}" is not a function, skipping`);
|
|
4216
4216
|
continue;
|
|
4217
4217
|
}
|
|
4218
4218
|
|
|
4219
4219
|
if (protectedMethods.has(name)) {
|
|
4220
|
-
DebugManager$
|
|
4220
|
+
DebugManager$2.error('NDElement.extend', `Cannot override protected method "${name}"`);
|
|
4221
4221
|
throw new NativeDocumentError(`Cannot override protected method "${name}"`);
|
|
4222
4222
|
}
|
|
4223
4223
|
|
|
4224
4224
|
if (NDElement.prototype[name]) {
|
|
4225
|
-
DebugManager$
|
|
4225
|
+
DebugManager$2.warn('NDElement.extend', `Overwriting existing prototype method "${name}"`);
|
|
4226
4226
|
}
|
|
4227
4227
|
|
|
4228
4228
|
NDElement.prototype[name] = method;
|
|
@@ -4391,7 +4391,7 @@ var NativeComponents = (function (exports) {
|
|
|
4391
4391
|
const regex = new RegExp(pattern, flags);
|
|
4392
4392
|
return regex.test(String(value));
|
|
4393
4393
|
} catch (error){
|
|
4394
|
-
DebugManager$
|
|
4394
|
+
DebugManager$2.warn('Invalid regex pattern:', pattern, error);
|
|
4395
4395
|
return false;
|
|
4396
4396
|
}
|
|
4397
4397
|
}
|
|
@@ -5117,7 +5117,7 @@ var NativeComponents = (function (exports) {
|
|
|
5117
5117
|
|
|
5118
5118
|
Alert.preset = function(name, callback) {
|
|
5119
5119
|
if (Alert.prototype[name] || Alert[name]) {
|
|
5120
|
-
DebugManager$
|
|
5120
|
+
DebugManager$2.warn(`Warning: the ${name} method already exist in Alert.`);
|
|
5121
5121
|
return;
|
|
5122
5122
|
}
|
|
5123
5123
|
Alert[name] = (content, props) => callback(new Alert(content, props));
|
|
@@ -5425,7 +5425,7 @@ var NativeComponents = (function (exports) {
|
|
|
5425
5425
|
|
|
5426
5426
|
Button.preset = function(name, callback) {
|
|
5427
5427
|
if (Button.prototype[name] || Button[name]) {
|
|
5428
|
-
DebugManager$
|
|
5428
|
+
DebugManager$2.warn(`Warning: the ${name} method already exist in Button.`);
|
|
5429
5429
|
return;
|
|
5430
5430
|
}
|
|
5431
5431
|
Button[name] = (label, props) => callback(new Button(label, props));
|
|
@@ -5594,7 +5594,7 @@ var NativeComponents = (function (exports) {
|
|
|
5594
5594
|
|
|
5595
5595
|
Avatar.preset = function(name, callback) {
|
|
5596
5596
|
if (Avatar.prototype[name] || Avatar[name]) {
|
|
5597
|
-
DebugManager$
|
|
5597
|
+
DebugManager$2.warn(`Warning: the ${name} method already exists in Avatar.`);
|
|
5598
5598
|
return;
|
|
5599
5599
|
}
|
|
5600
5600
|
Avatar[name] = (label, props) => callback(new Avatar(label, props));
|
|
@@ -6016,7 +6016,7 @@ var NativeComponents = (function (exports) {
|
|
|
6016
6016
|
|
|
6017
6017
|
Badge.preset = function(name, callback) {
|
|
6018
6018
|
if (Badge.prototype[name] || Badge[name]) {
|
|
6019
|
-
DebugManager$
|
|
6019
|
+
DebugManager$2.warn(`Warning: the ${name} method already exists in Badge.`);
|
|
6020
6020
|
return;
|
|
6021
6021
|
}
|
|
6022
6022
|
Badge[name] = (content, props) => callback(new Badge(content, props));
|
|
@@ -6134,7 +6134,7 @@ var NativeComponents = (function (exports) {
|
|
|
6134
6134
|
|
|
6135
6135
|
Breadcrumb.preset = function(name, callback) {
|
|
6136
6136
|
if (Breadcrumb.prototype[name] || Breadcrumb[name]) {
|
|
6137
|
-
DebugManager$
|
|
6137
|
+
DebugManager$2.warn(`Warning: the ${name} method already exist in Breadcrumb.`);
|
|
6138
6138
|
return;
|
|
6139
6139
|
}
|
|
6140
6140
|
Breadcrumb[name] = (props) => callback(new Breadcrumb(props));
|
|
@@ -6943,7 +6943,7 @@ var NativeComponents = (function (exports) {
|
|
|
6943
6943
|
|
|
6944
6944
|
Divider.preset = function(name, callback) {
|
|
6945
6945
|
if (Divider.prototype[name] || Divider[name]) {
|
|
6946
|
-
DebugManager$
|
|
6946
|
+
DebugManager$2.warn(`Warning: the ${name} method already exists in Divider.`);
|
|
6947
6947
|
return;
|
|
6948
6948
|
}
|
|
6949
6949
|
Divider[name] = (label, props) => callback(new Divider(label, props));
|
|
@@ -7362,7 +7362,7 @@ var NativeComponents = (function (exports) {
|
|
|
7362
7362
|
|
|
7363
7363
|
Dropdown.preset = function(name, callback) {
|
|
7364
7364
|
if (Dropdown.prototype[name] || Dropdown[name]) {
|
|
7365
|
-
DebugManager$
|
|
7365
|
+
DebugManager$2.warn(`Warning: the ${name} method already exist in Dropdown.`);
|
|
7366
7366
|
return;
|
|
7367
7367
|
}
|
|
7368
7368
|
Dropdown[name] = (props) => callback(new Dropdown(props));
|
|
@@ -11417,7 +11417,7 @@ var NativeComponents = (function (exports) {
|
|
|
11417
11417
|
|
|
11418
11418
|
Modal.preset = function(name, callback) {
|
|
11419
11419
|
if (Modal.prototype[name] || Modal[name]) {
|
|
11420
|
-
DebugManager$
|
|
11420
|
+
DebugManager$2.warn(`Warning: the ${name} method already exist in Modal.`);
|
|
11421
11421
|
return;
|
|
11422
11422
|
}
|
|
11423
11423
|
Modal[name] = (content, props) => callback(new Modal(content, props));
|
|
@@ -11668,7 +11668,7 @@ var NativeComponents = (function (exports) {
|
|
|
11668
11668
|
|
|
11669
11669
|
Pagination.preset = function(name, callback) {
|
|
11670
11670
|
if (Pagination.prototype[name] || Pagination[name]) {
|
|
11671
|
-
DebugManager$
|
|
11671
|
+
DebugManager$2.warn(`Warning: the ${name} method already exist in Pagination.`);
|
|
11672
11672
|
return;
|
|
11673
11673
|
}
|
|
11674
11674
|
Pagination[name] = (props) => callback(new Pagination(props));
|
|
@@ -11963,7 +11963,7 @@ var NativeComponents = (function (exports) {
|
|
|
11963
11963
|
|
|
11964
11964
|
Popover.preset = function(name, callback) {
|
|
11965
11965
|
if (Popover.prototype[name] || Popover[name]) {
|
|
11966
|
-
DebugManager$
|
|
11966
|
+
DebugManager$2.warn(`Warning: the ${name} method already exist in Popover.`);
|
|
11967
11967
|
return;
|
|
11968
11968
|
}
|
|
11969
11969
|
Popover[name] = (content, props) => callback(new Popover(content, props));
|
|
@@ -12265,7 +12265,7 @@ var NativeComponents = (function (exports) {
|
|
|
12265
12265
|
|
|
12266
12266
|
Progress.preset = function(name, callback) {
|
|
12267
12267
|
if (Progress.prototype[name] || Progress[name]) {
|
|
12268
|
-
DebugManager$
|
|
12268
|
+
DebugManager$2.warn(`Warning: the ${name} method already exists in Progress.`);
|
|
12269
12269
|
return;
|
|
12270
12270
|
}
|
|
12271
12271
|
Progress[name] = (props) => callback(new Progress(props));
|
|
@@ -12567,7 +12567,7 @@ var NativeComponents = (function (exports) {
|
|
|
12567
12567
|
|
|
12568
12568
|
VStack.preset = function(name, callback) {
|
|
12569
12569
|
if (VStack.prototype[name] || VStack[name]) {
|
|
12570
|
-
DebugManager$
|
|
12570
|
+
DebugManager$2.warn(`Warning: the ${name} method already exists in VStack.`);
|
|
12571
12571
|
return;
|
|
12572
12572
|
}
|
|
12573
12573
|
VStack[name] = (content, props) => callback(new VStack(content, props));
|
|
@@ -12742,7 +12742,7 @@ var NativeComponents = (function (exports) {
|
|
|
12742
12742
|
|
|
12743
12743
|
FixedStack.preset = function(name, callback) {
|
|
12744
12744
|
if(FixedStack.prototype[name] || FixedStack[name]) {
|
|
12745
|
-
DebugManager$
|
|
12745
|
+
DebugManager$2.warn(`Warning: the ${name} method already exists in FixedStack.`);
|
|
12746
12746
|
return;
|
|
12747
12747
|
}
|
|
12748
12748
|
FixedStack[name] = (content, props) => callback(new FixedStack(content, props));
|
|
@@ -12772,7 +12772,7 @@ var NativeComponents = (function (exports) {
|
|
|
12772
12772
|
|
|
12773
12773
|
HStack.preset = function(name, callback) {
|
|
12774
12774
|
if (HStack.prototype[name] || HStack[name]) {
|
|
12775
|
-
DebugManager$
|
|
12775
|
+
DebugManager$2.warn(`Warning: the ${name} method already exists in HStack.`);
|
|
12776
12776
|
return;
|
|
12777
12777
|
}
|
|
12778
12778
|
HStack[name] = (content, props) => callback(new HStack(content, props));
|
|
@@ -12802,7 +12802,7 @@ var NativeComponents = (function (exports) {
|
|
|
12802
12802
|
|
|
12803
12803
|
AbsoluteStack.preset = function(name, callback) {
|
|
12804
12804
|
if(AbsoluteStack.prototype[name] || AbsoluteStack[name]) {
|
|
12805
|
-
DebugManager$
|
|
12805
|
+
DebugManager$2.warn(`Warning: the ${name} method already exists in AbsoluteStack.`);
|
|
12806
12806
|
return;
|
|
12807
12807
|
}
|
|
12808
12808
|
AbsoluteStack[name] = (content, props) => callback(new AbsoluteStack(content, props));
|
|
@@ -12832,7 +12832,7 @@ var NativeComponents = (function (exports) {
|
|
|
12832
12832
|
|
|
12833
12833
|
RelativeStack.preset = function(name, callback) {
|
|
12834
12834
|
if(RelativeStack.prototype[name] || RelativeStack[name]) {
|
|
12835
|
-
DebugManager$
|
|
12835
|
+
DebugManager$2.warn(`Warning: the ${name} method already exists in RelativeStack.`);
|
|
12836
12836
|
return;
|
|
12837
12837
|
}
|
|
12838
12838
|
RelativeStack[name] = (content, props) => callback(new RelativeStack(content, props));
|
|
@@ -12877,7 +12877,7 @@ var NativeComponents = (function (exports) {
|
|
|
12877
12877
|
|
|
12878
12878
|
Skeleton.preset = function(name, callback) {
|
|
12879
12879
|
if (Skeleton.prototype[name] || Skeleton[name]) {
|
|
12880
|
-
DebugManager$
|
|
12880
|
+
DebugManager$2.warn(`Warning: the ${name} method already exists in Skeleton.`);
|
|
12881
12881
|
return;
|
|
12882
12882
|
}
|
|
12883
12883
|
Skeleton[name] = (props) => callback(new Skeleton(props));
|
|
@@ -13241,7 +13241,7 @@ var NativeComponents = (function (exports) {
|
|
|
13241
13241
|
|
|
13242
13242
|
Spinner.preset = function(name, callback) {
|
|
13243
13243
|
if (Spinner.prototype[name] || Spinner[name]) {
|
|
13244
|
-
DebugManager$
|
|
13244
|
+
DebugManager$2.warn(`Warning: the ${name} method already exists in Spinner.`);
|
|
13245
13245
|
return;
|
|
13246
13246
|
}
|
|
13247
13247
|
Spinner[name] = (props) => callback(new Spinner(props));
|
|
@@ -13811,7 +13811,7 @@ var NativeComponents = (function (exports) {
|
|
|
13811
13811
|
|
|
13812
13812
|
Stepper.preset = function(name, callback) {
|
|
13813
13813
|
if (Stepper.prototype[name] || Stepper[name]) {
|
|
13814
|
-
DebugManager$
|
|
13814
|
+
DebugManager$2.warn(`Warning: the ${name} method already exist in Stepper.`);
|
|
13815
13815
|
return;
|
|
13816
13816
|
}
|
|
13817
13817
|
Stepper[name] = (props) => callback(new Stepper(props));
|
|
@@ -14764,7 +14764,7 @@ var NativeComponents = (function (exports) {
|
|
|
14764
14764
|
|
|
14765
14765
|
DataTable.prototype.selectedRows = function($obs) {
|
|
14766
14766
|
if(!$obs.__$isObservableArray) {
|
|
14767
|
-
DebugManager$
|
|
14767
|
+
DebugManager$2.warn('Database', 'selectedRow should take an Observable array');
|
|
14768
14768
|
}
|
|
14769
14769
|
this.$description.$selectedRows = $obs;
|
|
14770
14770
|
return this;
|
|
@@ -15311,7 +15311,7 @@ var NativeComponents = (function (exports) {
|
|
|
15311
15311
|
|
|
15312
15312
|
Tooltip.preset = function(name, callback) {
|
|
15313
15313
|
if (Tooltip.prototype[name] || Tooltip[name]) {
|
|
15314
|
-
DebugManager$
|
|
15314
|
+
DebugManager$2.warn(`Warning: the ${name} method already exist in Tooltip.`);
|
|
15315
15315
|
return;
|
|
15316
15316
|
}
|
|
15317
15317
|
Tooltip[name] = (content, props) => callback(new Tooltip(content, props));
|