@ng-desktop/platform 0.6.0 → 0.7.1

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.
@@ -1,4 +1,4 @@
1
- import { Directive, ElementRef, inject, Input, Renderer2 } from '@angular/core';
1
+ import { computed, Directive, effect, ElementRef, inject, input, Renderer2, } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  function getElementAttribute(el, name) {
4
4
  if (!el || typeof el !== 'object') {
@@ -72,674 +72,476 @@ function isTruthyDisabledInput(value) {
72
72
  }
73
73
  return Boolean(value);
74
74
  }
75
+ /**
76
+ * Synchronizes Signal `input()` values to the native renderer without clobbering attributes
77
+ * managed by static template attributes, text interpolation, or `[formField]` directives.
78
+ */
79
+ function bindSignalInputs(bindings) {
80
+ const renderer = inject(Renderer2);
81
+ const el = inject(ElementRef).nativeElement;
82
+ const boundKeys = new Set();
83
+ effect(() => {
84
+ for (const [name, source, asProp] of bindings) {
85
+ const value = source();
86
+ if (value === undefined) {
87
+ if (boundKeys.has(name)) {
88
+ if (asProp) {
89
+ syncNativeProp(renderer, el, name, null);
90
+ }
91
+ else {
92
+ syncNativeAttr(renderer, el, name, null);
93
+ }
94
+ }
95
+ continue;
96
+ }
97
+ boundKeys.add(name);
98
+ if (asProp) {
99
+ syncNativeProp(renderer, el, name, value);
100
+ }
101
+ else {
102
+ syncNativeAttr(renderer, el, name, value);
103
+ }
104
+ }
105
+ });
106
+ }
75
107
  /**
76
108
  * Common layout, visibility, accessibility, and interaction directive covering all native desktop
77
109
  * widget elements (`<ng-*>`, `<gtk-*>`, `<adw-*>`).
78
110
  */
79
111
  export class NativeElementDirective {
80
- renderer = inject(Renderer2);
81
- el = inject(ElementRef).nativeElement;
82
- set hexpand(val) {
83
- syncNativeAttr(this.renderer, this.el, 'hexpand', val);
84
- }
85
- set vexpand(val) {
86
- syncNativeAttr(this.renderer, this.el, 'vexpand', val);
87
- }
88
- set halign(val) {
89
- syncNativeAttr(this.renderer, this.el, 'halign', val);
90
- }
91
- set valign(val) {
92
- syncNativeAttr(this.renderer, this.el, 'valign', val);
93
- }
94
- set width(val) {
95
- syncNativeAttr(this.renderer, this.el, 'width', val);
96
- }
97
- set height(val) {
98
- syncNativeAttr(this.renderer, this.el, 'height', val);
99
- }
100
- set minWidth(val) {
101
- syncNativeAttr(this.renderer, this.el, 'min-width', val);
102
- }
103
- set minHeight(val) {
104
- syncNativeAttr(this.renderer, this.el, 'min-height', val);
105
- }
106
- set margin(val) {
107
- syncNativeAttr(this.renderer, this.el, 'margin', val);
108
- }
109
- set marginTop(val) {
110
- syncNativeAttr(this.renderer, this.el, 'margin-top', val);
111
- }
112
- set marginBottom(val) {
113
- syncNativeAttr(this.renderer, this.el, 'margin-bottom', val);
114
- }
115
- set marginStart(val) {
116
- syncNativeAttr(this.renderer, this.el, 'margin-start', val);
117
- }
118
- set marginEnd(val) {
119
- syncNativeAttr(this.renderer, this.el, 'margin-end', val);
120
- }
121
- set visible(val) {
122
- syncNativeAttr(this.renderer, this.el, 'visible', val);
123
- }
124
- set sensitive(val) {
125
- syncNativeAttr(this.renderer, this.el, 'sensitive', val);
126
- }
127
- set disabled(val) {
128
- if (val === undefined) {
129
- return;
130
- }
131
- const nextSensitive = isTruthyDisabledInput(val) ? 'false' : 'true';
132
- if (getElementAttribute(this.el, 'sensitive') === nextSensitive) {
133
- return;
112
+ hexpand = input(/* @ts-ignore */
113
+ ...(ngDevMode ? [undefined, { debugName: "hexpand" }] : /* istanbul ignore next */ []));
114
+ vexpand = input(/* @ts-ignore */
115
+ ...(ngDevMode ? [undefined, { debugName: "vexpand" }] : /* istanbul ignore next */ []));
116
+ halign = input(/* @ts-ignore */
117
+ ...(ngDevMode ? [undefined, { debugName: "halign" }] : /* istanbul ignore next */ []));
118
+ valign = input(/* @ts-ignore */
119
+ ...(ngDevMode ? [undefined, { debugName: "valign" }] : /* istanbul ignore next */ []));
120
+ width = input(/* @ts-ignore */
121
+ ...(ngDevMode ? [undefined, { debugName: "width" }] : /* istanbul ignore next */ []));
122
+ height = input(/* @ts-ignore */
123
+ ...(ngDevMode ? [undefined, { debugName: "height" }] : /* istanbul ignore next */ []));
124
+ minWidth = input(undefined, { ...(ngDevMode ? { debugName: "minWidth" } : /* istanbul ignore next */ {}), alias: 'min-width' });
125
+ minHeight = input(undefined, { ...(ngDevMode ? { debugName: "minHeight" } : /* istanbul ignore next */ {}), alias: 'min-height' });
126
+ margin = input(/* @ts-ignore */
127
+ ...(ngDevMode ? [undefined, { debugName: "margin" }] : /* istanbul ignore next */ []));
128
+ marginTop = input(undefined, { ...(ngDevMode ? { debugName: "marginTop" } : /* istanbul ignore next */ {}), alias: 'margin-top' });
129
+ marginBottom = input(undefined, { ...(ngDevMode ? { debugName: "marginBottom" } : /* istanbul ignore next */ {}), alias: 'margin-bottom' });
130
+ marginStart = input(undefined, { ...(ngDevMode ? { debugName: "marginStart" } : /* istanbul ignore next */ {}), alias: 'margin-start' });
131
+ marginEnd = input(undefined, { ...(ngDevMode ? { debugName: "marginEnd" } : /* istanbul ignore next */ {}), alias: 'margin-end' });
132
+ visible = input(/* @ts-ignore */
133
+ ...(ngDevMode ? [undefined, { debugName: "visible" }] : /* istanbul ignore next */ []));
134
+ sensitive = input(/* @ts-ignore */
135
+ ...(ngDevMode ? [undefined, { debugName: "sensitive" }] : /* istanbul ignore next */ []));
136
+ disabled = input(/* @ts-ignore */
137
+ ...(ngDevMode ? [undefined, { debugName: "disabled" }] : /* istanbul ignore next */ []));
138
+ tooltip = input(/* @ts-ignore */
139
+ ...(ngDevMode ? [undefined, { debugName: "tooltip" }] : /* istanbul ignore next */ []));
140
+ eventMask = input(undefined, { ...(ngDevMode ? { debugName: "eventMask" } : /* istanbul ignore next */ {}), alias: 'event-mask' });
141
+ dropTarget = input(undefined, { ...(ngDevMode ? { debugName: "dropTarget" } : /* istanbul ignore next */ {}), alias: 'drop-target' });
142
+ col = input(/* @ts-ignore */
143
+ ...(ngDevMode ? [undefined, { debugName: "col" }] : /* istanbul ignore next */ []));
144
+ row = input(/* @ts-ignore */
145
+ ...(ngDevMode ? [undefined, { debugName: "row" }] : /* istanbul ignore next */ []));
146
+ resolvedSensitive = computed(() => {
147
+ const disabled = this.disabled();
148
+ if (disabled !== undefined) {
149
+ return isTruthyDisabledInput(disabled) ? 'false' : 'true';
134
150
  }
135
- this.renderer.setProperty(this.el, 'disabled', val);
136
- }
137
- set tooltip(val) {
138
- syncNativeAttr(this.renderer, this.el, 'tooltip', val);
139
- }
140
- set eventMask(val) {
141
- syncNativeAttr(this.renderer, this.el, 'event-mask', val);
142
- }
143
- set dropTarget(val) {
144
- syncNativeAttr(this.renderer, this.el, 'drop-target', val);
145
- }
146
- set col(val) {
147
- syncNativeAttr(this.renderer, this.el, 'col', val);
148
- }
149
- set row(val) {
150
- syncNativeAttr(this.renderer, this.el, 'row', val);
151
+ return this.sensitive();
152
+ }, /* @ts-ignore */
153
+ ...(ngDevMode ? [{ debugName: "resolvedSensitive" }] : /* istanbul ignore next */ []));
154
+ constructor() {
155
+ bindSignalInputs([
156
+ ['hexpand', this.hexpand],
157
+ ['vexpand', this.vexpand],
158
+ ['halign', this.halign],
159
+ ['valign', this.valign],
160
+ ['width', this.width],
161
+ ['height', this.height],
162
+ ['min-width', this.minWidth],
163
+ ['min-height', this.minHeight],
164
+ ['margin', this.margin],
165
+ ['margin-top', this.marginTop],
166
+ ['margin-bottom', this.marginBottom],
167
+ ['margin-start', this.marginStart],
168
+ ['margin-end', this.marginEnd],
169
+ ['visible', this.visible],
170
+ ['sensitive', this.resolvedSensitive],
171
+ ['tooltip', this.tooltip],
172
+ ['event-mask', this.eventMask],
173
+ ['drop-target', this.dropTarget],
174
+ ['col', this.col],
175
+ ['row', this.row],
176
+ ]);
151
177
  }
152
178
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: NativeElementDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
153
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.3.0", type: NativeElementDirective, isStandalone: true, selector: "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", inputs: { hexpand: "hexpand", vexpand: "vexpand", halign: "halign", valign: "valign", width: "width", height: "height", minWidth: ["min-width", "minWidth"], minHeight: ["min-height", "minHeight"], margin: "margin", marginTop: ["margin-top", "marginTop"], marginBottom: ["margin-bottom", "marginBottom"], marginStart: ["margin-start", "marginStart"], marginEnd: ["margin-end", "marginEnd"], visible: "visible", sensitive: "sensitive", disabled: "disabled", tooltip: "tooltip", eventMask: ["event-mask", "eventMask"], dropTarget: ["drop-target", "dropTarget"], col: "col", row: "row" }, ngImport: i0 });
179
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.3.0", type: NativeElementDirective, isStandalone: true, selector: "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", inputs: { hexpand: { classPropertyName: "hexpand", publicName: "hexpand", isSignal: true, isRequired: false, transformFunction: null }, vexpand: { classPropertyName: "vexpand", publicName: "vexpand", isSignal: true, isRequired: false, transformFunction: null }, halign: { classPropertyName: "halign", publicName: "halign", isSignal: true, isRequired: false, transformFunction: null }, valign: { classPropertyName: "valign", publicName: "valign", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, minWidth: { classPropertyName: "minWidth", publicName: "min-width", isSignal: true, isRequired: false, transformFunction: null }, minHeight: { classPropertyName: "minHeight", publicName: "min-height", isSignal: true, isRequired: false, transformFunction: null }, margin: { classPropertyName: "margin", publicName: "margin", isSignal: true, isRequired: false, transformFunction: null }, marginTop: { classPropertyName: "marginTop", publicName: "margin-top", isSignal: true, isRequired: false, transformFunction: null }, marginBottom: { classPropertyName: "marginBottom", publicName: "margin-bottom", isSignal: true, isRequired: false, transformFunction: null }, marginStart: { classPropertyName: "marginStart", publicName: "margin-start", isSignal: true, isRequired: false, transformFunction: null }, marginEnd: { classPropertyName: "marginEnd", publicName: "margin-end", isSignal: true, isRequired: false, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, sensitive: { classPropertyName: "sensitive", publicName: "sensitive", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: true, isRequired: false, transformFunction: null }, eventMask: { classPropertyName: "eventMask", publicName: "event-mask", isSignal: true, isRequired: false, transformFunction: null }, dropTarget: { classPropertyName: "dropTarget", publicName: "drop-target", isSignal: true, isRequired: false, transformFunction: null }, col: { classPropertyName: "col", publicName: "col", isSignal: true, isRequired: false, transformFunction: null }, row: { classPropertyName: "row", publicName: "row", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
154
180
  }
155
181
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: NativeElementDirective, decorators: [{
156
182
  type: Directive,
157
183
  args: [{
158
184
  selector: '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',
159
- standalone: true,
160
185
  }]
161
- }], propDecorators: { hexpand: [{
162
- type: Input
163
- }], vexpand: [{
164
- type: Input
165
- }], halign: [{
166
- type: Input
167
- }], valign: [{
168
- type: Input
169
- }], width: [{
170
- type: Input
171
- }], height: [{
172
- type: Input
173
- }], minWidth: [{
174
- type: Input,
175
- args: ['min-width']
176
- }], minHeight: [{
177
- type: Input,
178
- args: ['min-height']
179
- }], margin: [{
180
- type: Input
181
- }], marginTop: [{
182
- type: Input,
183
- args: ['margin-top']
184
- }], marginBottom: [{
185
- type: Input,
186
- args: ['margin-bottom']
187
- }], marginStart: [{
188
- type: Input,
189
- args: ['margin-start']
190
- }], marginEnd: [{
191
- type: Input,
192
- args: ['margin-end']
193
- }], visible: [{
194
- type: Input
195
- }], sensitive: [{
196
- type: Input
197
- }], disabled: [{
198
- type: Input
199
- }], tooltip: [{
200
- type: Input
201
- }], eventMask: [{
202
- type: Input,
203
- args: ['event-mask']
204
- }], dropTarget: [{
205
- type: Input,
206
- args: ['drop-target']
207
- }], col: [{
208
- type: Input
209
- }], row: [{
210
- type: Input
211
- }] } });
186
+ }], ctorParameters: () => [], propDecorators: { hexpand: [{ type: i0.Input, args: [{ isSignal: true, alias: "hexpand", required: false }] }], vexpand: [{ type: i0.Input, args: [{ isSignal: true, alias: "vexpand", required: false }] }], halign: [{ type: i0.Input, args: [{ isSignal: true, alias: "halign", required: false }] }], valign: [{ type: i0.Input, args: [{ isSignal: true, alias: "valign", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], minWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "min-width", required: false }] }], minHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "min-height", required: false }] }], margin: [{ type: i0.Input, args: [{ isSignal: true, alias: "margin", required: false }] }], marginTop: [{ type: i0.Input, args: [{ isSignal: true, alias: "margin-top", required: false }] }], marginBottom: [{ type: i0.Input, args: [{ isSignal: true, alias: "margin-bottom", required: false }] }], marginStart: [{ type: i0.Input, args: [{ isSignal: true, alias: "margin-start", required: false }] }], marginEnd: [{ type: i0.Input, args: [{ isSignal: true, alias: "margin-end", required: false }] }], visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: false }] }], sensitive: [{ type: i0.Input, args: [{ isSignal: true, alias: "sensitive", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], eventMask: [{ type: i0.Input, args: [{ isSignal: true, alias: "event-mask", required: false }] }], dropTarget: [{ type: i0.Input, args: [{ isSignal: true, alias: "drop-target", required: false }] }], col: [{ type: i0.Input, args: [{ isSignal: true, alias: "col", required: false }] }], row: [{ type: i0.Input, args: [{ isSignal: true, alias: "row", required: false }] }] } });
212
187
  /**
213
188
  * Typed directive for top-level native windows, dialogs, and header bars (`<ng-window>`,
214
189
  * `<ng-dialog>`, `<ng-header-bar>`).
215
190
  */
216
191
  export class NativeWindowDirective {
217
- renderer = inject(Renderer2);
218
- el = inject(ElementRef).nativeElement;
219
- set title(val) {
220
- syncNativeProp(this.renderer, this.el, 'title', val);
221
- }
222
- set subtitle(val) {
223
- syncNativeAttr(this.renderer, this.el, 'subtitle', val);
224
- }
225
- set showTitleButtons(val) {
226
- syncNativeAttr(this.renderer, this.el, 'show-title-buttons', val);
227
- }
228
- set icon(val) {
229
- syncNativeAttr(this.renderer, this.el, 'icon', val);
230
- }
231
- set resizable(val) {
232
- syncNativeAttr(this.renderer, this.el, 'resizable', val);
233
- }
234
- set decorated(val) {
235
- syncNativeAttr(this.renderer, this.el, 'decorated', val);
236
- }
237
- set modal(val) {
238
- syncNativeAttr(this.renderer, this.el, 'modal', val);
239
- }
240
- set transientForAttr(val) {
241
- syncNativeAttr(this.renderer, this.el, 'transient-for', val);
242
- }
243
- set transientFor(val) {
244
- syncNativeAttr(this.renderer, this.el, 'transient-for', val);
245
- }
246
- set preventClose(val) {
247
- syncNativeAttr(this.renderer, this.el, 'prevent-close', val);
248
- }
249
- set preventCloseAttr(val) {
250
- syncNativeAttr(this.renderer, this.el, 'prevent-close', val);
192
+ title = input(/* @ts-ignore */
193
+ ...(ngDevMode ? [undefined, { debugName: "title" }] : /* istanbul ignore next */ []));
194
+ subtitle = input(/* @ts-ignore */
195
+ ...(ngDevMode ? [undefined, { debugName: "subtitle" }] : /* istanbul ignore next */ []));
196
+ showTitleButtons = input(undefined, { ...(ngDevMode ? { debugName: "showTitleButtons" } : /* istanbul ignore next */ {}), alias: 'show-title-buttons' });
197
+ icon = input(/* @ts-ignore */
198
+ ...(ngDevMode ? [undefined, { debugName: "icon" }] : /* istanbul ignore next */ []));
199
+ resizable = input(/* @ts-ignore */
200
+ ...(ngDevMode ? [undefined, { debugName: "resizable" }] : /* istanbul ignore next */ []));
201
+ decorated = input(/* @ts-ignore */
202
+ ...(ngDevMode ? [undefined, { debugName: "decorated" }] : /* istanbul ignore next */ []));
203
+ modal = input(/* @ts-ignore */
204
+ ...(ngDevMode ? [undefined, { debugName: "modal" }] : /* istanbul ignore next */ []));
205
+ transientForAttr = input(undefined, { ...(ngDevMode ? { debugName: "transientForAttr" } : /* istanbul ignore next */ {}), alias: 'transient-for' });
206
+ transientFor = input(/* @ts-ignore */
207
+ ...(ngDevMode ? [undefined, { debugName: "transientFor" }] : /* istanbul ignore next */ []));
208
+ preventClose = input(/* @ts-ignore */
209
+ ...(ngDevMode ? [undefined, { debugName: "preventClose" }] : /* istanbul ignore next */ []));
210
+ preventCloseAttr = input(undefined, { ...(ngDevMode ? { debugName: "preventCloseAttr" } : /* istanbul ignore next */ {}), alias: 'prevent-close' });
211
+ backdrop = input(/* @ts-ignore */
212
+ ...(ngDevMode ? [undefined, { debugName: "backdrop" }] : /* istanbul ignore next */ []));
213
+ theme = input(/* @ts-ignore */
214
+ ...(ngDevMode ? [undefined, { debugName: "theme" }] : /* istanbul ignore next */ []));
215
+ resolvedTransientFor = computed(() => this.transientFor() ?? this.transientForAttr(), /* @ts-ignore */
216
+ ...(ngDevMode ? [{ debugName: "resolvedTransientFor" }] : /* istanbul ignore next */ []));
217
+ resolvedPreventClose = computed(() => this.preventClose() ?? this.preventCloseAttr(), /* @ts-ignore */
218
+ ...(ngDevMode ? [{ debugName: "resolvedPreventClose" }] : /* istanbul ignore next */ []));
219
+ constructor() {
220
+ bindSignalInputs([
221
+ ['title', this.title, true],
222
+ ['subtitle', this.subtitle],
223
+ ['show-title-buttons', this.showTitleButtons],
224
+ ['icon', this.icon],
225
+ ['resizable', this.resizable],
226
+ ['decorated', this.decorated],
227
+ ['modal', this.modal],
228
+ ['transient-for', this.resolvedTransientFor],
229
+ ['prevent-close', this.resolvedPreventClose],
230
+ ['backdrop', this.backdrop],
231
+ ['theme', this.theme],
232
+ ]);
251
233
  }
252
234
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: NativeWindowDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
253
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.3.0", type: NativeWindowDirective, isStandalone: true, selector: "ng-window,adw-window,ng-dialog,gtk-dialog,adw-dialog,ng-header-bar,adw-header-bar,gtk-header-bar", inputs: { title: "title", subtitle: "subtitle", showTitleButtons: ["show-title-buttons", "showTitleButtons"], icon: "icon", resizable: "resizable", decorated: "decorated", modal: "modal", transientForAttr: ["transient-for", "transientForAttr"], transientFor: "transientFor", preventClose: "preventClose", preventCloseAttr: ["prevent-close", "preventCloseAttr"] }, ngImport: i0 });
235
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.3.0", type: NativeWindowDirective, isStandalone: true, selector: "ng-window,adw-window,ng-dialog,gtk-dialog,adw-dialog,ng-header-bar,adw-header-bar,gtk-header-bar", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, showTitleButtons: { classPropertyName: "showTitleButtons", publicName: "show-title-buttons", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, resizable: { classPropertyName: "resizable", publicName: "resizable", isSignal: true, isRequired: false, transformFunction: null }, decorated: { classPropertyName: "decorated", publicName: "decorated", isSignal: true, isRequired: false, transformFunction: null }, modal: { classPropertyName: "modal", publicName: "modal", isSignal: true, isRequired: false, transformFunction: null }, transientForAttr: { classPropertyName: "transientForAttr", publicName: "transient-for", isSignal: true, isRequired: false, transformFunction: null }, transientFor: { classPropertyName: "transientFor", publicName: "transientFor", isSignal: true, isRequired: false, transformFunction: null }, preventClose: { classPropertyName: "preventClose", publicName: "preventClose", isSignal: true, isRequired: false, transformFunction: null }, preventCloseAttr: { classPropertyName: "preventCloseAttr", publicName: "prevent-close", isSignal: true, isRequired: false, transformFunction: null }, backdrop: { classPropertyName: "backdrop", publicName: "backdrop", isSignal: true, isRequired: false, transformFunction: null }, theme: { classPropertyName: "theme", publicName: "theme", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
254
236
  }
255
237
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: NativeWindowDirective, decorators: [{
256
238
  type: Directive,
257
239
  args: [{
258
240
  selector: 'ng-window,adw-window,ng-dialog,gtk-dialog,adw-dialog,ng-header-bar,adw-header-bar,gtk-header-bar',
259
- standalone: true,
260
241
  }]
261
- }], propDecorators: { title: [{
262
- type: Input
263
- }], subtitle: [{
264
- type: Input
265
- }], showTitleButtons: [{
266
- type: Input,
267
- args: ['show-title-buttons']
268
- }], icon: [{
269
- type: Input
270
- }], resizable: [{
271
- type: Input
272
- }], decorated: [{
273
- type: Input
274
- }], modal: [{
275
- type: Input
276
- }], transientForAttr: [{
277
- type: Input,
278
- args: ['transient-for']
279
- }], transientFor: [{
280
- type: Input
281
- }], preventClose: [{
282
- type: Input
283
- }], preventCloseAttr: [{
284
- type: Input,
285
- args: ['prevent-close']
286
- }] } });
242
+ }], ctorParameters: () => [], propDecorators: { title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], subtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "subtitle", required: false }] }], showTitleButtons: [{ type: i0.Input, args: [{ isSignal: true, alias: "show-title-buttons", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], resizable: [{ type: i0.Input, args: [{ isSignal: true, alias: "resizable", required: false }] }], decorated: [{ type: i0.Input, args: [{ isSignal: true, alias: "decorated", required: false }] }], modal: [{ type: i0.Input, args: [{ isSignal: true, alias: "modal", required: false }] }], transientForAttr: [{ type: i0.Input, args: [{ isSignal: true, alias: "transient-for", required: false }] }], transientFor: [{ type: i0.Input, args: [{ isSignal: true, alias: "transientFor", required: false }] }], preventClose: [{ type: i0.Input, args: [{ isSignal: true, alias: "preventClose", required: false }] }], preventCloseAttr: [{ type: i0.Input, args: [{ isSignal: true, alias: "prevent-close", required: false }] }], backdrop: [{ type: i0.Input, args: [{ isSignal: true, alias: "backdrop", required: false }] }], theme: [{ type: i0.Input, args: [{ isSignal: true, alias: "theme", required: false }] }] } });
287
243
  /**
288
244
  * Typed directive for native layout containers, grids, flow boxes, split panes, stacks, clamps,
289
245
  * scroll viewports, separators, and expanders.
290
246
  */
291
247
  export class NativeContainerDirective {
292
- renderer = inject(Renderer2);
293
- el = inject(ElementRef).nativeElement;
294
- set orientation(val) {
295
- syncNativeAttr(this.renderer, this.el, 'orientation', val);
296
- }
297
- set spacing(val) {
298
- syncNativeAttr(this.renderer, this.el, 'spacing', val);
299
- }
300
- set gap(val) {
301
- syncNativeAttr(this.renderer, this.el, 'gap', val);
302
- }
303
- set rowSpacing(val) {
304
- syncNativeAttr(this.renderer, this.el, 'row-spacing', val);
305
- }
306
- set columnSpacing(val) {
307
- syncNativeAttr(this.renderer, this.el, 'column-spacing', val);
308
- }
309
- set minChildren(val) {
310
- syncNativeAttr(this.renderer, this.el, 'min-children', val);
311
- }
312
- set maxChildren(val) {
313
- syncNativeAttr(this.renderer, this.el, 'max-children', val);
314
- }
315
- set minPerRow(val) {
316
- syncNativeAttr(this.renderer, this.el, 'min-per-row', val);
317
- }
318
- set maxPerRow(val) {
319
- syncNativeAttr(this.renderer, this.el, 'max-per-row', val);
320
- }
321
- set columns(val) {
322
- syncNativeAttr(this.renderer, this.el, 'columns', val);
323
- }
324
- set homogeneous(val) {
325
- syncNativeAttr(this.renderer, this.el, 'homogeneous', val);
326
- }
327
- set position(val) {
328
- syncNativeAttr(this.renderer, this.el, 'position', val);
329
- }
330
- set visibleChild(val) {
331
- syncNativeAttr(this.renderer, this.el, 'visible-child', val);
332
- }
333
- set activePage(val) {
334
- syncNativeAttr(this.renderer, this.el, 'active-page', val);
335
- }
336
- set transition(val) {
337
- syncNativeAttr(this.renderer, this.el, 'transition', val);
338
- }
339
- set transitionType(val) {
340
- syncNativeAttr(this.renderer, this.el, 'transition-type', val);
341
- }
342
- set label(val) {
343
- syncNativeAttr(this.renderer, this.el, 'label', val);
344
- }
345
- set title(val) {
346
- syncNativeAttr(this.renderer, this.el, 'title', val);
347
- }
348
- set expanded(val) {
349
- syncNativeAttr(this.renderer, this.el, 'expanded', val);
350
- }
351
- set open(val) {
352
- syncNativeAttr(this.renderer, this.el, 'open', val);
353
- }
354
- set maxSize(val) {
355
- syncNativeAttr(this.renderer, this.el, 'max-size', val);
356
- }
357
- set maximumSize(val) {
358
- syncNativeAttr(this.renderer, this.el, 'maximum-size', val);
359
- }
360
- set scrollTo(val) {
361
- syncNativeAttr(this.renderer, this.el, 'scroll-to', val);
362
- }
363
- set scrollAnchor(val) {
364
- syncNativeAttr(this.renderer, this.el, 'scroll-anchor', val);
248
+ orientation = input(/* @ts-ignore */
249
+ ...(ngDevMode ? [undefined, { debugName: "orientation" }] : /* istanbul ignore next */ []));
250
+ spacing = input(/* @ts-ignore */
251
+ ...(ngDevMode ? [undefined, { debugName: "spacing" }] : /* istanbul ignore next */ []));
252
+ gap = input(/* @ts-ignore */
253
+ ...(ngDevMode ? [undefined, { debugName: "gap" }] : /* istanbul ignore next */ []));
254
+ rowSpacing = input(undefined, { ...(ngDevMode ? { debugName: "rowSpacing" } : /* istanbul ignore next */ {}), alias: 'row-spacing' });
255
+ columnSpacing = input(undefined, { ...(ngDevMode ? { debugName: "columnSpacing" } : /* istanbul ignore next */ {}), alias: 'column-spacing' });
256
+ minChildren = input(undefined, { ...(ngDevMode ? { debugName: "minChildren" } : /* istanbul ignore next */ {}), alias: 'min-children' });
257
+ maxChildren = input(undefined, { ...(ngDevMode ? { debugName: "maxChildren" } : /* istanbul ignore next */ {}), alias: 'max-children' });
258
+ minPerRow = input(undefined, { ...(ngDevMode ? { debugName: "minPerRow" } : /* istanbul ignore next */ {}), alias: 'min-per-row' });
259
+ maxPerRow = input(undefined, { ...(ngDevMode ? { debugName: "maxPerRow" } : /* istanbul ignore next */ {}), alias: 'max-per-row' });
260
+ columns = input(/* @ts-ignore */
261
+ ...(ngDevMode ? [undefined, { debugName: "columns" }] : /* istanbul ignore next */ []));
262
+ homogeneous = input(/* @ts-ignore */
263
+ ...(ngDevMode ? [undefined, { debugName: "homogeneous" }] : /* istanbul ignore next */ []));
264
+ position = input(/* @ts-ignore */
265
+ ...(ngDevMode ? [undefined, { debugName: "position" }] : /* istanbul ignore next */ []));
266
+ visibleChild = input(undefined, { ...(ngDevMode ? { debugName: "visibleChild" } : /* istanbul ignore next */ {}), alias: 'visible-child' });
267
+ activePage = input(undefined, { ...(ngDevMode ? { debugName: "activePage" } : /* istanbul ignore next */ {}), alias: 'active-page' });
268
+ transition = input(/* @ts-ignore */
269
+ ...(ngDevMode ? [undefined, { debugName: "transition" }] : /* istanbul ignore next */ []));
270
+ transitionType = input(undefined, { ...(ngDevMode ? { debugName: "transitionType" } : /* istanbul ignore next */ {}), alias: 'transition-type' });
271
+ label = input(/* @ts-ignore */
272
+ ...(ngDevMode ? [undefined, { debugName: "label" }] : /* istanbul ignore next */ []));
273
+ title = input(/* @ts-ignore */
274
+ ...(ngDevMode ? [undefined, { debugName: "title" }] : /* istanbul ignore next */ []));
275
+ expanded = input(/* @ts-ignore */
276
+ ...(ngDevMode ? [undefined, { debugName: "expanded" }] : /* istanbul ignore next */ []));
277
+ open = input(/* @ts-ignore */
278
+ ...(ngDevMode ? [undefined, { debugName: "open" }] : /* istanbul ignore next */ []));
279
+ maxSize = input(undefined, { ...(ngDevMode ? { debugName: "maxSize" } : /* istanbul ignore next */ {}), alias: 'max-size' });
280
+ maximumSize = input(undefined, { ...(ngDevMode ? { debugName: "maximumSize" } : /* istanbul ignore next */ {}), alias: 'maximum-size' });
281
+ scrollTo = input(undefined, { ...(ngDevMode ? { debugName: "scrollTo" } : /* istanbul ignore next */ {}), alias: 'scroll-to' });
282
+ scrollAnchor = input(undefined, { ...(ngDevMode ? { debugName: "scrollAnchor" } : /* istanbul ignore next */ {}), alias: 'scroll-anchor' });
283
+ constructor() {
284
+ bindSignalInputs([
285
+ ['orientation', this.orientation],
286
+ ['spacing', this.spacing],
287
+ ['gap', this.gap],
288
+ ['row-spacing', this.rowSpacing],
289
+ ['column-spacing', this.columnSpacing],
290
+ ['min-children', this.minChildren],
291
+ ['max-children', this.maxChildren],
292
+ ['min-per-row', this.minPerRow],
293
+ ['max-per-row', this.maxPerRow],
294
+ ['columns', this.columns],
295
+ ['homogeneous', this.homogeneous],
296
+ ['position', this.position],
297
+ ['visible-child', this.visibleChild],
298
+ ['active-page', this.activePage],
299
+ ['transition', this.transition],
300
+ ['transition-type', this.transitionType],
301
+ ['label', this.label],
302
+ ['title', this.title],
303
+ ['expanded', this.expanded],
304
+ ['open', this.open],
305
+ ['max-size', this.maxSize],
306
+ ['maximum-size', this.maximumSize],
307
+ ['scroll-to', this.scrollTo],
308
+ ['scroll-anchor', this.scrollAnchor],
309
+ ]);
365
310
  }
366
311
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: NativeContainerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
367
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.3.0", type: NativeContainerDirective, isStandalone: true, selector: "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", inputs: { orientation: "orientation", spacing: "spacing", gap: "gap", rowSpacing: ["row-spacing", "rowSpacing"], columnSpacing: ["column-spacing", "columnSpacing"], minChildren: ["min-children", "minChildren"], maxChildren: ["max-children", "maxChildren"], minPerRow: ["min-per-row", "minPerRow"], maxPerRow: ["max-per-row", "maxPerRow"], columns: "columns", homogeneous: "homogeneous", position: "position", visibleChild: ["visible-child", "visibleChild"], activePage: ["active-page", "activePage"], transition: "transition", transitionType: ["transition-type", "transitionType"], label: "label", title: "title", expanded: "expanded", open: "open", maxSize: ["max-size", "maxSize"], maximumSize: ["maximum-size", "maximumSize"], scrollTo: ["scroll-to", "scrollTo"], scrollAnchor: ["scroll-anchor", "scrollAnchor"] }, ngImport: i0 });
312
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.3.0", type: NativeContainerDirective, isStandalone: true, selector: "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", inputs: { orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, spacing: { classPropertyName: "spacing", publicName: "spacing", isSignal: true, isRequired: false, transformFunction: null }, gap: { classPropertyName: "gap", publicName: "gap", isSignal: true, isRequired: false, transformFunction: null }, rowSpacing: { classPropertyName: "rowSpacing", publicName: "row-spacing", isSignal: true, isRequired: false, transformFunction: null }, columnSpacing: { classPropertyName: "columnSpacing", publicName: "column-spacing", isSignal: true, isRequired: false, transformFunction: null }, minChildren: { classPropertyName: "minChildren", publicName: "min-children", isSignal: true, isRequired: false, transformFunction: null }, maxChildren: { classPropertyName: "maxChildren", publicName: "max-children", isSignal: true, isRequired: false, transformFunction: null }, minPerRow: { classPropertyName: "minPerRow", publicName: "min-per-row", isSignal: true, isRequired: false, transformFunction: null }, maxPerRow: { classPropertyName: "maxPerRow", publicName: "max-per-row", isSignal: true, isRequired: false, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: false, transformFunction: null }, homogeneous: { classPropertyName: "homogeneous", publicName: "homogeneous", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, visibleChild: { classPropertyName: "visibleChild", publicName: "visible-child", isSignal: true, isRequired: false, transformFunction: null }, activePage: { classPropertyName: "activePage", publicName: "active-page", isSignal: true, isRequired: false, transformFunction: null }, transition: { classPropertyName: "transition", publicName: "transition", isSignal: true, isRequired: false, transformFunction: null }, transitionType: { classPropertyName: "transitionType", publicName: "transition-type", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, expanded: { classPropertyName: "expanded", publicName: "expanded", isSignal: true, isRequired: false, transformFunction: null }, open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, maxSize: { classPropertyName: "maxSize", publicName: "max-size", isSignal: true, isRequired: false, transformFunction: null }, maximumSize: { classPropertyName: "maximumSize", publicName: "maximum-size", isSignal: true, isRequired: false, transformFunction: null }, scrollTo: { classPropertyName: "scrollTo", publicName: "scroll-to", isSignal: true, isRequired: false, transformFunction: null }, scrollAnchor: { classPropertyName: "scrollAnchor", publicName: "scroll-anchor", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
368
313
  }
369
314
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: NativeContainerDirective, decorators: [{
370
315
  type: Directive,
371
316
  args: [{
372
317
  selector: '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',
373
- standalone: true,
374
318
  }]
375
- }], propDecorators: { orientation: [{
376
- type: Input
377
- }], spacing: [{
378
- type: Input
379
- }], gap: [{
380
- type: Input
381
- }], rowSpacing: [{
382
- type: Input,
383
- args: ['row-spacing']
384
- }], columnSpacing: [{
385
- type: Input,
386
- args: ['column-spacing']
387
- }], minChildren: [{
388
- type: Input,
389
- args: ['min-children']
390
- }], maxChildren: [{
391
- type: Input,
392
- args: ['max-children']
393
- }], minPerRow: [{
394
- type: Input,
395
- args: ['min-per-row']
396
- }], maxPerRow: [{
397
- type: Input,
398
- args: ['max-per-row']
399
- }], columns: [{
400
- type: Input
401
- }], homogeneous: [{
402
- type: Input
403
- }], position: [{
404
- type: Input
405
- }], visibleChild: [{
406
- type: Input,
407
- args: ['visible-child']
408
- }], activePage: [{
409
- type: Input,
410
- args: ['active-page']
411
- }], transition: [{
412
- type: Input
413
- }], transitionType: [{
414
- type: Input,
415
- args: ['transition-type']
416
- }], label: [{
417
- type: Input
418
- }], title: [{
419
- type: Input
420
- }], expanded: [{
421
- type: Input
422
- }], open: [{
423
- type: Input
424
- }], maxSize: [{
425
- type: Input,
426
- args: ['max-size']
427
- }], maximumSize: [{
428
- type: Input,
429
- args: ['maximum-size']
430
- }], scrollTo: [{
431
- type: Input,
432
- args: ['scroll-to']
433
- }], scrollAnchor: [{
434
- type: Input,
435
- args: ['scroll-anchor']
436
- }] } });
319
+ }], ctorParameters: () => [], propDecorators: { orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], spacing: [{ type: i0.Input, args: [{ isSignal: true, alias: "spacing", required: false }] }], gap: [{ type: i0.Input, args: [{ isSignal: true, alias: "gap", required: false }] }], rowSpacing: [{ type: i0.Input, args: [{ isSignal: true, alias: "row-spacing", required: false }] }], columnSpacing: [{ type: i0.Input, args: [{ isSignal: true, alias: "column-spacing", required: false }] }], minChildren: [{ type: i0.Input, args: [{ isSignal: true, alias: "min-children", required: false }] }], maxChildren: [{ type: i0.Input, args: [{ isSignal: true, alias: "max-children", required: false }] }], minPerRow: [{ type: i0.Input, args: [{ isSignal: true, alias: "min-per-row", required: false }] }], maxPerRow: [{ type: i0.Input, args: [{ isSignal: true, alias: "max-per-row", required: false }] }], columns: [{ type: i0.Input, args: [{ isSignal: true, alias: "columns", required: false }] }], homogeneous: [{ type: i0.Input, args: [{ isSignal: true, alias: "homogeneous", required: false }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], visibleChild: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible-child", required: false }] }], activePage: [{ type: i0.Input, args: [{ isSignal: true, alias: "active-page", required: false }] }], transition: [{ type: i0.Input, args: [{ isSignal: true, alias: "transition", required: false }] }], transitionType: [{ type: i0.Input, args: [{ isSignal: true, alias: "transition-type", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], expanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "expanded", required: false }] }], open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }], maxSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "max-size", required: false }] }], maximumSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "maximum-size", required: false }] }], scrollTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "scroll-to", required: false }] }], scrollAnchor: [{ type: i0.Input, args: [{ isSignal: true, alias: "scroll-anchor", required: false }] }] } });
437
320
  /**
438
321
  * Typed directive for native labels and action buttons (`<ng-label>`, `<ng-button>`).
439
322
  */
440
323
  export class NativeTextWidgetDirective {
441
- renderer = inject(Renderer2);
442
- el = inject(ElementRef).nativeElement;
443
- set label(val) {
444
- syncNativeProp(this.renderer, this.el, 'label', val);
445
- }
446
- set text(val) {
447
- syncNativeProp(this.renderer, this.el, 'text', val);
448
- }
449
- set wrap(val) {
450
- syncNativeAttr(this.renderer, this.el, 'wrap', val);
451
- }
452
- set selectable(val) {
453
- syncNativeAttr(this.renderer, this.el, 'selectable', val);
454
- }
455
- set ellipsize(val) {
456
- syncNativeAttr(this.renderer, this.el, 'ellipsize', val);
324
+ label = input(/* @ts-ignore */
325
+ ...(ngDevMode ? [undefined, { debugName: "label" }] : /* istanbul ignore next */ []));
326
+ text = input(/* @ts-ignore */
327
+ ...(ngDevMode ? [undefined, { debugName: "text" }] : /* istanbul ignore next */ []));
328
+ wrap = input(/* @ts-ignore */
329
+ ...(ngDevMode ? [undefined, { debugName: "wrap" }] : /* istanbul ignore next */ []));
330
+ selectable = input(/* @ts-ignore */
331
+ ...(ngDevMode ? [undefined, { debugName: "selectable" }] : /* istanbul ignore next */ []));
332
+ ellipsize = input(/* @ts-ignore */
333
+ ...(ngDevMode ? [undefined, { debugName: "ellipsize" }] : /* istanbul ignore next */ []));
334
+ constructor() {
335
+ bindSignalInputs([
336
+ ['label', this.label, true],
337
+ ['text', this.text, true],
338
+ ['wrap', this.wrap],
339
+ ['selectable', this.selectable],
340
+ ['ellipsize', this.ellipsize],
341
+ ]);
457
342
  }
458
343
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: NativeTextWidgetDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
459
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.3.0", type: NativeTextWidgetDirective, isStandalone: true, selector: "ng-button,gtk-button,ng-label,gtk-label", inputs: { label: "label", text: "text", wrap: "wrap", selectable: "selectable", ellipsize: "ellipsize" }, ngImport: i0 });
344
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.3.0", type: NativeTextWidgetDirective, isStandalone: true, selector: "ng-button,gtk-button,ng-label,gtk-label", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null }, wrap: { classPropertyName: "wrap", publicName: "wrap", isSignal: true, isRequired: false, transformFunction: null }, selectable: { classPropertyName: "selectable", publicName: "selectable", isSignal: true, isRequired: false, transformFunction: null }, ellipsize: { classPropertyName: "ellipsize", publicName: "ellipsize", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
460
345
  }
461
346
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: NativeTextWidgetDirective, decorators: [{
462
347
  type: Directive,
463
348
  args: [{
464
349
  selector: 'ng-button,gtk-button,ng-label,gtk-label',
465
- standalone: true,
466
350
  }]
467
- }], propDecorators: { label: [{
468
- type: Input
469
- }], text: [{
470
- type: Input
471
- }], wrap: [{
472
- type: Input
473
- }], selectable: [{
474
- type: Input
475
- }], ellipsize: [{
476
- type: Input
477
- }] } });
351
+ }], ctorParameters: () => [], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], wrap: [{ type: i0.Input, args: [{ isSignal: true, alias: "wrap", required: false }] }], selectable: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectable", required: false }] }], ellipsize: [{ type: i0.Input, args: [{ isSignal: true, alias: "ellipsize", required: false }] }] } });
478
352
  /**
479
353
  * Typed directive for native images, level bars, progress bars, and spinners.
480
354
  */
481
355
  export class NativeMediaAndMeterDirective {
482
- renderer = inject(Renderer2);
483
- el = inject(ElementRef).nativeElement;
484
- set src(val) {
485
- syncNativeProp(this.renderer, this.el, 'src', val);
486
- }
487
- set ngSrc(val) {
488
- syncNativeProp(this.renderer, this.el, 'ngSrc', val);
489
- }
490
- set alt(val) {
491
- syncNativeAttr(this.renderer, this.el, 'alt', val);
492
- }
493
- set value(val) {
494
- syncNativeAttr(this.renderer, this.el, 'value', val);
495
- }
496
- set min(val) {
497
- syncNativeAttr(this.renderer, this.el, 'min', val);
498
- }
499
- set max(val) {
500
- syncNativeAttr(this.renderer, this.el, 'max', val);
501
- }
502
- set indeterminate(val) {
503
- syncNativeAttr(this.renderer, this.el, 'indeterminate', val);
504
- }
505
- set active(val) {
506
- syncNativeAttr(this.renderer, this.el, 'active', val);
507
- }
508
- set spinning(val) {
509
- syncNativeAttr(this.renderer, this.el, 'spinning', val);
356
+ src = input(/* @ts-ignore */
357
+ ...(ngDevMode ? [undefined, { debugName: "src" }] : /* istanbul ignore next */ []));
358
+ ngSrc = input(/* @ts-ignore */
359
+ ...(ngDevMode ? [undefined, { debugName: "ngSrc" }] : /* istanbul ignore next */ []));
360
+ alt = input(/* @ts-ignore */
361
+ ...(ngDevMode ? [undefined, { debugName: "alt" }] : /* istanbul ignore next */ []));
362
+ value = input(/* @ts-ignore */
363
+ ...(ngDevMode ? [undefined, { debugName: "value" }] : /* istanbul ignore next */ []));
364
+ min = input(/* @ts-ignore */
365
+ ...(ngDevMode ? [undefined, { debugName: "min" }] : /* istanbul ignore next */ []));
366
+ max = input(/* @ts-ignore */
367
+ ...(ngDevMode ? [undefined, { debugName: "max" }] : /* istanbul ignore next */ []));
368
+ indeterminate = input(/* @ts-ignore */
369
+ ...(ngDevMode ? [undefined, { debugName: "indeterminate" }] : /* istanbul ignore next */ []));
370
+ active = input(/* @ts-ignore */
371
+ ...(ngDevMode ? [undefined, { debugName: "active" }] : /* istanbul ignore next */ []));
372
+ spinning = input(/* @ts-ignore */
373
+ ...(ngDevMode ? [undefined, { debugName: "spinning" }] : /* istanbul ignore next */ []));
374
+ constructor() {
375
+ bindSignalInputs([
376
+ ['src', this.src, true],
377
+ ['ngSrc', this.ngSrc, true],
378
+ ['alt', this.alt],
379
+ ['value', this.value],
380
+ ['min', this.min],
381
+ ['max', this.max],
382
+ ['indeterminate', this.indeterminate],
383
+ ['active', this.active],
384
+ ['spinning', this.spinning],
385
+ ]);
510
386
  }
511
387
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: NativeMediaAndMeterDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
512
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.3.0", type: NativeMediaAndMeterDirective, isStandalone: true, selector: "ng-image,adw-image,gtk-picture,ng-picture,ng-level-bar,gtk-level-bar,ng-progress-bar,gtk-progress-bar,ng-spinner,gtk-spinner", inputs: { src: "src", ngSrc: "ngSrc", alt: "alt", value: "value", min: "min", max: "max", indeterminate: "indeterminate", active: "active", spinning: "spinning" }, ngImport: i0 });
388
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.3.0", type: NativeMediaAndMeterDirective, isStandalone: true, selector: "ng-image,adw-image,gtk-picture,ng-picture,ng-level-bar,gtk-level-bar,ng-progress-bar,gtk-progress-bar,ng-spinner,gtk-spinner", inputs: { src: { classPropertyName: "src", publicName: "src", isSignal: true, isRequired: false, transformFunction: null }, ngSrc: { classPropertyName: "ngSrc", publicName: "ngSrc", isSignal: true, isRequired: false, transformFunction: null }, alt: { classPropertyName: "alt", publicName: "alt", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, indeterminate: { classPropertyName: "indeterminate", publicName: "indeterminate", isSignal: true, isRequired: false, transformFunction: null }, active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null }, spinning: { classPropertyName: "spinning", publicName: "spinning", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
513
389
  }
514
390
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: NativeMediaAndMeterDirective, decorators: [{
515
391
  type: Directive,
516
392
  args: [{
517
393
  selector: 'ng-image,adw-image,gtk-picture,ng-picture,ng-level-bar,gtk-level-bar,ng-progress-bar,gtk-progress-bar,ng-spinner,gtk-spinner',
518
- standalone: true,
519
394
  }]
520
- }], propDecorators: { src: [{
521
- type: Input
522
- }], ngSrc: [{
523
- type: Input
524
- }], alt: [{
525
- type: Input
526
- }], value: [{
527
- type: Input
528
- }], min: [{
529
- type: Input
530
- }], max: [{
531
- type: Input
532
- }], indeterminate: [{
533
- type: Input
534
- }], active: [{
535
- type: Input
536
- }], spinning: [{
537
- type: Input
538
- }] } });
395
+ }], ctorParameters: () => [], propDecorators: { src: [{ type: i0.Input, args: [{ isSignal: true, alias: "src", required: false }] }], ngSrc: [{ type: i0.Input, args: [{ isSignal: true, alias: "ngSrc", required: false }] }], alt: [{ type: i0.Input, args: [{ isSignal: true, alias: "alt", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], indeterminate: [{ type: i0.Input, args: [{ isSignal: true, alias: "indeterminate", required: false }] }], active: [{ type: i0.Input, args: [{ isSignal: true, alias: "active", required: false }] }], spinning: [{ type: i0.Input, args: [{ isSignal: true, alias: "spinning", required: false }] }] } });
539
396
  /**
540
397
  * Typed directive for native text inputs, switches, checkboxes, sliders, dropdowns, and spin buttons.
541
398
  */
542
399
  export class NativeInputWidgetDirective {
543
- renderer = inject(Renderer2);
544
- el = inject(ElementRef).nativeElement;
545
- set placeholder(val) {
546
- syncNativeAttr(this.renderer, this.el, 'placeholder', val);
547
- }
548
- set value(val) {
549
- syncNativeAttr(this.renderer, this.el, 'value', val);
550
- }
551
- set text(val) {
552
- syncNativeAttr(this.renderer, this.el, 'text', val);
553
- }
554
- set active(val) {
555
- syncNativeAttr(this.renderer, this.el, 'active', val);
556
- }
557
- set checked(val) {
558
- syncNativeAttr(this.renderer, this.el, 'checked', val);
559
- }
560
- set label(val) {
561
- syncNativeAttr(this.renderer, this.el, 'label', val);
562
- }
563
- set options(val) {
564
- syncNativeAttr(this.renderer, this.el, 'options', val);
565
- }
566
- set selected(val) {
567
- syncNativeAttr(this.renderer, this.el, 'selected', val);
568
- }
569
- set editable(val) {
570
- syncNativeAttr(this.renderer, this.el, 'editable', val);
571
- }
572
- set monospace(val) {
573
- syncNativeAttr(this.renderer, this.el, 'monospace', val);
574
- }
575
- set showPeekIcon(val) {
576
- syncNativeAttr(this.renderer, this.el, 'show-peek-icon', val);
577
- }
578
- set peek(val) {
579
- syncNativeAttr(this.renderer, this.el, 'peek', val);
400
+ placeholder = input(/* @ts-ignore */
401
+ ...(ngDevMode ? [undefined, { debugName: "placeholder" }] : /* istanbul ignore next */ []));
402
+ value = input(/* @ts-ignore */
403
+ ...(ngDevMode ? [undefined, { debugName: "value" }] : /* istanbul ignore next */ []));
404
+ text = input(/* @ts-ignore */
405
+ ...(ngDevMode ? [undefined, { debugName: "text" }] : /* istanbul ignore next */ []));
406
+ active = input(/* @ts-ignore */
407
+ ...(ngDevMode ? [undefined, { debugName: "active" }] : /* istanbul ignore next */ []));
408
+ checked = input(/* @ts-ignore */
409
+ ...(ngDevMode ? [undefined, { debugName: "checked" }] : /* istanbul ignore next */ []));
410
+ label = input(/* @ts-ignore */
411
+ ...(ngDevMode ? [undefined, { debugName: "label" }] : /* istanbul ignore next */ []));
412
+ options = input(/* @ts-ignore */
413
+ ...(ngDevMode ? [undefined, { debugName: "options" }] : /* istanbul ignore next */ []));
414
+ selected = input(/* @ts-ignore */
415
+ ...(ngDevMode ? [undefined, { debugName: "selected" }] : /* istanbul ignore next */ []));
416
+ editable = input(/* @ts-ignore */
417
+ ...(ngDevMode ? [undefined, { debugName: "editable" }] : /* istanbul ignore next */ []));
418
+ monospace = input(/* @ts-ignore */
419
+ ...(ngDevMode ? [undefined, { debugName: "monospace" }] : /* istanbul ignore next */ []));
420
+ showPeekIcon = input(undefined, { ...(ngDevMode ? { debugName: "showPeekIcon" } : /* istanbul ignore next */ {}), alias: 'show-peek-icon' });
421
+ peek = input(/* @ts-ignore */
422
+ ...(ngDevMode ? [undefined, { debugName: "peek" }] : /* istanbul ignore next */ []));
423
+ constructor() {
424
+ bindSignalInputs([
425
+ ['placeholder', this.placeholder],
426
+ ['value', this.value],
427
+ ['text', this.text],
428
+ ['active', this.active],
429
+ ['checked', this.checked],
430
+ ['label', this.label],
431
+ ['options', this.options],
432
+ ['selected', this.selected],
433
+ ['editable', this.editable],
434
+ ['monospace', this.monospace],
435
+ ['show-peek-icon', this.showPeekIcon],
436
+ ['peek', this.peek],
437
+ ]);
580
438
  }
581
439
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: NativeInputWidgetDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
582
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.3.0", type: NativeInputWidgetDirective, isStandalone: true, selector: "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", inputs: { placeholder: "placeholder", value: "value", text: "text", active: "active", checked: "checked", label: "label", options: "options", selected: "selected", editable: "editable", monospace: "monospace", showPeekIcon: ["show-peek-icon", "showPeekIcon"], peek: "peek" }, ngImport: i0 });
440
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.3.0", type: NativeInputWidgetDirective, isStandalone: true, selector: "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", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null }, active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null }, checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null }, editable: { classPropertyName: "editable", publicName: "editable", isSignal: true, isRequired: false, transformFunction: null }, monospace: { classPropertyName: "monospace", publicName: "monospace", isSignal: true, isRequired: false, transformFunction: null }, showPeekIcon: { classPropertyName: "showPeekIcon", publicName: "show-peek-icon", isSignal: true, isRequired: false, transformFunction: null }, peek: { classPropertyName: "peek", publicName: "peek", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
583
441
  }
584
442
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: NativeInputWidgetDirective, decorators: [{
585
443
  type: Directive,
586
444
  args: [{
587
445
  selector: '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',
588
- standalone: true,
589
446
  }]
590
- }], propDecorators: { placeholder: [{
591
- type: Input
592
- }], value: [{
593
- type: Input
594
- }], text: [{
595
- type: Input
596
- }], active: [{
597
- type: Input
598
- }], checked: [{
599
- type: Input
600
- }], label: [{
601
- type: Input
602
- }], options: [{
603
- type: Input
604
- }], selected: [{
605
- type: Input
606
- }], editable: [{
607
- type: Input
608
- }], monospace: [{
609
- type: Input
610
- }], showPeekIcon: [{
611
- type: Input,
612
- args: ['show-peek-icon']
613
- }], peek: [{
614
- type: Input
615
- }] } });
447
+ }], ctorParameters: () => [], propDecorators: { placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], active: [{ type: i0.Input, args: [{ isSignal: true, alias: "active", required: false }] }], checked: [{ type: i0.Input, args: [{ isSignal: true, alias: "checked", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], selected: [{ type: i0.Input, args: [{ isSignal: true, alias: "selected", required: false }] }], editable: [{ type: i0.Input, args: [{ isSignal: true, alias: "editable", required: false }] }], monospace: [{ type: i0.Input, args: [{ isSignal: true, alias: "monospace", required: false }] }], showPeekIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "show-peek-icon", required: false }] }], peek: [{ type: i0.Input, args: [{ isSignal: true, alias: "peek", required: false }] }] } });
616
448
  /**
617
449
  * Typed directive for native virtualized lists and tables (`<ng-list>`, `<ng-table>`).
618
450
  */
619
451
  export class NativeListDirective {
620
- renderer = inject(Renderer2);
621
- el = inject(ElementRef).nativeElement;
622
- set selectionModeAttr(val) {
623
- syncNativeAttr(this.renderer, this.el, 'selection-mode', val);
624
- }
625
- set selectionMode(val) {
626
- syncNativeAttr(this.renderer, this.el, 'selection-mode', val);
627
- }
628
- set showSeparatorsAttr(val) {
629
- syncNativeAttr(this.renderer, this.el, 'show-separators', val);
630
- }
631
- set showSeparators(val) {
632
- syncNativeAttr(this.renderer, this.el, 'show-separators', val);
633
- }
634
- set separators(val) {
635
- syncNativeAttr(this.renderer, this.el, 'separators', val);
452
+ selectionModeAttr = input(undefined, { ...(ngDevMode ? { debugName: "selectionModeAttr" } : /* istanbul ignore next */ {}), alias: 'selection-mode' });
453
+ selectionMode = input(/* @ts-ignore */
454
+ ...(ngDevMode ? [undefined, { debugName: "selectionMode" }] : /* istanbul ignore next */ []));
455
+ showSeparatorsAttr = input(undefined, { ...(ngDevMode ? { debugName: "showSeparatorsAttr" } : /* istanbul ignore next */ {}), alias: 'show-separators' });
456
+ showSeparators = input(/* @ts-ignore */
457
+ ...(ngDevMode ? [undefined, { debugName: "showSeparators" }] : /* istanbul ignore next */ []));
458
+ separators = input(/* @ts-ignore */
459
+ ...(ngDevMode ? [undefined, { debugName: "separators" }] : /* istanbul ignore next */ []));
460
+ resolvedSelectionMode = computed(() => this.selectionMode() ?? this.selectionModeAttr(), /* @ts-ignore */
461
+ ...(ngDevMode ? [{ debugName: "resolvedSelectionMode" }] : /* istanbul ignore next */ []));
462
+ resolvedShowSeparators = computed(() => this.showSeparators() ?? this.showSeparatorsAttr(), /* @ts-ignore */
463
+ ...(ngDevMode ? [{ debugName: "resolvedShowSeparators" }] : /* istanbul ignore next */ []));
464
+ constructor() {
465
+ bindSignalInputs([
466
+ ['selection-mode', this.resolvedSelectionMode],
467
+ ['show-separators', this.resolvedShowSeparators],
468
+ ['separators', this.separators],
469
+ ]);
636
470
  }
637
471
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: NativeListDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
638
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.3.0", type: NativeListDirective, isStandalone: true, selector: "ng-list,ng-table,gtk-list-box,gtk-list-view", inputs: { selectionModeAttr: ["selection-mode", "selectionModeAttr"], selectionMode: "selectionMode", showSeparatorsAttr: ["show-separators", "showSeparatorsAttr"], showSeparators: "showSeparators", separators: "separators" }, ngImport: i0 });
472
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.3.0", type: NativeListDirective, isStandalone: true, selector: "ng-list,ng-table,gtk-list-box,gtk-list-view", inputs: { selectionModeAttr: { classPropertyName: "selectionModeAttr", publicName: "selection-mode", isSignal: true, isRequired: false, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: true, isRequired: false, transformFunction: null }, showSeparatorsAttr: { classPropertyName: "showSeparatorsAttr", publicName: "show-separators", isSignal: true, isRequired: false, transformFunction: null }, showSeparators: { classPropertyName: "showSeparators", publicName: "showSeparators", isSignal: true, isRequired: false, transformFunction: null }, separators: { classPropertyName: "separators", publicName: "separators", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
639
473
  }
640
474
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: NativeListDirective, decorators: [{
641
475
  type: Directive,
642
476
  args: [{
643
477
  selector: 'ng-list,ng-table,gtk-list-box,gtk-list-view',
644
- standalone: true,
645
478
  }]
646
- }], propDecorators: { selectionModeAttr: [{
647
- type: Input,
648
- args: ['selection-mode']
649
- }], selectionMode: [{
650
- type: Input
651
- }], showSeparatorsAttr: [{
652
- type: Input,
653
- args: ['show-separators']
654
- }], showSeparators: [{
655
- type: Input
656
- }], separators: [{
657
- type: Input
658
- }] } });
479
+ }], ctorParameters: () => [], propDecorators: { selectionModeAttr: [{ type: i0.Input, args: [{ isSignal: true, alias: "selection-mode", required: false }] }], selectionMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectionMode", required: false }] }], showSeparatorsAttr: [{ type: i0.Input, args: [{ isSignal: true, alias: "show-separators", required: false }] }], showSeparators: [{ type: i0.Input, args: [{ isSignal: true, alias: "showSeparators", required: false }] }], separators: [{ type: i0.Input, args: [{ isSignal: true, alias: "separators", required: false }] }] } });
659
480
  /**
660
481
  * Typed directive for native anchored popovers and context menus (`<ng-popover>`, `<ng-menu>`).
661
482
  */
662
483
  export class NativePopoverDirective {
663
- renderer = inject(Renderer2);
664
- el = inject(ElementRef).nativeElement;
665
- set open(val) {
666
- syncNativeAttr(this.renderer, this.el, 'open', val);
667
- }
668
- set position(val) {
669
- syncNativeAttr(this.renderer, this.el, 'position', val);
670
- }
671
- set placement(val) {
672
- syncNativeAttr(this.renderer, this.el, 'placement', val);
673
- }
674
- set autohide(val) {
675
- syncNativeAttr(this.renderer, this.el, 'autohide', val);
676
- }
677
- set hasArrowAttr(val) {
678
- syncNativeAttr(this.renderer, this.el, 'has-arrow', val);
679
- }
680
- set hasArrow(val) {
681
- syncNativeAttr(this.renderer, this.el, 'has-arrow', val);
682
- }
683
- set anchor(val) {
684
- syncNativeAttr(this.renderer, this.el, 'anchor', val);
484
+ open = input(/* @ts-ignore */
485
+ ...(ngDevMode ? [undefined, { debugName: "open" }] : /* istanbul ignore next */ []));
486
+ position = input(/* @ts-ignore */
487
+ ...(ngDevMode ? [undefined, { debugName: "position" }] : /* istanbul ignore next */ []));
488
+ placement = input(/* @ts-ignore */
489
+ ...(ngDevMode ? [undefined, { debugName: "placement" }] : /* istanbul ignore next */ []));
490
+ autohide = input(/* @ts-ignore */
491
+ ...(ngDevMode ? [undefined, { debugName: "autohide" }] : /* istanbul ignore next */ []));
492
+ hasArrowAttr = input(undefined, { ...(ngDevMode ? { debugName: "hasArrowAttr" } : /* istanbul ignore next */ {}), alias: 'has-arrow' });
493
+ hasArrow = input(/* @ts-ignore */
494
+ ...(ngDevMode ? [undefined, { debugName: "hasArrow" }] : /* istanbul ignore next */ []));
495
+ anchor = input(/* @ts-ignore */
496
+ ...(ngDevMode ? [undefined, { debugName: "anchor" }] : /* istanbul ignore next */ []));
497
+ resolvedHasArrow = computed(() => this.hasArrow() ?? this.hasArrowAttr(), /* @ts-ignore */
498
+ ...(ngDevMode ? [{ debugName: "resolvedHasArrow" }] : /* istanbul ignore next */ []));
499
+ constructor() {
500
+ bindSignalInputs([
501
+ ['open', this.open],
502
+ ['position', this.position],
503
+ ['placement', this.placement],
504
+ ['autohide', this.autohide],
505
+ ['has-arrow', this.resolvedHasArrow],
506
+ ['anchor', this.anchor],
507
+ ]);
685
508
  }
686
509
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: NativePopoverDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
687
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.3.0", type: NativePopoverDirective, isStandalone: true, selector: "ng-popover,gtk-popover,ng-menu", inputs: { open: "open", position: "position", placement: "placement", autohide: "autohide", hasArrowAttr: ["has-arrow", "hasArrowAttr"], hasArrow: "hasArrow", anchor: "anchor" }, ngImport: i0 });
510
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.3.0", type: NativePopoverDirective, isStandalone: true, selector: "ng-popover,gtk-popover,ng-menu", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: false, transformFunction: null }, autohide: { classPropertyName: "autohide", publicName: "autohide", isSignal: true, isRequired: false, transformFunction: null }, hasArrowAttr: { classPropertyName: "hasArrowAttr", publicName: "has-arrow", isSignal: true, isRequired: false, transformFunction: null }, hasArrow: { classPropertyName: "hasArrow", publicName: "hasArrow", isSignal: true, isRequired: false, transformFunction: null }, anchor: { classPropertyName: "anchor", publicName: "anchor", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
688
511
  }
689
512
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: NativePopoverDirective, decorators: [{
690
513
  type: Directive,
691
514
  args: [{
692
515
  selector: 'ng-popover,gtk-popover,ng-menu',
693
- standalone: true,
694
516
  }]
695
- }], propDecorators: { open: [{
696
- type: Input
697
- }], position: [{
698
- type: Input
699
- }], placement: [{
700
- type: Input
701
- }], autohide: [{
702
- type: Input
703
- }], hasArrowAttr: [{
704
- type: Input,
705
- args: ['has-arrow']
706
- }], hasArrow: [{
707
- type: Input
708
- }], anchor: [{
709
- type: Input
710
- }] } });
517
+ }], ctorParameters: () => [], propDecorators: { open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], placement: [{ type: i0.Input, args: [{ isSignal: true, alias: "placement", required: false }] }], autohide: [{ type: i0.Input, args: [{ isSignal: true, alias: "autohide", required: false }] }], hasArrowAttr: [{ type: i0.Input, args: [{ isSignal: true, alias: "has-arrow", required: false }] }], hasArrow: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasArrow", required: false }] }], anchor: [{ type: i0.Input, args: [{ isSignal: true, alias: "anchor", required: false }] }] } });
711
518
  /**
712
519
  * Typed directive for native numeric range & stepper inputs (`<ng-slider>`, `<ng-spin-button>`),
713
520
  * isolating `min`/`max`/`step` away from boolean toggles for Signal Forms type safety.
714
521
  */
715
522
  export class NativeNumericRangeDirective {
716
- renderer = inject(Renderer2);
717
- el = inject(ElementRef).nativeElement;
718
- set min(val) {
719
- syncNativeAttr(this.renderer, this.el, 'min', val);
720
- }
721
- set max(val) {
722
- syncNativeAttr(this.renderer, this.el, 'max', val);
723
- }
724
- set step(val) {
725
- syncNativeAttr(this.renderer, this.el, 'step', val);
523
+ min = input(/* @ts-ignore */
524
+ ...(ngDevMode ? [undefined, { debugName: "min" }] : /* istanbul ignore next */ []));
525
+ max = input(/* @ts-ignore */
526
+ ...(ngDevMode ? [undefined, { debugName: "max" }] : /* istanbul ignore next */ []));
527
+ step = input(/* @ts-ignore */
528
+ ...(ngDevMode ? [undefined, { debugName: "step" }] : /* istanbul ignore next */ []));
529
+ constructor() {
530
+ bindSignalInputs([
531
+ ['min', this.min],
532
+ ['max', this.max],
533
+ ['step', this.step],
534
+ ]);
726
535
  }
727
536
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: NativeNumericRangeDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
728
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.3.0", type: NativeNumericRangeDirective, isStandalone: true, selector: "ng-slider,ng-scale,gtk-scale,ng-spin-button,gtk-spin-button,adw-spin-row", inputs: { min: "min", max: "max", step: "step" }, ngImport: i0 });
537
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.3.0", type: NativeNumericRangeDirective, isStandalone: true, selector: "ng-slider,ng-scale,gtk-scale,ng-spin-button,gtk-spin-button,adw-spin-row", inputs: { min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, step: { classPropertyName: "step", publicName: "step", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
729
538
  }
730
539
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: NativeNumericRangeDirective, decorators: [{
731
540
  type: Directive,
732
541
  args: [{
733
542
  selector: 'ng-slider,ng-scale,gtk-scale,ng-spin-button,gtk-spin-button,adw-spin-row',
734
- standalone: true,
735
543
  }]
736
- }], propDecorators: { min: [{
737
- type: Input
738
- }], max: [{
739
- type: Input
740
- }], step: [{
741
- type: Input
742
- }] } });
544
+ }], ctorParameters: () => [], propDecorators: { min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], step: [{ type: i0.Input, args: [{ isSignal: true, alias: "step", required: false }] }] } });
743
545
  /**
744
546
  * Convenience directive bundle enabling typed bindings on `<ng-*>`, `<gtk-*>`, and `<adw-*>` tags
745
547
  * in standalone Angular components without `CUSTOM_ELEMENTS_SCHEMA`.