@happyvertical/smrt-planner 0.0.2 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +81 -8
- package/app/404.html +42 -49
- package/app/_app/immutable/assets/0.DUow1OzM.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.DOvXbUZo.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.DbXvPbHE.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.BkyuoCEJ.css +1 -0
- package/app/_app/immutable/assets/app.eM0k786r.css +1 -0
- package/app/_app/immutable/assets/currency-metadata.DDyu8_ub.css +1 -0
- package/app/_app/immutable/assets/data.bGq43K60.css +1 -0
- package/app/_app/immutable/assets/feedback.xBpOq9ef.css +1 -0
- package/app/_app/immutable/assets/forms.B3_bbIMe.css +1 -0
- package/app/_app/immutable/assets/labels.BiuUjqHs.css +1 -0
- package/app/_app/immutable/assets/percent.DbwvwMhf.css +1 -0
- package/app/_app/immutable/assets/state.CJipYvSU.css +1 -0
- package/app/_app/immutable/assets/webmcp-ui-context.BnR-DUfO.css +1 -0
- package/app/_app/immutable/assets/workspace.B5Xq-5pJ.css +1 -0
- package/app/_app/immutable/chunks/1ElZWh_R.js +10 -0
- package/app/_app/immutable/chunks/B-CpwO-j.js +1 -0
- package/app/_app/immutable/chunks/{BnRri03M.js → B7KB-rhH.js} +1 -1
- package/app/_app/immutable/chunks/BUhghcIm.js +1 -0
- package/app/_app/immutable/chunks/BV3NwM01.js +1 -0
- package/app/_app/immutable/chunks/BZVZZ6VY.js +1 -0
- package/app/_app/immutable/chunks/Ba1g71Sq.js +1 -0
- package/app/_app/immutable/chunks/BeJD7_hy.js +1 -0
- package/app/_app/immutable/chunks/BiO_bqNH.js +2 -0
- package/app/_app/immutable/chunks/{DkR8_Ws6.js → BqBuCJB_.js} +2 -2
- package/app/_app/immutable/chunks/BsJoBmTA.js +1 -0
- package/app/_app/immutable/chunks/Bxbz6_Mb.js +1 -0
- package/app/_app/immutable/chunks/Bz5uCkjV.js +2 -0
- package/app/_app/immutable/chunks/BzMfoxBk.js +1 -0
- package/app/_app/immutable/chunks/CF6zSg_o.js +2 -0
- package/app/_app/immutable/chunks/CFL0B6dk.js +1 -0
- package/app/_app/immutable/chunks/CRu55ZTy.js +4 -0
- package/app/_app/immutable/chunks/{CyUMm_Wp.js → Cv2EcCr0.js} +1 -1
- package/app/_app/immutable/chunks/D-3Ri0zJ.js +1 -0
- package/app/_app/immutable/chunks/{BWPhGFHl.js → D0FW0z6R.js} +1 -1
- package/app/_app/immutable/chunks/D7d5GssF.js +1 -0
- package/app/_app/immutable/chunks/DCsSRJsN.js +1 -0
- package/app/_app/immutable/chunks/DGqV6_5v.js +1 -0
- package/app/_app/immutable/chunks/DNSRTkf6.js +11 -0
- package/app/_app/immutable/chunks/DQNX_XPY.js +1 -0
- package/app/_app/immutable/chunks/DSyIMN4M.js +1 -0
- package/app/_app/immutable/chunks/DUTtmM1Y.js +1 -0
- package/app/_app/immutable/chunks/DYuawOB3.js +980 -0
- package/app/_app/immutable/chunks/DfCLzLZc.js +1 -0
- package/app/_app/immutable/chunks/Dh5fne6n.js +1 -0
- package/app/_app/immutable/chunks/LruoUXGC.js +1 -0
- package/app/_app/immutable/chunks/ZLqixH7j.js +9 -0
- package/app/_app/immutable/chunks/_pYwB_Eb.js +4 -0
- package/app/_app/immutable/chunks/aoU3lIZI.js +1 -0
- package/app/_app/immutable/chunks/c57ZlocB.js +24 -0
- package/app/_app/immutable/chunks/h8ppmjOm.js +1 -0
- package/app/_app/immutable/chunks/jhcy_jeO.js +1 -0
- package/app/_app/immutable/chunks/vNEnXNLV.js +3 -0
- package/app/_app/immutable/chunks/vwntRvfV.js +1 -0
- package/app/_app/immutable/entry/app.D5LoTsNA.js +2 -0
- package/app/_app/immutable/entry/start.Sb_s0NGC.js +1 -0
- package/app/_app/immutable/nodes/0.Cuo9-RQc.js +9 -0
- package/app/_app/immutable/nodes/1.BW8Ar5T3.js +1 -0
- package/app/_app/immutable/nodes/10.CpLYjN7r.js +3 -0
- package/app/_app/immutable/nodes/11.BMPKD4M3.js +1 -0
- package/app/_app/immutable/nodes/12.WYpy0AHE.js +4 -0
- package/app/_app/immutable/nodes/13.BYo05X9B.js +1 -0
- package/app/_app/immutable/nodes/14.DN0MT3KB.js +1 -0
- package/app/_app/immutable/nodes/2.DM6k_pqu.js +24 -0
- package/app/_app/immutable/nodes/3.YgEwJ-vF.js +1 -0
- package/app/_app/immutable/nodes/4.A3Y6Lax0.js +1 -0
- package/app/_app/immutable/nodes/5.D9Vd85hG.js +1 -0
- package/app/_app/immutable/nodes/6.C5c56bSW.js +1 -0
- package/app/_app/immutable/nodes/7.CDBMbYlD.js +1 -0
- package/app/_app/immutable/nodes/8.8olDkDou.js +1 -0
- package/app/_app/immutable/nodes/9.CWgx__8Z.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 +13 -0
- package/dist/ai/state.svelte.js +33 -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/catalog/catalog.json +11263 -14455
- package/dist/catalog/generate/exclusions.d.ts +2 -0
- package/dist/catalog/generate/exclusions.js +14 -0
- package/dist/catalog/generate/extract.js +28 -7
- 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 +9 -6
- package/dist/components/AiStatusIcons.svelte +8 -5
- package/dist/components/AppSettings.svelte +105 -1
- package/dist/components/BrowserAssistant.svelte +16 -17
- 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 +96 -0
- package/dist/cookbook/store.svelte.d.ts +13 -0
- package/dist/cookbook/store.svelte.js +36 -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 +225 -0
- package/dist/data/money.js +411 -0
- package/dist/data/packs.d.ts +13 -0
- package/dist/data/packs.js +1224 -0
- package/dist/data/planner-source.js +120 -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 +7 -2
- package/dist/index.js +6 -1
- package/dist/kitchen/LiveKitchenBridge.svelte +73 -0
- package/dist/kitchen/LiveKitchenBridge.svelte.d.ts +8 -0
- 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 +20 -2
- 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 +12 -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/2jFBkS1C.js +0 -1
- package/app/_app/immutable/chunks/6P9zxrzU.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/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/CWtfVMDz.js +0 -1
- package/app/_app/immutable/chunks/Chyo8rdT.js +0 -3
- package/app/_app/immutable/chunks/Ci0DUht6.js +0 -34
- package/app/_app/immutable/chunks/CmmuWmp6.js +0 -2
- package/app/_app/immutable/chunks/CrFNLK0f.js +0 -1
- package/app/_app/immutable/chunks/CsprTb3f.js +0 -2
- 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/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/QukgIHDX.js +0 -1
- package/app/_app/immutable/chunks/WxSPP8QW.js +0 -4
- package/app/_app/immutable/chunks/Xp1g1t4n.js +0 -3
- package/app/_app/immutable/chunks/leQCwW2d.js +0 -1
- package/app/_app/immutable/chunks/p6bgzXiY.js +0 -1
- package/app/_app/immutable/entry/app.IZIJXhgq.js +0 -2
- package/app/_app/immutable/entry/start.BuaYHD1N.js +0 -1
- package/app/_app/immutable/nodes/0.m_U8WC7E.js +0 -10
- package/app/_app/immutable/nodes/1.Crw8ULhB.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.BIocA1aI.js +0 -1
- package/app/_app/immutable/nodes/2.CR5BwGnt.js +0 -17
- package/app/_app/immutable/nodes/3.1B56hgAG.js +0 -1
- package/app/_app/immutable/nodes/4.SSIC7sUh.js +0 -1
- package/app/_app/immutable/nodes/5.DgdwleDQ.js +0 -1
- package/app/_app/immutable/nodes/6.DmD9rqLU.js +0 -1
- package/app/_app/immutable/nodes/7.DdngsBmo.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,3 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
type $$ComponentProps = {
|
|
2
|
+
deferInitial?: boolean;
|
|
3
|
+
presetOverride?: string;
|
|
4
|
+
};
|
|
5
|
+
declare const ThemeBridge: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
2
6
|
type ThemeBridge = ReturnType<typeof ThemeBridge>;
|
|
3
7
|
export default ThemeBridge;
|
|
@@ -1,167 +1,258 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { Button } from '@happyvertical/smrt-ui';
|
|
3
|
-
import { FieldLabel, Input
|
|
3
|
+
import { FieldLabel, Input } from '@happyvertical/smrt-ui/forms';
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
themePresets,
|
|
6
|
+
tryGetThemeContext,
|
|
7
7
|
} from '@happyvertical/smrt-ui/themes';
|
|
8
8
|
import { cookbookStore } from '../cookbook/store.svelte.js';
|
|
9
|
-
import {
|
|
9
|
+
import { customCssApproved } from '../theme/custom-css.svelte.js';
|
|
10
|
+
import {
|
|
11
|
+
type BorderRadiusSetting,
|
|
12
|
+
type ColorSchemeSetting,
|
|
13
|
+
type ContrastSetting,
|
|
14
|
+
type DensitySetting,
|
|
15
|
+
normalizeHex,
|
|
16
|
+
THEME_FONTS,
|
|
17
|
+
type ThemeSetting,
|
|
18
|
+
} from '../theme/theme.js';
|
|
10
19
|
|
|
11
|
-
interface
|
|
12
|
-
/**
|
|
13
|
-
* Show the preset and light/dark controls, which drive a smrt-ui theme
|
|
14
|
-
* provider. A host that applies the cookbook's theme itself turns them off
|
|
15
|
-
* and keeps the brand colour, which only writes the document.
|
|
16
|
-
*/
|
|
20
|
+
interface Props {
|
|
17
21
|
provider?: boolean;
|
|
22
|
+
advancedStylesHref?: string;
|
|
18
23
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
// The app's look. The preset and scheme controls change the shell's theme
|
|
23
|
-
// provider, which ThemeBridge reads back into the document; the brand colour
|
|
24
|
-
// writes the document and the bridge applies it.
|
|
24
|
+
let { provider = true, advancedStylesHref = '#/advanced-styles/' }: Props =
|
|
25
|
+
$props();
|
|
26
|
+
const context = tryGetThemeContext();
|
|
25
27
|
const custom = $derived(cookbookStore.theme?.custom);
|
|
26
28
|
let hex = $state('');
|
|
27
29
|
let invalid = $state(false);
|
|
28
|
-
|
|
29
30
|
$effect(() => {
|
|
30
31
|
hex = custom?.primary ?? '';
|
|
31
32
|
invalid = false;
|
|
32
33
|
});
|
|
33
34
|
|
|
34
|
-
|
|
35
|
+
const icons: Record<string, string> = {
|
|
36
|
+
material: '◆',
|
|
37
|
+
glass: '◇',
|
|
38
|
+
studio: '▣',
|
|
39
|
+
smrt: '✦',
|
|
40
|
+
happyvertical: '⬡',
|
|
41
|
+
};
|
|
42
|
+
const schemes: {
|
|
43
|
+
id: ColorSchemeSetting;
|
|
44
|
+
label: string;
|
|
45
|
+
icon: string;
|
|
46
|
+
hint: string;
|
|
47
|
+
}[] = [
|
|
48
|
+
{ id: 'light', label: 'Light', icon: '☀', hint: 'Bright all the time' },
|
|
49
|
+
{ id: 'dark', label: 'Dark', icon: '☾', hint: 'Dim all the time' },
|
|
50
|
+
{ id: 'system', label: 'Auto', icon: '◐', hint: 'Follow this device' },
|
|
51
|
+
];
|
|
52
|
+
|
|
53
|
+
// Corner radius, density and contrast. Each control shows the effective value;
|
|
54
|
+
// choosing the default (the preset's own radius, comfortable, auto) removes
|
|
55
|
+
// the field so the cookbook keeps only what was changed.
|
|
56
|
+
const radii: { id: BorderRadiusSetting; label: string }[] = [
|
|
57
|
+
{ id: 'none', label: 'None' },
|
|
58
|
+
{ id: 'sm', label: 'Small' },
|
|
59
|
+
{ id: 'md', label: 'Medium' },
|
|
60
|
+
{ id: 'lg', label: 'Large' },
|
|
61
|
+
{ id: 'xl', label: 'Extra large' },
|
|
62
|
+
{ id: 'full', label: 'Full' },
|
|
63
|
+
];
|
|
64
|
+
const densities: { id: DensitySetting; label: string }[] = [
|
|
65
|
+
{ id: 'comfortable', label: 'Comfortable' },
|
|
66
|
+
{ id: 'touch', label: 'Touch' },
|
|
67
|
+
];
|
|
68
|
+
const contrasts: { id: ContrastSetting; label: string }[] = [
|
|
69
|
+
{ id: 'auto', label: 'Auto' },
|
|
70
|
+
{ id: 'standard', label: 'Standard' },
|
|
71
|
+
{ id: 'more', label: 'More' },
|
|
72
|
+
];
|
|
73
|
+
const DEFAULTS = {
|
|
74
|
+
borderRadius: 'md',
|
|
75
|
+
density: 'comfortable',
|
|
76
|
+
contrast: 'auto',
|
|
77
|
+
} as const;
|
|
78
|
+
|
|
79
|
+
function setShape<K extends keyof typeof DEFAULTS>(
|
|
80
|
+
key: K,
|
|
81
|
+
value: NonNullable<ThemeSetting[K]>,
|
|
82
|
+
) {
|
|
83
|
+
cookbookStore.setTheme({
|
|
84
|
+
...cookbookStore.theme,
|
|
85
|
+
[key]: value === DEFAULTS[key] ? undefined : value,
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
function setBrand(primary: string) {
|
|
35
90
|
const normalized = normalizeHex(primary);
|
|
36
91
|
invalid = !normalized;
|
|
37
92
|
if (!normalized) return;
|
|
38
93
|
cookbookStore.setTheme({
|
|
39
94
|
...cookbookStore.theme,
|
|
40
|
-
|
|
95
|
+
fontFamily: cookbookStore.theme?.fontFamily ?? custom?.fontFamily,
|
|
96
|
+
custom: { primary: normalized },
|
|
41
97
|
});
|
|
42
98
|
}
|
|
43
99
|
|
|
44
100
|
function setFont(fontFamily: string) {
|
|
45
|
-
|
|
46
|
-
|
|
101
|
+
const legacyCustom = custom ? { primary: custom.primary } : undefined;
|
|
102
|
+
cookbookStore.setTheme({
|
|
103
|
+
...cookbookStore.theme,
|
|
104
|
+
fontFamily: fontFamily || undefined,
|
|
105
|
+
custom: legacyCustom,
|
|
106
|
+
});
|
|
47
107
|
}
|
|
48
108
|
|
|
49
109
|
function resetToPreset() {
|
|
50
|
-
cookbookStore.setTheme({
|
|
110
|
+
cookbookStore.setTheme({
|
|
111
|
+
...cookbookStore.theme,
|
|
112
|
+
fontFamily: cookbookStore.theme?.fontFamily ?? custom?.fontFamily,
|
|
113
|
+
custom: undefined,
|
|
114
|
+
});
|
|
51
115
|
}
|
|
116
|
+
const cssPending = $derived.by(() => {
|
|
117
|
+
const css = cookbookStore.theme?.customCss;
|
|
118
|
+
return Boolean(css) && !customCssApproved(css ?? '');
|
|
119
|
+
});
|
|
52
120
|
</script>
|
|
53
121
|
|
|
54
|
-
<section class="theme" aria-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
122
|
+
<section class="theme" aria-label="Theme settings">
|
|
123
|
+
{#if provider && context}
|
|
124
|
+
<div class="cards" role="group" aria-label="Theme look">
|
|
125
|
+
{#each themePresets as preset (preset.id)}
|
|
126
|
+
{@const palette = context.state.resolvedScheme === 'dark' ? preset.dark : preset.light}
|
|
127
|
+
<button type="button" class="choice preset"
|
|
128
|
+
class:selected={!custom && (cookbookStore.theme?.preset ?? 'glass') === preset.id}
|
|
129
|
+
aria-pressed={!custom && (cookbookStore.theme?.preset ?? 'glass') === preset.id}
|
|
130
|
+
onclick={() => context?.setPreset(preset.id)}
|
|
131
|
+
style:--smrt-planner-preview-bg={palette.background}
|
|
132
|
+
style:--smrt-planner-preview-surface={palette.surface}
|
|
133
|
+
style:--smrt-planner-preview-primary={palette.primary}
|
|
134
|
+
style:--smrt-planner-preview-ink={palette.onSurface}>
|
|
135
|
+
<span class="choice-name"><span class="choice-icon" aria-hidden="true">{icons[preset.id]}</span>{preset.label}</span>
|
|
136
|
+
<span class="preview" aria-hidden="true">
|
|
137
|
+
<span class="preview-sidebar"><span></span><span></span><span></span></span>
|
|
138
|
+
<span class="preview-main"><span class="preview-title"></span><span class="preview-body"><span></span><span></span></span></span>
|
|
139
|
+
</span>
|
|
140
|
+
</button>
|
|
141
|
+
{/each}
|
|
142
|
+
</div>
|
|
143
|
+
<div class="cards schemes" role="group" aria-label="Appearance">
|
|
144
|
+
{#each schemes as scheme (scheme.id)}
|
|
145
|
+
<button type="button" class="choice scheme"
|
|
146
|
+
class:selected={context.state.colorScheme === scheme.id}
|
|
147
|
+
aria-pressed={context.state.colorScheme === scheme.id}
|
|
148
|
+
onclick={() => context?.setColorScheme(scheme.id)}>
|
|
149
|
+
<span class="choice-name"><span class="choice-icon" aria-hidden="true">{scheme.icon}</span>{scheme.label}</span>
|
|
150
|
+
<span class="choice-hint">{scheme.hint}</span>
|
|
151
|
+
</button>
|
|
152
|
+
{/each}
|
|
64
153
|
</div>
|
|
65
154
|
{/if}
|
|
155
|
+
<div class="shape" role="group" aria-label="Shape and contrast">
|
|
156
|
+
<div class="field">
|
|
157
|
+
<FieldLabel for="theme-radius" label="Corner radius" />
|
|
158
|
+
<select id="theme-radius" value={cookbookStore.theme?.borderRadius ?? DEFAULTS.borderRadius}
|
|
159
|
+
onchange={(event) => setShape('borderRadius', event.currentTarget.value as BorderRadiusSetting)}>
|
|
160
|
+
{#each radii as radius (radius.id)}<option value={radius.id}>{radius.label}</option>{/each}
|
|
161
|
+
</select>
|
|
162
|
+
</div>
|
|
163
|
+
<div class="field">
|
|
164
|
+
<FieldLabel for="theme-density" label="Density" />
|
|
165
|
+
<select id="theme-density" value={cookbookStore.theme?.density ?? DEFAULTS.density}
|
|
166
|
+
onchange={(event) => setShape('density', event.currentTarget.value as DensitySetting)}>
|
|
167
|
+
{#each densities as density (density.id)}<option value={density.id}>{density.label}</option>{/each}
|
|
168
|
+
</select>
|
|
169
|
+
</div>
|
|
170
|
+
<div class="field">
|
|
171
|
+
<FieldLabel for="theme-contrast" label="Contrast" />
|
|
172
|
+
<select id="theme-contrast" value={cookbookStore.theme?.contrast ?? DEFAULTS.contrast}
|
|
173
|
+
onchange={(event) => setShape('contrast', event.currentTarget.value as ContrastSetting)}>
|
|
174
|
+
{#each contrasts as contrast (contrast.id)}<option value={contrast.id}>{contrast.label}</option>{/each}
|
|
175
|
+
</select>
|
|
176
|
+
</div>
|
|
177
|
+
</div>
|
|
66
178
|
<div class="brand">
|
|
67
179
|
<div class="field">
|
|
68
180
|
<FieldLabel for="theme-brand-colour" label="Brand colour" />
|
|
69
181
|
<div class="pick">
|
|
70
|
-
<
|
|
71
|
-
id="theme-brand-colour"
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
/>
|
|
78
|
-
<Input
|
|
79
|
-
type="text"
|
|
80
|
-
aria-label="Brand colour hex"
|
|
81
|
-
placeholder="#c2410c"
|
|
82
|
-
autocomplete="off"
|
|
83
|
-
spellcheck="false"
|
|
84
|
-
value={hex}
|
|
85
|
-
aria-invalid={invalid}
|
|
182
|
+
<span class="wheel" style:--smrt-planner-picked-color={custom?.primary ?? '#e68a00'}>
|
|
183
|
+
<input id="theme-brand-colour" type="color" aria-label="Choose brand colour"
|
|
184
|
+
value={custom?.primary ?? '#e68a00'}
|
|
185
|
+
oninput={(event) => setBrand(event.currentTarget.value)} />
|
|
186
|
+
</span>
|
|
187
|
+
<Input type="text" aria-label="Brand colour hex" placeholder="#c2410c"
|
|
188
|
+
autocomplete="off" spellcheck="false" value={hex} aria-invalid={invalid}
|
|
86
189
|
oninput={(event) => {
|
|
87
190
|
hex = event.currentTarget.value;
|
|
88
191
|
if (hex.trim()) setBrand(hex);
|
|
89
|
-
}}
|
|
90
|
-
/>
|
|
192
|
+
}} />
|
|
91
193
|
</div>
|
|
92
194
|
</div>
|
|
93
|
-
<div class="field">
|
|
195
|
+
<div class="field font-field">
|
|
94
196
|
<FieldLabel for="theme-brand-font" label="Font" />
|
|
95
|
-
<
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
onchange={(event) => setFont(event.currentTarget.value)}
|
|
100
|
-
>
|
|
101
|
-
<option value="">Default</option>
|
|
102
|
-
{#each Object.keys(THEME_FONTS) as font (font)}
|
|
103
|
-
<option value={font}>{font}</option>
|
|
104
|
-
{/each}
|
|
105
|
-
</Select>
|
|
106
|
-
{#if !custom}
|
|
107
|
-
<span class="hint">Pick a brand colour to choose a font.</span>
|
|
108
|
-
{/if}
|
|
197
|
+
<select id="theme-brand-font" value={cookbookStore.theme?.fontFamily ?? custom?.fontFamily ?? ''} onchange={(event) => setFont(event.currentTarget.value)}>
|
|
198
|
+
<option value="">Theme default</option>
|
|
199
|
+
{#each Object.keys(THEME_FONTS) as font (font)}<option value={font}>{font}</option>{/each}
|
|
200
|
+
</select>
|
|
109
201
|
</div>
|
|
110
|
-
{#if custom}
|
|
111
|
-
<Button variant="secondary" onclick={resetToPreset}>Reset to preset</Button>
|
|
112
|
-
{/if}
|
|
202
|
+
{#if custom}<Button variant="secondary" onclick={resetToPreset}>Reset brand colour</Button>{/if}
|
|
113
203
|
</div>
|
|
114
|
-
{#if invalid}
|
|
115
|
-
|
|
116
|
-
|
|
204
|
+
{#if invalid}<p class="error" role="alert">Use a hex colour like #c2410c.</p>{/if}
|
|
205
|
+
<a class="advanced" href={advancedStylesHref}>
|
|
206
|
+
<span class="advanced-icon" aria-hidden="true">{'{}'}</span>
|
|
207
|
+
<span><strong>Advanced Styles</strong><small>{cssPending ? 'This cookbook has custom CSS waiting for your approval' : 'Edit custom CSS for your app'}</small></span>
|
|
208
|
+
<span class="arrow" aria-hidden="true">→</span>
|
|
209
|
+
</a>
|
|
117
210
|
</section>
|
|
118
211
|
|
|
119
212
|
<style>
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.
|
|
131
|
-
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
.
|
|
135
|
-
.
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.field {
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
.
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
.
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
.hint {
|
|
164
|
-
color: var(--smrt-color-on-surface-variant);
|
|
165
|
-
font-size: 0.8125rem;
|
|
213
|
+
@layer smrt.reset, smrt.structure, smrt.theme;
|
|
214
|
+
@layer smrt.theme {
|
|
215
|
+
.theme { display: grid; gap: 1.25rem; max-inline-size: 72rem; }
|
|
216
|
+
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(10rem, 100%), 1fr)); gap: .75rem; }
|
|
217
|
+
.choice { display: grid; align-content: start; gap: .8rem; min-block-size: 8.5rem; padding: .85rem; border: var(--smrt-hairline); border-radius: var(--smrt-radius-large, .75rem); background: var(--smrt-surface-panel); color: var(--smrt-color-on-surface); text-align: start; cursor: pointer; transition: border-color var(--smrt-duration-short3, 150ms) var(--smrt-easing-standard, ease), background var(--smrt-duration-short3, 150ms) var(--smrt-easing-standard, ease), transform var(--smrt-duration-short3, 150ms) var(--smrt-easing-standard, ease); }
|
|
218
|
+
.choice:hover { border-color: var(--smrt-color-primary); background: var(--smrt-surface-raised); transform: translateY(-2px); }
|
|
219
|
+
.choice.selected { border: 2px solid var(--smrt-color-primary); padding: calc(.85rem - 1px); background: var(--smrt-color-primary-container); color: var(--smrt-color-on-primary-container); }
|
|
220
|
+
.choice:focus-visible, .advanced:focus-visible, .wheel:focus-within, select:focus-visible { outline: var(--smrt-focus-ring-width) solid var(--smrt-focus-ring-color); outline-offset: var(--smrt-focus-ring-offset); }
|
|
221
|
+
.choice-name { display: inline-flex; align-items: center; gap: .55rem; font-size: 1rem; font-weight: 700; line-height: 1.2; }
|
|
222
|
+
.choice-icon { display: inline-grid; place-items: center; flex: none; inline-size: 1.5rem; block-size: 1.5rem; font-size: 1.35rem; color: var(--smrt-color-primary); }
|
|
223
|
+
.preview { display: flex; overflow: hidden; inline-size: 100%; block-size: 4.5rem; border-radius: .4rem; border: 1px solid color-mix(in srgb, var(--smrt-planner-preview-ink) 20%, transparent); background: var(--smrt-planner-preview-bg); }
|
|
224
|
+
.preview-sidebar { display: grid; align-content: start; gap: .35rem; inline-size: 23%; padding: .5rem .3rem; background: var(--smrt-planner-preview-primary); }
|
|
225
|
+
.preview-sidebar span { block-size: .22rem; border-radius: 1rem; background: var(--smrt-planner-preview-surface); opacity: .8; }
|
|
226
|
+
.preview-main { display: grid; align-content: start; gap: .4rem; flex: 1; padding: .6rem; }
|
|
227
|
+
.preview-title { inline-size: 55%; block-size: .32rem; border-radius: 1rem; background: var(--smrt-planner-preview-ink); opacity: .7; }
|
|
228
|
+
.preview-body { display: grid; gap: .25rem; padding: .35rem; border-radius: .2rem; background: var(--smrt-planner-preview-surface); }
|
|
229
|
+
.preview-body span { block-size: .2rem; border-radius: 1rem; background: var(--smrt-planner-preview-primary); opacity: .7; }
|
|
230
|
+
.preview-body span:last-child { inline-size: 70%; opacity: .35; }
|
|
231
|
+
.scheme { min-block-size: 8.5rem; }
|
|
232
|
+
.choice-hint { font-size: .85rem; color: var(--smrt-color-on-surface-variant); }
|
|
233
|
+
.brand, .shape { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; }
|
|
234
|
+
.shape .field { min-inline-size: min(10rem, 100%); }
|
|
235
|
+
.field { display: grid; gap: .4rem; }
|
|
236
|
+
.pick { display: flex; gap: .65rem; align-items: center; }
|
|
237
|
+
.wheel { position: relative; display: inline-grid; place-items: center; flex: none; inline-size: 3rem; block-size: 3rem; border-radius: 50%; background: conic-gradient(red, #ff0, #0f0, #0ff, #00f, #f0f, red); box-shadow: 0 0 0 1px var(--smrt-hairline-color); cursor: pointer; }
|
|
238
|
+
.wheel::after { content: ''; inline-size: 1.7rem; block-size: 1.7rem; border: 2px solid white; border-radius: 50%; background: var(--smrt-planner-picked-color); box-shadow: var(--smrt-elevation-1); pointer-events: none; }
|
|
239
|
+
.wheel input { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; opacity: 0; cursor: pointer; }
|
|
240
|
+
.font-field { min-inline-size: min(14rem, 100%); }
|
|
241
|
+
select { min-block-size: 3rem; padding: .6rem 2rem .6rem .8rem; border: var(--smrt-control-border); border-radius: var(--smrt-radius-medium, .5rem); background: var(--smrt-surface-control); color: var(--smrt-color-on-surface); font: inherit; cursor: pointer; }
|
|
242
|
+
.error { margin: 0; color: var(--smrt-color-error); }
|
|
243
|
+
.advanced { display: flex; align-items: center; gap: .8rem; padding: 1rem; border: var(--smrt-hairline); border-radius: var(--smrt-radius-large, .75rem); background: var(--smrt-surface-panel); color: var(--smrt-color-on-surface); text-decoration: none; }
|
|
244
|
+
.advanced:hover { border-color: var(--smrt-color-primary); }
|
|
245
|
+
.advanced-icon { display: grid; place-items: center; inline-size: 2.8rem; block-size: 2.8rem; flex: none; border-radius: .65rem; background: var(--smrt-color-primary-container); color: var(--smrt-color-on-primary-container); font: 700 1rem ui-monospace, monospace; }
|
|
246
|
+
.advanced strong, .advanced small { display: block; }
|
|
247
|
+
.advanced small { margin-top: .15rem; color: var(--smrt-color-on-surface-variant); }
|
|
248
|
+
.arrow { margin-inline-start: auto; font-size: 1.3rem; }
|
|
249
|
+
/* Forced colours: backgrounds and shadows are replaced by system colours, so
|
|
250
|
+
the selected card shows a Highlight frame, and the colour swatches (the
|
|
251
|
+
preset previews and the wheel) keep their real colours: they show
|
|
252
|
+
colours by design. */
|
|
253
|
+
@media (forced-colors: active) {
|
|
254
|
+
.choice.selected { border-color: Highlight; outline: 0.125rem solid Highlight; outline-offset: 0.125rem; }
|
|
255
|
+
.preview, .wheel { forced-color-adjust: none; }
|
|
166
256
|
}
|
|
257
|
+
}
|
|
167
258
|
</style>
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
interface
|
|
2
|
-
/**
|
|
3
|
-
* Show the preset and light/dark controls, which drive a smrt-ui theme
|
|
4
|
-
* provider. A host that applies the cookbook's theme itself turns them off
|
|
5
|
-
* and keeps the brand colour, which only writes the document.
|
|
6
|
-
*/
|
|
1
|
+
interface Props {
|
|
7
2
|
provider?: boolean;
|
|
3
|
+
advancedStylesHref?: string;
|
|
8
4
|
}
|
|
9
|
-
declare const ThemeSection: import("svelte").Component<
|
|
5
|
+
declare const ThemeSection: import("svelte").Component<Props, {}, "">;
|
|
10
6
|
type ThemeSection = ReturnType<typeof ThemeSection>;
|
|
11
7
|
export default ThemeSection;
|
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
skuCode,
|
|
19
19
|
} from '../forms/variantGrid.js';
|
|
20
20
|
import type { VariantGridForm } from '../recipes/types.js';
|
|
21
|
+
import '../styles/planner-forms.css';
|
|
21
22
|
import FieldInput from './FieldInput.svelte';
|
|
22
23
|
|
|
23
24
|
interface VariantGridFormProps {
|
|
@@ -124,7 +125,7 @@ async function save(event: SubmitEvent) {
|
|
|
124
125
|
{#if !loaded}
|
|
125
126
|
<p>Loading...</p>
|
|
126
127
|
{:else}
|
|
127
|
-
<form onsubmit={save}>
|
|
128
|
+
<form class="planner-form" onsubmit={save}>
|
|
128
129
|
<h3>{id === undefined ? `New ${active.form.label.toLowerCase()}` : `Edit ${active.form.label.toLowerCase()}`}</h3>
|
|
129
130
|
{#each productInputs as { field, catalogField } (field.id)}
|
|
130
131
|
<FieldInput
|
|
@@ -219,14 +220,8 @@ async function save(event: SubmitEvent) {
|
|
|
219
220
|
{/if}
|
|
220
221
|
|
|
221
222
|
<style>
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
gap: var(--smrt-spacing-3);
|
|
225
|
-
padding: var(--smrt-spacing-4);
|
|
226
|
-
border: 1px solid var(--smrt-color-outline-variant);
|
|
227
|
-
border-radius: var(--smrt-radius-large);
|
|
228
|
-
}
|
|
229
|
-
|
|
223
|
+
@layer smrt.reset, smrt.structure, smrt.theme;
|
|
224
|
+
@layer smrt.theme {
|
|
230
225
|
h3,
|
|
231
226
|
h4,
|
|
232
227
|
p {
|
|
@@ -256,16 +251,16 @@ async function save(event: SubmitEvent) {
|
|
|
256
251
|
th,
|
|
257
252
|
td {
|
|
258
253
|
padding: var(--smrt-spacing-1) var(--smrt-spacing-2);
|
|
259
|
-
border:
|
|
254
|
+
border: var(--smrt-hairline);
|
|
260
255
|
text-align: left;
|
|
261
256
|
}
|
|
262
257
|
|
|
263
258
|
td input {
|
|
264
259
|
width: 6rem;
|
|
265
260
|
padding: var(--smrt-spacing-1) var(--smrt-spacing-2);
|
|
266
|
-
border:
|
|
261
|
+
border: var(--smrt-control-border);
|
|
267
262
|
border-radius: var(--smrt-radius-medium);
|
|
268
|
-
background: var(--smrt-
|
|
263
|
+
background: var(--smrt-surface-control);
|
|
269
264
|
color: var(--smrt-color-on-surface);
|
|
270
265
|
font: inherit;
|
|
271
266
|
}
|
|
@@ -294,7 +289,7 @@ async function save(event: SubmitEvent) {
|
|
|
294
289
|
}
|
|
295
290
|
|
|
296
291
|
button.secondary {
|
|
297
|
-
border:
|
|
292
|
+
border: var(--smrt-control-border);
|
|
298
293
|
background: transparent;
|
|
299
294
|
color: var(--smrt-color-on-surface);
|
|
300
295
|
}
|
|
@@ -306,4 +301,5 @@ async function save(event: SubmitEvent) {
|
|
|
306
301
|
overflow: hidden;
|
|
307
302
|
clip-path: inset(50%);
|
|
308
303
|
}
|
|
304
|
+
}
|
|
309
305
|
</style>
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ActiveForm } from '../forms/active.ts';
|
|
2
2
|
import type { VariantGridForm } from '../recipes/types.ts';
|
|
3
|
+
import '../styles/planner-forms.css';
|
|
3
4
|
interface VariantGridFormProps {
|
|
4
5
|
active: ActiveForm<VariantGridForm>;
|
|
5
6
|
/** The product to edit; omitted when creating. */
|
|
@@ -68,6 +68,8 @@ const visible = $derived(
|
|
|
68
68
|
{/if}
|
|
69
69
|
|
|
70
70
|
<style>
|
|
71
|
+
@layer smrt.reset, smrt.structure, smrt.theme;
|
|
72
|
+
@layer smrt.theme {
|
|
71
73
|
.voice {
|
|
72
74
|
display: flex;
|
|
73
75
|
align-items: center;
|
|
@@ -105,4 +107,5 @@ const visible = $derived(
|
|
|
105
107
|
.error {
|
|
106
108
|
color: var(--smrt-color-error);
|
|
107
109
|
}
|
|
110
|
+
}
|
|
108
111
|
</style>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { ShellLayout } from '@happyvertical/smrt-svelte/workspace/layout';
|
|
2
|
+
import type { FieldPolicyRow } from '../recipes/policy.ts';
|
|
3
|
+
import { type ThemeSetting } from '../theme/theme.ts';
|
|
4
|
+
import type { Cookbook } from './types.ts';
|
|
5
|
+
/**
|
|
6
|
+
* The Export page's summary of a cookbook: one line per dimension that has
|
|
7
|
+
* content, so a person sees what a download carries and what Import or Reset
|
|
8
|
+
* would replace. Pure; the page renders `chips` as chips and `text` as prose.
|
|
9
|
+
*/
|
|
10
|
+
export interface SummaryLine {
|
|
11
|
+
id: 'recipes' | 'features' | 'options' | 'exposure' | 'theme' | 'layout' | 'pages';
|
|
12
|
+
label: string;
|
|
13
|
+
chips?: string[];
|
|
14
|
+
text?: string;
|
|
15
|
+
}
|
|
16
|
+
/** The last segment of a qualified model name, humanized: `@scope/pkg:StockLevel` -> `Stock level`. */
|
|
17
|
+
export declare function modelLabel(qualified: string): string;
|
|
18
|
+
/** Saved options grouped by model: `Customer: payment terms, currency`. */
|
|
19
|
+
export declare function describeOptions(policies: readonly FieldPolicyRow[]): string[];
|
|
20
|
+
/** The theme as a few words: preset or brand colour, then what differs from the defaults. */
|
|
21
|
+
export declare function describeTheme(theme: ThemeSetting): string[];
|
|
22
|
+
/** The layout delta in counts: custom sections by name, then hidden, renamed, moved, reordered. */
|
|
23
|
+
export declare function describeLayout(layout: ShellLayout): string[];
|
|
24
|
+
/** A customised page's name from its overview id. */
|
|
25
|
+
export declare function pageLabel(id: string, layout?: ShellLayout): string;
|
|
26
|
+
/** Every line with content, in display order; empty for an empty cookbook. */
|
|
27
|
+
export declare function describeCookbook(cookbook: Cookbook): SummaryLine[];
|
|
28
|
+
/** One sentence for confirm dialogs: "3 recipes, 2 saved options, a theme and a layout". */
|
|
29
|
+
export declare function summarizeCookbook(cookbook: Cookbook): string;
|