@ngstarter-ui/components 22.3.5 → 22.4.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.
- package/README.md +27 -0
- package/ai/component-registry.json +186 -101
- package/fesm2022/attachment-block-BK9QxVjq.mjs +163 -0
- package/fesm2022/attachment-block-BK9QxVjq.mjs.map +1 -0
- package/fesm2022/callout-block-Bl4GZYz8.mjs +196 -0
- package/fesm2022/callout-block-Bl4GZYz8.mjs.map +1 -0
- package/fesm2022/code-block.component-DCRD-9iP.mjs +393 -0
- package/fesm2022/code-block.component-DCRD-9iP.mjs.map +1 -0
- package/fesm2022/content-builder.store-D622mHxt.mjs +328 -0
- package/fesm2022/content-builder.store-D622mHxt.mjs.map +1 -0
- package/fesm2022/content-editor-content-editable.directive-WzD9_71s.mjs +1110 -0
- package/fesm2022/content-editor-content-editable.directive-WzD9_71s.mjs.map +1 -0
- package/fesm2022/cursor-controller-DKfBII1n.mjs +55 -0
- package/fesm2022/cursor-controller-DKfBII1n.mjs.map +1 -0
- package/fesm2022/default-converters-9oSKDsXP.mjs +140 -0
- package/fesm2022/default-converters-9oSKDsXP.mjs.map +1 -0
- package/fesm2022/divider-block.component-Dvgeq_D0.mjs +148 -0
- package/fesm2022/divider-block.component-Dvgeq_D0.mjs.map +1 -0
- package/fesm2022/embed-block-CYkOv4Wt.mjs +565 -0
- package/fesm2022/embed-block-CYkOv4Wt.mjs.map +1 -0
- package/fesm2022/extra-block-defs-Cn_hfM3c.mjs +122 -0
- package/fesm2022/extra-block-defs-Cn_hfM3c.mjs.map +1 -0
- package/fesm2022/gallery-block-DT3uIURY.mjs +365 -0
- package/fesm2022/gallery-block-DT3uIURY.mjs.map +1 -0
- package/fesm2022/grid-block-ZVDT3m8-.mjs +504 -0
- package/fesm2022/grid-block-ZVDT3m8-.mjs.map +1 -0
- package/fesm2022/heading-block.component-iCpJGTMh.mjs +274 -0
- package/fesm2022/heading-block.component-iCpJGTMh.mjs.map +1 -0
- package/fesm2022/html-utils-DywL8gGa.mjs +24 -0
- package/fesm2022/html-utils-DywL8gGa.mjs.map +1 -0
- package/fesm2022/image-block.component-DJ7-HCR8.mjs +285 -0
- package/fesm2022/image-block.component-DJ7-HCR8.mjs.map +1 -0
- package/fesm2022/list-block.component-qFIebEBO.mjs +312 -0
- package/fesm2022/list-block.component-qFIebEBO.mjs.map +1 -0
- package/fesm2022/nested-blocks-CXhgXJ1H.mjs +345 -0
- package/fesm2022/nested-blocks-CXhgXJ1H.mjs.map +1 -0
- package/fesm2022/ngstarter-ui-components-action-required.mjs +150 -45
- package/fesm2022/ngstarter-ui-components-action-required.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-alert.mjs +318 -133
- package/fesm2022/ngstarter-ui-components-alert.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-announcement.mjs +280 -88
- package/fesm2022/ngstarter-ui-components-announcement.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-autocomplete.mjs +647 -386
- package/fesm2022/ngstarter-ui-components-autocomplete.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-avatar.mjs +715 -482
- package/fesm2022/ngstarter-ui-components-avatar.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-badge.mjs +308 -97
- package/fesm2022/ngstarter-ui-components-badge.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-block-loader.mjs +164 -47
- package/fesm2022/ngstarter-ui-components-block-loader.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-bottom-sheet.mjs +278 -315
- package/fesm2022/ngstarter-ui-components-bottom-sheet.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-breadcrumbs.mjs +707 -205
- package/fesm2022/ngstarter-ui-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-button-toggle.mjs +518 -175
- package/fesm2022/ngstarter-ui-components-button-toggle.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-button.mjs +294 -68
- package/fesm2022/ngstarter-ui-components-button.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-calendar.mjs +442 -250
- package/fesm2022/ngstarter-ui-components-calendar.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-card-overlay.mjs +159 -47
- package/fesm2022/ngstarter-ui-components-card-overlay.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-card.mjs +619 -194
- package/fesm2022/ngstarter-ui-components-card.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-carousel.mjs +1012 -634
- package/fesm2022/ngstarter-ui-components-carousel.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-checkbox.mjs +715 -308
- package/fesm2022/ngstarter-ui-components-checkbox.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-chips.mjs +1397 -667
- package/fesm2022/ngstarter-ui-components-chips.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-code-highlighter.mjs +519 -357
- package/fesm2022/ngstarter-ui-components-code-highlighter.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-color-picker.mjs +1218 -604
- package/fesm2022/ngstarter-ui-components-color-picker.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-color-scheme.mjs +265 -134
- package/fesm2022/ngstarter-ui-components-color-scheme.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-color-switcher.mjs +190 -71
- package/fesm2022/ngstarter-ui-components-color-switcher.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-command-bar.mjs +197 -58
- package/fesm2022/ngstarter-ui-components-command-bar.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-comment-editor.mjs +2212 -1128
- package/fesm2022/ngstarter-ui-components-comment-editor.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-comparison-slider.mjs +269 -183
- package/fesm2022/ngstarter-ui-components-comparison-slider.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-confirm.mjs +164 -86
- package/fesm2022/ngstarter-ui-components-confirm.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-content-editor.mjs +6240 -2
- package/fesm2022/ngstarter-ui-components-content-editor.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-cookie-popup.mjs +244 -108
- package/fesm2022/ngstarter-ui-components-cookie-popup.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-core.mjs +2110 -1592
- package/fesm2022/ngstarter-ui-components-core.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-country-select.mjs +1970 -588
- package/fesm2022/ngstarter-ui-components-country-select.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-crop.mjs +249 -191
- package/fesm2022/ngstarter-ui-components-crop.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-currency-select.mjs +1658 -452
- package/fesm2022/ngstarter-ui-components-currency-select.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-data-view.mjs +4538 -2497
- package/fesm2022/ngstarter-ui-components-data-view.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-date-format-select.mjs +357 -157
- package/fesm2022/ngstarter-ui-components-date-format-select.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-datepicker.mjs +2587 -1264
- package/fesm2022/ngstarter-ui-components-datepicker.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-dialog.mjs +681 -385
- package/fesm2022/ngstarter-ui-components-dialog.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-digit-roller.mjs +1000 -750
- package/fesm2022/ngstarter-ui-components-digit-roller.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-divider.mjs +164 -41
- package/fesm2022/ngstarter-ui-components-divider.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-drawer.mjs +218 -143
- package/fesm2022/ngstarter-ui-components-drawer.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-emoji-picker.mjs +345 -247
- package/fesm2022/ngstarter-ui-components-emoji-picker.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-empty-state.mjs +244 -74
- package/fesm2022/ngstarter-ui-components-empty-state.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-events.mjs +467 -126
- package/fesm2022/ngstarter-ui-components-events.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-expand.mjs +191 -59
- package/fesm2022/ngstarter-ui-components-expand.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-expansion.mjs +529 -193
- package/fesm2022/ngstarter-ui-components-expansion.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-file-type.mjs +270 -171
- package/fesm2022/ngstarter-ui-components-file-type.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-filter-builder.mjs +741 -352
- package/fesm2022/ngstarter-ui-components-filter-builder.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-form-builder.mjs +9032 -6964
- package/fesm2022/ngstarter-ui-components-form-builder.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-form-field.mjs +741 -276
- package/fesm2022/ngstarter-ui-components-form-field.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-gauge.mjs +155 -43
- package/fesm2022/ngstarter-ui-components-gauge.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-grid.mjs +197 -81
- package/fesm2022/ngstarter-ui-components-grid.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-guided-tour.mjs +881 -740
- package/fesm2022/ngstarter-ui-components-guided-tour.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-headless-editor.mjs +3573 -3656
- package/fesm2022/ngstarter-ui-components-headless-editor.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-headless-stepper.mjs +277 -204
- package/fesm2022/ngstarter-ui-components-headless-stepper.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-icon.mjs +209 -182
- package/fesm2022/ngstarter-ui-components-icon.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-image-designer.mjs +5096 -4066
- package/fesm2022/ngstarter-ui-components-image-designer.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-image-placeholder.mjs +45 -19
- package/fesm2022/ngstarter-ui-components-image-placeholder.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-image-resizer.mjs +333 -154
- package/fesm2022/ngstarter-ui-components-image-resizer.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-image-viewer.mjs +564 -358
- package/fesm2022/ngstarter-ui-components-image-viewer.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-image-zoom-viewer.mjs +246 -167
- package/fesm2022/ngstarter-ui-components-image-zoom-viewer.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-incidents.mjs +732 -258
- package/fesm2022/ngstarter-ui-components-incidents.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-inline-text-edit.mjs +244 -182
- package/fesm2022/ngstarter-ui-components-inline-text-edit.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-input-mask.mjs +314 -174
- package/fesm2022/ngstarter-ui-components-input-mask.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-input-validator.mjs +45 -69
- package/fesm2022/ngstarter-ui-components-input-validator.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-input.mjs +303 -161
- package/fesm2022/ngstarter-ui-components-input.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-kanban-board.mjs +504 -159
- package/fesm2022/ngstarter-ui-components-kanban-board.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-kbd.mjs +86 -30
- package/fesm2022/ngstarter-ui-components-kbd.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-layout.mjs +681 -220
- package/fesm2022/ngstarter-ui-components-layout.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-list.mjs +968 -281
- package/fesm2022/ngstarter-ui-components-list.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-logo.mjs +181 -51
- package/fesm2022/ngstarter-ui-components-logo.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-marquee.mjs +226 -147
- package/fesm2022/ngstarter-ui-components-marquee.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-menu.mjs +1686 -1091
- package/fesm2022/ngstarter-ui-components-menu.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-micro-chart.mjs +1541 -943
- package/fesm2022/ngstarter-ui-components-micro-chart.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-navigation.mjs +1035 -455
- package/fesm2022/ngstarter-ui-components-navigation.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-notifications.mjs +678 -230
- package/fesm2022/ngstarter-ui-components-notifications.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-number-input.mjs +616 -316
- package/fesm2022/ngstarter-ui-components-number-input.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-option.mjs +405 -163
- package/fesm2022/ngstarter-ui-components-option.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-overlay.mjs +107 -111
- package/fesm2022/ngstarter-ui-components-overlay.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-page-loading-bar.mjs +131 -76
- package/fesm2022/ngstarter-ui-components-page-loading-bar.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-paginator.mjs +543 -295
- package/fesm2022/ngstarter-ui-components-paginator.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-password-strength.mjs +785 -340
- package/fesm2022/ngstarter-ui-components-password-strength.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-pdf-builder.mjs +3705 -2695
- package/fesm2022/ngstarter-ui-components-pdf-builder.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-pdf-signer.mjs +1179 -851
- package/fesm2022/ngstarter-ui-components-pdf-signer.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-pdf-viewer.mjs +2973 -2070
- package/fesm2022/ngstarter-ui-components-pdf-viewer.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-phone-input.mjs +2081 -770
- package/fesm2022/ngstarter-ui-components-phone-input.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-pin-input.mjs +366 -198
- package/fesm2022/ngstarter-ui-components-pin-input.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-popover.mjs +558 -308
- package/fesm2022/ngstarter-ui-components-popover.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-progress-bar.mjs +178 -73
- package/fesm2022/ngstarter-ui-components-progress-bar.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-radio-card.mjs +301 -105
- package/fesm2022/ngstarter-ui-components-radio-card.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-radio.mjs +417 -157
- package/fesm2022/ngstarter-ui-components-radio.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-rail-nav.mjs +208 -88
- package/fesm2022/ngstarter-ui-components-rail-nav.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-resizable-container.mjs +123 -74
- package/fesm2022/ngstarter-ui-components-resizable-container.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-screen-loader.mjs +197 -95
- package/fesm2022/ngstarter-ui-components-screen-loader.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-scroll-spy.mjs +383 -245
- package/fesm2022/ngstarter-ui-components-scroll-spy.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-scrollbar-area.mjs +705 -581
- package/fesm2022/ngstarter-ui-components-scrollbar-area.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-segmented.mjs +422 -220
- package/fesm2022/ngstarter-ui-components-segmented.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-select.mjs +1862 -1159
- package/fesm2022/ngstarter-ui-components-select.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-side-panel.mjs +313 -118
- package/fesm2022/ngstarter-ui-components-side-panel.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-sidebar.mjs +1239 -470
- package/fesm2022/ngstarter-ui-components-sidebar.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-sidenav.mjs +664 -354
- package/fesm2022/ngstarter-ui-components-sidenav.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-signature-pad.mjs +1092 -643
- package/fesm2022/ngstarter-ui-components-signature-pad.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-skeleton.mjs +153 -43
- package/fesm2022/ngstarter-ui-components-skeleton.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-slide-toggle.mjs +425 -108
- package/fesm2022/ngstarter-ui-components-slide-toggle.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-slider.mjs +645 -487
- package/fesm2022/ngstarter-ui-components-slider.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-snack-bar.mjs +372 -354
- package/fesm2022/ngstarter-ui-components-snack-bar.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-sort.mjs +378 -147
- package/fesm2022/ngstarter-ui-components-sort.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-spinner.mjs +242 -76
- package/fesm2022/ngstarter-ui-components-spinner.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-splash-screen.mjs +142 -91
- package/fesm2022/ngstarter-ui-components-splash-screen.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-split.mjs +1067 -929
- package/fesm2022/ngstarter-ui-components-split.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-step-tracker.mjs +617 -331
- package/fesm2022/ngstarter-ui-components-step-tracker.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-stepper.mjs +357 -126
- package/fesm2022/ngstarter-ui-components-stepper.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-suggestions.mjs +259 -72
- package/fesm2022/ngstarter-ui-components-suggestions.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-tab-panel.mjs +674 -267
- package/fesm2022/ngstarter-ui-components-tab-panel.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-table.mjs +1144 -662
- package/fesm2022/ngstarter-ui-components-table.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-tabs.mjs +1236 -615
- package/fesm2022/ngstarter-ui-components-tabs.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-thumbnail-maker.mjs +414 -216
- package/fesm2022/ngstarter-ui-components-thumbnail-maker.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-tiles.mjs +939 -647
- package/fesm2022/ngstarter-ui-components-tiles.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-timeline.mjs +418 -122
- package/fesm2022/ngstarter-ui-components-timeline.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-timepicker.mjs +870 -508
- package/fesm2022/ngstarter-ui-components-timepicker.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-timezone-select.mjs +651 -371
- package/fesm2022/ngstarter-ui-components-timezone-select.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-toolbar.mjs +727 -320
- package/fesm2022/ngstarter-ui-components-toolbar.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-tooltip.mjs +601 -521
- package/fesm2022/ngstarter-ui-components-tooltip.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-tree-select.mjs +1197 -434
- package/fesm2022/ngstarter-ui-components-tree-select.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-tree.mjs +1821 -1262
- package/fesm2022/ngstarter-ui-components-tree.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-upload.mjs +1059 -345
- package/fesm2022/ngstarter-ui-components-upload.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-video-player.mjs +763 -533
- package/fesm2022/ngstarter-ui-components-video-player.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-video-viewer.mjs +630 -229
- package/fesm2022/ngstarter-ui-components-video-viewer.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-visual-builder.mjs +40 -17
- package/fesm2022/ngstarter-ui-components-visual-builder.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-whiteboard.mjs +3039 -1803
- package/fesm2022/ngstarter-ui-components-whiteboard.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components.mjs +3 -5
- package/fesm2022/ngstarter-ui-components.mjs.map +1 -1
- package/fesm2022/paragraph-block.component-Csk8Gu3x.mjs +264 -0
- package/fesm2022/paragraph-block.component-Csk8Gu3x.mjs.map +1 -0
- package/fesm2022/plain-text-settings-BnxCxLhA.mjs +354 -0
- package/fesm2022/plain-text-settings-BnxCxLhA.mjs.map +1 -0
- package/fesm2022/quote-block.component-tRmrU97F.mjs +309 -0
- package/fesm2022/quote-block.component-tRmrU97F.mjs.map +1 -0
- package/fesm2022/table-block.component-BuzRRggv.mjs +1859 -0
- package/fesm2022/table-block.component-BuzRRggv.mjs.map +1 -0
- package/fesm2022/toggle-block-C5Jo2YDf.mjs +150 -0
- package/fesm2022/toggle-block-C5Jo2YDf.mjs.map +1 -0
- package/fesm2022/upload-status-tZ0x0BUB.mjs +107 -0
- package/fesm2022/upload-status-tZ0x0BUB.mjs.map +1 -0
- package/fesm2022/video-block.component-CpAXibm6.mjs +312 -0
- package/fesm2022/video-block.component-CpAXibm6.mjs.map +1 -0
- package/package.json +11 -10
- package/styles/_tokens.scss +1 -0
- package/types/ngstarter-ui-components-action-required.d.ts +34 -14
- package/types/ngstarter-ui-components-alert.d.ts +53 -44
- package/types/ngstarter-ui-components-announcement.d.ts +74 -53
- package/types/ngstarter-ui-components-autocomplete.d.ts +141 -84
- package/types/ngstarter-ui-components-avatar.d.ts +113 -66
- package/types/ngstarter-ui-components-badge.d.ts +73 -37
- package/types/ngstarter-ui-components-block-loader.d.ts +32 -20
- package/types/ngstarter-ui-components-bottom-sheet.d.ts +125 -132
- package/types/ngstarter-ui-components-breadcrumbs.d.ts +93 -88
- package/types/ngstarter-ui-components-button-toggle.d.ts +124 -54
- package/types/ngstarter-ui-components-button.d.ts +69 -27
- package/types/ngstarter-ui-components-calendar.d.ts +123 -71
- package/types/ngstarter-ui-components-card-overlay.d.ts +31 -19
- package/types/ngstarter-ui-components-card.d.ts +75 -71
- package/types/ngstarter-ui-components-carousel.d.ts +115 -69
- package/types/ngstarter-ui-components-checkbox.d.ts +183 -86
- package/types/ngstarter-ui-components-chips.d.ts +288 -195
- package/types/ngstarter-ui-components-code-highlighter.d.ts +71 -28
- package/types/ngstarter-ui-components-color-picker.d.ts +140 -89
- package/types/ngstarter-ui-components-color-scheme.d.ts +43 -52
- package/types/ngstarter-ui-components-color-switcher.d.ts +46 -26
- package/types/ngstarter-ui-components-command-bar.d.ts +40 -26
- package/types/ngstarter-ui-components-comment-editor.d.ts +311 -235
- package/types/ngstarter-ui-components-comparison-slider.d.ts +41 -40
- package/types/ngstarter-ui-components-confirm.d.ts +24 -29
- package/types/ngstarter-ui-components-content-editor.d.ts +1482 -998
- package/types/ngstarter-ui-components-cookie-popup.d.ts +43 -38
- package/types/ngstarter-ui-components-core.d.ts +513 -467
- package/types/ngstarter-ui-components-country-select.d.ts +170 -97
- package/types/ngstarter-ui-components-crop.d.ts +67 -52
- package/types/ngstarter-ui-components-currency-select.d.ts +127 -90
- package/types/ngstarter-ui-components-data-view.d.ts +811 -567
- package/types/ngstarter-ui-components-date-format-select.d.ts +90 -58
- package/types/ngstarter-ui-components-datepicker.d.ts +589 -373
- package/types/ngstarter-ui-components-dialog.d.ts +138 -116
- package/types/ngstarter-ui-components-digit-roller.d.ts +228 -131
- package/types/ngstarter-ui-components-divider.d.ts +29 -17
- package/types/ngstarter-ui-components-drawer.d.ts +39 -30
- package/types/ngstarter-ui-components-emoji-picker.d.ts +69 -47
- package/types/ngstarter-ui-components-empty-state.d.ts +20 -28
- package/types/ngstarter-ui-components-events.d.ts +73 -57
- package/types/ngstarter-ui-components-expand.d.ts +55 -25
- package/types/ngstarter-ui-components-expansion.d.ts +93 -64
- package/types/ngstarter-ui-components-file-type.d.ts +53 -27
- package/types/ngstarter-ui-components-filter-builder.d.ts +131 -100
- package/types/ngstarter-ui-components-form-builder.d.ts +1094 -881
- package/types/ngstarter-ui-components-form-field.d.ts +116 -105
- package/types/ngstarter-ui-components-gauge.d.ts +32 -20
- package/types/ngstarter-ui-components-grid.d.ts +66 -50
- package/types/ngstarter-ui-components-guided-tour.d.ts +250 -222
- package/types/ngstarter-ui-components-headless-editor.d.ts +708 -658
- package/types/ngstarter-ui-components-headless-stepper.d.ts +84 -64
- package/types/ngstarter-ui-components-icon.d.ts +39 -38
- package/types/ngstarter-ui-components-image-designer.d.ts +422 -341
- package/types/ngstarter-ui-components-image-placeholder.d.ts +5 -8
- package/types/ngstarter-ui-components-image-resizer.d.ts +40 -33
- package/types/ngstarter-ui-components-image-viewer.d.ts +67 -54
- package/types/ngstarter-ui-components-image-zoom-viewer.d.ts +29 -33
- package/types/ngstarter-ui-components-incidents.d.ts +97 -104
- package/types/ngstarter-ui-components-inline-text-edit.d.ts +54 -39
- package/types/ngstarter-ui-components-input-mask.d.ts +54 -34
- package/types/ngstarter-ui-components-input-validator.d.ts +7 -11
- package/types/ngstarter-ui-components-input.d.ts +82 -54
- package/types/ngstarter-ui-components-kanban-board.d.ts +76 -63
- package/types/ngstarter-ui-components-kbd.d.ts +8 -12
- package/types/ngstarter-ui-components-layout.d.ts +131 -87
- package/types/ngstarter-ui-components-list.d.ts +123 -88
- package/types/ngstarter-ui-components-logo.d.ts +21 -21
- package/types/ngstarter-ui-components-marquee.d.ts +41 -34
- package/types/ngstarter-ui-components-menu.d.ts +329 -221
- package/types/ngstarter-ui-components-micro-chart.d.ts +385 -186
- package/types/ngstarter-ui-components-navigation.d.ts +186 -125
- package/types/ngstarter-ui-components-notifications.d.ts +104 -89
- package/types/ngstarter-ui-components-number-input.d.ts +138 -96
- package/types/ngstarter-ui-components-option.d.ts +102 -68
- package/types/ngstarter-ui-components-overlay.d.ts +7 -12
- package/types/ngstarter-ui-components-page-loading-bar.d.ts +23 -20
- package/types/ngstarter-ui-components-paginator.d.ts +171 -129
- package/types/ngstarter-ui-components-password-strength.d.ts +217 -102
- package/types/ngstarter-ui-components-pdf-builder.d.ts +717 -649
- package/types/ngstarter-ui-components-pdf-signer.d.ts +202 -142
- package/types/ngstarter-ui-components-pdf-viewer.d.ts +544 -385
- package/types/ngstarter-ui-components-phone-input.d.ts +175 -115
- package/types/ngstarter-ui-components-pin-input.d.ts +83 -45
- package/types/ngstarter-ui-components-popover.d.ts +128 -89
- package/types/ngstarter-ui-components-progress-bar.d.ts +49 -30
- package/types/ngstarter-ui-components-radio-card.d.ts +50 -34
- package/types/ngstarter-ui-components-radio.d.ts +100 -47
- package/types/ngstarter-ui-components-rail-nav.d.ts +36 -29
- package/types/ngstarter-ui-components-resizable-container.d.ts +30 -25
- package/types/ngstarter-ui-components-screen-loader.d.ts +38 -32
- package/types/ngstarter-ui-components-scroll-spy.d.ts +56 -60
- package/types/ngstarter-ui-components-scrollbar-area.d.ts +116 -86
- package/types/ngstarter-ui-components-segmented.d.ts +93 -61
- package/types/ngstarter-ui-components-select.d.ts +366 -266
- package/types/ngstarter-ui-components-side-panel.d.ts +59 -40
- package/types/ngstarter-ui-components-sidebar.d.ts +208 -154
- package/types/ngstarter-ui-components-sidenav.d.ts +136 -78
- package/types/ngstarter-ui-components-signature-pad.d.ts +165 -92
- package/types/ngstarter-ui-components-skeleton.d.ts +18 -17
- package/types/ngstarter-ui-components-slide-toggle.d.ts +113 -44
- package/types/ngstarter-ui-components-slider.d.ts +123 -82
- package/types/ngstarter-ui-components-snack-bar.d.ts +126 -134
- package/types/ngstarter-ui-components-sort.d.ts +99 -63
- package/types/ngstarter-ui-components-spinner.d.ts +49 -27
- package/types/ngstarter-ui-components-splash-screen.d.ts +34 -29
- package/types/ngstarter-ui-components-split.d.ts +276 -195
- package/types/ngstarter-ui-components-step-tracker.d.ts +102 -83
- package/types/ngstarter-ui-components-stepper.d.ts +57 -43
- package/types/ngstarter-ui-components-suggestions.d.ts +41 -28
- package/types/ngstarter-ui-components-tab-panel.d.ts +110 -83
- package/types/ngstarter-ui-components-table.d.ts +256 -228
- package/types/ngstarter-ui-components-tabs.d.ts +231 -138
- package/types/ngstarter-ui-components-thumbnail-maker.d.ts +40 -34
- package/types/ngstarter-ui-components-tiles.d.ts +166 -104
- package/types/ngstarter-ui-components-timeline.d.ts +45 -57
- package/types/ngstarter-ui-components-timepicker.d.ts +166 -111
- package/types/ngstarter-ui-components-timezone-select.d.ts +110 -70
- package/types/ngstarter-ui-components-toolbar.d.ts +89 -72
- package/types/ngstarter-ui-components-tooltip.d.ts +89 -52
- package/types/ngstarter-ui-components-tree-select.d.ts +182 -105
- package/types/ngstarter-ui-components-tree.d.ts +355 -229
- package/types/ngstarter-ui-components-upload.d.ts +216 -131
- package/types/ngstarter-ui-components-video-player.d.ts +130 -67
- package/types/ngstarter-ui-components-video-viewer.d.ts +140 -91
- package/types/ngstarter-ui-components-visual-builder.d.ts +5 -8
- package/types/ngstarter-ui-components-whiteboard.d.ts +412 -339
- package/types/ngstarter-ui-components.d.ts +2 -2
- package/fesm2022/ngstarter-ui-components-content-editor-attachment-block-8OmuepvH.mjs +0 -35
- package/fesm2022/ngstarter-ui-components-content-editor-attachment-block-8OmuepvH.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-callout-block-Dp5tISk3.mjs +0 -26
- package/fesm2022/ngstarter-ui-components-content-editor-callout-block-Dp5tISk3.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-code-block.component-BbBs-R_y.mjs +0 -220
- package/fesm2022/ngstarter-ui-components-content-editor-code-block.component-BbBs-R_y.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-cursor-controller-4Ak8VqGX.mjs +0 -99
- package/fesm2022/ngstarter-ui-components-content-editor-cursor-controller-4Ak8VqGX.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-divider-block.component-D1nXMRXD.mjs +0 -40
- package/fesm2022/ngstarter-ui-components-content-editor-divider-block.component-D1nXMRXD.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-embed-block-DGCCeU-Y.mjs +0 -375
- package/fesm2022/ngstarter-ui-components-content-editor-embed-block-DGCCeU-Y.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-gallery-block-BJfRgtaA.mjs +0 -80
- package/fesm2022/ngstarter-ui-components-content-editor-gallery-block-BJfRgtaA.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-grid-block-C_L7hF2G.mjs +0 -65
- package/fesm2022/ngstarter-ui-components-content-editor-grid-block-C_L7hF2G.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-heading-block.component-durrPUhm.mjs +0 -137
- package/fesm2022/ngstarter-ui-components-content-editor-heading-block.component-durrPUhm.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-image-block.component-BoL1jZpT.mjs +0 -113
- package/fesm2022/ngstarter-ui-components-content-editor-image-block.component-BoL1jZpT.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-list-block.component-ChZpgXO5.mjs +0 -235
- package/fesm2022/ngstarter-ui-components-content-editor-list-block.component-ChZpgXO5.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-nested-blocks-DwyNFnII.mjs +0 -117
- package/fesm2022/ngstarter-ui-components-content-editor-nested-blocks-DwyNFnII.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-BWpJv6CO.mjs +0 -4464
- package/fesm2022/ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-BWpJv6CO.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-paragraph-block.component-BvNvkqTO.mjs +0 -132
- package/fesm2022/ngstarter-ui-components-content-editor-paragraph-block.component-BvNvkqTO.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-quote-block.component-tgNKltfK.mjs +0 -171
- package/fesm2022/ngstarter-ui-components-content-editor-quote-block.component-tgNKltfK.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-table-block.component-BcAlqmh8.mjs +0 -1653
- package/fesm2022/ngstarter-ui-components-content-editor-table-block.component-BcAlqmh8.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-toggle-block-S474I51r.mjs +0 -20
- package/fesm2022/ngstarter-ui-components-content-editor-toggle-block-S474I51r.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-upload-status-QnKI_Rfz.mjs +0 -19
- package/fesm2022/ngstarter-ui-components-content-editor-upload-status-QnKI_Rfz.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-video-block.component-Dj82fxTI.mjs +0 -134
- package/fesm2022/ngstarter-ui-components-content-editor-video-block.component-Dj82fxTI.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-form-builder-plain-text-settings-GNXKGonc.mjs +0 -159
- package/fesm2022/ngstarter-ui-components-form-builder-plain-text-settings-GNXKGonc.mjs.map +0 -1
|
@@ -1,915 +1,1128 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import { RadioGroupOrientation } from
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
type
|
|
14
|
-
type
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
type
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
type: 'expression';
|
|
104
|
-
expression: string;
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { EnvironmentProviders, InjectionToken, OnDestroy, Provider, TemplateRef, Type } from "@angular/core";
|
|
3
|
+
import { FieldTree } from "@angular/forms/signals";
|
|
4
|
+
import { AsyncValidatorFn, ValidatorFn } from "@angular/forms";
|
|
5
|
+
import { UploadFileSelectedEvent } from "@ngstarter-ui/components/upload";
|
|
6
|
+
import { SelectDataSource, SelectOptionContentContext, SelectValueContext } from "@ngstarter-ui/components/select";
|
|
7
|
+
import { AutocompleteSelectedEvent } from "@ngstarter-ui/components/autocomplete";
|
|
8
|
+
import { ChipInputEvent } from "@ngstarter-ui/components/chips";
|
|
9
|
+
import { Tree, TreeNodeDrop, TreeNodeDropPosition } from "@ngstarter-ui/components/tree";
|
|
10
|
+
import { RadioGroupOrientation } from "@ngstarter-ui/components/radio";
|
|
11
|
+
export type FormBuilderFieldWidth = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
12
|
+
export type FormBuilderItemKind = 'field' | 'layout' | 'static';
|
|
13
|
+
export type FormBuilderSettingsInheritance = 'field' | 'input-field' | 'layout' | 'layout-container' | 'static' | 'none';
|
|
14
|
+
export type FormBuilderSelectOptionsSource = 'static' | 'dataSource';
|
|
15
|
+
export interface FormBuilderOption {
|
|
16
|
+
label: string;
|
|
17
|
+
value: any;
|
|
18
|
+
selected?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface FormBuilderSelectDataSourceOptions {
|
|
21
|
+
pageSize?: number;
|
|
22
|
+
searchable?: boolean;
|
|
23
|
+
searchDebounce?: number;
|
|
24
|
+
minSearchLength?: number;
|
|
25
|
+
loadOnOpen?: boolean;
|
|
26
|
+
}
|
|
27
|
+
export interface FormBuilderSelectDataSourceDefinition {
|
|
28
|
+
id: string;
|
|
29
|
+
name: string;
|
|
30
|
+
dataSource: SelectDataSource;
|
|
31
|
+
optionContentComponent?: Type<any>;
|
|
32
|
+
valueComponent?: Type<any>;
|
|
33
|
+
}
|
|
34
|
+
export interface FormBuilderValidationRule {
|
|
35
|
+
type: 'required' | 'email' | 'minLength' | 'maxLength' | 'min' | 'max' | string;
|
|
36
|
+
value?: any;
|
|
37
|
+
message?: string;
|
|
38
|
+
}
|
|
39
|
+
export type FormBuilderValidatorValueType = 'text' | 'number' | 'boolean' | 'pattern';
|
|
40
|
+
export type FormBuilderValidatorFactory = (rule: FormBuilderValidationRule, field: FormBuilderField) => ValidatorFn | ValidatorFn[] | AsyncValidatorFn | AsyncValidatorFn[] | null | undefined;
|
|
41
|
+
export interface FormBuilderValidatorDefinition {
|
|
42
|
+
type: string;
|
|
43
|
+
label: string;
|
|
44
|
+
description?: string;
|
|
45
|
+
errorKey?: string;
|
|
46
|
+
valueType?: FormBuilderValidatorValueType;
|
|
47
|
+
valueLabel?: string;
|
|
48
|
+
valuePlaceholder?: string;
|
|
49
|
+
requiresValue?: boolean;
|
|
50
|
+
defaultValue?: any;
|
|
51
|
+
defaultMessage?: string;
|
|
52
|
+
async?: boolean;
|
|
53
|
+
validator: FormBuilderValidatorFactory;
|
|
54
|
+
}
|
|
55
|
+
export interface FormBuilderField {
|
|
56
|
+
id: string;
|
|
57
|
+
name: string;
|
|
58
|
+
type: string;
|
|
59
|
+
kind?: FormBuilderItemKind;
|
|
60
|
+
label: string;
|
|
61
|
+
placeholder?: string;
|
|
62
|
+
hint?: string;
|
|
63
|
+
defaultValue?: any;
|
|
64
|
+
multiple?: boolean;
|
|
65
|
+
clearable?: boolean;
|
|
66
|
+
required?: boolean;
|
|
67
|
+
disabled?: boolean;
|
|
68
|
+
readonly?: boolean;
|
|
69
|
+
width?: FormBuilderFieldWidth;
|
|
70
|
+
options?: FormBuilderOption[];
|
|
71
|
+
optionsSource?: FormBuilderSelectOptionsSource;
|
|
72
|
+
dataSource?: string;
|
|
73
|
+
dataSourceOptions?: FormBuilderSelectDataSourceOptions;
|
|
74
|
+
validation?: FormBuilderValidationRule[];
|
|
75
|
+
settings?: Record<string, any>;
|
|
76
|
+
children?: FormBuilderField[];
|
|
77
|
+
}
|
|
78
|
+
export interface FormBuilderSection {
|
|
79
|
+
id: string;
|
|
80
|
+
title: string;
|
|
81
|
+
description?: string;
|
|
82
|
+
collapsed?: boolean;
|
|
83
|
+
fields: FormBuilderField[];
|
|
84
|
+
}
|
|
85
|
+
export interface FormBuilderLayoutItem {
|
|
86
|
+
kind: 'field' | 'section';
|
|
87
|
+
id: string;
|
|
88
|
+
}
|
|
89
|
+
export interface FormBuilderStep {
|
|
90
|
+
id: string;
|
|
91
|
+
title: string;
|
|
92
|
+
description?: string;
|
|
93
|
+
optional?: boolean;
|
|
94
|
+
items: FormBuilderLayoutItem[];
|
|
95
|
+
}
|
|
96
|
+
export interface FormBuilderFlow {
|
|
97
|
+
mode: 'single' | 'steps';
|
|
98
|
+
steps?: FormBuilderStep[];
|
|
99
|
+
}
|
|
100
|
+
export type FormBuilderLogicCondition = {
|
|
101
|
+
type: 'expression';
|
|
102
|
+
expression: string;
|
|
105
103
|
} | {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
104
|
+
type: 'field';
|
|
105
|
+
fieldId: string;
|
|
106
|
+
operator: FormBuilderLogicConditionOperator | '';
|
|
107
|
+
value?: unknown;
|
|
110
108
|
} | {
|
|
111
|
-
|
|
112
|
-
|
|
109
|
+
type: 'all';
|
|
110
|
+
conditions: FormBuilderLogicCondition[];
|
|
113
111
|
} | {
|
|
114
|
-
|
|
115
|
-
|
|
112
|
+
type: 'any';
|
|
113
|
+
conditions: FormBuilderLogicCondition[];
|
|
116
114
|
};
|
|
117
|
-
type FormBuilderLogicConditionOperator = 'equals' | 'notEquals' | 'contains' | 'notContains' | 'empty' | 'notEmpty' | 'greaterThan' | 'lessThan' | 'before' | 'after';
|
|
118
|
-
type FormBuilderLogicTargetKind = 'field' | 'section';
|
|
119
|
-
type FormBuilderLogicAction = {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
115
|
+
export type FormBuilderLogicConditionOperator = 'equals' | 'notEquals' | 'contains' | 'notContains' | 'empty' | 'notEmpty' | 'greaterThan' | 'lessThan' | 'before' | 'after';
|
|
116
|
+
export type FormBuilderLogicTargetKind = 'field' | 'section';
|
|
117
|
+
export type FormBuilderLogicAction = {
|
|
118
|
+
type: '';
|
|
119
|
+
targetId: '';
|
|
120
|
+
targetKind?: FormBuilderLogicTargetKind;
|
|
123
121
|
} | {
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
122
|
+
type: 'show' | 'hide';
|
|
123
|
+
targetId: string;
|
|
124
|
+
targetKind?: FormBuilderLogicTargetKind;
|
|
127
125
|
} | {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
126
|
+
type: 'enable' | 'disable';
|
|
127
|
+
targetId: string;
|
|
128
|
+
targetKind?: FormBuilderLogicTargetKind;
|
|
131
129
|
} | {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
130
|
+
type: 'readonly' | 'editable';
|
|
131
|
+
targetId: string;
|
|
132
|
+
targetKind?: FormBuilderLogicTargetKind;
|
|
135
133
|
} | {
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
134
|
+
type: 'require' | 'optional';
|
|
135
|
+
targetId: string;
|
|
136
|
+
targetKind?: FormBuilderLogicTargetKind;
|
|
139
137
|
} | {
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
138
|
+
type: 'setValue';
|
|
139
|
+
targetId: string;
|
|
140
|
+
targetKind?: FormBuilderLogicTargetKind;
|
|
141
|
+
expression: string;
|
|
144
142
|
} | {
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
143
|
+
type: 'clearValue';
|
|
144
|
+
targetId: string;
|
|
145
|
+
targetKind?: FormBuilderLogicTargetKind;
|
|
148
146
|
};
|
|
149
|
-
interface FormBuilderLogicRule {
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
}
|
|
158
|
-
interface FormBuilderSchema {
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
}
|
|
166
|
-
interface FormBuilderFieldRenderContext {
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
}
|
|
171
|
-
interface FormBuilderUploadContext {
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
}
|
|
179
|
-
type FormBuilderUploadCallback = (context: FormBuilderUploadContext) => any | Promise<any>;
|
|
180
|
-
type FormBuilderComponentImporter<T = any> = () => Promise<Type<T>>;
|
|
181
|
-
interface FormBuilderSettingsContext {
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
}
|
|
186
|
-
interface FormBuilderFieldSettingsContext {
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
}
|
|
194
|
-
interface FormBuilderSectionSettingsContext {
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
}
|
|
202
|
-
type FormBuilderSettingsSchemaFactory = (context: FormBuilderFieldSettingsContext | FormBuilderSectionSettingsContext) => FormBuilderSchema;
|
|
203
|
-
interface FormBuilderSettingsConfig {
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
}
|
|
207
|
-
interface FormBuilderItemDefinition {
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
}
|
|
219
|
-
interface FormBuilderFieldDefinition extends FormBuilderItemDefinition {
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
}
|
|
223
|
-
interface FormBuilderSettingsDefinition {
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
}
|
|
230
|
-
interface FormBuilderFieldChange {
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
}
|
|
234
|
-
interface FormBuilderCalculationContext {
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
}
|
|
239
|
-
interface FormBuilderCalculationResult {
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
}
|
|
243
|
-
interface FormBuilderCalculationEngine {
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
}
|
|
247
|
-
interface FormBuilderLogicContext {
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
}
|
|
253
|
-
interface FormBuilderLogicFieldState {
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
}
|
|
262
|
-
interface FormBuilderLogicError {
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
}
|
|
267
|
-
interface FormBuilderLogicEvaluation {
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
}
|
|
272
|
-
interface FormBuilderLogicEngine {
|
|
273
|
-
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
declare const
|
|
277
|
-
declare const
|
|
278
|
-
declare const
|
|
279
|
-
declare const
|
|
280
|
-
declare const
|
|
281
|
-
declare const
|
|
282
|
-
declare const
|
|
283
|
-
declare
|
|
284
|
-
declare function
|
|
285
|
-
declare function
|
|
286
|
-
declare function
|
|
287
|
-
declare function
|
|
288
|
-
declare function
|
|
289
|
-
declare function
|
|
290
|
-
declare function
|
|
291
|
-
declare function
|
|
292
|
-
declare function
|
|
293
|
-
declare function
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
uploadCallback?: FormBuilderUploadCallback;
|
|
147
|
+
export interface FormBuilderLogicRule {
|
|
148
|
+
id: string;
|
|
149
|
+
name?: string;
|
|
150
|
+
enabled?: boolean;
|
|
151
|
+
priority?: number;
|
|
152
|
+
when: FormBuilderLogicCondition;
|
|
153
|
+
actions: FormBuilderLogicAction[];
|
|
154
|
+
elseActions?: FormBuilderLogicAction[];
|
|
155
|
+
}
|
|
156
|
+
export interface FormBuilderSchema {
|
|
157
|
+
title?: string;
|
|
158
|
+
fields?: FormBuilderField[];
|
|
159
|
+
layout?: FormBuilderLayoutItem[];
|
|
160
|
+
flow?: FormBuilderFlow;
|
|
161
|
+
logic?: FormBuilderLogicRule[];
|
|
162
|
+
sections: FormBuilderSection[];
|
|
163
|
+
}
|
|
164
|
+
export interface FormBuilderFieldRenderContext {
|
|
165
|
+
field: FormBuilderField;
|
|
166
|
+
control: FieldTree<unknown>;
|
|
167
|
+
readonly: boolean;
|
|
168
|
+
}
|
|
169
|
+
export interface FormBuilderUploadContext {
|
|
170
|
+
field: FormBuilderField;
|
|
171
|
+
control: FieldTree<unknown>;
|
|
172
|
+
event: any;
|
|
173
|
+
files: File[];
|
|
174
|
+
fileList: FileList | null;
|
|
175
|
+
multiple: boolean;
|
|
176
|
+
}
|
|
177
|
+
export type FormBuilderUploadCallback = (context: FormBuilderUploadContext) => any | Promise<any>;
|
|
178
|
+
export type FormBuilderComponentImporter<T = any> = () => Promise<Type<T>>;
|
|
179
|
+
export interface FormBuilderSettingsContext {
|
|
180
|
+
field: FormBuilderField;
|
|
181
|
+
schema: FormBuilderSchema;
|
|
182
|
+
update: (changes: Partial<FormBuilderField>) => void;
|
|
183
|
+
}
|
|
184
|
+
export interface FormBuilderFieldSettingsContext {
|
|
185
|
+
item: FormBuilderField;
|
|
186
|
+
field: FormBuilderField;
|
|
187
|
+
schema: FormBuilderSchema;
|
|
188
|
+
definition?: FormBuilderFieldDefinition;
|
|
189
|
+
update: (changes: Partial<FormBuilderField>) => void;
|
|
190
|
+
updateField: (changes: Partial<FormBuilderField>) => void;
|
|
191
|
+
}
|
|
192
|
+
export interface FormBuilderSectionSettingsContext {
|
|
193
|
+
item: FormBuilderSection;
|
|
194
|
+
section: FormBuilderSection;
|
|
195
|
+
schema: FormBuilderSchema;
|
|
196
|
+
definition?: FormBuilderItemDefinition;
|
|
197
|
+
update: (changes: Partial<FormBuilderSection>) => void;
|
|
198
|
+
updateSection: (changes: Partial<FormBuilderSection>) => void;
|
|
199
|
+
}
|
|
200
|
+
export type FormBuilderSettingsSchemaFactory = (context: FormBuilderFieldSettingsContext | FormBuilderSectionSettingsContext) => FormBuilderSchema;
|
|
201
|
+
export interface FormBuilderSettingsConfig {
|
|
202
|
+
extends?: FormBuilderSettingsInheritance;
|
|
203
|
+
schema?: FormBuilderSchema | FormBuilderSettingsSchemaFactory;
|
|
204
|
+
}
|
|
205
|
+
export interface FormBuilderItemDefinition {
|
|
206
|
+
type: string;
|
|
207
|
+
label: string;
|
|
208
|
+
kind?: FormBuilderItemKind;
|
|
209
|
+
group?: string;
|
|
210
|
+
icon?: string;
|
|
211
|
+
description?: string;
|
|
212
|
+
defaults?: Partial<FormBuilderField>;
|
|
213
|
+
renderer?: FormBuilderComponentImporter;
|
|
214
|
+
settings?: FormBuilderComponentImporter | FormBuilderSettingsConfig;
|
|
215
|
+
acceptsChildren?: boolean;
|
|
216
|
+
}
|
|
217
|
+
export interface FormBuilderFieldDefinition extends FormBuilderItemDefinition {
|
|
218
|
+
kind?: FormBuilderItemKind;
|
|
219
|
+
validators?: (field: FormBuilderField) => ValidatorFn[];
|
|
220
|
+
}
|
|
221
|
+
export interface FormBuilderSettingsDefinition {
|
|
222
|
+
fieldType?: string;
|
|
223
|
+
itemType?: string;
|
|
224
|
+
type?: string;
|
|
225
|
+
kind?: FormBuilderItemKind;
|
|
226
|
+
component: FormBuilderComponentImporter;
|
|
227
|
+
}
|
|
228
|
+
export interface FormBuilderFieldChange {
|
|
229
|
+
field: FormBuilderField;
|
|
230
|
+
section?: FormBuilderSection;
|
|
231
|
+
}
|
|
232
|
+
export interface FormBuilderCalculationContext {
|
|
233
|
+
field: FormBuilderField;
|
|
234
|
+
fields: FormBuilderField[];
|
|
235
|
+
values: Record<string, any>;
|
|
236
|
+
}
|
|
237
|
+
export interface FormBuilderCalculationResult {
|
|
238
|
+
value: any;
|
|
239
|
+
error?: string;
|
|
240
|
+
}
|
|
241
|
+
export interface FormBuilderCalculationEngine {
|
|
242
|
+
evaluate(expression: string, context: FormBuilderCalculationContext): FormBuilderCalculationResult;
|
|
243
|
+
dependencies?(expression: string, fields: FormBuilderField[]): string[];
|
|
244
|
+
}
|
|
245
|
+
export interface FormBuilderLogicContext {
|
|
246
|
+
fields: FormBuilderField[];
|
|
247
|
+
sections?: FormBuilderSection[];
|
|
248
|
+
values: Record<string, any>;
|
|
249
|
+
calculationEngine: FormBuilderCalculationEngine;
|
|
250
|
+
}
|
|
251
|
+
export interface FormBuilderLogicFieldState {
|
|
252
|
+
hidden?: boolean;
|
|
253
|
+
disabled?: boolean;
|
|
254
|
+
readonly?: boolean;
|
|
255
|
+
required?: boolean;
|
|
256
|
+
value?: any;
|
|
257
|
+
hasValue?: boolean;
|
|
258
|
+
errors?: string[];
|
|
259
|
+
}
|
|
260
|
+
export interface FormBuilderLogicError {
|
|
261
|
+
ruleId: string;
|
|
262
|
+
targetId?: string;
|
|
263
|
+
message: string;
|
|
264
|
+
}
|
|
265
|
+
export interface FormBuilderLogicEvaluation {
|
|
266
|
+
fields: Record<string, FormBuilderLogicFieldState>;
|
|
267
|
+
sections: Record<string, FormBuilderLogicFieldState>;
|
|
268
|
+
errors: FormBuilderLogicError[];
|
|
269
|
+
}
|
|
270
|
+
export interface FormBuilderLogicEngine {
|
|
271
|
+
evaluate(rules: FormBuilderLogicRule[], context: FormBuilderLogicContext): FormBuilderLogicEvaluation;
|
|
272
|
+
}
|
|
273
|
+
export declare const FORM_BUILDER_ITEMS: InjectionToken<FormBuilderItemDefinition[]>;
|
|
274
|
+
export declare const FORM_BUILDER_FIELDS: InjectionToken<FormBuilderFieldDefinition[]>;
|
|
275
|
+
export declare const FORM_BUILDER_SETTINGS: InjectionToken<FormBuilderSettingsDefinition[]>;
|
|
276
|
+
export declare const FORM_BUILDER_UPLOAD_CALLBACK: InjectionToken<FormBuilderUploadCallback>;
|
|
277
|
+
export declare const FORM_BUILDER_SELECT_DATA_SOURCES: InjectionToken<FormBuilderSelectDataSourceDefinition[]>;
|
|
278
|
+
export declare const FORM_BUILDER_VALIDATORS: InjectionToken<FormBuilderValidatorDefinition[]>;
|
|
279
|
+
export declare const FORM_BUILDER_CALCULATION_ENGINE: InjectionToken<FormBuilderCalculationEngine>;
|
|
280
|
+
export declare const FORM_BUILDER_LOGIC_ENGINE: InjectionToken<FormBuilderLogicEngine>;
|
|
281
|
+
export declare function formBuilderField(definition: FormBuilderFieldDefinition): FormBuilderFieldDefinition;
|
|
282
|
+
export declare function formBuilderItem(definition: FormBuilderItemDefinition): FormBuilderItemDefinition;
|
|
283
|
+
export declare function formBuilderSettings(definition: FormBuilderSettingsDefinition): FormBuilderSettingsDefinition;
|
|
284
|
+
export declare function formBuilderValidator(definition: FormBuilderValidatorDefinition): FormBuilderValidatorDefinition;
|
|
285
|
+
export declare function provideFormBuilderField(definition: FormBuilderFieldDefinition): Provider;
|
|
286
|
+
export declare function provideFormBuilderFields(definitions: FormBuilderFieldDefinition[]): Provider[];
|
|
287
|
+
export declare function provideFormBuilderSelectDataSource(definition: FormBuilderSelectDataSourceDefinition): Provider;
|
|
288
|
+
export declare function provideFormBuilderSelectDataSources(definitions: FormBuilderSelectDataSourceDefinition[]): Provider[];
|
|
289
|
+
export declare function provideFormBuilderValidator(definition: FormBuilderValidatorDefinition): Provider;
|
|
290
|
+
export declare function provideFormBuilderValidators(definitions: FormBuilderValidatorDefinition[]): Provider[];
|
|
291
|
+
export declare function provideFormBuilder(config?: {
|
|
292
|
+
items?: FormBuilderItemDefinition[];
|
|
293
|
+
fields?: FormBuilderFieldDefinition[];
|
|
294
|
+
settings?: FormBuilderSettingsDefinition[];
|
|
295
|
+
selectDataSources?: FormBuilderSelectDataSourceDefinition[];
|
|
296
|
+
validators?: FormBuilderValidatorDefinition[];
|
|
297
|
+
calculationEngine?: FormBuilderCalculationEngine;
|
|
298
|
+
logicEngine?: FormBuilderLogicEngine;
|
|
299
|
+
uploadCallback?: FormBuilderUploadCallback;
|
|
303
300
|
}): EnvironmentProviders;
|
|
304
|
-
declare const FORM_BUILDER_FIELD_BASE_SETTINGS_SCHEMA: FormBuilderSchema;
|
|
305
|
-
declare const FORM_BUILDER_INPUT_FIELD_BASE_SETTINGS_SCHEMA: FormBuilderSchema;
|
|
306
|
-
declare const FORM_BUILDER_LAYOUT_BASE_SETTINGS_SCHEMA: FormBuilderSchema;
|
|
307
|
-
declare const FORM_BUILDER_LAYOUT_CONTAINER_BASE_SETTINGS_SCHEMA: FormBuilderSchema;
|
|
308
|
-
declare const FORM_BUILDER_STATIC_BASE_SETTINGS_SCHEMA: FormBuilderSchema;
|
|
309
|
-
declare const FORM_BUILDER_SECTION_BASE_SETTINGS_SCHEMA: FormBuilderSchema;
|
|
310
|
-
declare const DEFAULT_FORM_BUILDER_FIELDS: FormBuilderFieldDefinition[];
|
|
311
|
-
declare const DEFAULT_FORM_BUILDER_ITEMS: FormBuilderItemDefinition[];
|
|
312
|
-
declare const DEFAULT_FORM_BUILDER_VALIDATORS: FormBuilderValidatorDefinition[];
|
|
313
|
-
declare function mergeFormBuilderValidatorDefinitions(definitions?: FormBuilderValidatorDefinition[]): FormBuilderValidatorDefinition[];
|
|
314
|
-
declare function validatorsFromRules(rules?: FormBuilderValidationRule[], field?: FormBuilderField, validatorDefinitions?: FormBuilderValidatorDefinition[]): ValidatorFn[];
|
|
315
|
-
declare function asyncValidatorsFromRules(rules?: FormBuilderValidationRule[], field?: FormBuilderField, validatorDefinitions?: FormBuilderValidatorDefinition[]): AsyncValidatorFn[];
|
|
316
|
-
|
|
317
|
-
declare const
|
|
318
|
-
|
|
319
|
-
declare const DEFAULT_FORM_BUILDER_LOGIC_ENGINE: FormBuilderLogicEngine;
|
|
320
|
-
|
|
301
|
+
export declare const FORM_BUILDER_FIELD_BASE_SETTINGS_SCHEMA: FormBuilderSchema;
|
|
302
|
+
export declare const FORM_BUILDER_INPUT_FIELD_BASE_SETTINGS_SCHEMA: FormBuilderSchema;
|
|
303
|
+
export declare const FORM_BUILDER_LAYOUT_BASE_SETTINGS_SCHEMA: FormBuilderSchema;
|
|
304
|
+
export declare const FORM_BUILDER_LAYOUT_CONTAINER_BASE_SETTINGS_SCHEMA: FormBuilderSchema;
|
|
305
|
+
export declare const FORM_BUILDER_STATIC_BASE_SETTINGS_SCHEMA: FormBuilderSchema;
|
|
306
|
+
export declare const FORM_BUILDER_SECTION_BASE_SETTINGS_SCHEMA: FormBuilderSchema;
|
|
307
|
+
export declare const DEFAULT_FORM_BUILDER_FIELDS: FormBuilderFieldDefinition[];
|
|
308
|
+
export declare const DEFAULT_FORM_BUILDER_ITEMS: FormBuilderItemDefinition[];
|
|
309
|
+
export declare const DEFAULT_FORM_BUILDER_VALIDATORS: FormBuilderValidatorDefinition[];
|
|
310
|
+
export declare function mergeFormBuilderValidatorDefinitions(definitions?: FormBuilderValidatorDefinition[]): FormBuilderValidatorDefinition[];
|
|
311
|
+
export declare function validatorsFromRules(rules?: FormBuilderValidationRule[], field?: FormBuilderField, validatorDefinitions?: FormBuilderValidatorDefinition[]): ValidatorFn[];
|
|
312
|
+
export declare function asyncValidatorsFromRules(rules?: FormBuilderValidationRule[], field?: FormBuilderField, validatorDefinitions?: FormBuilderValidatorDefinition[]): AsyncValidatorFn[];
|
|
313
|
+
export declare const DEFAULT_FORM_BUILDER_CALCULATION_ENGINE: FormBuilderCalculationEngine;
|
|
314
|
+
export declare const DEFAULT_FORM_BUILDER_LOGIC_ENGINE: FormBuilderLogicEngine;
|
|
321
315
|
interface FormBuilderPaletteGroup {
|
|
322
|
-
|
|
323
|
-
|
|
316
|
+
name: string;
|
|
317
|
+
fields: FormBuilderFieldDefinition[];
|
|
324
318
|
}
|
|
325
319
|
interface FormBuilderFieldTreeNode {
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
320
|
+
id: string;
|
|
321
|
+
label: string;
|
|
322
|
+
name?: string;
|
|
323
|
+
type: string;
|
|
324
|
+
icon: string;
|
|
325
|
+
kind: 'step' | 'section' | 'field';
|
|
326
|
+
field?: FormBuilderField;
|
|
327
|
+
section?: FormBuilderSection;
|
|
328
|
+
step?: FormBuilderStep;
|
|
329
|
+
children?: FormBuilderFieldTreeNode[];
|
|
336
330
|
}
|
|
337
331
|
interface FormBuilderCanvasItem extends FormBuilderLayoutItem {
|
|
338
|
-
|
|
339
|
-
|
|
332
|
+
field?: FormBuilderField;
|
|
333
|
+
section?: FormBuilderSection;
|
|
340
334
|
}
|
|
341
335
|
interface FormBuilderCanvasStep extends FormBuilderStep {
|
|
342
|
-
|
|
336
|
+
items: FormBuilderCanvasItem[];
|
|
343
337
|
}
|
|
344
338
|
type FormBuilderNativeDragItem = {
|
|
345
|
-
|
|
346
|
-
|
|
339
|
+
kind: 'field';
|
|
340
|
+
definition: FormBuilderFieldDefinition;
|
|
347
341
|
} | {
|
|
348
|
-
|
|
342
|
+
kind: 'section';
|
|
349
343
|
};
|
|
350
344
|
interface FormBuilderNativeDropTarget {
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
}
|
|
354
|
-
declare class FormBuilder implements OnDestroy {
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
345
|
+
containerId: string;
|
|
346
|
+
index: number;
|
|
347
|
+
}
|
|
348
|
+
export declare class FormBuilder implements OnDestroy {
|
|
349
|
+
private readonly dialog;
|
|
350
|
+
private readonly confirmManager;
|
|
351
|
+
private readonly elementRef;
|
|
352
|
+
private readonly providedItems;
|
|
353
|
+
private readonly providedFields;
|
|
354
|
+
private readonly providedSettings;
|
|
355
|
+
private readonly providedValidators;
|
|
356
|
+
private readonly formInjector;
|
|
357
|
+
private readonly previewControls;
|
|
358
|
+
private readonly fieldTreeNodeCache;
|
|
359
|
+
private readonly canvasAnimationTimers;
|
|
360
|
+
private readonly actualFieldsTree;
|
|
361
|
+
private fieldTreeRootNodes;
|
|
362
|
+
private fieldTreeStructureKey;
|
|
363
|
+
private suppressPaletteClick;
|
|
364
|
+
private pendingNativeDropTarget;
|
|
365
|
+
private nativeDropTargetDelayTimer;
|
|
366
|
+
readonly schema: import("@angular/core").ModelSignal<FormBuilderSchema>;
|
|
367
|
+
readonly paletteTitle: import("@angular/core").InputSignal<string>;
|
|
368
|
+
readonly inspectorTitle: import("@angular/core").InputSignal<string>;
|
|
369
|
+
readonly canvasDropPlaceholderDelay: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
370
|
+
readonly fieldSelected: import("@angular/core").OutputEmitterRef<FormBuilderFieldChange>;
|
|
371
|
+
readonly fieldAdded: import("@angular/core").OutputEmitterRef<FormBuilderFieldChange>;
|
|
372
|
+
readonly fieldRemoved: import("@angular/core").OutputEmitterRef<FormBuilderFieldChange>;
|
|
373
|
+
protected readonly search: import("@angular/core").WritableSignal<string>;
|
|
374
|
+
protected readonly fieldsTabIndex: import("@angular/core").WritableSignal<number>;
|
|
375
|
+
protected readonly selectedFieldId: import("@angular/core").WritableSignal<string | null>;
|
|
376
|
+
protected readonly validatorDialogStep: import("@angular/core").WritableSignal<number>;
|
|
377
|
+
protected readonly selectedValidatorDefinition: import("@angular/core").WritableSignal<FormBuilderValidatorDefinition | null>;
|
|
378
|
+
protected readonly pendingValidationRule: import("@angular/core").WritableSignal<FormBuilderValidationRule | null>;
|
|
379
|
+
protected readonly editingValidationRuleIndex: import("@angular/core").WritableSignal<number | null>;
|
|
380
|
+
protected readonly mimeTypeFilter: import("@angular/core").WritableSignal<string>;
|
|
381
|
+
protected readonly mimeTypeSeparatorKeyCodes: number[];
|
|
382
|
+
protected readonly nativeDragItem: import("@angular/core").WritableSignal<FormBuilderNativeDragItem | null>;
|
|
383
|
+
protected readonly nativeDragFieldDefinition: import("@angular/core").Signal<FormBuilderFieldDefinition | null>;
|
|
384
|
+
protected readonly nativeDragSection: import("@angular/core").Signal<boolean>;
|
|
385
|
+
protected readonly nativeDropTarget: import("@angular/core").WritableSignal<FormBuilderNativeDropTarget | null>;
|
|
386
|
+
protected readonly expandedFieldTreeNodeIds: import("@angular/core").WritableSignal<ReadonlySet<string>>;
|
|
387
|
+
protected readonly definitions: import("@angular/core").Signal<FormBuilderFieldDefinition[]>;
|
|
388
|
+
protected readonly settingsDefinitions: import("@angular/core").Signal<FormBuilderSettingsDefinition[]>;
|
|
389
|
+
protected readonly validatorDefinitions: import("@angular/core").Signal<FormBuilderValidatorDefinition[]>;
|
|
390
|
+
protected readonly selectedMimeTypes: import("@angular/core").Signal<string[]>;
|
|
391
|
+
protected readonly filteredMimeTypes: import("@angular/core").Signal<string[]>;
|
|
392
|
+
protected readonly validationSettingsField: FormBuilderField;
|
|
393
|
+
protected readonly canvasItems: import("@angular/core").Signal<FormBuilderCanvasItem[]>;
|
|
394
|
+
protected readonly stepsMode: import("@angular/core").Signal<boolean>;
|
|
395
|
+
protected readonly canvasSteps: import("@angular/core").Signal<FormBuilderCanvasStep[]>;
|
|
396
|
+
protected readonly layoutDefinitions: import("@angular/core").Signal<FormBuilderFieldDefinition[]>;
|
|
397
|
+
protected readonly paletteGroups: import("@angular/core").Signal<FormBuilderPaletteGroup[]>;
|
|
398
|
+
protected readonly selectedField: import("@angular/core").Signal<FormBuilderField | null>;
|
|
399
|
+
protected readonly selectedSection: import("@angular/core").Signal<FormBuilderSection | null>;
|
|
400
|
+
protected readonly selectedStep: import("@angular/core").Signal<FormBuilderStep | null>;
|
|
401
|
+
protected readonly fieldTree: import("@angular/core").Signal<FormBuilderFieldTreeNode[]>;
|
|
402
|
+
protected readonly fieldTreeChildrenAccessor: (node: FormBuilderFieldTreeNode) => FormBuilderFieldTreeNode[];
|
|
403
|
+
protected readonly hasFieldTreeChildren: (_: number, node: FormBuilderFieldTreeNode) => boolean;
|
|
404
|
+
protected readonly trackFieldTreeNode: (_: number, node: FormBuilderFieldTreeNode) => string;
|
|
405
|
+
protected readonly fieldTreeDraggablePredicate: (_node: FormBuilderFieldTreeNode) => boolean;
|
|
406
|
+
protected readonly fieldTreeDropPredicate: (source: FormBuilderFieldTreeNode, target: FormBuilderFieldTreeNode, position: TreeNodeDropPosition) => boolean;
|
|
407
|
+
protected readonly updateSelectedField: (changes: Partial<FormBuilderField>) => void;
|
|
408
|
+
protected readonly updateSelectedSection: (changes: Partial<FormBuilderSection>) => void;
|
|
409
|
+
protected readonly updateSelectedStep: (changes: Partial<FormBuilderStep>) => void;
|
|
410
|
+
ngOnDestroy(): void;
|
|
411
|
+
protected paletteDragStarted(event: DragEvent, definition: FormBuilderFieldDefinition): void;
|
|
412
|
+
protected sectionPaletteDragStarted(event: DragEvent): void;
|
|
413
|
+
protected paletteDragEnded(): void;
|
|
414
|
+
protected paletteClicked(definition: FormBuilderFieldDefinition): void;
|
|
415
|
+
protected nativeCanvasDragOver(event: DragEvent): void;
|
|
416
|
+
protected nativeStepDragOver(event: DragEvent, step: FormBuilderStep): void;
|
|
417
|
+
protected nativeStepDrop(event: DragEvent, step: FormBuilderStep): void;
|
|
418
|
+
protected nativeFieldDragOver(event: DragEvent, containerId: string): void;
|
|
419
|
+
protected nativeSectionDragOver(event: DragEvent, section: FormBuilderSection): void;
|
|
420
|
+
protected nativeSectionDrop(event: DragEvent, section: FormBuilderSection): void;
|
|
421
|
+
protected nativeContainerFieldDragOver(event: DragEvent, field: FormBuilderField): void;
|
|
422
|
+
protected nativeContainerFieldDragLeave(event: DragEvent, field: FormBuilderField): void;
|
|
423
|
+
protected nativeContainerFieldDrop(event: DragEvent, field: FormBuilderField): void;
|
|
424
|
+
protected nativeDragLeave(event: DragEvent, containerId: string): void;
|
|
425
|
+
protected nativeFieldDrop(event: DragEvent, containerId: string): void;
|
|
426
|
+
protected isNativeDropTarget(containerId: string, index: number): boolean;
|
|
427
|
+
protected addField(definition: FormBuilderFieldDefinition, sectionId?: string): void;
|
|
428
|
+
protected addSection(): void;
|
|
429
|
+
protected addStep(): void;
|
|
430
|
+
protected openPreview(template: TemplateRef<unknown>): void;
|
|
431
|
+
protected openAddValidatorDialog(template: TemplateRef<unknown>): void;
|
|
432
|
+
protected openEditValidatorDialog(template: TemplateRef<unknown>, rule: FormBuilderValidationRule, index: number): void;
|
|
433
|
+
protected selectValidatorDefinition(definition: FormBuilderValidatorDefinition): void;
|
|
434
|
+
protected selectValidatorDefinitionByType(type: string): void;
|
|
435
|
+
protected selectedValidatorValue(): any;
|
|
436
|
+
protected selectedValidatorMessage(): string;
|
|
437
|
+
protected updatePendingValidatorValue(definition: FormBuilderValidatorDefinition, event: Event): void;
|
|
438
|
+
protected isMimeTypeValidator(definition: FormBuilderValidatorDefinition): boolean;
|
|
439
|
+
protected updateMimeTypeFilter(event: Event): void;
|
|
440
|
+
protected addMimeTypeFromInput(event: ChipInputEvent): void;
|
|
441
|
+
protected selectMimeType(event: AutocompleteSelectedEvent, input: HTMLInputElement): void;
|
|
442
|
+
protected removeMimeType(mimeType: string): void;
|
|
443
|
+
protected updatePendingValidatorMessage(definition: FormBuilderValidatorDefinition, event: Event): void;
|
|
444
|
+
protected canSavePendingValidator(): boolean;
|
|
445
|
+
protected savePendingValidator(field: FormBuilderField): void;
|
|
446
|
+
protected confirmRemoveValidator(field: FormBuilderField, rule: FormBuilderValidationRule, index: number): void;
|
|
447
|
+
private removeValidator;
|
|
448
|
+
protected validatorDefinitionForRule(rule: FormBuilderValidationRule): FormBuilderValidatorDefinition | null;
|
|
449
|
+
protected validatorRuleTitle(rule: FormBuilderValidationRule): string;
|
|
450
|
+
protected validatorInputType(definition: FormBuilderValidatorDefinition): string;
|
|
451
|
+
private addMimeType;
|
|
452
|
+
private openValidatorDialog;
|
|
453
|
+
private normalizeValidationRule;
|
|
454
|
+
protected removeSection(section: FormBuilderSection): void;
|
|
455
|
+
protected updateSection(section: FormBuilderSection, changes: Partial<FormBuilderSection>): void;
|
|
456
|
+
protected updateStep(step: FormBuilderStep, changes: Partial<FormBuilderStep>): void;
|
|
457
|
+
protected updateLogic(logic: FormBuilderLogicRule[]): void;
|
|
458
|
+
protected removeStep(step: FormBuilderStep): void;
|
|
459
|
+
protected isSectionCollapsed(section: FormBuilderSection): boolean;
|
|
460
|
+
protected selectField(field: FormBuilderField, section?: FormBuilderSection): void;
|
|
461
|
+
protected selectSection(section: FormBuilderSection): void;
|
|
462
|
+
protected selectStep(step: FormBuilderStep): void;
|
|
463
|
+
protected selectCanvasField(field: FormBuilderField, section?: FormBuilderSection): void;
|
|
464
|
+
protected selectFieldTreeNode(node: FormBuilderFieldTreeNode): void;
|
|
465
|
+
protected toggleFieldTreeNode(tree: Tree<FormBuilderFieldTreeNode>, node: FormBuilderFieldTreeNode, event: MouseEvent): void;
|
|
466
|
+
protected isFieldTreeNodeExpanded(tree: Tree<FormBuilderFieldTreeNode>, node: FormBuilderFieldTreeNode): boolean;
|
|
467
|
+
protected fieldTreePlaceholderIcon(source: FormBuilderFieldTreeNode): string;
|
|
468
|
+
protected fieldTreeNodeDropped(event: TreeNodeDrop<FormBuilderFieldTreeNode>): void;
|
|
469
|
+
protected confirmRemoveField(field: FormBuilderField): void;
|
|
470
|
+
private removeField;
|
|
471
|
+
protected sectionDropListId(section: FormBuilderSection): string;
|
|
472
|
+
protected stepDropListId(step: FormBuilderStep): string;
|
|
473
|
+
protected fieldDropListId(field: FormBuilderField): string;
|
|
474
|
+
protected rootDropListId(): string;
|
|
475
|
+
protected previewControl(field: FormBuilderField): FieldTree<unknown>;
|
|
476
|
+
protected validationRulesForField(field: FormBuilderField): FormBuilderValidationRule[];
|
|
477
|
+
protected patchSelectedField(changes: Partial<FormBuilderField>): void;
|
|
478
|
+
private updateFieldValidation;
|
|
479
|
+
protected isContainerField(field: FormBuilderField): boolean;
|
|
480
|
+
protected fieldIcon(field: FormBuilderField): string;
|
|
481
|
+
protected definitionWidth(definition: FormBuilderFieldDefinition): FormBuilderFieldWidth;
|
|
482
|
+
private matchesPaletteQuery;
|
|
483
|
+
private nativeDragOver;
|
|
484
|
+
private nativeDragOverAtIndex;
|
|
485
|
+
private scheduleNativeDropTarget;
|
|
486
|
+
private clearNativeDropTarget;
|
|
487
|
+
private clearPendingNativeDropTarget;
|
|
488
|
+
private setNativeDropTarget;
|
|
489
|
+
private isSameNativeDropTarget;
|
|
490
|
+
private captureCanvasItemRects;
|
|
491
|
+
private animateCanvasItemMoves;
|
|
492
|
+
private getCanvasAnimatedItems;
|
|
493
|
+
private getCanvasAnimatedItemKey;
|
|
494
|
+
private insertNativeField;
|
|
495
|
+
private insertNativeSection;
|
|
496
|
+
private insertNativeSectionIntoStep;
|
|
497
|
+
private resolveNativeDragItem;
|
|
498
|
+
private resolveNativeDropIndex;
|
|
499
|
+
private setPaletteDragImage;
|
|
500
|
+
private createField;
|
|
501
|
+
private defaultWidth;
|
|
502
|
+
private resolveCanvasItems;
|
|
503
|
+
private resolveCanvasSteps;
|
|
504
|
+
private resolveLayoutItems;
|
|
505
|
+
private normalizedLayout;
|
|
506
|
+
private isStepsMode;
|
|
507
|
+
private normalizedSteps;
|
|
508
|
+
private ensureStepsFlow;
|
|
509
|
+
private validLayoutItemSet;
|
|
510
|
+
private insertStepItem;
|
|
511
|
+
private removeStepItemReferences;
|
|
512
|
+
private findStepContainingItem;
|
|
513
|
+
private isStepDropListId;
|
|
514
|
+
private findStepByDropListId;
|
|
515
|
+
private detachFieldFromLocation;
|
|
516
|
+
private insertFieldIntoTreeSection;
|
|
517
|
+
private insertFieldAroundTreeSection;
|
|
518
|
+
private insertFieldAroundStepTreeItem;
|
|
519
|
+
private resolveTreeFieldInsertTarget;
|
|
520
|
+
private insertRootFieldIntoLayout;
|
|
521
|
+
private resetFieldTreeAfterRejectedDrop;
|
|
522
|
+
private canDropFieldTreeNode;
|
|
523
|
+
private dropFieldTreeSection;
|
|
524
|
+
private dropFieldTreeStep;
|
|
525
|
+
private isRootFieldTreeNode;
|
|
526
|
+
private restoreFieldTreeExpansion;
|
|
527
|
+
private expandFieldTreeOwner;
|
|
528
|
+
private flattenFieldTree;
|
|
529
|
+
private openActualFieldsTreeForField;
|
|
530
|
+
private findFieldTreeNodePath;
|
|
531
|
+
private scrollFieldTreeNodeIntoView;
|
|
532
|
+
private findFieldTreeNodeElement;
|
|
533
|
+
private scrollCanvasFieldIntoView;
|
|
534
|
+
private scrollCanvasSectionIntoView;
|
|
535
|
+
private scrollCanvasStepIntoView;
|
|
536
|
+
private scrollCanvasItemIntoView;
|
|
537
|
+
private findCanvasFieldElement;
|
|
538
|
+
private findCanvasSectionElement;
|
|
539
|
+
private findCanvasStepElement;
|
|
540
|
+
private syncPreviewControl;
|
|
541
|
+
private fieldInitialValue;
|
|
542
|
+
private scrollElementFullyIntoView;
|
|
543
|
+
private afterNextPaint;
|
|
544
|
+
private upsertStepTreeNode;
|
|
545
|
+
private upsertSectionTreeNode;
|
|
546
|
+
private upsertFieldTreeNode;
|
|
547
|
+
private getCachedFieldTreeNode;
|
|
548
|
+
private resolveFieldTreeStructureKey;
|
|
549
|
+
private findContainerLocation;
|
|
550
|
+
private findFieldContainerLocation;
|
|
551
|
+
private findFieldLocation;
|
|
552
|
+
private deletePreviewControls;
|
|
553
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormBuilder, never>;
|
|
554
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormBuilder, "ngs-form-builder", ["ngsFormBuilder"], {
|
|
555
|
+
"schema": {
|
|
556
|
+
"alias": "schema";
|
|
557
|
+
"required": false;
|
|
558
|
+
"isSignal": true;
|
|
559
|
+
};
|
|
560
|
+
"paletteTitle": {
|
|
561
|
+
"alias": "paletteTitle";
|
|
562
|
+
"required": false;
|
|
563
|
+
"isSignal": true;
|
|
564
|
+
};
|
|
565
|
+
"inspectorTitle": {
|
|
566
|
+
"alias": "inspectorTitle";
|
|
567
|
+
"required": false;
|
|
568
|
+
"isSignal": true;
|
|
569
|
+
};
|
|
570
|
+
"canvasDropPlaceholderDelay": {
|
|
571
|
+
"alias": "canvasDropPlaceholderDelay";
|
|
572
|
+
"required": false;
|
|
573
|
+
"isSignal": true;
|
|
574
|
+
};
|
|
575
|
+
}, {
|
|
576
|
+
"schema": "schemaChange";
|
|
577
|
+
"fieldSelected": "fieldSelected";
|
|
578
|
+
"fieldAdded": "fieldAdded";
|
|
579
|
+
"fieldRemoved": "fieldRemoved";
|
|
580
|
+
}, never, never, true, never>;
|
|
581
|
+
}
|
|
582
|
+
export declare function createDefaultFormBuilderSchema(): FormBuilderSchema;
|
|
566
583
|
type FormBuilderLogicActionBranch = 'actions' | 'elseActions';
|
|
567
584
|
type FormBuilderLogicActionType = Exclude<FormBuilderLogicAction['type'], ''>;
|
|
568
585
|
type FormBuilderLogicConditionMode = Exclude<FormBuilderLogicCondition['type'], 'field'>;
|
|
569
586
|
interface FormBuilderLogicTargetOption {
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
587
|
+
kind: FormBuilderLogicTargetKind;
|
|
588
|
+
id: string;
|
|
589
|
+
name: string;
|
|
590
|
+
label: string;
|
|
591
|
+
type: string;
|
|
592
|
+
depth: number;
|
|
593
|
+
}
|
|
594
|
+
export declare class FormLogic {
|
|
595
|
+
private readonly dialog;
|
|
596
|
+
readonly schema: import("@angular/core").InputSignal<FormBuilderSchema | null>;
|
|
597
|
+
readonly logic: import("@angular/core").ModelSignal<FormBuilderLogicRule[]>;
|
|
598
|
+
readonly title: import("@angular/core").InputSignal<string>;
|
|
599
|
+
readonly description: import("@angular/core").InputSignal<string>;
|
|
600
|
+
protected readonly conditionTypeOptions: {
|
|
601
|
+
label: string;
|
|
602
|
+
value: FormBuilderLogicConditionMode;
|
|
603
|
+
}[];
|
|
604
|
+
protected readonly conditionOperatorOptions: {
|
|
573
605
|
label: string;
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
606
|
+
value: FormBuilderLogicConditionOperator;
|
|
607
|
+
}[];
|
|
608
|
+
protected readonly draftRule: import("@angular/core").WritableSignal<FormBuilderLogicRule | null>;
|
|
609
|
+
protected readonly selectedRuleId: import("@angular/core").WritableSignal<string | null>;
|
|
610
|
+
protected readonly rules: import("@angular/core").Signal<FormBuilderLogicRule[]>;
|
|
611
|
+
protected readonly targetOptions: import("@angular/core").Signal<FormBuilderLogicTargetOption[]>;
|
|
612
|
+
protected readonly selectedRule: import("@angular/core").Signal<FormBuilderLogicRule | null>;
|
|
613
|
+
protected openAddRuleDialog(template: TemplateRef<unknown>): void;
|
|
614
|
+
protected openRuleEditorDialog(rule: FormBuilderLogicRule, template: TemplateRef<unknown>, ariaLabel?: string): void;
|
|
615
|
+
protected duplicateRule(rule: FormBuilderLogicRule): void;
|
|
616
|
+
protected removeRule(rule: FormBuilderLogicRule): void;
|
|
617
|
+
protected moveRule(rule: FormBuilderLogicRule, direction: -1 | 1): void;
|
|
618
|
+
protected selectRule(rule: FormBuilderLogicRule): void;
|
|
619
|
+
protected isFirstRule(rule: FormBuilderLogicRule): boolean;
|
|
620
|
+
protected isLastRule(rule: FormBuilderLogicRule): boolean;
|
|
621
|
+
protected isDraftRule(rule: FormBuilderLogicRule): boolean;
|
|
622
|
+
protected saveRuleDialog(rule: FormBuilderLogicRule): void;
|
|
623
|
+
protected discardDraftRule(): void;
|
|
624
|
+
protected updateRule(rule: FormBuilderLogicRule, changes: Partial<FormBuilderLogicRule>): void;
|
|
625
|
+
protected setConditionType(rule: FormBuilderLogicRule, type: FormBuilderLogicConditionMode): void;
|
|
626
|
+
protected updateConditionExpression(rule: FormBuilderLogicRule, expression: string, index?: number): void;
|
|
627
|
+
protected addCondition(rule: FormBuilderLogicRule): void;
|
|
628
|
+
protected removeCondition(rule: FormBuilderLogicRule, index: number): void;
|
|
629
|
+
protected conditionsFor(rule: FormBuilderLogicRule): FormBuilderLogicCondition[];
|
|
630
|
+
protected fieldOptions(): FormBuilderLogicTargetOption[];
|
|
631
|
+
protected conditionFieldValue(condition: FormBuilderLogicCondition): string;
|
|
632
|
+
protected conditionOperatorValue(condition: FormBuilderLogicCondition): FormBuilderLogicConditionOperator | '';
|
|
633
|
+
protected conditionValue(condition: FormBuilderLogicCondition): string;
|
|
634
|
+
protected conditionNeedsValue(condition: FormBuilderLogicCondition): boolean;
|
|
635
|
+
protected updateConditionField(rule: FormBuilderLogicRule, index: number, fieldId: string): void;
|
|
636
|
+
protected updateConditionOperator(rule: FormBuilderLogicRule, index: number, operator: FormBuilderLogicConditionOperator): void;
|
|
637
|
+
protected updateConditionValue(rule: FormBuilderLogicRule, index: number, value: string): void;
|
|
638
|
+
protected actionsFor(rule: FormBuilderLogicRule, branch: FormBuilderLogicActionBranch): FormBuilderLogicAction[];
|
|
639
|
+
protected addAction(rule: FormBuilderLogicRule, branch: FormBuilderLogicActionBranch): void;
|
|
640
|
+
protected updateActionType(rule: FormBuilderLogicRule, branch: FormBuilderLogicActionBranch, index: number, type: FormBuilderLogicActionType): void;
|
|
641
|
+
protected updateActionTarget(rule: FormBuilderLogicRule, branch: FormBuilderLogicActionBranch, index: number, value: string): void;
|
|
642
|
+
protected updateActionExpression(rule: FormBuilderLogicRule, branch: FormBuilderLogicActionBranch, index: number, expression: string): void;
|
|
643
|
+
protected removeAction(rule: FormBuilderLogicRule, branch: FormBuilderLogicActionBranch, index: number): void;
|
|
644
|
+
protected conditionLabel(condition: FormBuilderLogicCondition): string;
|
|
645
|
+
protected actionLabel(action: FormBuilderLogicAction): string;
|
|
646
|
+
protected actionTypeOptionsForTarget(kind: FormBuilderLogicTargetKind | undefined): {
|
|
647
|
+
label: string;
|
|
648
|
+
value: FormBuilderLogicActionType;
|
|
649
|
+
}[];
|
|
650
|
+
protected actionTargetValue(action: FormBuilderLogicAction): string;
|
|
651
|
+
protected targetOptionLabel(option: FormBuilderLogicTargetOption): string;
|
|
652
|
+
protected fieldOptionLabel(option: FormBuilderLogicTargetOption): string;
|
|
653
|
+
private targetLabel;
|
|
654
|
+
private updateAction;
|
|
655
|
+
private updateFieldCondition;
|
|
656
|
+
private replaceRule;
|
|
657
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormLogic, never>;
|
|
658
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormLogic, "ngs-form-logic", ["ngsFormLogic"], {
|
|
659
|
+
"schema": {
|
|
660
|
+
"alias": "schema";
|
|
661
|
+
"required": false;
|
|
662
|
+
"isSignal": true;
|
|
663
|
+
};
|
|
664
|
+
"logic": {
|
|
665
|
+
"alias": "logic";
|
|
666
|
+
"required": false;
|
|
667
|
+
"isSignal": true;
|
|
668
|
+
};
|
|
669
|
+
"title": {
|
|
670
|
+
"alias": "title";
|
|
671
|
+
"required": false;
|
|
672
|
+
"isSignal": true;
|
|
673
|
+
};
|
|
674
|
+
"description": {
|
|
675
|
+
"alias": "description";
|
|
676
|
+
"required": false;
|
|
677
|
+
"isSignal": true;
|
|
678
|
+
};
|
|
679
|
+
}, {
|
|
680
|
+
"logic": "logicChange";
|
|
681
|
+
}, never, never, true, never>;
|
|
682
|
+
}
|
|
683
|
+
type FormValues = Record<string, any>;
|
|
684
|
+
type RenderForm = FieldTree<FormValues>;
|
|
685
|
+
type RenderField = FieldTree<unknown>;
|
|
644
686
|
interface FormRendererCanvasItem extends FormBuilderLayoutItem {
|
|
645
|
-
|
|
646
|
-
|
|
687
|
+
field?: FormBuilderField;
|
|
688
|
+
section?: FormBuilderSection;
|
|
647
689
|
}
|
|
648
690
|
interface FormRendererStep extends FormBuilderStep {
|
|
649
|
-
|
|
650
|
-
}
|
|
651
|
-
declare class FormRenderer {
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
691
|
+
items: FormRendererCanvasItem[];
|
|
692
|
+
}
|
|
693
|
+
export declare class FormRenderer {
|
|
694
|
+
private readonly providedItems;
|
|
695
|
+
private readonly providedFields;
|
|
696
|
+
private readonly providedValidators;
|
|
697
|
+
private readonly calculationEngine;
|
|
698
|
+
private readonly logicEngine;
|
|
699
|
+
private readonly orphanControls;
|
|
700
|
+
private readonly logicEvaluations;
|
|
701
|
+
private readonly logicVersion;
|
|
702
|
+
private readonly injector;
|
|
703
|
+
private readonly destroyRef;
|
|
704
|
+
private formInjector?;
|
|
705
|
+
readonly schema: import("@angular/core").InputSignal<FormBuilderSchema>;
|
|
706
|
+
readonly flow: import("@angular/core").InputSignal<FormBuilderFlow | null | undefined>;
|
|
707
|
+
readonly items: import("@angular/core").InputSignal<FormBuilderLayoutItem[] | null | undefined>;
|
|
708
|
+
readonly readonly: import("@angular/core").InputSignal<boolean>;
|
|
709
|
+
readonly showSubmit: import("@angular/core").InputSignal<boolean>;
|
|
710
|
+
readonly submitLabel: import("@angular/core").InputSignal<string>;
|
|
711
|
+
readonly uploadCallback: import("@angular/core").InputSignal<FormBuilderUploadCallback | null | undefined>;
|
|
712
|
+
readonly value: import("@angular/core").ModelSignal<Record<string, any>>;
|
|
713
|
+
readonly formSubmit: import("@angular/core").OutputEmitterRef<Record<string, any>>;
|
|
714
|
+
readonly formReady: import("@angular/core").OutputEmitterRef<RenderForm>;
|
|
715
|
+
protected readonly definitions: import("@angular/core").Signal<FormBuilderFieldDefinition[]>;
|
|
716
|
+
protected readonly visibleCanvasItems: import("@angular/core").Signal<FormRendererCanvasItem[]>;
|
|
717
|
+
protected readonly activeFlow: import("@angular/core").Signal<FormBuilderFlow | undefined>;
|
|
718
|
+
protected readonly stepsMode: import("@angular/core").Signal<boolean>;
|
|
719
|
+
protected readonly visibleSteps: import("@angular/core").Signal<FormRendererStep[]>;
|
|
720
|
+
protected readonly validatorDefinitions: import("@angular/core").Signal<FormBuilderValidatorDefinition[]>;
|
|
721
|
+
private readonly fields;
|
|
722
|
+
private publishedValue?;
|
|
723
|
+
private evaluatedForm?;
|
|
724
|
+
private readonly formValues;
|
|
725
|
+
protected readonly formGroup: import("@angular/core").Signal<FieldTree<FormValues, string | number, "writable">>;
|
|
726
|
+
constructor();
|
|
727
|
+
protected getControl(field: FormBuilderField, formGroup?: FieldTree<FormValues, string | number, "writable">): RenderField;
|
|
728
|
+
private fieldControl;
|
|
729
|
+
protected isContainerField(field: FormBuilderField): boolean;
|
|
730
|
+
protected visibleChildren(field: FormBuilderField, formGroup?: FieldTree<FormValues, string | number, "writable">): FormBuilderField[];
|
|
731
|
+
protected fieldVisible(field: FormBuilderField, formGroup?: FieldTree<FormValues, string | number, "writable">): boolean;
|
|
732
|
+
protected sectionVisible(section: FormBuilderSection, formGroup?: FieldTree<FormValues, string | number, "writable">): boolean;
|
|
733
|
+
protected effectiveField(field: FormBuilderField, formGroup?: FieldTree<FormValues, string | number, "writable">): FormBuilderField;
|
|
734
|
+
protected fieldReadonly(field: FormBuilderField, formGroup?: FieldTree<FormValues, string | number, "writable">): boolean;
|
|
735
|
+
private logicState;
|
|
736
|
+
private sectionLogicState;
|
|
737
|
+
private effectiveFieldFromState;
|
|
738
|
+
protected isRepeaterField(field: FormBuilderField): boolean;
|
|
739
|
+
private repeaterArray;
|
|
740
|
+
protected repeaterGroups(field: FormBuilderField, group?: FieldTree<FormValues, string | number, "writable">): RenderForm[];
|
|
741
|
+
protected repeaterEmptyText(field: FormBuilderField): string;
|
|
742
|
+
protected addRepeaterItem(field: FormBuilderField, formGroup?: FieldTree<FormValues, string | number, "writable">): void;
|
|
743
|
+
protected removeRepeaterItem(field: FormBuilderField, index: number, formGroup?: FieldTree<FormValues, string | number, "writable">): void;
|
|
744
|
+
protected canRemoveRepeaterItem(field: FormBuilderField, formGroup?: FieldTree<FormValues, string | number, "writable">): boolean;
|
|
745
|
+
submit(event?: Event): void;
|
|
746
|
+
private isUploading;
|
|
747
|
+
private initialValues;
|
|
748
|
+
private configureFields;
|
|
749
|
+
private syncRuntime;
|
|
750
|
+
private applyRuntime;
|
|
751
|
+
private applyRepeaterCalculations;
|
|
752
|
+
private applyLogic;
|
|
753
|
+
private applyLogicControlEffects;
|
|
754
|
+
private applyCalculatedFields;
|
|
755
|
+
private applyPlainTextFields;
|
|
756
|
+
private renderPlainTextTemplate;
|
|
757
|
+
private orderCalculatedFields;
|
|
758
|
+
private scopeFields;
|
|
759
|
+
private writeCalculatedValue;
|
|
760
|
+
private writeDisplayValue;
|
|
761
|
+
private getOrCreateOrphanControl;
|
|
762
|
+
private coerceCalculatedValue;
|
|
763
|
+
private emptyCalculatedValue;
|
|
764
|
+
private setCalculationError;
|
|
765
|
+
private clearCalculationError;
|
|
766
|
+
private resolveValidators;
|
|
767
|
+
private resolveAsyncValidators;
|
|
768
|
+
private fieldInitialValue;
|
|
769
|
+
private allowsNullValue;
|
|
770
|
+
private resolveCanvasItems;
|
|
771
|
+
private resolveSteps;
|
|
772
|
+
private resolveLayoutItems;
|
|
773
|
+
private isStepsMode;
|
|
774
|
+
private normalizedSteps;
|
|
775
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormRenderer, never>;
|
|
776
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormRenderer, "ngs-form-renderer", ["ngsFormRenderer"], {
|
|
777
|
+
"schema": {
|
|
778
|
+
"alias": "schema";
|
|
779
|
+
"required": true;
|
|
780
|
+
"isSignal": true;
|
|
781
|
+
};
|
|
782
|
+
"flow": {
|
|
783
|
+
"alias": "flow";
|
|
784
|
+
"required": false;
|
|
785
|
+
"isSignal": true;
|
|
786
|
+
};
|
|
787
|
+
"items": {
|
|
788
|
+
"alias": "items";
|
|
789
|
+
"required": false;
|
|
790
|
+
"isSignal": true;
|
|
791
|
+
};
|
|
792
|
+
"readonly": {
|
|
793
|
+
"alias": "readonly";
|
|
794
|
+
"required": false;
|
|
795
|
+
"isSignal": true;
|
|
796
|
+
};
|
|
797
|
+
"showSubmit": {
|
|
798
|
+
"alias": "showSubmit";
|
|
799
|
+
"required": false;
|
|
800
|
+
"isSignal": true;
|
|
801
|
+
};
|
|
802
|
+
"submitLabel": {
|
|
803
|
+
"alias": "submitLabel";
|
|
804
|
+
"required": false;
|
|
805
|
+
"isSignal": true;
|
|
806
|
+
};
|
|
807
|
+
"uploadCallback": {
|
|
808
|
+
"alias": "uploadCallback";
|
|
809
|
+
"required": false;
|
|
810
|
+
"isSignal": true;
|
|
811
|
+
};
|
|
812
|
+
"value": {
|
|
813
|
+
"alias": "value";
|
|
814
|
+
"required": false;
|
|
815
|
+
"isSignal": true;
|
|
816
|
+
};
|
|
817
|
+
}, {
|
|
818
|
+
"value": "valueChange";
|
|
819
|
+
"formSubmit": "formSubmit";
|
|
820
|
+
"formReady": "formReady";
|
|
821
|
+
}, never, never, true, never>;
|
|
822
|
+
}
|
|
823
|
+
export declare class FormBuilderFieldHost {
|
|
824
|
+
private readonly providedUploadCallback;
|
|
825
|
+
private readonly selectDataSources;
|
|
826
|
+
private readonly providedValidators;
|
|
827
|
+
readonly field: import("@angular/core").InputSignal<FormBuilderField>;
|
|
828
|
+
readonly control: import("@angular/core").InputSignal<FieldTree<unknown>>;
|
|
829
|
+
readonly definitions: import("@angular/core").InputSignal<FormBuilderFieldDefinition[]>;
|
|
830
|
+
readonly readonly: import("@angular/core").InputSignal<boolean>;
|
|
831
|
+
readonly editableCanvas: import("@angular/core").InputSignal<boolean>;
|
|
832
|
+
readonly uploadCallback: import("@angular/core").InputSignal<FormBuilderUploadCallback | null | undefined>;
|
|
833
|
+
protected readonly customLoaded: import("@angular/core").WritableSignal<boolean>;
|
|
834
|
+
protected readonly controlValue: import("@angular/core").Signal<any>;
|
|
835
|
+
protected readonly logoUploadLocalPreview: import("@angular/core").WritableSignal<string>;
|
|
836
|
+
protected readonly textInputType: import("@angular/core").Signal<"number" | "text" | "email">;
|
|
837
|
+
protected readonly calculatedInputType: import("@angular/core").Signal<"number" | "text">;
|
|
838
|
+
protected readonly plainTextValue: import("@angular/core").Signal<string>;
|
|
839
|
+
protected readonly alertVariant: import("@angular/core").Signal<string>;
|
|
840
|
+
protected readonly alertFieldPath: import("@angular/core").Signal<string>;
|
|
841
|
+
protected readonly radioOrientation: import("@angular/core").Signal<RadioGroupOrientation>;
|
|
842
|
+
protected readonly colorPickerShowOpacity: import("@angular/core").Signal<boolean>;
|
|
843
|
+
protected readonly colorPickerResultFormat: import("@angular/core").Signal<any>;
|
|
844
|
+
protected readonly colorPickerValue: import("@angular/core").Signal<string>;
|
|
845
|
+
protected readonly colorPickerDisabled: import("@angular/core").Signal<boolean>;
|
|
846
|
+
protected readonly colorSwitcherColors: import("@angular/core").Signal<any[]>;
|
|
847
|
+
protected readonly signaturePadColors: import("@angular/core").Signal<any[]>;
|
|
848
|
+
protected readonly signaturePadPenColor: import("@angular/core").Signal<string>;
|
|
849
|
+
protected readonly signaturePadLineWidth: import("@angular/core").Signal<number>;
|
|
850
|
+
protected readonly signaturePadBackgroundColor: import("@angular/core").Signal<string>;
|
|
851
|
+
protected readonly signaturePadDisabled: import("@angular/core").Signal<boolean>;
|
|
852
|
+
protected readonly uploadAccept: import("@angular/core").Signal<any>;
|
|
853
|
+
protected readonly uploadDisabled: import("@angular/core").Signal<boolean>;
|
|
854
|
+
protected readonly dateRangeDisabled: import("@angular/core").Signal<boolean>;
|
|
855
|
+
protected readonly uploadSelectedText: import("@angular/core").Signal<any>;
|
|
856
|
+
protected readonly logoUploadValue: import("@angular/core").Signal<any>;
|
|
857
|
+
protected readonly hasLogoUploadValue: import("@angular/core").Signal<boolean>;
|
|
858
|
+
protected readonly logoUploadInstruction: import("@angular/core").Signal<string>;
|
|
859
|
+
protected readonly logoUploadFormatLabels: import("@angular/core").Signal<string[]>;
|
|
860
|
+
protected readonly logoUploadRequirementsText: import("@angular/core").Signal<string>;
|
|
861
|
+
protected readonly logoUploadMaxFileSizeText: import("@angular/core").Signal<string>;
|
|
862
|
+
protected readonly logoUploadPreviewKey: import("@angular/core").Signal<string>;
|
|
863
|
+
protected readonly logoUploadImageSrc: import("@angular/core").Signal<string>;
|
|
864
|
+
protected readonly logoUploadFileName: import("@angular/core").Signal<string>;
|
|
865
|
+
protected readonly spacerHeight: import("@angular/core").Signal<number>;
|
|
866
|
+
protected readonly selectUsesDataSource: import("@angular/core").Signal<boolean>;
|
|
867
|
+
protected readonly selectDataSourceDefinition: import("@angular/core").Signal<FormBuilderSelectDataSourceDefinition | null>;
|
|
868
|
+
protected readonly selectDataSource: import("@angular/core").Signal<SelectDataSource | null>;
|
|
869
|
+
protected readonly selectOptionContentComponent: import("@angular/core").Signal<Type<any> | null>;
|
|
870
|
+
protected readonly selectValueComponent: import("@angular/core").Signal<Type<any> | null>;
|
|
871
|
+
protected readonly selectPageSize: import("@angular/core").Signal<number>;
|
|
872
|
+
protected readonly selectSearchable: import("@angular/core").Signal<boolean>;
|
|
873
|
+
protected readonly selectSearchDebounce: import("@angular/core").Signal<number>;
|
|
874
|
+
protected readonly selectMinSearchLength: import("@angular/core").Signal<number>;
|
|
875
|
+
protected readonly selectLoadOnOpen: import("@angular/core").Signal<boolean>;
|
|
876
|
+
protected readonly isRequired: import("@angular/core").Signal<boolean>;
|
|
877
|
+
protected readonly validationDefinitions: import("@angular/core").Signal<FormBuilderValidatorDefinition[]>;
|
|
878
|
+
protected readonly validationErrorMessage: import("@angular/core").Signal<string>;
|
|
879
|
+
private readonly anchor;
|
|
880
|
+
constructor();
|
|
881
|
+
protected onSignatureSaved(signature: string): void;
|
|
882
|
+
protected onSignatureCleared(): void;
|
|
883
|
+
protected onUploadFilesSelected(event: UploadFileSelectedEvent): Promise<void>;
|
|
884
|
+
protected clearLogoUpload(event?: Event): void;
|
|
885
|
+
private logoUploadFileExceedsMaxSize;
|
|
886
|
+
private clearLogoUploadMaxSizeError;
|
|
887
|
+
protected hasValidationRule(type: string): boolean;
|
|
888
|
+
protected validationRuleValue(type: string): any;
|
|
889
|
+
protected validationRuleMessage(type: string): string;
|
|
890
|
+
protected validatorRequiresValue(definition: FormBuilderValidatorDefinition): boolean;
|
|
891
|
+
protected validationRuleInputType(definition: FormBuilderValidatorDefinition): string;
|
|
892
|
+
protected setValidationRuleEnabled(definition: FormBuilderValidatorDefinition, enabled: boolean): void;
|
|
893
|
+
protected updateValidationRuleValue(definition: FormBuilderValidatorDefinition, event: Event): void;
|
|
894
|
+
protected updateValidationRuleMessage(definition: FormBuilderValidatorDefinition, event: Event): void;
|
|
895
|
+
protected selectOptionContentInputs(data: unknown, option: SelectOptionContentContext['option'], value: unknown, label: string, selected: boolean, disabled: boolean, multiple: boolean): Record<string, unknown>;
|
|
896
|
+
protected selectValueInputs(data: SelectValueContext['data'], option: SelectValueContext['option'], value: SelectValueContext['value'], label: string, labels: string[], count: number, multiple: boolean): Record<string, unknown>;
|
|
897
|
+
private patchValidationRule;
|
|
898
|
+
private validationRules;
|
|
899
|
+
private writeValidationRules;
|
|
900
|
+
private fieldValidationRules;
|
|
901
|
+
private defaultValidationRuleMessage;
|
|
902
|
+
private interpolateValidationMessage;
|
|
903
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormBuilderFieldHost, never>;
|
|
904
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormBuilderFieldHost, "ngs-form-builder-field-host", ["ngsFormBuilderFieldHost"], {
|
|
905
|
+
"field": {
|
|
906
|
+
"alias": "field";
|
|
907
|
+
"required": true;
|
|
908
|
+
"isSignal": true;
|
|
909
|
+
};
|
|
910
|
+
"control": {
|
|
911
|
+
"alias": "control";
|
|
912
|
+
"required": true;
|
|
913
|
+
"isSignal": true;
|
|
914
|
+
};
|
|
915
|
+
"definitions": {
|
|
916
|
+
"alias": "definitions";
|
|
917
|
+
"required": false;
|
|
918
|
+
"isSignal": true;
|
|
919
|
+
};
|
|
920
|
+
"readonly": {
|
|
921
|
+
"alias": "readonly";
|
|
922
|
+
"required": false;
|
|
923
|
+
"isSignal": true;
|
|
924
|
+
};
|
|
925
|
+
"editableCanvas": {
|
|
926
|
+
"alias": "editableCanvas";
|
|
927
|
+
"required": false;
|
|
928
|
+
"isSignal": true;
|
|
929
|
+
};
|
|
930
|
+
"uploadCallback": {
|
|
931
|
+
"alias": "uploadCallback";
|
|
932
|
+
"required": false;
|
|
933
|
+
"isSignal": true;
|
|
934
|
+
};
|
|
935
|
+
}, {}, never, never, true, never>;
|
|
936
|
+
}
|
|
937
|
+
export declare class FormBuilderSettingsHost {
|
|
938
|
+
private readonly selectDataSources;
|
|
939
|
+
readonly field: import("@angular/core").InputSignal<FormBuilderField | null>;
|
|
940
|
+
readonly section: import("@angular/core").InputSignal<FormBuilderSection | null>;
|
|
941
|
+
readonly schema: import("@angular/core").InputSignal<FormBuilderSchema>;
|
|
942
|
+
readonly definitions: import("@angular/core").InputSignal<FormBuilderFieldDefinition[]>;
|
|
943
|
+
readonly settingsDefinitions: import("@angular/core").InputSignal<FormBuilderSettingsDefinition[]>;
|
|
944
|
+
readonly update: import("@angular/core").InputSignal<((changes: Partial<FormBuilderField>) => void) | undefined>;
|
|
945
|
+
readonly updateSection: import("@angular/core").InputSignal<((changes: Partial<FormBuilderSection>) => void) | undefined>;
|
|
946
|
+
protected readonly itemDefinition: import("@angular/core").Signal<FormBuilderFieldDefinition | undefined>;
|
|
947
|
+
protected readonly settingsSchema: import("@angular/core").Signal<FormBuilderSchema | null>;
|
|
948
|
+
protected readonly settingsValue: import("@angular/core").Signal<Record<string, any>>;
|
|
949
|
+
protected readonly legacyLoaded: import("@angular/core").WritableSignal<boolean>;
|
|
950
|
+
private readonly anchor;
|
|
951
|
+
private legacyComponentRef;
|
|
952
|
+
private legacyComponentType;
|
|
953
|
+
private legacyLoadId;
|
|
954
|
+
constructor();
|
|
955
|
+
protected applySettingsValue(value: Record<string, any>): void;
|
|
956
|
+
private createSettingsPatch;
|
|
957
|
+
private readSettingValue;
|
|
958
|
+
private settingsConfig;
|
|
959
|
+
private legacySettingsImporter;
|
|
960
|
+
private setLegacyInput;
|
|
961
|
+
private applyLegacyInputs;
|
|
962
|
+
private resolveOwnSettingsSchema;
|
|
963
|
+
private inferSettingsInheritance;
|
|
964
|
+
private baseSettingsSchema;
|
|
965
|
+
private withFieldPathInfo;
|
|
966
|
+
private withRegisteredSelectDataSources;
|
|
967
|
+
private withSelectDataSourceOptions;
|
|
968
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormBuilderSettingsHost, never>;
|
|
969
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormBuilderSettingsHost, "ngs-form-builder-settings-host", ["ngsFormBuilderSettingsHost"], {
|
|
970
|
+
"field": {
|
|
971
|
+
"alias": "field";
|
|
972
|
+
"required": false;
|
|
973
|
+
"isSignal": true;
|
|
974
|
+
};
|
|
975
|
+
"section": {
|
|
976
|
+
"alias": "section";
|
|
977
|
+
"required": false;
|
|
978
|
+
"isSignal": true;
|
|
979
|
+
};
|
|
980
|
+
"schema": {
|
|
981
|
+
"alias": "schema";
|
|
982
|
+
"required": true;
|
|
983
|
+
"isSignal": true;
|
|
984
|
+
};
|
|
985
|
+
"definitions": {
|
|
986
|
+
"alias": "definitions";
|
|
987
|
+
"required": false;
|
|
988
|
+
"isSignal": true;
|
|
989
|
+
};
|
|
990
|
+
"settingsDefinitions": {
|
|
991
|
+
"alias": "settingsDefinitions";
|
|
992
|
+
"required": false;
|
|
993
|
+
"isSignal": true;
|
|
994
|
+
};
|
|
995
|
+
"update": {
|
|
996
|
+
"alias": "update";
|
|
997
|
+
"required": false;
|
|
998
|
+
"isSignal": true;
|
|
999
|
+
};
|
|
1000
|
+
"updateSection": {
|
|
1001
|
+
"alias": "updateSection";
|
|
1002
|
+
"required": false;
|
|
1003
|
+
"isSignal": true;
|
|
1004
|
+
};
|
|
1005
|
+
}, {}, never, never, true, never>;
|
|
1006
|
+
}
|
|
853
1007
|
type RadioOrientation = 'vertical' | 'horizontal';
|
|
854
1008
|
type SpacerHeight = 8 | 16 | 24 | 32 | 48 | 64;
|
|
855
|
-
declare class BasicFormBuilderFieldSettings {
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
1009
|
+
export declare class BasicFormBuilderFieldSettings {
|
|
1010
|
+
readonly field: import("@angular/core").InputSignal<FormBuilderField>;
|
|
1011
|
+
readonly update: import("@angular/core").InputSignal<(changes: Partial<FormBuilderField>) => void>;
|
|
1012
|
+
readonly updateField: import("@angular/core").InputSignal<((changes: Partial<FormBuilderField>) => void) | undefined>;
|
|
1013
|
+
readonly updateSection: import("@angular/core").InputSignal<((changes: Partial<FormBuilderSection>) => void) | undefined>;
|
|
1014
|
+
protected readonly optionsControl: import("@angular/forms/signals").FieldTree<string, string | number, "writable">;
|
|
1015
|
+
protected readonly fieldWidthOptions: FormBuilderFieldWidth[];
|
|
1016
|
+
protected readonly radioOrientationOptions: RadioOrientation[];
|
|
1017
|
+
protected readonly spacerHeightOptions: SpacerHeight[];
|
|
1018
|
+
protected readonly hasCheckedState: import("@angular/core").Signal<boolean>;
|
|
1019
|
+
protected readonly hasPlaceholder: import("@angular/core").Signal<boolean>;
|
|
1020
|
+
protected readonly hasOptions: import("@angular/core").Signal<boolean>;
|
|
1021
|
+
protected readonly hasClearable: import("@angular/core").Signal<boolean>;
|
|
1022
|
+
protected readonly hasMultiple: import("@angular/core").Signal<boolean>;
|
|
1023
|
+
protected readonly isSelect: import("@angular/core").Signal<boolean>;
|
|
1024
|
+
protected readonly isUpload: import("@angular/core").Signal<boolean>;
|
|
1025
|
+
protected readonly isRadio: import("@angular/core").Signal<boolean>;
|
|
1026
|
+
protected readonly isSpacer: import("@angular/core").Signal<boolean>;
|
|
1027
|
+
protected readonly hasBehaviorToggles: import("@angular/core").Signal<boolean>;
|
|
1028
|
+
protected readonly radioOrientation: import("@angular/core").Signal<RadioOrientation>;
|
|
1029
|
+
protected readonly optionsText: import("@angular/core").Signal<string>;
|
|
1030
|
+
constructor();
|
|
1031
|
+
protected onOptionsInput(text: string): void;
|
|
1032
|
+
protected patch(changes: Partial<FormBuilderField>): void;
|
|
1033
|
+
protected patchSettings(changes: Record<string, any>): void;
|
|
1034
|
+
protected patchMultiple(multiple: boolean): void;
|
|
1035
|
+
protected patchSelectMultiple(multiple: boolean): void;
|
|
1036
|
+
protected patchRadioOrientation(orientation: RadioOrientation): void;
|
|
1037
|
+
protected patchOptions(value: string): void;
|
|
1038
|
+
private normalizeSelectedOptions;
|
|
1039
|
+
private resolveSelectedDefaultValue;
|
|
1040
|
+
private selectedOptionValues;
|
|
1041
|
+
private isOptionSelected;
|
|
1042
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BasicFormBuilderFieldSettings, never>;
|
|
1043
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BasicFormBuilderFieldSettings, "ngs-basic-form-builder-field-settings", ["ngsBasicFormBuilderFieldSettings"], {
|
|
1044
|
+
"field": {
|
|
1045
|
+
"alias": "field";
|
|
1046
|
+
"required": true;
|
|
1047
|
+
"isSignal": true;
|
|
1048
|
+
};
|
|
1049
|
+
"update": {
|
|
1050
|
+
"alias": "update";
|
|
1051
|
+
"required": true;
|
|
1052
|
+
"isSignal": true;
|
|
1053
|
+
};
|
|
1054
|
+
"updateField": {
|
|
1055
|
+
"alias": "updateField";
|
|
1056
|
+
"required": false;
|
|
1057
|
+
"isSignal": true;
|
|
1058
|
+
};
|
|
1059
|
+
"updateSection": {
|
|
1060
|
+
"alias": "updateSection";
|
|
1061
|
+
"required": false;
|
|
1062
|
+
"isSignal": true;
|
|
1063
|
+
};
|
|
1064
|
+
}, {}, never, never, true, never>;
|
|
1065
|
+
}
|
|
1066
|
+
export declare class BasicFormBuilderLayoutSettings {
|
|
1067
|
+
readonly field: import("@angular/core").InputSignal<FormBuilderField>;
|
|
1068
|
+
readonly update: import("@angular/core").InputSignal<(changes: Partial<FormBuilderField>) => void>;
|
|
1069
|
+
readonly updateField: import("@angular/core").InputSignal<((changes: Partial<FormBuilderField>) => void) | undefined>;
|
|
1070
|
+
readonly updateSection: import("@angular/core").InputSignal<((changes: Partial<FormBuilderSection>) => void) | undefined>;
|
|
1071
|
+
protected readonly fieldWidthOptions: FormBuilderFieldWidth[];
|
|
1072
|
+
protected readonly showHintSetting: import("@angular/core").Signal<boolean>;
|
|
1073
|
+
protected patch(changes: Partial<FormBuilderField>): void;
|
|
1074
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BasicFormBuilderLayoutSettings, never>;
|
|
1075
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BasicFormBuilderLayoutSettings, "ngs-basic-form-builder-layout-settings", ["ngsBasicFormBuilderLayoutSettings"], {
|
|
1076
|
+
"field": {
|
|
1077
|
+
"alias": "field";
|
|
1078
|
+
"required": true;
|
|
1079
|
+
"isSignal": true;
|
|
1080
|
+
};
|
|
1081
|
+
"update": {
|
|
1082
|
+
"alias": "update";
|
|
1083
|
+
"required": true;
|
|
1084
|
+
"isSignal": true;
|
|
1085
|
+
};
|
|
1086
|
+
"updateField": {
|
|
1087
|
+
"alias": "updateField";
|
|
1088
|
+
"required": false;
|
|
1089
|
+
"isSignal": true;
|
|
1090
|
+
};
|
|
1091
|
+
"updateSection": {
|
|
1092
|
+
"alias": "updateSection";
|
|
1093
|
+
"required": false;
|
|
1094
|
+
"isSignal": true;
|
|
1095
|
+
};
|
|
1096
|
+
}, {}, never, never, true, never>;
|
|
1097
|
+
}
|
|
1098
|
+
export declare class BasicFormBuilderSectionSettings {
|
|
1099
|
+
readonly section: import("@angular/core").InputSignal<FormBuilderSection>;
|
|
1100
|
+
readonly update: import("@angular/core").InputSignal<(changes: Partial<FormBuilderSection>) => void>;
|
|
1101
|
+
readonly updateField: import("@angular/core").InputSignal<((changes: Partial<FormBuilderField>) => void) | undefined>;
|
|
1102
|
+
readonly updateSection: import("@angular/core").InputSignal<((changes: Partial<FormBuilderSection>) => void) | undefined>;
|
|
1103
|
+
protected patch(changes: Partial<FormBuilderSection>): void;
|
|
1104
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BasicFormBuilderSectionSettings, never>;
|
|
1105
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BasicFormBuilderSectionSettings, "ngs-basic-form-builder-section-settings", ["ngsBasicFormBuilderSectionSettings"], {
|
|
1106
|
+
"section": {
|
|
1107
|
+
"alias": "section";
|
|
1108
|
+
"required": true;
|
|
1109
|
+
"isSignal": true;
|
|
1110
|
+
};
|
|
1111
|
+
"update": {
|
|
1112
|
+
"alias": "update";
|
|
1113
|
+
"required": true;
|
|
1114
|
+
"isSignal": true;
|
|
1115
|
+
};
|
|
1116
|
+
"updateField": {
|
|
1117
|
+
"alias": "updateField";
|
|
1118
|
+
"required": false;
|
|
1119
|
+
"isSignal": true;
|
|
1120
|
+
};
|
|
1121
|
+
"updateSection": {
|
|
1122
|
+
"alias": "updateSection";
|
|
1123
|
+
"required": false;
|
|
1124
|
+
"isSignal": true;
|
|
1125
|
+
};
|
|
1126
|
+
}, {}, never, never, true, never>;
|
|
1127
|
+
}
|
|
1128
|
+
export {};
|