@ngstarter-ui/components 22.1.4 → 22.2.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.
Files changed (79) hide show
  1. package/ai/component-registry.json +140 -9
  2. package/fesm2022/ngstarter-ui-components-content-editor-attachment-block-B2GUlWO2.mjs +54 -0
  3. package/fesm2022/ngstarter-ui-components-content-editor-attachment-block-B2GUlWO2.mjs.map +1 -0
  4. package/fesm2022/ngstarter-ui-components-content-editor-block-base-BHAxKEOT.mjs +47 -0
  5. package/fesm2022/ngstarter-ui-components-content-editor-block-base-BHAxKEOT.mjs.map +1 -0
  6. package/fesm2022/ngstarter-ui-components-content-editor-callout-block-Cnga7Z-6.mjs +27 -0
  7. package/fesm2022/ngstarter-ui-components-content-editor-callout-block-Cnga7Z-6.mjs.map +1 -0
  8. package/fesm2022/{ngstarter-ui-components-content-editor-code-block.component-BbK5fCoE.mjs → ngstarter-ui-components-content-editor-code-block.component-DSdVOJtH.mjs} +49 -15
  9. package/fesm2022/ngstarter-ui-components-content-editor-code-block.component-DSdVOJtH.mjs.map +1 -0
  10. package/fesm2022/{ngstarter-ui-components-content-editor-divider-block.component-B5wyMHjr.mjs → ngstarter-ui-components-content-editor-divider-block.component-D1nXMRXD.mjs} +5 -3
  11. package/fesm2022/{ngstarter-ui-components-content-editor-divider-block.component-B5wyMHjr.mjs.map → ngstarter-ui-components-content-editor-divider-block.component-D1nXMRXD.mjs.map} +1 -1
  12. package/fesm2022/{ngstarter-ui-components-content-editor-embed-block-DGqupBLe.mjs → ngstarter-ui-components-content-editor-embed-block-DhFxtMQS.mjs} +16 -4
  13. package/fesm2022/ngstarter-ui-components-content-editor-embed-block-DhFxtMQS.mjs.map +1 -0
  14. package/fesm2022/ngstarter-ui-components-content-editor-gallery-block-cEy-dCMa.mjs +103 -0
  15. package/fesm2022/ngstarter-ui-components-content-editor-gallery-block-cEy-dCMa.mjs.map +1 -0
  16. package/fesm2022/ngstarter-ui-components-content-editor-grid-block-DFLGRFiO.mjs +66 -0
  17. package/fesm2022/ngstarter-ui-components-content-editor-grid-block-DFLGRFiO.mjs.map +1 -0
  18. package/fesm2022/{ngstarter-ui-components-content-editor-heading-block.component-D1s2yalT.mjs → ngstarter-ui-components-content-editor-heading-block.component-BYpctSPe.mjs} +23 -14
  19. package/fesm2022/ngstarter-ui-components-content-editor-heading-block.component-BYpctSPe.mjs.map +1 -0
  20. package/fesm2022/{ngstarter-ui-components-content-editor-image-block.component-D75DrPNq.mjs → ngstarter-ui-components-content-editor-image-block.component-B3MnANpi.mjs} +20 -7
  21. package/fesm2022/ngstarter-ui-components-content-editor-image-block.component-B3MnANpi.mjs.map +1 -0
  22. package/fesm2022/{ngstarter-ui-components-content-editor-list-block.component-B7pDlrQ_.mjs → ngstarter-ui-components-content-editor-list-block.component-6SMBxIl4.mjs} +28 -17
  23. package/fesm2022/ngstarter-ui-components-content-editor-list-block.component-6SMBxIl4.mjs.map +1 -0
  24. package/fesm2022/ngstarter-ui-components-content-editor-nested-blocks-DSY7xfzf.mjs +117 -0
  25. package/fesm2022/ngstarter-ui-components-content-editor-nested-blocks-DSY7xfzf.mjs.map +1 -0
  26. package/fesm2022/ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor--rb3-UuO.mjs +3310 -0
  27. package/fesm2022/ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor--rb3-UuO.mjs.map +1 -0
  28. package/fesm2022/{ngstarter-ui-components-content-editor-paragraph-block.component-CVV2f-ON.mjs → ngstarter-ui-components-content-editor-paragraph-block.component-JVxf_Cdx.mjs} +25 -14
  29. package/fesm2022/ngstarter-ui-components-content-editor-paragraph-block.component-JVxf_Cdx.mjs.map +1 -0
  30. package/fesm2022/{ngstarter-ui-components-content-editor-quote-block.component-CVb-bkJw.mjs → ngstarter-ui-components-content-editor-quote-block.component-7EO7z7Sr.mjs} +29 -16
  31. package/fesm2022/ngstarter-ui-components-content-editor-quote-block.component-7EO7z7Sr.mjs.map +1 -0
  32. package/fesm2022/{ngstarter-ui-components-content-editor-table-block.component-DSpLBC4V.mjs → ngstarter-ui-components-content-editor-table-block.component-CJS-IBHw.mjs} +28 -13
  33. package/fesm2022/ngstarter-ui-components-content-editor-table-block.component-CJS-IBHw.mjs.map +1 -0
  34. package/fesm2022/ngstarter-ui-components-content-editor-toggle-block-B01lhY_V.mjs +21 -0
  35. package/fesm2022/ngstarter-ui-components-content-editor-toggle-block-B01lhY_V.mjs.map +1 -0
  36. package/fesm2022/ngstarter-ui-components-content-editor-upload-block-base-D9ELpJr-.mjs +29 -0
  37. package/fesm2022/ngstarter-ui-components-content-editor-upload-block-base-D9ELpJr-.mjs.map +1 -0
  38. package/fesm2022/{ngstarter-ui-components-content-editor-video-block.component-D3U8uXIy.mjs → ngstarter-ui-components-content-editor-video-block.component-DQUPVDwV.mjs} +19 -5
  39. package/fesm2022/ngstarter-ui-components-content-editor-video-block.component-DQUPVDwV.mjs.map +1 -0
  40. package/fesm2022/ngstarter-ui-components-content-editor.mjs +1 -1
  41. package/fesm2022/ngstarter-ui-components-data-view.mjs +2 -2
  42. package/fesm2022/ngstarter-ui-components-data-view.mjs.map +1 -1
  43. package/fesm2022/ngstarter-ui-components-filter-builder.mjs +1 -1
  44. package/fesm2022/ngstarter-ui-components-filter-builder.mjs.map +1 -1
  45. package/fesm2022/ngstarter-ui-components-headless-editor.mjs +90 -12
  46. package/fesm2022/ngstarter-ui-components-headless-editor.mjs.map +1 -1
  47. package/fesm2022/ngstarter-ui-components-image-designer.mjs +1 -1
  48. package/fesm2022/ngstarter-ui-components-image-designer.mjs.map +1 -1
  49. package/fesm2022/ngstarter-ui-components-kanban-board.mjs +1 -1
  50. package/fesm2022/ngstarter-ui-components-kanban-board.mjs.map +1 -1
  51. package/fesm2022/ngstarter-ui-components-menu.mjs +9 -5
  52. package/fesm2022/ngstarter-ui-components-menu.mjs.map +1 -1
  53. package/fesm2022/ngstarter-ui-components-pdf-builder.mjs +1 -1
  54. package/fesm2022/ngstarter-ui-components-pdf-builder.mjs.map +1 -1
  55. package/fesm2022/ngstarter-ui-components-pdf-viewer.mjs +1 -1
  56. package/fesm2022/ngstarter-ui-components-pdf-viewer.mjs.map +1 -1
  57. package/fesm2022/ngstarter-ui-components-phone-input.mjs +1 -1
  58. package/fesm2022/ngstarter-ui-components-phone-input.mjs.map +1 -1
  59. package/fesm2022/ngstarter-ui-components-signature-pad.mjs +1 -1
  60. package/fesm2022/ngstarter-ui-components-signature-pad.mjs.map +1 -1
  61. package/fesm2022/ngstarter-ui-components-upload.mjs +2 -2
  62. package/fesm2022/ngstarter-ui-components-upload.mjs.map +1 -1
  63. package/package.json +1 -1
  64. package/types/ngstarter-ui-components-content-editor.d.ts +303 -83
  65. package/types/ngstarter-ui-components-headless-editor.d.ts +17 -2
  66. package/types/ngstarter-ui-components-menu.d.ts +3 -1
  67. package/fesm2022/ngstarter-ui-components-content-editor-code-block.component-BbK5fCoE.mjs.map +0 -1
  68. package/fesm2022/ngstarter-ui-components-content-editor-content-editor-content-editable.directive-BOXOHcSo.mjs +0 -127
  69. package/fesm2022/ngstarter-ui-components-content-editor-content-editor-content-editable.directive-BOXOHcSo.mjs.map +0 -1
  70. package/fesm2022/ngstarter-ui-components-content-editor-embed-block-DGqupBLe.mjs.map +0 -1
  71. package/fesm2022/ngstarter-ui-components-content-editor-heading-block.component-D1s2yalT.mjs.map +0 -1
  72. package/fesm2022/ngstarter-ui-components-content-editor-image-block.component-D75DrPNq.mjs.map +0 -1
  73. package/fesm2022/ngstarter-ui-components-content-editor-list-block.component-B7pDlrQ_.mjs.map +0 -1
  74. package/fesm2022/ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-CV959OGj.mjs +0 -3102
  75. package/fesm2022/ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-CV959OGj.mjs.map +0 -1
  76. package/fesm2022/ngstarter-ui-components-content-editor-paragraph-block.component-CVV2f-ON.mjs.map +0 -1
  77. package/fesm2022/ngstarter-ui-components-content-editor-quote-block.component-CVb-bkJw.mjs.map +0 -1
  78. package/fesm2022/ngstarter-ui-components-content-editor-table-block.component-DSpLBC4V.mjs.map +0 -1
  79. package/fesm2022/ngstarter-ui-components-content-editor-video-block.component-D3U8uXIy.mjs.map +0 -1
@@ -2405,7 +2405,10 @@
2405
2405
  "purpose": "Provide a block-based builder for structured long-form content.",
2406
2406
  "useWhen": "Use ngs-content-editor-builder for articles, pages, documentation, knowledge base entries, rich notes, editable descriptions, landing content, and CMS-like editing workflows built from blocks such as paragraph, heading, list, quote, code, divider, table, image, video, and embed. Use ngs-content-editor-renderer for saved block previews and display-only content. Do not use for quick messages, comments, threads, or reply composers; use CommentEditor for that. Do not use for a simple text field or small rich text input; use TextEditor, Input, or Textarea depending on the task.",
2407
2407
  "exampleTopics": [
2408
- "Content Editor"
2408
+ "Content Editor",
2409
+ "Document model",
2410
+ "Content and layout blocks",
2411
+ "HTML export and configuration"
2409
2412
  ],
2410
2413
  "minimalExample": null,
2411
2414
  "exampleFiles": [],
@@ -2424,17 +2427,29 @@
2424
2427
  "ngs-audio-recorder",
2425
2428
  "ngs-code-block",
2426
2429
  "ngs-command-bar",
2430
+ "ngs-content-editor-attachment-block",
2431
+ "ngs-content-editor-attachment-renderer",
2427
2432
  "ngs-content-editor-builder",
2433
+ "ngs-content-editor-callout-block",
2434
+ "ngs-content-editor-callout-renderer",
2428
2435
  "ngs-content-editor-code-renderer",
2429
2436
  "ngs-content-editor-divider-renderer",
2430
2437
  "ngs-content-editor-embed-renderer",
2438
+ "ngs-content-editor-gallery-block",
2439
+ "ngs-content-editor-gallery-renderer",
2440
+ "ngs-content-editor-grid-block",
2441
+ "ngs-content-editor-grid-renderer",
2442
+ "ngs-content-editor-grid-settings-panel",
2431
2443
  "ngs-content-editor-heading-renderer",
2432
2444
  "ngs-content-editor-image-renderer",
2433
2445
  "ngs-content-editor-list-renderer",
2446
+ "ngs-content-editor-nested-blocks",
2434
2447
  "ngs-content-editor-paragraph-renderer",
2435
2448
  "ngs-content-editor-quote-renderer",
2436
2449
  "ngs-content-editor-renderer",
2437
2450
  "ngs-content-editor-table-renderer",
2451
+ "ngs-content-editor-toggle-block",
2452
+ "ngs-content-editor-toggle-renderer",
2438
2453
  "ngs-content-editor-video-renderer",
2439
2454
  "ngs-divider-block",
2440
2455
  "ngs-draggable-table",
@@ -2456,6 +2471,7 @@
2456
2471
  "BlockSelectionDirective",
2457
2472
  "Change",
2458
2473
  "Changeset",
2474
+ "cloneContentEditorValue",
2459
2475
  "CodeBlockComponent",
2460
2476
  "CodeBlockDef",
2461
2477
  "CommandBarComponent",
@@ -2463,52 +2479,123 @@
2463
2479
  "CONTENT_BUILDER",
2464
2480
  "CONTENT_EDITOR_BLOCK",
2465
2481
  "CONTENT_EDITOR_BLOCK_RENDERERS",
2482
+ "CONTENT_EDITOR_CALLOUT_HTML_STYLES",
2483
+ "CONTENT_EDITOR_CONFIG",
2484
+ "CONTENT_EDITOR_DEFAULT_HTML_CONVERTERS",
2466
2485
  "CONTENT_EDITOR_DEFAULT_RENDERERS",
2486
+ "CONTENT_EDITOR_EXTRA_BLOCK_DEFS",
2487
+ "CONTENT_EDITOR_EXTRA_SUGGESTIONS",
2488
+ "CONTENT_EDITOR_GALLERY_HTML_STYLES",
2489
+ "CONTENT_EDITOR_GRID_HTML_STYLES",
2467
2490
  "ContentBuilderComponent",
2468
2491
  "ContentBuilderStore",
2469
2492
  "ContentChangesObserverDirective",
2493
+ "ContentEditorAttachmentBlock",
2494
+ "ContentEditorAttachmentContent",
2495
+ "ContentEditorAttachmentRenderer",
2496
+ "contentEditorAttachmentToHtml",
2470
2497
  "ContentEditorBlock",
2498
+ "ContentEditorBlockBase",
2499
+ "ContentEditorBlockConfig",
2471
2500
  "ContentEditorBlockDef",
2472
2501
  "ContentEditorBlockEmpty",
2502
+ "ContentEditorBlockHtmlConverter",
2503
+ "ContentEditorBlockInsertionTarget",
2473
2504
  "ContentEditorBlockRendererDef",
2474
2505
  "ContentEditorBlockRendererInputs",
2475
2506
  "ContentEditorBlockRendererInputSignals",
2507
+ "ContentEditorBlockScope",
2508
+ "contentEditorBlockToHtml",
2509
+ "contentEditorBlockView",
2510
+ "ContentEditorBlockView",
2511
+ "ContentEditorCalloutBlock",
2512
+ "ContentEditorCalloutRenderer",
2513
+ "ContentEditorCalloutSettings",
2514
+ "contentEditorCalloutToHtml",
2515
+ "ContentEditorCalloutVariant",
2516
+ "contentEditorChildCollections",
2476
2517
  "ContentEditorCodeBlockSettings",
2477
2518
  "ContentEditorCodeLanguage",
2478
2519
  "ContentEditorCodeRenderer",
2479
2520
  "ContentEditorCodeRendererSettings",
2521
+ "contentEditorCodeToHtml",
2522
+ "contentEditorCollection",
2523
+ "ContentEditorConfig",
2480
2524
  "ContentEditorContentEditableDirective",
2481
2525
  "ContentEditorDataBlock",
2482
2526
  "ContentEditorDividerRenderer",
2527
+ "contentEditorDividerToHtml",
2528
+ "ContentEditorDocument",
2483
2529
  "ContentEditorEmbedBlockSettings",
2484
2530
  "ContentEditorEmbedContent",
2485
2531
  "ContentEditorEmbedRenderer",
2532
+ "contentEditorEmbedToHtml",
2533
+ "contentEditorFileSize",
2534
+ "ContentEditorGalleryBlock",
2535
+ "ContentEditorGalleryContent",
2536
+ "ContentEditorGalleryImage",
2537
+ "ContentEditorGalleryRenderer",
2538
+ "contentEditorGalleryToHtml",
2539
+ "ContentEditorGridBlock",
2540
+ "ContentEditorGridCell",
2541
+ "ContentEditorGridContent",
2542
+ "ContentEditorGridGap",
2543
+ "ContentEditorGridRenderer",
2544
+ "contentEditorGridSettings",
2545
+ "ContentEditorGridSettings",
2546
+ "ContentEditorGridSettingsPanel",
2547
+ "contentEditorGridToHtml",
2486
2548
  "ContentEditorHeadingBlockSettings",
2487
2549
  "ContentEditorHeadingRenderer",
2550
+ "contentEditorHeadingToHtml",
2551
+ "ContentEditorHtmlContext",
2552
+ "ContentEditorHtmlSerializer",
2553
+ "ContentEditorHtmlUrlKind",
2488
2554
  "ContentEditorImageBlockSettings",
2489
2555
  "ContentEditorImageContent",
2490
2556
  "ContentEditorImageRenderer",
2557
+ "contentEditorImageToHtml",
2491
2558
  "ContentEditorItemProperty",
2492
2559
  "ContentEditorListItem",
2493
2560
  "ContentEditorListRenderer",
2494
2561
  "ContentEditorListSettings",
2562
+ "contentEditorListToHtml",
2563
+ "ContentEditorMarkHtmlConverter",
2564
+ "contentEditorNativeBlock",
2565
+ "ContentEditorNestedBlocks",
2495
2566
  "ContentEditorOptions",
2496
2567
  "ContentEditorParagraphRenderer",
2568
+ "contentEditorParagraphToHtml",
2497
2569
  "ContentEditorQuoteBlock",
2498
2570
  "ContentEditorQuoteBlockContent",
2499
2571
  "ContentEditorQuoteRenderer",
2500
2572
  "ContentEditorQuoteRendererContent",
2501
2573
  "ContentEditorQuoteRendererContentPart",
2574
+ "contentEditorQuoteToHtml",
2502
2575
  "ContentEditorRenderer",
2576
+ "ContentEditorRendererBase",
2577
+ "contentEditorResourceUrl",
2503
2578
  "ContentEditorSuggestionHeading",
2504
2579
  "ContentEditorSuggestionItem",
2505
2580
  "ContentEditorTableBlockSettings",
2506
2581
  "ContentEditorTableCell",
2507
2582
  "ContentEditorTableRenderer",
2583
+ "contentEditorTableToHtml",
2584
+ "contentEditorText",
2585
+ "ContentEditorText",
2508
2586
  "ContentEditorTextAlignment",
2587
+ "ContentEditorToggleBlock",
2588
+ "ContentEditorToggleContent",
2589
+ "ContentEditorToggleRenderer",
2590
+ "ContentEditorToggleSettings",
2591
+ "contentEditorToggleToHtml",
2592
+ "contentEditorToHtml",
2593
+ "ContentEditorUploadBlockBase",
2594
+ "ContentEditorUploadFn",
2509
2595
  "ContentEditorVideoBlockSettings",
2510
2596
  "ContentEditorVideoContent",
2511
2597
  "ContentEditorVideoRenderer",
2598
+ "contentEditorVideoToHtml",
2512
2599
  "ContentObserverDirective",
2513
2600
  "CursorController",
2514
2601
  "DataAvailableHandler",
@@ -2516,42 +2603,49 @@
2516
2603
  "DividerBlockDef",
2517
2604
  "DraggableTableComponent",
2518
2605
  "EditLinkDialog",
2519
- "ElementAttributes",
2520
2606
  "EmbedBlock",
2521
2607
  "EmbedService",
2608
+ "emptyGridCell",
2609
+ "emptyParagraph",
2610
+ "escapeContentEditorHtml",
2611
+ "findContentEditorBlock",
2522
2612
  "FocusMonitorDirective",
2523
2613
  "getDimensionAttribute",
2524
- "getHtmlContent",
2525
2614
  "getTextAlignment",
2526
2615
  "HeadingBlockComponent",
2527
2616
  "HeadingBlockDef",
2528
2617
  "ImageBlockComponent",
2529
2618
  "ImageBlockDef",
2619
+ "isContentEditorBlockEmpty",
2530
2620
  "ISelectionPopupComponent",
2531
2621
  "ListBlockComponent",
2532
2622
  "ListBlockDef",
2623
+ "mergeContentEditorConfig",
2533
2624
  "MicrophoneRecorder",
2534
2625
  "MicrophoneRecorderOptions",
2535
2626
  "ParagraphBlockComponent",
2536
2627
  "ParagraphBlockDef",
2628
+ "provideContentEditor",
2629
+ "provideContentEditorConfig",
2537
2630
  "provideContentEditorRenderer",
2538
2631
  "provideContentEditorRenderers",
2539
2632
  "QuoteBlockComponent",
2540
2633
  "QuoteBlockDef",
2634
+ "readContentEditorFile",
2541
2635
  "RecognitionErrorHandler",
2542
2636
  "RecognitionLifeCycleHandler",
2543
2637
  "RecognitionResult",
2544
2638
  "RecognitionResultHandler",
2639
+ "replaceContentEditorCollection",
2545
2640
  "ResizableTableDirective",
2641
+ "safeContentEditorHtmlUrl",
2546
2642
  "StopHandler",
2547
2643
  "TableBlockComponent",
2548
2644
  "TableBlockDef",
2549
2645
  "TableColumnsManagerDirective",
2550
2646
  "TableRowsManagerDirective",
2551
- "TextAlignment",
2552
2647
  "TextColor",
2553
2648
  "TextColorComponent",
2554
- "TextHighlightService",
2555
2649
  "TextSelectionPopupDirective",
2556
2650
  "VideoBlockComponent"
2557
2651
  ],
@@ -2562,9 +2656,11 @@
2562
2656
  "autoScrollContainerSelector",
2563
2657
  "backgroundColors",
2564
2658
  "block",
2659
+ "blocks",
2565
2660
  "blockSelector",
2566
2661
  "captionPlaceholder",
2567
2662
  "closestContentObserverClass",
2663
+ "config",
2568
2664
  "content",
2569
2665
  "contentChangedDelay",
2570
2666
  "detectAddedNode",
@@ -2584,11 +2680,13 @@
2584
2680
  "recentlyUsed",
2585
2681
  "recognitionLang",
2586
2682
  "resizeHandleWidth",
2683
+ "scope",
2587
2684
  "scrollContainer",
2588
2685
  "selectedBackgroundColor",
2589
2686
  "selectedTextColor",
2590
2687
  "selectionAreaClass",
2591
2688
  "settings",
2689
+ "singleLine",
2592
2690
  "stopTimeout",
2593
2691
  "suggestions",
2594
2692
  "targetComponent",
@@ -2597,6 +2695,7 @@
2597
2695
  ],
2598
2696
  "outputs": [
2599
2697
  "backgroundColorChanged",
2698
+ "cellAdded",
2600
2699
  "columnAdded",
2601
2700
  "columnDeleted",
2602
2701
  "columnManagingEnd",
@@ -2622,28 +2721,51 @@
2622
2721
  "textColorChanged"
2623
2722
  ],
2624
2723
  "cssTokens": [
2724
+ "--ngs-button-bg",
2725
+ "--ngs-button-color",
2726
+ "--ngs-button-content-gap",
2727
+ "--ngs-button-height",
2728
+ "--ngs-button-hover-bg",
2729
+ "--ngs-button-padding",
2730
+ "--ngs-carousel-gap",
2731
+ "--ngs-color-black",
2625
2732
  "--ngs-color-border",
2626
2733
  "--ngs-color-neutral-200",
2627
2734
  "--ngs-color-neutral-50",
2628
2735
  "--ngs-color-neutral-500",
2629
2736
  "--ngs-color-neutral-600",
2737
+ "--ngs-color-on-primary",
2630
2738
  "--ngs-color-on-surface",
2739
+ "--ngs-color-on-surface-variant",
2740
+ "--ngs-color-outline-variant",
2631
2741
  "--ngs-color-primary",
2632
2742
  "--ngs-color-primary-100",
2633
2743
  "--ngs-color-primary-300",
2634
2744
  "--ngs-color-primary-400",
2635
- "--ngs-color-secondary-fixed",
2745
+ "--ngs-color-surface",
2636
2746
  "--ngs-color-surface-container",
2637
2747
  "--ngs-color-surface-container-high",
2638
- "--ngs-color-surface-container-highest",
2639
2748
  "--ngs-color-surface-container-low",
2749
+ "--ngs-color-white",
2640
2750
  "--ngs-content-editor-builder-content-width",
2751
+ "--ngs-content-editor-nested-controls-offset",
2641
2752
  "--ngs-content-editor-renderer-block-gap",
2753
+ "--ngs-expansion-panel-content-padding",
2642
2754
  "--ngs-font-size-sm",
2755
+ "--ngs-form-field-border-color",
2756
+ "--ngs-form-field-border-width",
2757
+ "--ngs-form-field-container-min-height",
2758
+ "--ngs-form-field-input-height",
2643
2759
  "--ngs-list-list-item-one-line-container-height",
2760
+ "--ngs-radius-full",
2644
2761
  "--ngs-radius-lg",
2762
+ "--ngs-radius-md",
2645
2763
  "--ngs-radius-sm",
2764
+ "--ngs-segmented-button-selected-bg",
2765
+ "--ngs-segmented-button-selected-color",
2646
2766
  "--ngs-shadow-lg",
2767
+ "--ngs-shadow-sm",
2768
+ "--ngs-state-focus-ring",
2647
2769
  "--ngs-upload-area-padding"
2648
2770
  ],
2649
2771
  "example": null
@@ -5011,6 +5133,7 @@
5011
5133
  "isNgsHeadlessEditorDocumentEmpty",
5012
5134
  "isNgsHeadlessEditorTable",
5013
5135
  "isNgsHeadlessEditorTextContent",
5136
+ "linkEditorPlugin",
5014
5137
  "mentionEditorPlugin",
5015
5138
  "NGS_HEADLESS_EDITOR_BACKGROUND_COLOR_MARK",
5016
5139
  "NGS_HEADLESS_EDITOR_HISTORY_GROUP_DELAY",
@@ -5021,6 +5144,7 @@
5021
5144
  "NGS_HEADLESS_EDITOR_MENTION_OPTIONS",
5022
5145
  "NGS_HEADLESS_EDITOR_PLUGINS",
5023
5146
  "NGS_HEADLESS_EDITOR_SET_BACKGROUND_COLOR",
5147
+ "NGS_HEADLESS_EDITOR_SET_LINK",
5024
5148
  "NGS_HEADLESS_EDITOR_SET_TEXT_COLOR",
5025
5149
  "NGS_HEADLESS_EDITOR_TABLE_ADD_COLUMN_AFTER",
5026
5150
  "NGS_HEADLESS_EDITOR_TABLE_ADD_COLUMN_BEFORE",
@@ -5037,7 +5161,11 @@
5037
5161
  "NGS_HEADLESS_EDITOR_TOGGLE_CODE",
5038
5162
  "NGS_HEADLESS_EDITOR_TOGGLE_ITALIC",
5039
5163
  "NGS_HEADLESS_EDITOR_TOGGLE_STRIKE",
5164
+ "NGS_HEADLESS_EDITOR_TOGGLE_SUBSCRIPT",
5165
+ "NGS_HEADLESS_EDITOR_TOGGLE_SUPERSCRIPT",
5166
+ "NGS_HEADLESS_EDITOR_TOGGLE_UNDERLINE",
5040
5167
  "NGS_HEADLESS_EDITOR_UNSET_BACKGROUND_COLOR",
5168
+ "NGS_HEADLESS_EDITOR_UNSET_LINK",
5041
5169
  "NGS_HEADLESS_EDITOR_UNSET_TEXT_COLOR",
5042
5170
  "NgsHeadlessEditor",
5043
5171
  "ngsHeadlessEditorActiveTableCell",
@@ -5055,6 +5183,7 @@
5055
5183
  "NgsHeadlessEditorInlineRegion",
5056
5184
  "NgsHeadlessEditorInlineRegionOptions",
5057
5185
  "NgsHeadlessEditorKeyBinding",
5186
+ "NgsHeadlessEditorLink",
5058
5187
  "NgsHeadlessEditorMark",
5059
5188
  "NgsHeadlessEditorMarkAttributes",
5060
5189
  "NgsHeadlessEditorMarkDefinition",
@@ -5089,6 +5218,7 @@
5089
5218
  "ngsHeadlessEditorValuesEqual",
5090
5219
  "normalizeNgsHeadlessEditorColor",
5091
5220
  "normalizeNgsHeadlessEditorDocument",
5221
+ "normalizeNgsHeadlessEditorLink",
5092
5222
  "normalizeNgsHeadlessEditorMarks",
5093
5223
  "normalizeNgsHeadlessEditorTableCell",
5094
5224
  "normalizeNgsHeadlessEditorTableRows",
@@ -6390,6 +6520,7 @@
6390
6520
  "ngsMenuTriggerData",
6391
6521
  "ngsMenuTriggerFor",
6392
6522
  "ngsMenuTriggerRestoreFocus",
6523
+ "pushIntoViewport",
6393
6524
  "role",
6394
6525
  "selected",
6395
6526
  "xPosition",
@@ -6403,7 +6534,7 @@
6403
6534
  "valueChange"
6404
6535
  ],
6405
6536
  "cssTokens": [
6406
- "--ngs-color-neutral-500",
6537
+ "--ngs-color-neutral-700",
6407
6538
  "--ngs-color-on-surface",
6408
6539
  "--ngs-color-on-surface-variant",
6409
6540
  "--ngs-color-subtle",
@@ -11183,8 +11314,8 @@
11183
11314
  "--ngs-color-neutral-300",
11184
11315
  "--ngs-color-neutral-500",
11185
11316
  "--ngs-color-neutral-600",
11317
+ "--ngs-color-outline-variant",
11186
11318
  "--ngs-color-primary",
11187
- "--ngs-color-subtle",
11188
11319
  "--ngs-color-surface-container",
11189
11320
  "--ngs-color-surface-container-highest",
11190
11321
  "--ngs-file-bg",
@@ -0,0 +1,54 @@
1
+ import * as i0 from '@angular/core';
2
+ import { computed, ChangeDetectionStrategy, Component } from '@angular/core';
3
+ import { UploadArea, UploadTriggerDirective } from '@ngstarter-ui/components/upload';
4
+ import { ProgressBar } from '@ngstarter-ui/components/progress-bar';
5
+ import { Alert } from '@ngstarter-ui/components/alert';
6
+ import { Button } from '@ngstarter-ui/components/button';
7
+ import { Icon } from '@ngstarter-ui/components/icon';
8
+ import { FormField, Label } from '@ngstarter-ui/components/form-field';
9
+ import { Input } from '@ngstarter-ui/components/input';
10
+ import { C as ContentEditorUploadBlockBase } from './ngstarter-ui-components-content-editor-upload-block-base-D9ELpJr-.mjs';
11
+ import { f as contentEditorFileSize, g as contentEditorResourceUrl, r as readContentEditorFile } from './ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor--rb3-UuO.mjs';
12
+
13
+ class ContentEditorAttachmentBlock extends ContentEditorUploadBlockBase {
14
+ sizeLabel = computed(() => contentEditorFileSize(this.content().size), /* @ts-ignore */
15
+ ...(ngDevMode ? [{ debugName: "sizeLabel" }] : /* istanbul ignore next */ []));
16
+ href = computed(() => contentEditorResourceUrl(this.content().url), /* @ts-ignore */
17
+ ...(ngDevMode ? [{ debugName: "href" }] : /* istanbul ignore next */ []));
18
+ changeName(event) { this.save({ ...this.latestContent(), name: event.target.value }); }
19
+ async upload(event) {
20
+ const file = event.files[0];
21
+ if (!file)
22
+ return;
23
+ const request = this.beginUpload();
24
+ try {
25
+ const dataUrl = await readContentEditorFile(file);
26
+ if (!this.isCurrentUpload(request))
27
+ return;
28
+ const uploadFn = this.builder.getBlockDefOption('attachment', 'uploadFn');
29
+ const url = await uploadFn(file, dataUrl);
30
+ if (!this.isCurrentUpload(request))
31
+ return;
32
+ if (typeof url !== 'string' || !contentEditorResourceUrl(url))
33
+ throw new Error('Invalid file URL');
34
+ this.save({ url, name: file.name, size: file.size, mimeType: file.type });
35
+ }
36
+ catch {
37
+ if (this.isCurrentUpload(request))
38
+ this.error.set('Could not upload the file. Please try again.');
39
+ }
40
+ finally {
41
+ if (this.isCurrentUpload(request))
42
+ this.uploading.set(false);
43
+ }
44
+ }
45
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: ContentEditorAttachmentBlock, deps: null, target: i0.ɵɵFactoryTarget.Component });
46
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: ContentEditorAttachmentBlock, isStandalone: true, selector: "ngs-content-editor-attachment-block", usesInheritance: true, ngImport: i0, template: "<div class=\"flex flex-col gap-3\">\n @if (href()) {\n <div class=\"flex items-center gap-3\">\n <ngs-icon name=\"fluent:document-24-regular\"/>\n <div class=\"min-w-0 flex-1\"><div class=\"truncate\">{{content().name}}</div><div class=\"text-xs\">{{sizeLabel()}} \u00B7 {{content().mimeType}}</div></div>\n <a ngsButton [href]=\"href()\" [attr.download]=\"content().name\" target=\"_blank\" rel=\"noopener noreferrer\">Download</a>\n </div>\n <ngs-form-field><ngs-label>File name</ngs-label><input ngsInput [value]=\"content().name\" (input)=\"changeName($event)\"></ngs-form-field>\n }\n @if (uploading()) {\n <ngs-progress-bar mode=\"indeterminate\"/>\n <button ngsButton (click)=\"cancelUpload()\">Cancel upload</button>\n } @else {\n <ngs-upload-area ngsUploadTrigger [multiple]=\"false\" (fileSelected)=\"upload($event)\">\n {{href() ? 'Click or drop a file to replace it' : 'Click or drop a file to attach it'}}\n </ngs-upload-area>\n }\n @if (error()) { <ngs-alert variant=\"negative\">{{error()}}</ngs-alert> }\n</div>\n", dependencies: [{ kind: "component", type: UploadArea, selector: "ngs-upload-area", inputs: ["accept", "allowHover", "multiple"], outputs: ["fileSelected"], exportAs: ["ngsUploadArea"] }, { kind: "directive", type: UploadTriggerDirective, selector: "[ngsUploadTrigger]", inputs: ["accept", "multiple"], outputs: ["fileSelected"], exportAs: ["ngsUploadTrigger"] }, { kind: "component", type: ProgressBar, selector: "ngs-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["ngsProgressBar"] }, { kind: "component", type: Alert, selector: "ngs-alert", inputs: ["autoClose", "bordered", "variant"], outputs: ["closed"], exportAs: ["ngsAlert"] }, { kind: "component", type: Button, selector: " button[ngsButton], button[ngsIconButton], a[ngsButton], a[ngsIconButton] ", inputs: ["ngsButton", "ngsIconButton", "loading", "disabled", "disabledInteractive", "disableRipple", "reverse", "fullWidth", "hideTextOnMobile"], exportAs: ["ngsButton"] }, { kind: "component", type: Icon, selector: "ngs-icon", inputs: ["name"], exportAs: ["ngsIcon"] }, { kind: "component", type: FormField, selector: "ngs-form-field", inputs: ["labelMode", "subscriptHiddenIfEmpty", "sameHeightAsButton"], exportAs: ["ngsFormField"] }, { kind: "component", type: Label, selector: "ngs-label" }, { kind: "directive", type: Input, selector: "input[ngsInput], textarea[ngsInput]", inputs: ["id", "placeholder", "required", "disabled", "readonly", "errorStateMatcher"], exportAs: ["ngsInput"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
47
+ }
48
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: ContentEditorAttachmentBlock, decorators: [{
49
+ type: Component,
50
+ args: [{ selector: 'ngs-content-editor-attachment-block', imports: [UploadArea, UploadTriggerDirective, ProgressBar, Alert, Button, Icon, FormField, Label, Input], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"flex flex-col gap-3\">\n @if (href()) {\n <div class=\"flex items-center gap-3\">\n <ngs-icon name=\"fluent:document-24-regular\"/>\n <div class=\"min-w-0 flex-1\"><div class=\"truncate\">{{content().name}}</div><div class=\"text-xs\">{{sizeLabel()}} \u00B7 {{content().mimeType}}</div></div>\n <a ngsButton [href]=\"href()\" [attr.download]=\"content().name\" target=\"_blank\" rel=\"noopener noreferrer\">Download</a>\n </div>\n <ngs-form-field><ngs-label>File name</ngs-label><input ngsInput [value]=\"content().name\" (input)=\"changeName($event)\"></ngs-form-field>\n }\n @if (uploading()) {\n <ngs-progress-bar mode=\"indeterminate\"/>\n <button ngsButton (click)=\"cancelUpload()\">Cancel upload</button>\n } @else {\n <ngs-upload-area ngsUploadTrigger [multiple]=\"false\" (fileSelected)=\"upload($event)\">\n {{href() ? 'Click or drop a file to replace it' : 'Click or drop a file to attach it'}}\n </ngs-upload-area>\n }\n @if (error()) { <ngs-alert variant=\"negative\">{{error()}}</ngs-alert> }\n</div>\n" }]
51
+ }] });
52
+
53
+ export { ContentEditorAttachmentBlock };
54
+ //# sourceMappingURL=ngstarter-ui-components-content-editor-attachment-block-B2GUlWO2.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngstarter-ui-components-content-editor-attachment-block-B2GUlWO2.mjs","sources":["../../../projects/components/content-editor/src/_builder/attachment-block/attachment-block.ts","../../../projects/components/content-editor/src/_builder/attachment-block/attachment-block.html"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed } from '@angular/core';\nimport { UploadArea, UploadTriggerDirective, UploadFileSelectedEvent } from '@ngstarter-ui/components/upload';\nimport { ProgressBar } from '@ngstarter-ui/components/progress-bar';\nimport { Alert } from '@ngstarter-ui/components/alert';\nimport { Button } from '@ngstarter-ui/components/button';\nimport { Icon } from '@ngstarter-ui/components/icon';\nimport { FormField, Label } from '@ngstarter-ui/components/form-field';\nimport { Input } from '@ngstarter-ui/components/input';\nimport { ContentEditorUploadBlockBase } from '../upload-block-base';\nimport { ContentEditorAttachmentContent, ContentEditorUploadFn } from '../../types';\nimport { contentEditorFileSize, contentEditorResourceUrl, readContentEditorFile } from '../../upload';\n\n@Component({\n selector: 'ngs-content-editor-attachment-block',\n imports: [UploadArea, UploadTriggerDirective, ProgressBar, Alert, Button, Icon, FormField, Label, Input],\n templateUrl: './attachment-block.html', changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class ContentEditorAttachmentBlock extends ContentEditorUploadBlockBase<ContentEditorAttachmentContent> {\n readonly sizeLabel = computed(() => contentEditorFileSize(this.content().size));\n readonly href = computed(() => contentEditorResourceUrl(this.content().url));\n changeName(event: Event): void { this.save({ ...this.latestContent(), name: (event.target as HTMLInputElement).value }); }\n async upload(event: UploadFileSelectedEvent): Promise<void> {\n const file = event.files[0];\n if (!file) return;\n const request = this.beginUpload();\n try {\n const dataUrl = await readContentEditorFile(file);\n if (!this.isCurrentUpload(request)) return;\n const uploadFn: ContentEditorUploadFn = this.builder.getBlockDefOption('attachment', 'uploadFn');\n const url = await uploadFn(file, dataUrl);\n if (!this.isCurrentUpload(request)) return;\n if (typeof url !== 'string' || !contentEditorResourceUrl(url)) throw new Error('Invalid file URL');\n this.save({ url, name: file.name, size: file.size, mimeType: file.type });\n } catch {\n if (this.isCurrentUpload(request)) this.error.set('Could not upload the file. Please try again.');\n } finally {\n if (this.isCurrentUpload(request)) this.uploading.set(false);\n }\n }\n}\n","<div class=\"flex flex-col gap-3\">\n @if (href()) {\n <div class=\"flex items-center gap-3\">\n <ngs-icon name=\"fluent:document-24-regular\"/>\n <div class=\"min-w-0 flex-1\"><div class=\"truncate\">{{content().name}}</div><div class=\"text-xs\">{{sizeLabel()}} · {{content().mimeType}}</div></div>\n <a ngsButton [href]=\"href()\" [attr.download]=\"content().name\" target=\"_blank\" rel=\"noopener noreferrer\">Download</a>\n </div>\n <ngs-form-field><ngs-label>File name</ngs-label><input ngsInput [value]=\"content().name\" (input)=\"changeName($event)\"></ngs-form-field>\n }\n @if (uploading()) {\n <ngs-progress-bar mode=\"indeterminate\"/>\n <button ngsButton (click)=\"cancelUpload()\">Cancel upload</button>\n } @else {\n <ngs-upload-area ngsUploadTrigger [multiple]=\"false\" (fileSelected)=\"upload($event)\">\n {{href() ? 'Click or drop a file to replace it' : 'Click or drop a file to attach it'}}\n </ngs-upload-area>\n }\n @if (error()) { <ngs-alert variant=\"negative\">{{error()}}</ngs-alert> }\n</div>\n"],"names":[],"mappings":";;;;;;;;;;;;AAiBM,MAAO,4BAA6B,SAAQ,4BAA4D,CAAA;AACnG,IAAA,SAAS,GAAG,QAAQ,CAAC,MAAM,qBAAqB,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC;kFAAC;AACtE,IAAA,IAAI,GAAG,QAAQ,CAAC,MAAM,wBAAwB,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,GAAG,CAAC;6EAAC;IAC5E,UAAU,CAAC,KAAY,EAAA,EAAU,IAAI,CAAC,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,aAAa,EAAE,EAAE,IAAI,EAAG,KAAK,CAAC,MAA2B,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;IACzH,MAAM,MAAM,CAAC,KAA8B,EAAA;QACzC,MAAM,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;AAC3B,QAAA,IAAI,CAAC,IAAI;YAAE;AACX,QAAA,MAAM,OAAO,GAAG,IAAI,CAAC,WAAW,EAAE;AAClC,QAAA,IAAI;AACF,YAAA,MAAM,OAAO,GAAG,MAAM,qBAAqB,CAAC,IAAI,CAAC;AACjD,YAAA,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC;gBAAE;AACpC,YAAA,MAAM,QAAQ,GAA0B,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC,YAAY,EAAE,UAAU,CAAC;YAChG,MAAM,GAAG,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;AACzC,YAAA,I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AC,MAAM,EAAA,QAAA,EAAA,sjCAAA,EAAA;;;;;"}
@@ -0,0 +1,47 @@
1
+ import * as i0 from '@angular/core';
2
+ import { inject, ElementRef, input, signal, effect, untracked, Directive } from '@angular/core';
3
+ import { C as ContentBuilderStore, a as CONTENT_BUILDER, h as findContentEditorBlock, n as isContentEditorBlockEmpty, l as contentEditorBlockView } from './ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor--rb3-UuO.mjs';
4
+
5
+ /** Shared native inputs and root history for the built-in block editors. */
6
+ class ContentEditorBlockBase {
7
+ store = inject(ContentBuilderStore);
8
+ builder = inject(CONTENT_BUILDER);
9
+ element = inject(ElementRef).nativeElement;
10
+ id = input.required(/* @ts-ignore */
11
+ ...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
12
+ content = input.required(/* @ts-ignore */
13
+ ...(ngDevMode ? [{ debugName: "content" }] : /* istanbul ignore next */ []));
14
+ settings = input.required(/* @ts-ignore */
15
+ ...(ngDevMode ? [{ debugName: "settings" }] : /* istanbul ignore next */ []));
16
+ index = input(0, /* @ts-ignore */
17
+ ...(ngDevMode ? [{ debugName: "index" }] : /* istanbul ignore next */ []));
18
+ props = input([], /* @ts-ignore */
19
+ ...(ngDevMode ? [{ debugName: "props" }] : /* istanbul ignore next */ []));
20
+ initialized = signal(true, /* @ts-ignore */
21
+ ...(ngDevMode ? [{ debugName: "initialized" }] : /* istanbul ignore next */ []));
22
+ constructor() {
23
+ effect(() => {
24
+ if (this.store.focusedBlockId() === this.id())
25
+ untracked(() => this.focus());
26
+ });
27
+ }
28
+ focus() { this.element.querySelector('[contenteditable="true"], input, button')?.focus(); }
29
+ getData() { return { content: this.content(), settings: this.settings(), props: this.props() }; }
30
+ isEmpty() {
31
+ const block = findContentEditorBlock(this.store.editor.document().blocks, this.id());
32
+ return !block || isContentEditorBlockEmpty(block);
33
+ }
34
+ save(content, settings = this.settings()) { this.store.updateBlock(this.id(), { content, settings }); }
35
+ latestContent() {
36
+ const block = findContentEditorBlock(this.store.editor.document().blocks, this.id());
37
+ return block ? contentEditorBlockView(block).content : this.content();
38
+ }
39
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: ContentEditorBlockBase, deps: [], target: i0.ɵɵFactoryTarget.Directive });
40
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.7", type: ContentEditorBlockBase, isStandalone: true, inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: true, transformFunction: null }, content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: true, transformFunction: null }, settings: { classPropertyName: "settings", publicName: "settings", isSignal: true, isRequired: true, transformFunction: null }, index: { classPropertyName: "index", publicName: "index", isSignal: true, isRequired: false, transformFunction: null }, props: { classPropertyName: "props", publicName: "props", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
41
+ }
42
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: ContentEditorBlockBase, decorators: [{
43
+ type: Directive
44
+ }], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: true }] }], content: [{ type: i0.Input, args: [{ isSignal: true, alias: "content", required: true }] }], settings: [{ type: i0.Input, args: [{ isSignal: true, alias: "settings", required: true }] }], index: [{ type: i0.Input, args: [{ isSignal: true, alias: "index", required: false }] }], props: [{ type: i0.Input, args: [{ isSignal: true, alias: "props", required: false }] }] } });
45
+
46
+ export { ContentEditorBlockBase as C };
47
+ //# sourceMappingURL=ngstarter-ui-components-content-editor-block-base-BHAxKEOT.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngstarter-ui-components-content-editor-block-base-BHAxKEOT.mjs","sources":["../../../projects/components/content-editor/src/_builder/block-base.ts"],"sourcesContent":["import { Directive, ElementRef, effect, inject, input, signal, untracked } from '@angular/core';\nimport { ContentBuilderStore } from '../content-builder.store';\nimport { ContentBuilderComponent } from '../content-builder/content-builder.component';\nimport { CONTENT_BUILDER, ContentEditorDataBlock, ContentEditorItemProperty } from '../types';\nimport { contentEditorBlockView, findContentEditorBlock, isContentEditorBlockEmpty } from '../document';\n\n/** Shared native inputs and root history for the built-in block editors. */\n@Directive()\nexport abstract class ContentEditorBlockBase<T, S extends object = Record<string, unknown>> implements ContentEditorDataBlock {\n protected readonly store = inject(ContentBuilderStore);\n protected readonly builder = inject<ContentBuilderComponent>(CONTENT_BUILDER);\n protected readonly element = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n readonly id = input.required<string>();\n readonly content = input.required<T>();\n readonly settings = input.required<S>();\n readonly index = input(0);\n readonly props = input<ContentEditorItemProperty[]>([]);\n readonly initialized = signal(true);\n\n constructor() {\n effect(() => {\n if (this.store.focusedBlockId() === this.id()) untracked(() => this.focus());\n });\n }\n focus(): void { this.element.querySelector<HTMLElement>('[contenteditable=\"true\"], input, button')?.focus(); }\n getData() { return { content: this.content(), settings: this.settings(), props: this.props() }; }\n isEmpty(): boolean {\n const block = findContentEditorBlock(this.store.editor.document().blocks, this.id());\n return !block || isContentEditorBlockEmpty(block);\n }\n protected save(content: T, settings: S = this.settings()): void { this.store.updateBlock(this.id(), { content, settings }); }\n protected latestContent(): T {\n const block = findContentEditorBlock(this.store.editor.document().blocks, this.id());\n return block ? contentEditorBlockView(block).content : this.content();\n }\n}\n"],"names":[],"mappings":";;;;AAMA;MAEsB,sBAAsB,CAAA;AACvB,IAAA,KAAK,GAAG,MAAM,CAAC,mBAAmB,CAAC;AACnC,IAAA,OAAO,GAAG,MAAM,CAA0B,eAAe,CAAC;AAC1D,IAAA,OAAO,GAAG,MAAM,CAA0B,UAAU,CAAC,CAAC,aAAa;IAC7E,EAAE,GAAG,KAAK,CAAC,QAAQ;2EAAU;IAC7B,OAAO,GAAG,KAAK,CAAC,QAAQ;gFAAK;IAC7B,QAAQ,GAAG,KAAK,CAAC,QAAQ;iFAAK;IAC9B,KAAK,GAAG,K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KAAK,CAAC,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,EAAE;IACvE;uGA1BoB,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAtB,sBAAsB,EAAA,YAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,EAAA,EAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,OAAA,EAAA,EAAA,iBAAA,EAAA,SAAA,EAAA,UAAA,EAAA,SAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,QAAA,EAAA,EAAA,iBAAA,EAAA,UAAA,EAAA,UAAA,EAAA,UAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,KAAA,EAAA,EAAA,iBAAA,EAAA,OAAA,EAAA,UAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,KAAA,EAAA,EAAA,iBAAA,EAAA,OAAA,EAAA,UAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAtB,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAD3C;;;;;"}
@@ -0,0 +1,27 @@
1
+ import * as i0 from '@angular/core';
2
+ import { computed, ChangeDetectionStrategy, Component } from '@angular/core';
3
+ import { Alert, AlertIconDirective, AlertActionDirective } from '@ngstarter-ui/components/alert';
4
+ import { Icon } from '@ngstarter-ui/components/icon';
5
+ import { Button } from '@ngstarter-ui/components/button';
6
+ import { Menu, MenuItem, MenuTrigger } from '@ngstarter-ui/components/menu';
7
+ import { C as ContentEditorBlockBase } from './ngstarter-ui-components-content-editor-block-base-BHAxKEOT.mjs';
8
+ import { d as ContentEditorContentEditableDirective } from './ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor--rb3-UuO.mjs';
9
+
10
+ class ContentEditorCalloutBlock extends ContentEditorBlockBase {
11
+ variants = ['note', 'tip', 'warning', 'danger'];
12
+ appearance = computed(() => ({ note: 'informative', tip: 'positive', warning: 'notice', danger: 'negative' })[this.settings().variant] ?? 'informative', /* @ts-ignore */
13
+ ...(ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []));
14
+ icon = computed(() => ({ note: 'fluent:info-24-regular', tip: 'fluent:lightbulb-24-regular', warning: 'fluent:warning-24-regular', danger: 'fluent:error-circle-24-regular' })[this.settings().variant] ?? 'fluent:info-24-regular', /* @ts-ignore */
15
+ ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
16
+ changeVariant(variant) { this.save(this.content(), { ...this.settings(), variant }); }
17
+ changeText(content) { this.save(content); }
18
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: ContentEditorCalloutBlock, deps: null, target: i0.ɵɵFactoryTarget.Component });
19
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: ContentEditorCalloutBlock, isStandalone: true, selector: "ngs-content-editor-callout-block", usesInheritance: true, ngImport: i0, template: "<ngs-alert [variant]=\"appearance()\" [class.settings-open]=\"settingsTrigger.menuOpen()\">\n <ng-template ngsAlertIcon><ngs-icon [name]=\"icon()\"/></ng-template>\n <div class=\"min-w-0 break-words outline-none\" [ngsContentEditorContentEditable]=\"content()\" [props]=\"props()\"\n (propsChanged)=\"store.updateBlock(id(), {props: $event})\" (contentChanged)=\"changeText($event)\" data-empty-placeholder=\"Write a note\u2026\"></div>\n <button ngsIconButton ngsAlertAction [ngsMenuTriggerFor]=\"variantMenu\" #settingsTrigger=\"ngsMenuTrigger\"\n aria-label=\"Callout style\"><ngs-icon name=\"fluent:more-horizontal-24-regular\"/></button>\n</ngs-alert>\n<ngs-menu #variantMenu>\n @for (variant of variants; track variant) { <button ngs-menu-item (click)=\"changeVariant(variant)\">{{variant}}</button> }\n</ngs-menu>\n", styles: [":host{display:block;min-width:0}:host ngs-alert ::ng-deep>.content{flex:1;min-width:0}:host ngs-alert button[ngsAlertAction]{--ngs-button-height: calc(var(--spacing, .25rem) * 8);--ngs-button-color: inherit;opacity:0;pointer-events:none}:host ngs-alert:hover button[ngsAlertAction],:host ngs-alert:focus-within button[ngsAlertAction],:host ngs-alert.settings-open button[ngsAlertAction]{opacity:1;pointer-events:auto}@media(hover:none){:host ngs-alert button[ngsAlertAction]{opacity:1;pointer-events:auto}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "component", type: Alert, selector: "ngs-alert", inputs: ["autoClose", "bordered", "variant"], outputs: ["closed"], exportAs: ["ngsAlert"] }, { kind: "directive", type: AlertIconDirective, selector: "[ngsAlertIcon]", exportAs: ["ngsAlertIcon"] }, { kind: "directive", type: AlertActionDirective, selector: "[ngsAlertAction]", exportAs: ["ngsAlertAction"] }, { kind: "component", type: Icon, selector: "ngs-icon", inputs: ["name"], exportAs: ["ngsIcon"] }, { kind: "component", type: Button, selector: " button[ngsButton], button[ngsIconButton], a[ngsButton], a[ngsIconButton] ", inputs: ["ngsButton", "ngsIconButton", "loading", "disabled", "disabledInteractive", "disableRipple", "reverse", "fullWidth", "hideTextOnMobile"], exportAs: ["ngsButton"] }, { kind: "component", type: Menu, selector: "ngs-menu", inputs: ["role", "classList", "xPosition", "yPosition", "pushIntoViewport"], outputs: ["closed"], exportAs: ["ngsMenu"] }, { kind: "component", type: MenuItem, selector: "ngs-menu-item, [ngs-menu-item]", inputs: ["disabled", "role", "selected"], outputs: ["_triggered"], exportAs: ["ngsMenuItem"] }, { kind: "directive", type: MenuTrigger, selector: "[ngsMenuTriggerFor]", inputs: ["ngsMenuTriggerFor", "ngsMenuTriggerData", "ngsMenuDisabled", "xPosition", "yPosition", "ngsMenuTriggerRestoreFocus"], outputs: ["menuOpened", "menuClosed"], exportAs: ["ngsMenuTrigger"] }, { kind: "directive", type: ContentEditorContentEditableDirective, selector: "[ngsContentEditorContentEditable]", inputs: ["ngsContentEditorContentEditable", "settings", "props", "singleLine"], outputs: ["contentChanged", "propsChanged", "pressedEnter", "initialized"], exportAs: ["ngsContentEditorContentEditable"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
20
+ }
21
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: ContentEditorCalloutBlock, decorators: [{
22
+ type: Component,
23
+ args: [{ selector: 'ngs-content-editor-callout-block', imports: [Alert, AlertIconDirective, AlertActionDirective, Icon, Button, Menu, MenuItem, MenuTrigger, ContentEditorContentEditableDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ngs-alert [variant]=\"appearance()\" [class.settings-open]=\"settingsTrigger.menuOpen()\">\n <ng-template ngsAlertIcon><ngs-icon [name]=\"icon()\"/></ng-template>\n <div class=\"min-w-0 break-words outline-none\" [ngsContentEditorContentEditable]=\"content()\" [props]=\"props()\"\n (propsChanged)=\"store.updateBlock(id(), {props: $event})\" (contentChanged)=\"changeText($event)\" data-empty-placeholder=\"Write a note\u2026\"></div>\n <button ngsIconButton ngsAlertAction [ngsMenuTriggerFor]=\"variantMenu\" #settingsTrigger=\"ngsMenuTrigger\"\n aria-label=\"Callout style\"><ngs-icon name=\"fluent:more-horizontal-24-regular\"/></button>\n</ngs-alert>\n<ngs-menu #variantMenu>\n @for (variant of variants; track variant) { <button ngs-menu-item (click)=\"changeVariant(variant)\">{{variant}}</button> }\n</ngs-menu>\n", styles: [":host{display:block;min-width:0}:host ngs-alert ::ng-deep>.content{flex:1;min-width:0}:host ngs-alert button[ngsAlertAction]{--ngs-button-height: calc(var(--spacing, .25rem) * 8);--ngs-button-color: inherit;opacity:0;pointer-events:none}:host ngs-alert:hover button[ngsAlertAction],:host ngs-alert:focus-within button[ngsAlertAction],:host ngs-alert.settings-open button[ngsAlertAction]{opacity:1;pointer-events:auto}@media(hover:none){:host ngs-alert button[ngsAlertAction]{opacity:1;pointer-events:auto}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
24
+ }] });
25
+
26
+ export { ContentEditorCalloutBlock };
27
+ //# sourceMappingURL=ngstarter-ui-components-content-editor-callout-block-Cnga7Z-6.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngstarter-ui-components-content-editor-callout-block-Cnga7Z-6.mjs","sources":["../../../projects/components/content-editor/src/_builder/callout-block/callout-block.ts","../../../projects/components/content-editor/src/_builder/callout-block/callout-block.html"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed } from '@angular/core';\nimport { Alert, AlertIconDirective, AlertActionDirective } from '@ngstarter-ui/components/alert';\nimport { Icon } from '@ngstarter-ui/components/icon';\nimport { Button } from '@ngstarter-ui/components/button';\nimport { Menu, MenuItem, MenuTrigger } from '@ngstarter-ui/components/menu';\nimport { ContentEditorBlockBase } from '../block-base';\nimport { ContentEditorContentEditableDirective } from '../../content-editor-content-editable.directive';\nimport { ContentEditorCalloutSettings, ContentEditorCalloutVariant, ContentEditorText } from '../../types';\n\n@Component({\n selector: 'ngs-content-editor-callout-block',\n imports: [Alert, AlertIconDirective, AlertActionDirective, Icon, Button, Menu, MenuItem, MenuTrigger, ContentEditorContentEditableDirective],\n templateUrl: './callout-block.html', styleUrl: './callout-block.scss', changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class ContentEditorCalloutBlock extends ContentEditorBlockBase<ContentEditorText, ContentEditorCalloutSettings> {\n readonly variants: ContentEditorCalloutVariant[] = ['note', 'tip', 'warning', 'danger'];\n readonly appearance = computed(() => ({ note: 'informative', tip: 'positive', warning: 'notice', danger: 'negative' })[this.settings().variant] ?? 'informative');\n readonly icon = computed(() => ({ note: 'fluent:info-24-regular', tip: 'fluent:lightbulb-24-regular', warning: 'fluent:warning-24-regular', danger: 'fluent:error-circle-24-regular' })[this.settings().variant] ?? 'fluent:info-24-regular');\n changeVariant(variant: ContentEditorCalloutVariant): void { this.save(this.content(), { ...this.settings(), variant }); }\n changeText(content: ContentEditorText): void { this.save(content); }\n}\n","<ngs-alert [variant]=\"appearance()\" [class.settings-open]=\"settingsTrigger.menuOpen()\">\n <ng-template ngsAlertIcon><ngs-icon [name]=\"icon()\"/></ng-template>\n <div class=\"min-w-0 break-words outline-none\" [ngsContentEditorContentEditable]=\"content()\" [props]=\"props()\"\n (propsChanged)=\"store.updateBlock(id(), {props: $event})\" (contentChanged)=\"changeText($event)\" data-empty-placeholder=\"Write a note…\"></div>\n <button ngsIconButton ngsAlertAction [ngsMenuTriggerFor]=\"variantMenu\" #settingsTrigger=\"ngsMenuTrigger\"\n aria-label=\"Callout style\"><ngs-icon name=\"fluent:more-horizontal-24-regular\"/></button>\n</ngs-alert>\n<ngs-menu #variantMenu>\n @for (variant of variants; track variant) { <button ngs-menu-item (click)=\"changeVariant(variant)\">{{variant}}</button> }\n</ngs-menu>\n"],"names":[],"mappings":";;;;;;;;;AAcM,MAAO,yBAA0B,SAAQ,sBAAuE,CAAA;IAC3G,QAAQ,GAAkC,CAAC,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,CAAC;AAC9E,IAAA,UAAU,GAAG,QAAQ,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,GAAG,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,IAAI,aAAa;mFAAC;AACxJ,IAAA,IAAI,GAAG,QAAQ,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,wBAA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