@mosaicoo/form-angular 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/fesm2022/mosaicoo-form-angular-designer.mjs +120 -6
- package/fesm2022/mosaicoo-form-angular-designer.mjs.map +1 -1
- package/fesm2022/mosaicoo-form-angular.mjs +4 -4
- package/fesm2022/mosaicoo-form-angular.mjs.map +1 -1
- package/package.json +2 -2
- package/types/mosaicoo-form-angular-designer.d.ts +25 -0
|
@@ -111,9 +111,12 @@ interface DesignerLabels {
|
|
|
111
111
|
redo: string;
|
|
112
112
|
moveUp: string;
|
|
113
113
|
moveDown: string;
|
|
114
|
+
nest: string;
|
|
115
|
+
unnest: string;
|
|
114
116
|
duplicate: string;
|
|
115
117
|
delete: string;
|
|
116
118
|
saveBlock: string;
|
|
119
|
+
viewport: string;
|
|
117
120
|
workspace: string;
|
|
118
121
|
panels: string;
|
|
119
122
|
presets: string;
|
|
@@ -204,9 +207,12 @@ declare class FormDesignerComponent {
|
|
|
204
207
|
redo: string;
|
|
205
208
|
moveUp: string;
|
|
206
209
|
moveDown: string;
|
|
210
|
+
nest: string;
|
|
211
|
+
unnest: string;
|
|
207
212
|
duplicate: string;
|
|
208
213
|
delete: string;
|
|
209
214
|
saveBlock: string;
|
|
215
|
+
viewport: string;
|
|
210
216
|
workspace: string;
|
|
211
217
|
panels: string;
|
|
212
218
|
presets: string;
|
|
@@ -240,6 +246,15 @@ declare class FormDesignerComponent {
|
|
|
240
246
|
readonly selected: _angular_core.WritableSignal<NodePath | null>;
|
|
241
247
|
readonly preview: _angular_core.WritableSignal<boolean>;
|
|
242
248
|
readonly previewData: _angular_core.WritableSignal<Record<string, unknown>>;
|
|
249
|
+
/** Preview viewport: the frame drives the form's container queries. */
|
|
250
|
+
readonly viewport: _angular_core.WritableSignal<"desktop" | "tablet" | "mobile">;
|
|
251
|
+
readonly viewports: Array<{
|
|
252
|
+
id: 'desktop' | 'tablet' | 'mobile';
|
|
253
|
+
label: string;
|
|
254
|
+
icon: string;
|
|
255
|
+
width: number | null;
|
|
256
|
+
}>;
|
|
257
|
+
viewportWidth(): number | null;
|
|
243
258
|
readonly dialog: _angular_core.WritableSignal<"import" | "export" | null>;
|
|
244
259
|
readonly importError: _angular_core.WritableSignal<string>;
|
|
245
260
|
readonly showDiagnostics: _angular_core.WritableSignal<boolean>;
|
|
@@ -298,6 +313,16 @@ declare class FormDesignerComponent {
|
|
|
298
313
|
duplicateSelected(): void;
|
|
299
314
|
moveSelected(delta: -1 | 1): void;
|
|
300
315
|
applyPatch(event: InspectorPatch): void;
|
|
316
|
+
/** Whether the selection can be nested into the container above it. */
|
|
317
|
+
canNest(): boolean;
|
|
318
|
+
canUnnest(): boolean;
|
|
319
|
+
/**
|
|
320
|
+
* Nests the selection into the container right above it (Alt+→) — the
|
|
321
|
+
* keyboard equivalent of dragging a field into a panel.
|
|
322
|
+
*/
|
|
323
|
+
nestSelected(): void;
|
|
324
|
+
/** Moves the selection out of its container, right after it (Alt+←). */
|
|
325
|
+
unnestSelected(): void;
|
|
301
326
|
/** Saves the selected node (with its subtree) as a reusable block. */
|
|
302
327
|
saveAsBlock(): void;
|
|
303
328
|
removeBlock(id: string): void;
|