@happyvertical/smrt-planner 0.0.1 → 0.1.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 +81 -8
- package/app/404.html +42 -49
- package/app/_app/immutable/assets/0.BvXq1Svw.css +1 -0
- package/app/_app/immutable/assets/10.CdYxvH4G.css +1 -0
- package/app/_app/immutable/assets/11.nOT5Z4Fv.css +1 -0
- package/app/_app/immutable/assets/12.F7A7zP4J.css +1 -0
- package/app/_app/immutable/assets/13.JoySu8W5.css +1 -0
- package/app/_app/immutable/assets/14.nsp62-4b.css +1 -0
- package/app/_app/immutable/assets/2.CbPiqdz5.css +1 -0
- package/app/_app/immutable/assets/3.D518dbB5.css +1 -0
- package/app/_app/immutable/assets/4.B3vt1gMJ.css +1 -0
- package/app/_app/immutable/assets/AiSetup.4fXjMpTZ.css +1 -0
- package/app/_app/immutable/assets/AppShell.DKPbJFmw.css +1 -0
- package/app/_app/immutable/assets/ConnectTools.DTleL8YA.css +1 -0
- package/app/_app/immutable/assets/FieldMapForm.C8SZ3t4N.css +1 -0
- package/app/_app/immutable/assets/ModelPage.DzDhJQz3.css +1 -0
- package/app/_app/immutable/assets/SectionActions.BE1CPmxk.css +1 -0
- package/app/_app/immutable/assets/SectionIcons.BGFcFuOf.css +1 -0
- package/app/_app/immutable/assets/SegmentedControl.T_hJQXHk.css +1 -0
- package/app/_app/immutable/assets/app.BS7nbUi0.css +1 -0
- package/app/_app/immutable/assets/currency-metadata.CJIy0Dzm.css +1 -0
- package/app/_app/immutable/assets/data.DQcbQG_b.css +1 -0
- package/app/_app/immutable/assets/feedback.FjY5wqsa.css +1 -0
- package/app/_app/immutable/assets/forms.DA06CFM9.css +1 -0
- package/app/_app/immutable/assets/labels.Dny6zd23.css +1 -0
- package/app/_app/immutable/assets/percent.CBivq97O.css +1 -0
- package/app/_app/immutable/assets/state.C9Put0ur.css +1 -0
- package/app/_app/immutable/assets/webmcp-ui-context.CC5pQLNE.css +1 -0
- package/app/_app/immutable/assets/workspace.Dtoe2fRU.css +1 -0
- package/app/_app/immutable/chunks/3ouNUakh.js +1 -0
- package/app/_app/immutable/chunks/B3FAegW4.js +4 -0
- package/app/_app/immutable/chunks/B8iReL-r.js +1 -0
- package/app/_app/immutable/chunks/BCmdRE3j.js +4 -0
- package/app/_app/immutable/chunks/BV3NwM01.js +1 -0
- package/app/_app/immutable/chunks/BVicq_6F.js +1 -0
- package/app/_app/immutable/chunks/Ba1g71Sq.js +1 -0
- package/app/_app/immutable/chunks/BdjvgMW6.js +1 -0
- package/app/_app/immutable/chunks/BiO_bqNH.js +2 -0
- package/app/_app/immutable/chunks/{DyGfbRG-.js → BrorvU4B.js} +1 -1
- package/app/_app/immutable/chunks/By-QJdbA.js +980 -0
- package/app/_app/immutable/chunks/{CyUMm_Wp.js → BzITuwgY.js} +1 -1
- package/app/_app/immutable/chunks/BzMfoxBk.js +1 -0
- package/app/_app/immutable/chunks/C-AoRalq.js +1 -0
- package/app/_app/immutable/chunks/CGKL_Nlh.js +1 -0
- package/app/_app/immutable/chunks/CNj-_B0j.js +1 -0
- package/app/_app/immutable/chunks/CU8cbxOZ.js +1 -0
- package/app/_app/immutable/chunks/CZGhPAoL.js +2 -0
- package/app/_app/immutable/chunks/CaEdOwVf.js +1 -0
- package/app/_app/immutable/chunks/Cas1hq-y.js +1 -0
- package/app/_app/immutable/chunks/CfOMUCNN.js +1 -0
- package/app/_app/immutable/chunks/Cm0VMWZu.js +1 -0
- package/app/_app/immutable/chunks/CsmXMAyE.js +1 -0
- package/app/_app/immutable/chunks/{BWPhGFHl.js → D0FW0z6R.js} +1 -1
- package/app/_app/immutable/chunks/D3nyL-ZK.js +1 -0
- package/app/_app/immutable/chunks/DEe2Vsu9.js +1 -0
- package/app/_app/immutable/chunks/DTs3DOB0.js +10 -0
- package/app/_app/immutable/chunks/Dm6R8q7G.js +1 -0
- package/app/_app/immutable/chunks/Dreozana.js +1 -0
- package/app/_app/immutable/chunks/Dx8H44Wq.js +2 -0
- package/app/_app/immutable/chunks/DxR35SQx.js +24 -0
- package/app/_app/immutable/chunks/EcFojPiU.js +11 -0
- package/app/_app/immutable/chunks/JBS2nHGN.js +1 -0
- package/app/_app/immutable/chunks/TjbilXEg.js +1 -0
- package/app/_app/immutable/chunks/ZLqixH7j.js +9 -0
- package/app/_app/immutable/chunks/auwiz8v4.js +1 -0
- package/app/_app/immutable/chunks/dbZ3U29n.js +1 -0
- package/app/_app/immutable/chunks/{D333l2GL.js → gHjidpzw.js} +2 -2
- package/app/_app/immutable/chunks/vNEnXNLV.js +3 -0
- package/app/_app/immutable/entry/app.vuScBcN4.js +2 -0
- package/app/_app/immutable/entry/start.C_vMied2.js +1 -0
- package/app/_app/immutable/nodes/0.BeNJfVow.js +9 -0
- package/app/_app/immutable/nodes/1.huiLmf4w.js +1 -0
- package/app/_app/immutable/nodes/10.B3buyRS-.js +3 -0
- package/app/_app/immutable/nodes/11.FNeDQehr.js +1 -0
- package/app/_app/immutable/nodes/12.umrKgKLQ.js +4 -0
- package/app/_app/immutable/nodes/13.DFr7i0IY.js +1 -0
- package/app/_app/immutable/nodes/14.BNgJ8cEq.js +1 -0
- package/app/_app/immutable/nodes/2.B3v0JtfB.js +24 -0
- package/app/_app/immutable/nodes/3.FLW3AkwU.js +1 -0
- package/app/_app/immutable/nodes/4.50B7EkB9.js +1 -0
- package/app/_app/immutable/nodes/5.Din7W_Et.js +1 -0
- package/app/_app/immutable/nodes/6.7dOUE7nr.js +1 -0
- package/app/_app/immutable/nodes/7.C4XsW0qI.js +1 -0
- package/app/_app/immutable/nodes/8.D_MREd8V.js +1 -0
- package/app/_app/immutable/nodes/9.cn87hhI-.js +1 -0
- package/app/_app/version.json +1 -1
- package/app/advanced-styles/index.html +84 -0
- package/app/ai/index.html +60 -52
- package/app/blueprint/index.html +46 -53
- package/app/cookbook/index.html +46 -53
- package/app/index.html +92 -64
- package/app/m/ads/AdDeliveryTier/index.html +52 -59
- package/app/m/ads/AdEvent/index.html +52 -59
- package/app/m/ads/AdFormat/index.html +52 -59
- package/app/m/ads/AdGroup/index.html +52 -59
- package/app/m/ads/AdVariation/index.html +52 -59
- package/app/m/analytics/AnalyticsDataStream/index.html +52 -59
- package/app/m/analytics/AnalyticsEvent/index.html +52 -59
- package/app/m/analytics/AnalyticsProperty/index.html +52 -59
- package/app/m/analytics/AnalyticsReport/index.html +52 -59
- package/app/m/approvals/ApprovalEvent/index.html +52 -59
- package/app/m/approvals/ApprovalPolicy/index.html +52 -59
- package/app/m/approvals/ApprovalRequest/index.html +52 -59
- package/app/m/assets/Asset/attachments/index.html +91 -0
- package/app/m/assets/Asset/index.html +52 -59
- package/app/m/assets/AssetAssociation/index.html +53 -60
- package/app/m/assets/AssetMetafield/index.html +52 -59
- package/app/m/assets/AssetStatus/index.html +52 -59
- package/app/m/assets/AssetType/index.html +52 -59
- package/app/m/assets/Folder/index.html +52 -59
- package/app/m/chat/AgentSession/index.html +52 -59
- package/app/m/chat/ChatMessage/index.html +53 -60
- package/app/m/chat/ChatParticipant/index.html +53 -60
- package/app/m/chat/ChatReaction/index.html +52 -59
- package/app/m/chat/ChatRoom/index.html +52 -59
- package/app/m/chat/ChatThread/index.html +53 -60
- package/app/m/chat/VoiceGatewayTurn/index.html +52 -59
- package/app/m/chat/VoiceSession/index.html +52 -59
- package/app/m/commerce/Agreement/index.html +52 -59
- package/app/m/commerce/Cart/index.html +52 -59
- package/app/m/commerce/Contract/index.html +52 -59
- package/app/m/commerce/ContractLineItem/index.html +53 -60
- package/app/m/commerce/Customer/index.html +52 -59
- package/app/m/commerce/DocumentTax/index.html +89 -0
- package/app/m/commerce/Estimate/index.html +52 -59
- package/app/m/commerce/Fulfillment/index.html +52 -59
- package/app/m/commerce/FulfillmentLineItem/index.html +53 -60
- package/app/m/commerce/Invoice/index.html +52 -59
- package/app/m/commerce/InvoiceLineItem/index.html +53 -60
- package/app/m/commerce/Lease/index.html +52 -59
- package/app/m/commerce/LicenseSale/index.html +52 -59
- package/app/m/commerce/Order/index.html +52 -59
- package/app/m/commerce/Payment/index.html +52 -59
- package/app/m/commerce/PaymentAllocation/index.html +53 -60
- package/app/m/commerce/PaymentInstrument/index.html +52 -59
- package/app/m/commerce/PaymentIntent/index.html +52 -59
- package/app/m/commerce/Payout/index.html +52 -59
- package/app/m/commerce/ProductionOrder/index.html +52 -59
- package/app/m/commerce/PurchaseContract/index.html +89 -0
- package/app/m/commerce/PurchaseOrder/index.html +52 -59
- package/app/m/commerce/SalesContract/index.html +89 -0
- package/app/m/commerce/SupplierQuote/index.html +89 -0
- package/app/m/commerce/TaxCode/index.html +89 -0
- package/app/m/commerce/TaxComponent/index.html +89 -0
- package/app/m/commerce/TaxSettings/index.html +89 -0
- package/app/m/commerce/TaxSummaryReport/index.html +89 -0
- package/app/m/commerce/Vendor/index.html +52 -59
- package/app/m/commerce/WholesaleOrder/index.html +52 -59
- package/app/m/content/Content/index.html +52 -59
- package/app/m/content/ContentContribution/index.html +52 -59
- package/app/m/content/ContentContributionAttachment/index.html +52 -59
- package/app/m/content/ContentContributionRevision/index.html +52 -59
- package/app/m/content/ContentContributionType/index.html +52 -59
- package/app/m/content/ContentContributor/index.html +52 -59
- package/app/m/content/ContentCorrection/index.html +52 -59
- package/app/m/content/ContentFeedSource/index.html +52 -59
- package/app/m/content/ContentGovernanceAssignment/index.html +52 -59
- package/app/m/content/ContentGovernancePolicy/index.html +52 -59
- package/app/m/content/ContentGovernanceProfile/index.html +52 -59
- package/app/m/content/ContentReference/index.html +52 -59
- package/app/m/content/ContentReview/index.html +52 -59
- package/app/m/content/ContentVersion/index.html +52 -59
- package/app/m/events/Event/index.html +52 -59
- package/app/m/events/EventParticipant/index.html +53 -60
- package/app/m/events/EventSeries/index.html +52 -59
- package/app/m/events/EventType/index.html +52 -59
- package/app/m/expenses/Expense/index.html +89 -0
- package/app/m/facts/Fact/index.html +52 -59
- package/app/m/facts/FactContent/index.html +52 -59
- package/app/m/facts/FactEvidence/index.html +52 -59
- package/app/m/facts/FactSource/index.html +52 -59
- package/app/m/facts/FactSubject/index.html +52 -59
- package/app/m/facts/FactTag/index.html +52 -59
- package/app/m/fields/FieldPolicy/index.html +52 -59
- package/app/m/fields/FieldPolicySuggestion/index.html +52 -59
- package/app/m/fields/FieldUsageCounter/index.html +52 -59
- package/app/m/images/Image/index.html +52 -59
- package/app/m/inventory/InventoryLocation/index.html +52 -59
- package/app/m/inventory/StockLevel/index.html +52 -59
- package/app/m/inventory/StockMovement/index.html +52 -59
- package/app/m/ledgers/Account/index.html +52 -59
- package/app/m/ledgers/Journal/index.html +52 -59
- package/app/m/ledgers/JournalEntry/index.html +53 -60
- package/app/m/manufacturing/Assembly/index.html +52 -59
- package/app/m/manufacturing/BillOfMaterials/index.html +52 -59
- package/app/m/manufacturing/BomLine/index.html +52 -59
- package/app/m/manufacturing/Operation/index.html +52 -59
- package/app/m/manufacturing/ProductionRun/index.html +52 -59
- package/app/m/manufacturing/ProductionRunCompletion/index.html +52 -59
- package/app/m/manufacturing/RoutingStep/index.html +52 -59
- package/app/m/marketing/Campaign/index.html +52 -59
- package/app/m/marketing/CampaignChannel/index.html +52 -59
- package/app/m/marketing/CampaignMetricSnapshot/index.html +52 -59
- package/app/m/messages/Account/index.html +52 -59
- package/app/m/messages/Attachment/index.html +52 -59
- package/app/m/messages/Blacklist/index.html +52 -59
- package/app/m/messages/Email/failed-sends/index.html +54 -59
- package/app/m/messages/Email/index.html +52 -59
- package/app/m/messages/Email/mailbox/index.html +54 -59
- package/app/m/messages/EmailAccount/index.html +52 -59
- package/app/m/messages/EmailAttachment/index.html +89 -0
- package/app/m/messages/EmailFolder/index.html +52 -59
- package/app/m/messages/Message/index.html +52 -59
- package/app/m/messages/MessagingEndpoint/index.html +52 -59
- package/app/m/messages/PersonaMessageRoute/index.html +52 -59
- package/app/m/messages/SlackAccount/index.html +52 -59
- package/app/m/messages/SlackMessage/index.html +52 -59
- package/app/m/messages/TelegramAccount/index.html +52 -59
- package/app/m/messages/Tweet/index.html +52 -59
- package/app/m/messages/TwitterAccount/index.html +52 -59
- package/app/m/messages/Whitelist/index.html +52 -59
- package/app/m/messages/ZulipAccount/index.html +52 -59
- package/app/m/places/Place/index.html +52 -59
- package/app/m/places/PlaceType/index.html +52 -59
- package/app/m/products/Category/index.html +52 -59
- package/app/m/products/Material/index.html +52 -59
- package/app/m/products/Product/index.html +52 -59
- package/app/m/products/Product/ingredients/index.html +54 -59
- package/app/m/products/ProductVariant/index.html +53 -60
- package/app/m/products/Sku/index.html +53 -60
- package/app/m/profiles/ApiKey/index.html +52 -59
- package/app/m/profiles/Bot/index.html +52 -59
- package/app/m/profiles/MagicLinkToken/index.html +52 -59
- package/app/m/profiles/NostrIdentity/index.html +52 -59
- package/app/m/profiles/OidcIdentity/index.html +52 -59
- package/app/m/profiles/Organization/index.html +52 -59
- package/app/m/profiles/Person/index.html +52 -59
- package/app/m/profiles/Profile/index.html +52 -59
- package/app/m/profiles/ProfileMetadata/index.html +52 -59
- package/app/m/profiles/ProfileMetafield/index.html +52 -59
- package/app/m/profiles/ProfileRelationship/index.html +52 -59
- package/app/m/profiles/ProfileRelationshipTerm/index.html +52 -59
- package/app/m/profiles/ProfileRelationshipType/index.html +52 -59
- package/app/m/profiles/ProfileType/index.html +52 -59
- package/app/m/projects/Comment/index.html +53 -60
- package/app/m/projects/Issue/index.html +52 -59
- package/app/m/projects/Label/index.html +52 -59
- package/app/m/projects/Project/index.html +52 -59
- package/app/m/projects/ProjectIntegration/index.html +52 -59
- package/app/m/projects/PullRequest/index.html +52 -59
- package/app/m/projects/Repository/index.html +52 -59
- package/app/m/properties/Property/index.html +52 -59
- package/app/m/properties/Zone/index.html +52 -59
- package/app/m/reports/RuntimeReport/index.html +52 -59
- package/app/m/reports/SmrtPrincipalReportRefreshTask/index.html +52 -59
- package/app/m/reports/SmrtReportLock/index.html +52 -59
- package/app/m/reports/SmrtReportRefreshTask/index.html +52 -59
- package/app/m/reports/SmrtReportRun/index.html +52 -59
- package/app/m/reports/SmrtReportSchedule/index.html +52 -59
- package/app/m/reports/SmrtReportWatermark/index.html +52 -59
- package/app/m/sales/AttributionException/index.html +52 -59
- package/app/m/sales/AttributionPolicy/index.html +52 -59
- package/app/m/sales/Commission/index.html +52 -59
- package/app/m/sales/CommissionAdjustment/index.html +52 -59
- package/app/m/sales/CommissionPayout/index.html +52 -59
- package/app/m/sales/CommissionPlan/index.html +52 -59
- package/app/m/sales/Earner/index.html +52 -59
- package/app/m/sales/EarnerSourceAttribution/index.html +52 -59
- package/app/m/sales/EarningEvent/index.html +52 -59
- package/app/m/sales/ExecutedAgreement/index.html +52 -59
- package/app/m/sales/Lead/index.html +52 -59
- package/app/m/sales/Opportunity/index.html +52 -59
- package/app/m/sales/OpportunityConversion/index.html +52 -59
- package/app/m/sales/PipelineDefinition/index.html +52 -59
- package/app/m/sales/PipelineStage/index.html +53 -60
- package/app/m/sales/Referral/index.html +52 -59
- package/app/m/sales/ReferralAgreement/index.html +52 -59
- package/app/m/sales/ReferralLink/index.html +52 -59
- package/app/m/sales/ReferralProgram/index.html +52 -59
- package/app/m/sales/ReferralTermSnapshot/index.html +52 -59
- package/app/m/sales/ReferralTouch/index.html +52 -59
- package/app/m/sales/Referrer/index.html +52 -59
- package/app/m/sales/SalesActivity/index.html +52 -59
- package/app/m/sales/SalesRepresentative/index.html +52 -59
- package/app/m/sites/Site/index.html +52 -59
- package/app/m/sites/SiteAgentBinding/index.html +52 -59
- package/app/m/social/OAuthState/index.html +52 -59
- package/app/m/social/SocialAccount/index.html +52 -59
- package/app/m/social/SocialPost/index.html +52 -59
- package/app/m/social/SocialPostAnalyticsSnapshot/index.html +52 -59
- package/app/m/subscriptions/BillingAdjustment/index.html +52 -59
- package/app/m/subscriptions/ClientCharge/index.html +52 -59
- package/app/m/subscriptions/CreditGrant/index.html +52 -59
- package/app/m/subscriptions/PricingRule/index.html +52 -59
- package/app/m/subscriptions/RetailCharge/index.html +52 -59
- package/app/m/subscriptions/SpendingPolicy/index.html +52 -59
- package/app/m/subscriptions/SubscriptionPlan/index.html +52 -59
- package/app/m/subscriptions/TenantSubscription/index.html +52 -59
- package/app/m/subscriptions/TenantUsageMetric/index.html +52 -59
- package/app/m/support/ServiceTimeEntry/index.html +52 -59
- package/app/m/support/SupportAiRun/index.html +52 -59
- package/app/m/support/SupportAvailability/index.html +52 -59
- package/app/m/support/SupportCase/index.html +52 -59
- package/app/m/support/SupportCaseEvent/index.html +52 -59
- package/app/m/support/SupportChannelBinding/index.html +52 -59
- package/app/m/support/SupportCharge/index.html +52 -59
- package/app/m/support/SupportCompensation/index.html +52 -59
- package/app/m/support/SupportCompensationPlan/index.html +52 -59
- package/app/m/support/SupportEscalation/index.html +52 -59
- package/app/m/support/SupportInteraction/index.html +52 -59
- package/app/m/support/SupportPlan/index.html +52 -59
- package/app/m/support/SupportPolicy/index.html +52 -59
- package/app/m/support/SupportQualification/index.html +52 -59
- package/app/m/support/SupportServiceTarget/index.html +52 -59
- package/app/m/support/SupportSpecialist/index.html +52 -59
- package/app/m/support/SupportWorkLink/index.html +52 -59
- package/app/m/tags/Tag/index.html +52 -59
- package/app/m/tags/TagAlias/index.html +52 -59
- package/app/m/timesheets/AttendanceBreak/index.html +52 -59
- package/app/m/timesheets/AttendancePunch/index.html +52 -59
- package/app/m/timesheets/AttendanceSegment/index.html +89 -0
- package/app/m/timesheets/ServiceChargeSnapshot/index.html +52 -59
- package/app/m/timesheets/ServiceCompensationSnapshot/index.html +52 -59
- package/app/m/timesheets/ServiceTimeEntry/index.html +52 -59
- package/app/m/users/Group/index.html +52 -59
- package/app/m/users/GroupMember/index.html +52 -59
- package/app/m/users/GroupRole/index.html +52 -59
- package/app/m/users/Membership/index.html +53 -60
- package/app/m/users/MembershipOverride/index.html +52 -59
- package/app/m/users/Permission/index.html +52 -59
- package/app/m/users/Role/index.html +52 -59
- package/app/m/users/RolePermission/index.html +52 -59
- package/app/m/users/Session/index.html +52 -59
- package/app/m/users/Tenant/index.html +52 -59
- package/app/m/users/TenantIntegration/index.html +52 -59
- package/app/m/users/TenantPermissionOverride/index.html +52 -59
- package/app/m/users/User/index.html +52 -59
- package/app/m/video/Character/index.html +52 -59
- package/app/m/video/CharacterAsset/index.html +52 -59
- package/app/m/video/CompositeJob/index.html +52 -59
- package/app/m/video/Performer/index.html +52 -59
- package/app/m/video/PerformerAsset/index.html +52 -59
- package/app/m/video/Scene/index.html +52 -59
- package/app/m/video/SceneAsset/index.html +52 -59
- package/app/m/video/VideoComposition/index.html +52 -59
- package/app/m/video/VideoCompositionAsset/index.html +52 -59
- package/app/m/video/VideoSequence/index.html +52 -59
- package/app/m/video/VideoSequenceAsset/index.html +52 -59
- package/app/m/video/VideoShot/index.html +52 -59
- package/app/m/video/VideoShotAsset/index.html +52 -59
- package/app/m/video/VideoShotCharacter/index.html +52 -59
- package/app/m/video/VideoWorkflow/index.html +52 -59
- package/app/m/voice/VoiceOutput/index.html +52 -59
- package/app/m/voice/VoiceProfile/index.html +52 -59
- package/app/m/voice/VoiceSample/index.html +52 -59
- package/app/packages/ads/index.html +50 -57
- package/app/packages/analytics/index.html +50 -57
- package/app/packages/approvals/index.html +50 -57
- package/app/packages/assets/index.html +50 -57
- package/app/packages/chat/index.html +50 -57
- package/app/packages/comments/index.html +50 -57
- package/app/packages/commerce/index.html +50 -57
- package/app/packages/content/index.html +50 -57
- package/app/packages/events/index.html +50 -57
- package/app/packages/expenses/index.html +50 -57
- package/app/packages/facts/index.html +50 -57
- package/app/packages/fields/index.html +50 -57
- package/app/packages/human-resources/index.html +50 -57
- package/app/packages/images/index.html +50 -57
- package/app/packages/index.html +49 -55
- package/app/packages/ingestion/index.html +85 -0
- package/app/packages/inventory/index.html +50 -57
- package/app/packages/ledgers/index.html +50 -57
- package/app/packages/manufacturing/index.html +50 -57
- package/app/packages/marketing/index.html +50 -57
- package/app/packages/messages/index.html +50 -57
- package/app/packages/places/index.html +50 -57
- package/app/packages/preferences/index.html +50 -57
- package/app/packages/products/index.html +50 -57
- package/app/packages/profiles/index.html +50 -57
- package/app/packages/projects/index.html +50 -57
- package/app/packages/properties/index.html +50 -57
- package/app/packages/reports/index.html +50 -57
- package/app/packages/sales/index.html +50 -57
- package/app/packages/sites/index.html +50 -57
- package/app/packages/social/index.html +50 -57
- package/app/packages/subscriptions/index.html +50 -57
- package/app/packages/support/index.html +50 -57
- package/app/packages/tags/index.html +50 -57
- package/app/packages/timesheets/index.html +50 -57
- package/app/packages/users/index.html +50 -57
- package/app/packages/video/index.html +50 -57
- package/app/packages/voice/index.html +50 -57
- package/app/packages/webhooks/index.html +85 -0
- package/app/recipes/account-access/help/index.html +52 -57
- package/app/recipes/account-access/index.html +57 -59
- package/app/recipes/activity/help/index.html +52 -57
- package/app/recipes/activity/index.html +57 -59
- package/app/recipes/agreements/help/index.html +52 -57
- package/app/recipes/agreements/index.html +57 -59
- package/app/recipes/analytics.reports/help/index.html +52 -57
- package/app/recipes/analytics.reports/index.html +57 -59
- package/app/recipes/assets/help/index.html +52 -57
- package/app/recipes/assets/index.html +57 -59
- package/app/recipes/billing/help/index.html +52 -57
- package/app/recipes/billing/index.html +57 -59
- package/app/recipes/chat.assistant/help/index.html +52 -57
- package/app/recipes/chat.assistant/index.html +57 -59
- package/app/recipes/comments/help/index.html +52 -57
- package/app/recipes/comments/index.html +57 -59
- package/app/recipes/commerce.customers/help/index.html +52 -57
- package/app/recipes/commerce.customers/index.html +57 -59
- package/app/recipes/commerce.estimates/help/index.html +52 -57
- package/app/recipes/commerce.estimates/index.html +57 -59
- package/app/recipes/commerce.purchases/help/index.html +52 -57
- package/app/recipes/commerce.purchases/index.html +57 -59
- package/app/recipes/commerce.sales/help/index.html +52 -57
- package/app/recipes/commerce.sales/index.html +57 -59
- package/app/recipes/commerce.vendors/help/index.html +52 -57
- package/app/recipes/commerce.vendors/index.html +57 -59
- package/app/recipes/commerce.wholesale/help/index.html +52 -57
- package/app/recipes/commerce.wholesale/index.html +57 -59
- package/app/recipes/events.calendar/help/index.html +52 -57
- package/app/recipes/events.calendar/index.html +57 -59
- package/app/recipes/expenses.tracking/help/index.html +88 -0
- package/app/recipes/expenses.tracking/index.html +92 -0
- package/app/recipes/fields.form-customization/help/index.html +52 -57
- package/app/recipes/fields.form-customization/index.html +57 -59
- package/app/recipes/ingestion/help/index.html +88 -0
- package/app/recipes/ingestion/index.html +93 -0
- package/app/recipes/integrations/help/index.html +88 -0
- package/app/recipes/integrations/index.html +92 -0
- package/app/recipes/inventory.stock/help/index.html +52 -57
- package/app/recipes/inventory.stock/index.html +57 -59
- package/app/recipes/ledgers.bookkeeping/help/index.html +52 -57
- package/app/recipes/ledgers.bookkeeping/index.html +57 -59
- package/app/recipes/messages/help/index.html +52 -57
- package/app/recipes/messages/index.html +57 -59
- package/app/recipes/products/help/index.html +52 -57
- package/app/recipes/products/index.html +57 -59
- package/app/recipes/projects.tracker/help/index.html +52 -57
- package/app/recipes/projects.tracker/index.html +57 -59
- package/app/recipes/reports.materialized/help/index.html +52 -57
- package/app/recipes/reports.materialized/index.html +57 -59
- package/app/recipes/reports.runtime/help/index.html +88 -0
- package/app/recipes/reports.runtime/index.html +92 -0
- package/app/recipes/sales.pipeline/help/index.html +52 -57
- package/app/recipes/sales.pipeline/index.html +57 -59
- package/app/recipes/tags.taxonomy/help/index.html +52 -57
- package/app/recipes/tags.taxonomy/index.html +57 -59
- package/app/recipes/team-collaboration/help/index.html +52 -57
- package/app/recipes/team-collaboration/index.html +57 -59
- package/app/recipes/timesheets.time-entries/help/index.html +88 -0
- package/app/recipes/timesheets.time-entries/index.html +92 -0
- package/app/s/custom-accounts/index.html +82 -0
- package/app/s/custom-appointments/index.html +82 -0
- package/app/s/custom-billing/index.html +47 -54
- package/app/s/custom-buying/index.html +47 -54
- package/app/s/custom-checkout/index.html +82 -0
- package/app/s/custom-classes/index.html +47 -54
- package/app/s/custom-clients/index.html +82 -0
- package/app/s/custom-events/index.html +82 -0
- package/app/s/custom-fleet/index.html +82 -0
- package/app/s/custom-giving/index.html +82 -0
- package/app/s/custom-jobs/index.html +47 -54
- package/app/s/custom-kitchen/index.html +47 -54
- package/app/s/custom-material/index.html +47 -54
- package/app/s/custom-meetings/index.html +82 -0
- package/app/s/custom-members/index.html +47 -54
- package/app/s/custom-parts/index.html +47 -54
- package/app/s/custom-rentals/index.html +82 -0
- package/app/s/custom-roastery/index.html +82 -0
- package/app/s/custom-schedule/index.html +47 -54
- package/app/s/custom-shelf/index.html +82 -0
- package/app/s/custom-shop/index.html +47 -54
- package/app/s/custom-wholesale/index.html +47 -54
- package/app/s/custom-work/index.html +82 -0
- package/app/s/custom-yard/index.html +82 -0
- package/app/s/section-access-control/index.html +47 -54
- package/app/s/section-account-security/index.html +47 -54
- package/app/s/section-accounting/index.html +47 -54
- package/app/s/section-activity/index.html +47 -54
- package/app/s/section-agreements/index.html +47 -54
- package/app/s/section-analytics/index.html +47 -54
- package/app/s/section-assets/index.html +47 -54
- package/app/s/section-billing/index.html +47 -54
- package/app/s/section-calendar/index.html +47 -54
- package/app/s/section-catalog/index.html +47 -54
- package/app/s/section-chat.assistant/index.html +47 -54
- package/app/s/section-comments/index.html +47 -54
- package/app/s/section-fields.form-customization/index.html +47 -54
- package/app/s/section-ingestion/index.html +82 -0
- package/app/s/section-integrations/index.html +82 -0
- package/app/s/section-messages/index.html +47 -54
- package/app/s/section-more/index.html +47 -54
- package/app/s/section-operations/index.html +47 -54
- package/app/s/section-projects/index.html +47 -54
- package/app/s/section-purchasing/index.html +47 -54
- package/app/s/section-reports.materialized/index.html +47 -54
- package/app/s/section-reports.runtime/index.html +82 -0
- package/app/s/section-sales/index.html +47 -54
- package/app/s/section-taxonomy/index.html +47 -54
- package/app/s/section-team/index.html +47 -54
- package/app/s/section-work/index.html +82 -0
- package/dist/ai/state.svelte.d.ts +22 -4
- package/dist/ai/state.svelte.js +78 -15
- package/dist/ai/status.js +8 -0
- package/dist/assistant/change.d.ts +14 -3
- package/dist/assistant/change.js +26 -3
- package/dist/assistant/engine.js +5 -1
- package/dist/assistant/prompt.js +7 -3
- package/dist/assistant/session.svelte.d.ts +1 -0
- package/dist/assistant/session.svelte.js +22 -4
- package/dist/catalog/catalog.json +11244 -14189
- package/dist/catalog/generate/exclusions.d.ts +8 -0
- package/dist/catalog/generate/exclusions.js +29 -0
- package/dist/catalog/generate/extract.js +29 -8
- package/dist/catalog/types.d.ts +7 -0
- package/dist/components/AdvancedStyles.svelte +138 -0
- package/dist/components/AdvancedStyles.svelte.d.ts +6 -0
- package/dist/components/AiModelsPage.svelte +40 -0
- package/dist/components/AiModelsPage.svelte.d.ts +7 -0
- package/dist/components/AiSetup.svelte +40 -8
- package/dist/components/AiStatusIcons.svelte +8 -5
- package/dist/components/AppSettings.svelte +105 -1
- package/dist/components/BrowserAssistant.svelte +25 -22
- package/dist/components/BrowserAssistant.svelte.d.ts +2 -0
- package/dist/components/ChildRecords.svelte +61 -14
- package/dist/components/ChildRecords.svelte.d.ts +1 -0
- package/dist/components/ConnectTools.svelte +5 -2
- package/dist/components/CookbooksPanel.svelte +56 -33
- package/dist/components/CopyButton.svelte +65 -0
- package/dist/components/CopyButton.svelte.d.ts +24 -0
- package/dist/components/ExportPanel.svelte +292 -57
- package/dist/components/ExportPanel.svelte.d.ts +10 -1
- package/dist/components/FeatureCard.svelte +21 -10
- package/dist/components/FeaturesPanel.svelte +4 -1
- package/dist/components/FieldInput.svelte +6 -3
- package/dist/components/FieldMapForm.svelte +6 -10
- package/dist/components/FieldMapForm.svelte.d.ts +1 -0
- package/dist/components/FormWorkspace.svelte +80 -9
- package/dist/components/FormWorkspace.svelte.d.ts +1 -0
- package/dist/components/HeaderIconLink.svelte +86 -0
- package/dist/components/HeaderIconLink.svelte.d.ts +14 -0
- package/dist/components/HelpView.svelte +3 -0
- package/dist/components/ModelOptions.svelte +13 -2
- package/dist/components/ModelPage.svelte +33 -5
- package/dist/components/ModelPage.svelte.d.ts +4 -0
- package/dist/components/ModelWorkspace.svelte +148 -50
- package/dist/components/ModelWorkspace.svelte.d.ts +4 -0
- package/dist/components/PackagePage.svelte +96 -0
- package/dist/components/PackagePage.svelte.d.ts +9 -0
- package/dist/components/ProductMedia.svelte +95 -0
- package/dist/components/ProductMedia.svelte.d.ts +10 -0
- package/dist/components/RecipeCards.svelte +13 -1
- package/dist/components/RecipeHelp.svelte +3 -0
- package/dist/components/RecipeOptions.svelte +13 -1
- package/dist/components/RecordFeatures.svelte +22 -8
- package/dist/components/RecordView.svelte +354 -0
- package/dist/components/RecordView.svelte.d.ts +14 -0
- package/dist/components/RelationField.svelte +5 -2
- package/dist/components/SectionActions.svelte +8 -5
- package/dist/components/SectionHeading.svelte +63 -0
- package/dist/components/SectionHeading.svelte.d.ts +11 -0
- package/dist/components/SectionIcons.svelte +15 -3
- package/dist/components/SectionOverview.svelte +33 -3
- package/dist/components/SectionOverview.svelte.d.ts +4 -0
- package/dist/components/SectionPage.svelte +25 -165
- package/dist/components/SectionView.svelte +172 -0
- package/dist/components/SectionView.svelte.d.ts +18 -0
- package/dist/components/SettingsPanel.svelte +3 -9
- package/dist/components/SettingsPanel.svelte.d.ts +1 -5
- package/dist/components/ThemeBridge.svelte +80 -4
- package/dist/components/ThemeBridge.svelte.d.ts +5 -1
- package/dist/components/ThemeSection.svelte +208 -117
- package/dist/components/ThemeSection.svelte.d.ts +3 -7
- package/dist/components/VariantGridForm.svelte +9 -13
- package/dist/components/VariantGridForm.svelte.d.ts +1 -0
- package/dist/components/VoiceTyping.svelte +3 -0
- package/dist/cookbook/describe.d.ts +29 -0
- package/dist/cookbook/describe.js +164 -0
- package/dist/cookbook/file.d.ts +6 -0
- package/dist/cookbook/file.js +18 -4
- package/dist/cookbook/prompt.d.ts +49 -0
- package/dist/cookbook/prompt.js +100 -0
- package/dist/cookbook/store.svelte.d.ts +13 -0
- package/dist/cookbook/store.svelte.js +36 -8
- package/dist/core/app.d.ts +33 -8
- package/dist/core/app.js +112 -8
- package/dist/core/prompt.js +10 -1
- package/dist/core/reply.d.ts +6 -1
- package/dist/data/children.d.ts +50 -6
- package/dist/data/children.js +146 -16
- package/dist/data/derived.d.ts +37 -29
- package/dist/data/derived.js +49 -30
- package/dist/data/display.d.ts +21 -8
- package/dist/data/display.js +74 -11
- package/dist/data/fakes.d.ts +48 -9
- package/dist/data/fakes.js +146 -22
- package/dist/data/labels.d.ts +7 -2
- package/dist/data/labels.js +12 -2
- package/dist/data/list-sort.d.ts +8 -0
- package/dist/data/list-sort.js +45 -0
- package/dist/data/money.d.ts +227 -0
- package/dist/data/money.js +413 -0
- package/dist/data/packs.d.ts +13 -0
- package/dist/data/packs.js +1224 -0
- package/dist/data/planner-source.js +123 -3
- package/dist/data/source.d.ts +13 -2
- package/dist/data/source.js +274 -40
- package/dist/features/palette.d.ts +2 -0
- package/dist/features/palette.js +1 -1
- package/dist/forms/stock.d.ts +1 -1
- package/dist/forms/stock.js +3 -1
- package/dist/index.d.ts +8 -3
- package/dist/index.js +6 -1
- package/dist/inference/byo.svelte.d.ts +8 -4
- package/dist/inference/byo.svelte.js +36 -8
- package/dist/inference/config.d.ts +12 -5
- package/dist/inference/config.js +96 -40
- package/dist/inference/openai.js +5 -0
- package/dist/kitchen/LiveKitchenBridge.svelte +73 -0
- package/dist/kitchen/LiveKitchenBridge.svelte.d.ts +8 -0
- package/dist/kitchen/client.js +10 -4
- package/dist/kitchen/live.d.ts +7 -0
- package/dist/kitchen/live.js +51 -0
- package/dist/library/icons.js +34 -0
- package/dist/library/library.json +1546 -15
- package/dist/library/pending.json +5 -0
- package/dist/library/types.d.ts +4 -0
- package/dist/motion/tokens.d.ts +6 -0
- package/dist/motion/tokens.js +32 -0
- package/dist/motion/view-transition.d.ts +13 -0
- package/dist/motion/view-transition.js +17 -0
- package/dist/overviews/definitions.d.ts +41 -2
- package/dist/overviews/definitions.js +111 -4
- package/dist/overviews/models.d.ts +10 -0
- package/dist/overviews/models.js +19 -0
- package/dist/overviews/registry.d.ts +92 -5
- package/dist/overviews/registry.js +468 -58
- package/dist/overviews/validate.js +2 -2
- package/dist/planner/Planner.svelte +374 -166
- package/dist/planner/PlannerControls.svelte +255 -0
- package/dist/planner/PlannerControls.svelte.d.ts +17 -0
- package/dist/planner/PlannerLifecycle.svelte +73 -0
- package/dist/planner/PlannerLifecycle.svelte.d.ts +9 -0
- package/dist/planner/app.svelte.d.ts +12 -2
- package/dist/planner/app.svelte.js +13 -3
- package/dist/planner/assistant.js +21 -3
- package/dist/planner/commands/adapter.js +9 -2
- package/dist/planner/commands/types.d.ts +1 -1
- package/dist/planner/commands/types.js +1 -0
- package/dist/planner/header-icons.d.ts +12 -0
- package/dist/planner/header-icons.js +12 -0
- package/dist/planner/host/HostPlanner.svelte +70 -0
- package/dist/planner/host/HostPlanner.svelte.d.ts +17 -0
- package/dist/planner/host/session.svelte.d.ts +28 -0
- package/dist/planner/host/session.svelte.js +186 -0
- package/dist/planner/routes.d.ts +49 -0
- package/dist/planner/routes.js +64 -0
- package/dist/planner/shell.d.ts +40 -0
- package/dist/planner/shell.js +56 -0
- package/dist/planner/tab.svelte.d.ts +6 -3
- package/dist/planner/tab.svelte.js +11 -4
- package/dist/planner/title.d.ts +15 -0
- package/dist/planner/title.js +21 -0
- package/dist/planner/title.svelte.d.ts +6 -0
- package/dist/planner/title.svelte.js +11 -0
- package/dist/planner/types.d.ts +39 -7
- package/dist/products/media.d.ts +20 -0
- package/dist/products/media.js +65 -0
- package/dist/recipes/help/descriptions.json +1 -3
- package/dist/recipes/index.d.ts +2 -0
- package/dist/recipes/index.js +6 -0
- package/dist/recipes/plumbing.d.ts +35 -1
- package/dist/recipes/plumbing.js +74 -0
- package/dist/screens/definition.d.ts +35 -0
- package/dist/screens/definition.js +132 -0
- package/dist/screens/relations.d.ts +17 -0
- package/dist/screens/relations.js +98 -0
- package/dist/screens/totals.d.ts +37 -0
- package/dist/screens/totals.js +65 -0
- package/dist/sections/info.d.ts +1 -1
- package/dist/sections/info.js +2 -2
- package/dist/settings/app-settings.d.ts +17 -1
- package/dist/settings/app-settings.js +40 -3
- package/dist/smrt-version.d.ts +2 -0
- package/dist/smrt-version.js +4 -0
- package/dist/styles/planner-forms.css +53 -0
- package/dist/styles/planner-lists.css +43 -0
- package/dist/theme/css-highlight.d.ts +6 -0
- package/dist/theme/css-highlight.js +34 -0
- package/dist/theme/custom-css.svelte.d.ts +34 -0
- package/dist/theme/custom-css.svelte.js +246 -0
- package/dist/theme/runtime.js +25 -5
- package/dist/theme/theme.d.ts +26 -3
- package/dist/theme/theme.js +70 -2
- package/dist/upstream/overlay.d.ts +14 -5
- package/dist/upstream/overlay.js +20 -2
- package/package.json +13 -6
- package/app/_app/immutable/assets/0.B5zXkXe_.css +0 -1
- package/app/_app/immutable/assets/10.hpcnxvK1.css +0 -1
- package/app/_app/immutable/assets/11.D7zoXfVV.css +0 -1
- package/app/_app/immutable/assets/12.CPobm1ED.css +0 -1
- package/app/_app/immutable/assets/2.CyaWdRdI.css +0 -1
- package/app/_app/immutable/assets/3.BlPQOes8.css +0 -1
- package/app/_app/immutable/assets/8.2gQeKBp_.css +0 -1
- package/app/_app/immutable/assets/9.HOPT4xtg.css +0 -1
- package/app/_app/immutable/assets/AiSetup.Cb22AigN.css +0 -1
- package/app/_app/immutable/assets/Button.DkP0qkG9.css +0 -1
- package/app/_app/immutable/assets/ConnectTools.BgIJOOGW.css +0 -1
- package/app/_app/immutable/assets/FieldMapForm.BCU-4pO4.css +0 -1
- package/app/_app/immutable/assets/ModelPage.Dd3LcMta.css +0 -1
- package/app/_app/immutable/assets/SectionActions.CTkVuNMF.css +0 -1
- package/app/_app/immutable/assets/SectionIcons.5Udq9vN-.css +0 -1
- package/app/_app/immutable/assets/SegmentedControl.B8SrQacd.css +0 -1
- package/app/_app/immutable/assets/dist.C5nHBk_O.css +0 -1
- package/app/_app/immutable/assets/feedback.BVKAwFck.css +0 -1
- package/app/_app/immutable/assets/forms.BChZ2RWM.css +0 -1
- package/app/_app/immutable/assets/percent.LH0z-ozZ.css +0 -1
- package/app/_app/immutable/assets/store.CGDwHkkF.css +0 -1
- package/app/_app/immutable/assets/ui.B1A1Zl2p.css +0 -1
- package/app/_app/immutable/assets/workspace.BIMkuZDb.css +0 -1
- package/app/_app/immutable/chunks/1okeBSoq.js +0 -1
- package/app/_app/immutable/chunks/B32EWqI8.js +0 -9
- package/app/_app/immutable/chunks/B4Kevpe0.js +0 -1
- package/app/_app/immutable/chunks/BKwRT_1p.js +0 -1
- package/app/_app/immutable/chunks/BS4h9ES-.js +0 -1
- package/app/_app/immutable/chunks/BYde9M_U.js +0 -1
- package/app/_app/immutable/chunks/CMhpRMKg.js +0 -1
- package/app/_app/immutable/chunks/CPRHZZeW.js +0 -1
- package/app/_app/immutable/chunks/CRQ1Pmzr.js +0 -1
- package/app/_app/immutable/chunks/CV-2zt0K.js +0 -2
- package/app/_app/immutable/chunks/CWtfVMDz.js +0 -1
- package/app/_app/immutable/chunks/Chyo8rdT.js +0 -3
- package/app/_app/immutable/chunks/CmmuWmp6.js +0 -2
- package/app/_app/immutable/chunks/CrFNLK0f.js +0 -1
- package/app/_app/immutable/chunks/CygC84VT.js +0 -2
- package/app/_app/immutable/chunks/D0VgZnk1.js +0 -1
- package/app/_app/immutable/chunks/DD7gpKb2.js +0 -1
- package/app/_app/immutable/chunks/DJtH-lRi.js +0 -3
- package/app/_app/immutable/chunks/DNRgqfTx.js +0 -1
- package/app/_app/immutable/chunks/DVRKjN-E.js +0 -1
- package/app/_app/immutable/chunks/D_J_XtJy.js +0 -846
- package/app/_app/immutable/chunks/Dp9GVO-9.js +0 -1
- package/app/_app/immutable/chunks/DqcD-WtP.js +0 -1
- package/app/_app/immutable/chunks/OJ_lLTHH.js +0 -1
- package/app/_app/immutable/chunks/QukgIHDX.js +0 -1
- package/app/_app/immutable/chunks/WxSPP8QW.js +0 -4
- package/app/_app/immutable/chunks/leQCwW2d.js +0 -1
- package/app/_app/immutable/chunks/p6bgzXiY.js +0 -1
- package/app/_app/immutable/chunks/ufuM4XBq.js +0 -33
- package/app/_app/immutable/entry/app.D5JJain6.js +0 -2
- package/app/_app/immutable/entry/start.CH9DJLgI.js +0 -1
- package/app/_app/immutable/nodes/0.CL1MxOva.js +0 -10
- package/app/_app/immutable/nodes/1.BO731RRg.js +0 -1
- package/app/_app/immutable/nodes/10.1nQxyH9H.js +0 -4
- package/app/_app/immutable/nodes/11.Cw0JnQF3.js +0 -1
- package/app/_app/immutable/nodes/12.BmZyLHbM.js +0 -1
- package/app/_app/immutable/nodes/2.BEw046av.js +0 -17
- package/app/_app/immutable/nodes/3.DvwpTAQA.js +0 -1
- package/app/_app/immutable/nodes/4.qrT4bnmS.js +0 -1
- package/app/_app/immutable/nodes/5.DDLa2uhV.js +0 -1
- package/app/_app/immutable/nodes/6.DN0QTY6z.js +0 -1
- package/app/_app/immutable/nodes/7.C_8N82Wq.js +0 -1
- package/app/_app/immutable/nodes/8.D2Mszsua.js +0 -3
- package/app/_app/immutable/nodes/9.CLYsywul.js +0 -1
- package/app/m/content/Contents/index.html +0 -96
- package/app/m/preferences/UiPreferenceRecord/index.html +0 -96
- package/app/m/users/AccessRequest/index.html +0 -96
- package/app/m/users/ResourceGrant/index.html +0 -96
- package/app/m/users/UsersCliAuthRequest/index.html +0 -96
- package/app/m/users/UsersMagicLinkToken/index.html +0 -96
|
@@ -1,204 +1,412 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import {
|
|
2
|
+
import type { ShellSlotItem } from '@happyvertical/smrt-svelte/app';
|
|
3
3
|
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
16
|
-
import
|
|
4
|
+
applyCookbookTheme,
|
|
5
|
+
buildCookbookShell,
|
|
6
|
+
CookbookApp,
|
|
7
|
+
type CookbookSectionHeadingInfo,
|
|
8
|
+
CookbookSectionPage,
|
|
9
|
+
} from '@happyvertical/smrt-svelte/cookbook';
|
|
10
|
+
import { ShellDockTool } from '@happyvertical/smrt-svelte/workspace';
|
|
11
|
+
import type { DataSurfaceRegistry } from '@happyvertical/smrt-ui/data-surface';
|
|
12
|
+
import { type ComponentProps, onMount, tick, untrack } from 'svelte';
|
|
13
|
+
import { aiState } from '../ai/instance.js';
|
|
14
|
+
import smrtMark from '../assets/smrt-mark.svg';
|
|
15
|
+
import { catalog, getModel } from '../catalog/index.js';
|
|
16
|
+
import AdvancedStyles from '../components/AdvancedStyles.svelte';
|
|
17
|
+
import AiModelsPage from '../components/AiModelsPage.svelte';
|
|
18
|
+
import BrowserAssistant from '../components/BrowserAssistant.svelte';
|
|
19
|
+
import HeaderIconLink from '../components/HeaderIconLink.svelte';
|
|
20
|
+
import ModelWorkspace from '../components/ModelWorkspace.svelte';
|
|
21
|
+
import PackagePage from '../components/PackagePage.svelte';
|
|
22
|
+
import RecordView from '../components/RecordView.svelte';
|
|
23
|
+
import SectionHeading from '../components/SectionHeading.svelte';
|
|
24
|
+
import ThemeBridge from '../components/ThemeBridge.svelte';
|
|
25
|
+
import { cookbookStore, SHELL_STORAGE_KEY } from '../cookbook/store.svelte.js';
|
|
26
|
+
import type { Cookbook } from '../cookbook/types.js';
|
|
17
27
|
import { provideDataSource, tryUseDataSource } from '../data/context.js';
|
|
18
28
|
import { createPlannerDataSource } from '../data/planner-source.js';
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
29
|
+
import { activeForms } from '../forms/active.js';
|
|
30
|
+
import { runViewTransition } from '../motion/view-transition.js';
|
|
31
|
+
import { plannerLoaders, resolveRecipeExport } from '../overviews/registry.js';
|
|
32
|
+
import {
|
|
33
|
+
hasNavKey,
|
|
34
|
+
recipeNav,
|
|
35
|
+
recipes,
|
|
36
|
+
recipesById,
|
|
37
|
+
} from '../recipes/index.js';
|
|
38
|
+
import { pageScope, scopePreset } from '../recipes/scope.js';
|
|
21
39
|
import { recipeState } from '../recipes/state.svelte.js';
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
40
|
+
import { entryIndex } from '../sections/entries.js';
|
|
41
|
+
import { sectionInfo, sectionTitle } from '../sections/info.js';
|
|
42
|
+
import { sectionIdFromSlug } from '../sections/path.js';
|
|
43
|
+
import { DEFAULT_PRESET } from '../theme/theme.js';
|
|
44
|
+
import { appHref, setBasePath } from './app.svelte.js';
|
|
45
|
+
import { PLANNER_TAB_IDS } from './commands/index.js';
|
|
46
|
+
import { CHEF_HAT_ICON, EXPORT_ICON } from './header-icons.js';
|
|
47
|
+
import PlannerControls from './PlannerControls.svelte';
|
|
48
|
+
import PlannerLifecycle from './PlannerLifecycle.svelte';
|
|
49
|
+
import { parseModelRoute, recordFilter, splitRoute } from './routes.js';
|
|
50
|
+
import { plannerAssistantToggle, plannerShellProps } from './shell.js';
|
|
26
51
|
import { plannerTab } from './tab.svelte.js';
|
|
52
|
+
import { currentPlannerTitle } from './title.svelte.js';
|
|
53
|
+
import { DEFAULT_PLANNER_TITLE } from './title.js';
|
|
27
54
|
import type { PlannerProps } from './types.js';
|
|
28
55
|
|
|
29
56
|
let {
|
|
30
|
-
controller
|
|
57
|
+
controller,
|
|
31
58
|
basePath,
|
|
32
59
|
inference,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
tabs
|
|
60
|
+
persistence,
|
|
61
|
+
themeControls = true,
|
|
62
|
+
defaultTitle = DEFAULT_PLANNER_TITLE,
|
|
63
|
+
tabs,
|
|
64
|
+
backLink,
|
|
37
65
|
onready,
|
|
38
66
|
}: PlannerProps = $props();
|
|
39
67
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
const dataSource =
|
|
48
|
-
tryUseDataSource() ?? provideDataSource(createPlannerDataSource());
|
|
49
|
-
|
|
50
|
-
// smrt-svelte's inputs read the app state. Inside a host's own provider (or
|
|
51
|
-
// the static app's AppShell) use that; otherwise the planner brings one.
|
|
52
|
-
const hasAppState = tryGetAppStateContext() !== null;
|
|
68
|
+
/** The mount's links: its pages are fragment routes, so no host router. */
|
|
69
|
+
const hashHref = (path: string) => `#${path}`;
|
|
70
|
+
// Before anything below renders a link: the planner-wide `appHref` writes
|
|
71
|
+
// fragments too (`PlannerLifecycle` follows `basePath` when it changes).
|
|
72
|
+
setBasePath(untrack(() => basePath) ?? '', 'hash');
|
|
73
|
+
/** The assistant exists only when the host gave the planner a model. */
|
|
74
|
+
const assistant = $derived(inference !== undefined);
|
|
53
75
|
|
|
54
|
-
const
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
76
|
+
const shellCatalog: ComponentProps<typeof CookbookApp>['catalog'] = {
|
|
77
|
+
recipes: recipes.map(({ id, label, nav, models, group, section }) => ({
|
|
78
|
+
id,
|
|
79
|
+
label,
|
|
80
|
+
nav,
|
|
81
|
+
models,
|
|
82
|
+
group,
|
|
83
|
+
section,
|
|
84
|
+
})),
|
|
85
|
+
models: catalog.packages.flatMap((pkg) =>
|
|
86
|
+
pkg.models.map((model) => ({
|
|
87
|
+
id: model.id,
|
|
88
|
+
name: model.name,
|
|
89
|
+
packageId: pkg.id,
|
|
90
|
+
description: model.description,
|
|
91
|
+
exposed: model.exposed,
|
|
92
|
+
})),
|
|
93
|
+
),
|
|
61
94
|
};
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
const
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
95
|
+
// The shell falls back to its own default preset; give it the Planner's so the
|
|
96
|
+
// shell provider and ThemeBridge agree when a cookbook names no theme.
|
|
97
|
+
const cookbook = $derived.by(() => {
|
|
98
|
+
const value = cookbookStore.snapshot();
|
|
99
|
+
return value.theme?.preset || value.theme?.custom
|
|
100
|
+
? value
|
|
101
|
+
: { ...value, theme: { ...value.theme, preset: DEFAULT_PRESET } };
|
|
102
|
+
});
|
|
103
|
+
const title = $derived(currentPlannerTitle(defaultTitle));
|
|
104
|
+
const shell = $derived(
|
|
105
|
+
buildCookbookShell({
|
|
106
|
+
cookbook: cookbook as ComponentProps<typeof CookbookApp>['cookbook'],
|
|
107
|
+
catalog: shellCatalog,
|
|
108
|
+
}),
|
|
68
109
|
);
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
nav: () => [],
|
|
78
|
-
groups: () =>
|
|
79
|
-
cookbookNavGroups({
|
|
80
|
-
recipes: recipeState.ids,
|
|
81
|
-
features: recipeState.features,
|
|
82
|
-
}),
|
|
83
|
-
panels: () => undefined,
|
|
84
|
-
layout: () => cookbookStore.layout,
|
|
85
|
-
editable: () => true,
|
|
86
|
-
commit: (next) => cookbookStore.setLayout(next),
|
|
87
|
-
})
|
|
88
|
-
: null;
|
|
89
|
-
const shellLayout = layoutMode === 'shell' ? useShellLayout() : null;
|
|
90
|
-
|
|
91
|
-
const select = (id: string) => {
|
|
92
|
-
const tab = PLANNER_TAB_IDS.find((t) => t === id);
|
|
93
|
-
if (tab) plannerTab.active = tab;
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
// The controller's focus -> the tab on screen, and back, each only on a
|
|
97
|
-
// difference, so a foreign controller and the app's own both stay in step.
|
|
98
|
-
onMount(() => {
|
|
99
|
-
const stop = controller.subscribe((snapshot) => {
|
|
100
|
-
const tab = snapshot.focus.tab;
|
|
101
|
-
if (tab && tab !== plannerTab.active) plannerTab.active = tab;
|
|
102
|
-
});
|
|
103
|
-
return stop;
|
|
110
|
+
const defaultRoute = $derived.by(() => {
|
|
111
|
+
const orderedId = cookbook.layout?.sectionOrder?.find(
|
|
112
|
+
(id) =>
|
|
113
|
+
!cookbook.layout?.hidden?.includes(id) &&
|
|
114
|
+
Object.hasOwn(shell.overviews, id),
|
|
115
|
+
);
|
|
116
|
+
const firstId = orderedId ?? shell.sections[0]?.id;
|
|
117
|
+
return firstId ? shell.sectionPath(firstId) : '/configure/';
|
|
104
118
|
});
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
119
|
+
const source =
|
|
120
|
+
tryUseDataSource() ?? provideDataSource(createPlannerDataSource());
|
|
121
|
+
// The app's menu entries with the model and scope each lists, for the
|
|
122
|
+
// shortcuts' record counts.
|
|
123
|
+
const sectionEntries = $derived(
|
|
124
|
+
entryIndex(
|
|
125
|
+
recipeState.ids.flatMap((id) => {
|
|
126
|
+
const recipe = recipesById.get(id);
|
|
127
|
+
return recipe ? [recipe] : [];
|
|
128
|
+
}),
|
|
129
|
+
recipeState.features,
|
|
130
|
+
),
|
|
131
|
+
);
|
|
132
|
+
// What the overview widgets' loaders read when they run in this browser: the
|
|
133
|
+
// sample source, the mount's links and the entry index. The shell adds the
|
|
134
|
+
// resolved sections and its own entries for its shortcuts.
|
|
135
|
+
const widgetContext = () => ({
|
|
136
|
+
source,
|
|
137
|
+
href: hashHref,
|
|
138
|
+
entryIndex: sectionEntries,
|
|
112
139
|
});
|
|
113
|
-
|
|
114
|
-
//
|
|
140
|
+
// A reset (a cookbook applied, the app reset) swaps the rows underneath the
|
|
141
|
+
// section page; remounting it reloads its widgets.
|
|
142
|
+
let dataGeneration = $state(0);
|
|
143
|
+
$effect(() =>
|
|
144
|
+
source.onReset?.(() => {
|
|
145
|
+
dataGeneration += 1;
|
|
146
|
+
}),
|
|
147
|
+
);
|
|
148
|
+
let route = $state('');
|
|
149
|
+
// The mount's own hash router. Each change morphs through a view transition
|
|
150
|
+
// (the chrome named below stays put, the content crossfades); the first read
|
|
151
|
+
// paints plainly. `tick` keeps the DOM update inside the transition's
|
|
152
|
+
// callback, where the browser snapshots the new state.
|
|
115
153
|
onMount(() => {
|
|
116
|
-
|
|
117
|
-
|
|
154
|
+
// One hash change fires both `hashchange` and `popstate`, and `route` is
|
|
155
|
+
// only assigned inside the transition callback (after the old frame is
|
|
156
|
+
// captured), so the target is tracked synchronously to transition once.
|
|
157
|
+
let target = location.hash.slice(1);
|
|
158
|
+
route = target;
|
|
159
|
+
const read = () => {
|
|
160
|
+
const next = location.hash.slice(1);
|
|
161
|
+
if (next === target) return;
|
|
162
|
+
target = next;
|
|
163
|
+
void runViewTransition(async () => {
|
|
164
|
+
route = next;
|
|
165
|
+
await tick();
|
|
166
|
+
});
|
|
167
|
+
};
|
|
168
|
+
window.addEventListener('hashchange', read);
|
|
169
|
+
window.addEventListener('popstate', read);
|
|
118
170
|
return () => {
|
|
119
|
-
|
|
171
|
+
window.removeEventListener('hashchange', read);
|
|
172
|
+
window.removeEventListener('popstate', read);
|
|
120
173
|
};
|
|
121
174
|
});
|
|
122
175
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
176
|
+
const currentRoute = $derived(route || defaultRoute);
|
|
177
|
+
// A fragment route may carry a query (`#/m/commerce/Order/?customerId=x`).
|
|
178
|
+
const routeParts = $derived(splitRoute(currentRoute));
|
|
179
|
+
const pathParts = $derived(routeParts.path.split('/').filter(Boolean));
|
|
180
|
+
const sectionSlug = $derived(pathParts[0] === 's' ? pathParts[1] : undefined);
|
|
181
|
+
const packageId = $derived(
|
|
182
|
+
pathParts[0] === 'packages' ? pathParts[1] : undefined,
|
|
183
|
+
);
|
|
184
|
+
// `/m/<pkg>/<Model>/`, a keyed entry, a record's view or edit page.
|
|
185
|
+
const modelRoute = $derived(
|
|
186
|
+
pathParts[0] === 'm'
|
|
187
|
+
? parseModelRoute(pathParts.slice(1), hasNavKey)
|
|
188
|
+
: undefined,
|
|
189
|
+
);
|
|
190
|
+
const model = $derived(
|
|
191
|
+
modelRoute ? getModel(modelRoute.packageId, modelRoute.modelName) : undefined,
|
|
192
|
+
);
|
|
193
|
+
const applied = $derived(model ? recipeState.apply(model) : undefined);
|
|
194
|
+
const forms = $derived(
|
|
195
|
+
model ? activeForms(recipeState.ids, recipes, model.id) : [],
|
|
196
|
+
);
|
|
197
|
+
// The slice a list page shows: a record's "View all" query, else the keyed
|
|
198
|
+
// entry's filter (the plain entry gives those rows up).
|
|
199
|
+
const scope = $derived.by(() => {
|
|
200
|
+
if (!model || !modelRoute) return undefined;
|
|
201
|
+
return (
|
|
202
|
+
recordFilter(routeParts.search, model) ??
|
|
203
|
+
pageScope(
|
|
204
|
+
model.id,
|
|
205
|
+
modelRoute.view,
|
|
206
|
+
recipeState.ids.flatMap((id) => {
|
|
207
|
+
const recipe = recipes.find((r) => r.id === id);
|
|
208
|
+
return recipe ? recipeNav(recipe) : [];
|
|
209
|
+
}),
|
|
210
|
+
)
|
|
211
|
+
);
|
|
130
212
|
});
|
|
213
|
+
const preset = $derived(scopePreset(scope));
|
|
214
|
+
// The planner's own pages (`#/configure/`, and any route no page above
|
|
215
|
+
// claims) show the customization controls; the header marks them current.
|
|
216
|
+
const configuring = $derived(
|
|
217
|
+
!sectionSlug &&
|
|
218
|
+
!packageId &&
|
|
219
|
+
pathParts[0] !== 'advanced-styles' &&
|
|
220
|
+
pathParts[0] !== 'ai' &&
|
|
221
|
+
!(applied && model),
|
|
222
|
+
);
|
|
223
|
+
// `#/configure/<tab>/` opens that tab (the header's export shortcut is
|
|
224
|
+
// `#/configure/export/`); the tabs themselves keep the route as it is.
|
|
225
|
+
const routeTab = $derived(
|
|
226
|
+
pathParts[0] === 'configure'
|
|
227
|
+
? PLANNER_TAB_IDS.find((id) => id === pathParts[1])
|
|
228
|
+
: undefined,
|
|
229
|
+
);
|
|
131
230
|
$effect(() => {
|
|
132
|
-
if (
|
|
133
|
-
// Reading it all (layout is deep) subscribes the effect to every part.
|
|
134
|
-
void JSON.stringify(cookbookStore.snapshot());
|
|
135
|
-
cookbookStore.scheduleSave();
|
|
231
|
+
if (routeTab) plannerTab.active = routeTab;
|
|
136
232
|
});
|
|
233
|
+
const exporting = $derived(configuring && plannerTab.active === 'export');
|
|
234
|
+
/** The mount's own way around: a fragment route. */
|
|
235
|
+
const navigate = (path: string) => {
|
|
236
|
+
location.hash = path;
|
|
237
|
+
};
|
|
137
238
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
239
|
+
function updateCookbook(next: ComponentProps<typeof CookbookApp>['cookbook']) {
|
|
240
|
+
cookbookStore.apply(next as Cookbook);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
const slotItems = $derived<ShellSlotItem[]>([
|
|
244
|
+
...(backLink
|
|
245
|
+
? [
|
|
246
|
+
{
|
|
247
|
+
id: 'planner-back',
|
|
248
|
+
label: backLink.label,
|
|
249
|
+
slot: 'header.start' as const,
|
|
250
|
+
render: back,
|
|
251
|
+
},
|
|
252
|
+
]
|
|
253
|
+
: []),
|
|
254
|
+
{
|
|
255
|
+
id: 'planner-customize',
|
|
256
|
+
label: 'Plan the app',
|
|
257
|
+
slot: 'header.end' as const,
|
|
258
|
+
render: customize,
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
id: 'planner-export',
|
|
262
|
+
label: 'Export the app',
|
|
263
|
+
slot: 'header.end' as const,
|
|
264
|
+
render: exportLink,
|
|
265
|
+
},
|
|
266
|
+
]);
|
|
267
|
+
// The shell's own `dock:assistant` button (header end, the dock tab on phones)
|
|
268
|
+
// opens the assistant dock; until the assistant can answer it is a link to the
|
|
269
|
+
// mount's AI setup page.
|
|
270
|
+
const dockToggles = $derived(
|
|
271
|
+
assistant
|
|
272
|
+
? [plannerAssistantToggle(appHref('/ai/'), aiState.assistantReady)]
|
|
273
|
+
: [],
|
|
274
|
+
);
|
|
144
275
|
</script>
|
|
145
276
|
|
|
146
|
-
|
|
277
|
+
{#snippet back()}
|
|
278
|
+
<a class="back" href={backLink?.href} data-planner-back>
|
|
279
|
+
<span aria-hidden="true">←</span>
|
|
280
|
+
<span>{backLink?.label}</span>
|
|
281
|
+
</a>
|
|
282
|
+
{/snippet}
|
|
147
283
|
|
|
148
|
-
{#snippet
|
|
149
|
-
<
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
{#if shown.includes('recipes')}
|
|
155
|
-
<div hidden={active !== 'recipes'}><RecipeCards /></div>
|
|
156
|
-
{/if}
|
|
157
|
-
{#if shown.includes('features')}
|
|
158
|
-
<div hidden={active !== 'features'}><FeaturesPanel /></div>
|
|
159
|
-
{/if}
|
|
160
|
-
{#if shown.includes('layout')}
|
|
161
|
-
<div hidden={active !== 'layout'} class="pane">
|
|
162
|
-
<p class="meta">
|
|
163
|
-
Reorder, move or hide navigation entries and choose which panels show.
|
|
164
|
-
The layout is saved with the cookbook.
|
|
165
|
-
</p>
|
|
166
|
-
<ShellLayoutEditor controller={ownLayout ?? shellLayout ?? undefined} />
|
|
167
|
-
</div>
|
|
168
|
-
{/if}
|
|
169
|
-
{#if shown.includes('settings')}
|
|
170
|
-
<div hidden={active !== 'settings'}><SettingsPanel {themeControls} /></div>
|
|
171
|
-
{/if}
|
|
172
|
-
{#if shown.includes('export')}
|
|
173
|
-
<div hidden={active !== 'export'}><ExportPanel /></div>
|
|
174
|
-
{/if}
|
|
175
|
-
</Tabs>
|
|
176
|
-
</div>
|
|
284
|
+
{#snippet assistantDock(registry: DataSurfaceRegistry)}
|
|
285
|
+
<ShellDockTool id="assistant" label="Assistant">
|
|
286
|
+
{#snippet render()}
|
|
287
|
+
<BrowserAssistant {registry} settingsHref={appHref('/ai/')} />
|
|
288
|
+
{/snippet}
|
|
289
|
+
</ShellDockTool>
|
|
177
290
|
{/snippet}
|
|
178
291
|
|
|
179
|
-
{#
|
|
180
|
-
|
|
181
|
-
{
|
|
182
|
-
|
|
183
|
-
{
|
|
292
|
+
{#snippet sectionHeading({ section }: { section: CookbookSectionHeadingInfo })}
|
|
293
|
+
<SectionHeading
|
|
294
|
+
icon={section.icon}
|
|
295
|
+
title={sectionTitle(section.title, defaultTitle)}
|
|
296
|
+
description={sectionInfo(section.id).description ?? section.description}
|
|
297
|
+
/>
|
|
298
|
+
{/snippet}
|
|
184
299
|
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
300
|
+
<!-- The chef's hat: the planner's own pages (Cookbooks, Recipes, Theme,
|
|
301
|
+
Settings, Export), apart from the shell's pencil, which edits the layout. -->
|
|
302
|
+
{#snippet customize()}
|
|
303
|
+
<HeaderIconLink
|
|
304
|
+
href="#/configure/"
|
|
305
|
+
label="Plan the app"
|
|
306
|
+
path={CHEF_HAT_ICON}
|
|
307
|
+
current={configuring && !exporting}
|
|
308
|
+
transitionName="planner-customize"
|
|
309
|
+
onclick={() => plannerTab.leaveExport()}
|
|
310
|
+
/>
|
|
311
|
+
{/snippet}
|
|
189
312
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
313
|
+
<!-- The export shortcut: the Export tab, where the cookbook is downloaded or
|
|
314
|
+
sent to the kitchen. The route selects the tab; the click also does, for
|
|
315
|
+
when the hash is already there. -->
|
|
316
|
+
{#snippet exportLink()}
|
|
317
|
+
<HeaderIconLink
|
|
318
|
+
href="#/configure/export/"
|
|
319
|
+
label="Export the app"
|
|
320
|
+
icon={EXPORT_ICON}
|
|
321
|
+
current={exporting}
|
|
322
|
+
transitionName="planner-export"
|
|
323
|
+
onclick={() => {
|
|
324
|
+
plannerTab.active = 'export';
|
|
325
|
+
}}
|
|
326
|
+
/>
|
|
327
|
+
{/snippet}
|
|
194
328
|
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
329
|
+
<!--
|
|
330
|
+
The shell's pencil (`layoutEditing`, start of the header) edits the menu
|
|
331
|
+
and every section overview in place; each edit comes back through
|
|
332
|
+
`oncookbookchange` and lands in the cookbook's `layout` / `overviews`, so it
|
|
333
|
+
is saved, exported and imported with the rest of the plan. `loaders`,
|
|
334
|
+
`widgetContext` and `resolveExport` wire the framework's own section pages
|
|
335
|
+
(`CookbookSectionPage`, drawn `plain` with the planner's heading) to the
|
|
336
|
+
sample data; `loaders.shortcuts` adds the record counts.
|
|
337
|
+
-->
|
|
338
|
+
<CookbookApp
|
|
339
|
+
cookbook={cookbook as ComponentProps<typeof CookbookApp>['cookbook']}
|
|
340
|
+
catalog={shellCatalog}
|
|
341
|
+
{title}
|
|
342
|
+
href={hashHref}
|
|
343
|
+
currentHref={`#${currentRoute}`}
|
|
344
|
+
homeHref={`#${defaultRoute}`}
|
|
345
|
+
storageKey={SHELL_STORAGE_KEY}
|
|
346
|
+
logoSrc={smrtMark}
|
|
347
|
+
{slotItems}
|
|
348
|
+
{dockToggles}
|
|
349
|
+
dock={assistant ? assistantDock : undefined}
|
|
350
|
+
loaders={plannerLoaders}
|
|
351
|
+
{widgetContext}
|
|
352
|
+
resolveExport={resolveRecipeExport}
|
|
353
|
+
layoutEditing={{ slot: 'header.start' }}
|
|
354
|
+
oncookbookchange={updateCookbook}
|
|
355
|
+
{...plannerShellProps()}
|
|
356
|
+
>
|
|
357
|
+
<ThemeBridge deferInitial={persistence === 'host'} presetOverride={applyCookbookTheme(shell.theme)} />
|
|
358
|
+
<PlannerLifecycle {controller} {basePath} {inference} {persistence} {onready} links="hash" />
|
|
359
|
+
<main class="content">
|
|
360
|
+
{#if sectionSlug}
|
|
361
|
+
{#if cookbookStore.loaded}
|
|
362
|
+
{#key `${sectionSlug}:${dataGeneration}`}
|
|
363
|
+
<CookbookSectionPage
|
|
364
|
+
sectionId={sectionIdFromSlug(sectionSlug)}
|
|
365
|
+
presentation="plain"
|
|
366
|
+
heading={sectionHeading}
|
|
367
|
+
/>
|
|
368
|
+
{/key}
|
|
369
|
+
{/if}
|
|
370
|
+
{:else if packageId}
|
|
371
|
+
<PackagePage id={packageId} backHref="#/configure/" />
|
|
372
|
+
{:else if pathParts[0] === 'advanced-styles'}
|
|
373
|
+
<AdvancedStyles backHref="#/configure/" />
|
|
374
|
+
{:else if pathParts[0] === 'ai'}
|
|
375
|
+
<AiModelsPage backHref="#/configure/" />
|
|
376
|
+
{:else if applied && model && modelRoute?.recordId}
|
|
377
|
+
{#key `${model.id}:${modelRoute.recordId}`}
|
|
378
|
+
<RecordView
|
|
379
|
+
packageId={modelRoute.packageId}
|
|
380
|
+
modelName={modelRoute.modelName}
|
|
381
|
+
recordId={modelRoute.recordId}
|
|
382
|
+
mode={modelRoute.mode}
|
|
383
|
+
href={hashHref}
|
|
384
|
+
{navigate}
|
|
385
|
+
/>
|
|
386
|
+
{/key}
|
|
387
|
+
{:else if applied && model}
|
|
388
|
+
<ModelWorkspace model={applied.model} fields={applied.fields} {forms} {scope} {preset} href={hashHref} />
|
|
389
|
+
{:else}
|
|
390
|
+
<PlannerControls {controller} {basePath} {inference} {persistence} {themeControls} {tabs} managedByParent layout="shell" advancedStylesHref="#/advanced-styles/" />
|
|
391
|
+
{/if}
|
|
392
|
+
</main>
|
|
393
|
+
</CookbookApp>
|
|
199
394
|
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
395
|
+
<style>
|
|
396
|
+
@layer smrt.reset, smrt.structure, smrt.theme;
|
|
397
|
+
@layer smrt.theme {
|
|
398
|
+
/* `view-transition-name`s: one per surface per screen (a duplicate aborts
|
|
399
|
+
the transition). AppShell names its brand, nav and dock (`smrt-shell-*`,
|
|
400
|
+
reserved); these are the planner's own. Like the shell's, they apply only
|
|
401
|
+
while a transition runs (`html[data-smrt-view-transition]`, set by
|
|
402
|
+
`runViewTransition`): a name makes a stacking context, and a permanent
|
|
403
|
+
one on `.content` trapped the record page's phone edit sheet under the
|
|
404
|
+
shell's top bar. */
|
|
405
|
+
.content { width: min(100%, 72rem); margin-inline: auto; padding: var(--smrt-spacing-6); }
|
|
406
|
+
:global([data-smrt-view-transition]) .content { view-transition-name: planner-content; }
|
|
407
|
+
:global([data-smrt-view-transition]) .back { view-transition-name: planner-back; }
|
|
408
|
+
.back { display: inline-flex; align-items: center; gap: var(--smrt-spacing-1); block-size: 2rem; padding-inline: var(--smrt-spacing-2); color: var(--smrt-color-on-surface-variant); font-size: var(--smrt-typography-body-small-size, 0.8125rem); text-decoration: none; white-space: nowrap; border-radius: var(--smrt-radius-medium, 0.5rem); }
|
|
409
|
+
.back:hover { background: color-mix(in srgb, currentColor calc(var(--smrt-state-hover) * 100%), transparent); color: var(--smrt-color-on-surface); }
|
|
410
|
+
.back:focus-visible { outline: var(--smrt-focus-ring-width) solid var(--smrt-focus-ring-color); outline-offset: var(--smrt-focus-ring-offset); }
|
|
411
|
+
}
|
|
204
412
|
</style>
|