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