@ng-native/components 0.29.0 → 0.30.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/README.md +2 -2
- package/dist/activity-indicator.js +3 -3
- package/dist/animated-style.js +3 -3
- package/dist/animations-web.js +3 -3
- package/dist/animations.js +3 -3
- package/dist/content-container.js +3 -3
- package/dist/context-menu.js +3 -3
- package/dist/drag-and-drop.js +6 -6
- package/dist/gestures-web.js +6 -6
- package/dist/gestures.js +6 -6
- package/dist/gradient-text.d.ts +1 -1
- package/dist/gradient-text.js +4 -4
- package/dist/gradient-text.js.map +1 -1
- package/dist/image-background.js +3 -3
- package/dist/image.js +3 -3
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/input-accessory-view.js +3 -3
- package/dist/keyboard-avoiding-view.js +3 -3
- package/dist/keyboard-dock.js +15 -15
- package/dist/markdown-blocks.d.ts +2 -1
- package/dist/markdown-blocks.js +22 -18
- package/dist/markdown-blocks.js.map +1 -1
- package/dist/markdown-columns.js +3 -3
- package/dist/markdown-stream.js +8 -5
- package/dist/markdown-stream.js.map +1 -1
- package/dist/markdown.js +5 -5
- package/dist/markdown.js.map +1 -1
- package/dist/menu.js +12 -12
- package/dist/modal.js +8 -3
- package/dist/modal.js.map +1 -1
- package/dist/native-button.js +3 -3
- package/dist/native-gesture.js +3 -3
- package/dist/native-ref.js +3 -3
- package/dist/press-menu.d.ts +17 -8
- package/dist/press-menu.js +39 -18
- package/dist/press-menu.js.map +1 -1
- package/dist/pressable.js +12 -12
- package/dist/reanimated-web.js +6 -6
- package/dist/reanimated.js +6 -6
- package/dist/refresh-control.js +3 -3
- package/dist/safe-area-provider.js +3 -3
- package/dist/safe-area-view.js +3 -3
- package/dist/scroll-view-props.js +3 -3
- package/dist/scroll-view.js +3 -3
- package/dist/section-list.d.ts +4 -4
- package/dist/section-list.js +37 -34
- package/dist/section-list.js.map +1 -1
- package/dist/shortcut.js +3 -3
- package/dist/sidebar-item.js +3 -3
- package/dist/sidebar-section.d.ts +12 -5
- package/dist/sidebar-section.js +32 -12
- package/dist/sidebar-section.js.map +1 -1
- package/dist/sidebar.d.ts +11 -3
- package/dist/sidebar.js +16 -7
- package/dist/sidebar.js.map +1 -1
- package/dist/split-view.js +6 -6
- package/dist/stand-ins/animations.js +3 -3
- package/dist/switch.js +3 -3
- package/dist/template-slot.js +3 -3
- package/dist/text-input.js +3 -3
- package/dist/text.js +3 -3
- package/dist/touchable-opacity.js +3 -3
- package/dist/tray-icon.js +3 -3
- package/dist/view-base.d.ts +18 -2
- package/dist/view-base.js +42 -10
- package/dist/view-base.js.map +1 -1
- package/dist/view.js +3 -3
- package/dist/virtual-list-layout.d.ts +5 -0
- package/dist/virtual-list-layout.js.map +1 -1
- package/dist/virtual-list-num-columns.d.ts +8 -4
- package/dist/virtual-list-num-columns.js +13 -5
- package/dist/virtual-list-num-columns.js.map +1 -1
- package/dist/virtual-list-sticky-level.js +3 -3
- package/dist/virtual-list.d.ts +48 -5
- package/dist/virtual-list.js +206 -46
- package/dist/virtual-list.js.map +1 -1
- package/dist/visual-effect.d.ts +37 -0
- package/dist/visual-effect.js +60 -0
- package/dist/visual-effect.js.map +1 -0
- package/dist/worklet-scroll.js +3 -3
- package/dist/worklet-style.js +3 -3
- package/dist/written-props.js +7 -0
- package/dist/written-props.js.map +1 -1
- package/ios/NgNativeComponents.podspec +2 -2
- package/ios/NgNativeKeyboardFocus.h +21 -0
- package/ios/NgNativeKeyboardFocus.mm +28 -0
- package/ios/NgNativeKeyboardFocusModule.mm +203 -0
- package/ios/NgNativeMenus.mm +20 -0
- package/ios/NgNativePressMenu.h +13 -5
- package/ios/NgNativePressMenu.mm +36 -2
- package/ios/NgNativeViewBinder.h +5 -0
- package/ios/NgNativeViewBinder.mm +31 -4
- package/package.json +6 -6
package/dist/sidebar-section.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, computed, input,
|
|
1
|
+
import { Component, computed, input, model } from '@angular/core';
|
|
2
2
|
import { registerViewName } from '@ng-native/fabric';
|
|
3
3
|
import { Pressable } from "./pressable.js";
|
|
4
4
|
import { hostDraws } from "./split-view.js";
|
|
@@ -18,30 +18,49 @@ registerViewName('sidebar-section', {
|
|
|
18
18
|
/**
|
|
19
19
|
* A group of `<sidebar-item>`s with an optional `title`. A `collapsible` one shows and hides its
|
|
20
20
|
* items from its title: on macOS with the source list's own disclosure, drawn by a press on the
|
|
21
|
-
* title elsewhere.
|
|
21
|
+
* title elsewhere. `[(collapsed)]` starts it folded, folds it from code and hears the user fold or
|
|
22
|
+
* open it. Selection survives the section collapsing.
|
|
22
23
|
*/
|
|
23
24
|
export class SidebarSection extends ViewBase {
|
|
24
25
|
/** Whether this section is drawn here rather than by the desktop host. */
|
|
25
26
|
drawn = !hostDraws('sidebar-section');
|
|
26
|
-
/** Drawn, whether the items show: a collapsible section's title toggles it. */
|
|
27
|
-
expanded = signal(true, /* @ts-ignore */
|
|
28
|
-
...(ngDevMode ? [{ debugName: "expanded" }] : /* istanbul ignore next */ []));
|
|
29
27
|
/** The heading over the section's items. None gives an untitled group. */
|
|
30
28
|
title = input(/* @ts-ignore */
|
|
31
29
|
...(ngDevMode ? [undefined, { debugName: "title" }] : /* istanbul ignore next */ []));
|
|
32
30
|
/** Whether the title shows and hides the section's items. */
|
|
33
31
|
collapsible = input(false, { ...(ngDevMode ? { debugName: "collapsible" } : /* istanbul ignore next */ {}), transform: optionalBoolean });
|
|
32
|
+
/** Whether a collapsible section's items are folded away. Kept in step with the user's folds. */
|
|
33
|
+
collapsed = model(false, /* @ts-ignore */
|
|
34
|
+
...(ngDevMode ? [{ debugName: "collapsed" }] : /* istanbul ignore next */ []));
|
|
35
|
+
stopCollapsed = null;
|
|
34
36
|
/** Whether the items show: always, unless a title that can show them again hid them. */
|
|
35
|
-
shown = computed(() => !this.drawn || this.
|
|
37
|
+
shown = computed(() => !this.drawn || !this.collapsed() || !(this.collapsible() && this.title()), /* @ts-ignore */
|
|
36
38
|
...(ngDevMode ? [{ debugName: "shown" }] : /* istanbul ignore next */ []));
|
|
37
|
-
|
|
38
|
-
|
|
39
|
+
ngOnInit() {
|
|
40
|
+
super.ngOnInit();
|
|
41
|
+
if (this.drawn || this.stopCollapsed)
|
|
42
|
+
return;
|
|
43
|
+
this.stopCollapsed = this.engine.setEventListener(this.node, 'topSidebarSectionCollapse', (event) => this.hearFold(event));
|
|
44
|
+
}
|
|
45
|
+
ngOnDestroy() {
|
|
46
|
+
this.stopCollapsed?.();
|
|
47
|
+
}
|
|
48
|
+
/** The host's report of the user folding or opening this section. */
|
|
49
|
+
hearFold(event) {
|
|
50
|
+
const { target, nativeEvent } = event;
|
|
51
|
+
if (target !== this.node)
|
|
52
|
+
return;
|
|
53
|
+
if (typeof nativeEvent?.collapsed === 'boolean')
|
|
54
|
+
this.collapsed.set(nativeEvent.collapsed);
|
|
55
|
+
}
|
|
56
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: SidebarSection, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
57
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: SidebarSection, isStandalone: true, selector: "sidebar-section", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, collapsible: { classPropertyName: "collapsible", publicName: "collapsible", isSignal: true, isRequired: false, transformFunction: null }, collapsed: { classPropertyName: "collapsed", publicName: "collapsed", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { collapsed: "collapsedChange" }, host: { properties: { "title": "drawn ? undefined : title()", "collapsible": "drawn ? undefined : collapsible()", "collapsed": "drawn ? undefined : collapsed()" } }, usesInheritance: true, ngImport: i0, template: `
|
|
39
58
|
@if (drawn && title()) {
|
|
40
59
|
<pressable
|
|
41
60
|
class="sidebar-section-title"
|
|
42
61
|
accessibilityRole="header"
|
|
43
62
|
[disabled]="!collapsible()"
|
|
44
|
-
(press)="
|
|
63
|
+
(press)="collapsed.set(!collapsed())"
|
|
45
64
|
>
|
|
46
65
|
<text>{{ title() }}</text>
|
|
47
66
|
</pressable>
|
|
@@ -51,7 +70,7 @@ export class SidebarSection extends ViewBase {
|
|
|
51
70
|
}
|
|
52
71
|
`, isInline: true, styles: ["\n .sidebar-section-title {\n padding: 8px 12px 4px;\n opacity: 0.6;\n }\n "], dependencies: [{ kind: "directive", type: Pressable, selector: "pressable", exportAs: ["pressable"] }, { kind: "directive", type: Text, selector: "text", inputs: ["numberOfLines", "ellipsizeMode", "selectable", "selectionColor", "allowFontScaling", "maxFontSizeMultiplier", "dynamicTypeRamp", "adjustsFontSizeToFit", "minimumFontScale", "lineBreakStrategyIOS", "textBreakStrategy", "dataDetectorType", "android_hyphenationFrequency", "pressable", "suppressHighlighting"], exportAs: ["text"] }] });
|
|
53
72
|
}
|
|
54
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
73
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: SidebarSection, decorators: [{
|
|
55
74
|
type: Component,
|
|
56
75
|
args: [{ selector: 'sidebar-section', imports: [Pressable, Text], template: `
|
|
57
76
|
@if (drawn && title()) {
|
|
@@ -59,7 +78,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.0", ngImpor
|
|
|
59
78
|
class="sidebar-section-title"
|
|
60
79
|
accessibilityRole="header"
|
|
61
80
|
[disabled]="!collapsible()"
|
|
62
|
-
(press)="
|
|
81
|
+
(press)="collapsed.set(!collapsed())"
|
|
63
82
|
>
|
|
64
83
|
<text>{{ title() }}</text>
|
|
65
84
|
</pressable>
|
|
@@ -70,6 +89,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.0", ngImpor
|
|
|
70
89
|
`, host: {
|
|
71
90
|
'[title]': 'drawn ? undefined : title()',
|
|
72
91
|
'[collapsible]': 'drawn ? undefined : collapsible()',
|
|
92
|
+
'[collapsed]': 'drawn ? undefined : collapsed()',
|
|
73
93
|
}, styles: ["\n .sidebar-section-title {\n padding: 8px 12px 4px;\n opacity: 0.6;\n }\n "] }]
|
|
74
|
-
}], propDecorators: { title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], collapsible: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapsible", required: false }] }] } });
|
|
94
|
+
}], propDecorators: { title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], collapsible: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapsible", required: false }] }], collapsed: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapsed", required: false }] }, { type: i0.Output, args: ["collapsedChange"] }] } });
|
|
75
95
|
//# sourceMappingURL=sidebar-section.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sidebar-section.js","sourceRoot":"","sources":["../src/sidebar-section.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"sidebar-section.js","sourceRoot":"","sources":["../src/sidebar-section.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAA+B,MAAM,eAAe,CAAC;AAC/F,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;;AAE1C;;;GAGG;AACH,gBAAgB,CAAC,iBAAiB,EAAE;IACl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,SAAS,KAAK,SAAS;YAAE,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;IAC7F,CAAC;uGAxCU,cAAc;2FAAd,cAAc,qsBA3Bf;;;;;;;;;;;;;;GAcT,sKAfS,SAAS,+EAAE,IAAI;;2FA4Bd,cAAc;kBA9B1B,SAAS;+BACE,iBAAiB,WAClB,CAAC,SAAS,EAAE,IAAI,CAAC,YAChB;;;;;;;;;;;;;;GAcT,QAOK;wBACJ,SAAS,EAAE,6BAA6B;wBACxC,eAAe,EAAE,mCAAmC;wBACpD,aAAa,EAAE,iCAAiC;qBACjD","sourcesContent":["import { Component, computed, input, model, type OnDestroy, type OnInit } from '@angular/core';\nimport { registerViewName } from '@ng-native/fabric';\nimport { Pressable } from './pressable.ts';\nimport { hostDraws } from './split-view.ts';\nimport { optionalBoolean } from './transforms.ts';\nimport { Text } from './text.ts';\nimport { ViewBase } from './view-base.ts';\n\n/**\n * On macOS a group of the sidebar's source list, a model object the desktop host reads its rows\n * from. Neighbouring sections in one parent are one NSOutlineView. Elsewhere a view, drawn here.\n */\nregisterViewName('sidebar-section', {\n ios: 'View',\n android: 'View',\n macos: 'NgNativeSidebarSection',\n});\n\n/**\n * A group of `<sidebar-item>`s with an optional `title`. A `collapsible` one shows and hides its\n * items from its title: on macOS with the source list's own disclosure, drawn by a press on the\n * title elsewhere. `[(collapsed)]` starts it folded, folds it from code and hears the user fold or\n * open it. Selection survives the section collapsing.\n */\n@Component({\n selector: 'sidebar-section',\n imports: [Pressable, Text],\n template: `\n @if (drawn && title()) {\n <pressable\n class=\"sidebar-section-title\"\n accessibilityRole=\"header\"\n [disabled]=\"!collapsible()\"\n (press)=\"collapsed.set(!collapsed())\"\n >\n <text>{{ title() }}</text>\n </pressable>\n }\n @if (shown()) {\n <ng-content />\n }\n `,\n styles: `\n .sidebar-section-title {\n padding: 8px 12px 4px;\n opacity: 0.6;\n }\n `,\n host: {\n '[title]': 'drawn ? undefined : title()',\n '[collapsible]': 'drawn ? undefined : collapsible()',\n '[collapsed]': 'drawn ? undefined : collapsed()',\n },\n})\nexport class SidebarSection extends ViewBase implements OnInit, OnDestroy {\n /** Whether this section is drawn here rather than by the desktop host. */\n protected readonly drawn = !hostDraws('sidebar-section');\n\n /** The heading over the section's items. None gives an untitled group. */\n readonly title = input<string>();\n /** Whether the title shows and hides the section's items. */\n readonly collapsible = input(false, { transform: optionalBoolean });\n /** Whether a collapsible section's items are folded away. Kept in step with the user's folds. */\n readonly collapsed = model(false);\n\n private stopCollapsed: (() => void) | null = null;\n\n /** Whether the items show: always, unless a title that can show them again hid them. */\n protected readonly shown = computed(\n () => !this.drawn || !this.collapsed() || !(this.collapsible() && this.title()),\n );\n\n override ngOnInit(): void {\n super.ngOnInit();\n if (this.drawn || this.stopCollapsed) return;\n this.stopCollapsed = this.engine.setEventListener(\n this.node,\n 'topSidebarSectionCollapse',\n (event) => this.hearFold(event),\n );\n }\n\n ngOnDestroy(): void {\n this.stopCollapsed?.();\n }\n\n /** The host's report of the user folding or opening this section. */\n private hearFold(event: unknown): void {\n const { target, nativeEvent } = event as {\n target?: unknown;\n nativeEvent?: { collapsed?: unknown };\n };\n if (target !== this.node) return;\n if (typeof nativeEvent?.collapsed === 'boolean') this.collapsed.set(nativeEvent.collapsed);\n }\n}\n"]}
|
package/dist/sidebar.d.ts
CHANGED
|
@@ -15,8 +15,10 @@ export interface SidebarRow {
|
|
|
15
15
|
* `[(collapsed)]` follows the title bar's sidebar button, View > Show Sidebar and a drag that shuts
|
|
16
16
|
* it, on macOS, and the sidebar button and swipe of a UISplitViewController on an iPad. `minWidth`
|
|
17
17
|
* and `maxWidth` bound a drag of the divider on macOS and the sidebar column's width on an iPad,
|
|
18
|
-
* and `autosave` names where macOS keeps the width and collapsed state across launches.
|
|
19
|
-
* the
|
|
18
|
+
* and `autosave` names where macOS keeps the width and collapsed state across launches.
|
|
19
|
+
* `[toggleButton]="false"` leaves the sidebar button out of the window's toolbar on macOS and its
|
|
20
|
+
* header bar on Linux, for a sidebar that draws its own. Drawn, a collapsed sidebar is hidden, the
|
|
21
|
+
* widths bound its style, and `autosave` and `toggleButton` are ignored.
|
|
20
22
|
*/
|
|
21
23
|
export declare class Sidebar extends ViewBase implements OnInit, OnDestroy {
|
|
22
24
|
protected readonly split: SplitView | null;
|
|
@@ -30,6 +32,12 @@ export declare class Sidebar extends ViewBase implements OnInit, OnDestroy {
|
|
|
30
32
|
readonly maxWidth: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
|
|
31
33
|
/** macOS: the name the width and collapsed state are kept under across launches. */
|
|
32
34
|
readonly autosave: import("@angular/core").InputSignal<string | undefined>;
|
|
35
|
+
/**
|
|
36
|
+
* macOS and Linux: whether the window's toolbar or header bar shows its sidebar button. Turn it
|
|
37
|
+
* off for a sidebar that draws a button of its own; View > Show Sidebar, its shortcut and
|
|
38
|
+
* `[(collapsed)]` still work.
|
|
39
|
+
*/
|
|
40
|
+
readonly toggleButton: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
33
41
|
private readonly rows;
|
|
34
42
|
private stopCollapsed;
|
|
35
43
|
/** Drawn, hidden while collapsed beside the content, or while a stack shows the content. */
|
|
@@ -43,5 +51,5 @@ export declare class Sidebar extends ViewBase implements OnInit, OnDestroy {
|
|
|
43
51
|
/** A row was chosen: the sidebar selects one row at a time, so every other one is deselected. */
|
|
44
52
|
chose(row: SidebarRow): void;
|
|
45
53
|
static ɵfac: i0.ɵɵFactoryDeclaration<Sidebar, never>;
|
|
46
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Sidebar, "sidebar", never, { "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; "minWidth": { "alias": "minWidth"; "required": false; "isSignal": true; }; "maxWidth": { "alias": "maxWidth"; "required": false; "isSignal": true; }; "autosave": { "alias": "autosave"; "required": false; "isSignal": true; }; }, { "collapsed": "collapsedChange"; }, never, ["*"], true, never>;
|
|
54
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Sidebar, "sidebar", never, { "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; "minWidth": { "alias": "minWidth"; "required": false; "isSignal": true; }; "maxWidth": { "alias": "maxWidth"; "required": false; "isSignal": true; }; "autosave": { "alias": "autosave"; "required": false; "isSignal": true; }; "toggleButton": { "alias": "toggleButton"; "required": false; "isSignal": true; }; }, { "collapsed": "collapsedChange"; }, never, ["*"], true, never>;
|
|
47
55
|
}
|
package/dist/sidebar.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, computed, forwardRef, inject, input, model, } from '@angular/core';
|
|
1
|
+
import { Component, booleanAttribute, computed, forwardRef, inject, input, model, } from '@angular/core';
|
|
2
2
|
import { nativeSplitViews } from '@ng-native/device';
|
|
3
3
|
import { registerViewName } from '@ng-native/fabric';
|
|
4
4
|
import { optionalNumber } from "./transforms.js";
|
|
@@ -27,8 +27,10 @@ const DRAWN_WIDTH = 240;
|
|
|
27
27
|
* `[(collapsed)]` follows the title bar's sidebar button, View > Show Sidebar and a drag that shuts
|
|
28
28
|
* it, on macOS, and the sidebar button and swipe of a UISplitViewController on an iPad. `minWidth`
|
|
29
29
|
* and `maxWidth` bound a drag of the divider on macOS and the sidebar column's width on an iPad,
|
|
30
|
-
* and `autosave` names where macOS keeps the width and collapsed state across launches.
|
|
31
|
-
* the
|
|
30
|
+
* and `autosave` names where macOS keeps the width and collapsed state across launches.
|
|
31
|
+
* `[toggleButton]="false"` leaves the sidebar button out of the window's toolbar on macOS and its
|
|
32
|
+
* header bar on Linux, for a sidebar that draws its own. Drawn, a collapsed sidebar is hidden, the
|
|
33
|
+
* widths bound its style, and `autosave` and `toggleButton` are ignored.
|
|
32
34
|
*/
|
|
33
35
|
export class Sidebar extends ViewBase {
|
|
34
36
|
split = inject(SplitView, { optional: true });
|
|
@@ -44,6 +46,12 @@ export class Sidebar extends ViewBase {
|
|
|
44
46
|
/** macOS: the name the width and collapsed state are kept under across launches. */
|
|
45
47
|
autosave = input(/* @ts-ignore */
|
|
46
48
|
...(ngDevMode ? [undefined, { debugName: "autosave" }] : /* istanbul ignore next */ []));
|
|
49
|
+
/**
|
|
50
|
+
* macOS and Linux: whether the window's toolbar or header bar shows its sidebar button. Turn it
|
|
51
|
+
* off for a sidebar that draws a button of its own; View > Show Sidebar, its shortcut and
|
|
52
|
+
* `[(collapsed)]` still work.
|
|
53
|
+
*/
|
|
54
|
+
toggleButton = input(true, { ...(ngDevMode ? { debugName: "toggleButton" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
47
55
|
rows = new Set();
|
|
48
56
|
stopCollapsed = null;
|
|
49
57
|
/** Drawn, hidden while collapsed beside the content, or while a stack shows the content. */
|
|
@@ -86,10 +94,10 @@ export class Sidebar extends ViewBase {
|
|
|
86
94
|
other.deselect();
|
|
87
95
|
this.split?.showContent();
|
|
88
96
|
}
|
|
89
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
90
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.
|
|
97
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: Sidebar, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
98
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.3.0", type: Sidebar, isStandalone: true, selector: "sidebar", inputs: { collapsed: { classPropertyName: "collapsed", publicName: "collapsed", isSignal: true, isRequired: false, transformFunction: null }, minWidth: { classPropertyName: "minWidth", publicName: "minWidth", isSignal: true, isRequired: false, transformFunction: null }, maxWidth: { classPropertyName: "maxWidth", publicName: "maxWidth", isSignal: true, isRequired: false, transformFunction: null }, autosave: { classPropertyName: "autosave", publicName: "autosave", isSignal: true, isRequired: false, transformFunction: null }, toggleButton: { classPropertyName: "toggleButton", publicName: "toggleButton", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { collapsed: "collapsedChange" }, host: { properties: { "collapsed": "native ? collapsed() : undefined", "paneMinWidth": "native ? minWidth() : undefined", "paneMaxWidth": "native ? maxWidth() : undefined", "autosaveName": "native ? autosave() : undefined", "toggleButton": "native ? toggleButton() : undefined", "style.display": "hidden() ? 'none' : undefined", "style.width": "drawnWidth()", "style.minWidth": "native ? undefined : minWidth()", "style.maxWidth": "native ? undefined : maxWidth()", "style.flex": "split?.stacked() ? 1 : undefined" } }, providers: [{ provide: SIDEBAR, useExisting: forwardRef(() => Sidebar) }], usesInheritance: true, ngImport: i0, template: '<ng-content />', isInline: true });
|
|
91
99
|
}
|
|
92
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
100
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: Sidebar, decorators: [{
|
|
93
101
|
type: Component,
|
|
94
102
|
args: [{
|
|
95
103
|
selector: 'sidebar',
|
|
@@ -100,6 +108,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.0", ngImpor
|
|
|
100
108
|
'[paneMinWidth]': 'native ? minWidth() : undefined',
|
|
101
109
|
'[paneMaxWidth]': 'native ? maxWidth() : undefined',
|
|
102
110
|
'[autosaveName]': 'native ? autosave() : undefined',
|
|
111
|
+
'[toggleButton]': 'native ? toggleButton() : undefined',
|
|
103
112
|
'[style.display]': "hidden() ? 'none' : undefined",
|
|
104
113
|
'[style.width]': 'drawnWidth()',
|
|
105
114
|
'[style.minWidth]': 'native ? undefined : minWidth()',
|
|
@@ -107,5 +116,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.0", ngImpor
|
|
|
107
116
|
'[style.flex]': 'split?.stacked() ? 1 : undefined',
|
|
108
117
|
},
|
|
109
118
|
}]
|
|
110
|
-
}], propDecorators: { collapsed: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapsed", required: false }] }, { type: i0.Output, args: ["collapsedChange"] }], minWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "minWidth", required: false }] }], maxWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxWidth", required: false }] }], autosave: [{ type: i0.Input, args: [{ isSignal: true, alias: "autosave", required: false }] }] } });
|
|
119
|
+
}], propDecorators: { collapsed: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapsed", required: false }] }, { type: i0.Output, args: ["collapsedChange"] }], minWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "minWidth", required: false }] }], maxWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxWidth", required: false }] }], autosave: [{ type: i0.Input, args: [{ isSignal: true, alias: "autosave", required: false }] }], toggleButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "toggleButton", required: false }] }] } });
|
|
111
120
|
//# sourceMappingURL=sidebar.js.map
|
package/dist/sidebar.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sidebar.js","sourceRoot":"","sources":["../src/sidebar.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,QAAQ,EACR,UAAU,EACV,MAAM,EACN,KAAK,EACL,KAAK,GAGN,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;;AAE1C;;;;GAIG;AACH,gBAAgB,CAAC,SAAS,EAAE;IAC1B,IAAI,GAAG;QACL,OAAO,gBAAgB,EAAE,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,MAAM,CAAC;IACzD,CAAC;IACD,OAAO,EAAE,MAAM;IACf,KAAK,EAAE,i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nD;iBACF","sourcesContent":["import {\n Component,\n booleanAttribute,\n computed,\n forwardRef,\n inject,\n input,\n model,\n type OnDestroy,\n type OnInit,\n} from '@angular/core';\nimport { nativeSplitViews } from '@ng-native/device';\nimport { registerViewName } from '@ng-native/fabric';\nimport { optionalNumber } from './transforms.ts';\nimport { SIDEBAR, SplitView, hostDraws } from './split-view.ts';\nimport { ViewBase } from './view-base.ts';\n\n/**\n * On macOS the sidebar pane of the desktop host's split view, and on an iPad the sidebar column of\n * a UISplitViewController: the host owns its width, and Yoga gets the pane's frame back from it.\n * Elsewhere a view, drawn here.\n */\nregisterViewName('sidebar', {\n get ios() {\n return nativeSplitViews() ? 'NgNativeSidebar' : 'View';\n },\n android: 'View',\n macos: 'NgNativeSidebar',\n});\n\n/** The width a drawn sidebar starts at, in points, where nothing styles one. */\nconst DRAWN_WIDTH = 240;\n\n/** A selectable row of the sidebar, as the sidebar sees it. */\nexport interface SidebarRow {\n /** Deselect, because another row of the same sidebar was chosen. */\n deselect(): void;\n}\n\n/**\n * The sidebar of a `<split-view>`. Its `<sidebar-section>`s and `<sidebar-item>`s are a source\n * list on macOS, an NSOutlineView; anything else in it (a search field, a footer) is drawn and\n * styled by CSS on every OS.\n *\n * `[(collapsed)]` follows the title bar's sidebar button, View > Show Sidebar and a drag that shuts\n * it, on macOS, and the sidebar button and swipe of a UISplitViewController on an iPad. `minWidth`\n * and `maxWidth` bound a drag of the divider on macOS and the sidebar column's width on an iPad,\n * and `autosave` names where macOS keeps the width and collapsed state across launches.\n * `[toggleButton]=\"false\"` leaves the sidebar button out of the window's toolbar on macOS and its\n * header bar on Linux, for a sidebar that draws its own. Drawn, a collapsed sidebar is hidden, the\n * widths bound its style, and `autosave` and `toggleButton` are ignored.\n */\n@Component({\n selector: 'sidebar',\n providers: [{ provide: SIDEBAR, useExisting: forwardRef(() => Sidebar) }],\n template: '<ng-content />',\n host: {\n '[collapsed]': 'native ? collapsed() : undefined',\n '[paneMinWidth]': 'native ? minWidth() : undefined',\n '[paneMaxWidth]': 'native ? maxWidth() : undefined',\n '[autosaveName]': 'native ? autosave() : undefined',\n '[toggleButton]': 'native ? toggleButton() : undefined',\n '[style.display]': \"hidden() ? 'none' : undefined\",\n '[style.width]': 'drawnWidth()',\n '[style.minWidth]': 'native ? undefined : minWidth()',\n '[style.maxWidth]': 'native ? undefined : maxWidth()',\n '[style.flex]': 'split?.stacked() ? 1 : undefined',\n },\n})\nexport class Sidebar extends ViewBase implements OnInit, OnDestroy {\n protected readonly split = inject(SplitView, { optional: true });\n /** Whether the host draws this sidebar: on macOS, and on an iPad. */\n protected readonly native = hostDraws('sidebar');\n\n /** Whether the sidebar is shut. Kept in step with the user's own toggles on macOS. */\n readonly collapsed = model(false);\n /** The narrowest a drag of the divider leaves it, in points. */\n readonly minWidth = input(undefined, { transform: optionalNumber });\n /** The widest a drag of the divider leaves it, in points. */\n readonly maxWidth = input(undefined, { transform: optionalNumber });\n /** macOS: the name the width and collapsed state are kept under across launches. */\n readonly autosave = input<string>();\n /**\n * macOS and Linux: whether the window's toolbar or header bar shows its sidebar button. Turn it\n * off for a sidebar that draws a button of its own; View > Show Sidebar, its shortcut and\n * `[(collapsed)]` still work.\n */\n readonly toggleButton = input(true, { transform: booleanAttribute });\n\n private readonly rows = new Set<SidebarRow>();\n private stopCollapsed: (() => void) | null = null;\n\n /** Drawn, hidden while collapsed beside the content, or while a stack shows the content. */\n protected readonly hidden = computed(() => {\n if (this.native) return false;\n if (this.split?.stacked()) return this.split.showing() === 'content';\n return this.collapsed();\n });\n\n /** Drawn beside the content, a column of a set width that the app's style can override. */\n protected readonly drawnWidth = computed(() =>\n this.native || this.split?.stacked() ? undefined : DRAWN_WIDTH,\n );\n\n override ngOnInit(): void {\n super.ngOnInit();\n if (!this.native || this.stopCollapsed) return;\n this.stopCollapsed = this.engine.setEventListener(this.node, 'topSidebarCollapse', (event) => {\n const { target, nativeEvent } = event as {\n target?: unknown;\n nativeEvent?: { collapsed?: unknown };\n };\n // A sidebar inside this one's content reports its own.\n if (target !== this.node) return;\n if (typeof nativeEvent?.collapsed === 'boolean') this.collapsed.set(nativeEvent.collapsed);\n });\n }\n\n ngOnDestroy(): void {\n this.stopCollapsed?.();\n }\n\n /** Called by a row of this sidebar as it is created; answers the call that takes it away. */\n addRow(row: SidebarRow): () => void {\n this.rows.add(row);\n return () => this.rows.delete(row);\n }\n\n /** A row was chosen: the sidebar selects one row at a time, so every other one is deselected. */\n chose(row: SidebarRow): void {\n for (const other of this.rows) if (other !== row) other.deselect();\n this.split?.showContent();\n }\n}\n"]}
|
package/dist/split-view.js
CHANGED
|
@@ -37,10 +37,10 @@ export const ANDROID_EXPANDED_WIDTH = 840;
|
|
|
37
37
|
/** The content pane: everything in a `<split-view>` but its `<sidebar>`. */
|
|
38
38
|
export class SplitViewContent extends ViewBase {
|
|
39
39
|
split = inject(SplitView);
|
|
40
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
41
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.
|
|
40
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: SplitViewContent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
41
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.3.0", type: SplitViewContent, isStandalone: true, selector: "split-view-content", host: { properties: { "style.display": "split.showing() === 'sidebar' ? 'none' : undefined", "contentStyle": "split.onDesktop ? split.contentStyle() : undefined" } }, usesInheritance: true, ngImport: i0, template: '<ng-content />', isInline: true, styles: [":host { flex: 1; }"] });
|
|
42
42
|
}
|
|
43
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
43
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: SplitViewContent, decorators: [{
|
|
44
44
|
type: Component,
|
|
45
45
|
args: [{ selector: 'split-view-content', template: '<ng-content />', host: {
|
|
46
46
|
'[style.display]': "split.showing() === 'sidebar' ? 'none' : undefined",
|
|
@@ -132,13 +132,13 @@ export class SplitView extends ViewBase {
|
|
|
132
132
|
this.top.set('sidebar');
|
|
133
133
|
return true;
|
|
134
134
|
}
|
|
135
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
136
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.
|
|
135
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: SplitView, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
136
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.3.0", type: SplitView, isStandalone: true, selector: "split-view", inputs: { contentStyle: { classPropertyName: "contentStyle", publicName: "contentStyle", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.flexDirection": "drawn && !stacked() ? 'row' : undefined" } }, queries: [{ propertyName: "sidebar", first: true, predicate: SIDEBAR, isSignal: true }], usesInheritance: true, ngImport: i0, template: `
|
|
137
137
|
<ng-content select="sidebar" />
|
|
138
138
|
<split-view-content><ng-content /></split-view-content>
|
|
139
139
|
`, isInline: true, styles: [":host { flex: 1; }"], dependencies: [{ kind: "component", type: SplitViewContent, selector: "split-view-content" }] });
|
|
140
140
|
}
|
|
141
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
141
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: SplitView, decorators: [{
|
|
142
142
|
type: Component,
|
|
143
143
|
args: [{ selector: 'split-view', imports: [SplitViewContent], template: `
|
|
144
144
|
<ng-content select="sidebar" />
|
|
@@ -23,10 +23,10 @@ export const Animated = {
|
|
|
23
23
|
delay: (_time) => graph.delay(0),
|
|
24
24
|
};
|
|
25
25
|
export class AnimatedStyle extends AnimatedStyleBase {
|
|
26
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
27
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.
|
|
26
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: AnimatedStyle, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
27
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.3.0", type: AnimatedStyle, isStandalone: true, selector: "[animatedStyle]", providers: [{ provide: ANIMATION, useValue: animationBackend }], usesInheritance: true, ngImport: i0 });
|
|
28
28
|
}
|
|
29
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: AnimatedStyle, decorators: [{
|
|
30
30
|
type: Directive,
|
|
31
31
|
args: [{
|
|
32
32
|
selector: '[animatedStyle]',
|
package/dist/switch.js
CHANGED
|
@@ -113,10 +113,10 @@ export class Switch extends ViewBase {
|
|
|
113
113
|
const command = nativePlatform() === 'android' ? 'setNativeValue' : 'setValue';
|
|
114
114
|
this.engine.dispatchCommand(this.node, command, [desired]);
|
|
115
115
|
}
|
|
116
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
117
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.
|
|
116
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: Switch, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
117
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.3.0", type: Switch, isStandalone: true, selector: "switch", inputs: { checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, controlSize: { classPropertyName: "controlSize", publicName: "controlSize", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, touched: { classPropertyName: "touched", publicName: "touched", isSignal: true, isRequired: false, transformFunction: null }, thumbColor: { classPropertyName: "thumbColor", publicName: "thumbColor", isSignal: true, isRequired: false, transformFunction: null }, trackColor: { classPropertyName: "trackColor", publicName: "trackColor", isSignal: true, isRequired: false, transformFunction: null }, iosBackgroundColor: { classPropertyName: "iosBackgroundColor", publicName: "ios_backgroundColor", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { checked: "checkedChange", touch: "touch" }, host: { listeners: { "change": "onNativeChange($event)" }, properties: { "accessibilityState": "accessibilityStateProp()", "value": "checked()", "controlSize": "controlSize()", "disabled": "disabled()", "attr.data-disabled": "disabled() ? '' : null", "attr.data-invalid": "invalid() ? '' : null", "attr.data-touched": "touched() ? '' : null", "enabled": "enabled()", "thumbTintColor": "thumbColor()", "tintColor": "trackColor()?.false", "trackColorForTrue": "trackColor()?.true", "trackColorForFalse": "trackColor()?.false", "trackTintColor": "checked() ? trackColor()?.true : trackColor()?.false", "style.backgroundColor": "iosBackgroundColor()", "style.borderRadius": "iosBackgroundColor() ? 16 : undefined" } }, usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
118
118
|
}
|
|
119
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
119
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: Switch, decorators: [{
|
|
120
120
|
type: Directive,
|
|
121
121
|
args: [{
|
|
122
122
|
selector: 'switch',
|
package/dist/template-slot.js
CHANGED
|
@@ -20,10 +20,10 @@ export class TemplateSlot {
|
|
|
20
20
|
this.container.clear();
|
|
21
21
|
this.view = this.container.createEmbeddedView(this.template(), { ...this.context() });
|
|
22
22
|
}
|
|
23
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
24
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.
|
|
23
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: TemplateSlot, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
24
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.3.0", type: TemplateSlot, isStandalone: true, selector: "[templateSlot]", inputs: { template: { classPropertyName: "template", publicName: "templateSlot", isSignal: true, isRequired: true, transformFunction: null }, context: { classPropertyName: "context", publicName: "templateSlotContext", isSignal: true, isRequired: true, transformFunction: null } }, usesOnChanges: true, ngImport: i0 });
|
|
25
25
|
}
|
|
26
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: TemplateSlot, decorators: [{
|
|
27
27
|
type: Directive,
|
|
28
28
|
args: [{ selector: '[templateSlot]' }]
|
|
29
29
|
}], propDecorators: { template: [{ type: i0.Input, args: [{ isSignal: true, alias: "templateSlot", required: true }] }], context: [{ type: i0.Input, args: [{ isSignal: true, alias: "templateSlotContext", required: true }] }] } });
|
package/dist/text-input.js
CHANGED
|
@@ -318,10 +318,10 @@ export class TextInput extends ViewBase {
|
|
|
318
318
|
this.lastSelection = { start: selection.start, end: selection.end };
|
|
319
319
|
this.selectionReports.update((n) => n + 1);
|
|
320
320
|
}
|
|
321
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
322
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.
|
|
321
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: TextInput, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
322
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.3.0", type: TextInput, isStandalone: true, selector: "text-input", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, touched: { classPropertyName: "touched", publicName: "touched", isSignal: true, isRequired: false, transformFunction: null }, multiline: { classPropertyName: "multiline", publicName: "multiline", isSignal: true, isRequired: false, transformFunction: null }, scrollEnabled: { classPropertyName: "scrollEnabled", publicName: "scrollEnabled", isSignal: true, isRequired: false, transformFunction: null }, editable: { classPropertyName: "editable", publicName: "editable", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, placeholderTextColor: { classPropertyName: "placeholderTextColor", publicName: "placeholderTextColor", isSignal: true, isRequired: false, transformFunction: null }, keyboardType: { classPropertyName: "keyboardType", publicName: "keyboardType", isSignal: true, isRequired: false, transformFunction: null }, returnKeyType: { classPropertyName: "returnKeyType", publicName: "returnKeyType", isSignal: true, isRequired: false, transformFunction: null }, submitBehavior: { classPropertyName: "submitBehavior", publicName: "submitBehavior", isSignal: true, isRequired: false, transformFunction: null }, secureTextEntry: { classPropertyName: "secureTextEntry", publicName: "secureTextEntry", isSignal: true, isRequired: false, transformFunction: null }, autoCapitalize: { classPropertyName: "autoCapitalize", publicName: "autoCapitalize", isSignal: true, isRequired: false, transformFunction: null }, autoCorrect: { classPropertyName: "autoCorrect", publicName: "autoCorrect", isSignal: true, isRequired: false, transformFunction: null }, autoFocus: { classPropertyName: "autoFocus", publicName: "autoFocus", isSignal: true, isRequired: false, transformFunction: null }, maxLength: { classPropertyName: "maxLength", publicName: "maxLength", isSignal: true, isRequired: false, transformFunction: null }, numberOfLines: { classPropertyName: "numberOfLines", publicName: "numberOfLines", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, selection: { classPropertyName: "selection", publicName: "selection", isSignal: true, isRequired: false, transformFunction: null }, selectionColor: { classPropertyName: "selectionColor", publicName: "selectionColor", isSignal: true, isRequired: false, transformFunction: null }, selectTextOnFocus: { classPropertyName: "selectTextOnFocus", publicName: "selectTextOnFocus", isSignal: true, isRequired: false, transformFunction: null }, caretHidden: { classPropertyName: "caretHidden", publicName: "caretHidden", isSignal: true, isRequired: false, transformFunction: null }, contextMenuHidden: { classPropertyName: "contextMenuHidden", publicName: "contextMenuHidden", isSignal: true, isRequired: false, transformFunction: null }, textAlign: { classPropertyName: "textAlign", publicName: "textAlign", isSignal: true, isRequired: false, transformFunction: null }, allowFontScaling: { classPropertyName: "allowFontScaling", publicName: "allowFontScaling", isSignal: true, isRequired: false, transformFunction: null }, maxFontSizeMultiplier: { classPropertyName: "maxFontSizeMultiplier", publicName: "maxFontSizeMultiplier", isSignal: true, isRequired: false, transformFunction: null }, inputAccessoryViewID: { classPropertyName: "inputAccessoryViewID", publicName: "inputAccessoryViewID", isSignal: true, isRequired: false, transformFunction: null }, clearButtonMode: { classPropertyName: "clearButtonMode", publicName: "clearButtonMode", isSignal: true, isRequired: false, transformFunction: null }, clearTextOnFocus: { classPropertyName: "clearTextOnFocus", publicName: "clearTextOnFocus", isSignal: true, isRequired: false, transformFunction: null }, enablesReturnKeyAutomatically: { classPropertyName: "enablesReturnKeyAutomatically", publicName: "enablesReturnKeyAutomatically", isSignal: true, isRequired: false, transformFunction: null }, keyboardAppearance: { classPropertyName: "keyboardAppearance", publicName: "keyboardAppearance", isSignal: true, isRequired: false, transformFunction: null }, passwordRules: { classPropertyName: "passwordRules", publicName: "passwordRules", isSignal: true, isRequired: false, transformFunction: null }, spellCheck: { classPropertyName: "spellCheck", publicName: "spellCheck", isSignal: true, isRequired: false, transformFunction: null }, smartInsertDelete: { classPropertyName: "smartInsertDelete", publicName: "smartInsertDelete", isSignal: true, isRequired: false, transformFunction: null }, smartQuotes: { classPropertyName: "smartQuotes", publicName: "smartQuotes", isSignal: true, isRequired: false, transformFunction: null }, dataDetectorTypes: { classPropertyName: "dataDetectorTypes", publicName: "dataDetectorTypes", isSignal: true, isRequired: false, transformFunction: null }, textContentType: { classPropertyName: "textContentType", publicName: "textContentType", isSignal: true, isRequired: false, transformFunction: null }, autoComplete: { classPropertyName: "autoComplete", publicName: "autoComplete", isSignal: true, isRequired: false, transformFunction: null }, underlineColorAndroid: { classPropertyName: "underlineColorAndroid", publicName: "underlineColorAndroid", isSignal: true, isRequired: false, transformFunction: null }, cursorColor: { classPropertyName: "cursorColor", publicName: "cursorColor", isSignal: true, isRequired: false, transformFunction: null }, selectionHandleColor: { classPropertyName: "selectionHandleColor", publicName: "selectionHandleColor", isSignal: true, isRequired: false, transformFunction: null }, textAlignVertical: { classPropertyName: "textAlignVertical", publicName: "textAlignVertical", isSignal: true, isRequired: false, transformFunction: null }, importantForAutofill: { classPropertyName: "importantForAutofill", publicName: "importantForAutofill", isSignal: true, isRequired: false, transformFunction: null }, showSoftInputOnFocus: { classPropertyName: "showSoftInputOnFocus", publicName: "showSoftInputOnFocus", isSignal: true, isRequired: false, transformFunction: null }, disableFullscreenUI: { classPropertyName: "disableFullscreenUI", publicName: "disableFullscreenUI", isSignal: true, isRequired: false, transformFunction: null }, inlineImageLeft: { classPropertyName: "inlineImageLeft", publicName: "inlineImageLeft", isSignal: true, isRequired: false, transformFunction: null }, inlineImagePadding: { classPropertyName: "inlineImagePadding", publicName: "inlineImagePadding", isSignal: true, isRequired: false, transformFunction: null }, textBreakStrategy: { classPropertyName: "textBreakStrategy", publicName: "textBreakStrategy", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", changeText: "changeText", touch: "touch" }, host: { listeners: { "blur": "touch.emit()", "focus": "onFocus()", "change": "onNativeChange($event)", "selectionChange": "onNativeSelectionChange($event)" }, properties: { "text": "value()", "latestEventCount": "eventCount()", "multiline": "multiline()", "scrollEnabled": "scrollEnabled()", "editable": "resolvedEditable()", "accessibilityState": "accessibilityStateProp()", "attr.data-disabled": "disabled() ? '' : null", "attr.data-invalid": "invalid() ? '' : null", "attr.data-touched": "touched() ? '' : null", "placeholder": "placeholder()", "placeholderTextColor": "placeholderTextColor()", "keyboardType": "keyboardType()", "returnKeyType": "returnKeyType()", "submitBehavior": "resolvedSubmitBehavior()", "secureTextEntry": "secureTextEntry()", "autoCapitalize": "autoCapitalize()", "autoCorrect": "autoCorrect()", "autoFocus": "autoFocus()", "maxLength": "maxLength()", "numberOfLines": "numberOfLines()", "rows": "rows()", "selection": "resolvedSelection()", "selectionColor": "selectionColor()", "selectTextOnFocus": "selectTextOnFocus()", "caretHidden": "caretHidden()", "contextMenuHidden": "contextMenuHidden()", "textAlign": "textAlign()", "allowFontScaling": "allowFontScaling()", "maxFontSizeMultiplier": "maxFontSizeMultiplier()", "inputAccessoryViewID": "inputAccessoryViewID()", "clearButtonMode": "clearButtonMode()", "clearTextOnFocus": "clearTextOnFocus()", "enablesReturnKeyAutomatically": "enablesReturnKeyAutomatically()", "keyboardAppearance": "keyboardAppearance()", "passwordRules": "passwordRules()", "spellCheck": "spellCheck()", "smartInsertDelete": "smartInsertDelete()", "smartQuotes": "smartQuotes()", "dataDetectorTypes": "dataDetectorTypes()", "textContentType": "textContentType()", "autoComplete": "autoComplete()", "underlineColorAndroid": "underlineColorAndroid()", "cursorColor": "resolvedCursorColor()", "selectionHandleColor": "resolvedSelectionHandleColor()", "textAlignVertical": "textAlignVertical()", "importantForAutofill": "importantForAutofill()", "showSoftInputOnFocus": "showSoftInputOnFocus()", "disableFullscreenUI": "disableFullscreenUI()", "inlineImageLeft": "inlineImageLeft()", "inlineImagePadding": "inlineImagePadding()", "textBreakStrategy": "textBreakStrategy()" } }, exportAs: ["textInput"], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
323
323
|
}
|
|
324
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
324
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: TextInput, decorators: [{
|
|
325
325
|
type: Directive,
|
|
326
326
|
args: [{
|
|
327
327
|
selector: 'text-input',
|
package/dist/text.js
CHANGED
|
@@ -123,10 +123,10 @@ export class Text extends TouchableBase {
|
|
|
123
123
|
measures() {
|
|
124
124
|
return this.pressable();
|
|
125
125
|
}
|
|
126
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
127
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.
|
|
126
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: Text, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
127
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.3.0", type: Text, isStandalone: true, selector: "text", inputs: { numberOfLines: { classPropertyName: "numberOfLines", publicName: "numberOfLines", isSignal: true, isRequired: false, transformFunction: null }, ellipsizeMode: { classPropertyName: "ellipsizeMode", publicName: "ellipsizeMode", isSignal: true, isRequired: false, transformFunction: null }, selectable: { classPropertyName: "selectable", publicName: "selectable", isSignal: true, isRequired: false, transformFunction: null }, selectionColor: { classPropertyName: "selectionColor", publicName: "selectionColor", isSignal: true, isRequired: false, transformFunction: null }, allowFontScaling: { classPropertyName: "allowFontScaling", publicName: "allowFontScaling", isSignal: true, isRequired: false, transformFunction: null }, maxFontSizeMultiplier: { classPropertyName: "maxFontSizeMultiplier", publicName: "maxFontSizeMultiplier", isSignal: true, isRequired: false, transformFunction: null }, dynamicTypeRamp: { classPropertyName: "dynamicTypeRamp", publicName: "dynamicTypeRamp", isSignal: true, isRequired: false, transformFunction: null }, adjustsFontSizeToFit: { classPropertyName: "adjustsFontSizeToFit", publicName: "adjustsFontSizeToFit", isSignal: true, isRequired: false, transformFunction: null }, minimumFontScale: { classPropertyName: "minimumFontScale", publicName: "minimumFontScale", isSignal: true, isRequired: false, transformFunction: null }, lineBreakStrategyIOS: { classPropertyName: "lineBreakStrategyIOS", publicName: "lineBreakStrategyIOS", isSignal: true, isRequired: false, transformFunction: null }, textBreakStrategy: { classPropertyName: "textBreakStrategy", publicName: "textBreakStrategy", isSignal: true, isRequired: false, transformFunction: null }, dataDetectorType: { classPropertyName: "dataDetectorType", publicName: "dataDetectorType", isSignal: true, isRequired: false, transformFunction: null }, hyphenationFrequency: { classPropertyName: "hyphenationFrequency", publicName: "android_hyphenationFrequency", isSignal: true, isRequired: false, transformFunction: null }, pressable: { classPropertyName: "pressable", publicName: "pressable", isSignal: true, isRequired: false, transformFunction: null }, suppressHighlighting: { classPropertyName: "suppressHighlighting", publicName: "suppressHighlighting", isSignal: true, isRequired: false, transformFunction: null } }, exportAs: ["text"], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
128
128
|
}
|
|
129
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
129
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: Text, decorators: [{
|
|
130
130
|
type: Directive,
|
|
131
131
|
args: [{
|
|
132
132
|
selector: 'text',
|
|
@@ -34,10 +34,10 @@ export class TouchableOpacity extends ControlBase {
|
|
|
34
34
|
}
|
|
35
35
|
/** The opacity while pressed. */
|
|
36
36
|
activeOpacity = input(0.2, { ...(ngDevMode ? { debugName: "activeOpacity" } : /* istanbul ignore next */ {}), transform: numberOr(0.2) });
|
|
37
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
38
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.
|
|
37
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: TouchableOpacity, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
38
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.3.0", type: TouchableOpacity, isStandalone: true, selector: "touchable-opacity", inputs: { activeOpacity: { classPropertyName: "activeOpacity", publicName: "activeOpacity", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.--touchable-active-opacity": "activeOpacity()", "class.pressed": "pressed()" } }, exportAs: ["touchableOpacity"], usesInheritance: true, ngImport: i0, template: `<ng-content />`, isInline: true, styles: ["\n :host {\n transition: opacity 250ms ease-in-out;\n }\n :host(.pressed) {\n opacity: var(--touchable-active-opacity, 0.2) !important;\n transition: opacity 150ms ease-in-out;\n }\n "] });
|
|
39
39
|
}
|
|
40
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
40
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: TouchableOpacity, decorators: [{
|
|
41
41
|
type: Component,
|
|
42
42
|
args: [{ selector: 'touchable-opacity', template: `<ng-content />`, exportAs: 'touchableOpacity', host: {
|
|
43
43
|
'[style.--touchable-active-opacity]': 'activeOpacity()',
|
package/dist/tray-icon.js
CHANGED
|
@@ -43,10 +43,10 @@ export class TrayIcon {
|
|
|
43
43
|
})));
|
|
44
44
|
inject(DestroyRef).onDestroy(stop);
|
|
45
45
|
}
|
|
46
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
47
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.
|
|
46
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: TrayIcon, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
47
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.3.0", type: TrayIcon, isStandalone: true, selector: "tray-icon", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, sfSymbol: { classPropertyName: "sfSymbol", publicName: "sfSymbol", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, image: { classPropertyName: "image", publicName: "image", isSignal: true, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { press: "press" }, host: { properties: { "style.display": "\"none\"" } }, providers: [{ provide: MENU_MODEL, useFactory: menuModelInTreeOrder }], ngImport: i0, template: '<ng-content />', isInline: true });
|
|
48
48
|
}
|
|
49
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
49
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: TrayIcon, decorators: [{
|
|
50
50
|
type: Component,
|
|
51
51
|
args: [{
|
|
52
52
|
selector: 'tray-icon',
|