native-document 1.0.126 → 1.0.127

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 (35) hide show
  1. package/dist/native-document.components.min.js +148 -139
  2. package/dist/native-document.dev.js +3 -1
  3. package/dist/native-document.dev.js.map +1 -1
  4. package/dist/native-document.min.js +1 -1
  5. package/package.json +1 -1
  6. package/src/components/$traits/HasItems.js +39 -2
  7. package/src/components/BaseComponent.js +4 -0
  8. package/src/components/button/Button.js +15 -9
  9. package/src/components/menu/Menu.js +18 -7
  10. package/src/components/menu/MenuItem.js +13 -13
  11. package/src/components/menu/MenuLink.js +24 -0
  12. package/src/core/utils/property-accumulator.js +1 -1
  13. package/src/router/Router.js +11 -0
  14. package/src/ui/components/button/button.css +362 -0
  15. package/src/ui/components/button/button.render.js +63 -0
  16. package/src/ui/theme.js +2 -1
  17. package/src/ui/tokens/animation.scss +36 -0
  18. package/src/ui/tokens/colors-dark.scss +57 -0
  19. package/src/ui/tokens/colors.scss +54 -0
  20. package/src/ui/tokens/components.scss +32 -0
  21. package/src/ui/tokens/fonts.scss +57 -0
  22. package/src/ui/tokens/glass.scss +10 -0
  23. package/src/ui/tokens/index.scss +38 -0
  24. package/src/ui/tokens/layouts.scss +228 -0
  25. package/src/ui/tokens/opacity.scss +21 -0
  26. package/src/ui/tokens/others.scss +11 -0
  27. package/src/ui/tokens/radius.scss +6 -0
  28. package/src/ui/tokens/reset.scss +48 -0
  29. package/src/ui/tokens/shadows.scss +29 -0
  30. package/src/ui/tokens/spacings.scss +13 -0
  31. package/src/ui/tokens/vars.scss +35 -0
  32. package/src/ui/tokens/viewports.scss +30 -0
  33. package/utils.js +3 -1
  34. package/src/ui/components/button/Button.js +0 -8
  35. package/src/ui/tokens/vars.css +0 -0
@@ -31,6 +31,10 @@ var NativeComponents = (function (exports) {
31
31
  Component.prototype.constructor = Component;
32
32
  };
33
33
 
34
+ BaseComponent.obs = (value) => {
35
+ return value.__$Observable ? value : Observable(value);
36
+ };
37
+
34
38
  BaseComponent.prototype.$storeElement = function(element) {
35
39
  this.$element = element;
36
40
  return this;
@@ -363,16 +367,16 @@ var NativeComponents = (function (exports) {
363
367
  // });
364
368
  };
365
369
 
366
- let DebugManager$1 = {};
370
+ let DebugManager$2 = {};
367
371
  {
368
- DebugManager$1 = {
372
+ DebugManager$2 = {
369
373
  log() {},
370
374
  warn() {},
371
375
  error() {},
372
376
  disable() {}
373
377
  };
374
378
  }
375
- var DebugManager$2 = DebugManager$1;
379
+ var DebugManager$1 = DebugManager$2;
376
380
 
377
381
  /**
378
382
  *
@@ -854,17 +858,17 @@ var NativeComponents = (function (exports) {
854
858
  const method = methods[name];
855
859
 
856
860
  if (typeof method !== 'function') {
857
- DebugManager$2.warn('NDElement.extend', `"${name}" is not a function, skipping`);
861
+ DebugManager$1.warn('NDElement.extend', `"${name}" is not a function, skipping`);
858
862
  continue;
859
863
  }
860
864
 
861
865
  if (protectedMethods.has(name)) {
862
- DebugManager$2.error('NDElement.extend', `Cannot override protected method "${name}"`);
866
+ DebugManager$1.error('NDElement.extend', `Cannot override protected method "${name}"`);
863
867
  throw new NativeDocumentError(`Cannot override protected method "${name}"`);
864
868
  }
865
869
 
866
870
  if (NDElement.prototype[name]) {
867
- DebugManager$2.warn('NDElement.extend', `Overwriting existing prototype method "${name}"`);
871
+ DebugManager$1.warn('NDElement.extend', `Overwriting existing prototype method "${name}"`);
868
872
  }
869
873
 
870
874
  NDElement.prototype[name] = method;
@@ -886,7 +890,7 @@ var NativeComponents = (function (exports) {
886
890
  VALID_TYPES[COMMON_NODE_TYPES.DOCUMENT_FRAGMENT] = true;
887
891
  VALID_TYPES[COMMON_NODE_TYPES.COMMENT] = true;
888
892
 
889
- const Validator = {
893
+ const Validator$1 = {
890
894
  isObservable(value) {
891
895
  return value?.__$isObservable;
892
896
  },
@@ -903,7 +907,7 @@ var NativeComponents = (function (exports) {
903
907
  return value?.__isProxy__
904
908
  },
905
909
  isObservableOrProxy(value) {
906
- return Validator.isObservable(value) || Validator.isProxy(value);
910
+ return Validator$1.isObservable(value) || Validator$1.isProxy(value);
907
911
  },
908
912
  isAnchor(value) {
909
913
  return value?.__Anchor__
@@ -986,8 +990,8 @@ var NativeComponents = (function (exports) {
986
990
  if(!data) {
987
991
  return false;
988
992
  }
989
- return Validator.isObject(data)
990
- && Object.values(data).some(value => Validator.isObservable(value));
993
+ return Validator$1.isObject(data)
994
+ && Object.values(data).some(value => Validator$1.isObservable(value));
991
995
  },
992
996
  /**
993
997
  * Check if the data contains an observable reference.
@@ -1089,7 +1093,7 @@ var NativeComponents = (function (exports) {
1089
1093
  }
1090
1094
  }
1091
1095
  if (cleanedCount > 0) {
1092
- DebugManager$2.log('Memory Auto Clean', `🧹 Cleaned ${cleanedCount} orphaned observables`);
1096
+ DebugManager$1.log('Memory Auto Clean', `🧹 Cleaned ${cleanedCount} orphaned observables`);
1093
1097
  }
1094
1098
  }
1095
1099
  };
@@ -1215,7 +1219,7 @@ var NativeComponents = (function (exports) {
1215
1219
  }
1216
1220
 
1217
1221
  // Observables - keep the référence
1218
- if (Validator.isObservable(value)) {
1222
+ if (Validator$1.isObservable(value)) {
1219
1223
  onObservableFound && onObservableFound(value);
1220
1224
  return value;
1221
1225
  }
@@ -1384,7 +1388,7 @@ var NativeComponents = (function (exports) {
1384
1388
  * @class ObservableItem
1385
1389
  */
1386
1390
  function ObservableItem(value, configs = null) {
1387
- value = Validator.isObservable(value) ? value.val() : value;
1391
+ value = Validator$1.isObservable(value) ? value.val() : value;
1388
1392
 
1389
1393
  this.$previousValue = null;
1390
1394
  this.$currentValue = value;
@@ -1398,7 +1402,7 @@ var NativeComponents = (function (exports) {
1398
1402
  if(configs) {
1399
1403
  this.configs = configs;
1400
1404
  if(configs.reset) {
1401
- this.$initialValue = Validator.isObject(value) ? deepClone(value) : value;
1405
+ this.$initialValue = Validator$1.isObject(value) ? deepClone(value) : value;
1402
1406
  }
1403
1407
  }
1404
1408
  }
@@ -1607,7 +1611,7 @@ var NativeComponents = (function (exports) {
1607
1611
  if(!watchValueList) {
1608
1612
  watchValueList = callback;
1609
1613
  this.$watchers.set(value, callback);
1610
- } else if(!Validator.isArray(watchValueList.list)) {
1614
+ } else if(!Validator$1.isArray(watchValueList.list)) {
1611
1615
  watchValueList = [watchValueList, callback];
1612
1616
  callback = (value) => {
1613
1617
  for(let i = 0, length = watchValueList.length; i < length; i++) {
@@ -1719,7 +1723,7 @@ var NativeComponents = (function (exports) {
1719
1723
  */
1720
1724
  ObservableItem.prototype.get = function(key) {
1721
1725
  const item = this.$currentValue[key];
1722
- return Validator.isObservable(item) ? item.val() : item;
1726
+ return Validator$1.isObservable(item) ? item.val() : item;
1723
1727
  };
1724
1728
 
1725
1729
  /**
@@ -1751,7 +1755,7 @@ var NativeComponents = (function (exports) {
1751
1755
  * a.equals(10); // false
1752
1756
  */
1753
1757
  ObservableItem.prototype.equals = function(other) {
1754
- if(Validator.isObservable(other)) {
1758
+ if(Validator$1.isObservable(other)) {
1755
1759
  return this.$currentValue === other.$currentValue;
1756
1760
  }
1757
1761
  return this.$currentValue === other;
@@ -1796,7 +1800,7 @@ var NativeComponents = (function (exports) {
1796
1800
  if(!this.configs?.reset) {
1797
1801
  return;
1798
1802
  }
1799
- const resetValue = (Validator.isObject(this.$initialValue))
1803
+ const resetValue = (Validator$1.isObject(this.$initialValue))
1800
1804
  ? deepClone(this.$initialValue, (observable) => {
1801
1805
  observable.reset();
1802
1806
  })
@@ -1885,7 +1889,7 @@ var NativeComponents = (function (exports) {
1885
1889
  const formatter = Formatters[type];
1886
1890
  const localeObservable = Formatters.locale;
1887
1891
 
1888
- return Observable.computed(() => formatter(self.val(), localeObservable.val(), options),
1892
+ return Observable$1.computed(() => formatter(self.val(), localeObservable.val(), options),
1889
1893
  [self, localeObservable]
1890
1894
  );
1891
1895
  };
@@ -1910,17 +1914,17 @@ var NativeComponents = (function (exports) {
1910
1914
  * @returns {ObservableItem}
1911
1915
  * @constructor
1912
1916
  */
1913
- function Observable(value, configs = null) {
1917
+ function Observable$1(value, configs = null) {
1914
1918
  return new ObservableItem(value, configs);
1915
1919
  }
1916
1920
 
1917
- const $$1 = Observable;
1921
+ const $$1 = Observable$1;
1918
1922
 
1919
1923
  /**
1920
1924
  *
1921
1925
  * @param {string} propertyName
1922
1926
  */
1923
- Observable.useValueProperty = function(propertyName = 'value') {
1927
+ Observable$1.useValueProperty = function(propertyName = 'value') {
1924
1928
  Object.defineProperty(ObservableItem.prototype, propertyName, {
1925
1929
  get() {
1926
1930
  return this.$currentValue;
@@ -1938,7 +1942,7 @@ var NativeComponents = (function (exports) {
1938
1942
  * @param id
1939
1943
  * @returns {ObservableItem|null}
1940
1944
  */
1941
- Observable.getById = function(id) {
1945
+ Observable$1.getById = function(id) {
1942
1946
  const item = MemoryManager.getObservableById(parseInt(id));
1943
1947
  if(!item) {
1944
1948
  throw new NativeDocumentError('Observable.getById : No observable found with id ' + id);
@@ -1950,7 +1954,7 @@ var NativeComponents = (function (exports) {
1950
1954
  *
1951
1955
  * @param {ObservableItem} observable
1952
1956
  */
1953
- Observable.cleanup = function(observable) {
1957
+ Observable$1.cleanup = function(observable) {
1954
1958
  observable.cleanup();
1955
1959
  };
1956
1960
 
@@ -1959,7 +1963,7 @@ var NativeComponents = (function (exports) {
1959
1963
  * @param {Boolean} enable
1960
1964
  * @param {{interval:Boolean, threshold:number}} options
1961
1965
  */
1962
- Observable.autoCleanup = function(enable = false, options = {}) {
1966
+ Observable$1.autoCleanup = function(enable = false, options = {}) {
1963
1967
  if(!enable) {
1964
1968
  return;
1965
1969
  }
@@ -2019,7 +2023,7 @@ var NativeComponents = (function (exports) {
2019
2023
  const bindBooleanAttribute = (element, attributeName, value) => {
2020
2024
  const isObservable = value.__$isObservable;
2021
2025
  const defaultValue = isObservable? value.val() : value;
2022
- if(Validator.isBoolean(defaultValue)) {
2026
+ if(Validator$1.isBoolean(defaultValue)) {
2023
2027
  element[attributeName] = defaultValue;
2024
2028
  }
2025
2029
  else {
@@ -2330,7 +2334,7 @@ var NativeComponents = (function (exports) {
2330
2334
  if(child.toNdElement) {
2331
2335
  do {
2332
2336
  child = child.toNdElement();
2333
- if(Validator.isElement(child)) {
2337
+ if(Validator$1.isElement(child)) {
2334
2338
  return child;
2335
2339
  }
2336
2340
  } while (child.toNdElement);
@@ -2409,7 +2413,7 @@ var NativeComponents = (function (exports) {
2409
2413
  anchor.getParent = () => parent;
2410
2414
 
2411
2415
  anchor.appendChild = (child) => {
2412
- child = Validator.isElement(child) ? child : ElementCreator.getChild(child);
2416
+ child = Validator$1.isElement(child) ? child : ElementCreator.getChild(child);
2413
2417
  parent.appendChild(child);
2414
2418
  };
2415
2419
 
@@ -2418,7 +2422,7 @@ var NativeComponents = (function (exports) {
2418
2422
  anchor.appendRaw = anchor.appendChildRaw;
2419
2423
 
2420
2424
  anchor.insertAtStart = (child) => {
2421
- child = Validator.isElement(child) ? child : ElementCreator.getChild(child);
2425
+ child = Validator$1.isElement(child) ? child : ElementCreator.getChild(child);
2422
2426
  parent.firstChild ? parent.insertBefore(child, parent.firstChild) : parent.appendChild(child);
2423
2427
  };
2424
2428
  anchor.insertAtStartRaw = (child) => {
@@ -2432,7 +2436,7 @@ var NativeComponents = (function (exports) {
2432
2436
  };
2433
2437
 
2434
2438
  anchor.replaceContent = function(content) {
2435
- const child = Validator.isElement(content) ? content : ElementCreator.getChild(content);
2439
+ const child = Validator$1.isElement(content) ? content : ElementCreator.getChild(content);
2436
2440
  parent.replaceChildren(child);
2437
2441
  };
2438
2442
 
@@ -2442,7 +2446,7 @@ var NativeComponents = (function (exports) {
2442
2446
  anchor.setContent = anchor.replaceContent;
2443
2447
 
2444
2448
  anchor.insertBefore = (child, anchor) => {
2445
- child = Validator.isElement(child) ? child : ElementCreator.getChild(child);
2449
+ child = Validator$1.isElement(child) ? child : ElementCreator.getChild(child);
2446
2450
  parent.insertBefore(child, anchor);
2447
2451
  };
2448
2452
  anchor.insertBeforeRaw = (child, anchor) => {
@@ -2486,7 +2490,7 @@ var NativeComponents = (function (exports) {
2486
2490
  ? () => true: (parent) => (parent.firstChild === anchorStart && parent.lastChild === anchorEnd);
2487
2491
 
2488
2492
  const insertBefore = function(parent, child, target) {
2489
- const childElement = Validator.isElement(child) ? child : ElementCreator.getChild(child);
2493
+ const childElement = Validator$1.isElement(child) ? child : ElementCreator.getChild(child);
2490
2494
  insertBeforeRaw(parent, childElement, target);
2491
2495
  };
2492
2496
 
@@ -2536,7 +2540,7 @@ var NativeComponents = (function (exports) {
2536
2540
  anchorFragment.appendRaw = anchorFragment.appendChildRaw;
2537
2541
 
2538
2542
  anchorFragment.insertAtStart = function(child) {
2539
- child = Validator.isElement(child) ? child : ElementCreator.getChild(child);
2543
+ child = Validator$1.isElement(child) ? child : ElementCreator.getChild(child);
2540
2544
  anchorFragment.insertAtStartRaw(child);
2541
2545
  };
2542
2546
 
@@ -2592,7 +2596,7 @@ var NativeComponents = (function (exports) {
2592
2596
  };
2593
2597
 
2594
2598
  anchorFragment.replaceContent = function(child) {
2595
- const childElement = Validator.isElement(child) ? child : ElementCreator.getChild(child);
2599
+ const childElement = Validator$1.isElement(child) ? child : ElementCreator.getChild(child);
2596
2600
  anchorFragment.replaceContentRaw(childElement);
2597
2601
  };
2598
2602
 
@@ -3204,10 +3208,10 @@ var NativeComponents = (function (exports) {
3204
3208
  String.prototype.use = function(args) {
3205
3209
  const value = this;
3206
3210
 
3207
- return Observable.computed(() => {
3211
+ return Observable$1.computed(() => {
3208
3212
  return value.replace(/\$\{(.*?)}/g, (match, key) => {
3209
3213
  const data = args[key];
3210
- if(Validator.isObservable(data)) {
3214
+ if(Validator$1.isObservable(data)) {
3211
3215
  return data.val();
3212
3216
  }
3213
3217
  return data;
@@ -3216,23 +3220,23 @@ var NativeComponents = (function (exports) {
3216
3220
  };
3217
3221
 
3218
3222
  String.prototype.resolveObservableTemplate = function() {
3219
- if(!Validator.containsObservableReference(this)) {
3223
+ if(!Validator$1.containsObservableReference(this)) {
3220
3224
  return this.valueOf();
3221
3225
  }
3222
3226
  return this.split(/(\{\{#ObItem::\([0-9]+\)\}\})/g).filter(Boolean).map((value) => {
3223
- if(!Validator.containsObservableReference(value)) {
3227
+ if(!Validator$1.containsObservableReference(value)) {
3224
3228
  return value;
3225
3229
  }
3226
3230
  const [_, id] = value.match(/\{\{#ObItem::\(([0-9]+)\)\}\}/);
3227
- return Observable.getById(id);
3231
+ return Observable$1.getById(id);
3228
3232
  });
3229
3233
  };
3230
3234
 
3231
3235
  function createMultiSourceFilter(sources, callbackFn){
3232
- const observables = sources.filter(Validator.isObservable);
3236
+ const observables = sources.filter(Validator$1.isObservable);
3233
3237
 
3234
3238
  const getValues = () => sources.map(src =>
3235
- Validator.isObservable(src) ? src.val() : src
3239
+ Validator$1.isObservable(src) ? src.val() : src
3236
3240
  );
3237
3241
 
3238
3242
  return {
@@ -3482,7 +3486,7 @@ var NativeComponents = (function (exports) {
3482
3486
  const filterCallbacks = {};
3483
3487
 
3484
3488
  for (const [key, rawPredicate] of Object.entries(predicates)) {
3485
- const predicate = Validator.isObservable(rawPredicate) ? match(rawPredicate, false) : rawPredicate;
3489
+ const predicate = Validator$1.isObservable(rawPredicate) ? match(rawPredicate, false) : rawPredicate;
3486
3490
  if (predicate && typeof predicate === 'object' && 'callback' in predicate) {
3487
3491
  filterCallbacks[key] = predicate.callback;
3488
3492
 
@@ -3499,7 +3503,7 @@ var NativeComponents = (function (exports) {
3499
3503
  }
3500
3504
  }
3501
3505
 
3502
- const viewArray = Observable.array();
3506
+ const viewArray = Observable$1.array();
3503
3507
 
3504
3508
  const filters = Object.entries(filterCallbacks);
3505
3509
  const updateView = () => {
@@ -3647,7 +3651,7 @@ var NativeComponents = (function (exports) {
3647
3651
  * items.push(4); // Triggers update
3648
3652
  * items.subscribe((arr) => console.log(arr));
3649
3653
  */
3650
- Observable.array = function(target = [], configs = null) {
3654
+ Observable$1.array = function(target = [], configs = null) {
3651
3655
  return new ObservableArray(target, configs);
3652
3656
  };
3653
3657
 
@@ -3656,10 +3660,10 @@ var NativeComponents = (function (exports) {
3656
3660
  * @param {Function} callback
3657
3661
  * @returns {Function}
3658
3662
  */
3659
- Observable.batch = function(callback) {
3660
- const $observer = Observable(0);
3663
+ Observable$1.batch = function(callback) {
3664
+ const $observer = Observable$1(0);
3661
3665
  const batch = function() {
3662
- if(Validator.isAsyncFunction(callback)) {
3666
+ if(Validator$1.isAsyncFunction(callback)) {
3663
3667
  return (callback(...arguments)).then(() => {
3664
3668
  $observer.trigger();
3665
3669
  }).catch(error => { throw error; });
@@ -3710,25 +3714,25 @@ var NativeComponents = (function (exports) {
3710
3714
  if(Array.isArray(itemValue)) {
3711
3715
  if(configs?.deep !== false) {
3712
3716
  const mappedItemValue = itemValue.map(item => {
3713
- if(Validator.isJson(item)) {
3714
- return Observable.json(item, configs);
3717
+ if(Validator$1.isJson(item)) {
3718
+ return Observable$1.json(item, configs);
3715
3719
  }
3716
- if(Validator.isArray(item)) {
3717
- return Observable.array(item, configs);
3720
+ if(Validator$1.isArray(item)) {
3721
+ return Observable$1.array(item, configs);
3718
3722
  }
3719
- return Observable(item, configs);
3723
+ return Observable$1(item, configs);
3720
3724
  });
3721
- this.$observables[key] = Observable.array(mappedItemValue, configs);
3725
+ this.$observables[key] = Observable$1.array(mappedItemValue, configs);
3722
3726
  continue;
3723
3727
  }
3724
- this.$observables[key] = Observable.array(itemValue, configs);
3728
+ this.$observables[key] = Observable$1.array(itemValue, configs);
3725
3729
  continue;
3726
3730
  }
3727
- if(Validator.isObservable(itemValue) || Validator.isProxy(itemValue)) {
3731
+ if(Validator$1.isObservable(itemValue) || Validator$1.isProxy(itemValue)) {
3728
3732
  this.$observables[key] = itemValue;
3729
3733
  continue;
3730
3734
  }
3731
- this.$observables[key] = (typeof itemValue === 'object') ? Observable.object(itemValue, configs) : Observable(itemValue, configs);
3735
+ this.$observables[key] = (typeof itemValue === 'object') ? Observable$1.object(itemValue, configs) : Observable$1(itemValue, configs);
3732
3736
  }
3733
3737
  };
3734
3738
 
@@ -3736,21 +3740,21 @@ var NativeComponents = (function (exports) {
3736
3740
  const result = {};
3737
3741
  for(const key in this.$observables) {
3738
3742
  const dataItem = this.$observables[key];
3739
- if(Validator.isObservable(dataItem)) {
3743
+ if(Validator$1.isObservable(dataItem)) {
3740
3744
  let value = dataItem.val();
3741
3745
  if(Array.isArray(value)) {
3742
3746
  value = value.map(item => {
3743
- if(Validator.isObservable(item)) {
3747
+ if(Validator$1.isObservable(item)) {
3744
3748
  return item.val();
3745
3749
  }
3746
- if(Validator.isProxy(item)) {
3750
+ if(Validator$1.isProxy(item)) {
3747
3751
  return item.$value;
3748
3752
  }
3749
3753
  return item;
3750
3754
  });
3751
3755
  }
3752
3756
  result[key] = value;
3753
- } else if(Validator.isProxy(dataItem)) {
3757
+ } else if(Validator$1.isProxy(dataItem)) {
3754
3758
  result[key] = dataItem.$value;
3755
3759
  } else {
3756
3760
  result[key] = dataItem;
@@ -3762,10 +3766,10 @@ var NativeComponents = (function (exports) {
3762
3766
 
3763
3767
  ObservableObject.prototype.get = function(property) {
3764
3768
  const item = this.$observables[property];
3765
- if(Validator.isObservable(item)) {
3769
+ if(Validator$1.isObservable(item)) {
3766
3770
  return item.val();
3767
3771
  }
3768
- if(Validator.isProxy(item)) {
3772
+ if(Validator$1.isProxy(item)) {
3769
3773
  return item.$value;
3770
3774
  }
3771
3775
  return item;
@@ -3773,7 +3777,7 @@ var NativeComponents = (function (exports) {
3773
3777
  ObservableObject.prototype.$get = ObservableObject.prototype.get;
3774
3778
 
3775
3779
  ObservableObject.prototype.set = function(newData) {
3776
- const data = Validator.isProxy(newData) ? newData.$value : newData;
3780
+ const data = Validator$1.isProxy(newData) ? newData.$value : newData;
3777
3781
  const configs = this.configs;
3778
3782
 
3779
3783
  for(const key in data) {
@@ -3781,18 +3785,18 @@ var NativeComponents = (function (exports) {
3781
3785
  const newValueOrigin = newData[key];
3782
3786
  const newValue = data[key];
3783
3787
 
3784
- if(Validator.isObservable(targetItem)) {
3785
- if(!Validator.isArray(newValue)) {
3788
+ if(Validator$1.isObservable(targetItem)) {
3789
+ if(!Validator$1.isArray(newValue)) {
3786
3790
  targetItem.set(newValue);
3787
3791
  continue;
3788
3792
  }
3789
3793
  const firstElementFromOriginalValue = newValueOrigin.at(0);
3790
- if(Validator.isObservable(firstElementFromOriginalValue) || Validator.isProxy(firstElementFromOriginalValue)) {
3794
+ if(Validator$1.isObservable(firstElementFromOriginalValue) || Validator$1.isProxy(firstElementFromOriginalValue)) {
3791
3795
  const newValues = newValue.map(item => {
3792
- if(Validator.isProxy(firstElementFromOriginalValue)) {
3793
- return Observable.init(item, configs);
3796
+ if(Validator$1.isProxy(firstElementFromOriginalValue)) {
3797
+ return Observable$1.init(item, configs);
3794
3798
  }
3795
- return Observable(item, configs);
3799
+ return Observable$1(item, configs);
3796
3800
  });
3797
3801
  targetItem.set(newValues);
3798
3802
  continue;
@@ -3800,7 +3804,7 @@ var NativeComponents = (function (exports) {
3800
3804
  targetItem.set([...newValue]);
3801
3805
  continue;
3802
3806
  }
3803
- if(Validator.isProxy(targetItem)) {
3807
+ if(Validator$1.isProxy(targetItem)) {
3804
3808
  targetItem.update(newValue);
3805
3809
  continue;
3806
3810
  }
@@ -3820,7 +3824,7 @@ var NativeComponents = (function (exports) {
3820
3824
  };
3821
3825
  ObservableObject.prototype.$keys = ObservableObject.prototype.keys;
3822
3826
  ObservableObject.prototype.clone = function() {
3823
- return Observable.init(this.val(), this.configs);
3827
+ return Observable$1.init(this.val(), this.configs);
3824
3828
  };
3825
3829
  ObservableObject.prototype.$clone = ObservableObject.prototype.clone;
3826
3830
  ObservableObject.prototype.reset = function() {
@@ -3850,7 +3854,7 @@ var NativeComponents = (function (exports) {
3850
3854
 
3851
3855
  ObservableObject.prototype.update = ObservableObject.prototype.set;
3852
3856
 
3853
- Observable.init = function(initialValue, configs = null) {
3857
+ Observable$1.init = function(initialValue, configs = null) {
3854
3858
  return new ObservableObject(initialValue, configs)
3855
3859
  };
3856
3860
 
@@ -3859,8 +3863,8 @@ var NativeComponents = (function (exports) {
3859
3863
  * @param {any[]} data
3860
3864
  * @return Proxy[]
3861
3865
  */
3862
- Observable.arrayOfObject = function(data) {
3863
- return data.map(item => Observable.object(item));
3866
+ Observable$1.arrayOfObject = function(data) {
3867
+ return data.map(item => Observable$1.object(item));
3864
3868
  };
3865
3869
 
3866
3870
  /**
@@ -3868,26 +3872,26 @@ var NativeComponents = (function (exports) {
3868
3872
  * @param {ObservableItem|Object<ObservableItem>} data
3869
3873
  * @returns {{}|*|null}
3870
3874
  */
3871
- Observable.value = function(data) {
3872
- if(Validator.isObservable(data)) {
3875
+ Observable$1.value = function(data) {
3876
+ if(Validator$1.isObservable(data)) {
3873
3877
  return data.val();
3874
3878
  }
3875
- if(Validator.isProxy(data)) {
3879
+ if(Validator$1.isProxy(data)) {
3876
3880
  return data.$value;
3877
3881
  }
3878
- if(Validator.isArray(data)) {
3882
+ if(Validator$1.isArray(data)) {
3879
3883
  const result = [];
3880
3884
  for(let i = 0, length = data.length; i < length; i++) {
3881
3885
  const item = data[i];
3882
- result.push(Observable.value(item));
3886
+ result.push(Observable$1.value(item));
3883
3887
  }
3884
3888
  return result;
3885
3889
  }
3886
3890
  return data;
3887
3891
  };
3888
3892
 
3889
- Observable.object = Observable.init;
3890
- Observable.json = Observable.init;
3893
+ Observable$1.object = Observable$1.init;
3894
+ Observable$1.json = Observable$1.init;
3891
3895
 
3892
3896
  /**
3893
3897
  * Creates a computed observable that automatically updates when its dependencies change.
@@ -3908,13 +3912,13 @@ var NativeComponents = (function (exports) {
3908
3912
  * const batch = Observable.batch(() => { ... });
3909
3913
  * const computed = Observable.computed(() => { ... }, batch);
3910
3914
  */
3911
- Observable.computed = function(callback, dependencies = []) {
3915
+ Observable$1.computed = function(callback, dependencies = []) {
3912
3916
  const initialValue = callback();
3913
3917
  const observable = new ObservableItem(initialValue);
3914
3918
  const updatedValue = nextTick(() => observable.set(callback()));
3915
3919
 
3916
- if(Validator.isFunction(dependencies)) {
3917
- if(!Validator.isObservable(dependencies.$observer)) {
3920
+ if(Validator$1.isFunction(dependencies)) {
3921
+ if(!Validator$1.isObservable(dependencies.$observer)) {
3918
3922
  throw new NativeDocumentError('Observable.computed : dependencies must be valid batch function');
3919
3923
  }
3920
3924
  dependencies.$observer.subscribe(updatedValue);
@@ -3922,7 +3926,7 @@ var NativeComponents = (function (exports) {
3922
3926
  }
3923
3927
 
3924
3928
  dependencies.forEach(dependency => {
3925
- if(Validator.isProxy(dependency)) {
3929
+ if(Validator$1.isProxy(dependency)) {
3926
3930
  dependency.$observables.forEach((observable) => {
3927
3931
  observable.subscribe(updatedValue);
3928
3932
  });
@@ -3945,7 +3949,7 @@ var NativeComponents = (function (exports) {
3945
3949
  const $getStoreOrThrow = (method, name) => {
3946
3950
  const item = $stores.get(name);
3947
3951
  if (!item) {
3948
- DebugManager$2.error('Store', `Store.${method}('${name}') : store not found. Did you call Store.create('${name}') first?`);
3952
+ DebugManager$1.error('Store', `Store.${method}('${name}') : store not found. Did you call Store.create('${name}') first?`);
3949
3953
  throw new NativeDocumentError(
3950
3954
  `Store.${method}('${name}') : store not found.`
3951
3955
  );
@@ -3958,7 +3962,7 @@ var NativeComponents = (function (exports) {
3958
3962
  */
3959
3963
  const $applyReadOnly = (observer, name, context) => {
3960
3964
  const readOnlyError = (method) => () => {
3961
- DebugManager$2.error('Store', `Store.${context}('${name}') is read-only. '${method}()' is not allowed.`);
3965
+ DebugManager$1.error('Store', `Store.${context}('${name}') is read-only. '${method}()' is not allowed.`);
3962
3966
  throw new NativeDocumentError(
3963
3967
  `Store.${context}('${name}') is read-only.`
3964
3968
  );
@@ -3970,12 +3974,12 @@ var NativeComponents = (function (exports) {
3970
3974
 
3971
3975
  const $createObservable = (value, options = {}) => {
3972
3976
  if(Array.isArray(value)) {
3973
- return Observable.array(value, options);
3977
+ return Observable$1.array(value, options);
3974
3978
  }
3975
3979
  if(typeof value === 'object') {
3976
- return Observable.object(value, options);
3980
+ return Observable$1.object(value, options);
3977
3981
  }
3978
- return Observable(value, options);
3982
+ return Observable$1(value, options);
3979
3983
  };
3980
3984
 
3981
3985
  const $api = {
@@ -3989,7 +3993,7 @@ var NativeComponents = (function (exports) {
3989
3993
  */
3990
3994
  create(name, value) {
3991
3995
  if ($stores.has(name)) {
3992
- DebugManager$2.warn('Store', `Store.create('${name}') : a store with this name already exists. Use Store.get('${name}') to retrieve it.`);
3996
+ DebugManager$1.warn('Store', `Store.create('${name}') : a store with this name already exists. Use Store.get('${name}') to retrieve it.`);
3993
3997
  throw new NativeDocumentError(
3994
3998
  `Store.create('${name}') : a store with this name already exists.`
3995
3999
  );
@@ -4010,7 +4014,7 @@ var NativeComponents = (function (exports) {
4010
4014
  */
4011
4015
  createResettable(name, value) {
4012
4016
  if ($stores.has(name)) {
4013
- DebugManager$2.warn('Store', `Store.createResettable('${name}') : a store with this name already exists.`);
4017
+ DebugManager$1.warn('Store', `Store.createResettable('${name}') : a store with this name already exists.`);
4014
4018
  throw new NativeDocumentError(
4015
4019
  `Store.createResettable('${name}') : a store with this name already exists.`
4016
4020
  );
@@ -4046,7 +4050,7 @@ var NativeComponents = (function (exports) {
4046
4050
  */
4047
4051
  createComposed(name, computation, dependencies) {
4048
4052
  if ($stores.has(name)) {
4049
- DebugManager$2.warn('Store', `Store.createComposed('${name}') : a store with this name already exists.`);
4053
+ DebugManager$1.warn('Store', `Store.createComposed('${name}') : a store with this name already exists.`);
4050
4054
  throw new NativeDocumentError(
4051
4055
  `Store.createComposed('${name}') : a store with this name already exists.`
4052
4056
  );
@@ -4069,7 +4073,7 @@ var NativeComponents = (function (exports) {
4069
4073
  }
4070
4074
  const depItem = $stores.get(depName);
4071
4075
  if (!depItem) {
4072
- DebugManager$2.error('Store', `Store.createComposed('${name}') : dependency '${depName}' not found. Create it first.`);
4076
+ DebugManager$1.error('Store', `Store.createComposed('${name}') : dependency '${depName}' not found. Create it first.`);
4073
4077
  throw new NativeDocumentError(
4074
4078
  `Store.createComposed('${name}') : dependency store '${depName}' not found.`
4075
4079
  );
@@ -4078,7 +4082,7 @@ var NativeComponents = (function (exports) {
4078
4082
  });
4079
4083
 
4080
4084
  // Create computed observable from dependency observers
4081
- const observer = Observable.computed(computation, depObservers);
4085
+ const observer = Observable$1.computed(computation, depObservers);
4082
4086
 
4083
4087
  $stores.set(name, { observer, subscribers: new Set(), resettable: false, composed: true });
4084
4088
  return observer;
@@ -4103,13 +4107,13 @@ var NativeComponents = (function (exports) {
4103
4107
  reset(name) {
4104
4108
  const item = $getStoreOrThrow('reset', name);
4105
4109
  if (item.composed) {
4106
- DebugManager$2.error('Store', `Store.reset('${name}') : composed stores cannot be reset. Their value is derived from dependencies.`);
4110
+ DebugManager$1.error('Store', `Store.reset('${name}') : composed stores cannot be reset. Their value is derived from dependencies.`);
4107
4111
  throw new NativeDocumentError(
4108
4112
  `Store.reset('${name}') : composed stores cannot be reset.`
4109
4113
  );
4110
4114
  }
4111
4115
  if (!item.resettable) {
4112
- DebugManager$2.error('Store', `Store.reset('${name}') : this store is not resettable. Use Store.createResettable('${name}', value) instead of Store.create().`);
4116
+ DebugManager$1.error('Store', `Store.reset('${name}') : this store is not resettable. Use Store.createResettable('${name}', value) instead of Store.create().`);
4113
4117
  throw new NativeDocumentError(
4114
4118
  `Store.reset('${name}') : this store is not resettable. Use Store.createResettable('${name}', value) instead of Store.create().`
4115
4119
  );
@@ -4130,7 +4134,7 @@ var NativeComponents = (function (exports) {
4130
4134
  const item = $getStoreOrThrow('use', name);
4131
4135
 
4132
4136
  if (item.composed) {
4133
- DebugManager$2.error('Store', `Store.use('${name}') : composed stores are read-only. Use Store.follow('${name}') instead.`);
4137
+ DebugManager$1.error('Store', `Store.use('${name}') : composed stores are read-only. Use Store.follow('${name}') instead.`);
4134
4138
  throw new NativeDocumentError(
4135
4139
  `Store.use('${name}') : composed stores are read-only. Use Store.follow('${name}') instead.`
4136
4140
  );
@@ -4197,7 +4201,7 @@ var NativeComponents = (function (exports) {
4197
4201
  get(name) {
4198
4202
  const item = $stores.get(name);
4199
4203
  if (!item) {
4200
- DebugManager$2.warn('Store', `Store.get('${name}') : store not found.`);
4204
+ DebugManager$1.warn('Store', `Store.get('${name}') : store not found.`);
4201
4205
  return null;
4202
4206
  }
4203
4207
  return item.observer;
@@ -4219,7 +4223,7 @@ var NativeComponents = (function (exports) {
4219
4223
  delete(name) {
4220
4224
  const item = $stores.get(name);
4221
4225
  if (!item) {
4222
- DebugManager$2.warn('Store', `Store.delete('${name}') : store not found, nothing to delete.`);
4226
+ DebugManager$1.warn('Store', `Store.delete('${name}') : store not found, nothing to delete.`);
4223
4227
  return;
4224
4228
  }
4225
4229
  item.subscribers.forEach(follower => follower.destroy());
@@ -4321,7 +4325,7 @@ var NativeComponents = (function (exports) {
4321
4325
  return undefined;
4322
4326
  },
4323
4327
  set(target, prop, value) {
4324
- DebugManager$2.error('Store', `Forbidden: You cannot overwrite the store key '${String(prop)}'. Use .use('${String(prop)}').set(value) instead.`);
4328
+ DebugManager$1.error('Store', `Forbidden: You cannot overwrite the store key '${String(prop)}'. Use .use('${String(prop)}').set(value) instead.`);
4325
4329
  throw new NativeDocumentError(`Store structure is immutable. Use .set() on the observable.`);
4326
4330
  },
4327
4331
  deleteProperty(target, prop) {
@@ -4901,7 +4905,7 @@ var NativeComponents = (function (exports) {
4901
4905
  }
4902
4906
 
4903
4907
  this.$description = {
4904
- src: Validator.isObservable(source) ? source : $(null),
4908
+ src: Validator$1.isObservable(source) ? source : $(null),
4905
4909
  alt: null,
4906
4910
  name: null,
4907
4911
  initials: null,
@@ -5536,31 +5540,36 @@ var NativeComponents = (function (exports) {
5536
5540
  return this;
5537
5541
  };
5538
5542
 
5539
- Button.prototype.iconAtLeft = function(position) {
5540
- return this.iconPosition('left');
5543
+ Button.prototype.iconAtLeft = function() {
5544
+ this.$description.iconPosition = 'left';
5545
+ return this;
5541
5546
  };
5542
- Button.prototype.iconAtRight = function(position) {
5543
- return this.iconPosition('right');
5547
+ Button.prototype.iconAtRight = function() {
5548
+ this.$description.iconPosition = 'right';
5549
+ return this;
5544
5550
  };
5545
5551
  Button.prototype.iconAtTop = function() {
5546
- return this.iconPosition('top');
5552
+ this.$description.iconPosition = 'top';
5553
+ return this;
5547
5554
  };
5548
5555
 
5549
5556
  Button.prototype.iconAtBottom = function() {
5550
- return this.iconPosition('bottom');
5557
+ this.$description.iconPosition = 'bottom';
5558
+ return this;
5551
5559
  };
5552
5560
 
5553
5561
  Button.prototype.iconOnly = function() {
5562
+ this.$description.iconOnly = true;
5554
5563
  return this;
5555
5564
  };
5556
5565
 
5557
5566
  Button.prototype.loading = function(loading = true) {
5558
- this.$description.loading = loading;
5567
+ this.$description.loading = BaseComponent.obs(loading);
5559
5568
  return this;
5560
5569
  };
5561
5570
 
5562
5571
  Button.prototype.disable = function(disabled = true) {
5563
- this.$description.disabled = disabled;
5572
+ this.$description.disabled = BaseComponent.obs(disabled);
5564
5573
  return this;
5565
5574
  };
5566
5575
 
@@ -7142,7 +7151,7 @@ var NativeComponents = (function (exports) {
7142
7151
  }
7143
7152
  else if (typeof condition === 'function') {
7144
7153
  isRequired = condition(allValues);
7145
- } else if (Validator.isObservable(condition)) {
7154
+ } else if (Validator$1.isObservable(condition)) {
7146
7155
  isRequired = condition.val();
7147
7156
  } else {
7148
7157
  isRequired = !!condition;
@@ -7275,7 +7284,7 @@ var NativeComponents = (function (exports) {
7275
7284
  };
7276
7285
 
7277
7286
  Field.prototype.errors = function(errors) {
7278
- if(!Validator.isObservable(errors)) {
7287
+ if(!Validator$1.isObservable(errors)) {
7279
7288
  throw new Error('Errors must be an observable');
7280
7289
  }
7281
7290
  this.$description.errors = errors;
@@ -7379,12 +7388,12 @@ var NativeComponents = (function (exports) {
7379
7388
 
7380
7389
  Field.prototype.value = function() {
7381
7390
  const value = this.$model();
7382
- return Validator.isObservable(value) ? value.val() : value;
7391
+ return Validator$1.isObservable(value) ? value.val() : value;
7383
7392
  };
7384
7393
 
7385
7394
  Field.prototype.setValue = function(newValue) {
7386
7395
  const value = this.$model();
7387
- if(Validator.isObservable(value)) {
7396
+ if(Validator$1.isObservable(value)) {
7388
7397
  value.set(newValue);
7389
7398
  return this;
7390
7399
  }
@@ -7506,10 +7515,10 @@ var NativeComponents = (function (exports) {
7506
7515
  this.$element = null;
7507
7516
  this.$configs = configs;
7508
7517
  this.$fields = new Map();
7509
- this.$submitting = Observable(false);
7510
- this.$errors = Observable(null);
7511
- this.$isDirty = Observable(false);
7512
- this.$isValid = Observable(false);
7518
+ this.$submitting = Observable$1(false);
7519
+ this.$errors = Observable$1(null);
7520
+ this.$isDirty = Observable$1(false);
7521
+ this.$isValid = Observable$1(false);
7513
7522
  }
7514
7523
 
7515
7524
  FormControl.defaultLayoutTemplate = null;
@@ -7554,7 +7563,7 @@ var NativeComponents = (function (exports) {
7554
7563
  return this;
7555
7564
  }
7556
7565
 
7557
- if(Validator.isObservable(dataSource)) {
7566
+ if(Validator$1.isObservable(dataSource)) {
7558
7567
  field.model(dataSource);
7559
7568
  dataSource.subscribe(() => {
7560
7569
  this.$isDirty.set(true);
@@ -8107,7 +8116,7 @@ var NativeComponents = (function (exports) {
8107
8116
 
8108
8117
  CheckboxField.prototype.checked = function() {
8109
8118
  const checked = this.$description.checked;
8110
- if(Validator.isObservable(checked)) {
8119
+ if(Validator$1.isObservable(checked)) {
8111
8120
  return checked.val();
8112
8121
  }
8113
8122
  return checked;
@@ -8148,7 +8157,7 @@ var NativeComponents = (function (exports) {
8148
8157
 
8149
8158
  CheckboxField.prototype.checked = function() {
8150
8159
  const checked = this.$description.checked;
8151
- if(Validator.isObservable(checked)) {
8160
+ if(Validator$1.isObservable(checked)) {
8152
8161
  return checked.val();
8153
8162
  }
8154
8163
  return checked;
@@ -8828,9 +8837,9 @@ var NativeComponents = (function (exports) {
8828
8837
  this.$description = {
8829
8838
  name: name,
8830
8839
  defaultItem: null,
8831
- value: (config?.data && Validator.isObservable(config.data))
8840
+ value: (config?.data && Validator$1.isObservable(config.data))
8832
8841
  ? config.data
8833
- : Observable.array(config?.data || []),
8842
+ : Observable$1.array(config?.data || []),
8834
8843
  rules: null,
8835
8844
  layout: null,
8836
8845
  template: null,
@@ -8860,7 +8869,7 @@ var NativeComponents = (function (exports) {
8860
8869
  value.set(data);
8861
8870
  return;
8862
8871
  }
8863
- if(Validator.isObservable(data)) {
8872
+ if(Validator$1.isObservable(data)) {
8864
8873
  field.model(data);
8865
8874
  return;
8866
8875
  }
@@ -8924,11 +8933,11 @@ var NativeComponents = (function (exports) {
8924
8933
 
8925
8934
  const defaultItem = this.$description.defaultItem;
8926
8935
  let defaultItemData = (typeof defaultItem === 'function' ? defaultItem(...args) : defaultItem) || '';
8927
- defaultItemData = Validator.isObservable(defaultItemData)
8936
+ defaultItemData = Validator$1.isObservable(defaultItemData)
8928
8937
  ? defaultItemData
8929
- : Validator.isObject(defaultItemData)
8930
- ? Observable.init(defaultItemData)
8931
- : Observable(defaultItemData);
8938
+ : Validator$1.isObject(defaultItemData)
8939
+ ? Observable$1.init(defaultItemData)
8940
+ : Observable$1(defaultItemData);
8932
8941
 
8933
8942
  this.$items = this.$items || new WeakMap();
8934
8943
 
@@ -8972,7 +8981,7 @@ var NativeComponents = (function (exports) {
8972
8981
  };
8973
8982
 
8974
8983
  FieldCollection.prototype.model = function(newValue) {
8975
- if(Validator.isObservable(newValue)) {
8984
+ if(Validator$1.isObservable(newValue)) {
8976
8985
  this.$description.value?.cleanup?.();
8977
8986
  this.$description.value = newValue;
8978
8987
  return this;
@@ -8983,7 +8992,7 @@ var NativeComponents = (function (exports) {
8983
8992
 
8984
8993
  FieldCollection.prototype.value = function() {
8985
8994
  return this.$description.value.map((item) => {
8986
- return Validator.isObservable(item) ? item.val() : item;
8995
+ return Validator$1.isObservable(item) ? item.val() : item;
8987
8996
  });
8988
8997
  };
8989
8998
 
@@ -9346,7 +9355,7 @@ var NativeComponents = (function (exports) {
9346
9355
 
9347
9356
  ListItem.prototype.selectable = function() {
9348
9357
  this.$description.selectable = true;
9349
- if(Validator.isObservable(this.$description.selected)) {
9358
+ if(Validator$1.isObservable(this.$description.selected)) {
9350
9359
  return this;
9351
9360
  }
9352
9361
  this.$description.selected = $(false);
@@ -9354,7 +9363,7 @@ var NativeComponents = (function (exports) {
9354
9363
  };
9355
9364
 
9356
9365
  ListItem.prototype.selected = function(selected = true) {
9357
- if(Validator.isObservable(this.$description.selected)) {
9366
+ if(Validator$1.isObservable(this.$description.selected)) {
9358
9367
  this.$description.selected.set(selected);
9359
9368
  return this;
9360
9369
  }
@@ -10127,7 +10136,7 @@ var NativeComponents = (function (exports) {
10127
10136
 
10128
10137
  Progress.prototype.value = function() {
10129
10138
  const value = this.$description.value;
10130
- if(Validator.isObservable(value)) {
10139
+ if(Validator$1.isObservable(value)) {
10131
10140
  return value.val();
10132
10141
  }
10133
10142
  return value;
@@ -10135,7 +10144,7 @@ var NativeComponents = (function (exports) {
10135
10144
 
10136
10145
  Progress.prototype.setValue = function(newValue) {
10137
10146
  const value = this.$description.value;
10138
- if(Validator.isObservable(value)) {
10147
+ if(Validator$1.isObservable(value)) {
10139
10148
  value.set(newValue);
10140
10149
  return this;
10141
10150
  }
@@ -10796,7 +10805,7 @@ var NativeComponents = (function (exports) {
10796
10805
  };
10797
10806
 
10798
10807
  Splitter.prototype.panels = function(panels) {
10799
- if(Validator.isObservable(this.$description.panels)) {
10808
+ if(Validator$1.isObservable(this.$description.panels)) {
10800
10809
  this.$description.panels.set(panels);
10801
10810
  return this;
10802
10811
  }
@@ -10958,7 +10967,7 @@ var NativeComponents = (function (exports) {
10958
10967
  };
10959
10968
 
10960
10969
  Stepper.prototype.steps = function(steps) {
10961
- if(Validator.isObservable(steps)) {
10970
+ if(Validator$1.isObservable(steps)) {
10962
10971
  this.$description.steps = steps;
10963
10972
  return this;
10964
10973
  }
@@ -11410,9 +11419,9 @@ var NativeComponents = (function (exports) {
11410
11419
  ...configs
11411
11420
  });
11412
11421
 
11413
- this.$currentPage = Observable(1);
11414
- this.$selectedRows = Observable.array();
11415
- this.$expandedRows = Observable.array();
11422
+ this.$currentPage = Observable$1(1);
11423
+ this.$selectedRows = Observable$1.array();
11424
+ this.$expandedRows = Observable$1.array();
11416
11425
  }
11417
11426
 
11418
11427
  DataTable.defaultToolbarTemplate = null;