@ngstarter-ui/components 21.0.65 → 21.0.67
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/ai/component-registry.json +86 -2
- package/fesm2022/ngstarter-ui-components-form-builder.mjs +20 -9
- package/fesm2022/ngstarter-ui-components-form-builder.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-pdf-builder.mjs +1697 -0
- package/fesm2022/ngstarter-ui-components-pdf-builder.mjs.map +1 -0
- package/fesm2022/ngstarter-ui-components-pdf-viewer.mjs +13 -3
- package/fesm2022/ngstarter-ui-components-pdf-viewer.mjs.map +1 -1
- package/package.json +5 -1
- package/types/ngstarter-ui-components-pdf-builder.d.ts +318 -0
- package/types/ngstarter-ui-components-pdf-viewer.d.ts +2 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"generatedBy": "scripts/generate-ai-metadata.mjs",
|
|
4
4
|
"package": "@ngstarter-ui/components",
|
|
5
5
|
"description": "AI-readable registry for NgStarter UI Angular secondary entry points.",
|
|
6
|
-
"componentCount":
|
|
6
|
+
"componentCount": 127,
|
|
7
7
|
"conventions": {
|
|
8
8
|
"importPattern": "@ngstarter-ui/components/<component>",
|
|
9
9
|
"selectorPrefix": "ngs",
|
|
@@ -7154,6 +7154,90 @@
|
|
|
7154
7154
|
],
|
|
7155
7155
|
"example": null
|
|
7156
7156
|
},
|
|
7157
|
+
{
|
|
7158
|
+
"name": "pdf-builder",
|
|
7159
|
+
"title": "Pdf Builder",
|
|
7160
|
+
"overviewName": "PDF Builder",
|
|
7161
|
+
"category": "libraries",
|
|
7162
|
+
"package": "@ngstarter-ui/components",
|
|
7163
|
+
"importPath": "@ngstarter-ui/components/pdf-builder",
|
|
7164
|
+
"publicApi": "projects/components/pdf-builder/public-api.ts",
|
|
7165
|
+
"sourceRoot": "projects/components/pdf-builder/src",
|
|
7166
|
+
"docsPath": "/libraries/pdf-builder",
|
|
7167
|
+
"docsOverviewSource": "projects/docs/src/app/libraries/pdf-builder/overview/overview.html",
|
|
7168
|
+
"purpose": "The NgStarter Angular PDF Builder component provides a contract document builder workspace with a block palette, layers, editable PDF canvas, selected-block toolbar, and inspector panel for document automation interfaces.",
|
|
7169
|
+
"useWhen": "Choose Pdf Builder when the workflow matches examples such as PDF Builder, Basic pdf builder.",
|
|
7170
|
+
"exampleTopics": [
|
|
7171
|
+
"PDF Builder",
|
|
7172
|
+
"Basic pdf builder"
|
|
7173
|
+
],
|
|
7174
|
+
"minimalExample": "<ngs-pdf-builder />",
|
|
7175
|
+
"exampleFiles": [
|
|
7176
|
+
{
|
|
7177
|
+
"name": "basic-pdf-builder-example",
|
|
7178
|
+
"title": "Basic pdf builder",
|
|
7179
|
+
"file": "projects/docs/src/app/libraries/pdf-builder/_examples/basic-pdf-builder-example/basic-pdf-builder-example.html",
|
|
7180
|
+
"source": "<ngs-pdf-builder />"
|
|
7181
|
+
}
|
|
7182
|
+
],
|
|
7183
|
+
"previewAsset": null,
|
|
7184
|
+
"selectors": [
|
|
7185
|
+
"ngs-pdf-builder"
|
|
7186
|
+
],
|
|
7187
|
+
"exportedSymbols": [
|
|
7188
|
+
"PdfBuilder"
|
|
7189
|
+
],
|
|
7190
|
+
"inputs": [],
|
|
7191
|
+
"outputs": [
|
|
7192
|
+
"createBlankPdf",
|
|
7193
|
+
"exportPdf"
|
|
7194
|
+
],
|
|
7195
|
+
"cssTokens": [
|
|
7196
|
+
"--ngs-button-border-radius",
|
|
7197
|
+
"--ngs-button-content-gap",
|
|
7198
|
+
"--ngs-button-height",
|
|
7199
|
+
"--ngs-button-hover-bg",
|
|
7200
|
+
"--ngs-button-outlined-border",
|
|
7201
|
+
"--ngs-button-outlined-color",
|
|
7202
|
+
"--ngs-button-padding",
|
|
7203
|
+
"--ngs-color-border",
|
|
7204
|
+
"--ngs-color-border-strong",
|
|
7205
|
+
"--ngs-color-danger",
|
|
7206
|
+
"--ngs-color-on-primary-container",
|
|
7207
|
+
"--ngs-color-on-surface",
|
|
7208
|
+
"--ngs-color-on-surface-variant",
|
|
7209
|
+
"--ngs-color-on-warning-container",
|
|
7210
|
+
"--ngs-color-primary",
|
|
7211
|
+
"--ngs-color-primary-container",
|
|
7212
|
+
"--ngs-color-surface",
|
|
7213
|
+
"--ngs-color-surface-container-low",
|
|
7214
|
+
"--ngs-color-surface-container-lowest",
|
|
7215
|
+
"--ngs-color-warning",
|
|
7216
|
+
"--ngs-color-warning-container",
|
|
7217
|
+
"--ngs-font-family-mono",
|
|
7218
|
+
"--ngs-font-size-2xl",
|
|
7219
|
+
"--ngs-font-size-md",
|
|
7220
|
+
"--ngs-font-size-sm",
|
|
7221
|
+
"--ngs-font-size-xl",
|
|
7222
|
+
"--ngs-font-size-xs",
|
|
7223
|
+
"--ngs-pdf-builder-library-width",
|
|
7224
|
+
"--ngs-pdf-viewer-aside-width",
|
|
7225
|
+
"--ngs-pdf-viewer-height",
|
|
7226
|
+
"--ngs-pdf-viewer-min-height",
|
|
7227
|
+
"--ngs-pdf-viewer-page-gap",
|
|
7228
|
+
"--ngs-pdf-viewer-page-padding",
|
|
7229
|
+
"--ngs-pdf-viewer-sidebar-width",
|
|
7230
|
+
"--ngs-radius-current",
|
|
7231
|
+
"--ngs-shadow-lg",
|
|
7232
|
+
"--ngs-shadow-md",
|
|
7233
|
+
"--ngs-shadow-sm",
|
|
7234
|
+
"--ngs-shadow-xs",
|
|
7235
|
+
"--ngs-state-focus-ring",
|
|
7236
|
+
"--ngs-tab-label-height",
|
|
7237
|
+
"--ngs-tree-node-gap"
|
|
7238
|
+
],
|
|
7239
|
+
"example": null
|
|
7240
|
+
},
|
|
7157
7241
|
{
|
|
7158
7242
|
"name": "pdf-viewer",
|
|
7159
7243
|
"title": "Pdf Viewer",
|
|
@@ -7184,7 +7268,6 @@
|
|
|
7184
7268
|
"[ngsPdfViewerAnnotation]",
|
|
7185
7269
|
"[ngsPdfViewerAnnotationDef]",
|
|
7186
7270
|
"ngs-pdf-viewer",
|
|
7187
|
-
"ngs-pdf-viewer-annotation-test-host",
|
|
7188
7271
|
"ngs-pdf-viewer-annotations",
|
|
7189
7272
|
"ngs-pdf-viewer-search"
|
|
7190
7273
|
],
|
|
@@ -7219,6 +7302,7 @@
|
|
|
7219
7302
|
"annotationsDataSource",
|
|
7220
7303
|
"annotationTypeProperty",
|
|
7221
7304
|
"documentName",
|
|
7305
|
+
"enableCommandWheelZoom",
|
|
7222
7306
|
"maxRenderDimension",
|
|
7223
7307
|
"maxRenderPixels",
|
|
7224
7308
|
"maxScale",
|
|
@@ -2343,24 +2343,35 @@ class FormBuilderFieldHost {
|
|
|
2343
2343
|
statusSubscription.unsubscribe();
|
|
2344
2344
|
});
|
|
2345
2345
|
});
|
|
2346
|
-
effect(
|
|
2346
|
+
effect(onCleanup => {
|
|
2347
|
+
let cancelled = false;
|
|
2347
2348
|
const field = this.field();
|
|
2348
2349
|
const control = this.control();
|
|
2349
2350
|
const definitions = this.definitions();
|
|
2350
2351
|
const viewContainer = this.anchor();
|
|
2351
|
-
const
|
|
2352
|
+
const definition = definitions.find(definition => definition.type === field.type);
|
|
2353
|
+
const renderer = definition?.renderer;
|
|
2354
|
+
const readonly = this.readonly();
|
|
2355
|
+
onCleanup(() => {
|
|
2356
|
+
cancelled = true;
|
|
2357
|
+
});
|
|
2352
2358
|
viewContainer.clear();
|
|
2353
2359
|
this.customLoaded.set(false);
|
|
2354
2360
|
if (!renderer) {
|
|
2355
2361
|
return;
|
|
2356
2362
|
}
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2363
|
+
Promise.resolve(renderer()).then(componentType => {
|
|
2364
|
+
if (cancelled) {
|
|
2365
|
+
return;
|
|
2366
|
+
}
|
|
2367
|
+
viewContainer.clear();
|
|
2368
|
+
const componentRef = viewContainer.createComponent(componentType);
|
|
2369
|
+
componentRef.setInput('field', field);
|
|
2370
|
+
componentRef.setInput('control', control);
|
|
2371
|
+
componentRef.setInput('readonly', readonly);
|
|
2372
|
+
componentRef.setInput('definition', definition);
|
|
2373
|
+
this.customLoaded.set(true);
|
|
2374
|
+
});
|
|
2364
2375
|
});
|
|
2365
2376
|
}
|
|
2366
2377
|
onSignatureSaved(signature) {
|