@nativescript-community/ui-appbar 1.0.3 → 1.1.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/svelte/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import { ActionBarElement, PageElement, registerElement, registerNativeViewElement } from '@nativescript-community/svelte-native/dom';
2
- import { AppBar, AppBarItem, AppPage, AppPageOverlay, AppPageSearchContent } from '../index';
2
+ import { NavigationButton } from '@nativescript/core';
3
+ import { AppBar, AppBarBottomView, AppBarItem, AppBarSearchField, AppPage, AppPageOverlay, AppPageSearchContent } from '../index';
3
4
  /** svelte-native `navigate` needs a PageElement: this one wraps an AppPage instead of the core Page */
4
5
  class AppPageElement extends PageElement {
5
6
  constructor() {
@@ -18,12 +19,15 @@ class AppBarElement extends ActionBarElement {
18
19
  this._nativeElement = bar;
19
20
  }
20
21
  }
21
- /** registers `<appPage>` and `<appBar>` */
22
+ /** registers `<appPage>`, `<appBar>`, `<appBarItem>`, `<appBarSearchField>`, `<appBarBottomView>` and `<navigationButton>` (not registered by svelte-native: only its `<actionBar>` does) */
22
23
  export function register() {
23
24
  registerElement('AppPage', () => new AppPageElement());
24
25
  registerElement('AppBar', () => new AppBarElement());
25
26
  registerNativeViewElement('AppPageSearchContent', () => AppPageSearchContent, 'searchContent');
26
27
  registerNativeViewElement('AppPageOverlay', () => AppPageOverlay, 'overlay');
28
+ registerNativeViewElement('NavigationButton', () => NavigationButton, 'navigationButton');
29
+ registerNativeViewElement('AppBarSearchField', () => AppBarSearchField, 'searchField');
30
+ registerNativeViewElement('AppBarBottomView', () => AppBarBottomView, 'bottomView');
27
31
  registerNativeViewElement('AppBarItem', () => AppBarItem, 'actionItems');
28
32
  }
29
33
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ui-appbar/svelte/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,WAAW,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