@ng-desktop/platform 0.0.0-stage → 0.4.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.
@@ -0,0 +1,12 @@
1
+ export { ensureNgNativeBridge, } from './bridge.js';
2
+ export { formatParsedStyleExtensions, parseRuntimeStyles, } from './css-style-parser.js';
3
+ export { createNativeDocument, NATIVE_BRIDGE, NATIVE_DEVTOOLS_HOOK, NATIVE_DOCUMENT, NATIVE_STORAGE, NativeAriaAnnouncer, NativeDevToolsHook, NativeStorage, provideNativeEcosystemCompat, } from './ecosystem-compat.js';
4
+ export { nativeImageLoader, provideNativeImageLoader } from './image-loader.js';
5
+ export { NATIVE_UI_DIRECTIVES, NativeContainerDirective, NativeElementDirective, NativeInputWidgetDirective, NativeListDirective, NativeMediaAndMeterDirective, NativePopoverDirective, NativeTextWidgetDirective, NativeWindowDirective, } from './native-directives.js';
6
+ export { getNativeActiveElement, NativeElementNode, setNativeActiveElement, } from './native-element.js';
7
+ export { HTML_TO_NATIVE_TAG, NativeRenderer2, NativeRendererFactory2, resolveNativeTag, } from './native-renderer.js';
8
+ export { NATIVE_WINDOW_NODE_ID, NativeTitleService, provideNativeTitle } from './native-title.js';
9
+ export { bootstrapNativeApplication, provideNativePlatform, } from './platform.js';
10
+ export { matchesKeyboardEvent, NativeKeyEventsPlugin, NativeSystemErrorHandler, provideNativeErrorHandler, provideNativeKeyEvents, provideSystemLocale, } from './system-providers.js';
11
+ export { NativeViewportScroller, provideNativeViewportScroller } from './viewport-scroller.js';
12
+ export { computeVirtualSliceRange, NativeVirtualListComponent, } from './virtual-list.component.js';
@@ -0,0 +1,178 @@
1
+ import * as i0 from "@angular/core";
2
+ export type NativeAttrInput = string | number | boolean | null | undefined;
3
+ export type NativeBoolInput = boolean | string | number | null | undefined;
4
+ export type NativeNumberInput = number | string | null | undefined;
5
+ /**
6
+ * Common layout, visibility, accessibility, and interaction directive covering all native desktop
7
+ * widget elements (`<ng-*>`, `<gtk-*>`, `<adw-*>`).
8
+ */
9
+ export declare class NativeElementDirective {
10
+ private readonly renderer;
11
+ private readonly el;
12
+ set hexpand(val: NativeBoolInput);
13
+ set vexpand(val: NativeBoolInput);
14
+ set halign(val: NativeAttrInput);
15
+ set valign(val: NativeAttrInput);
16
+ set width(val: NativeNumberInput);
17
+ set height(val: NativeNumberInput);
18
+ set minWidth(val: NativeNumberInput);
19
+ set minHeight(val: NativeNumberInput);
20
+ set margin(val: NativeNumberInput);
21
+ set marginTop(val: NativeNumberInput);
22
+ set marginBottom(val: NativeNumberInput);
23
+ set marginStart(val: NativeNumberInput);
24
+ set marginEnd(val: NativeNumberInput);
25
+ set visible(val: NativeBoolInput);
26
+ set sensitive(val: NativeBoolInput);
27
+ set disabled(val: NativeBoolInput);
28
+ set tooltip(val: NativeAttrInput);
29
+ set eventMask(val: NativeAttrInput);
30
+ set dropTarget(val: NativeBoolInput);
31
+ static ɵfac: i0.ɵɵFactoryDeclaration<NativeElementDirective, never>;
32
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NativeElementDirective, "ng-window,adw-window,ng-dialog,gtk-dialog,adw-dialog,ng-header-bar,adw-header-bar,gtk-header-bar,ng-scroll,gtk-scrolled-window,ng-box,gtk-box,ng-grid,gtk-grid,ng-separator,gtk-separator,ng-button,gtk-button,ng-label,gtk-label,ng-entry,gtk-entry,ng-switch,gtk-switch,ng-checkbox,ng-check,ng-check-button,gtk-check-button,ng-slider,ng-scale,gtk-scale,ng-select,ng-dropdown,gtk-dropdown,gtk-drop-down,ng-image,adw-image,gtk-picture,ng-picture,ng-level-bar,gtk-level-bar,ng-flow,ng-flow-box,gtk-flow-box,ng-spinner,gtk-spinner,ng-progress-bar,gtk-progress-bar,ng-paned,gtk-paned,ng-stack,gtk-stack,adw-navigation-view,ng-expander,gtk-expander,ng-text-view,gtk-text-view,ng-password-entry,gtk-password-entry,ng-spin-button,gtk-spin-button,ng-search-entry,gtk-search-entry,ng-clamp,adw-clamp,ng-list,ng-table,gtk-list-box,gtk-list-view,ng-popover,gtk-popover,ng-menu,adw-entry-row,adw-password-entry-row,adw-switch-row,adw-combo-row,adw-spin-row", never, { "hexpand": { "alias": "hexpand"; "required": false; }; "vexpand": { "alias": "vexpand"; "required": false; }; "halign": { "alias": "halign"; "required": false; }; "valign": { "alias": "valign"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "minWidth": { "alias": "min-width"; "required": false; }; "minHeight": { "alias": "min-height"; "required": false; }; "margin": { "alias": "margin"; "required": false; }; "marginTop": { "alias": "margin-top"; "required": false; }; "marginBottom": { "alias": "margin-bottom"; "required": false; }; "marginStart": { "alias": "margin-start"; "required": false; }; "marginEnd": { "alias": "margin-end"; "required": false; }; "visible": { "alias": "visible"; "required": false; }; "sensitive": { "alias": "sensitive"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "eventMask": { "alias": "event-mask"; "required": false; }; "dropTarget": { "alias": "drop-target"; "required": false; }; }, {}, never, never, true, never>;
33
+ }
34
+ /**
35
+ * Typed directive for top-level native windows, dialogs, and header bars (`<ng-window>`,
36
+ * `<ng-dialog>`, `<ng-header-bar>`).
37
+ */
38
+ export declare class NativeWindowDirective {
39
+ private readonly renderer;
40
+ private readonly el;
41
+ set title(val: NativeAttrInput);
42
+ set subtitle(val: NativeAttrInput);
43
+ set showTitleButtons(val: NativeBoolInput);
44
+ set icon(val: NativeAttrInput);
45
+ set resizable(val: NativeBoolInput);
46
+ set decorated(val: NativeBoolInput);
47
+ set modal(val: NativeBoolInput);
48
+ set transientForAttr(val: NativeAttrInput);
49
+ set transientFor(val: NativeAttrInput);
50
+ set preventClose(val: NativeBoolInput);
51
+ set preventCloseAttr(val: NativeBoolInput);
52
+ static ɵfac: i0.ɵɵFactoryDeclaration<NativeWindowDirective, never>;
53
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NativeWindowDirective, "ng-window,adw-window,ng-dialog,gtk-dialog,adw-dialog,ng-header-bar,adw-header-bar,gtk-header-bar", never, { "title": { "alias": "title"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; "showTitleButtons": { "alias": "show-title-buttons"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "resizable": { "alias": "resizable"; "required": false; }; "decorated": { "alias": "decorated"; "required": false; }; "modal": { "alias": "modal"; "required": false; }; "transientForAttr": { "alias": "transient-for"; "required": false; }; "transientFor": { "alias": "transientFor"; "required": false; }; "preventClose": { "alias": "preventClose"; "required": false; }; "preventCloseAttr": { "alias": "prevent-close"; "required": false; }; }, {}, never, never, true, never>;
54
+ }
55
+ /**
56
+ * Typed directive for native layout containers, grids, flow boxes, split panes, stacks, clamps,
57
+ * scroll viewports, separators, and expanders.
58
+ */
59
+ export declare class NativeContainerDirective {
60
+ private readonly renderer;
61
+ private readonly el;
62
+ set orientation(val: NativeAttrInput);
63
+ set spacing(val: NativeNumberInput);
64
+ set gap(val: NativeNumberInput);
65
+ set rowSpacing(val: NativeNumberInput);
66
+ set columnSpacing(val: NativeNumberInput);
67
+ set minChildren(val: NativeNumberInput);
68
+ set maxChildren(val: NativeNumberInput);
69
+ set minPerRow(val: NativeNumberInput);
70
+ set maxPerRow(val: NativeNumberInput);
71
+ set homogeneous(val: NativeBoolInput);
72
+ set position(val: NativeNumberInput);
73
+ set visibleChild(val: NativeAttrInput);
74
+ set activePage(val: NativeAttrInput);
75
+ set transition(val: NativeAttrInput);
76
+ set transitionType(val: NativeAttrInput);
77
+ set label(val: NativeAttrInput);
78
+ set title(val: NativeAttrInput);
79
+ set expanded(val: NativeBoolInput);
80
+ set open(val: NativeBoolInput);
81
+ set maxSize(val: NativeNumberInput);
82
+ set maximumSize(val: NativeNumberInput);
83
+ set scrollTo(val: NativeAttrInput);
84
+ set scrollAnchor(val: NativeAttrInput);
85
+ static ɵfac: i0.ɵɵFactoryDeclaration<NativeContainerDirective, never>;
86
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NativeContainerDirective, "ng-box,gtk-box,ng-grid,gtk-grid,ng-flow,ng-flow-box,gtk-flow-box,ng-paned,gtk-paned,ng-scroll,gtk-scrolled-window,ng-stack,gtk-stack,adw-navigation-view,ng-expander,gtk-expander,ng-clamp,adw-clamp,ng-separator,gtk-separator", never, { "orientation": { "alias": "orientation"; "required": false; }; "spacing": { "alias": "spacing"; "required": false; }; "gap": { "alias": "gap"; "required": false; }; "rowSpacing": { "alias": "row-spacing"; "required": false; }; "columnSpacing": { "alias": "column-spacing"; "required": false; }; "minChildren": { "alias": "min-children"; "required": false; }; "maxChildren": { "alias": "max-children"; "required": false; }; "minPerRow": { "alias": "min-per-row"; "required": false; }; "maxPerRow": { "alias": "max-per-row"; "required": false; }; "homogeneous": { "alias": "homogeneous"; "required": false; }; "position": { "alias": "position"; "required": false; }; "visibleChild": { "alias": "visible-child"; "required": false; }; "activePage": { "alias": "active-page"; "required": false; }; "transition": { "alias": "transition"; "required": false; }; "transitionType": { "alias": "transition-type"; "required": false; }; "label": { "alias": "label"; "required": false; }; "title": { "alias": "title"; "required": false; }; "expanded": { "alias": "expanded"; "required": false; }; "open": { "alias": "open"; "required": false; }; "maxSize": { "alias": "max-size"; "required": false; }; "maximumSize": { "alias": "maximum-size"; "required": false; }; "scrollTo": { "alias": "scroll-to"; "required": false; }; "scrollAnchor": { "alias": "scroll-anchor"; "required": false; }; }, {}, never, never, true, never>;
87
+ }
88
+ /**
89
+ * Typed directive for native labels and action buttons (`<ng-label>`, `<ng-button>`).
90
+ */
91
+ export declare class NativeTextWidgetDirective {
92
+ private readonly renderer;
93
+ private readonly el;
94
+ set label(val: NativeAttrInput);
95
+ set text(val: NativeAttrInput);
96
+ set wrap(val: NativeBoolInput);
97
+ set selectable(val: NativeBoolInput);
98
+ set ellipsize(val: NativeAttrInput);
99
+ static ɵfac: i0.ɵɵFactoryDeclaration<NativeTextWidgetDirective, never>;
100
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NativeTextWidgetDirective, "ng-button,gtk-button,ng-label,gtk-label", never, { "label": { "alias": "label"; "required": false; }; "text": { "alias": "text"; "required": false; }; "wrap": { "alias": "wrap"; "required": false; }; "selectable": { "alias": "selectable"; "required": false; }; "ellipsize": { "alias": "ellipsize"; "required": false; }; }, {}, never, never, true, never>;
101
+ }
102
+ /**
103
+ * Typed directive for native images, level bars, progress bars, and spinners.
104
+ */
105
+ export declare class NativeMediaAndMeterDirective {
106
+ private readonly renderer;
107
+ private readonly el;
108
+ set src(val: NativeAttrInput);
109
+ set ngSrc(val: NativeAttrInput);
110
+ set alt(val: NativeAttrInput);
111
+ set value(val: NativeNumberInput);
112
+ set min(val: NativeNumberInput);
113
+ set max(val: NativeNumberInput);
114
+ set indeterminate(val: NativeBoolInput);
115
+ set active(val: NativeBoolInput);
116
+ set spinning(val: NativeBoolInput);
117
+ static ɵfac: i0.ɵɵFactoryDeclaration<NativeMediaAndMeterDirective, never>;
118
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NativeMediaAndMeterDirective, "ng-image,adw-image,gtk-picture,ng-picture,ng-level-bar,gtk-level-bar,ng-progress-bar,gtk-progress-bar,ng-spinner,gtk-spinner", never, { "src": { "alias": "src"; "required": false; }; "ngSrc": { "alias": "ngSrc"; "required": false; }; "alt": { "alias": "alt"; "required": false; }; "value": { "alias": "value"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "indeterminate": { "alias": "indeterminate"; "required": false; }; "active": { "alias": "active"; "required": false; }; "spinning": { "alias": "spinning"; "required": false; }; }, {}, never, never, true, never>;
119
+ }
120
+ /**
121
+ * Typed directive for native text inputs, switches, checkboxes, sliders, dropdowns, and spin buttons.
122
+ */
123
+ export declare class NativeInputWidgetDirective {
124
+ private readonly renderer;
125
+ private readonly el;
126
+ set placeholder(val: NativeAttrInput);
127
+ set value(val: NativeAttrInput);
128
+ set text(val: NativeAttrInput);
129
+ set active(val: NativeBoolInput);
130
+ set checked(val: NativeBoolInput);
131
+ set label(val: NativeAttrInput);
132
+ set min(val: NativeNumberInput);
133
+ set max(val: NativeNumberInput);
134
+ set step(val: NativeNumberInput);
135
+ set options(val: NativeAttrInput);
136
+ set selected(val: NativeNumberInput);
137
+ set editable(val: NativeBoolInput);
138
+ set monospace(val: NativeBoolInput);
139
+ set showPeekIcon(val: NativeBoolInput);
140
+ set peek(val: NativeBoolInput);
141
+ static ɵfac: i0.ɵɵFactoryDeclaration<NativeInputWidgetDirective, never>;
142
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NativeInputWidgetDirective, "ng-entry,gtk-entry,ng-search-entry,gtk-search-entry,ng-password-entry,gtk-password-entry,ng-text-view,gtk-text-view,ng-switch,gtk-switch,ng-checkbox,ng-check,ng-check-button,gtk-check-button,ng-slider,ng-scale,gtk-scale,ng-spin-button,gtk-spin-button,ng-select,ng-dropdown,gtk-dropdown,gtk-drop-down,adw-entry-row,adw-password-entry-row,adw-switch-row,adw-combo-row,adw-spin-row", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "value": { "alias": "value"; "required": false; }; "text": { "alias": "text"; "required": false; }; "active": { "alias": "active"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "label": { "alias": "label"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "step": { "alias": "step"; "required": false; }; "options": { "alias": "options"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "editable": { "alias": "editable"; "required": false; }; "monospace": { "alias": "monospace"; "required": false; }; "showPeekIcon": { "alias": "show-peek-icon"; "required": false; }; "peek": { "alias": "peek"; "required": false; }; }, {}, never, never, true, never>;
143
+ }
144
+ /**
145
+ * Typed directive for native virtualized lists and tables (`<ng-list>`, `<ng-table>`).
146
+ */
147
+ export declare class NativeListDirective {
148
+ private readonly renderer;
149
+ private readonly el;
150
+ set selectionModeAttr(val: NativeAttrInput);
151
+ set selectionMode(val: NativeAttrInput);
152
+ set showSeparatorsAttr(val: NativeBoolInput);
153
+ set showSeparators(val: NativeBoolInput);
154
+ set separators(val: NativeBoolInput);
155
+ static ɵfac: i0.ɵɵFactoryDeclaration<NativeListDirective, never>;
156
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NativeListDirective, "ng-list,ng-table,gtk-list-box,gtk-list-view", never, { "selectionModeAttr": { "alias": "selection-mode"; "required": false; }; "selectionMode": { "alias": "selectionMode"; "required": false; }; "showSeparatorsAttr": { "alias": "show-separators"; "required": false; }; "showSeparators": { "alias": "showSeparators"; "required": false; }; "separators": { "alias": "separators"; "required": false; }; }, {}, never, never, true, never>;
157
+ }
158
+ /**
159
+ * Typed directive for native anchored popovers and context menus (`<ng-popover>`, `<ng-menu>`).
160
+ */
161
+ export declare class NativePopoverDirective {
162
+ private readonly renderer;
163
+ private readonly el;
164
+ set open(val: NativeBoolInput);
165
+ set position(val: NativeAttrInput);
166
+ set placement(val: NativeAttrInput);
167
+ set autohide(val: NativeBoolInput);
168
+ set hasArrowAttr(val: NativeBoolInput);
169
+ set hasArrow(val: NativeBoolInput);
170
+ set anchor(val: NativeAttrInput);
171
+ static ɵfac: i0.ɵɵFactoryDeclaration<NativePopoverDirective, never>;
172
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NativePopoverDirective, "ng-popover,gtk-popover,ng-menu", never, { "open": { "alias": "open"; "required": false; }; "position": { "alias": "position"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "autohide": { "alias": "autohide"; "required": false; }; "hasArrowAttr": { "alias": "has-arrow"; "required": false; }; "hasArrow": { "alias": "hasArrow"; "required": false; }; "anchor": { "alias": "anchor"; "required": false; }; }, {}, never, never, true, never>;
173
+ }
174
+ /**
175
+ * Convenience directive bundle enabling typed bindings on `<ng-*>`, `<gtk-*>`, and `<adw-*>` tags
176
+ * in standalone Angular components without `CUSTOM_ELEMENTS_SCHEMA`.
177
+ */
178
+ export declare const NATIVE_UI_DIRECTIVES: readonly [typeof NativeElementDirective, typeof NativeWindowDirective, typeof NativeContainerDirective, typeof NativeTextWidgetDirective, typeof NativeMediaAndMeterDirective, typeof NativeInputWidgetDirective, typeof NativeListDirective, typeof NativePopoverDirective];