@genispace/geniapp 0.3.0 → 0.5.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 +36 -11
- package/dist/{CrossAppRecordPicker-CQVmirWD.js → CrossAppRecordPicker-BRpqAjd7.js} +189 -253
- package/dist/CrossAppRecordPicker-BRpqAjd7.js.map +1 -0
- package/dist/MultiPageRenderer-B4G9Oswj.js +535 -0
- package/dist/MultiPageRenderer-B4G9Oswj.js.map +1 -0
- package/dist/Sidebar-DdSOXqnC.js +260 -0
- package/dist/Sidebar-DdSOXqnC.js.map +1 -0
- package/dist/ai/adopt/AiSuggestionPanel.d.ts +1 -1
- package/dist/ai/components/AgentJobProgress.d.ts +1 -1
- package/dist/ai/components/BulkActionBar.d.ts +1 -1
- package/dist/ai/integrations/partner/createPartnerRecordPickerHook.d.ts +1 -1
- package/dist/case-workspace/domain.d.ts +1 -1
- package/dist/components/adapters/host.d.ts +4 -0
- package/dist/components/adapters/host.js +12 -0
- package/dist/components/adapters/host.js.map +1 -0
- package/dist/components/adapters/platform.d.ts +16 -0
- package/dist/components/app/context/DeploymentContext.d.ts +24 -0
- package/dist/components/app/context/PermissionContext.d.ts +32 -0
- package/dist/components/app/context/SubscriptionContext.d.ts +9 -0
- package/dist/components/app/context/UserContext.d.ts +22 -0
- package/dist/components/app/services/apiKey.d.ts +96 -0
- package/dist/components/app/services/auth.d.ts +1 -0
- package/dist/components/app/services/configMap.d.ts +94 -0
- package/dist/components/app/services/task.d.ts +42 -0
- package/dist/components/app/services/workbenchApi.d.ts +495 -0
- package/dist/components/app/types/agent.d.ts +100 -0
- package/dist/components/app/types/api.d.ts +9 -0
- package/dist/components/app/types/knowledge.d.ts +10 -0
- package/dist/components/app/types/model.d.ts +23 -0
- package/dist/components/app/types/task.d.ts +64 -0
- package/dist/components/app/types/taskExecution.d.ts +26 -0
- package/dist/components/assets/maps/bundledMapGeo.d.ts +4 -0
- package/dist/components/config/communicationIcons.d.ts +23 -0
- package/dist/components/config/componentTriggers.d.ts +70 -0
- package/dist/components/constants/tableActionButtonStyle.d.ts +15 -0
- package/dist/components/contexts/PageFullscreenContext.d.ts +4 -0
- package/dist/components/contexts/ParameterContext.d.ts +18 -0
- package/dist/components/contexts/TabActivityContext.d.ts +2 -0
- package/dist/components/contexts/ViewportContext.d.ts +19 -0
- package/dist/components/contexts/WorkbenchConfigLocaleContext.d.ts +23 -0
- package/dist/components/contexts/WorkbenchGlobalSpaceContext.d.ts +10 -0
- package/dist/components/contexts/WorkbenchThemeContext.d.ts +23 -0
- package/dist/components/dialogs/TaskParamsDialog.d.ts +18 -0
- package/dist/components/dialogs/TreeFormDialog.d.ts +23 -0
- package/dist/components/hooks/index.d.ts +6 -0
- package/dist/components/hooks/useComponentCommunication.d.ts +27 -0
- package/dist/components/hooks/useConditionMapper.d.ts +17 -0
- package/dist/components/hooks/useCurrentUser.d.ts +10 -0
- package/dist/components/hooks/useDatabaseDataSource.d.ts +8 -0
- package/dist/components/hooks/useDatasourceVersionBindings.d.ts +24 -0
- package/dist/components/hooks/useEnhancedDataSource.d.ts +40 -0
- package/dist/components/hooks/useMobileViewport.d.ts +18 -0
- package/dist/components/hooks/usePageAutoRefresh.d.ts +9 -0
- package/dist/components/hooks/useParameterHandler.d.ts +27 -0
- package/dist/components/hooks/useReleaseNotesPrompt.d.ts +38 -0
- package/dist/components/hooks/useSpaceSwitchHandler.d.ts +7 -0
- package/dist/components/hooks/useTaskInputDataSourceCache.d.ts +24 -0
- package/dist/components/hooks/useVisibleWhenContext.d.ts +3 -0
- package/dist/components/hooks/useWaitForParameters.d.ts +9 -0
- package/dist/components/hooks/useWorkbenchAppAccess.d.ts +16 -0
- package/dist/components/hooks/useWorkbenchHeaderNavApps.d.ts +7 -0
- package/dist/components/hooks/useWorkbenchPreview.d.ts +24 -0
- package/dist/components/index.d.ts +23 -0
- package/dist/components/inputs/ArrayInput.d.ts +14 -0
- package/dist/components/inputs/ObjectArrayInput.d.ts +15 -0
- package/dist/components/layout/Grid24Renderer.d.ts +23 -0
- package/dist/components/layout/grid24CellContext.d.ts +2 -0
- package/dist/components/layout/index.d.ts +6 -0
- package/dist/components/layout.js +43 -0
- package/dist/components/layout.js.map +1 -0
- package/dist/components/lib/api/apiClient.d.ts +22 -0
- package/dist/components/lib/api/baseApiClient.d.ts +21 -0
- package/dist/components/lib/api/hostAdapterBridge.d.ts +21 -0
- package/dist/components/lib/api.d.ts +1 -0
- package/dist/components/lib/auth/permissionManager.d.ts +67 -0
- package/dist/components/lib/config/deployment.d.ts +33 -0
- package/dist/components/lib/config.d.ts +45 -0
- package/dist/components/lib/hooks/use-mobile.d.ts +1 -0
- package/dist/components/lib/hooks/useOperator.d.ts +11 -0
- package/dist/components/lib/services/agentService.d.ts +77 -0
- package/dist/components/lib/services/applicationService.d.ts +111 -0
- package/dist/components/lib/theme/themeUtils.d.ts +13 -0
- package/dist/components/lib/theme/useWorkbenchTheme.d.ts +1 -0
- package/dist/components/lib/types/api.d.ts +113 -0
- package/dist/components/lib/utils/avatar.d.ts +7 -0
- package/dist/components/lib/utils/cn.d.ts +3 -0
- package/dist/components/lib/utils/color.d.ts +1 -0
- package/dist/components/lib/utils/debounce.d.ts +1 -0
- package/dist/components/lib/utils/formatting.d.ts +4 -0
- package/dist/components/lib/utils/icon.d.ts +1 -0
- package/dist/components/lib/utils.d.ts +7 -0
- package/dist/components/locales/i18n.d.ts +10 -0
- package/dist/components/locales/routeNamespaces.d.ts +4 -0
- package/dist/components/mobile/components/BottomTabNavigation.d.ts +11 -0
- package/dist/components/mobile/components/ComponentAdapter.d.ts +9 -0
- package/dist/components/mobile/components/MobileFloatingBackButton.d.ts +23 -0
- package/dist/components/mobile/components/adaptive/MobileCardView.d.ts +6 -0
- package/dist/components/mobile/components/adaptive/MobileChartView.d.ts +9 -0
- package/dist/components/mobile/components/adaptive/MobileDateRangeFilterField.d.ts +16 -0
- package/dist/components/mobile/components/adaptive/MobileEChartsView.d.ts +10 -0
- package/dist/components/mobile/components/adaptive/MobileFormView.d.ts +6 -0
- package/dist/components/mobile/components/adaptive/MobileListView.d.ts +6 -0
- package/dist/components/mobile/components/adaptive/MobileStatCard.d.ts +13 -0
- package/dist/components/mobile/components/adaptive/MobileTableView.d.ts +9 -0
- package/dist/components/mobile/components/adaptive/MobileTabsView.d.ts +6 -0
- package/dist/components/mobile/components/adaptive/index.d.ts +4 -0
- package/dist/components/mobile/components/adaptive/mobileFilterFieldStyles.d.ts +19 -0
- package/dist/components/mobile/hooks/useMobileNavigationCanGoBack.d.ts +1 -0
- package/dist/components/mobile/hooks/useMobileTabTransitionDirection.d.ts +1 -0
- package/dist/components/mobile/index.d.ts +4 -0
- package/dist/components/mobile/mobileFlowLayoutContext.d.ts +2 -0
- package/dist/components/mobile/runtime-index.d.ts +3 -0
- package/dist/components/mobile/utils/fetchUserCurrentSpaceId.d.ts +15 -0
- package/dist/components/mobile/utils/getMobileViewportState.d.ts +25 -0
- package/dist/components/mobile/utils/mobileBottomNav.d.ts +13 -0
- package/dist/components/mobile/utils/mobileBottomNavInset.d.ts +4 -0
- package/dist/components/mobile/utils/mobileComponentProps.d.ts +44 -0
- package/dist/components/mobile/utils/mobileFormDisplayUtils.d.ts +4 -0
- package/dist/components/mobile/utils/mobileNavigationStore.d.ts +35 -0
- package/dist/components/mobile/utils/mobileToolbarNav.d.ts +13 -0
- package/dist/components/mobile/utils/mobileUA.d.ts +1 -0
- package/dist/components/mobile/utils/mobileWorkbenchSpaceSync.d.ts +60 -0
- package/dist/components/mobile/utils/wecomDetector.d.ts +9 -0
- package/dist/components/mobile/utils/workbenchSpaceSyncGate.d.ts +7 -0
- package/dist/components/mobile.js +25 -0
- package/dist/components/mobile.js.map +1 -0
- package/dist/components/mocks/index.d.ts +13 -0
- package/dist/components/mocks/templateRegistry.d.ts +16 -0
- package/dist/components/mocks/types.d.ts +1 -0
- package/dist/components/renderers/analytics-table/AnalyticsTableRenderer.d.ts +125 -0
- package/dist/components/renderers/analytics-table/index.d.ts +1 -0
- package/dist/components/renderers/analytics-table.js +5 -0
- package/dist/components/renderers/analytics-table.js.map +1 -0
- package/dist/components/renderers/base/BaseRenderers.d.ts +7 -0
- package/dist/components/renderers/base/LoadingRenderer.d.ts +14 -0
- package/dist/components/renderers/card/CardRenderer.d.ts +24 -0
- package/dist/components/renderers/card/index.d.ts +1 -0
- package/dist/components/renderers/card.js +5 -0
- package/dist/components/renderers/card.js.map +1 -0
- package/dist/components/renderers/cells/swCells.d.ts +49 -0
- package/dist/components/renderers/chart/ChartRenderer.d.ts +167 -0
- package/dist/components/renderers/chart/index.d.ts +1 -0
- package/dist/components/renderers/chart.js +5 -0
- package/dist/components/renderers/chart.js.map +1 -0
- package/dist/components/renderers/collapse-panel/CollapsePanelRenderer.d.ts +28 -0
- package/dist/components/renderers/collapse-panel/index.d.ts +1 -0
- package/dist/components/renderers/collapse-panel.js +5 -0
- package/dist/components/renderers/collapse-panel.js.map +1 -0
- package/dist/components/renderers/container/ContainerRenderers.d.ts +44 -0
- package/dist/components/renderers/container/index.d.ts +1 -0
- package/dist/components/renderers/container.js +5 -0
- package/dist/components/renderers/container.js.map +1 -0
- package/dist/components/renderers/custom-content/CustomContentRenderer.d.ts +20 -0
- package/dist/components/renderers/custom-content/index.d.ts +1 -0
- package/dist/components/renderers/custom-content.js +6 -0
- package/dist/components/renderers/custom-content.js.map +1 -0
- package/dist/components/renderers/data/useBoundRows.d.ts +9 -0
- package/dist/components/renderers/data-grid-card/DataGridCard.d.ts +46 -0
- package/dist/components/renderers/data-grid-card/index.d.ts +1 -0
- package/dist/components/renderers/data-grid-card.js +5 -0
- package/dist/components/renderers/data-grid-card.js.map +1 -0
- package/dist/components/renderers/echarts/EChartsChartRenderer.d.ts +178 -0
- package/dist/components/renderers/echarts/index.d.ts +1 -0
- package/dist/components/renderers/echarts/shared/colors.d.ts +56 -0
- package/dist/components/renderers/echarts/shared/index.d.ts +1 -0
- package/dist/components/renderers/echarts.js +5 -0
- package/dist/components/renderers/echarts.js.map +1 -0
- package/dist/components/renderers/editable-table/EditableTable.types.d.ts +27 -0
- package/dist/components/renderers/editable-table/EditableTableController.d.ts +44 -0
- package/dist/components/renderers/editable-table/EditableTableRenderer.d.ts +38 -0
- package/dist/components/renderers/editable-table/cell-editors/ColorEditor.d.ts +11 -0
- package/dist/components/renderers/editable-table/cell-editors/DateEditor.d.ts +11 -0
- package/dist/components/renderers/editable-table/cell-editors/FileEditor.d.ts +9 -0
- package/dist/components/renderers/editable-table/cell-editors/NumberEditor.d.ts +10 -0
- package/dist/components/renderers/editable-table/cell-editors/SelectEditor.d.ts +19 -0
- package/dist/components/renderers/editable-table/cell-editors/SwitchEditor.d.ts +13 -0
- package/dist/components/renderers/editable-table/cell-editors/TextEditor.d.ts +11 -0
- package/dist/components/renderers/editable-table/cell-editors/index.d.ts +7 -0
- package/dist/components/renderers/editable-table/editableTableApiErrors.d.ts +3 -0
- package/dist/components/renderers/editable-table/editableTableDictionary.d.ts +13 -0
- package/dist/components/renderers/editable-table/editableTableFormatters.d.ts +11 -0
- package/dist/components/renderers/editable-table/editableTableWriteDatasourceId.d.ts +8 -0
- package/dist/components/renderers/editable-table/index.d.ts +4 -0
- package/dist/components/renderers/editable-table.js +6 -0
- package/dist/components/renderers/editable-table.js.map +1 -0
- package/dist/components/renderers/filter-panel/FilterPanelRenderer.d.ts +275 -0
- package/dist/components/renderers/filter-panel/filterOptionCache.d.ts +33 -0
- package/dist/components/renderers/filter-panel/filterSelectionMemory.d.ts +11 -0
- package/dist/components/renderers/filter-panel/index.d.ts +1 -0
- package/dist/components/renderers/filter-panel.js +5 -0
- package/dist/components/renderers/filter-panel.js.map +1 -0
- package/dist/components/renderers/form/FileUploadDropzone.d.ts +24 -0
- package/dist/components/renderers/form/FormRenderer.d.ts +30 -0
- package/dist/components/renderers/form/formSizing.d.ts +14 -0
- package/dist/components/renderers/form/index.d.ts +2 -0
- package/dist/components/renderers/form.js +6 -0
- package/dist/components/renderers/form.js.map +1 -0
- package/dist/components/renderers/hero-card/HeroCardRenderer.d.ts +18 -0
- package/dist/components/renderers/hero-card/heroCardRows.d.ts +30 -0
- package/dist/components/renderers/hero-card/heroCardUtils.d.ts +164 -0
- package/dist/components/renderers/hero-card/index.d.ts +1 -0
- package/dist/components/renderers/hero-card.js +5 -0
- package/dist/components/renderers/hero-card.js.map +1 -0
- package/dist/components/renderers/identity/AppIdentityListRenderer.d.ts +60 -0
- package/dist/components/renderers/identity/IdentityAttributeAssignRenderer.d.ts +44 -0
- package/dist/components/renderers/identity/index.d.ts +2 -0
- package/dist/components/renderers/identity.js +6 -0
- package/dist/components/renderers/identity.js.map +1 -0
- package/dist/components/renderers/index.d.ts +1 -0
- package/dist/components/renderers/list/ListActionButton.d.ts +11 -0
- package/dist/components/renderers/list/ListDataTable.d.ts +13 -0
- package/dist/components/renderers/list/ListProgressBar.d.ts +12 -0
- package/dist/components/renderers/list/ListRenderers.d.ts +19 -0
- package/dist/components/renderers/list/ListTaskExecuteDialog.d.ts +17 -0
- package/dist/components/renderers/list/index.d.ts +1 -0
- package/dist/components/renderers/list/listActionUtils.d.ts +18 -0
- package/dist/components/renderers/list/listCellRender.d.ts +9 -0
- package/dist/components/renderers/list/listConfig.d.ts +67 -0
- package/dist/components/renderers/list/listCsvExport.d.ts +4 -0
- package/dist/components/renderers/list/listFormatUtils.d.ts +13 -0
- package/dist/components/renderers/list/listItemTemplates.d.ts +32 -0
- package/dist/components/renderers/list/listViewToggleUtils.d.ts +5 -0
- package/dist/components/renderers/list/useListActions.d.ts +38 -0
- package/dist/components/renderers/list/useListDataSource.d.ts +58 -0
- package/dist/components/renderers/list/useListSelectionEmit.d.ts +22 -0
- package/dist/components/renderers/list.js +5 -0
- package/dist/components/renderers/list.js.map +1 -0
- package/dist/components/renderers/map-chart/MapChartRenderer.d.ts +42 -0
- package/dist/components/renderers/map-chart/index.d.ts +1 -0
- package/dist/components/renderers/map-chart.js +5 -0
- package/dist/components/renderers/map-chart.js.map +1 -0
- package/dist/components/renderers/metric-carousel/MetricCarouselRenderer.d.ts +26 -0
- package/dist/components/renderers/metric-carousel/index.d.ts +1 -0
- package/dist/components/renderers/metric-carousel.js +5 -0
- package/dist/components/renderers/metric-carousel.js.map +1 -0
- package/dist/components/renderers/navigation/NavTileRenderer.d.ts +13 -0
- package/dist/components/renderers/navigation/index.d.ts +1 -0
- package/dist/components/renderers/navigation/navTileUtils.d.ts +46 -0
- package/dist/components/renderers/navigation.js +5 -0
- package/dist/components/renderers/navigation.js.map +1 -0
- package/dist/components/renderers/product-detail/ProductDetailRenderer.d.ts +23 -0
- package/dist/components/renderers/product-detail/index.d.ts +1 -0
- package/dist/components/renderers/product-detail/productCellRender.d.ts +25 -0
- package/dist/components/renderers/product-detail.js +5 -0
- package/dist/components/renderers/product-detail.js.map +1 -0
- package/dist/components/renderers/product-report/ProductReportRenderer.d.ts +21 -0
- package/dist/components/renderers/product-report/index.d.ts +1 -0
- package/dist/components/renderers/product-report.js +5 -0
- package/dist/components/renderers/product-report.js.map +1 -0
- package/dist/components/renderers/publish/PublishHistoryRenderer.d.ts +21 -0
- package/dist/components/renderers/publish/PublishPreviewEntryRenderer.d.ts +16 -0
- package/dist/components/renderers/publish/index.d.ts +2 -0
- package/dist/components/renderers/publish/publishHistoryHelpers.d.ts +41 -0
- package/dist/components/renderers/publish/publishPreviewEntryHelpers.d.ts +50 -0
- package/dist/components/renderers/publish.js +6 -0
- package/dist/components/renderers/publish.js.map +1 -0
- package/dist/components/renderers/radar-chart/RadarChartRenderer.d.ts +40 -0
- package/dist/components/renderers/radar-chart/index.d.ts +1 -0
- package/dist/components/renderers/radar-chart.js +5 -0
- package/dist/components/renderers/radar-chart.js.map +1 -0
- package/dist/components/renderers/registry.d.ts +38 -0
- package/dist/components/renderers/ring-stat/RingStatRenderer.d.ts +66 -0
- package/dist/components/renderers/ring-stat/index.d.ts +1 -0
- package/dist/components/renderers/ring-stat.js +5 -0
- package/dist/components/renderers/ring-stat.js.map +1 -0
- package/dist/components/renderers/runtime-DX1LfmqO.js +206944 -0
- package/dist/components/renderers/runtime-DX1LfmqO.js.map +1 -0
- package/dist/components/renderers/service-desk/ServiceDeskReporterRenderer.d.ts +48 -0
- package/dist/components/renderers/service-desk/index.d.ts +1 -0
- package/dist/components/renderers/service-desk.js +5 -0
- package/dist/components/renderers/service-desk.js.map +1 -0
- package/dist/components/renderers/shared/TableEmptyStateWithChromeInsets.d.ts +12 -0
- package/dist/components/renderers/shared/ViewToggleButton.d.ts +13 -0
- package/dist/components/renderers/shared/useEscapedStickyPanel.d.ts +6 -0
- package/dist/components/renderers/shared/useMobileChromeInsets.d.ts +18 -0
- package/dist/components/renderers/shared/useStickyHeaderClone.d.ts +31 -0
- package/dist/components/renderers/statistics/StatisticGroup.d.ts +77 -0
- package/dist/components/renderers/statistics/index.d.ts +1 -0
- package/dist/components/renderers/statistics.js +5 -0
- package/dist/components/renderers/statistics.js.map +1 -0
- package/dist/components/renderers/table/TableRenderer.d.ts +5 -0
- package/dist/components/renderers/table/index.d.ts +1 -0
- package/dist/components/renderers/table/tableFilterPanelGridClass.d.ts +15 -0
- package/dist/components/renderers/table.js +5 -0
- package/dist/components/renderers/table.js.map +1 -0
- package/dist/components/renderers/tabs/TabsRenderer.d.ts +63 -0
- package/dist/components/renderers/tabs/index.d.ts +1 -0
- package/dist/components/renderers/tabs/tabVariantStyles.d.ts +50 -0
- package/dist/components/renderers/tabs/tabsItemMapping.d.ts +26 -0
- package/dist/components/renderers/tabs.js +5 -0
- package/dist/components/renderers/tabs.js.map +1 -0
- package/dist/components/renderers/task-input/ExecutionHistoryModal.d.ts +9 -0
- package/dist/components/renderers/task-input/TaskExecutionOutputs.d.ts +15 -0
- package/dist/components/renderers/task-input/TaskInputField.d.ts +54 -0
- package/dist/components/renderers/task-input/TaskInputRenderer.d.ts +68 -0
- package/dist/components/renderers/task-input/index.d.ts +1 -0
- package/dist/components/renderers/task-input.js +5 -0
- package/dist/components/renderers/task-input.js.map +1 -0
- package/dist/components/renderers/tile-grid/TileGridRenderer.d.ts +41 -0
- package/dist/components/renderers/tile-grid/index.d.ts +1 -0
- package/dist/components/renderers/tile-grid.js +5 -0
- package/dist/components/renderers/tile-grid.js.map +1 -0
- package/dist/components/renderers/tree/SimpleTreeRenderer.d.ts +47 -0
- package/dist/components/renderers/tree/index.d.ts +1 -0
- package/dist/components/renderers/tree.js +5 -0
- package/dist/components/renderers/tree.js.map +1 -0
- package/dist/components/renderers/types.d.ts +682 -0
- package/dist/components/renderers/typography/TypographyRenderer.d.ts +17 -0
- package/dist/components/renderers/typography/index.d.ts +1 -0
- package/dist/components/renderers/typography.js +8 -0
- package/dist/components/renderers/typography.js.map +1 -0
- package/dist/components/renderers/workflow/SimpleSchemaForm.d.ts +12 -0
- package/dist/components/renderers/workflow/WorkflowComponent.d.ts +5 -0
- package/dist/components/renderers/workflow/index.d.ts +1 -0
- package/dist/components/renderers/workflow/renderers/ProposalRendererFactory.d.ts +15 -0
- package/dist/components/renderers/workflow/runtime-index.d.ts +9 -0
- package/dist/components/renderers/workflow/steps/ProposalStep.d.ts +21 -0
- package/dist/components/renderers/workflow/steps/ResultStep.d.ts +13 -0
- package/dist/components/renderers/workflow/steps/UploadStep.d.ts +15 -0
- package/dist/components/renderers/workflow/types.d.ts +185 -0
- package/dist/components/renderers/workflow.js +5 -0
- package/dist/components/renderers/workflow.js.map +1 -0
- package/dist/components/renderers.js +41 -0
- package/dist/components/renderers.js.map +1 -0
- package/dist/components/runtime/ComponentRenderer.d.ts +34 -0
- package/dist/components/runtime/GeniAppComponentProvider.d.ts +24 -0
- package/dist/components/runtime/GeniAppWorkbench.d.ts +20 -0
- package/dist/components/runtime/Loading.d.ts +9 -0
- package/dist/components/runtime/MultiPageRenderer.d.ts +15 -0
- package/dist/components/runtime/PageComingSoonOverlay.d.ts +11 -0
- package/dist/components/runtime/PageRenderer.d.ts +36 -0
- package/dist/components/runtime/TabManager.d.ts +39 -0
- package/dist/components/runtime/componentTypes.d.ts +70 -0
- package/dist/components/runtime/i18n.d.ts +5 -0
- package/dist/components/runtime/runtime-mode.d.ts +40 -0
- package/dist/components/shared/TitleManager.d.ts +8 -0
- package/dist/components/shared/platform-api/auth/platformRefreshResponse.d.ts +3 -0
- package/dist/components/shared/platform-api/auth/setupAuthInterceptors.d.ts +18 -0
- package/dist/components/shared/platform-api/auth/tokenStorage.d.ts +4 -0
- package/dist/components/shared/platform-api/index.d.ts +4 -0
- package/dist/components/shared/platform-types/index.d.ts +1 -0
- package/dist/components/shared/platform-types/types/json-schema.d.ts +50 -0
- package/dist/components/shared/platform-ui/components/ai/index.d.ts +2 -0
- package/dist/components/shared/platform-ui/components/ai/message.d.ts +6 -0
- package/dist/components/shared/platform-ui/components/ai/suggestion.d.ts +10 -0
- package/dist/components/shared/platform-ui/components/features/agent/AgentIdentity.d.ts +10 -0
- package/dist/components/shared/platform-ui/components/features/agent/agentIdentityUtils.d.ts +4 -0
- package/dist/components/shared/platform-ui/components/features/agent/index.d.ts +2 -0
- package/dist/components/shared/platform-ui/components/features/app/AppCheckboxInput.d.ts +9 -0
- package/dist/components/shared/platform-ui/components/features/app/AppConfirmDialog.d.ts +12 -0
- package/dist/components/shared/platform-ui/components/features/app/AppDashboardSkeleton.d.ts +9 -0
- package/dist/components/shared/platform-ui/components/features/app/AppDatePicker.d.ts +69 -0
- package/dist/components/shared/platform-ui/components/features/app/AppModal.d.ts +27 -0
- package/dist/components/shared/platform-ui/components/features/app/AppPageStates.d.ts +17 -0
- package/dist/components/shared/platform-ui/components/features/app/AppSelectInput.d.ts +10 -0
- package/dist/components/shared/platform-ui/components/features/app/AppTemporalInput.d.ts +19 -0
- package/dist/components/shared/platform-ui/components/features/app/Page.d.ts +14 -0
- package/dist/components/shared/platform-ui/components/features/app/QueryErrorAlert.d.ts +7 -0
- package/dist/components/shared/platform-ui/components/features/app/Sidebar.d.ts +47 -0
- package/dist/components/shared/platform-ui/components/features/app/index.d.ts +17 -0
- package/dist/components/shared/platform-ui/components/features/auth/AuthControlButtons.d.ts +8 -0
- package/dist/components/shared/platform-ui/components/features/auth/ForgotPassword.d.ts +9 -0
- package/dist/components/shared/platform-ui/components/features/auth/LogoutNotificationPage.d.ts +8 -0
- package/dist/components/shared/platform-ui/components/features/auth/Privacy.d.ts +8 -0
- package/dist/components/shared/platform-ui/components/features/auth/RequireAuth.d.ts +31 -0
- package/dist/components/shared/platform-ui/components/features/auth/Terms.d.ts +8 -0
- package/dist/components/shared/platform-ui/components/features/auth/VerifyEmail.d.ts +9 -0
- package/dist/components/shared/platform-ui/components/features/auth/application/index.d.ts +1 -0
- package/dist/components/shared/platform-ui/components/features/auth/index.d.ts +13 -0
- package/dist/components/shared/platform-ui/components/features/avatar/AvatarPickerModal.d.ts +30 -0
- package/dist/components/shared/platform-ui/components/features/avatar/generateAvatarUrl.d.ts +9 -0
- package/dist/components/shared/platform-ui/components/features/avatar/index.d.ts +2 -0
- package/dist/components/shared/platform-ui/components/features/chat/index.d.ts +1 -0
- package/dist/components/shared/platform-ui/components/features/data/index.d.ts +1 -0
- package/dist/components/shared/platform-ui/components/features/feedback/FeedbackMenu.d.ts +8 -0
- package/dist/components/shared/platform-ui/components/features/feedback/index.d.ts +1 -0
- package/dist/components/shared/platform-ui/components/features/home/Background.d.ts +4 -0
- package/dist/components/shared/platform-ui/components/features/home/index.d.ts +2 -0
- package/dist/components/shared/platform-ui/components/features/index.d.ts +22 -0
- package/dist/components/shared/platform-ui/components/features/knowledge/EvidenceCitation.d.ts +30 -0
- package/dist/components/shared/platform-ui/components/features/knowledge/HighlightedSnippet.d.ts +14 -0
- package/dist/components/shared/platform-ui/components/features/knowledge/index.d.ts +2 -0
- package/dist/components/shared/platform-ui/components/features/notification/NotificationBell.d.ts +14 -0
- package/dist/components/shared/platform-ui/components/features/notification/NotificationList.d.ts +41 -0
- package/dist/components/shared/platform-ui/components/features/notification/index.d.ts +2 -0
- package/dist/components/shared/platform-ui/components/features/operator/index.d.ts +1 -0
- package/dist/components/shared/platform-ui/components/features/rbac/index.d.ts +1 -0
- package/dist/components/shared/platform-ui/components/features/rich-text/RichTextField.d.ts +13 -0
- package/dist/components/shared/platform-ui/components/features/space/SpaceContext.d.ts +121 -0
- package/dist/components/shared/platform-ui/components/features/space/SpaceSwitcher.d.ts +13 -0
- package/dist/components/shared/platform-ui/components/features/space/index.d.ts +2 -0
- package/dist/components/shared/platform-ui/components/features/subscription/SubscriptionContext.d.ts +26 -0
- package/dist/components/shared/platform-ui/components/features/subscription/SubscriptionGuard.d.ts +35 -0
- package/dist/components/shared/platform-ui/components/features/subscription/constants.d.ts +126 -0
- package/dist/components/shared/platform-ui/components/features/subscription/createSubscriptionService.d.ts +34 -0
- package/dist/components/shared/platform-ui/components/features/subscription/index.d.ts +7 -0
- package/dist/components/shared/platform-ui/components/features/subscription/types.d.ts +161 -0
- package/dist/components/shared/platform-ui/components/features/subscription/useSubscription.d.ts +20 -0
- package/dist/components/shared/platform-ui/components/features/subscription/utils.d.ts +18 -0
- package/dist/components/shared/platform-ui/components/features/task/index.d.ts +1 -0
- package/dist/components/shared/platform-ui/components/features/team/index.d.ts +4 -0
- package/dist/components/shared/platform-ui/components/features/user/UserAvatar.d.ts +17 -0
- package/dist/components/shared/platform-ui/components/features/user/UserDisplay.d.ts +10 -0
- package/dist/components/shared/platform-ui/components/features/user/UserSelect.d.ts +14 -0
- package/dist/components/shared/platform-ui/components/features/user/useUserDirectory.d.ts +13 -0
- package/dist/components/shared/platform-ui/components/features/user/userDirectoryTypes.d.ts +18 -0
- package/dist/components/shared/platform-ui/components/icons/alipay-pay-mark.d.ts +2 -0
- package/dist/components/shared/platform-ui/components/icons/bank-transfer-mark.d.ts +2 -0
- package/dist/components/shared/platform-ui/components/icons/stripe-payment-mark.d.ts +2 -0
- package/dist/components/shared/platform-ui/components/icons/wechat-pay-mark.d.ts +2 -0
- package/dist/components/shared/platform-ui/components/index.d.ts +3 -0
- package/dist/components/shared/platform-ui/components/patterns/entity-patterns.d.ts +3 -0
- package/dist/components/shared/platform-ui/components/patterns/form-section.d.ts +11 -0
- package/dist/components/shared/platform-ui/components/patterns/record-list-frame.d.ts +12 -0
- package/dist/components/shared/platform-ui/components/patterns/status-stepper.d.ts +13 -0
- package/dist/components/shared/platform-ui/components/primitives/data-display/ApiErrorState.d.ts +10 -0
- package/dist/components/shared/platform-ui/components/primitives/data-display/FilePreviewDialog.d.ts +18 -0
- package/dist/components/shared/platform-ui/components/primitives/data-display/index.d.ts +4 -0
- package/dist/components/shared/platform-ui/components/primitives/feedback/index.d.ts +2 -0
- package/dist/components/shared/platform-ui/components/primitives/feedback/toaster.d.ts +1 -0
- package/dist/components/shared/platform-ui/components/primitives/feedback/use-toast.d.ts +46 -0
- package/dist/components/shared/platform-ui/components/primitives/forms/CountryCodeSelect.d.ts +16 -0
- package/dist/components/shared/platform-ui/components/primitives/forms/index.d.ts +1 -0
- package/dist/components/shared/platform-ui/components/primitives/index.d.ts +5 -0
- package/dist/components/shared/platform-ui/components/primitives/layout/AppHeader.d.ts +111 -0
- package/dist/components/shared/platform-ui/components/primitives/layout/AppWatermark.d.ts +7 -0
- package/dist/components/shared/platform-ui/components/primitives/layout/PublicFooter.d.ts +6 -0
- package/dist/components/shared/platform-ui/components/primitives/layout/PublicHeader.d.ts +39 -0
- package/dist/components/shared/platform-ui/components/primitives/layout/PublicLayout.d.ts +6 -0
- package/dist/components/shared/platform-ui/components/primitives/layout/ThemeToggle.d.ts +33 -0
- package/dist/components/shared/platform-ui/components/primitives/layout/WatermarkOverlay.d.ts +9 -0
- package/dist/components/shared/platform-ui/components/primitives/layout/brandAssets.d.ts +11 -0
- package/dist/components/shared/platform-ui/components/primitives/layout/index.d.ts +6 -0
- package/dist/components/shared/platform-ui/components/primitives/page-skeleton/ChartAreaSkeleton.d.ts +13 -0
- package/dist/components/shared/platform-ui/components/primitives/page-skeleton/ChartEmptyState.d.ts +14 -0
- package/dist/components/shared/platform-ui/components/primitives/page-skeleton/ComponentSkeletonShell.d.ts +16 -0
- package/dist/components/shared/platform-ui/components/primitives/page-skeleton/ConfigEditorSkeleton.d.ts +5 -0
- package/dist/components/shared/platform-ui/components/primitives/page-skeleton/DetailTabsSkeleton.d.ts +6 -0
- package/dist/components/shared/platform-ui/components/primitives/page-skeleton/EmptyStateBadge.d.ts +13 -0
- package/dist/components/shared/platform-ui/components/primitives/page-skeleton/FormCardSkeleton.d.ts +7 -0
- package/dist/components/shared/platform-ui/components/primitives/page-skeleton/FormFieldSkeleton.d.ts +6 -0
- package/dist/components/shared/platform-ui/components/primitives/page-skeleton/FormPageSkeleton.d.ts +6 -0
- package/dist/components/shared/platform-ui/components/primitives/page-skeleton/GridCardsSkeleton.d.ts +6 -0
- package/dist/components/shared/platform-ui/components/primitives/page-skeleton/ListSkeleton.d.ts +26 -0
- package/dist/components/shared/platform-ui/components/primitives/page-skeleton/PageHeaderSkeleton.d.ts +6 -0
- package/dist/components/shared/platform-ui/components/primitives/page-skeleton/SplitPaneSkeleton.d.ts +4 -0
- package/dist/components/shared/platform-ui/components/primitives/page-skeleton/StatsRowSkeleton.d.ts +5 -0
- package/dist/components/shared/platform-ui/components/primitives/page-skeleton/TableEmptyState.d.ts +27 -0
- package/dist/components/shared/platform-ui/components/primitives/page-skeleton/TablePageSkeleton.d.ts +8 -0
- package/dist/components/shared/platform-ui/components/primitives/page-skeleton/TabsBarSkeleton.d.ts +6 -0
- package/dist/components/shared/platform-ui/components/primitives/page-skeleton/index.d.ts +24 -0
- package/dist/components/shared/platform-ui/components/primitives/page-skeleton/skeletonMetrics.d.ts +9 -0
- package/dist/components/shared/platform-ui/components/primitives/page-skeleton/useVisibleCenter.d.ts +34 -0
- package/dist/components/shared/platform-ui/components/ui/accordion.d.ts +7 -0
- package/dist/components/shared/platform-ui/components/ui/ai-draft-banner.d.ts +21 -0
- package/dist/components/shared/platform-ui/components/ui/alert-dialog.d.ts +48 -0
- package/dist/components/shared/platform-ui/components/ui/alert.d.ts +8 -0
- package/dist/components/shared/platform-ui/components/ui/avatar.d.ts +6 -0
- package/dist/components/shared/platform-ui/components/ui/badge.d.ts +9 -0
- package/dist/components/shared/platform-ui/components/ui/breadcrumb.d.ts +19 -0
- package/dist/components/shared/platform-ui/components/ui/button.d.ts +11 -0
- package/dist/components/shared/platform-ui/components/ui/calendar.d.ts +8 -0
- package/dist/components/shared/platform-ui/components/ui/card.d.ts +8 -0
- package/dist/components/shared/platform-ui/components/ui/chart.d.ts +16 -0
- package/dist/components/shared/platform-ui/components/ui/checkbox.d.ts +4 -0
- package/dist/components/shared/platform-ui/components/ui/collapsible.d.ts +5 -0
- package/dist/components/shared/platform-ui/components/ui/column-config.d.ts +42 -0
- package/dist/components/shared/platform-ui/components/ui/date-picker.d.ts +9 -0
- package/dist/components/shared/platform-ui/components/ui/date-range-filter.d.ts +32 -0
- package/dist/components/shared/platform-ui/components/ui/date-range-picker.d.ts +11 -0
- package/dist/components/shared/platform-ui/components/ui/dialog-input.d.ts +17 -0
- package/dist/components/shared/platform-ui/components/ui/dialog-safe-select.d.ts +13 -0
- package/dist/components/shared/platform-ui/components/ui/dialog.d.ts +25 -0
- package/dist/components/shared/platform-ui/components/ui/dropdown-menu.d.ts +27 -0
- package/dist/components/shared/platform-ui/components/ui/feature-guide.d.ts +43 -0
- package/dist/components/shared/platform-ui/components/ui/form.d.ts +23 -0
- package/dist/components/shared/platform-ui/components/ui/help-tip.d.ts +29 -0
- package/dist/components/shared/platform-ui/components/ui/hint-notice.d.ts +22 -0
- package/dist/components/shared/platform-ui/components/ui/index.d.ts +6 -0
- package/dist/components/shared/platform-ui/components/ui/input.d.ts +3 -0
- package/dist/components/shared/platform-ui/components/ui/label.d.ts +5 -0
- package/dist/components/shared/platform-ui/components/ui/modal-container.d.ts +56 -0
- package/dist/components/shared/platform-ui/components/ui/modal-templates.d.ts +46 -0
- package/dist/components/shared/platform-ui/components/ui/multi-select.d.ts +20 -0
- package/dist/components/shared/platform-ui/components/ui/pagination.d.ts +28 -0
- package/dist/components/shared/platform-ui/components/ui/popover.d.ts +7 -0
- package/dist/components/shared/platform-ui/components/ui/progress.d.ts +7 -0
- package/dist/components/shared/platform-ui/components/ui/radio-button-group.d.ts +18 -0
- package/dist/components/shared/platform-ui/components/ui/radio-group.d.ts +5 -0
- package/dist/components/shared/platform-ui/components/ui/scroll-area.d.ts +5 -0
- package/dist/components/shared/platform-ui/components/ui/select.d.ts +16 -0
- package/dist/components/shared/platform-ui/components/ui/separator.d.ts +7 -0
- package/dist/components/shared/platform-ui/components/ui/sheet.d.ts +25 -0
- package/dist/components/shared/platform-ui/components/ui/sidebar-rail.d.ts +9 -0
- package/dist/components/shared/platform-ui/components/ui/skeleton.d.ts +2 -0
- package/dist/components/shared/platform-ui/components/ui/slider.d.ts +13 -0
- package/dist/components/shared/platform-ui/components/ui/switch.d.ts +4 -0
- package/dist/components/shared/platform-ui/components/ui/table.d.ts +10 -0
- package/dist/components/shared/platform-ui/components/ui/tabs.d.ts +10 -0
- package/dist/components/shared/platform-ui/components/ui/textarea.d.ts +3 -0
- package/dist/components/shared/platform-ui/components/ui/toast.d.ts +21 -0
- package/dist/components/shared/platform-ui/components/ui/toggle-group.d.ts +12 -0
- package/dist/components/shared/platform-ui/components/ui/toggle.d.ts +12 -0
- package/dist/components/shared/platform-ui/components/ui/tooltip.d.ts +7 -0
- package/dist/components/shared/platform-ui/components/ui/typography.d.ts +15 -0
- package/dist/components/shared/platform-ui/components/ui/underline-tabs.d.ts +13 -0
- package/dist/components/shared/platform-ui/components/ui/view-mode-toggle.d.ts +9 -0
- package/dist/components/shared/platform-ui/context/AppHostContext.d.ts +16 -0
- package/dist/components/shared/platform-ui/contexts/UserSettingsContext.d.ts +23 -0
- package/dist/components/shared/platform-ui/hooks/builtInApps.d.ts +91 -0
- package/dist/components/shared/platform-ui/hooks/pinnedBuiltInNavApps.d.ts +13 -0
- package/dist/components/shared/platform-ui/hooks/shellNavLucideIcon.d.ts +6 -0
- package/dist/components/shared/platform-ui/hooks/useAppSettings.d.ts +21 -0
- package/dist/components/shared/platform-ui/hooks/useAuthTokenSync.d.ts +3 -0
- package/dist/components/shared/platform-ui/hooks/useBuiltInApps.d.ts +6 -0
- package/dist/components/shared/platform-ui/hooks/useChatEntryTarget.d.ts +35 -0
- package/dist/components/shared/platform-ui/hooks/useIsMobile.d.ts +16 -0
- package/dist/components/shared/platform-ui/hooks/useLanguage.d.ts +11 -0
- package/dist/components/shared/platform-ui/hooks/useLockBodyScroll.d.ts +1 -0
- package/dist/components/shared/platform-ui/hooks/usePageState/index.d.ts +4 -0
- package/dist/components/shared/platform-ui/hooks/usePageState/types.d.ts +13 -0
- package/dist/components/shared/platform-ui/hooks/useTheme.d.ts +11 -0
- package/dist/components/shared/platform-ui/hooks/useUserSettings.d.ts +39 -0
- package/dist/components/shared/platform-ui/hooks/useWorkflowCanvas.d.ts +36 -0
- package/dist/components/shared/platform-ui/hooks/userPreferencesPinnedNav.d.ts +2 -0
- package/dist/components/shared/platform-ui/index.d.ts +127 -0
- package/dist/components/shared/platform-ui/kit/ai/conversation.d.ts +16 -0
- package/dist/components/shared/platform-ui/kit/ai/index.d.ts +11 -0
- package/dist/components/shared/platform-ui/kit/ai/loader.d.ts +6 -0
- package/dist/components/shared/platform-ui/kit/ai/message.d.ts +14 -0
- package/dist/components/shared/platform-ui/kit/ai/prompt-input.d.ts +18 -0
- package/dist/components/shared/platform-ui/kit/ai/suggestion.d.ts +11 -0
- package/dist/components/shared/platform-ui/kit/ai/tool.d.ts +28 -0
- package/dist/components/shared/platform-ui/kit.d.ts +5 -0
- package/dist/components/shared/platform-ui/platform/index.d.ts +38 -0
- package/dist/components/shared/platform-ui/platform/types.d.ts +1 -0
- package/dist/components/shared/platform-ui/styles/design-tokens.d.ts +189 -0
- package/dist/components/shared/platform-ui/styles/z-index-layers.d.ts +46 -0
- package/dist/components/shared/platform-ui/utils/unknownError.d.ts +2 -0
- package/dist/components/shared/platform-utils/cookieSettings.d.ts +12 -0
- package/dist/components/shared/platform-utils/data/countryCodes.d.ts +26 -0
- package/dist/components/shared/platform-utils/index.d.ts +18 -0
- package/dist/components/shared/platform-utils/utils/appPath.d.ts +5 -0
- package/dist/components/shared/platform-utils/utils/chunkLoadRecovery.d.ts +7 -0
- package/dist/components/shared/platform-utils/utils/cn.d.ts +3 -0
- package/dist/components/shared/platform-utils/utils/crossApp.d.ts +71 -0
- package/dist/components/shared/platform-utils/utils/debounce.d.ts +1 -0
- package/dist/components/shared/platform-utils/utils/formatUserLabel.d.ts +8 -0
- package/dist/components/shared/platform-utils/utils/formatting.d.ts +18 -0
- package/dist/components/shared/platform-utils/utils/logoutNotification.d.ts +28 -0
- package/dist/components/shared/platform-utils/utils/operatorLocale.d.ts +32 -0
- package/dist/components/shared/platform-utils/utils/routeLocalePrefetch.d.ts +5 -0
- package/dist/components/shared/platform-utils/utils/shellIframeUrl.d.ts +20 -0
- package/dist/components/shared/platform-utils/utils/spaceSettings.d.ts +20 -0
- package/dist/components/shared/platform-utils/utils/sso.d.ts +42 -0
- package/dist/components/shared/platform-utils/utils/throttle.d.ts +1 -0
- package/dist/components/shared/platform-utils/utils/timezones.d.ts +14 -0
- package/dist/components/shared/platform-utils/utils/toDateInputValue.d.ts +5 -0
- package/dist/components/shared/platform-utils/utils/watermark.d.ts +1 -0
- package/dist/components/shared/templates/index.d.ts +3 -0
- package/dist/components/shared/templates/slugify.d.ts +1 -0
- package/dist/components/shared/templates/templateRegistry.d.ts +18 -0
- package/dist/components/shared/templates/types.d.ts +42 -0
- package/dist/components/skeleton/ComponentSkeleton.d.ts +9 -0
- package/dist/components/skeleton/HeroCardSkeleton.d.ts +11 -0
- package/dist/components/skeleton/TileGridSkeleton.d.ts +11 -0
- package/dist/components/skeleton/WorkbenchSkeletonTokens.d.ts +1 -0
- package/dist/components/skeleton/index.d.ts +4 -0
- package/dist/components/standalone.css +2 -0
- package/dist/components/standalone.d.ts +21 -0
- package/dist/components/standalone.js +358805 -0
- package/dist/components/styles/grid24.css +359 -0
- package/dist/components/styles/layoutSystem.css +773 -0
- package/dist/components/styles.css +3 -0
- package/dist/components/testing/index.d.ts +2 -0
- package/dist/components/testing.js +5 -0
- package/dist/components/testing.js.map +1 -0
- package/dist/components/themes/classic.d.ts +7 -0
- package/dist/components/themes/index.d.ts +15 -0
- package/dist/components/themes/inkOnyx.d.ts +3 -0
- package/dist/components/themes/types.d.ts +36 -0
- package/dist/components/types/application.d.ts +37 -0
- package/dist/components/types/communication.d.ts +94 -0
- package/dist/components/types/components.d.ts +346 -0
- package/dist/components/types/conditionMapperTypes.d.ts +60 -0
- package/dist/components/types/databaseDataSource.d.ts +120 -0
- package/dist/components/types/datasource.d.ts +117 -0
- package/dist/components/types/editor.d.ts +4 -0
- package/dist/components/types/editors.d.ts +91 -0
- package/dist/components/types/host-adapters.d.ts +35 -0
- package/dist/components/types/index.d.ts +7 -0
- package/dist/components/types/parameters.d.ts +59 -0
- package/dist/components/types/productReport.d.ts +272 -0
- package/dist/components/types/renderers.d.ts +645 -0
- package/dist/components/types.d.ts +649 -0
- package/dist/components/ui/ActionFormDialog.d.ts +19 -0
- package/dist/components/ui/ConfirmDialog.d.ts +17 -0
- package/dist/components/ui/FormFieldRenderer.d.ts +51 -0
- package/dist/components/ui/IconSelector.d.ts +10 -0
- package/dist/components/ui/RecordDetailDialog.d.ts +15 -0
- package/dist/components/ui/StructuredValueField.d.ts +16 -0
- package/dist/components/ui/date-picker.d.ts +7 -0
- package/dist/components/ui/date-range-picker.d.ts +11 -0
- package/dist/components/ui/dialog-safe-select.d.ts +13 -0
- package/dist/components/ui/dialog-tag-input.d.ts +18 -0
- package/dist/components/ui/dialog.d.ts +22 -0
- package/dist/components/ui/dropdown-menu.d.ts +27 -0
- package/dist/components/ui/pagination.d.ts +28 -0
- package/dist/components/ui/select.d.ts +13 -0
- package/dist/components/ui/sidebar-rail.d.ts +9 -0
- package/dist/components/ui/sidebar.d.ts +65 -0
- package/dist/components/ui/table.d.ts +10 -0
- package/dist/components/ui/tag-input.d.ts +23 -0
- package/dist/components/utils/actionFormValidation.d.ts +34 -0
- package/dist/components/utils/autoIdUtils.d.ts +2 -0
- package/dist/components/utils/chartGradientStops.d.ts +14 -0
- package/dist/components/utils/chinaProvinceMap.d.ts +8 -0
- package/dist/components/utils/colors.d.ts +84 -0
- package/dist/components/utils/componentUtils.d.ts +4 -0
- package/dist/components/utils/conditionMapperUtils.d.ts +59 -0
- package/dist/components/utils/cssParser.d.ts +7 -0
- package/dist/components/utils/currencySymbol.d.ts +10 -0
- package/dist/components/utils/dataConfigUtils.d.ts +80 -0
- package/dist/components/utils/databaseDatasourceColumnValue.d.ts +8 -0
- package/dist/components/utils/databaseDatasourceParams.d.ts +44 -0
- package/dist/components/utils/datasetOperationUtils.d.ts +48 -0
- package/dist/components/utils/datasourceVersion.d.ts +61 -0
- package/dist/components/utils/debugUtils.d.ts +34 -0
- package/dist/components/utils/errorFilter.d.ts +1 -0
- package/dist/components/utils/errorHandler.d.ts +10 -0
- package/dist/components/utils/expressionUtils.d.ts +13 -0
- package/dist/components/utils/extensionErrorHandler.d.ts +4 -0
- package/dist/components/utils/filterPanelDateRangeUtils.d.ts +34 -0
- package/dist/components/utils/filterPanelMobileDateRangeUtils.d.ts +17 -0
- package/dist/components/utils/formActionVisibility.d.ts +21 -0
- package/dist/components/utils/grid24LayoutSystem.d.ts +108 -0
- package/dist/components/utils/iconUtils.d.ts +22 -0
- package/dist/components/utils/layoutContainerNesting.d.ts +5 -0
- package/dist/components/utils/layoutSystem.d.ts +189 -0
- package/dist/components/utils/navigationUtils.d.ts +70 -0
- package/dist/components/utils/navigationVisibleWhenEditor.d.ts +37 -0
- package/dist/components/utils/parameterUtils.d.ts +52 -0
- package/dist/components/utils/redirectToAppHome.d.ts +4 -0
- package/dist/components/utils/resolveComponentMockFields.d.ts +28 -0
- package/dist/components/utils/resolveDatabaseDataSourceConfig.d.ts +9 -0
- package/dist/components/utils/safeMessaging.d.ts +16 -0
- package/dist/components/utils/statisticColors.d.ts +11 -0
- package/dist/components/utils/statisticIcons.d.ts +5 -0
- package/dist/components/utils/styleUtils.d.ts +35 -0
- package/dist/components/utils/systemParameters.d.ts +8 -0
- package/dist/components/utils/tabIsolation.d.ts +34 -0
- package/dist/components/utils/tableActionButtonRender.d.ts +12 -0
- package/dist/components/utils/taskUtils.d.ts +37 -0
- package/dist/components/utils/treeFormUtils.d.ts +41 -0
- package/dist/components/utils/visibleWhen.d.ts +31 -0
- package/dist/components/utils/visibleWhenFormat.d.ts +32 -0
- package/dist/components/utils/workbenchConfigLocale.d.ts +44 -0
- package/dist/components/utils/workbenchDisplayLocale.d.ts +33 -0
- package/dist/components/utils/workbenchPathUtils.d.ts +8 -0
- package/dist/components/utils/workflowTransformsUtils.d.ts +3 -0
- package/dist/components.js +841 -0
- package/dist/components.js.map +1 -0
- package/dist/dashboard/src/ChartTooltip.d.ts +1 -1
- package/dist/hooks/access/AppAccessNotice.d.ts +1 -1
- package/dist/hooks/picker/managedAppPicker.d.ts +1 -1
- package/dist/hooks.js +28 -27
- package/dist/hooks.js.map +1 -1
- package/dist/i18n-DojjvBZv.js +19013 -0
- package/dist/i18n-DojjvBZv.js.map +1 -0
- package/dist/index.js +61 -59
- package/dist/index.js.map +1 -1
- package/dist/kit.js +57 -56
- package/dist/kit.js.map +1 -1
- package/dist/resolveApiRoot-Dzg1R1PS.js +68 -0
- package/dist/resolveApiRoot-Dzg1R1PS.js.map +1 -0
- package/dist/shell.d.ts +1 -1
- package/dist/storage/components/CopyStorageLinkButton.d.ts +1 -1
- package/dist/storage/components/StorageImage.d.ts +1 -1
- package/dist/storage/components/StorageVideo.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/task-workspace/domain.d.ts +1 -1
- package/dist/ui/components/features/app/AppModal.d.ts +2 -2
- package/dist/ui/components/primitives/page-skeleton/index.d.ts +1 -1
- package/dist/ui/components/ui/alert.d.ts +3 -3
- package/dist/ui/components/ui/badge.d.ts +3 -3
- package/dist/ui/components/ui/button.d.ts +4 -4
- package/dist/ui/components/ui/chart.d.ts +1 -1
- package/dist/ui/components/ui/form.d.ts +3 -5
- package/dist/ui/components/ui/hint-notice.d.ts +3 -3
- package/dist/ui/components/ui/label.d.ts +1 -1
- package/dist/ui/components/ui/select.d.ts +1 -1
- package/dist/ui/components/ui/sheet.d.ts +3 -3
- package/dist/ui/components/ui/tabs.d.ts +1 -1
- package/dist/ui/components/ui/toast.d.ts +3 -3
- package/dist/ui/components/ui/toggle-group.d.ts +8 -8
- package/dist/ui/components/ui/toggle.d.ts +8 -8
- package/dist/ui/components/ui/underline-tabs.d.ts +6 -6
- package/dist/ui.js +23 -22
- package/dist/ui.js.map +1 -1
- package/dist/useUserDirectory-GU8imJ0T.js +2124 -0
- package/dist/useUserDirectory-GU8imJ0T.js.map +1 -0
- package/dist/vite.d.ts +1 -1
- package/package.json +217 -31
- package/dist/CrossAppRecordPicker-CQVmirWD.js.map +0 -1
- package/dist/useUserDirectory-CqkyCQoR.js +0 -2377
- package/dist/useUserDirectory-CqkyCQoR.js.map +0 -1
- package/dist/workbench/runtime.d.ts +0 -3
- package/dist/workbench/styles.css +0 -197
- package/dist/workbench/types.d.ts +0 -48
- package/dist/workbench.d.ts +0 -8
- package/dist/workbench.js +0 -356
- package/dist/workbench.js.map +0 -1
|
@@ -1,197 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
color-scheme: light;
|
|
3
|
-
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
4
|
-
font-synthesis: none;
|
|
5
|
-
--background: 0 0% 98%;
|
|
6
|
-
--foreground: 0 0% 10%;
|
|
7
|
-
--card: 0 0% 100%;
|
|
8
|
-
--card-foreground: 0 0% 10%;
|
|
9
|
-
--muted: 0 0% 94%;
|
|
10
|
-
--muted-foreground: 0 0% 42%;
|
|
11
|
-
--accent: 0 0% 92%;
|
|
12
|
-
--accent-foreground: 0 0% 12%;
|
|
13
|
-
--border: 0 0% 88%;
|
|
14
|
-
--primary: 225 70% 52%;
|
|
15
|
-
--primary-foreground: 0 0% 100%;
|
|
16
|
-
--portable-accent: hsl(var(--primary));
|
|
17
|
-
--portable-accent-soft: hsl(225 70% 96%);
|
|
18
|
-
--portable-surface: hsl(var(--card));
|
|
19
|
-
--portable-line: hsl(var(--border));
|
|
20
|
-
--portable-muted: hsl(var(--muted-foreground));
|
|
21
|
-
--portable-radius: 14px;
|
|
22
|
-
color: hsl(var(--foreground));
|
|
23
|
-
background: hsl(var(--background));
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
:root.dark {
|
|
27
|
-
color-scheme: dark;
|
|
28
|
-
--background: 0 0% 4%;
|
|
29
|
-
--foreground: 0 0% 95%;
|
|
30
|
-
--card: 0 0% 8%;
|
|
31
|
-
--card-foreground: 0 0% 95%;
|
|
32
|
-
--muted: 0 0% 14%;
|
|
33
|
-
--muted-foreground: 0 0% 64%;
|
|
34
|
-
--accent: 0 0% 17%;
|
|
35
|
-
--accent-foreground: 0 0% 96%;
|
|
36
|
-
--border: 0 0% 20%;
|
|
37
|
-
--primary: 225 82% 66%;
|
|
38
|
-
--primary-foreground: 0 0% 100%;
|
|
39
|
-
--portable-accent-soft: hsl(225 30% 18%);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
* { box-sizing: border-box; }
|
|
43
|
-
html, body, #root { min-height: 100%; margin: 0; }
|
|
44
|
-
body { min-width: 320px; overflow-x: hidden; background: hsl(var(--background)); color: hsl(var(--foreground)); }
|
|
45
|
-
button, input, textarea { font: inherit; }
|
|
46
|
-
button { cursor: pointer; }
|
|
47
|
-
.portable-icon { width: 18px; height: 18px; flex: 0 0 auto; }
|
|
48
|
-
|
|
49
|
-
.portable-shell { min-height: 100vh; background: hsl(var(--background)); }
|
|
50
|
-
.portable-sidebar {
|
|
51
|
-
position: fixed; inset: 0 auto 0 0; z-index: 20; display: flex; width: 256px; flex-direction: column;
|
|
52
|
-
overflow: visible; border-right: 1px solid hsl(var(--border)); background: hsl(var(--muted));
|
|
53
|
-
transition: width 220ms ease, background 180ms ease, border-color 180ms ease;
|
|
54
|
-
}
|
|
55
|
-
.sidebar-collapsed .portable-sidebar { width: 80px; }
|
|
56
|
-
.portable-sidebar-header { display: flex; height: 69px; flex: 0 0 69px; align-items: center; padding: 0 16px; border-bottom: 1px solid hsl(var(--border)); }
|
|
57
|
-
.sidebar-collapsed .portable-sidebar-header { justify-content: center; padding: 0 8px; }
|
|
58
|
-
.portable-brand { display: flex; min-width: 0; align-items: center; gap: 10px; }
|
|
59
|
-
.portable-brand > span { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border-radius: 12px; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); font-weight: 750; box-shadow: 0 1px 3px rgb(0 0 0 / 0.12); }
|
|
60
|
-
.portable-brand > div { min-width: 0; }
|
|
61
|
-
.portable-brand strong, .portable-brand small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
62
|
-
.portable-brand strong { color: hsl(var(--foreground)); font-size: 14px; font-weight: 650; }
|
|
63
|
-
.portable-brand small { max-width: 175px; margin-top: 2px; color: hsl(var(--muted-foreground)); font-size: 10px; }
|
|
64
|
-
.portable-sidebar nav, .portable-mobile-drawer nav { display: grid; min-height: 0; flex: 1; align-content: start; gap: 4px; overflow-y: auto; padding: 12px; }
|
|
65
|
-
.portable-nav-item { display: flex; width: 100%; min-height: 44px; align-items: center; gap: 10px; padding: 8px 12px 8px calc(12px + var(--nav-depth, 0) * 14px); border: 0; border-radius: 12px; background: transparent; color: hsl(var(--foreground)); text-align: left; transition: color 150ms ease, background 150ms ease; }
|
|
66
|
-
.portable-nav-item span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 520; }
|
|
67
|
-
.portable-nav-item:hover { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); }
|
|
68
|
-
.portable-nav-item.active { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); box-shadow: 0 1px 3px rgb(0 0 0 / 0.12); }
|
|
69
|
-
.sidebar-collapsed .portable-nav-item { width: 44px; justify-content: center; margin-inline: auto; padding: 0; }
|
|
70
|
-
.sidebar-collapsed .portable-nav-item span { display: none; }
|
|
71
|
-
.portable-sidebar footer, .portable-mobile-drawer footer { margin-top: auto; padding: 12px; border-top: 1px solid hsl(var(--border)); }
|
|
72
|
-
.portable-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
|
|
73
|
-
.portable-controls button { display: flex; min-height: 40px; align-items: center; justify-content: center; gap: 7px; border: 1px solid hsl(var(--border)); border-radius: 10px; background: hsl(var(--background)); color: hsl(var(--muted-foreground)); }
|
|
74
|
-
.portable-controls button:hover { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); }
|
|
75
|
-
.portable-controls button span { font-size: 11px; font-weight: 650; }
|
|
76
|
-
.sidebar-collapsed .portable-controls { grid-template-columns: 1fr; }
|
|
77
|
-
.sidebar-collapsed .portable-controls button span, .portable-controls.compact button span { display: none; }
|
|
78
|
-
.portable-controls.compact { display: flex; margin-left: auto; }
|
|
79
|
-
.portable-controls.compact button { width: 38px; min-height: 38px; }
|
|
80
|
-
.portable-collapse { position: absolute; z-index: 10; top: 69px; right: -12px; display: grid; width: 24px; height: 24px; place-items: center; transform: translateY(-50%); border: 1px solid hsl(var(--border)); border-radius: 999px; background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); box-shadow: 0 1px 4px rgb(0 0 0 / 0.1); }
|
|
81
|
-
.portable-collapse .portable-icon { width: 15px; height: 15px; }
|
|
82
|
-
.portable-content { min-width: 0; min-height: 100vh; padding-left: 256px; transition: padding-left 220ms ease; }
|
|
83
|
-
.sidebar-collapsed .portable-content { padding-left: 80px; }
|
|
84
|
-
.portable-mobile-header, .portable-mobile-nav { display: none; }
|
|
85
|
-
|
|
86
|
-
.portable-page { min-height: 100vh; padding: 30px clamp(18px, 3vw, 44px) 48px; background: hsl(var(--background)); color: hsl(var(--foreground)); transition: color 180ms ease, background 180ms ease; }
|
|
87
|
-
.portable-page-header { margin-bottom: 22px; }
|
|
88
|
-
.portable-page-header h1 { margin: 4px 0 5px; color: hsl(var(--foreground)); font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.035em; }
|
|
89
|
-
.portable-page-header p { max-width: 760px; margin: 0; color: var(--portable-muted); line-height: 1.6; }
|
|
90
|
-
.portable-eyebrow { color: var(--portable-accent); font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
|
|
91
|
-
.portable-page-grid { display: grid; gap: 18px; }
|
|
92
|
-
.portable-page-grid.grid-24 { grid-template-columns: repeat(24, minmax(0, 1fr)); grid-auto-rows: minmax(48px, auto); align-items: stretch; }
|
|
93
|
-
.portable-placement { min-width: 0; }
|
|
94
|
-
.portable-component { height: 100%; overflow: hidden; padding: 20px; border: 1px solid var(--portable-line); border-radius: var(--portable-radius); background: var(--portable-surface); color: hsl(var(--card-foreground)); box-shadow: 0 5px 18px rgb(0 0 0 / 0.045); transition: color 180ms ease, background 180ms ease, border-color 180ms ease; }
|
|
95
|
-
.dark .portable-component { box-shadow: 0 8px 24px rgb(0 0 0 / 0.22); }
|
|
96
|
-
.portable-type-Typography, .portable-type-Text, .portable-type-Title, .portable-type-Paragraph { padding: 0; border: 0; background: transparent; box-shadow: none; }
|
|
97
|
-
.portable-typography { margin: 0; line-height: 1.55; }
|
|
98
|
-
.portable-typography-title, .portable-typography-h1, .portable-typography-h2 { letter-spacing: -0.03em; }
|
|
99
|
-
.portable-section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
|
|
100
|
-
.portable-section-heading h2 { margin: 0; color: hsl(var(--card-foreground)); font-size: 17px; }
|
|
101
|
-
.portable-section-heading p { margin: 5px 0 0; color: var(--portable-muted); font-size: 13px; }
|
|
102
|
-
.portable-stat-grid { display: grid; grid-template-columns: repeat(var(--stat-columns), minmax(0, 1fr)); gap: 14px; }
|
|
103
|
-
.portable-stat { min-width: 0; padding: 17px; border: 1px solid var(--portable-line); border-radius: 12px; background: hsl(var(--background)); }
|
|
104
|
-
.portable-stat-title { color: var(--portable-muted); font-size: 12px; font-weight: 600; }
|
|
105
|
-
.portable-stat-value { margin-top: 9px; color: hsl(var(--foreground)); font-size: 27px; font-weight: 760; letter-spacing: -0.04em; }
|
|
106
|
-
.portable-stat-trend { margin-top: 7px; color: #07855b; font-size: 12px; font-weight: 700; }
|
|
107
|
-
.portable-stat-trend.down { color: #d64545; }
|
|
108
|
-
.portable-stat-trend span { color: var(--portable-muted); font-weight: 400; }
|
|
109
|
-
.portable-table-wrap { max-width: 100%; overflow: auto; }
|
|
110
|
-
.portable-table-wrap table { width: 100%; border-collapse: collapse; font-size: 13px; }
|
|
111
|
-
.portable-table-wrap th { padding: 11px 13px; color: var(--portable-muted); background: hsl(var(--muted)); text-align: left; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }
|
|
112
|
-
.portable-table-wrap td { padding: 13px; border-top: 1px solid var(--portable-line); color: hsl(var(--card-foreground)); white-space: nowrap; }
|
|
113
|
-
.portable-table-wrap tr:hover td { background: hsl(var(--accent)); }
|
|
114
|
-
.portable-grid-search { margin-bottom: 14px; }
|
|
115
|
-
.portable-grid-search input { width: min(100%, 360px); padding: 10px 12px; border: 1px solid var(--portable-line); border-radius: 9px; color: hsl(var(--foreground)); background: hsl(var(--background)); }
|
|
116
|
-
.portable-card-grid { display: grid; gap: 10px; }
|
|
117
|
-
.portable-card-grid article { padding: 15px; border: 1px solid var(--portable-line); border-radius: 11px; background: hsl(var(--background)); }
|
|
118
|
-
.portable-card-grid header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
|
|
119
|
-
.portable-card-grid header strong { color: hsl(var(--foreground)); font-size: 14px; }
|
|
120
|
-
.portable-card-grid header p { margin: 4px 0 0; color: var(--portable-muted); font-size: 12px; }
|
|
121
|
-
.portable-card-grid header > span { color: var(--portable-muted); font-size: 22px; line-height: 1; }
|
|
122
|
-
.portable-card-grid dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 18px; margin: 14px 0 0; padding-top: 13px; border-top: 1px solid var(--portable-line); }
|
|
123
|
-
.portable-card-grid dl > div { min-width: 0; }
|
|
124
|
-
.portable-card-grid dt { color: var(--portable-muted); font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
|
|
125
|
-
.portable-card-grid dd { display: flex; align-items: center; gap: 7px; margin: 5px 0 0; color: hsl(var(--card-foreground)); font-size: 12px; }
|
|
126
|
-
.portable-progress { width: 72px; height: 6px; overflow: hidden; border-radius: 999px; background: hsl(var(--muted)); }
|
|
127
|
-
.portable-progress > span { display: block; height: 100%; border-radius: inherit; background: var(--portable-accent); }
|
|
128
|
-
.portable-tag { display: inline-flex; padding: 3px 7px; border-radius: 999px; color: hsl(var(--primary)); background: var(--portable-accent-soft); font-size: 11px; font-weight: 700; }
|
|
129
|
-
.portable-chart { width: 100%; overflow: hidden; }
|
|
130
|
-
.portable-chart svg { display: block; width: 100%; max-height: 330px; }
|
|
131
|
-
.portable-chart text { fill: var(--portable-muted); font-size: 11px; }
|
|
132
|
-
.portable-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
|
|
133
|
-
.portable-form label { display: grid; gap: 7px; color: var(--portable-muted); font-size: 12px; font-weight: 650; }
|
|
134
|
-
.portable-form input, .portable-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--portable-line); border-radius: 9px; color: hsl(var(--foreground)); background: hsl(var(--background)); outline: 0; }
|
|
135
|
-
.portable-form input:focus, .portable-form textarea:focus { border-color: var(--portable-accent); box-shadow: 0 0 0 3px var(--portable-accent-soft); }
|
|
136
|
-
.portable-form textarea { min-height: 92px; resize: vertical; }
|
|
137
|
-
.portable-form button { align-self: end; min-height: 40px; padding: 0 18px; border: 0; border-radius: 9px; color: hsl(var(--primary-foreground)); background: var(--portable-accent); font-weight: 700; }
|
|
138
|
-
.portable-task-input { display: grid; gap: 14px; }
|
|
139
|
-
.portable-task-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
|
|
140
|
-
.portable-task-fields label { display: grid; gap: 6px; color: var(--portable-muted); font-size: 12px; font-weight: 650; }
|
|
141
|
-
.portable-task-fields input { min-width: 0; padding: 10px 12px; border: 1px solid var(--portable-line); border-radius: 9px; color: hsl(var(--foreground)); background: hsl(var(--background)); }
|
|
142
|
-
.portable-file-drop { display: grid; min-height: 150px; place-items: center; align-content: center; gap: 6px; padding: 22px; border: 1px dashed hsl(var(--primary) / 0.5); border-radius: 12px; background: var(--portable-accent-soft); text-align: center; }
|
|
143
|
-
.portable-file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
|
|
144
|
-
.portable-file-drop strong { font-size: 13px; }
|
|
145
|
-
.portable-file-drop small { color: var(--portable-muted); font-size: 11px; font-weight: 400; }
|
|
146
|
-
.portable-file-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 999px; color: hsl(var(--primary-foreground)); background: var(--portable-accent); font-size: 19px; }
|
|
147
|
-
.portable-file-list { display: grid; gap: 7px; }
|
|
148
|
-
.portable-file-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 11px; border: 1px solid var(--portable-line); border-radius: 8px; background: hsl(var(--background)); font-size: 12px; }
|
|
149
|
-
.portable-file-list small { color: var(--portable-muted); }
|
|
150
|
-
.portable-task-submit { justify-self: end; min-height: 40px; padding: 0 18px; border: 0; border-radius: 9px; color: hsl(var(--primary-foreground)); background: var(--portable-accent); font-weight: 700; }
|
|
151
|
-
.portable-list { display: grid; gap: 0; }
|
|
152
|
-
.portable-list article { padding: 13px 2px; border-top: 1px solid var(--portable-line); }
|
|
153
|
-
.portable-list article:first-child { border-top: 0; }
|
|
154
|
-
.portable-list strong { font-size: 13px; }
|
|
155
|
-
.portable-list p { margin: 5px 0 0; color: var(--portable-muted); font-size: 12px; line-height: 1.5; }
|
|
156
|
-
.portable-tab-list { display: flex; gap: 5px; margin: -7px -7px 18px; padding: 6px; overflow-x: auto; border-radius: 10px; background: hsl(var(--muted)); }
|
|
157
|
-
.portable-tab-list button { padding: 8px 13px; border: 0; border-radius: 7px; color: var(--portable-muted); background: transparent; font-size: 12px; font-weight: 650; white-space: nowrap; }
|
|
158
|
-
.portable-tab-list button.active { color: hsl(var(--primary)); background: hsl(var(--card)); box-shadow: 0 2px 7px rgb(0 0 0 / 0.08); }
|
|
159
|
-
.portable-tab-panel, .portable-container { display: grid; gap: 14px; }
|
|
160
|
-
.portable-empty, .portable-unsupported { padding: 24px; color: var(--portable-muted); text-align: center; }
|
|
161
|
-
.portable-unsupported { border: 1px dashed #f0a8a8; border-radius: 9px; color: #b83a3a; background: #fff5f5; }
|
|
162
|
-
|
|
163
|
-
.portable-mobile-backdrop, .portable-mobile-drawer { display: none; }
|
|
164
|
-
|
|
165
|
-
@media (max-width: 1023px) {
|
|
166
|
-
.portable-shell { display: flex; min-height: 100dvh; flex-direction: column; }
|
|
167
|
-
.portable-sidebar { display: none; }
|
|
168
|
-
.portable-content, .sidebar-collapsed .portable-content { min-height: 0; flex: 1; padding-left: 0; }
|
|
169
|
-
.portable-mobile-header { position: sticky; top: 0; z-index: 30; display: flex; min-height: 60px; flex: 0 0 60px; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid hsl(var(--border)); background: hsl(var(--background) / 0.96); backdrop-filter: blur(12px); }
|
|
170
|
-
.portable-mobile-header > button, .portable-mobile-drawer-close button { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border: 1px solid hsl(var(--border)); border-radius: 12px; background: hsl(var(--card)); color: hsl(var(--foreground)); }
|
|
171
|
-
.portable-mobile-header .portable-brand { flex: 1; }
|
|
172
|
-
.portable-mobile-header .portable-brand > span { width: 34px; height: 34px; flex-basis: 34px; }
|
|
173
|
-
.portable-mobile-header .portable-brand small { display: none; }
|
|
174
|
-
.portable-mobile-header .portable-controls { flex: 0 0 auto; }
|
|
175
|
-
.portable-mobile-nav { position: sticky; z-index: 30; bottom: 0; display: flex; min-height: 70px; flex: 0 0 auto; align-items: stretch; padding: 7px 5px max(env(safe-area-inset-bottom, 0px), 10px); border-top: 1px solid hsl(var(--border)); background: hsl(var(--background) / 0.98); backdrop-filter: blur(12px); }
|
|
176
|
-
.portable-mobile-nav button { display: flex; min-width: 0; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 5px 2px; border: 0; background: transparent; color: hsl(var(--muted-foreground)); }
|
|
177
|
-
.portable-mobile-nav button.active { color: hsl(var(--primary)); }
|
|
178
|
-
.portable-mobile-nav button .portable-icon { width: 25px; height: 25px; }
|
|
179
|
-
.portable-mobile-nav button span { width: 100%; overflow: hidden; text-align: center; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 600; }
|
|
180
|
-
.portable-mobile-backdrop { position: fixed; inset: 0; z-index: 300; display: block; background: rgb(10 10 10 / 0.5); backdrop-filter: blur(3px); }
|
|
181
|
-
.portable-mobile-drawer { position: fixed; inset: 0 auto 0 0; z-index: 400; display: flex; width: min(304px, 88vw); flex-direction: column; overflow: hidden; border-right: 1px solid hsl(var(--border)); border-radius: 0 18px 18px 0; background: hsl(var(--background) / 0.98); box-shadow: 0 16px 50px rgb(0 0 0 / 0.25); backdrop-filter: blur(14px); }
|
|
182
|
-
.portable-mobile-drawer-close { display: flex; justify-content: flex-end; padding: 10px 12px; border-bottom: 1px solid hsl(var(--border)); }
|
|
183
|
-
.portable-mobile-drawer .portable-sidebar-header { background: hsl(var(--muted)); }
|
|
184
|
-
.portable-page-grid.grid-24 { grid-template-columns: 1fr; }
|
|
185
|
-
.portable-page-grid.grid-24 > .portable-placement { grid-column: 1 !important; grid-row: auto !important; }
|
|
186
|
-
.portable-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
@media (max-width: 560px) {
|
|
190
|
-
.portable-mobile-header { gap: 8px; padding-inline: 10px; }
|
|
191
|
-
.portable-mobile-header .portable-brand strong { max-width: 150px; }
|
|
192
|
-
.portable-page { min-height: 0; padding: 20px 14px 30px; }
|
|
193
|
-
.portable-page-header { margin-bottom: 16px; }
|
|
194
|
-
.portable-page-header h1 { font-size: 25px; }
|
|
195
|
-
.portable-stat-grid, .portable-form, .portable-task-fields, .portable-card-grid dl { grid-template-columns: 1fr; }
|
|
196
|
-
.portable-component { padding: 15px; border-radius: 12px; }
|
|
197
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
export declare const PORTABLE_WORKBENCH_COMPONENT_TYPES: readonly ["Typography", "Text", "Title", "Paragraph", "Statistic", "StatisticGroup", "Table", "EditableTable", "AnalyticsTable", "DataGridCard", "Chart", "EChartsChart", "RadarChart", "Form", "TaskInput", "TaskInputRenderer", "List", "Tabs", "Container", "Card", "CustomContent", "FilterPanel"];
|
|
2
|
-
export type PortableWorkbenchComponentType = typeof PORTABLE_WORKBENCH_COMPONENT_TYPES[number];
|
|
3
|
-
export type WorkbenchNavigationItem = {
|
|
4
|
-
key?: string;
|
|
5
|
-
title?: string | Record<string, string>;
|
|
6
|
-
icon?: string;
|
|
7
|
-
linkedPage?: string;
|
|
8
|
-
children?: WorkbenchNavigationItem[];
|
|
9
|
-
visibility?: {
|
|
10
|
-
devices?: Array<'desktop' | 'mobile'>;
|
|
11
|
-
};
|
|
12
|
-
[key: string]: unknown;
|
|
13
|
-
};
|
|
14
|
-
export type WorkbenchComponentConfig = {
|
|
15
|
-
id: string;
|
|
16
|
-
type: PortableWorkbenchComponentType | string;
|
|
17
|
-
props?: Record<string, unknown>;
|
|
18
|
-
components?: WorkbenchComponentConfig[];
|
|
19
|
-
children?: WorkbenchComponentConfig[];
|
|
20
|
-
customStyles?: Record<string, unknown>;
|
|
21
|
-
mockData?: unknown[];
|
|
22
|
-
[key: string]: unknown;
|
|
23
|
-
};
|
|
24
|
-
export type WorkbenchPageConfig = {
|
|
25
|
-
title?: string | Record<string, string>;
|
|
26
|
-
description?: string | Record<string, string>;
|
|
27
|
-
layout?: Record<string, unknown>;
|
|
28
|
-
components?: WorkbenchComponentConfig[];
|
|
29
|
-
customStyles?: Record<string, unknown>;
|
|
30
|
-
[key: string]: unknown;
|
|
31
|
-
};
|
|
32
|
-
export type WorkbenchAppConfig = {
|
|
33
|
-
appId?: string;
|
|
34
|
-
name?: string | Record<string, string>;
|
|
35
|
-
description?: string | Record<string, string>;
|
|
36
|
-
defaultPage?: string;
|
|
37
|
-
navigation?: {
|
|
38
|
-
items?: WorkbenchNavigationItem[];
|
|
39
|
-
};
|
|
40
|
-
[key: string]: unknown;
|
|
41
|
-
};
|
|
42
|
-
export type WorkbenchConfig = {
|
|
43
|
-
schemaVersion?: number;
|
|
44
|
-
appConfig?: WorkbenchAppConfig;
|
|
45
|
-
pages?: Record<string, WorkbenchPageConfig>;
|
|
46
|
-
metadata?: Record<string, unknown>;
|
|
47
|
-
[key: string]: unknown;
|
|
48
|
-
};
|
package/dist/workbench.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Stable compatibility runtime for GeniApps exported from Workbench.
|
|
3
|
-
*
|
|
4
|
-
* Applications should import only this public entry. The implementation is
|
|
5
|
-
* deliberately independent from the private Workbench editor and API source.
|
|
6
|
-
*/
|
|
7
|
-
export { mountWorkbench } from './workbench/runtime';
|
|
8
|
-
export { PORTABLE_WORKBENCH_COMPONENT_TYPES, type PortableWorkbenchComponentType, type WorkbenchAppConfig, type WorkbenchComponentConfig, type WorkbenchConfig, type WorkbenchNavigationItem, type WorkbenchPageConfig, } from './workbench/types';
|
package/dist/workbench.js
DELETED
|
@@ -1,356 +0,0 @@
|
|
|
1
|
-
function ce() {
|
|
2
|
-
const s = {
|
|
3
|
-
sourceConfig: null,
|
|
4
|
-
config: null,
|
|
5
|
-
root: null,
|
|
6
|
-
activePage: null,
|
|
7
|
-
activeTabs: /* @__PURE__ */ new Map(),
|
|
8
|
-
locale: "en",
|
|
9
|
-
theme: "light",
|
|
10
|
-
collapsed: !1,
|
|
11
|
-
mobileDrawerOpen: !1,
|
|
12
|
-
allowedShellOrigins: /* @__PURE__ */ new Set()
|
|
13
|
-
}, n = (e) => String(e ?? "").replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replaceAll('"', """).replaceAll("'", "'"), C = (e) => String(e || "").toLowerCase().startsWith("zh") ? "zh" : "en", x = (e) => e === "dark" ? "dark" : "light", y = (e) => e && typeof e == "object" && !Array.isArray(e), q = (e) => JSON.parse(JSON.stringify(e)), L = (e, t) => ["key", "dataIndex", "id", "value", "name"].map((r) => e?.[r]).find((r) => r != null && String(r).trim() !== "") ?? `__index_${t}`, A = (e, t) => {
|
|
14
|
-
if (Array.isArray(e) && Array.isArray(t)) {
|
|
15
|
-
const r = new Map(t.map((a, o) => [String(L(a, o)), a]));
|
|
16
|
-
return e.map((a, o) => {
|
|
17
|
-
const l = r.get(String(L(a, o)));
|
|
18
|
-
return y(a) && y(l) ? A(a, l) : a;
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
if (y(e) && y(t)) {
|
|
22
|
-
const r = { ...e };
|
|
23
|
-
return Object.entries(t).forEach(([a, o]) => {
|
|
24
|
-
o !== void 0 && (r[a] = A(r[a], o));
|
|
25
|
-
}), r;
|
|
26
|
-
}
|
|
27
|
-
return t === void 0 ? e : t;
|
|
28
|
-
}, k = (e, t) => {
|
|
29
|
-
const r = e?.id ? t?.[e.id] : null, a = r ? A(e, r) : { ...e };
|
|
30
|
-
return ["components", "children"].forEach((o) => {
|
|
31
|
-
Array.isArray(a[o]) && (a[o] = a[o].map((l) => k(l, t)));
|
|
32
|
-
}), Array.isArray(a.props?.components) && (a.props = { ...a.props, components: a.props.components.map((o) => k(o, t)) }), Array.isArray(a.props?.items) && (a.props = {
|
|
33
|
-
...a.props,
|
|
34
|
-
items: a.props.items.map((o) => ({
|
|
35
|
-
...o,
|
|
36
|
-
...o.component ? { component: k(o.component, t) } : {},
|
|
37
|
-
...Array.isArray(o.components) ? { components: o.components.map((l) => k(l, t)) } : {}
|
|
38
|
-
}))
|
|
39
|
-
}), a;
|
|
40
|
-
}, E = (e, t) => {
|
|
41
|
-
const r = q(e || {}), a = r.metadata?.locales?.[t];
|
|
42
|
-
return a && (a.appConfig && (r.appConfig = A(r.appConfig || {}, a.appConfig)), Object.entries(a.pages || {}).forEach(([o, l]) => {
|
|
43
|
-
const i = r.pages?.[o];
|
|
44
|
-
if (!i) return;
|
|
45
|
-
const p = { ...i };
|
|
46
|
-
l.title !== void 0 && (p.title = l.title), l.description !== void 0 && (p.description = l.description), Array.isArray(p.components) && (p.components = p.components.map((d) => k(d, l.components || {}))), r.pages[o] = p;
|
|
47
|
-
})), r;
|
|
48
|
-
}, B = () => s.sourceConfig?.metadata?.locales?.[s.locale]?.labels || {}, O = (e) => {
|
|
49
|
-
const t = String(e ?? ""), r = B();
|
|
50
|
-
return r[t] ? r[t] : Object.keys(r).sort((a, o) => o.length - a.length).reduce((a, o) => o && a.includes(o) ? a.split(o).join(r[o]) : a, t);
|
|
51
|
-
}, c = (e) => {
|
|
52
|
-
if (e == null) return "";
|
|
53
|
-
if (y(e)) {
|
|
54
|
-
const t = e[s.locale] ?? e.zh ?? e.en;
|
|
55
|
-
return t === void 0 || y(t) ? "" : O(t);
|
|
56
|
-
}
|
|
57
|
-
return O(e);
|
|
58
|
-
}, G = (e) => e.replace(/[A-Z]/g, (t) => `-${t.toLowerCase()}`), M = (e) => Object.entries(e || {}).filter(([, t]) => t != null && t !== "").map(([t, r]) => `${G(t)}:${String(r)}`).join(";"), H = (e) => {
|
|
59
|
-
const t = String(e || "");
|
|
60
|
-
return /@import|javascript:|expression\s*\(|url\s*\(\s*['"]?data:text\/html/i.test(t) ? "" : t;
|
|
61
|
-
}, N = (e, t) => {
|
|
62
|
-
const r = e?.customStyles || e?.props?.customStyles;
|
|
63
|
-
if (!r) return "";
|
|
64
|
-
const a = [];
|
|
65
|
-
Object.entries(r.childStyles || {}).forEach(([l, i]) => a.push(`${t} ${l}{${M(i)}}`)), Object.entries(r.stateStyles || {}).forEach(([l, i]) => {
|
|
66
|
-
const p = l.startsWith(":") ? l : `:${l}`;
|
|
67
|
-
a.push(`${t}${p}{${M(i)}}`);
|
|
68
|
-
});
|
|
69
|
-
const o = H(r.customCss);
|
|
70
|
-
return o && a.push(o.replaceAll("&", t)), a.length ? `<style>${a.join(`
|
|
71
|
-
`)}</style>` : "";
|
|
72
|
-
}, $ = (e, t = "portable-icon") => {
|
|
73
|
-
const a = {
|
|
74
|
-
LayoutDashboard: '<rect x="3" y="3" width="7" height="7" rx="1"/><rect x="14" y="3" width="7" height="7" rx="1"/><rect x="3" y="14" width="7" height="7" rx="1"/><rect x="14" y="14" width="7" height="7" rx="1"/>',
|
|
75
|
-
Activity: '<path d="M3 12h4l3-8 4 16 3-8h4"/>',
|
|
76
|
-
ClipboardList: '<rect x="5" y="4" width="14" height="17" rx="2"/><path d="M9 4V2h6v2M9 10h6M9 14h6M9 18h4"/>',
|
|
77
|
-
Menu: '<path d="M4 7h16M4 12h16M4 17h16"/>',
|
|
78
|
-
X: '<path d="m6 6 12 12M18 6 6 18"/>',
|
|
79
|
-
ChevronLeft: '<path d="m15 18-6-6 6-6"/>',
|
|
80
|
-
ChevronRight: '<path d="m9 18 6-6-6-6"/>',
|
|
81
|
-
Languages: '<path d="M4 5h7M7.5 3v2c0 4-2 7-5 9M5 9c1 2 3 4 6 5M13 20l4-9 4 9M14.5 17h5"/>',
|
|
82
|
-
Sun: '<circle cx="12" cy="12" r="4"/><path d="M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4"/>',
|
|
83
|
-
Moon: '<path d="M20 15.5A8.5 8.5 0 0 1 8.5 4 8.5 8.5 0 1 0 20 15.5Z"/>'
|
|
84
|
-
}[e] || '<circle cx="12" cy="12" r="8"/><path d="M9 12h6"/>';
|
|
85
|
-
return `<svg class="${t}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">${a}</svg>`;
|
|
86
|
-
}, I = (e, t) => {
|
|
87
|
-
if (e == null) return "—";
|
|
88
|
-
if (t?.render === "currency") {
|
|
89
|
-
const r = Number(e);
|
|
90
|
-
return Number.isFinite(r) ? new Intl.NumberFormat(s.locale === "zh" ? "zh-CN" : "en-US", { style: "currency", currency: "USD" }).format(r) : e;
|
|
91
|
-
}
|
|
92
|
-
return typeof e == "boolean" ? e ? "Yes" : "No" : Array.isArray(e) ? e.map(c).join(", ") : typeof e == "object" ? JSON.stringify(e) : c(e);
|
|
93
|
-
}, f = (e, t) => e ? `<div class="portable-section-heading"><div><h2>${n(c(e))}</h2>${t ? `<p>${n(c(t))}</p>` : ""}</div></div>` : "", W = (e) => {
|
|
94
|
-
const t = e.props || {}, r = t.content ?? t.text ?? t.children ?? t.title ?? "", a = String(t.variant || "paragraph").toLowerCase(), o = a === "title" || a.startsWith("h") ? a.match(/^h[1-6]$/)?.[0] || "h2" : "p";
|
|
95
|
-
return `<${o} class="portable-typography portable-typography-${n(a)}">${n(c(r))}</${o}>`;
|
|
96
|
-
}, U = (e) => {
|
|
97
|
-
const t = e.props || {}, r = t.items || e.mockData || [];
|
|
98
|
-
return `<div class="portable-stat-grid" style="--stat-columns:${Math.max(1, Math.min(6, Number(t.grid?.cols || t.columns || r.length || 1)))}">${r.map((o) => {
|
|
99
|
-
const l = o.trend, i = l?.type === "down" ? "down" : "up", p = l ? `${i === "down" ? "↓" : "↑"} ${l.value ?? ""}${l.suffix ?? ""}` : "";
|
|
100
|
-
return `<article class="portable-stat"><div class="portable-stat-title">${n(c(o.title || o.label))}</div><div class="portable-stat-value">${n(o.prefix || "")}${n(o.value)}${n(o.suffix || "")}</div>${l ? `<div class="portable-stat-trend ${i}">${n(p)} <span>${n(c(l.description || ""))}</span></div>` : ""}</article>`;
|
|
101
|
-
}).join("")}</div>`;
|
|
102
|
-
}, V = (e) => {
|
|
103
|
-
const t = e.props || {}, r = e.mockData || t.data || t.rows || [], a = t.columns?.length ? t.columns : Object.keys(r[0] || {}).map((o) => ({ key: o, dataIndex: o, title: o }));
|
|
104
|
-
return `${f(t.title, t.description)}<div class="portable-table-wrap"><table><thead><tr>${a.map((o) => `<th>${n(c(o.title || o.label || o.key))}</th>`).join("")}</tr></thead><tbody>${r.map((o) => `<tr>${a.map((l) => `<td>${n(I(o[l.dataIndex || l.key], l))}</td>`).join("")}</tr>`).join("")}</tbody></table>${r.length === 0 ? '<div class="portable-empty">No data</div>' : ""}</div>`;
|
|
105
|
-
}, K = (e) => {
|
|
106
|
-
const t = e.props || {}, r = e.mockData || t.mockData || t.data || t.rows || [], a = t.columns || [], o = a.find((d) => d.primary) || a[0], l = a.find((d) => d.secondary) || a[1], i = a.filter((d) => d !== o && d !== l), p = (d, h) => {
|
|
107
|
-
const w = d?.[h?.dataIndex || h?.key], b = h?.render?.text?.[w] ?? w;
|
|
108
|
-
if (h?.render?.type === "Progress") {
|
|
109
|
-
const g = Math.max(0, Math.min(100, Number(w) || 0));
|
|
110
|
-
return `<span class="portable-progress"><span style="width:${g}%"></span></span><small>${n(`${g}%`)}</small>`;
|
|
111
|
-
}
|
|
112
|
-
return h?.render?.type === "Tag" ? `<span class="portable-tag">${n(c(b))}</span>` : n(I(b, h));
|
|
113
|
-
};
|
|
114
|
-
return `${f(t.title, t.description)}${t.showSearch ? `<div class="portable-grid-search"><input type="search" placeholder="${n(c(t.searchPlaceholder || "Search..."))}" /></div>` : ""}<div class="portable-card-grid">${r.map((d) => `<article><header><div><strong>${o ? p(d, o) : ""}</strong>${l ? `<p>${p(d, l)}</p>` : ""}</div><span aria-hidden="true">›</span></header>${i.length ? `<dl>${i.map((h) => `<div><dt>${n(c(h.title || h.label || h.key))}</dt><dd>${p(d, h)}</dd></div>`).join("")}</dl>` : ""}</article>`).join("")}${r.length === 0 ? '<div class="portable-empty">No data</div>' : ""}</div>`;
|
|
115
|
-
}, J = (e) => Object.entries(e || {}).filter(([, t]) => typeof t == "number"), Z = (e) => {
|
|
116
|
-
const t = e.props || {}, r = e.mockData || t.data || [], a = r.map((b) => J(b)[0]?.[1] || 0), o = r.map((b, g) => c(Object.values(b).find((m) => typeof m == "string") || g + 1)), l = Math.max(...a, 1), i = 720, p = Math.max(180, Number(t.height || 260)), d = String(t.chartType || t.type || "bar").toLowerCase();
|
|
117
|
-
let h = "";
|
|
118
|
-
if (d.includes("line")) {
|
|
119
|
-
const b = a.map((g, m) => {
|
|
120
|
-
const v = a.length === 1 ? i / 2 : 24 + m * ((i - 48) / Math.max(1, a.length - 1)), ie = p - 36 - g / l * (p - 72);
|
|
121
|
-
return `${v},${ie}`;
|
|
122
|
-
}).join(" ");
|
|
123
|
-
h = `<polyline points="${b}" fill="none" stroke="var(--portable-accent)" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/>${b.split(" ").map((g) => {
|
|
124
|
-
const [m, v] = g.split(",");
|
|
125
|
-
return `<circle cx="${m}" cy="${v}" r="5" fill="var(--portable-surface)" stroke="var(--portable-accent)" stroke-width="3"/>`;
|
|
126
|
-
}).join("")}`;
|
|
127
|
-
} else {
|
|
128
|
-
const b = (i - 48) / Math.max(1, a.length);
|
|
129
|
-
h = a.map((g, m) => {
|
|
130
|
-
const v = g / l * (p - 72);
|
|
131
|
-
return `<rect x="${24 + m * b + b * 0.16}" y="${p - 36 - v}" width="${b * 0.68}" height="${v}" rx="5" fill="var(--portable-accent)" opacity="${0.7 + m % 3 * 0.12}"/>`;
|
|
132
|
-
}).join("");
|
|
133
|
-
}
|
|
134
|
-
const w = o.map((b, g) => `<text x="${a.length === 1 ? i / 2 : 24 + g * ((i - 48) / Math.max(1, a.length - 1))}" y="${p - 10}" text-anchor="middle">${n(b)}</text>`).join("");
|
|
135
|
-
return `${f(t.title, t.description)}<div class="portable-chart"><svg viewBox="0 0 ${i} ${p}" role="img" aria-label="${n(c(t.title || "Chart"))}">${h}${w}</svg></div>`;
|
|
136
|
-
}, D = (e) => {
|
|
137
|
-
const t = e.props || {}, r = t.fields || t.items || [];
|
|
138
|
-
return `${f(t.title, t.description)}<form class="portable-form" onsubmit="return false">${r.map((a) => {
|
|
139
|
-
const l = (a.type === "textarea" ? "textarea" : "input") === "textarea" ? `<textarea placeholder="${n(c(a.placeholder || ""))}">${n(c(a.defaultValue || ""))}</textarea>` : `<input type="${n(a.type === "number" ? "number" : "text")}" value="${n(c(a.defaultValue || ""))}" placeholder="${n(c(a.placeholder || ""))}"/>`;
|
|
140
|
-
return `<label><span>${n(c(a.label || a.title || a.name))}</span>${l}</label>`;
|
|
141
|
-
}).join("")}<button type="button">${n(c(t.submitButtonText || t.submitText || "Submit"))}</button></form>`;
|
|
142
|
-
}, Y = (e) => {
|
|
143
|
-
const t = e.props || {}, r = t.title || e.mockTitle, a = t.description || e.mockDescription, o = t.mockFileData?.files || e.mockFileData?.files || [], l = t.fields || e.parameterConfig?.fields || [];
|
|
144
|
-
return `${f(t.showTitle === !1 ? "" : r, t.showDescription === !1 ? "" : a)}<div class="portable-task-input">${l.length ? `<div class="portable-task-fields">${l.map((i) => `<label><span>${n(c(i.label || i.title || i.name))}</span><input type="text" placeholder="${n(c(i.placeholder || ""))}" /></label>`).join("")}</div>` : ""}<label class="portable-file-drop"><input type="file" multiple /><span class="portable-file-icon">↑</span><strong>${n(c(t.uploadText || "Choose files or drop them here"))}</strong><small>${n(c(t.uploadHint || "Files remain local in this portable preview"))}</small></label>${o.length ? `<div class="portable-file-list">${o.map((i) => `<div><span>${n(i.name || "File")}</span><small>${n(i.type || "")}</small></div>`).join("")}</div>` : ""}<button type="button" class="portable-task-submit">${n(c(t.submitButtonText || "Run task"))}</button></div>`;
|
|
145
|
-
}, X = (e) => {
|
|
146
|
-
const t = e.props || {}, r = e.mockData || t.items || [];
|
|
147
|
-
return `${f(t.title, t.description)}<div class="portable-list">${r.map((a) => {
|
|
148
|
-
const o = typeof a == "object" ? a.title || a.name || a.label || Object.values(a)[0] : a, l = typeof a == "object" ? a.description || a.subtitle || Object.values(a)[1] : "";
|
|
149
|
-
return `<article><strong>${n(c(o))}</strong>${l ? `<p>${n(c(l))}</p>` : ""}</article>`;
|
|
150
|
-
}).join("")}</div>`;
|
|
151
|
-
}, Q = (e) => {
|
|
152
|
-
const t = e.props || {}, r = t.items || t.tabs || [], a = s.activeTabs.get(e.id) || r[0]?.key || r[0]?.id, o = r.find((i) => (i.key || i.id) === a) || r[0], l = o?.components || (o?.component ? [o.component] : []);
|
|
153
|
-
return `<div class="portable-tabs" data-tabs="${n(e.id)}"><div class="portable-tab-list">${r.map((i) => `<button type="button" data-tab-key="${n(i.key || i.id)}" class="${(i.key || i.id) === a ? "active" : ""}">${n(c(i.title || i.label))}</button>`).join("")}</div><div class="portable-tab-panel">${l.map(T).join("") || n(c(o?.content || ""))}</div></div>`;
|
|
154
|
-
}, ee = (e) => {
|
|
155
|
-
const t = e.props || {}, r = e.components || e.children || t.components || t.children;
|
|
156
|
-
return Array.isArray(r) ? `<div class="portable-container">${r.map(T).join("")}</div>` : `${f(t.title, t.subtitle)}${t.content ? `<p>${n(c(t.content))}</p>` : ""}`;
|
|
157
|
-
}, te = (e) => {
|
|
158
|
-
const t = document.createElement("template");
|
|
159
|
-
return t.innerHTML = String(e || ""), t.content.querySelectorAll("script,iframe,object,embed,link,meta").forEach((r) => r.remove()), t.content.querySelectorAll("*").forEach((r) => {
|
|
160
|
-
[...r.attributes].forEach((a) => {
|
|
161
|
-
(/^on/i.test(a.name) || /javascript:/i.test(a.value)) && r.removeAttribute(a.name);
|
|
162
|
-
});
|
|
163
|
-
}), t.innerHTML;
|
|
164
|
-
};
|
|
165
|
-
function T(e) {
|
|
166
|
-
const t = e?.props || {}, r = `portable-component-${String(e?.id || "anonymous").replace(/[^a-zA-Z0-9_-]/g, "-")}`, a = e?.customStyles?.rootStyles || t.customStyles?.rootStyles || {};
|
|
167
|
-
let o;
|
|
168
|
-
switch (e?.type) {
|
|
169
|
-
case "Typography":
|
|
170
|
-
case "Text":
|
|
171
|
-
case "Title":
|
|
172
|
-
case "Paragraph":
|
|
173
|
-
o = W(e);
|
|
174
|
-
break;
|
|
175
|
-
case "Statistic":
|
|
176
|
-
case "StatisticGroup":
|
|
177
|
-
o = U(e);
|
|
178
|
-
break;
|
|
179
|
-
case "Table":
|
|
180
|
-
case "EditableTable":
|
|
181
|
-
case "AnalyticsTable":
|
|
182
|
-
o = V(e);
|
|
183
|
-
break;
|
|
184
|
-
case "DataGridCard":
|
|
185
|
-
o = K(e);
|
|
186
|
-
break;
|
|
187
|
-
case "Chart":
|
|
188
|
-
case "EChartsChart":
|
|
189
|
-
case "RadarChart":
|
|
190
|
-
o = Z(e);
|
|
191
|
-
break;
|
|
192
|
-
case "Form":
|
|
193
|
-
o = D(e);
|
|
194
|
-
break;
|
|
195
|
-
case "TaskInput":
|
|
196
|
-
case "TaskInputRenderer":
|
|
197
|
-
o = Y(e);
|
|
198
|
-
break;
|
|
199
|
-
case "List":
|
|
200
|
-
o = X(e);
|
|
201
|
-
break;
|
|
202
|
-
case "Tabs":
|
|
203
|
-
o = Q(e);
|
|
204
|
-
break;
|
|
205
|
-
case "Container":
|
|
206
|
-
case "Card":
|
|
207
|
-
o = ee(e);
|
|
208
|
-
break;
|
|
209
|
-
case "CustomContent":
|
|
210
|
-
o = te(t.html || t.content || "");
|
|
211
|
-
break;
|
|
212
|
-
case "FilterPanel":
|
|
213
|
-
o = D({ ...e, props: { ...t, submitText: t.submitText || "Apply filters" } });
|
|
214
|
-
break;
|
|
215
|
-
default:
|
|
216
|
-
o = `<div class="portable-unsupported">Unsupported component: ${n(e?.type)}</div>`;
|
|
217
|
-
}
|
|
218
|
-
return `${N(e, `.${r}`)}<section class="portable-component ${r} portable-type-${n(e?.type || "unknown")}" style="${n(M(a))}" data-component-id="${n(e?.id)}">${o}</section>`;
|
|
219
|
-
}
|
|
220
|
-
const z = (e, t) => !e?.visibility?.devices?.length || e.visibility.devices.includes(t), R = (e, t) => {
|
|
221
|
-
if (!z(e, t)) return null;
|
|
222
|
-
if (e.linkedPage) return e.linkedPage;
|
|
223
|
-
for (const r of e.children || []) {
|
|
224
|
-
const a = R(r, t);
|
|
225
|
-
if (a) return a;
|
|
226
|
-
}
|
|
227
|
-
return null;
|
|
228
|
-
}, _ = (e, t, r = 0) => (e || []).flatMap((a) => z(a, t) ? (a.linkedPage ? [{ ...a, depth: r }] : []).concat(_(a.children, t, r + 1)) : []), ae = (e) => (e || []).flatMap((t) => {
|
|
229
|
-
const r = R(t, "mobile");
|
|
230
|
-
return r ? [{ ...t, linkedPage: r }] : [];
|
|
231
|
-
}), F = (e, t) => _(e, t).map((r) => `
|
|
232
|
-
<button type="button" data-page="${n(r.linkedPage)}" class="portable-nav-item ${r.linkedPage === s.activePage ? "active" : ""}" style="--nav-depth:${r.depth}">
|
|
233
|
-
${$(r.icon)}<span>${n(c(r.title || r.key))}</span>
|
|
234
|
-
</button>`).join(""), j = (e = !1) => `<div class="portable-controls ${e ? "compact" : ""}">
|
|
235
|
-
<button type="button" data-locale-toggle aria-label="Change language">${$("Languages")}<span>${s.locale === "zh" ? "EN" : "ZH"}</span></button>
|
|
236
|
-
<button type="button" data-theme-toggle aria-label="Change color theme">${$(s.theme === "dark" ? "Sun" : "Moon")}<span>${s.theme === "dark" ? "Light" : "Dark"}</span></button>
|
|
237
|
-
</div>`, P = (e = !1) => {
|
|
238
|
-
const t = s.config.appConfig || {};
|
|
239
|
-
return `<div class="portable-brand ${e ? "collapsed" : ""}"><span>${n(c(t.name || "G").slice(0, 1))}</span>${e ? "" : `<div><strong>${n(c(t.name || "GeniApp"))}</strong><small>${n(c(t.description || "Exported from Workbench"))}</small></div>`}</div>`;
|
|
240
|
-
}, re = () => {
|
|
241
|
-
const e = s.config.pages?.[s.activePage] || Object.values(s.config.pages || {})[0], t = s.activePage || Object.keys(s.config.pages || {})[0];
|
|
242
|
-
if (!e) return '<main class="portable-page"><div class="portable-empty">No pages were exported.</div></main>';
|
|
243
|
-
const r = `.portable-page-${String(t).replace(/[^a-zA-Z0-9_-]/g, "-")}`, a = e.customStyles?.rootStyles || {}, l = (e.layout?.type === "grid-24" ? e.layout.components || [] : []).reduce((p, d) => (d?.id && (p[d.id] = d), p), e.layout?.placements || {}), i = (e.components || []).map((p) => {
|
|
244
|
-
const d = l[p.id];
|
|
245
|
-
return `<div class="portable-placement" style="${d ? `grid-column:${Number(d.colStart || 0) + 1} / span ${Number(d.colSpan || 24)};grid-row:${Number(d.rowStart || 0) + 1} / span ${Number(d.rowSpan || 1)};` : ""}">${T(p)}</div>`;
|
|
246
|
-
}).join("");
|
|
247
|
-
return `${N(e, r)}<main class="portable-page ${r}" style="${n(M(a))}"><header class="portable-page-header"><div><span class="portable-eyebrow">${n(c(s.config.appConfig?.name || ""))}</span><h1>${n(c(e.title || t))}</h1>${e.description ? `<p>${n(c(e.description))}</p>` : ""}</div></header><div class="portable-page-grid ${e.layout?.type === "grid-24" ? "grid-24" : ""}">${i}</div></main>`;
|
|
248
|
-
}, S = () => {
|
|
249
|
-
document.documentElement.lang = s.locale === "zh" ? "zh-CN" : "en", document.documentElement.classList.toggle("dark", s.theme === "dark"), document.documentElement.dataset.colorMode = s.theme, document.documentElement.style.colorScheme = s.theme;
|
|
250
|
-
}, oe = (e) => {
|
|
251
|
-
s.locale = C(e), s.config = E(s.sourceConfig, s.locale);
|
|
252
|
-
try {
|
|
253
|
-
localStorage.setItem("language", s.locale);
|
|
254
|
-
} catch {
|
|
255
|
-
}
|
|
256
|
-
S(), u();
|
|
257
|
-
}, se = (e) => {
|
|
258
|
-
s.theme = x(e);
|
|
259
|
-
try {
|
|
260
|
-
localStorage.setItem("theme", s.theme);
|
|
261
|
-
} catch {
|
|
262
|
-
}
|
|
263
|
-
S(), u();
|
|
264
|
-
}, ne = (e) => {
|
|
265
|
-
s.config.pages?.[e] && (s.activePage = e, s.mobileDrawerOpen = !1, decodeURIComponent(window.location.hash.replace(/^#/, "")) !== e && (window.location.hash = encodeURIComponent(e)), u());
|
|
266
|
-
}, le = () => {
|
|
267
|
-
window.addEventListener("message", (e) => {
|
|
268
|
-
const t = e.data;
|
|
269
|
-
if (!t || t.v !== 1 || typeof t != "object") return;
|
|
270
|
-
const r = e.origin.replace(/\/$/, "");
|
|
271
|
-
if (t.type === "GENISPACE_SHELL_INIT") {
|
|
272
|
-
const a = t.payload || {}, o = [a.shellOrigin, ...Array.isArray(a.allowedShellOrigins) ? a.allowedShellOrigins : []].filter(Boolean).map((l) => String(l).replace(/\/$/, ""));
|
|
273
|
-
if (o.length && !o.includes(r)) return;
|
|
274
|
-
s.allowedShellOrigins = new Set(o.length ? o : [r]), a.locale && (s.locale = C(a.locale)), a.theme && (s.theme = x(a.theme)), s.config = E(s.sourceConfig, s.locale), S(), u(), window.parent.postMessage({ type: "GENISPACE_IFRAME_READY", v: 1, identifier: s.config.appConfig?.appId || "" }, e.origin);
|
|
275
|
-
return;
|
|
276
|
-
}
|
|
277
|
-
t.type === "GENISPACE_SHELL_UI" && s.allowedShellOrigins.has(r) && (t.locale && (s.locale = C(t.locale)), t.theme && (s.theme = x(t.theme)), s.config = E(s.sourceConfig, s.locale), S(), u());
|
|
278
|
-
});
|
|
279
|
-
};
|
|
280
|
-
function u() {
|
|
281
|
-
const e = s.root;
|
|
282
|
-
if (!e || !s.config) return;
|
|
283
|
-
const t = s.config.appConfig?.navigation?.items || [], r = ae(t);
|
|
284
|
-
e.innerHTML = `<div class="portable-shell ${s.collapsed ? "sidebar-collapsed" : ""}">
|
|
285
|
-
<aside class="portable-sidebar">
|
|
286
|
-
<div class="portable-sidebar-header">${P(s.collapsed)}</div>
|
|
287
|
-
<button type="button" class="portable-collapse" data-collapse aria-label="${s.collapsed ? "Expand sidebar" : "Collapse sidebar"}">${$(s.collapsed ? "ChevronRight" : "ChevronLeft")}</button>
|
|
288
|
-
<nav aria-label="Application navigation">${F(t, "desktop")}</nav>
|
|
289
|
-
<footer>${j(s.collapsed)}</footer>
|
|
290
|
-
</aside>
|
|
291
|
-
<header class="portable-mobile-header"><button type="button" data-mobile-drawer aria-label="Open navigation">${$("Menu")}</button>${P(!1)}${j(!0)}</header>
|
|
292
|
-
${s.mobileDrawerOpen ? `<div class="portable-mobile-backdrop" data-mobile-close></div><aside class="portable-mobile-drawer"><div class="portable-mobile-drawer-close"><button type="button" data-mobile-close aria-label="Close navigation">${$("X")}</button></div><div class="portable-sidebar-header">${P(!1)}</div><nav>${F(t, "mobile")}</nav><footer>${j(!1)}</footer></aside>` : ""}
|
|
293
|
-
<div class="portable-content">${re()}</div>
|
|
294
|
-
<nav class="portable-mobile-nav" aria-label="Workbench bottom navigation">${r.map((a) => `<button type="button" data-page="${n(a.linkedPage)}" class="${a.linkedPage === s.activePage ? "active" : ""}" aria-current="${a.linkedPage === s.activePage ? "page" : "false"}">${$(a.icon)}<span>${n(c(a.title || a.key))}</span></button>`).join("")}</nav>
|
|
295
|
-
</div>`, e.querySelectorAll("[data-page]").forEach((a) => a.addEventListener("click", () => ne(a.dataset.page))), e.querySelectorAll("[data-tabs] [data-tab-key]").forEach((a) => a.addEventListener("click", () => {
|
|
296
|
-
const o = a.closest("[data-tabs]");
|
|
297
|
-
s.activeTabs.set(o.dataset.tabs, a.dataset.tabKey), u();
|
|
298
|
-
})), e.querySelectorAll("[data-locale-toggle]").forEach((a) => a.addEventListener("click", () => oe(s.locale === "zh" ? "en" : "zh"))), e.querySelectorAll("[data-theme-toggle]").forEach((a) => a.addEventListener("click", () => se(s.theme === "dark" ? "light" : "dark"))), e.querySelector("[data-collapse]")?.addEventListener("click", () => {
|
|
299
|
-
s.collapsed = !s.collapsed;
|
|
300
|
-
try {
|
|
301
|
-
localStorage.setItem("portable_sidebar_collapsed", JSON.stringify(s.collapsed));
|
|
302
|
-
} catch {
|
|
303
|
-
}
|
|
304
|
-
u();
|
|
305
|
-
}), e.querySelector("[data-mobile-drawer]")?.addEventListener("click", () => {
|
|
306
|
-
s.mobileDrawerOpen = !0, u();
|
|
307
|
-
}), e.querySelectorAll("[data-mobile-close]").forEach((a) => a.addEventListener("click", () => {
|
|
308
|
-
s.mobileDrawerOpen = !1, u();
|
|
309
|
-
}));
|
|
310
|
-
}
|
|
311
|
-
return { mountWorkbench: (e, t) => {
|
|
312
|
-
if (!e) throw new Error("A root element is required.");
|
|
313
|
-
s.root = e, s.sourceConfig = t || {};
|
|
314
|
-
const r = new URLSearchParams(window.location.search);
|
|
315
|
-
let a = "", o = "", l = !1;
|
|
316
|
-
try {
|
|
317
|
-
a = localStorage.getItem("language") || "", o = localStorage.getItem("theme") || "", l = JSON.parse(localStorage.getItem("portable_sidebar_collapsed") || "false");
|
|
318
|
-
} catch {
|
|
319
|
-
}
|
|
320
|
-
s.locale = C(r.get("lng") || a || document.documentElement.lang || "en"), s.theme = x(r.get("theme") || o || (window.matchMedia?.("(prefers-color-scheme: dark)").matches ? "dark" : "light")), s.collapsed = !!l, s.config = E(s.sourceConfig, s.locale);
|
|
321
|
-
const i = decodeURIComponent(window.location.hash.replace(/^#/, ""));
|
|
322
|
-
s.activePage = s.config.pages?.[i] ? i : s.config.appConfig?.defaultPage || Object.keys(s.config.pages || {})[0], s.allowedShellOrigins.add(window.location.origin.replace(/\/$/, "")), S(), le(), window.addEventListener("hashchange", () => {
|
|
323
|
-
const p = decodeURIComponent(window.location.hash.replace(/^#/, ""));
|
|
324
|
-
s.config.pages?.[p] && p !== s.activePage && (s.activePage = p, u());
|
|
325
|
-
}), u(), window.parent !== window && window.parent.postMessage({ type: "GENIAPP_READY", app: s.config.appConfig?.appId || "" }, "*");
|
|
326
|
-
} };
|
|
327
|
-
}
|
|
328
|
-
const pe = ce(), he = pe.mountWorkbench, be = [
|
|
329
|
-
"Typography",
|
|
330
|
-
"Text",
|
|
331
|
-
"Title",
|
|
332
|
-
"Paragraph",
|
|
333
|
-
"Statistic",
|
|
334
|
-
"StatisticGroup",
|
|
335
|
-
"Table",
|
|
336
|
-
"EditableTable",
|
|
337
|
-
"AnalyticsTable",
|
|
338
|
-
"DataGridCard",
|
|
339
|
-
"Chart",
|
|
340
|
-
"EChartsChart",
|
|
341
|
-
"RadarChart",
|
|
342
|
-
"Form",
|
|
343
|
-
"TaskInput",
|
|
344
|
-
"TaskInputRenderer",
|
|
345
|
-
"List",
|
|
346
|
-
"Tabs",
|
|
347
|
-
"Container",
|
|
348
|
-
"Card",
|
|
349
|
-
"CustomContent",
|
|
350
|
-
"FilterPanel"
|
|
351
|
-
];
|
|
352
|
-
export {
|
|
353
|
-
be as PORTABLE_WORKBENCH_COMPONENT_TYPES,
|
|
354
|
-
he as mountWorkbench
|
|
355
|
-
};
|
|
356
|
-
//# sourceMappingURL=workbench.js.map
|