apexrest 2.1.0 → 2.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +76 -101
- package/dist/codex-compat/.claude-plugin/marketplace.json +2 -2
- package/dist/codex-compat/plugins/apexrest-apex/.claude-plugin/plugin.json +5 -2
- package/dist/codex-compat/plugins/apexrest-apex/.codex-plugin/plugin.json +1 -1
- package/dist/codex-compat/plugins/apexrest-apex/.mcp.json +4 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/blocks/generator.json +1 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/blueprints/crm-26.2.yaml +1 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/blueprints/crm.yaml +1 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/blueprints/service-desk-26.2.yaml +1 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/blueprints/service-desk.yaml +1 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/business-logic/dynamic-actions/recipes/dynamic-actions-alert-confirm.md +177 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/business-logic/dynamic-actions/recipes/dynamic-actions-cancel-dialog.md +220 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/business-logic/dynamic-actions/recipes/dynamic-actions-close-dialog.md +224 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/business-logic/dynamic-actions/recipes/dynamic-actions-debounce-throttle.md +330 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/business-logic/dynamic-actions/recipes/dynamic-actions-delete-notification.md +199 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/business-logic/dynamic-actions/recipes/dynamic-actions-refresh-after-dialog.md +282 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/business-logic/dynamic-actions/recipes/dynamic-actions-region-class.md +193 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/business-logic/dynamic-actions/recipes/dynamic-actions-show-error-message.md +154 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/business-logic/dynamic-actions.md +9 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/business-logic/processes/parameters.md +32618 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/business-logic/processes/recipes/processes-close-dialog.md +269 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/business-logic/processes/recipes/processes-execute-code.md +201 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/business-logic/processes/recipes/processes-form-initialization.md +239 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/business-logic/processes/source-examples.md +938 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/business-logic/processes.md +31 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/business-logic/validations/recipes/validations-plsql-error.md +205 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/business-logic/validations.md +2 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/buttons/icon/recipes/button-trigger-action.md +139 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/buttons/icon.md +2 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/buttons/text/recipes/button-confirmation.md +128 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/buttons/text/recipes/button-server-side-condition.md +160 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/buttons/text/recipes/button-submit-request.md +183 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/buttons/text-with-icon/recipes/button-dynamic-action.md +137 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/buttons/text-with-icon/recipes/button-redirect-items.md +155 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/buttons/text-with-icon.md +3 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/buttons/text.md +4 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/catalog.md +7 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/checkbox-group/recipes/item-checkbox-group-columns.md +125 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/checkbox-group.md +2 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/date-picker/recipes/item-date-picker-range.md +121 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/date-picker.md +2 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/display-image/parameters.md +7998 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/display-image/recipes/item-display-image.md +118 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/display-image.md +27 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/geocoded-address/parameters.md +8564 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/geocoded-address/recipes/item-geocoded-address.md +137 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/geocoded-address.md +27 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/number-field/recipes/item-number-field-format-mask.md +123 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/number-field.md +2 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/popup-lov/recipes/item-popup-lov-display-null.md +128 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/popup-lov.md +2 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/radio-group/recipes/item-radio-group-columns.md +123 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/radio-group.md +2 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/rich-text-editor/parameters.md +8003 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/rich-text-editor/recipes/item-rich-text-editor.md +126 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/rich-text-editor.md +27 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/select-list/recipes/item-select-list-shared-lov.md +149 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/select-list.md +2 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/shuttle/recipes/item-shuttle-shared-lov.md +157 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/shuttle.md +2 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/switch/recipes/item-switch-custom-values.md +123 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/switch.md +2 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/textarea/recipes/item-textarea-required-length.md +123 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/textarea.md +2 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/breadcrumb/parameters.md +13322 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/breadcrumb/recipes/breadcrumb.md +137 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/breadcrumb/source-examples.md +20 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/breadcrumb.md +29 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/calendar/recipes/calendar-create-event-on-select.md +252 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/calendar/recipes/calendar-custom-navigation.md +360 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/calendar/recipes/calendar-custom-styling.md +156 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/calendar/recipes/calendar-delete-or-copy-on-click.md +271 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/calendar/recipes/calendar-standard-monthly.md +147 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/calendar/recipes/calendar-status-tracking.md +259 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/calendar/recipes/calendar-weekly-conference.md +153 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/calendar/recipes/calendar-weekly-drag-drop.md +146 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/calendar/recipes/calendar-weekly-time-format-toggle.md +330 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/calendar.md +10 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/cards/recipes/cards-actions.md +193 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/cards.md +2 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/chart/recipes/chart-3d-effect.md +176 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/chart/recipes/chart-area-custom-legend.md +226 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/chart/recipes/chart-bar-dual-axis.md +203 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/chart/recipes/chart-bar-stacked-horizontal.md +170 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/chart/recipes/chart-bubble.md +171 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/chart/recipes/chart-custom-tooltip.md +156 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/chart/recipes/chart-dashboard-combination.md +234 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/chart/recipes/chart-data-densification.md +169 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/chart/recipes/chart-gantt.md +188 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/chart/recipes/chart-line-with-area.md +197 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/chart/recipes/chart-links.md +188 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/chart/recipes/chart-scatter.md +167 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/chart/recipes/chart-series-color.md +143 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/chart/recipes/chart-status-meter-gauge.md +142 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/chart/recipes/chart-stock.md +173 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/chart/recipes/chart-zoom-scroll.md +168 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/chart.md +17 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/faceted-search/recipes/faceted-search-calendar.md +352 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/faceted-search/recipes/faceted-search-cards.md +430 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/faceted-search/recipes/faceted-search-content-row.md +599 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/faceted-search/recipes/faceted-search-dashboard.md +883 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/faceted-search/recipes/faceted-search-directory-groups.md +514 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/faceted-search/recipes/faceted-search-grouped-rows.md +663 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/faceted-search/recipes/faceted-search-map.md +379 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/faceted-search/recipes/faceted-search-search-only-report.md +408 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/faceted-search/recipes/faceted-search-timeline.md +510 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/faceted-search.md +10 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/form/recipes/form-dialog-buttons.md +247 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/form/recipes/sectioned-form-expense-report.md +938 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/form.md +3 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/help-text/parameters.md +11842 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/help-text/recipes/help-text.md +137 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/help-text.md +27 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/map/recipes/map-bbox-static.md +152 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/map/recipes/map-browser-location.md +138 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/map/recipes/map-extruded-polygons.md +155 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/map/recipes/map-geojson-icon-points.md +150 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/map/recipes/map-heat-map.md +143 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/map/recipes/map-lines-geojson.md +147 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/map/recipes/map-multi-layer-legend.md +220 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/map/recipes/map-points-lonlat.md +148 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/map/recipes/map-polygons-color-scheme.md +160 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/map.md +10 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/region-display-selector/recipes/region-display-selector-icons.md +161 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/region-display-selector.md +2 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/static-content/recipes/static-content-accordion.md +152 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/static-content/recipes/static-content-collection-toolbar.md +205 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/static-content/recipes/static-content-dividers.md +155 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/static-content/recipes/static-content-empty-state.md +139 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/static-content.md +5 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/reports/classic-report/recipes/classic-report-notifications.md +141 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/reports/classic-report/recipes/classic-report-percent-graph.md +151 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/reports/classic-report/recipes/classic-report-suggestions.md +134 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/reports/classic-report.md +4 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/reports/contextual-info/recipes/contextual-info-row-based.md +138 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/reports/contextual-info.md +2 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/reports/interactive-grid/recipes/editable-grid-expense-lines.md +378 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/reports/interactive-grid/recipes/interactive-grid-toolbar-download.md +200 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/reports/interactive-grid.md +3 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/reports/interactive-report/recipes/interactive-report-full-options.md +227 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/reports/interactive-report/recipes/interactive-report-search-bar-actions.md +206 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/reports/interactive-report/recipes/interactive-report-secondary.md +161 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/reports/interactive-report.md +4 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/template-components/content-row/recipes/directory-hero-search-content-row.md +476 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/template-components/content-row.md +2 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/index.json +3485 -739
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/manifest.json +245 -38
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/compiler-evidence.json +2103 -422
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-breadcrumb/pages/p00001-home.apx +46 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-breadcrumb/shared-components/breadcrumbs.apx +17 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-button-confirmation/pages/p00001-home.apx +60 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-button-dynamic-action/pages/p00001-home.apx +69 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-button-redirect-items/pages/p00001-home.apx +87 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-button-server-side-condition/pages/p00001-home.apx +90 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-button-submit-request/pages/p00001-home.apx +113 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-button-trigger-action/pages/p00001-home.apx +71 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-calendar-create-event-on-select/pages/p00001-home.apx +181 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-calendar-custom-navigation/pages/p00001-home.apx +292 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-calendar-custom-styling/pages/p00001-home.apx +88 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-calendar-delete-or-copy-on-click/pages/p00001-home.apx +200 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-calendar-standard-monthly/pages/p00001-home.apx +79 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-calendar-status-tracking/pages/p00001-home.apx +191 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-calendar-weekly-conference/pages/p00001-home.apx +85 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-calendar-weekly-drag-drop/pages/p00001-home.apx +78 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-calendar-weekly-time-format-toggle/pages/p00001-home.apx +260 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-cards-actions/pages/p00001-home.apx +125 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-chart-3d-effect/pages/p00001-home.apx +108 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-chart-area-custom-legend/pages/p00001-home.apx +158 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-chart-bar-dual-axis/pages/p00001-home.apx +135 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-chart-bar-stacked-horizontal/pages/p00001-home.apx +102 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-chart-bubble/pages/p00001-home.apx +103 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-chart-custom-tooltip/pages/p00001-home.apx +88 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-chart-dashboard-combination/pages/p00001-home.apx +166 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-chart-data-densification/pages/p00001-home.apx +101 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-chart-gantt/pages/p00001-home.apx +120 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-chart-line-with-area/pages/p00001-home.apx +129 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-chart-links/pages/p00001-home.apx +120 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-chart-scatter/pages/p00001-home.apx +99 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-chart-series-color/pages/p00001-home.apx +75 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-chart-status-meter-gauge/pages/p00001-home.apx +74 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-chart-stock/pages/p00001-home.apx +105 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-chart-zoom-scroll/pages/p00001-home.apx +100 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-classic-report-notifications/pages/p00001-home.apx +73 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-classic-report-percent-graph/pages/p00001-home.apx +83 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-classic-report-suggestions/pages/p00001-home.apx +66 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-contextual-info-row-based/pages/p00001-home.apx +70 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-directory-hero-search-content-row/pages/p00001-home.apx +406 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-dynamic-actions-alert-confirm/pages/p00001-home.apx +109 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-dynamic-actions-cancel-dialog/pages/p00001-home.apx +48 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-dynamic-actions-cancel-dialog/pages/p00002-dialog.apx +98 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-dynamic-actions-close-dialog/pages/p00001-home.apx +48 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-dynamic-actions-close-dialog/pages/p00002-dialog.apx +102 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-dynamic-actions-debounce-throttle/pages/p00001-home.apx +262 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-dynamic-actions-delete-notification/pages/p00001-home.apx +129 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-dynamic-actions-refresh-after-dialog/pages/p00001-home.apx +109 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-dynamic-actions-refresh-after-dialog/pages/p00002-dialog.apx +99 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-dynamic-actions-region-class/pages/p00001-home.apx +125 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-dynamic-actions-show-error-message/pages/p00001-home.apx +86 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-editable-grid-expense-lines/pages/p00001-home.apx +310 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-faceted-search-calendar/pages/p00001-home.apx +284 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-faceted-search-cards/pages/p00001-home.apx +362 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-faceted-search-content-row/pages/p00001-home.apx +531 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-faceted-search-dashboard/pages/p00001-home.apx +809 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-faceted-search-directory-groups/pages/p00001-home.apx +446 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-faceted-search-grouped-rows/pages/p00001-home.apx +595 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-faceted-search-map/pages/p00001-home.apx +311 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-faceted-search-search-only-report/pages/p00001-home.apx +340 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-faceted-search-timeline/pages/p00001-home.apx +442 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-form-dialog-buttons/pages/p00001-home.apx +179 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-help-text/pages/p00001-home.apx +69 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-interactive-grid-toolbar-download/pages/p00001-home.apx +132 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-interactive-report-full-options/pages/p00001-home.apx +159 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-interactive-report-search-bar-actions/pages/p00001-home.apx +138 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-interactive-report-secondary/pages/p00001-home.apx +93 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-item-checkbox-group-columns/pages/p00001-home.apx +55 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-item-date-picker-range/pages/p00001-home.apx +51 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-item-display-image/pages/p00001-home.apx +50 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-item-geocoded-address/pages/p00001-home.apx +66 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-item-number-field-format-mask/pages/p00001-home.apx +53 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-item-popup-lov-display-null/pages/p00001-home.apx +58 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-item-radio-group-columns/pages/p00001-home.apx +53 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-item-rich-text-editor/pages/p00001-home.apx +56 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-item-select-list-shared-lov/pages/p00001-home.apx +48 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-item-select-list-shared-lov/shared-components/lovs.apx +25 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-item-shuttle-shared-lov/pages/p00001-home.apx +50 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-item-shuttle-shared-lov/shared-components/lovs.apx +31 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-item-switch-custom-values/pages/p00001-home.apx +53 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-item-textarea-required-length/pages/p00001-home.apx +53 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-map-bbox-static/pages/p00001-home.apx +82 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-map-browser-location/pages/p00001-home.apx +70 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-map-extruded-polygons/pages/p00001-home.apx +87 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-map-geojson-icon-points/pages/p00001-home.apx +82 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-map-heat-map/pages/p00001-home.apx +75 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-map-lines-geojson/pages/p00001-home.apx +79 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-map-multi-layer-legend/pages/p00001-home.apx +152 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-map-points-lonlat/pages/p00001-home.apx +80 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-map-polygons-color-scheme/pages/p00001-home.apx +92 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-processes-close-dialog/pages/p00001-home.apx +48 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-processes-close-dialog/pages/p00002-dialog.apx +145 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-processes-execute-code/pages/p00001-home.apx +130 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-processes-form-initialization/pages/p00001-home.apx +171 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-region-display-selector-icons/pages/p00001-home.apx +93 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-sectioned-form-expense-report/pages/p00001-home.apx +870 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-static-content-accordion/pages/p00001-home.apx +84 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-static-content-collection-toolbar/pages/p00001-home.apx +137 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-static-content-dividers/pages/p00001-home.apx +87 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-static-content-empty-state/pages/p00001-home.apx +71 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-validations-plsql-error/pages/p00001-home.apx +134 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/registry.json +4973 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/patterns/docs/metrics/capacity-summary/recipes/unit-aware.md +3 -3
- package/dist/codex-compat/plugins/apexrest-apex/resources/patterns/index.json +408 -408
- package/dist/codex-compat/plugins/apexrest-apex/resources/patterns/manifest.json +8 -8
- package/dist/codex-compat/plugins/apexrest-apex/resources/patterns/recipes/compiler-evidence.json +3 -3
- package/dist/codex-compat/plugins/apexrest-apex/resources/patterns/recipes/registry.json +1 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/patterns/recipes/ux-extra-metrics-capacity-summary-unit-aware/pages/p00001-home.apx +2 -2
- package/dist/codex-compat/plugins/apexrest-apex/resources/policy/deployment-safety.md +197 -20
- package/dist/codex-compat/plugins/apexrest-apex/resources/references/26.2/guides/upgrade-audit.md +13 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/references/26.2/guides.json +1 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/references/26.2/index.json +3 -3
- package/dist/codex-compat/plugins/apexrest-apex/resources/references/26.2/oracle-snapshot.json +2 -2
- package/dist/codex-compat/plugins/apexrest-apex/resources/references/26.2/search.json +1 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/scaffold/observations.sql +126 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/schemas/composer-blueprint.schema.json +17 -17
- package/dist/codex-compat/plugins/apexrest-apex/resources/schemas/composer-contract.schema.json +9 -2
- package/dist/codex-compat/plugins/apexrest-apex/resources/schemas/composer-entity.schema.json +5 -3
- package/dist/codex-compat/plugins/apexrest-apex/resources/schemas/composer-field.schema.json +4 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/schemas/composer-instance.schema.json +2 -8
- package/dist/codex-compat/plugins/apexrest-apex/resources/schemas/composer-parameters.schema.json +1 -5
- package/dist/codex-compat/plugins/apexrest-apex/resources/schemas/composer-plan.schema.json +102 -5
- package/dist/codex-compat/plugins/apexrest-apex/resources/schemas/composer-shared-resource.schema.json +82 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/schemas/composer-state.schema.json +88 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/schemas/deploy-plan.schema.json +75 -3
- package/dist/codex-compat/plugins/apexrest-apex/resources/schemas/operations.schema.json +488 -17
- package/dist/codex-compat/plugins/apexrest-apex/resources/schemas/policy.schema.json +1 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/schemas/project.schema.json +61 -5
- package/dist/codex-compat/plugins/apexrest-apex/resources/schemas/sync-state.schema.json +8 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/templates/blank-app/application/application.apx +1 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/toolchains/sources.lock.json +1 -1
- package/dist/codex-compat/plugins/apexrest-apex/runtime/apexrest.mjs +154 -52
- package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-26MTCOZK.mjs +239 -0
- package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-47GDU535.mjs +1020 -0
- package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-4LEHTNYH.mjs +252 -0
- package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-4MIZ34V4.mjs +280 -0
- package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-6JZB7NDZ.mjs +33342 -0
- package/dist/{runtime/chunk-U7MVLA3R.mjs → codex-compat/plugins/apexrest-apex/runtime/chunk-CI5IU2PI.mjs} +433 -181
- package/dist/codex-compat/plugins/apexrest-apex/runtime/{chunk-JZ5FIGSS.mjs → chunk-DJPW35KJ.mjs} +5 -5
- package/dist/{runtime/chunk-BLB5JLWO.mjs → codex-compat/plugins/apexrest-apex/runtime/chunk-GHVRIHN6.mjs} +834 -4808
- package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-JJYHZOQR.mjs +6608 -0
- package/dist/codex-compat/plugins/apexrest-apex/runtime/{chunk-AESZGFM2.mjs → chunk-LCNHRIKE.mjs} +6 -3
- package/dist/codex-compat/plugins/apexrest-apex/runtime/{chunk-YEGSGHTV.mjs → chunk-LIG5PZ4K.mjs} +44 -12
- package/dist/codex-compat/plugins/apexrest-apex/runtime/{chunk-2YXH4VEB.mjs → chunk-LIGDVE6F.mjs} +438 -154
- package/dist/codex-compat/plugins/apexrest-apex/runtime/{chunk-WK445BKL.mjs → chunk-M5EC4OUI.mjs} +116 -41
- package/dist/{runtime/chunk-TE5VTEAH.mjs → codex-compat/plugins/apexrest-apex/runtime/chunk-MPKKOQVI.mjs} +349 -446
- package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-N3KQBIVW.mjs +252 -0
- package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-PFOHMLO4.mjs +141 -0
- package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-PNGZYZE7.mjs +4703 -0
- package/dist/codex-compat/plugins/apexrest-apex/runtime/{chunk-NBA54QYW.mjs → chunk-PS2GKOR2.mjs} +9 -6
- package/dist/codex-compat/plugins/apexrest-apex/runtime/{chunk-T3UX6AQO.mjs → chunk-TBHIU7PZ.mjs} +170 -3432
- package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-TDM3E2NK.mjs +161 -0
- package/dist/{runtime/chunk-ZSDDYNF5.mjs → codex-compat/plugins/apexrest-apex/runtime/chunk-UKXRUJT4.mjs} +7 -5
- package/dist/codex-compat/plugins/apexrest-apex/runtime/{chunk-BZZ3RV7L.mjs → chunk-XJ7FW7XH.mjs} +4 -4
- package/dist/codex-compat/plugins/apexrest-apex/runtime/mcp.mjs +1 -1
- package/dist/codex-compat/plugins/apexrest-apex/runtime/preview-oracle-worker.mjs +57 -0
- package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-apexlang/SKILL.md +11 -13
- package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-oracle-sync/SKILL.md +5 -1
- package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-oracle-sync/references/oracle-skills.md +19 -0
- package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-work/SKILL.md +14 -11
- package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-work/references/peer-review.md +12 -0
- package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-work/references/scaffold.md +115 -0
- package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-work/references/upgrade.md +11 -0
- package/dist/resources/blocks/generator.json +1 -1
- package/dist/resources/blueprints/crm-26.2.yaml +1 -0
- package/dist/resources/blueprints/crm.yaml +1 -0
- package/dist/resources/blueprints/service-desk-26.2.yaml +1 -0
- package/dist/resources/blueprints/service-desk.yaml +1 -0
- package/dist/resources/components/documents/business-logic/dynamic-actions/recipes/dynamic-actions-alert-confirm.md +177 -0
- package/dist/resources/components/documents/business-logic/dynamic-actions/recipes/dynamic-actions-cancel-dialog.md +220 -0
- package/dist/resources/components/documents/business-logic/dynamic-actions/recipes/dynamic-actions-close-dialog.md +224 -0
- package/dist/resources/components/documents/business-logic/dynamic-actions/recipes/dynamic-actions-debounce-throttle.md +330 -0
- package/dist/resources/components/documents/business-logic/dynamic-actions/recipes/dynamic-actions-delete-notification.md +199 -0
- package/dist/resources/components/documents/business-logic/dynamic-actions/recipes/dynamic-actions-refresh-after-dialog.md +282 -0
- package/dist/resources/components/documents/business-logic/dynamic-actions/recipes/dynamic-actions-region-class.md +193 -0
- package/dist/resources/components/documents/business-logic/dynamic-actions/recipes/dynamic-actions-show-error-message.md +154 -0
- package/dist/resources/components/documents/business-logic/dynamic-actions.md +9 -1
- package/dist/resources/components/documents/business-logic/processes/parameters.md +32618 -0
- package/dist/resources/components/documents/business-logic/processes/recipes/processes-close-dialog.md +269 -0
- package/dist/resources/components/documents/business-logic/processes/recipes/processes-execute-code.md +201 -0
- package/dist/resources/components/documents/business-logic/processes/recipes/processes-form-initialization.md +239 -0
- package/dist/resources/components/documents/business-logic/processes/source-examples.md +938 -0
- package/dist/resources/components/documents/business-logic/processes.md +31 -0
- package/dist/resources/components/documents/business-logic/validations/recipes/validations-plsql-error.md +205 -0
- package/dist/resources/components/documents/business-logic/validations.md +2 -1
- package/dist/resources/components/documents/buttons/icon/recipes/button-trigger-action.md +139 -0
- package/dist/resources/components/documents/buttons/icon.md +2 -1
- package/dist/resources/components/documents/buttons/text/recipes/button-confirmation.md +128 -0
- package/dist/resources/components/documents/buttons/text/recipes/button-server-side-condition.md +160 -0
- package/dist/resources/components/documents/buttons/text/recipes/button-submit-request.md +183 -0
- package/dist/resources/components/documents/buttons/text-with-icon/recipes/button-dynamic-action.md +137 -0
- package/dist/resources/components/documents/buttons/text-with-icon/recipes/button-redirect-items.md +155 -0
- package/dist/resources/components/documents/buttons/text-with-icon.md +3 -1
- package/dist/resources/components/documents/buttons/text.md +4 -1
- package/dist/resources/components/documents/catalog.md +7 -1
- package/dist/resources/components/documents/items/checkbox-group/recipes/item-checkbox-group-columns.md +125 -0
- package/dist/resources/components/documents/items/checkbox-group.md +2 -1
- package/dist/resources/components/documents/items/date-picker/recipes/item-date-picker-range.md +121 -0
- package/dist/resources/components/documents/items/date-picker.md +2 -1
- package/dist/resources/components/documents/items/display-image/parameters.md +7998 -0
- package/dist/resources/components/documents/items/display-image/recipes/item-display-image.md +118 -0
- package/dist/resources/components/documents/items/display-image.md +27 -0
- package/dist/resources/components/documents/items/geocoded-address/parameters.md +8564 -0
- package/dist/resources/components/documents/items/geocoded-address/recipes/item-geocoded-address.md +137 -0
- package/dist/resources/components/documents/items/geocoded-address.md +27 -0
- package/dist/resources/components/documents/items/number-field/recipes/item-number-field-format-mask.md +123 -0
- package/dist/resources/components/documents/items/number-field.md +2 -1
- package/dist/resources/components/documents/items/popup-lov/recipes/item-popup-lov-display-null.md +128 -0
- package/dist/resources/components/documents/items/popup-lov.md +2 -1
- package/dist/resources/components/documents/items/radio-group/recipes/item-radio-group-columns.md +123 -0
- package/dist/resources/components/documents/items/radio-group.md +2 -1
- package/dist/resources/components/documents/items/rich-text-editor/parameters.md +8003 -0
- package/dist/resources/components/documents/items/rich-text-editor/recipes/item-rich-text-editor.md +126 -0
- package/dist/resources/components/documents/items/rich-text-editor.md +27 -0
- package/dist/resources/components/documents/items/select-list/recipes/item-select-list-shared-lov.md +149 -0
- package/dist/resources/components/documents/items/select-list.md +2 -1
- package/dist/resources/components/documents/items/shuttle/recipes/item-shuttle-shared-lov.md +157 -0
- package/dist/resources/components/documents/items/shuttle.md +2 -1
- package/dist/resources/components/documents/items/switch/recipes/item-switch-custom-values.md +123 -0
- package/dist/resources/components/documents/items/switch.md +2 -1
- package/dist/resources/components/documents/items/textarea/recipes/item-textarea-required-length.md +123 -0
- package/dist/resources/components/documents/items/textarea.md +2 -1
- package/dist/resources/components/documents/regions/breadcrumb/parameters.md +13322 -0
- package/dist/resources/components/documents/regions/breadcrumb/recipes/breadcrumb.md +137 -0
- package/dist/resources/components/documents/regions/breadcrumb/source-examples.md +20 -0
- package/dist/resources/components/documents/regions/breadcrumb.md +29 -0
- package/dist/resources/components/documents/regions/calendar/recipes/calendar-create-event-on-select.md +252 -0
- package/dist/resources/components/documents/regions/calendar/recipes/calendar-custom-navigation.md +360 -0
- package/dist/resources/components/documents/regions/calendar/recipes/calendar-custom-styling.md +156 -0
- package/dist/resources/components/documents/regions/calendar/recipes/calendar-delete-or-copy-on-click.md +271 -0
- package/dist/resources/components/documents/regions/calendar/recipes/calendar-standard-monthly.md +147 -0
- package/dist/resources/components/documents/regions/calendar/recipes/calendar-status-tracking.md +259 -0
- package/dist/resources/components/documents/regions/calendar/recipes/calendar-weekly-conference.md +153 -0
- package/dist/resources/components/documents/regions/calendar/recipes/calendar-weekly-drag-drop.md +146 -0
- package/dist/resources/components/documents/regions/calendar/recipes/calendar-weekly-time-format-toggle.md +330 -0
- package/dist/resources/components/documents/regions/calendar.md +10 -1
- package/dist/resources/components/documents/regions/cards/recipes/cards-actions.md +193 -0
- package/dist/resources/components/documents/regions/cards.md +2 -1
- package/dist/resources/components/documents/regions/chart/recipes/chart-3d-effect.md +176 -0
- package/dist/resources/components/documents/regions/chart/recipes/chart-area-custom-legend.md +226 -0
- package/dist/resources/components/documents/regions/chart/recipes/chart-bar-dual-axis.md +203 -0
- package/dist/resources/components/documents/regions/chart/recipes/chart-bar-stacked-horizontal.md +170 -0
- package/dist/resources/components/documents/regions/chart/recipes/chart-bubble.md +171 -0
- package/dist/resources/components/documents/regions/chart/recipes/chart-custom-tooltip.md +156 -0
- package/dist/resources/components/documents/regions/chart/recipes/chart-dashboard-combination.md +234 -0
- package/dist/resources/components/documents/regions/chart/recipes/chart-data-densification.md +169 -0
- package/dist/resources/components/documents/regions/chart/recipes/chart-gantt.md +188 -0
- package/dist/resources/components/documents/regions/chart/recipes/chart-line-with-area.md +197 -0
- package/dist/resources/components/documents/regions/chart/recipes/chart-links.md +188 -0
- package/dist/resources/components/documents/regions/chart/recipes/chart-scatter.md +167 -0
- package/dist/resources/components/documents/regions/chart/recipes/chart-series-color.md +143 -0
- package/dist/resources/components/documents/regions/chart/recipes/chart-status-meter-gauge.md +142 -0
- package/dist/resources/components/documents/regions/chart/recipes/chart-stock.md +173 -0
- package/dist/resources/components/documents/regions/chart/recipes/chart-zoom-scroll.md +168 -0
- package/dist/resources/components/documents/regions/chart.md +17 -1
- package/dist/resources/components/documents/regions/faceted-search/recipes/faceted-search-calendar.md +352 -0
- package/dist/resources/components/documents/regions/faceted-search/recipes/faceted-search-cards.md +430 -0
- package/dist/resources/components/documents/regions/faceted-search/recipes/faceted-search-content-row.md +599 -0
- package/dist/resources/components/documents/regions/faceted-search/recipes/faceted-search-dashboard.md +883 -0
- package/dist/resources/components/documents/regions/faceted-search/recipes/faceted-search-directory-groups.md +514 -0
- package/dist/resources/components/documents/regions/faceted-search/recipes/faceted-search-grouped-rows.md +663 -0
- package/dist/resources/components/documents/regions/faceted-search/recipes/faceted-search-map.md +379 -0
- package/dist/resources/components/documents/regions/faceted-search/recipes/faceted-search-search-only-report.md +408 -0
- package/dist/resources/components/documents/regions/faceted-search/recipes/faceted-search-timeline.md +510 -0
- package/dist/resources/components/documents/regions/faceted-search.md +10 -1
- package/dist/resources/components/documents/regions/form/recipes/form-dialog-buttons.md +247 -0
- package/dist/resources/components/documents/regions/form/recipes/sectioned-form-expense-report.md +938 -0
- package/dist/resources/components/documents/regions/form.md +3 -1
- package/dist/resources/components/documents/regions/help-text/parameters.md +11842 -0
- package/dist/resources/components/documents/regions/help-text/recipes/help-text.md +137 -0
- package/dist/resources/components/documents/regions/help-text.md +27 -0
- package/dist/resources/components/documents/regions/map/recipes/map-bbox-static.md +152 -0
- package/dist/resources/components/documents/regions/map/recipes/map-browser-location.md +138 -0
- package/dist/resources/components/documents/regions/map/recipes/map-extruded-polygons.md +155 -0
- package/dist/resources/components/documents/regions/map/recipes/map-geojson-icon-points.md +150 -0
- package/dist/resources/components/documents/regions/map/recipes/map-heat-map.md +143 -0
- package/dist/resources/components/documents/regions/map/recipes/map-lines-geojson.md +147 -0
- package/dist/resources/components/documents/regions/map/recipes/map-multi-layer-legend.md +220 -0
- package/dist/resources/components/documents/regions/map/recipes/map-points-lonlat.md +148 -0
- package/dist/resources/components/documents/regions/map/recipes/map-polygons-color-scheme.md +160 -0
- package/dist/resources/components/documents/regions/map.md +10 -1
- package/dist/resources/components/documents/regions/region-display-selector/recipes/region-display-selector-icons.md +161 -0
- package/dist/resources/components/documents/regions/region-display-selector.md +2 -1
- package/dist/resources/components/documents/regions/static-content/recipes/static-content-accordion.md +152 -0
- package/dist/resources/components/documents/regions/static-content/recipes/static-content-collection-toolbar.md +205 -0
- package/dist/resources/components/documents/regions/static-content/recipes/static-content-dividers.md +155 -0
- package/dist/resources/components/documents/regions/static-content/recipes/static-content-empty-state.md +139 -0
- package/dist/resources/components/documents/regions/static-content.md +5 -1
- package/dist/resources/components/documents/reports/classic-report/recipes/classic-report-notifications.md +141 -0
- package/dist/resources/components/documents/reports/classic-report/recipes/classic-report-percent-graph.md +151 -0
- package/dist/resources/components/documents/reports/classic-report/recipes/classic-report-suggestions.md +134 -0
- package/dist/resources/components/documents/reports/classic-report.md +4 -1
- package/dist/resources/components/documents/reports/contextual-info/recipes/contextual-info-row-based.md +138 -0
- package/dist/resources/components/documents/reports/contextual-info.md +2 -1
- package/dist/resources/components/documents/reports/interactive-grid/recipes/editable-grid-expense-lines.md +378 -0
- package/dist/resources/components/documents/reports/interactive-grid/recipes/interactive-grid-toolbar-download.md +200 -0
- package/dist/resources/components/documents/reports/interactive-grid.md +3 -1
- package/dist/resources/components/documents/reports/interactive-report/recipes/interactive-report-full-options.md +227 -0
- package/dist/resources/components/documents/reports/interactive-report/recipes/interactive-report-search-bar-actions.md +206 -0
- package/dist/resources/components/documents/reports/interactive-report/recipes/interactive-report-secondary.md +161 -0
- package/dist/resources/components/documents/reports/interactive-report.md +4 -1
- package/dist/resources/components/documents/template-components/content-row/recipes/directory-hero-search-content-row.md +476 -0
- package/dist/resources/components/documents/template-components/content-row.md +2 -1
- package/dist/resources/components/index.json +3485 -739
- package/dist/resources/components/manifest.json +245 -38
- package/dist/resources/components/recipes/compiler-evidence.json +2103 -422
- package/dist/resources/components/recipes/internet-breadcrumb/pages/p00001-home.apx +46 -0
- package/dist/resources/components/recipes/internet-breadcrumb/shared-components/breadcrumbs.apx +17 -0
- package/dist/resources/components/recipes/internet-button-confirmation/pages/p00001-home.apx +60 -0
- package/dist/resources/components/recipes/internet-button-dynamic-action/pages/p00001-home.apx +69 -0
- package/dist/resources/components/recipes/internet-button-redirect-items/pages/p00001-home.apx +87 -0
- package/dist/resources/components/recipes/internet-button-server-side-condition/pages/p00001-home.apx +90 -0
- package/dist/resources/components/recipes/internet-button-submit-request/pages/p00001-home.apx +113 -0
- package/dist/resources/components/recipes/internet-button-trigger-action/pages/p00001-home.apx +71 -0
- package/dist/resources/components/recipes/internet-calendar-create-event-on-select/pages/p00001-home.apx +181 -0
- package/dist/resources/components/recipes/internet-calendar-custom-navigation/pages/p00001-home.apx +292 -0
- package/dist/resources/components/recipes/internet-calendar-custom-styling/pages/p00001-home.apx +88 -0
- package/dist/resources/components/recipes/internet-calendar-delete-or-copy-on-click/pages/p00001-home.apx +200 -0
- package/dist/resources/components/recipes/internet-calendar-standard-monthly/pages/p00001-home.apx +79 -0
- package/dist/resources/components/recipes/internet-calendar-status-tracking/pages/p00001-home.apx +191 -0
- package/dist/resources/components/recipes/internet-calendar-weekly-conference/pages/p00001-home.apx +85 -0
- package/dist/resources/components/recipes/internet-calendar-weekly-drag-drop/pages/p00001-home.apx +78 -0
- package/dist/resources/components/recipes/internet-calendar-weekly-time-format-toggle/pages/p00001-home.apx +260 -0
- package/dist/resources/components/recipes/internet-cards-actions/pages/p00001-home.apx +125 -0
- package/dist/resources/components/recipes/internet-chart-3d-effect/pages/p00001-home.apx +108 -0
- package/dist/resources/components/recipes/internet-chart-area-custom-legend/pages/p00001-home.apx +158 -0
- package/dist/resources/components/recipes/internet-chart-bar-dual-axis/pages/p00001-home.apx +135 -0
- package/dist/resources/components/recipes/internet-chart-bar-stacked-horizontal/pages/p00001-home.apx +102 -0
- package/dist/resources/components/recipes/internet-chart-bubble/pages/p00001-home.apx +103 -0
- package/dist/resources/components/recipes/internet-chart-custom-tooltip/pages/p00001-home.apx +88 -0
- package/dist/resources/components/recipes/internet-chart-dashboard-combination/pages/p00001-home.apx +166 -0
- package/dist/resources/components/recipes/internet-chart-data-densification/pages/p00001-home.apx +101 -0
- package/dist/resources/components/recipes/internet-chart-gantt/pages/p00001-home.apx +120 -0
- package/dist/resources/components/recipes/internet-chart-line-with-area/pages/p00001-home.apx +129 -0
- package/dist/resources/components/recipes/internet-chart-links/pages/p00001-home.apx +120 -0
- package/dist/resources/components/recipes/internet-chart-scatter/pages/p00001-home.apx +99 -0
- package/dist/resources/components/recipes/internet-chart-series-color/pages/p00001-home.apx +75 -0
- package/dist/resources/components/recipes/internet-chart-status-meter-gauge/pages/p00001-home.apx +74 -0
- package/dist/resources/components/recipes/internet-chart-stock/pages/p00001-home.apx +105 -0
- package/dist/resources/components/recipes/internet-chart-zoom-scroll/pages/p00001-home.apx +100 -0
- package/dist/resources/components/recipes/internet-classic-report-notifications/pages/p00001-home.apx +73 -0
- package/dist/resources/components/recipes/internet-classic-report-percent-graph/pages/p00001-home.apx +83 -0
- package/dist/resources/components/recipes/internet-classic-report-suggestions/pages/p00001-home.apx +66 -0
- package/dist/resources/components/recipes/internet-contextual-info-row-based/pages/p00001-home.apx +70 -0
- package/dist/resources/components/recipes/internet-directory-hero-search-content-row/pages/p00001-home.apx +406 -0
- package/dist/resources/components/recipes/internet-dynamic-actions-alert-confirm/pages/p00001-home.apx +109 -0
- package/dist/resources/components/recipes/internet-dynamic-actions-cancel-dialog/pages/p00001-home.apx +48 -0
- package/dist/resources/components/recipes/internet-dynamic-actions-cancel-dialog/pages/p00002-dialog.apx +98 -0
- package/dist/resources/components/recipes/internet-dynamic-actions-close-dialog/pages/p00001-home.apx +48 -0
- package/dist/resources/components/recipes/internet-dynamic-actions-close-dialog/pages/p00002-dialog.apx +102 -0
- package/dist/resources/components/recipes/internet-dynamic-actions-debounce-throttle/pages/p00001-home.apx +262 -0
- package/dist/resources/components/recipes/internet-dynamic-actions-delete-notification/pages/p00001-home.apx +129 -0
- package/dist/resources/components/recipes/internet-dynamic-actions-refresh-after-dialog/pages/p00001-home.apx +109 -0
- package/dist/resources/components/recipes/internet-dynamic-actions-refresh-after-dialog/pages/p00002-dialog.apx +99 -0
- package/dist/resources/components/recipes/internet-dynamic-actions-region-class/pages/p00001-home.apx +125 -0
- package/dist/resources/components/recipes/internet-dynamic-actions-show-error-message/pages/p00001-home.apx +86 -0
- package/dist/resources/components/recipes/internet-editable-grid-expense-lines/pages/p00001-home.apx +310 -0
- package/dist/resources/components/recipes/internet-faceted-search-calendar/pages/p00001-home.apx +284 -0
- package/dist/resources/components/recipes/internet-faceted-search-cards/pages/p00001-home.apx +362 -0
- package/dist/resources/components/recipes/internet-faceted-search-content-row/pages/p00001-home.apx +531 -0
- package/dist/resources/components/recipes/internet-faceted-search-dashboard/pages/p00001-home.apx +809 -0
- package/dist/resources/components/recipes/internet-faceted-search-directory-groups/pages/p00001-home.apx +446 -0
- package/dist/resources/components/recipes/internet-faceted-search-grouped-rows/pages/p00001-home.apx +595 -0
- package/dist/resources/components/recipes/internet-faceted-search-map/pages/p00001-home.apx +311 -0
- package/dist/resources/components/recipes/internet-faceted-search-search-only-report/pages/p00001-home.apx +340 -0
- package/dist/resources/components/recipes/internet-faceted-search-timeline/pages/p00001-home.apx +442 -0
- package/dist/resources/components/recipes/internet-form-dialog-buttons/pages/p00001-home.apx +179 -0
- package/dist/resources/components/recipes/internet-help-text/pages/p00001-home.apx +69 -0
- package/dist/resources/components/recipes/internet-interactive-grid-toolbar-download/pages/p00001-home.apx +132 -0
- package/dist/resources/components/recipes/internet-interactive-report-full-options/pages/p00001-home.apx +159 -0
- package/dist/resources/components/recipes/internet-interactive-report-search-bar-actions/pages/p00001-home.apx +138 -0
- package/dist/resources/components/recipes/internet-interactive-report-secondary/pages/p00001-home.apx +93 -0
- package/dist/resources/components/recipes/internet-item-checkbox-group-columns/pages/p00001-home.apx +55 -0
- package/dist/resources/components/recipes/internet-item-date-picker-range/pages/p00001-home.apx +51 -0
- package/dist/resources/components/recipes/internet-item-display-image/pages/p00001-home.apx +50 -0
- package/dist/resources/components/recipes/internet-item-geocoded-address/pages/p00001-home.apx +66 -0
- package/dist/resources/components/recipes/internet-item-number-field-format-mask/pages/p00001-home.apx +53 -0
- package/dist/resources/components/recipes/internet-item-popup-lov-display-null/pages/p00001-home.apx +58 -0
- package/dist/resources/components/recipes/internet-item-radio-group-columns/pages/p00001-home.apx +53 -0
- package/dist/resources/components/recipes/internet-item-rich-text-editor/pages/p00001-home.apx +56 -0
- package/dist/resources/components/recipes/internet-item-select-list-shared-lov/pages/p00001-home.apx +48 -0
- package/dist/resources/components/recipes/internet-item-select-list-shared-lov/shared-components/lovs.apx +25 -0
- package/dist/resources/components/recipes/internet-item-shuttle-shared-lov/pages/p00001-home.apx +50 -0
- package/dist/resources/components/recipes/internet-item-shuttle-shared-lov/shared-components/lovs.apx +31 -0
- package/dist/resources/components/recipes/internet-item-switch-custom-values/pages/p00001-home.apx +53 -0
- package/dist/resources/components/recipes/internet-item-textarea-required-length/pages/p00001-home.apx +53 -0
- package/dist/resources/components/recipes/internet-map-bbox-static/pages/p00001-home.apx +82 -0
- package/dist/resources/components/recipes/internet-map-browser-location/pages/p00001-home.apx +70 -0
- package/dist/resources/components/recipes/internet-map-extruded-polygons/pages/p00001-home.apx +87 -0
- package/dist/resources/components/recipes/internet-map-geojson-icon-points/pages/p00001-home.apx +82 -0
- package/dist/resources/components/recipes/internet-map-heat-map/pages/p00001-home.apx +75 -0
- package/dist/resources/components/recipes/internet-map-lines-geojson/pages/p00001-home.apx +79 -0
- package/dist/resources/components/recipes/internet-map-multi-layer-legend/pages/p00001-home.apx +152 -0
- package/dist/resources/components/recipes/internet-map-points-lonlat/pages/p00001-home.apx +80 -0
- package/dist/resources/components/recipes/internet-map-polygons-color-scheme/pages/p00001-home.apx +92 -0
- package/dist/resources/components/recipes/internet-processes-close-dialog/pages/p00001-home.apx +48 -0
- package/dist/resources/components/recipes/internet-processes-close-dialog/pages/p00002-dialog.apx +145 -0
- package/dist/resources/components/recipes/internet-processes-execute-code/pages/p00001-home.apx +130 -0
- package/dist/resources/components/recipes/internet-processes-form-initialization/pages/p00001-home.apx +171 -0
- package/dist/resources/components/recipes/internet-region-display-selector-icons/pages/p00001-home.apx +93 -0
- package/dist/resources/components/recipes/internet-sectioned-form-expense-report/pages/p00001-home.apx +870 -0
- package/dist/resources/components/recipes/internet-static-content-accordion/pages/p00001-home.apx +84 -0
- package/dist/resources/components/recipes/internet-static-content-collection-toolbar/pages/p00001-home.apx +137 -0
- package/dist/resources/components/recipes/internet-static-content-dividers/pages/p00001-home.apx +87 -0
- package/dist/resources/components/recipes/internet-static-content-empty-state/pages/p00001-home.apx +71 -0
- package/dist/resources/components/recipes/internet-validations-plsql-error/pages/p00001-home.apx +134 -0
- package/dist/resources/components/recipes/registry.json +4973 -0
- package/dist/resources/patterns/docs/metrics/capacity-summary/recipes/unit-aware.md +3 -3
- package/dist/resources/patterns/index.json +408 -408
- package/dist/resources/patterns/manifest.json +8 -8
- package/dist/resources/patterns/recipes/compiler-evidence.json +3 -3
- package/dist/resources/patterns/recipes/registry.json +1 -1
- package/dist/resources/patterns/recipes/ux-extra-metrics-capacity-summary-unit-aware/pages/p00001-home.apx +2 -2
- package/dist/resources/policy/deployment-safety.md +197 -20
- package/dist/resources/references/26.2/guides/upgrade-audit.md +13 -1
- package/dist/resources/references/26.2/guides.json +1 -1
- package/dist/resources/references/26.2/index.json +3 -3
- package/dist/resources/references/26.2/oracle-snapshot.json +2 -2
- package/dist/resources/references/26.2/search.json +1 -1
- package/dist/resources/scaffold/observations.sql +126 -0
- package/dist/resources/schemas/composer-blueprint.schema.json +17 -17
- package/dist/resources/schemas/composer-contract.schema.json +9 -2
- package/dist/resources/schemas/composer-entity.schema.json +5 -3
- package/dist/resources/schemas/composer-field.schema.json +4 -1
- package/dist/resources/schemas/composer-instance.schema.json +2 -8
- package/dist/resources/schemas/composer-parameters.schema.json +1 -5
- package/dist/resources/schemas/composer-plan.schema.json +102 -5
- package/dist/resources/schemas/composer-shared-resource.schema.json +82 -0
- package/dist/resources/schemas/composer-state.schema.json +88 -0
- package/dist/resources/schemas/deploy-plan.schema.json +75 -3
- package/dist/resources/schemas/operations.schema.json +488 -17
- package/dist/resources/schemas/policy.schema.json +1 -1
- package/dist/resources/schemas/project.schema.json +61 -5
- package/dist/resources/schemas/sync-state.schema.json +8 -0
- package/dist/resources/templates/blank-app/application/application.apx +1 -0
- package/dist/resources/toolchains/sources.lock.json +1 -1
- package/dist/runtime/apexrest.mjs +154 -52
- package/dist/runtime/chunk-26MTCOZK.mjs +239 -0
- package/dist/runtime/chunk-47GDU535.mjs +1020 -0
- package/dist/runtime/chunk-4LEHTNYH.mjs +252 -0
- package/dist/runtime/chunk-4MIZ34V4.mjs +280 -0
- package/dist/runtime/chunk-6JZB7NDZ.mjs +33342 -0
- package/dist/{codex-compat/plugins/apexrest-apex/runtime/chunk-U7MVLA3R.mjs → runtime/chunk-CI5IU2PI.mjs} +433 -181
- package/dist/runtime/{chunk-JZ5FIGSS.mjs → chunk-DJPW35KJ.mjs} +5 -5
- package/dist/{codex-compat/plugins/apexrest-apex/runtime/chunk-BLB5JLWO.mjs → runtime/chunk-GHVRIHN6.mjs} +834 -4808
- package/dist/runtime/chunk-JJYHZOQR.mjs +6608 -0
- package/dist/runtime/{chunk-AESZGFM2.mjs → chunk-LCNHRIKE.mjs} +6 -3
- package/dist/runtime/{chunk-YEGSGHTV.mjs → chunk-LIG5PZ4K.mjs} +44 -12
- package/dist/runtime/{chunk-2YXH4VEB.mjs → chunk-LIGDVE6F.mjs} +438 -154
- package/dist/runtime/{chunk-WK445BKL.mjs → chunk-M5EC4OUI.mjs} +116 -41
- package/dist/{codex-compat/plugins/apexrest-apex/runtime/chunk-TE5VTEAH.mjs → runtime/chunk-MPKKOQVI.mjs} +349 -446
- package/dist/runtime/chunk-N3KQBIVW.mjs +252 -0
- package/dist/runtime/chunk-PFOHMLO4.mjs +141 -0
- package/dist/runtime/chunk-PNGZYZE7.mjs +4703 -0
- package/dist/runtime/{chunk-NBA54QYW.mjs → chunk-PS2GKOR2.mjs} +9 -6
- package/dist/runtime/{chunk-T3UX6AQO.mjs → chunk-TBHIU7PZ.mjs} +170 -3432
- package/dist/runtime/chunk-TDM3E2NK.mjs +161 -0
- package/dist/{codex-compat/plugins/apexrest-apex/runtime/chunk-ZSDDYNF5.mjs → runtime/chunk-UKXRUJT4.mjs} +7 -5
- package/dist/runtime/{chunk-BZZ3RV7L.mjs → chunk-XJ7FW7XH.mjs} +4 -4
- package/dist/runtime/mcp.mjs +1 -1
- package/dist/runtime/preview-oracle-worker.mjs +57 -0
- package/package.json +8 -5
- package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-A7ESH6F5.mjs +0 -31
- package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-I5KYBPSK.mjs +0 -419
- package/dist/runtime/chunk-A7ESH6F5.mjs +0 -31
- package/dist/runtime/chunk-I5KYBPSK.mjs +0 -419
|
@@ -0,0 +1,1020 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
declarations,
|
|
4
|
+
editSpans
|
|
5
|
+
} from "./chunk-TDM3E2NK.mjs";
|
|
6
|
+
import {
|
|
7
|
+
get,
|
|
8
|
+
parseApexLang
|
|
9
|
+
} from "./chunk-4MIZ34V4.mjs";
|
|
10
|
+
import {
|
|
11
|
+
resourceRoot,
|
|
12
|
+
sourceRelease
|
|
13
|
+
} from "./chunk-PNGZYZE7.mjs";
|
|
14
|
+
import {
|
|
15
|
+
environment,
|
|
16
|
+
parse
|
|
17
|
+
} from "./chunk-LIG5PZ4K.mjs";
|
|
18
|
+
import "./chunk-4LEHTNYH.mjs";
|
|
19
|
+
import {
|
|
20
|
+
atomicWrite,
|
|
21
|
+
canonical,
|
|
22
|
+
contained,
|
|
23
|
+
exists,
|
|
24
|
+
hash,
|
|
25
|
+
inventory,
|
|
26
|
+
readJson,
|
|
27
|
+
withLock,
|
|
28
|
+
writeJson
|
|
29
|
+
} from "./chunk-26MTCOZK.mjs";
|
|
30
|
+
import "./chunk-MPKKOQVI.mjs";
|
|
31
|
+
import {
|
|
32
|
+
Fault,
|
|
33
|
+
external_exports
|
|
34
|
+
} from "./chunk-CI5IU2PI.mjs";
|
|
35
|
+
|
|
36
|
+
// packages/core/src/scaffold.ts
|
|
37
|
+
import path2 from "node:path";
|
|
38
|
+
import { readFile as readFile2 } from "node:fs/promises";
|
|
39
|
+
import { randomUUID } from "node:crypto";
|
|
40
|
+
|
|
41
|
+
// packages/core/src/scaffold-observations.ts
|
|
42
|
+
import path from "node:path";
|
|
43
|
+
import { readFile } from "node:fs/promises";
|
|
44
|
+
async function scaffoldObservationsSql(env, pages) {
|
|
45
|
+
const literal2 = (value) => {
|
|
46
|
+
if (/[\x00-\x1f\x7f-\x9f\u2028\u2029]/.test(value))
|
|
47
|
+
throw new Fault("INVALID_INPUT", "Observation target fields must be single-line values.", 2);
|
|
48
|
+
return "'" + value.replaceAll("'", "''") + "'";
|
|
49
|
+
};
|
|
50
|
+
if (!Number.isSafeInteger(env.applicationId) || env.applicationId < 1 || !pages.length || pages.some((id2) => !Number.isInteger(id2) || id2 < 1 || id2 > 9998))
|
|
51
|
+
throw new Fault("INVALID_INPUT", "Observation pages must be explicit scaffold page IDs.", 2);
|
|
52
|
+
const values = {
|
|
53
|
+
APP: String(env.applicationId),
|
|
54
|
+
PAGES: pages.join(","),
|
|
55
|
+
DB: literal2(env.databaseIdentity.dbUniqueName),
|
|
56
|
+
SERVICE: literal2(env.databaseIdentity.serviceName),
|
|
57
|
+
SCHEMA: literal2(env.parsingSchema),
|
|
58
|
+
WORKSPACE: literal2(env.workspace)
|
|
59
|
+
};
|
|
60
|
+
const template = await readFile(path.join(resourceRoot(), "scaffold/observations.sql"), "utf8");
|
|
61
|
+
return template.replace(/__([A-Z_]+)__/g, (_all, key) => {
|
|
62
|
+
const value = values[key];
|
|
63
|
+
if (value === void 0)
|
|
64
|
+
throw new Fault("SCAFFOLD_TEMPLATE_INVALID", "Unknown observation template field.", 3);
|
|
65
|
+
return value;
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// packages/core/src/scaffold-spec.ts
|
|
70
|
+
var text = external_exports.string().trim().min(1).max(240).regex(/^[^\x00-\x1f\x7f]+$/);
|
|
71
|
+
var id = external_exports.string().regex(/^[A-Za-z][A-Za-z0-9_-]{0,127}$/);
|
|
72
|
+
var item = external_exports.string().regex(/^P\d+_[A-Z][A-Z0-9_]{0,100}$/);
|
|
73
|
+
var column = external_exports.string().regex(/^[A-Z][A-Z0-9_$#]{0,127}$/);
|
|
74
|
+
var literal = external_exports.string().max(4e3).regex(/^[^\x00-\x1f\x7f]*$/);
|
|
75
|
+
var code = external_exports.string().trim().min(1).max(64e3).refine(
|
|
76
|
+
(v) => !v.includes("```") && !/[\x00\r]/.test(v),
|
|
77
|
+
"Code cannot contain APEXlang fence delimiters or control characters"
|
|
78
|
+
);
|
|
79
|
+
var sql = code.refine((v) => /^(select|with)\b/i.test(v), "Supply a SELECT query");
|
|
80
|
+
var scaffoldTarget = external_exports.strictObject({
|
|
81
|
+
page: external_exports.number().int().min(1).max(9999),
|
|
82
|
+
items: external_exports.record(item, literal).optional(),
|
|
83
|
+
clearCache: external_exports.array(external_exports.number().int().min(1).max(9999)).max(30).optional()
|
|
84
|
+
});
|
|
85
|
+
var condition = external_exports.discriminatedUnion("type", [
|
|
86
|
+
external_exports.strictObject({ type: external_exports.enum(["always", "never", "userIsAuthenticated", "userIsPublicUser"]) }),
|
|
87
|
+
external_exports.strictObject({ type: external_exports.enum(["itemIsNull", "itemIsNotNull"]), item }),
|
|
88
|
+
external_exports.strictObject({ type: external_exports.enum(["item=value", "item!=value"]), item, value: literal }),
|
|
89
|
+
external_exports.strictObject({ type: external_exports.enum(["request=Value", "request!=Value"]), value: literal }),
|
|
90
|
+
external_exports.strictObject({ type: external_exports.literal("expression"), plsqlExpression: code })
|
|
91
|
+
]);
|
|
92
|
+
var guards = {
|
|
93
|
+
condition: condition.optional(),
|
|
94
|
+
authorizationScheme: id.optional(),
|
|
95
|
+
buildOption: id.optional()
|
|
96
|
+
};
|
|
97
|
+
var query = { sql, itemsToSubmit: external_exports.array(item).max(100).optional() };
|
|
98
|
+
var region = { id: id.optional(), name: text, ...guards };
|
|
99
|
+
var reportColumn = external_exports.strictObject({
|
|
100
|
+
name: column,
|
|
101
|
+
heading: text,
|
|
102
|
+
dataType: external_exports.enum(["varchar2", "number", "date", "timestamp"]),
|
|
103
|
+
formatMask: text.optional(),
|
|
104
|
+
link: scaffoldTarget.optional(),
|
|
105
|
+
linkText: literal.optional()
|
|
106
|
+
});
|
|
107
|
+
var regions = external_exports.discriminatedUnion("type", [
|
|
108
|
+
external_exports.strictObject({
|
|
109
|
+
...region,
|
|
110
|
+
...query,
|
|
111
|
+
type: external_exports.enum(["interactiveReport", "classicReport"]),
|
|
112
|
+
columns: external_exports.array(reportColumn).min(1).max(100),
|
|
113
|
+
emptyMessage: text.optional(),
|
|
114
|
+
link: scaffoldTarget.optional()
|
|
115
|
+
}),
|
|
116
|
+
external_exports.strictObject({
|
|
117
|
+
...region,
|
|
118
|
+
...query,
|
|
119
|
+
type: external_exports.literal("cards"),
|
|
120
|
+
titleColumn: column,
|
|
121
|
+
bodyColumn: column,
|
|
122
|
+
keyColumn: column.optional(),
|
|
123
|
+
link: scaffoldTarget.optional()
|
|
124
|
+
}),
|
|
125
|
+
external_exports.strictObject({
|
|
126
|
+
...region,
|
|
127
|
+
...query,
|
|
128
|
+
type: external_exports.literal("barChart"),
|
|
129
|
+
labelColumn: column,
|
|
130
|
+
valueColumn: column,
|
|
131
|
+
xTitle: text,
|
|
132
|
+
yTitle: text
|
|
133
|
+
}),
|
|
134
|
+
external_exports.strictObject({
|
|
135
|
+
...region,
|
|
136
|
+
type: external_exports.literal("chart"),
|
|
137
|
+
chartType: external_exports.enum(["bar", "line", "pie", "donut"]),
|
|
138
|
+
series: external_exports.array(
|
|
139
|
+
external_exports.strictObject({
|
|
140
|
+
...query,
|
|
141
|
+
id: id.optional(),
|
|
142
|
+
name: text,
|
|
143
|
+
labelColumn: column,
|
|
144
|
+
valueColumn: column,
|
|
145
|
+
link: scaffoldTarget.optional()
|
|
146
|
+
})
|
|
147
|
+
).min(1).max(12),
|
|
148
|
+
xTitle: text.optional(),
|
|
149
|
+
yTitle: text.optional()
|
|
150
|
+
}),
|
|
151
|
+
external_exports.strictObject({
|
|
152
|
+
...region,
|
|
153
|
+
...query,
|
|
154
|
+
type: external_exports.literal("calendar"),
|
|
155
|
+
displayColumn: column,
|
|
156
|
+
startDateColumn: column,
|
|
157
|
+
endDateColumn: column.optional(),
|
|
158
|
+
keyColumn: column.optional(),
|
|
159
|
+
showTime: external_exports.boolean().optional(),
|
|
160
|
+
initialDate: external_exports.iso.date().optional(),
|
|
161
|
+
link: scaffoldTarget.optional()
|
|
162
|
+
}),
|
|
163
|
+
external_exports.strictObject({ ...region, ...query, type: external_exports.literal("form") }),
|
|
164
|
+
external_exports.strictObject({ ...region, type: external_exports.literal("staticContent"), html: code.optional() })
|
|
165
|
+
]);
|
|
166
|
+
var processFields = {
|
|
167
|
+
id,
|
|
168
|
+
plsql: code,
|
|
169
|
+
point: external_exports.enum(["beforeHeader", "afterSubmit", "processing", "ajaxCallback"]).optional(),
|
|
170
|
+
sequence: external_exports.number().int().min(1).max(9999).optional(),
|
|
171
|
+
...guards,
|
|
172
|
+
successMessage: text.optional()
|
|
173
|
+
};
|
|
174
|
+
var pageProcess = external_exports.strictObject({ ...processFields, button: id.optional() });
|
|
175
|
+
var scaffoldSchema = external_exports.strictObject({
|
|
176
|
+
applicationName: text.optional(),
|
|
177
|
+
applicationProcesses: external_exports.array(external_exports.strictObject(processFields).omit({ successMessage: true })).max(100).optional(),
|
|
178
|
+
pages: external_exports.array(
|
|
179
|
+
external_exports.strictObject({
|
|
180
|
+
id: external_exports.number().int().min(1).max(9998),
|
|
181
|
+
name: text,
|
|
182
|
+
alias: id.optional(),
|
|
183
|
+
navigation: external_exports.boolean().optional(),
|
|
184
|
+
...guards,
|
|
185
|
+
regions: external_exports.array(regions).min(1).max(30),
|
|
186
|
+
items: external_exports.array(
|
|
187
|
+
external_exports.strictObject({
|
|
188
|
+
name: item,
|
|
189
|
+
type: external_exports.enum([
|
|
190
|
+
"selectList",
|
|
191
|
+
"datePicker",
|
|
192
|
+
"numberField",
|
|
193
|
+
"textField",
|
|
194
|
+
"textarea",
|
|
195
|
+
"hidden",
|
|
196
|
+
"displayOnly"
|
|
197
|
+
]),
|
|
198
|
+
region: id,
|
|
199
|
+
label: text.optional(),
|
|
200
|
+
required: external_exports.boolean().optional(),
|
|
201
|
+
defaultValue: literal.optional(),
|
|
202
|
+
formatMask: text.optional(),
|
|
203
|
+
sourceColumn: column.optional(),
|
|
204
|
+
dataType: external_exports.enum(["varchar2", "number", "date", "timestamp"]).optional(),
|
|
205
|
+
primaryKey: external_exports.boolean().optional(),
|
|
206
|
+
lov: external_exports.union([
|
|
207
|
+
external_exports.array(external_exports.strictObject({ label: text, value: literal })).min(1).max(100),
|
|
208
|
+
external_exports.strictObject({ sql })
|
|
209
|
+
]).optional(),
|
|
210
|
+
...guards
|
|
211
|
+
})
|
|
212
|
+
).max(100).optional(),
|
|
213
|
+
buttons: external_exports.array(
|
|
214
|
+
external_exports.strictObject({
|
|
215
|
+
id,
|
|
216
|
+
label: text,
|
|
217
|
+
region: id,
|
|
218
|
+
action: external_exports.enum(["submitPage", "redirectToPage"]).optional(),
|
|
219
|
+
target: scaffoldTarget.optional(),
|
|
220
|
+
confirmation: external_exports.strictObject({
|
|
221
|
+
message: text,
|
|
222
|
+
style: external_exports.enum(["information", "warning", "danger"]).optional()
|
|
223
|
+
}).optional(),
|
|
224
|
+
...guards
|
|
225
|
+
})
|
|
226
|
+
).max(100).optional(),
|
|
227
|
+
processes: external_exports.array(pageProcess).max(100).optional(),
|
|
228
|
+
validations: external_exports.array(
|
|
229
|
+
external_exports.strictObject({
|
|
230
|
+
id,
|
|
231
|
+
plsql: code,
|
|
232
|
+
errorMessage: text,
|
|
233
|
+
item: item.optional(),
|
|
234
|
+
button: id.optional(),
|
|
235
|
+
...guards
|
|
236
|
+
})
|
|
237
|
+
).max(100).optional(),
|
|
238
|
+
branches: external_exports.array(external_exports.strictObject({ id, target: scaffoldTarget, button: id.optional(), ...guards })).max(100).optional(),
|
|
239
|
+
refreshes: external_exports.array(
|
|
240
|
+
external_exports.strictObject({ items: external_exports.array(item).min(1).max(100), regions: external_exports.array(id).min(1).max(30) })
|
|
241
|
+
).max(30).optional()
|
|
242
|
+
})
|
|
243
|
+
).min(1).max(30)
|
|
244
|
+
});
|
|
245
|
+
|
|
246
|
+
// packages/core/src/scaffold-renderer.ts
|
|
247
|
+
var q = (v) => JSON.stringify(v);
|
|
248
|
+
var indent = (v) => v.split("\n").map((line) => line ? " " + line : line).join("\n");
|
|
249
|
+
var g = (name, value) => `${name} {
|
|
250
|
+
${indent(value)}
|
|
251
|
+
}`;
|
|
252
|
+
var n = (kind, id2, value) => `${kind} ${id2} (
|
|
253
|
+
${indent(value.filter(Boolean).join("\n"))}
|
|
254
|
+
)
|
|
255
|
+
`;
|
|
256
|
+
var fence = (language, value) => `
|
|
257
|
+
${indent("```" + language + "\n" + value + "\n```")}`;
|
|
258
|
+
var invalid = (message) => {
|
|
259
|
+
throw new Fault("INVALID_INPUT", message, 2);
|
|
260
|
+
};
|
|
261
|
+
var ref = (value) => "@" + value;
|
|
262
|
+
function condition2(value, button) {
|
|
263
|
+
const parts = button ? [`whenButtonPressed: ${ref(button)}`] : [];
|
|
264
|
+
for (const [key, field] of Object.entries(value.condition ?? {}))
|
|
265
|
+
parts.push(`${key}: ${key === "type" ? field : q(field)}`);
|
|
266
|
+
if (value.condition?.type === "expression") parts.push("language: plsql");
|
|
267
|
+
return parts.length ? g("serverSideCondition", parts.join("\n")) : "";
|
|
268
|
+
}
|
|
269
|
+
function guards2(value, button, securityExtra = "") {
|
|
270
|
+
const security = [
|
|
271
|
+
value.authorizationScheme ? `authorizationScheme: ${ref(value.authorizationScheme)}` : "",
|
|
272
|
+
securityExtra
|
|
273
|
+
].filter(Boolean).join("\n");
|
|
274
|
+
return [
|
|
275
|
+
condition2(value, button),
|
|
276
|
+
security ? g("security", security) : "",
|
|
277
|
+
value.buildOption ? g("config", `buildOption: ${ref(value.buildOption)}`) : ""
|
|
278
|
+
].filter(Boolean);
|
|
279
|
+
}
|
|
280
|
+
function target(value) {
|
|
281
|
+
return g(
|
|
282
|
+
"target:",
|
|
283
|
+
[
|
|
284
|
+
`page: ${value.page}`,
|
|
285
|
+
value.items ? g(
|
|
286
|
+
"items:",
|
|
287
|
+
Object.entries(value.items).map(([key, val]) => `${key}: ${q(val)}`).join("\n")
|
|
288
|
+
) : "",
|
|
289
|
+
value.clearCache?.length ? `clearCache: ${value.clearCache.join(",")}` : ""
|
|
290
|
+
].filter(Boolean).join("\n")
|
|
291
|
+
);
|
|
292
|
+
}
|
|
293
|
+
function query2(value, location = true) {
|
|
294
|
+
return g(
|
|
295
|
+
"source",
|
|
296
|
+
[
|
|
297
|
+
location ? "location: localDatabase" : "",
|
|
298
|
+
"type: sqlQuery",
|
|
299
|
+
value.itemsToSubmit?.length ? `pageItemsToSubmit: ${value.itemsToSubmit.join(",")}` : "",
|
|
300
|
+
`sqlQuery:${fence("sql", value.sql)}`
|
|
301
|
+
].filter(Boolean).join("\n")
|
|
302
|
+
);
|
|
303
|
+
}
|
|
304
|
+
function appearance(template) {
|
|
305
|
+
return g("appearance", `template: @/${template}
|
|
306
|
+
templateOptions: #DEFAULT#`);
|
|
307
|
+
}
|
|
308
|
+
var reportAlias = (index) => {
|
|
309
|
+
let alias = "";
|
|
310
|
+
for (let num = index + 1; num; num = Math.floor((num - 1) / 26))
|
|
311
|
+
alias = String.fromCharCode(65 + (num - 1) % 26) + alias;
|
|
312
|
+
return alias;
|
|
313
|
+
};
|
|
314
|
+
function renderRegion(region2, index, release = "26.2") {
|
|
315
|
+
const chart = region2.type === "chart" || region2.type === "barChart";
|
|
316
|
+
const parts = [
|
|
317
|
+
`name: ${q(region2.name)}`,
|
|
318
|
+
`type: ${chart ? "chart" : region2.type}`,
|
|
319
|
+
g("layout", `sequence: ${(index + 1) * 10}
|
|
320
|
+
slot: body`),
|
|
321
|
+
appearance(
|
|
322
|
+
region2.type === "cards" ? "cards-container" : ["interactiveReport", "classicReport"].includes(region2.type) ? "interactive-report" : "standard"
|
|
323
|
+
),
|
|
324
|
+
...guards2(region2, void 0, chart ? "escapeSpecialChars: true" : "")
|
|
325
|
+
];
|
|
326
|
+
if ("sql" in region2) parts.push(query2(region2));
|
|
327
|
+
if (region2.type === "staticContent" && region2.html)
|
|
328
|
+
parts.push(g("source", `htmlCode:${fence("html", region2.html)}`));
|
|
329
|
+
if (region2.type === "form") parts.push(g("edit", "enabled: false"));
|
|
330
|
+
if (region2.type === "calendar") {
|
|
331
|
+
if (region2.initialDate)
|
|
332
|
+
parts.push(
|
|
333
|
+
g(
|
|
334
|
+
"componentAdvanced",
|
|
335
|
+
`initJavaScriptFunction:${fence("javascript-browser", `function(options) { options.initialDate = ${q(region2.initialDate)}; return options; }`)}`
|
|
336
|
+
)
|
|
337
|
+
);
|
|
338
|
+
parts.push(
|
|
339
|
+
g(
|
|
340
|
+
"settings",
|
|
341
|
+
[
|
|
342
|
+
`displayColumn: ${region2.displayColumn}`,
|
|
343
|
+
`startDateColumn: ${region2.startDateColumn}`,
|
|
344
|
+
region2.endDateColumn ? `endDateColumn: ${region2.endDateColumn}` : "",
|
|
345
|
+
region2.keyColumn ? `pkColumn: ${region2.keyColumn}` : "",
|
|
346
|
+
`showTime: ${region2.showTime ?? false}`,
|
|
347
|
+
region2.link ? target(region2.link).replace(/^target:/, "viewEditLink:") : ""
|
|
348
|
+
].filter(Boolean).join("\n")
|
|
349
|
+
)
|
|
350
|
+
);
|
|
351
|
+
}
|
|
352
|
+
if (region2.type === "cards") {
|
|
353
|
+
parts.push(g("title", `column: ${region2.titleColumn}`), g("body", `column: ${region2.bodyColumn}`));
|
|
354
|
+
if (region2.keyColumn) parts.push(g("card", `primaryKeyColumn1: ${region2.keyColumn}`));
|
|
355
|
+
if (region2.link)
|
|
356
|
+
parts.push(
|
|
357
|
+
n("action", "open", [
|
|
358
|
+
"type: fullCard",
|
|
359
|
+
g("layout", "sequence: 10"),
|
|
360
|
+
g("behavior", "type: redirectThisApp\n" + target(region2.link))
|
|
361
|
+
])
|
|
362
|
+
);
|
|
363
|
+
}
|
|
364
|
+
if (chart) {
|
|
365
|
+
const kind = region2.type === "barChart" ? "bar" : region2.chartType;
|
|
366
|
+
parts.push(g("chart", `type: ${kind}`));
|
|
367
|
+
if (kind !== "pie" && kind !== "donut")
|
|
368
|
+
for (const [axis, title] of [
|
|
369
|
+
["x", region2.xTitle],
|
|
370
|
+
["y", region2.yTitle]
|
|
371
|
+
])
|
|
372
|
+
parts.push(n("axis", axis, [`name: ${axis}`, title ? `title: ${q(title)}` : ""]));
|
|
373
|
+
const series = region2.type === "barChart" ? [{ ...region2, id: "values" }] : region2.series;
|
|
374
|
+
series.forEach(
|
|
375
|
+
(entry, ordinal) => parts.push(
|
|
376
|
+
n("series", entry.id ?? `s${ordinal + 1}`, [
|
|
377
|
+
`name: ${q(entry.name)}`,
|
|
378
|
+
g("execution", `sequence: ${(ordinal + 1) * 10}`),
|
|
379
|
+
query2(entry, false),
|
|
380
|
+
g("columnMapping", `label: ${entry.labelColumn}
|
|
381
|
+
value: ${entry.valueColumn}`),
|
|
382
|
+
"link" in entry && entry.link ? g("link", "type: redirectThisApp\n" + target(entry.link)) : ""
|
|
383
|
+
])
|
|
384
|
+
)
|
|
385
|
+
);
|
|
386
|
+
}
|
|
387
|
+
if (region2.type === "interactiveReport" || region2.type === "classicReport") {
|
|
388
|
+
if (region2.type === "classicReport")
|
|
389
|
+
parts.push(g("componentAppearance", "template: @/standard\ntemplateOptions: #DEFAULT#"));
|
|
390
|
+
else
|
|
391
|
+
parts.push(
|
|
392
|
+
g("pagination", "type: rowRangesXToYOfZ"),
|
|
393
|
+
g("link", region2.link ? "linkColumn: customTarget\n" + target(region2.link) : "linkColumn: exclude")
|
|
394
|
+
);
|
|
395
|
+
parts.push(
|
|
396
|
+
g(
|
|
397
|
+
"messages",
|
|
398
|
+
`whenNoDataFound: ${q(region2.emptyMessage ?? "No rows found. Clear filters or add source data.")}`
|
|
399
|
+
)
|
|
400
|
+
);
|
|
401
|
+
region2.columns.forEach((column2, i) => {
|
|
402
|
+
const body = [
|
|
403
|
+
region2.type === "classicReport" ? `${column2.link ? "type: link\n" : ""}reportColumnQueryId: ${i + 1}
|
|
404
|
+
derivedColumn: N` : `type: ${column2.link ? "link" : "plainText"}`,
|
|
405
|
+
g("heading", `heading: ${q(column2.heading)}`),
|
|
406
|
+
g("layout", `sequence: ${(i + 1) * 10}`)
|
|
407
|
+
];
|
|
408
|
+
if (region2.type === "interactiveReport")
|
|
409
|
+
body.push(
|
|
410
|
+
g(
|
|
411
|
+
"source",
|
|
412
|
+
`dataType: ${release === "26.1" ? { varchar2: "STRING", number: "NUMBER", date: "DATE", timestamp: "TIMESTAMP" }[column2.dataType] : column2.dataType}`
|
|
413
|
+
),
|
|
414
|
+
g("advanced", `endUserAlias: ${reportAlias(i)}`)
|
|
415
|
+
);
|
|
416
|
+
if (i === 0) body.push(g("accessibility", "valueIdentifiesRow: true"));
|
|
417
|
+
if (column2.formatMask) body.push(g("appearance", `formatMask: ${q(column2.formatMask)}`));
|
|
418
|
+
if (column2.link)
|
|
419
|
+
body.push(
|
|
420
|
+
g("link", `linkText: ${q(column2.linkText ?? "#" + column2.name + "#")}
|
|
421
|
+
${target(column2.link)}`)
|
|
422
|
+
);
|
|
423
|
+
parts.push(n("column", column2.name, body));
|
|
424
|
+
});
|
|
425
|
+
if (region2.type === "interactiveReport")
|
|
426
|
+
parts.push(
|
|
427
|
+
n("savedReport", "1001", [
|
|
428
|
+
"visibility: primaryDefault",
|
|
429
|
+
g("view", "rowsPerPage: 25"),
|
|
430
|
+
...region2.columns.map((c, i) => n("displayColumn", c.name, [`sequence: ${i + 1}`]))
|
|
431
|
+
])
|
|
432
|
+
);
|
|
433
|
+
}
|
|
434
|
+
return indent(n("region", region2.id ?? `r${index + 1}`, parts));
|
|
435
|
+
}
|
|
436
|
+
function renderProcess(value, mapping, shared = false) {
|
|
437
|
+
return n(shared ? "appProcess" : "process", value.id, [
|
|
438
|
+
`name: ${q(value.id)}`,
|
|
439
|
+
"type: executeCode",
|
|
440
|
+
shared ? "" : g("advanced", `executionMappingIdentifier: ${mapping}`),
|
|
441
|
+
g("source", `plsqlCode:${fence("plsql", value.plsql)}`),
|
|
442
|
+
g(
|
|
443
|
+
"execution",
|
|
444
|
+
`sequence: ${value.sequence ?? 10}
|
|
445
|
+
point: ${value.point ?? (shared ? "beforeHeader" : "afterSubmit")}`
|
|
446
|
+
),
|
|
447
|
+
...guards2(value, shared ? void 0 : value.button),
|
|
448
|
+
value.successMessage && !shared ? g("successMessage", `successMessage: ${q(value.successMessage)}`) : ""
|
|
449
|
+
]);
|
|
450
|
+
}
|
|
451
|
+
function renderPageBody(page, release) {
|
|
452
|
+
const parts = page.regions.map((region2, index) => renderRegion(region2, index, release));
|
|
453
|
+
page.items?.forEach((item2, i) => {
|
|
454
|
+
const hidden = item2.type === "hidden";
|
|
455
|
+
const fields = [
|
|
456
|
+
`type: ${item2.type}`,
|
|
457
|
+
hidden ? "" : g("label", `label: ${q(item2.label ?? item2.name)}`),
|
|
458
|
+
g("layout", `sequence: ${(i + 1) * 10}
|
|
459
|
+
region: ${ref(item2.region)}
|
|
460
|
+
slot: regionBody`),
|
|
461
|
+
hidden ? "" : g(
|
|
462
|
+
"appearance",
|
|
463
|
+
`template: @/${item2.required ? "required-floating" : "optional-floating"}
|
|
464
|
+
templateOptions: #DEFAULT#${item2.formatMask ? "\nformatMask: " + q(item2.formatMask) : ""}`
|
|
465
|
+
),
|
|
466
|
+
hidden || item2.type === "displayOnly" ? "" : g("validation", `valueRequired: ${item2.required ?? false}`),
|
|
467
|
+
...guards2(item2, void 0, hidden ? "sessionStateProtection: checksumRequiredSessionLevel" : "")
|
|
468
|
+
];
|
|
469
|
+
if (item2.defaultValue !== void 0)
|
|
470
|
+
fields.push(g("default", `type: static
|
|
471
|
+
staticValue: ${q(item2.defaultValue)}`));
|
|
472
|
+
if (item2.lov)
|
|
473
|
+
fields.push(
|
|
474
|
+
g(
|
|
475
|
+
"lov",
|
|
476
|
+
Array.isArray(item2.lov) ? `type: staticValues
|
|
477
|
+
staticValues: ${q("STATIC:" + item2.lov.map((option) => `${option.label};${option.value}`).join(","))}
|
|
478
|
+
displayNullValue: true
|
|
479
|
+
nullDisplayValue: - Select -` : `type: sqlQuery
|
|
480
|
+
sqlQuery:${fence("sql", item2.lov.sql)}
|
|
481
|
+
displayNullValue: true
|
|
482
|
+
nullDisplayValue: - Select -`
|
|
483
|
+
)
|
|
484
|
+
);
|
|
485
|
+
if (item2.sourceColumn)
|
|
486
|
+
fields.push(
|
|
487
|
+
g(
|
|
488
|
+
"source",
|
|
489
|
+
`formRegion: ${ref(item2.region)}
|
|
490
|
+
column: ${item2.sourceColumn}
|
|
491
|
+
dataType: ${item2.dataType ?? "varchar2"}
|
|
492
|
+
queryOnly: true${item2.primaryKey ? "\nprimaryKey: true" : ""}`
|
|
493
|
+
)
|
|
494
|
+
);
|
|
495
|
+
parts.push(indent(n("pageItem", item2.name, fields)));
|
|
496
|
+
});
|
|
497
|
+
page.buttons?.forEach(
|
|
498
|
+
(button, i) => parts.push(
|
|
499
|
+
indent(
|
|
500
|
+
n("button", button.id, [
|
|
501
|
+
`buttonName: ${button.id.replaceAll("-", "_").toUpperCase()}`,
|
|
502
|
+
`label: ${q(button.label)}`,
|
|
503
|
+
g(
|
|
504
|
+
"layout",
|
|
505
|
+
`sequence: ${(i + 1) * 10}
|
|
506
|
+
region: ${ref(button.region)}
|
|
507
|
+
slot: ${release === "26.1" ? "next" : "NEXT"}`
|
|
508
|
+
),
|
|
509
|
+
g("appearance", "buttonTemplate: @/text\ntemplateOptions: #DEFAULT#"),
|
|
510
|
+
g(
|
|
511
|
+
"behavior",
|
|
512
|
+
(button.target ? "action: redirectThisApp\n" + target(button.target) : "action: submitPage") + (button.confirmation ? "\nrequiresConfirmation: true" : "")
|
|
513
|
+
),
|
|
514
|
+
button.confirmation ? g(
|
|
515
|
+
"confirmation",
|
|
516
|
+
`message: ${q(button.confirmation.message)}${button.confirmation.style ? "\nstyle: " + button.confirmation.style : ""}`
|
|
517
|
+
) : "",
|
|
518
|
+
...guards2(button)
|
|
519
|
+
])
|
|
520
|
+
)
|
|
521
|
+
)
|
|
522
|
+
);
|
|
523
|
+
const mapping = (i) => 76e13 + page.id * 1e3 + i + 1;
|
|
524
|
+
page.processes?.forEach(
|
|
525
|
+
(process, i) => parts.push(indent(renderProcess({ ...process, sequence: process.sequence ?? (i + 1) * 10 }, mapping(i))))
|
|
526
|
+
);
|
|
527
|
+
page.regions.filter((region2) => region2.type === "form").forEach(
|
|
528
|
+
(region2, i) => parts.push(
|
|
529
|
+
indent(
|
|
530
|
+
n("process", `initialize-${region2.id ?? "r" + (page.regions.indexOf(region2) + 1)}`, [
|
|
531
|
+
"name: Initialize form",
|
|
532
|
+
"type: formInitialization",
|
|
533
|
+
`formRegion: ${ref(region2.id ?? "r" + (page.regions.indexOf(region2) + 1))}`,
|
|
534
|
+
g("advanced", `executionMappingIdentifier: ${mapping(100 + i)}`),
|
|
535
|
+
g("execution", `sequence: 10
|
|
536
|
+
point: beforeHeader`)
|
|
537
|
+
])
|
|
538
|
+
)
|
|
539
|
+
)
|
|
540
|
+
);
|
|
541
|
+
page.validations?.forEach(
|
|
542
|
+
(validation, i) => parts.push(
|
|
543
|
+
indent(
|
|
544
|
+
n("validation", validation.id, [
|
|
545
|
+
`name: ${q(validation.id)}`,
|
|
546
|
+
g("execution", `sequence: ${(i + 1) * 10}`),
|
|
547
|
+
g(
|
|
548
|
+
"validation",
|
|
549
|
+
`type: functionBodyReturningBoolean
|
|
550
|
+
plsqlFunctionBody:${fence("plsql", validation.plsql)}`
|
|
551
|
+
),
|
|
552
|
+
g(
|
|
553
|
+
"error",
|
|
554
|
+
`errorMessage: ${q(validation.errorMessage)}${validation.item ? "\nassociatedItem: " + ref(validation.item) : ""}`
|
|
555
|
+
),
|
|
556
|
+
...guards2(validation, validation.button)
|
|
557
|
+
])
|
|
558
|
+
)
|
|
559
|
+
)
|
|
560
|
+
);
|
|
561
|
+
page.branches?.forEach(
|
|
562
|
+
(branch, i) => parts.push(
|
|
563
|
+
indent(
|
|
564
|
+
n("branch", branch.id, [
|
|
565
|
+
`name: ${q(branch.id)}`,
|
|
566
|
+
g("behavior", "type: pageOrUrl\n" + target(branch.target)),
|
|
567
|
+
g("execution", `point: afterProcessing
|
|
568
|
+
sequence: ${(i + 1) * 10}`),
|
|
569
|
+
...guards2(branch, branch.button)
|
|
570
|
+
])
|
|
571
|
+
)
|
|
572
|
+
)
|
|
573
|
+
);
|
|
574
|
+
page.refreshes?.forEach(
|
|
575
|
+
(refresh, i) => parts.push(
|
|
576
|
+
indent(
|
|
577
|
+
n("dynamicAction", `refresh-${i + 1}`, [
|
|
578
|
+
`name: Refresh dependent regions ${i + 1}`,
|
|
579
|
+
g("execution", `sequence: ${(i + 1) * 10}`),
|
|
580
|
+
g("when", `event: change
|
|
581
|
+
selectionType: items
|
|
582
|
+
items: ${refresh.items.join(",")}`),
|
|
583
|
+
...refresh.regions.map(
|
|
584
|
+
(region2, ordinal) => n("action", `refresh-${ordinal + 1}`, [
|
|
585
|
+
"action: refresh",
|
|
586
|
+
g("affectedElements", `selectionType: region
|
|
587
|
+
region: ${ref(region2)}`),
|
|
588
|
+
g("execution", `sequence: ${(ordinal + 1) * 10}
|
|
589
|
+
fireOnInit: false`)
|
|
590
|
+
])
|
|
591
|
+
)
|
|
592
|
+
])
|
|
593
|
+
)
|
|
594
|
+
)
|
|
595
|
+
);
|
|
596
|
+
return parts.join("\n");
|
|
597
|
+
}
|
|
598
|
+
function validateSpec(spec) {
|
|
599
|
+
const unique = (values, label) => {
|
|
600
|
+
if (new Set(values).size !== values.length) invalid(`${label} must be unique.`);
|
|
601
|
+
};
|
|
602
|
+
unique(
|
|
603
|
+
spec.pages.map((page) => String(page.id)),
|
|
604
|
+
"Page IDs"
|
|
605
|
+
);
|
|
606
|
+
const checkTarget = (target2) => {
|
|
607
|
+
if (target2 && Object.keys(target2.items ?? {}).some((name) => !name.startsWith(`P${target2.page}_`)))
|
|
608
|
+
invalid("Target item names must belong to the target page.");
|
|
609
|
+
};
|
|
610
|
+
unique(
|
|
611
|
+
(spec.applicationProcesses ?? []).map((process) => process.id),
|
|
612
|
+
"Application process IDs"
|
|
613
|
+
);
|
|
614
|
+
for (const page of spec.pages) {
|
|
615
|
+
const regions2 = page.regions.map((region2, i) => region2.id ?? `r${i + 1}`), items = page.items?.map((item2) => item2.name) ?? [], buttons = page.buttons?.map((button) => button.id) ?? [];
|
|
616
|
+
unique(regions2, "Region IDs");
|
|
617
|
+
unique(items, "Item names");
|
|
618
|
+
unique(buttons, "Button IDs");
|
|
619
|
+
unique(
|
|
620
|
+
buttons.map((id2) => id2.replaceAll("-", "_").toUpperCase()),
|
|
621
|
+
"Button request names"
|
|
622
|
+
);
|
|
623
|
+
for (const list of [page.processes, page.validations, page.branches])
|
|
624
|
+
unique(
|
|
625
|
+
(list ?? []).map((value) => value.id),
|
|
626
|
+
"Component IDs"
|
|
627
|
+
);
|
|
628
|
+
const requireRegion = (id2) => {
|
|
629
|
+
if (!regions2.includes(id2)) invalid(`Unknown page ${page.id} region ${id2}.`);
|
|
630
|
+
};
|
|
631
|
+
const requireItem = (name) => {
|
|
632
|
+
if (!items.includes(name)) invalid(`Unknown page ${page.id} item ${name}.`);
|
|
633
|
+
};
|
|
634
|
+
page.items?.forEach((item2) => {
|
|
635
|
+
if (!item2.name.startsWith(`P${page.id}_`)) invalid(`Item ${item2.name} must belong to page ${page.id}.`);
|
|
636
|
+
requireRegion(item2.region);
|
|
637
|
+
if (item2.type === "selectList" && !item2.lov) invalid("Select list items require a LOV.");
|
|
638
|
+
if (item2.lov && item2.type !== "selectList") invalid("Only select lists accept a LOV.");
|
|
639
|
+
if (Array.isArray(item2.lov) && item2.lov.some((option) => /[,;]/.test(option.label + option.value)))
|
|
640
|
+
invalid("Static LOV labels/values cannot contain comma or semicolon; use a SQL LOV.");
|
|
641
|
+
if (item2.sourceColumn && page.regions[regions2.indexOf(item2.region)]?.type !== "form")
|
|
642
|
+
invalid("sourceColumn requires a native form region.");
|
|
643
|
+
if (!item2.sourceColumn && (item2.primaryKey !== void 0 || item2.dataType !== void 0))
|
|
644
|
+
invalid("Form dataType/primaryKey require sourceColumn.");
|
|
645
|
+
if (item2.required && ["hidden", "displayOnly"].includes(item2.type))
|
|
646
|
+
invalid("Hidden/display-only items cannot require editable input.");
|
|
647
|
+
if (item2.type === "hidden" && item2.formatMask)
|
|
648
|
+
invalid("Hidden items cannot have a display format mask.");
|
|
649
|
+
});
|
|
650
|
+
page.buttons?.forEach((button) => {
|
|
651
|
+
requireRegion(button.region);
|
|
652
|
+
if (button.action === "redirectToPage" && !button.target) invalid("Redirect buttons require target.");
|
|
653
|
+
if (button.action === "submitPage" && button.target) invalid("Submit buttons cannot have a target.");
|
|
654
|
+
checkTarget(button.target);
|
|
655
|
+
});
|
|
656
|
+
for (const value of [...page.processes ?? [], ...page.validations ?? [], ...page.branches ?? []])
|
|
657
|
+
if (value.button && !buttons.includes(value.button))
|
|
658
|
+
invalid(`Unknown page ${page.id} button ${value.button}.`);
|
|
659
|
+
page.validations?.forEach((validation) => {
|
|
660
|
+
if (validation.item) requireItem(validation.item);
|
|
661
|
+
});
|
|
662
|
+
page.branches?.forEach((branch) => checkTarget(branch.target));
|
|
663
|
+
page.refreshes?.forEach((refresh) => {
|
|
664
|
+
refresh.items.forEach(requireItem);
|
|
665
|
+
refresh.regions.forEach(requireRegion);
|
|
666
|
+
for (const id2 of refresh.regions) {
|
|
667
|
+
const region2 = page.regions[regions2.indexOf(id2)];
|
|
668
|
+
const sources = region2.type === "chart" ? region2.series : "sql" in region2 ? [region2] : [];
|
|
669
|
+
if (!sources.length || sources.some((source) => refresh.items.some((item2) => !source.itemsToSubmit?.includes(item2))))
|
|
670
|
+
invalid(`Refresh region ${id2} must submit every triggering item on every query/series.`);
|
|
671
|
+
}
|
|
672
|
+
});
|
|
673
|
+
for (const region2 of page.regions) {
|
|
674
|
+
if ("link" in region2) checkTarget(region2.link);
|
|
675
|
+
if ("columns" in region2)
|
|
676
|
+
region2.columns.forEach((column2) => {
|
|
677
|
+
checkTarget(column2.link);
|
|
678
|
+
if (column2.linkText !== void 0 && !column2.link) invalid("Column linkText requires a link.");
|
|
679
|
+
});
|
|
680
|
+
if (region2.type === "classicReport" && region2.link)
|
|
681
|
+
invalid("Classic report links belong to individual columns.");
|
|
682
|
+
if (region2.type === "chart") region2.series.forEach((series) => checkTarget(series.link));
|
|
683
|
+
if ("columns" in region2)
|
|
684
|
+
unique(
|
|
685
|
+
region2.columns.map((column2) => column2.name),
|
|
686
|
+
"Report columns"
|
|
687
|
+
);
|
|
688
|
+
if (region2.type === "chart")
|
|
689
|
+
unique(
|
|
690
|
+
region2.series.map((series, i) => series.id ?? `s${i + 1}`),
|
|
691
|
+
"Series IDs"
|
|
692
|
+
);
|
|
693
|
+
for (const source of region2.type === "chart" ? region2.series : "sql" in region2 ? [region2] : [])
|
|
694
|
+
source.itemsToSubmit?.forEach(requireItem);
|
|
695
|
+
if (region2.type === "cards" && region2.link && !region2.keyColumn)
|
|
696
|
+
invalid("Linked cards require a keyColumn.");
|
|
697
|
+
if (region2.type === "calendar" && region2.link && !region2.keyColumn)
|
|
698
|
+
invalid("Linked calendars require a keyColumn.");
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
function pageGuards(page) {
|
|
703
|
+
return guards2(page, void 0, "pageAccessProtection: argumentsMustHaveChecksum").map(indent).join("\n");
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
// packages/core/src/scaffold.ts
|
|
707
|
+
var stateSchema = external_exports.strictObject({
|
|
708
|
+
version: external_exports.literal(1),
|
|
709
|
+
files: external_exports.record(external_exports.string(), external_exports.string()),
|
|
710
|
+
shells: external_exports.record(external_exports.string(), external_exports.string()),
|
|
711
|
+
navigation: external_exports.record(external_exports.string(), external_exports.string()).optional()
|
|
712
|
+
});
|
|
713
|
+
var q2 = (value) => JSON.stringify(value);
|
|
714
|
+
var slug = (value) => value.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "") || "page";
|
|
715
|
+
var group = (name, body, level = 2) => `${" ".repeat(level)}${name} {
|
|
716
|
+
${body}
|
|
717
|
+
${" ".repeat(level)}}`;
|
|
718
|
+
var property = (name, value, level = 3) => `${" ".repeat(level)}${name}: ${value}`;
|
|
719
|
+
var block = (head, body, level = 1) => `${" ".repeat(level)}${head} (
|
|
720
|
+
${body}
|
|
721
|
+
${" ".repeat(level)})`;
|
|
722
|
+
async function scaffold(ctx, specFile, name) {
|
|
723
|
+
const file = await contained(ctx.root, specFile);
|
|
724
|
+
const raw = await readFile2(file, "utf8");
|
|
725
|
+
if (Buffer.byteLength(raw) > 256 * 1024)
|
|
726
|
+
throw new Fault("INVALID_INPUT", "Scaffold specification exceeds 256 KiB.", 2);
|
|
727
|
+
let input;
|
|
728
|
+
try {
|
|
729
|
+
input = JSON.parse(raw);
|
|
730
|
+
} catch {
|
|
731
|
+
throw new Fault("INVALID_INPUT", "specFile must contain valid JSON.", 2);
|
|
732
|
+
}
|
|
733
|
+
const spec = parse(scaffoldSchema, input);
|
|
734
|
+
const specDigest = hash(raw);
|
|
735
|
+
const target2 = name ? environment(ctx, name) : void 0;
|
|
736
|
+
validateSpec(spec);
|
|
737
|
+
const root = await contained(ctx.root, ctx.config.application.sourceDir);
|
|
738
|
+
const release = await sourceRelease(root);
|
|
739
|
+
if (release !== "26.1" && release !== "26.2")
|
|
740
|
+
throw new Fault(
|
|
741
|
+
"SCAFFOLD_RELEASE_UNSUPPORTED",
|
|
742
|
+
"Scaffolding requires an Oracle-generated 26.1 or 26.2 application.",
|
|
743
|
+
3
|
|
744
|
+
);
|
|
745
|
+
return withLock(await contained(ctx.root, ".apexrest/scaffold.lock"), async () => {
|
|
746
|
+
const stateFile = await contained(ctx.root, ".apexrest/scaffold.json");
|
|
747
|
+
const state = await exists(stateFile) ? parse(stateSchema, await readJson(stateFile)) : {
|
|
748
|
+
version: 1,
|
|
749
|
+
files: {},
|
|
750
|
+
shells: {},
|
|
751
|
+
navigation: {}
|
|
752
|
+
};
|
|
753
|
+
const ownedNavigation = state.navigation ??= {};
|
|
754
|
+
const before = await inventory(root), writes = {};
|
|
755
|
+
const conflict = (name2) => new Fault(
|
|
756
|
+
"LOCAL_EDITS_CONFLICT",
|
|
757
|
+
`Scaffold cannot replace unowned or edited source: ${name2}. Preserve the file and edit it manually.`,
|
|
758
|
+
5,
|
|
759
|
+
"conflict"
|
|
760
|
+
);
|
|
761
|
+
const navFile = release === "26.1" ? "shared-components/lists.apx" : "shared-components/lists/navigation-menu.apx";
|
|
762
|
+
const navigation = await readFile2(await contained(root, navFile), "utf8");
|
|
763
|
+
const nav = parseApexLang(navigation, navFile);
|
|
764
|
+
const menus = nav.filter((node) => node.type === "list" && node.id === "navigation-menu");
|
|
765
|
+
if (menus.length !== 1) throw conflict(navFile);
|
|
766
|
+
const menu = menus[0];
|
|
767
|
+
let navText = navigation;
|
|
768
|
+
const aliases = /* @__PURE__ */ new Map();
|
|
769
|
+
for (const file2 of Object.keys(before).filter(
|
|
770
|
+
(name2) => name2.startsWith("pages/") && name2.endsWith(".apx")
|
|
771
|
+
)) {
|
|
772
|
+
for (const node of parseApexLang(await readFile2(await contained(root, file2), "utf8"), file2)) {
|
|
773
|
+
if (node.type === "page" && typeof node.props.alias === "string")
|
|
774
|
+
aliases.set(node.props.alias.toUpperCase(), Number(node.id));
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
for (const page of spec.pages) {
|
|
778
|
+
const files = Object.keys(before).filter(
|
|
779
|
+
(f) => f.startsWith("pages/") && /^p\d+-/.test(path2.basename(f)) && Number(/^p(\d+)-/.exec(path2.basename(f))?.[1]) === page.id
|
|
780
|
+
);
|
|
781
|
+
if (files.length > 1) throw conflict(`page ${page.id}`);
|
|
782
|
+
let alias = page.alias?.toLowerCase() ?? slug(page.name);
|
|
783
|
+
if (!page.alias) {
|
|
784
|
+
const base = alias;
|
|
785
|
+
for (let attempt = 0; alias === "page" || aliases.has(alias.toUpperCase()) && aliases.get(alias.toUpperCase()) !== page.id; attempt++) {
|
|
786
|
+
alias = `${base}-${page.id}${attempt ? "-" + attempt : ""}`;
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
if (page.alias && aliases.has(page.alias.toUpperCase()) && aliases.get(page.alias.toUpperCase()) !== page.id)
|
|
790
|
+
throw conflict(`page alias ${page.alias}`);
|
|
791
|
+
const name2 = files[0] ?? `pages/p${String(page.id).padStart(5, "0")}-${alias}.apx`;
|
|
792
|
+
aliases.set(
|
|
793
|
+
(page.alias ?? path2.basename(name2).replace(/^p\d+-/, "").replace(/\.apx$/, "")).toUpperCase(),
|
|
794
|
+
page.id
|
|
795
|
+
);
|
|
796
|
+
if (files[0] && page.alias && !state.shells[name2] && page.alias.toLowerCase() !== path2.basename(name2).replace(/^p\d+-/, "").replace(/\.apx$/, ""))
|
|
797
|
+
throw conflict("Changing a page alias requires an explicit source rename.");
|
|
798
|
+
const body = renderPageBody(page, release);
|
|
799
|
+
if ((state.shells[name2] || page.id === 1 && files[0] && !state.files[name2]) && (page.condition || page.authorizationScheme || page.buildOption))
|
|
800
|
+
throw conflict(
|
|
801
|
+
"Preserve the existing Home page security; place guards on its regions and processes."
|
|
802
|
+
);
|
|
803
|
+
if (files[0] && !state.files[name2]) {
|
|
804
|
+
const old = await readFile2(await contained(root, name2), "utf8");
|
|
805
|
+
const [home, ...extra] = parseApexLang(old, name2);
|
|
806
|
+
if (page.id !== 1 || extra.length || home?.type !== "page" || home.id !== "1" || home.children.length !== 1 || home.children[0].id !== "app-name" || home.children[0].props.type !== "staticContent")
|
|
807
|
+
throw conflict(name2);
|
|
808
|
+
if (page.alias && page.alias !== home.props.alias) throw conflict("existing Home page alias");
|
|
809
|
+
state.shells[name2] = old.replace(/^ name: .+$/m, () => " name: " + q2(page.name)).replace(/^ title: .+$/m, () => " title: " + q2(page.name));
|
|
810
|
+
const shell = state.shells[name2];
|
|
811
|
+
const close = shell.lastIndexOf(")");
|
|
812
|
+
writes[name2] = shell.slice(0, close) + body + "\n" + shell.slice(close);
|
|
813
|
+
} else {
|
|
814
|
+
if (files[0] && state.files[name2] !== before[name2]) throw conflict(name2);
|
|
815
|
+
let shell = state.shells[name2];
|
|
816
|
+
if (shell) {
|
|
817
|
+
if (page.alias && page.alias !== parseApexLang(shell, name2)[0]?.props.alias)
|
|
818
|
+
throw conflict("existing Home page alias");
|
|
819
|
+
shell = shell.replace(/^ name: .+$/m, () => " name: " + q2(page.name)).replace(/^ title: .+$/m, () => " title: " + q2(page.name));
|
|
820
|
+
state.shells[name2] = shell;
|
|
821
|
+
}
|
|
822
|
+
writes[name2] = shell ? shell.slice(0, shell.lastIndexOf(")")) + body + "\n" + shell.slice(shell.lastIndexOf(")")) : block(
|
|
823
|
+
`page ${page.id}`,
|
|
824
|
+
[
|
|
825
|
+
property("name", q2(page.name), 1),
|
|
826
|
+
property(
|
|
827
|
+
"alias",
|
|
828
|
+
q2(
|
|
829
|
+
page.alias ?? path2.basename(name2).replace(/^p\d+-/, "").replace(/\.apx$/, "").toUpperCase()
|
|
830
|
+
),
|
|
831
|
+
1
|
|
832
|
+
),
|
|
833
|
+
property("title", q2(page.name), 1),
|
|
834
|
+
group(
|
|
835
|
+
"appearance",
|
|
836
|
+
property("pageTemplate", "@/standard", 2) + "\n" + property("templateOptions", "#DEFAULT#", 2),
|
|
837
|
+
1
|
|
838
|
+
),
|
|
839
|
+
pageGuards(page),
|
|
840
|
+
body
|
|
841
|
+
].join("\n"),
|
|
842
|
+
0
|
|
843
|
+
) + "\n";
|
|
844
|
+
}
|
|
845
|
+
const entry = menu.children.find(
|
|
846
|
+
(e) => e.type === "entry" && String(get(e.props, "link.target.page")) === String(page.id)
|
|
847
|
+
);
|
|
848
|
+
if (page.navigation === false) {
|
|
849
|
+
if (!entry) continue;
|
|
850
|
+
if (entry.id !== `scaffold-p${page.id}` || !ownedNavigation[entry.id])
|
|
851
|
+
throw conflict(`${navFile} unowned entry ${entry.id}`);
|
|
852
|
+
const nodes = declarations(navText), owner = nodes.find((node2) => node2.kind === "list" && node2.key === "navigation-menu");
|
|
853
|
+
const node = nodes.find(
|
|
854
|
+
(node2) => node2.kind === "entry" && node2.key === entry.id && owner && node2.start > owner.start && node2.end < owner.end
|
|
855
|
+
);
|
|
856
|
+
if (!node || ownedNavigation[entry.id] !== node.digest)
|
|
857
|
+
throw conflict(`${navFile} entry ${entry.id}`);
|
|
858
|
+
navText = editSpans(navText, [{ ...node, expectedDigest: node.digest, content: "" }]);
|
|
859
|
+
delete ownedNavigation[entry.id];
|
|
860
|
+
continue;
|
|
861
|
+
}
|
|
862
|
+
if (entry && (entry.id === `scaffold-p${page.id}` || page.id === 1 && state.shells[name2])) {
|
|
863
|
+
const owners = declarations(navText), owner = owners.find((node2) => node2.kind === "list" && node2.key === "navigation-menu");
|
|
864
|
+
const node = owners.find(
|
|
865
|
+
(node2) => node2.kind === "entry" && node2.key === entry.id && owner && node2.start > owner.start && node2.end < owner.end
|
|
866
|
+
);
|
|
867
|
+
if (!node) throw conflict(navFile);
|
|
868
|
+
const old = navText.slice(node.start, node.end);
|
|
869
|
+
if (ownedNavigation[entry.id] && ownedNavigation[entry.id] !== hash(old))
|
|
870
|
+
throw conflict(`${navFile} entry ${entry.id}`);
|
|
871
|
+
if (!ownedNavigation[entry.id] && state.files[navFile] && state.files[navFile] !== before[navFile] && entry.props.label !== page.name)
|
|
872
|
+
throw conflict(`${navFile} entry ${entry.id}`);
|
|
873
|
+
if (!/^ label: .+$/m.test(old)) throw conflict(navFile);
|
|
874
|
+
const content = old.replace(/^ label: .+$/m, () => " label: " + q2(page.name));
|
|
875
|
+
navText = editSpans(navText, [
|
|
876
|
+
{
|
|
877
|
+
...node,
|
|
878
|
+
expectedDigest: node.digest,
|
|
879
|
+
content
|
|
880
|
+
}
|
|
881
|
+
]);
|
|
882
|
+
ownedNavigation[entry.id] = hash(content);
|
|
883
|
+
}
|
|
884
|
+
if (!entry) {
|
|
885
|
+
const id2 = `scaffold-p${page.id}`;
|
|
886
|
+
if (menu.children.some((e) => e.id === id2)) throw conflict(navFile);
|
|
887
|
+
const addition = block(
|
|
888
|
+
`entry ${id2}`,
|
|
889
|
+
[
|
|
890
|
+
property("label", q2(page.name), 2),
|
|
891
|
+
group("layout", property("sequence", String(page.id + 10), 3)),
|
|
892
|
+
group("link", group("target:", property("page", String(page.id), 4), 3))
|
|
893
|
+
].join("\n")
|
|
894
|
+
);
|
|
895
|
+
const owner = declarations(navText).find(
|
|
896
|
+
(node) => node.kind === "list" && node.key === "navigation-menu"
|
|
897
|
+
);
|
|
898
|
+
if (!owner) throw conflict(navFile);
|
|
899
|
+
const at = navText.lastIndexOf(")", owner.end - 1);
|
|
900
|
+
navText = navText.slice(0, at) + addition + "\n" + navText.slice(at);
|
|
901
|
+
const nodes = declarations(navText), scope = nodes.find((node) => node.kind === "list" && node.key === "navigation-menu");
|
|
902
|
+
const added = nodes.find(
|
|
903
|
+
(node) => node.kind === "entry" && node.key === id2 && scope && node.start > scope.start && node.end < scope.end
|
|
904
|
+
);
|
|
905
|
+
if (!added) throw conflict(navFile);
|
|
906
|
+
ownedNavigation[id2] = hash(navText.slice(added.start, added.end));
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
if (navText !== navigation) writes[navFile] = navText;
|
|
910
|
+
if (spec.applicationProcesses !== void 0) {
|
|
911
|
+
const file2 = "shared-components/app-processes.apx";
|
|
912
|
+
if (state.files[file2] && state.files[file2] !== before[file2]) throw conflict(file2);
|
|
913
|
+
const old = before[file2] ? await readFile2(await contained(root, file2), "utf8") : "";
|
|
914
|
+
const shell = state.shells[file2] ?? old;
|
|
915
|
+
for (const source of Object.keys(before).filter((name2) => name2.endsWith(".apx"))) {
|
|
916
|
+
const text2 = source === file2 ? shell : await readFile2(await contained(root, source), "utf8");
|
|
917
|
+
if (!/\bappProcess\s/.test(text2)) continue;
|
|
918
|
+
const nodes = parseApexLang(text2, source);
|
|
919
|
+
const found = (list) => list.some(
|
|
920
|
+
(node) => node.type === "appProcess" && spec.applicationProcesses.some((process) => process.id === node.id) || found(node.children)
|
|
921
|
+
);
|
|
922
|
+
if (found(nodes)) throw conflict(source);
|
|
923
|
+
}
|
|
924
|
+
state.shells[file2] = shell;
|
|
925
|
+
writes[file2] = shell + (spec.applicationProcesses.length ? "\n" : "") + spec.applicationProcesses.map((value, i) => renderProcess({ ...value, sequence: value.sequence ?? (i + 1) * 10 }, i, true)).join("\n");
|
|
926
|
+
}
|
|
927
|
+
if (spec.applicationName) {
|
|
928
|
+
const name2 = "application.apx";
|
|
929
|
+
const original = await readFile2(await contained(root, name2), "utf8");
|
|
930
|
+
if (!/^ name: .+$/m.test(original)) throw conflict(name2);
|
|
931
|
+
writes[name2] = original.replace(/^ name: .+$/m, () => " name: " + q2(spec.applicationName));
|
|
932
|
+
}
|
|
933
|
+
const executionIds = /* @__PURE__ */ new Map();
|
|
934
|
+
for (const source of /* @__PURE__ */ new Set([...Object.keys(before), ...Object.keys(writes)])) {
|
|
935
|
+
if (!source.endsWith(".apx")) continue;
|
|
936
|
+
const text2 = writes[source] ?? await readFile2(await contained(root, source), "utf8");
|
|
937
|
+
if (!text2.includes("executionMappingIdentifier")) continue;
|
|
938
|
+
const nodes = parseApexLang(text2, source);
|
|
939
|
+
const check = (list) => {
|
|
940
|
+
for (const node of list) {
|
|
941
|
+
const mapping = get(node.props, "advanced.executionMappingIdentifier");
|
|
942
|
+
if (mapping !== void 0) {
|
|
943
|
+
const key = String(mapping), previous = executionIds.get(key);
|
|
944
|
+
if (previous && (writes[source] || writes[previous])) throw conflict(`execution ID ${key}`);
|
|
945
|
+
executionIds.set(key, source);
|
|
946
|
+
}
|
|
947
|
+
check(node.children);
|
|
948
|
+
}
|
|
949
|
+
};
|
|
950
|
+
check(nodes);
|
|
951
|
+
}
|
|
952
|
+
for (const [name2, value] of Object.entries(writes)) {
|
|
953
|
+
const nodes = parseApexLang(value, name2);
|
|
954
|
+
const unique = (list) => {
|
|
955
|
+
const keys = list.map((node) => `${node.type}:${node.id}`);
|
|
956
|
+
if (new Set(keys).size !== keys.length) throw conflict(`duplicate components in ${name2}`);
|
|
957
|
+
list.forEach((node) => unique(node.children));
|
|
958
|
+
};
|
|
959
|
+
unique(nodes);
|
|
960
|
+
}
|
|
961
|
+
const stage = await contained(ctx.root, `.apexrest/scaffolds/${randomUUID()}`);
|
|
962
|
+
await atomicWrite(path2.join(stage, "spec.json"), raw);
|
|
963
|
+
const observationsFile = path2.join(stage, "observations.sql");
|
|
964
|
+
if (target2 && release === "26.2")
|
|
965
|
+
await atomicWrite(
|
|
966
|
+
observationsFile,
|
|
967
|
+
await scaffoldObservationsSql(
|
|
968
|
+
target2,
|
|
969
|
+
spec.pages.map((p) => p.id)
|
|
970
|
+
)
|
|
971
|
+
);
|
|
972
|
+
for (const [name2, value] of Object.entries(writes)) {
|
|
973
|
+
if (before[name2])
|
|
974
|
+
await atomicWrite(path2.join(stage, "before", name2), await readFile2(await contained(root, name2)));
|
|
975
|
+
await atomicWrite(path2.join(stage, "after", name2), value);
|
|
976
|
+
}
|
|
977
|
+
if (canonical(await inventory(root)) !== canonical(before))
|
|
978
|
+
throw new Fault("SOURCE_DRIFT", "Source changed during scaffolding; staged outputs retained.", 5);
|
|
979
|
+
if (hash(await readFile2(file, "utf8")) !== specDigest)
|
|
980
|
+
throw new Fault(
|
|
981
|
+
"SOURCE_DRIFT",
|
|
982
|
+
"The scaffold specification changed before writing; the staged exact input is retained.",
|
|
983
|
+
5
|
|
984
|
+
);
|
|
985
|
+
for (const [name2, value] of Object.entries(writes)) {
|
|
986
|
+
const target3 = await contained(root, name2);
|
|
987
|
+
const current = await exists(target3) ? hash(await readFile2(target3)) : void 0;
|
|
988
|
+
if (current !== before[name2])
|
|
989
|
+
throw new Fault("SOURCE_DRIFT", `Source changed before writing ${name2}; staged copies retained.`, 5);
|
|
990
|
+
await atomicWrite(target3, value);
|
|
991
|
+
state.files[name2] = hash(value);
|
|
992
|
+
}
|
|
993
|
+
await writeJson(stateFile, state);
|
|
994
|
+
return {
|
|
995
|
+
files: Object.keys(writes),
|
|
996
|
+
pages: spec.pages.map((p) => ({ id: p.id, name: p.name })),
|
|
997
|
+
sourceDigest: hash(canonical(await inventory(root))),
|
|
998
|
+
specDigest,
|
|
999
|
+
compilerValidation: "required-by-ship",
|
|
1000
|
+
nextAction: "apexrest_ship mode:apply",
|
|
1001
|
+
stage: path2.relative(ctx.root, stage),
|
|
1002
|
+
...target2 && release === "26.2" ? {
|
|
1003
|
+
readback: {
|
|
1004
|
+
sqlFile: path2.relative(ctx.root, observationsFile),
|
|
1005
|
+
environment: name,
|
|
1006
|
+
connectionRef: target2.readConnectionRef,
|
|
1007
|
+
purpose: "Only if requested: manually execute read-only metadata/query observations after import. Not executed by scaffold or ship."
|
|
1008
|
+
}
|
|
1009
|
+
} : {},
|
|
1010
|
+
...target2 && release === "26.1" ? {
|
|
1011
|
+
readbackUnavailable: "The optional scaffold SQL observations are qualified for 26.2 only. Use scoped metadata reads for 26.1."
|
|
1012
|
+
} : {}
|
|
1013
|
+
};
|
|
1014
|
+
});
|
|
1015
|
+
}
|
|
1016
|
+
export {
|
|
1017
|
+
renderRegion,
|
|
1018
|
+
scaffold,
|
|
1019
|
+
scaffoldSchema
|
|
1020
|
+
};
|