create-businessdash 0.0.0-stage → 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/LICENSE +21 -0
- package/README.md +125 -2
- package/dist/index.mjs +3672 -0
- package/index.js +2 -0
- package/package.json +40 -5
- package/templates/angular/.claude/CLAUDE.md +54 -0
- package/templates/angular/.cursor/rules/cursor.mdc +60 -0
- package/templates/angular/.editorconfig +17 -0
- package/templates/angular/.env.example +62 -0
- package/templates/angular/.prettierrc +12 -0
- package/templates/angular/.vscode/extensions.json +4 -0
- package/templates/angular/.vscode/launch.json +20 -0
- package/templates/angular/.vscode/mcp.json +9 -0
- package/templates/angular/.vscode/tasks.json +42 -0
- package/templates/angular/AGENTS.md +54 -0
- package/templates/angular/README.md +382 -0
- package/templates/angular/_gitignore +49 -0
- package/templates/angular/angular.json +93 -0
- package/templates/angular/bd.config.ts +331 -0
- package/templates/angular/bd.data-model.config.ts +89 -0
- package/templates/angular/package.json +60 -0
- package/templates/angular/pnpm-lock.yaml +5506 -0
- package/templates/angular/public/favicon.ico +0 -0
- package/templates/angular/src/app/app.config.server.ts +10 -0
- package/templates/angular/src/app/app.config.ts +48 -0
- package/templates/angular/src/app/app.html +7 -0
- package/templates/angular/src/app/app.routes.server.ts +14 -0
- package/templates/angular/src/app/app.routes.ts +69 -0
- package/templates/angular/src/app/app.scss +5 -0
- package/templates/angular/src/app/app.spec.ts +25 -0
- package/templates/angular/src/app/app.ts +27 -0
- package/templates/angular/src/app/lib/bd-api.client.ts +416 -0
- package/templates/angular/src/app/lib/bd-forms.client.ts +107 -0
- package/templates/angular/src/app/lib/bd.service.ts +145 -0
- package/templates/angular/src/app/lib/followers.service.ts +143 -0
- package/templates/angular/src/app/pages/booking.page.ts +142 -0
- package/templates/angular/src/app/pages/cart.page.ts +131 -0
- package/templates/angular/src/app/pages/home.page.ts +37 -0
- package/templates/angular/src/app/pages/my-account.page.ts +197 -0
- package/templates/angular/src/app/pages/product-detail.page.ts +217 -0
- package/templates/angular/src/app/pages/reviews.page.ts +89 -0
- package/templates/angular/src/app/pages/service-area.page.ts +86 -0
- package/templates/angular/src/app/pages/services-index.page.ts +49 -0
- package/templates/angular/src/app/pages/store.page.ts +422 -0
- package/templates/angular/src/app/pages/subscriptions.page.ts +102 -0
- package/templates/angular/src/app/pages/todos.page.ts +194 -0
- package/templates/angular/src/app/pages/updates.page.ts +45 -0
- package/templates/angular/src/app/sections/about.component.ts +24 -0
- package/templates/angular/src/app/sections/blog.component.ts +33 -0
- package/templates/angular/src/app/sections/contact-form.component.ts +51 -0
- package/templates/angular/src/app/sections/footer.component.ts +14 -0
- package/templates/angular/src/app/sections/header.component.ts +36 -0
- package/templates/angular/src/app/sections/hero.component.ts +21 -0
- package/templates/angular/src/app/sections/news-banner.component.ts +50 -0
- package/templates/angular/src/app/sections/reviews-summary.component.ts +41 -0
- package/templates/angular/src/app/sections/sdk-setup-banner.component.ts +125 -0
- package/templates/angular/src/app/sections/services.component.ts +27 -0
- package/templates/angular/src/app/sections/subscribe.component.ts +140 -0
- package/templates/angular/src/app/sections/updates.component.ts +38 -0
- package/templates/angular/src/environments/environment.prod.ts +13 -0
- package/templates/angular/src/environments/environment.ts +23 -0
- package/templates/angular/src/index.html +13 -0
- package/templates/angular/src/main.server.ts +7 -0
- package/templates/angular/src/main.ts +5 -0
- package/templates/angular/src/server/bd-api.ts +1098 -0
- package/templates/angular/src/server/bd-seo.ts +55 -0
- package/templates/angular/src/server/bd-server.ts +293 -0
- package/templates/angular/src/server.ts +94 -0
- package/templates/angular/src/styles.scss +1102 -0
- package/templates/angular/tsconfig.app.json +11 -0
- package/templates/angular/tsconfig.json +33 -0
- package/templates/angular/tsconfig.spec.json +10 -0
- package/templates/astro/.env.example +48 -0
- package/templates/astro/.vscode/extensions.json +4 -0
- package/templates/astro/.vscode/launch.json +11 -0
- package/templates/astro/README.md +432 -0
- package/templates/astro/_gitignore +25 -0
- package/templates/astro/astro.config.mjs +13 -0
- package/templates/astro/bd.config.ts +331 -0
- package/templates/astro/bd.data-model.config.ts +90 -0
- package/templates/astro/package.json +40 -0
- package/templates/astro/pnpm-lock.yaml +3788 -0
- package/templates/astro/public/favicon.ico +0 -0
- package/templates/astro/public/favicon.svg +9 -0
- package/templates/astro/src/components/About.astro +59 -0
- package/templates/astro/src/components/Banner.astro +78 -0
- package/templates/astro/src/components/Blog.astro +62 -0
- package/templates/astro/src/components/Booking.astro +285 -0
- package/templates/astro/src/components/ContactForm.astro +89 -0
- package/templates/astro/src/components/ContactForm.tsx +80 -0
- package/templates/astro/src/components/Footer.astro +39 -0
- package/templates/astro/src/components/Gallery.astro +77 -0
- package/templates/astro/src/components/Header.astro +65 -0
- package/templates/astro/src/components/Hero.astro +45 -0
- package/templates/astro/src/components/NotFound.astro +22 -0
- package/templates/astro/src/components/Reviews.astro +169 -0
- package/templates/astro/src/components/SdkSetupBanner.astro +83 -0
- package/templates/astro/src/components/Services.astro +87 -0
- package/templates/astro/src/components/Subscribe.astro +196 -0
- package/templates/astro/src/components/Subscribe.tsx +171 -0
- package/templates/astro/src/layouts/Layout.astro +89 -0
- package/templates/astro/src/lib/bd-bundle.ts +113 -0
- package/templates/astro/src/lib/bd-distribution.ts +36 -0
- package/templates/astro/src/lib/bd-portal.ts +158 -0
- package/templates/astro/src/lib/bd-seo.ts +81 -0
- package/templates/astro/src/lib/bd-store.ts +185 -0
- package/templates/astro/src/lib/bd-suspension.ts +67 -0
- package/templates/astro/src/lib/bd-todos.ts +124 -0
- package/templates/astro/src/lib/bd.ts +73 -0
- package/templates/astro/src/pages/.well-known/mcp.json.ts +22 -0
- package/templates/astro/src/pages/404.astro +15 -0
- package/templates/astro/src/pages/[...slug].astro +50 -0
- package/templates/astro/src/pages/ai/product-feed.ts +25 -0
- package/templates/astro/src/pages/api/bd/cart/add.ts +41 -0
- package/templates/astro/src/pages/api/bd/cart/clear.ts +29 -0
- package/templates/astro/src/pages/api/bd/cart/coupon.ts +35 -0
- package/templates/astro/src/pages/api/bd/cart/get.ts +28 -0
- package/templates/astro/src/pages/api/bd/cart/remove.ts +33 -0
- package/templates/astro/src/pages/api/bd/cart/update.ts +41 -0
- package/templates/astro/src/pages/api/bd/checkout/start.ts +37 -0
- package/templates/astro/src/pages/api/bd/forms/[slug].ts +75 -0
- package/templates/astro/src/pages/api/bd/portal/plan.ts +31 -0
- package/templates/astro/src/pages/api/bd/portal/submit-review.ts +56 -0
- package/templates/astro/src/pages/api/bd/revalidate.ts +49 -0
- package/templates/astro/src/pages/api/bd/reviews.ts +39 -0
- package/templates/astro/src/pages/api/bd/scheduling/bookings.ts +44 -0
- package/templates/astro/src/pages/api/bd/scheduling/slots.ts +40 -0
- package/templates/astro/src/pages/api/bd/subscriptions/checkout.ts +29 -0
- package/templates/astro/src/pages/api/bd-auth/[...slug].ts +61 -0
- package/templates/astro/src/pages/api/mcp.ts +40 -0
- package/templates/astro/src/pages/index.astro +47 -0
- package/templates/astro/src/pages/llms.txt.ts +25 -0
- package/templates/astro/src/pages/my-account.astro +388 -0
- package/templates/astro/src/pages/reviews.astro +18 -0
- package/templates/astro/src/pages/robots.txt.ts +46 -0
- package/templates/astro/src/pages/services/[service]/[area].astro +103 -0
- package/templates/astro/src/pages/services/index.astro +104 -0
- package/templates/astro/src/pages/sitemap.xml.ts +89 -0
- package/templates/astro/src/pages/store/[id].astro +208 -0
- package/templates/astro/src/pages/store/cart.astro +458 -0
- package/templates/astro/src/pages/store/index.astro +567 -0
- package/templates/astro/src/pages/store/subscriptions.astro +155 -0
- package/templates/astro/src/pages/todos.astro +199 -0
- package/templates/astro/src/pages/updates.astro +135 -0
- package/templates/astro/src/styles/global.css +631 -0
- package/templates/astro/tsconfig.json +8 -0
- package/templates/elixir/.env.example +58 -0
- package/templates/elixir/README.md +293 -0
- package/templates/elixir/_gitignore +16 -0
- package/templates/elixir/assets/js/app.js +16 -0
- package/templates/elixir/bd-records/README.md +50 -0
- package/templates/elixir/bd-records/todo-images.json +14 -0
- package/templates/elixir/bd-records/todos.json +20 -0
- package/templates/elixir/bd.config.ts +331 -0
- package/templates/elixir/bd.data-model.config.ts +89 -0
- package/templates/elixir/config/config.exs +30 -0
- package/templates/elixir/config/dev.exs +20 -0
- package/templates/elixir/config/prod.exs +6 -0
- package/templates/elixir/config/runtime.exs +68 -0
- package/templates/elixir/config/test.exs +9 -0
- package/templates/elixir/lib/bd_starter/application.ex +29 -0
- package/templates/elixir/lib/bd_starter/bd/auth.ex +126 -0
- package/templates/elixir/lib/bd_starter/bd/cache.ex +148 -0
- package/templates/elixir/lib/bd_starter/bd/chat_session.ex +214 -0
- package/templates/elixir/lib/bd_starter/bd/client.ex +203 -0
- package/templates/elixir/lib/bd_starter/bd/customer_auth.ex +116 -0
- package/templates/elixir/lib/bd_starter/bd/resources/blog.ex +18 -0
- package/templates/elixir/lib/bd_starter/bd/resources/cart.ex +40 -0
- package/templates/elixir/lib/bd_starter/bd/resources/checkout.ex +22 -0
- package/templates/elixir/lib/bd_starter/bd/resources/data_model.ex +53 -0
- package/templates/elixir/lib/bd_starter/bd/resources/donations.ex +50 -0
- package/templates/elixir/lib/bd_starter/bd/resources/followers.ex +25 -0
- package/templates/elixir/lib/bd_starter/bd/resources/forms.ex +29 -0
- package/templates/elixir/lib/bd_starter/bd/resources/marketing.ex +20 -0
- package/templates/elixir/lib/bd_starter/bd/resources/notifications.ex +87 -0
- package/templates/elixir/lib/bd_starter/bd/resources/parallel_pages.ex +21 -0
- package/templates/elixir/lib/bd_starter/bd/resources/portal.ex +153 -0
- package/templates/elixir/lib/bd_starter/bd/resources/reviews.ex +8 -0
- package/templates/elixir/lib/bd_starter/bd/resources/scheduling.ex +122 -0
- package/templates/elixir/lib/bd_starter/bd/resources/storefront.ex +47 -0
- package/templates/elixir/lib/bd_starter/bd/resources/subscriptions.ex +13 -0
- package/templates/elixir/lib/bd_starter/bd/seo.ex +148 -0
- package/templates/elixir/lib/bd_starter/bd/sign_in_core.ex +258 -0
- package/templates/elixir/lib/bd_starter/bd/social_platforms.ex +46 -0
- package/templates/elixir/lib/bd_starter/bd/socials.ex +99 -0
- package/templates/elixir/lib/bd_starter/bd/webhook.ex +89 -0
- package/templates/elixir/lib/bd_starter/bd.ex +156 -0
- package/templates/elixir/lib/bd_starter/forms/backend.ex +74 -0
- package/templates/elixir/lib/bd_starter/forms/calculation.ex +158 -0
- package/templates/elixir/lib/bd_starter/forms/dates.ex +151 -0
- package/templates/elixir/lib/bd_starter/forms/field.ex +211 -0
- package/templates/elixir/lib/bd_starter/forms/field_path.ex +18 -0
- package/templates/elixir/lib/bd_starter/forms/form_controller.ex +615 -0
- package/templates/elixir/lib/bd_starter/forms/form_view.ex +339 -0
- package/templates/elixir/lib/bd_starter/forms/forms.ex +37 -0
- package/templates/elixir/lib/bd_starter/forms/forms_data.ex +298 -0
- package/templates/elixir/lib/bd_starter/forms/formula.ex +602 -0
- package/templates/elixir/lib/bd_starter/forms/formula_parser.ex +197 -0
- package/templates/elixir/lib/bd_starter/forms/js.ex +501 -0
- package/templates/elixir/lib/bd_starter/forms/json.ex +103 -0
- package/templates/elixir/lib/bd_starter/forms/messages.ex +95 -0
- package/templates/elixir/lib/bd_starter/forms/package_backend.ex +175 -0
- package/templates/elixir/lib/bd_starter/forms/quiz_arrange.ex +120 -0
- package/templates/elixir/lib/bd_starter/forms/quiz_backend.ex +14 -0
- package/templates/elixir/lib/bd_starter/forms/quiz_config.ex +51 -0
- package/templates/elixir/lib/bd_starter/forms/quiz_controller.ex +188 -0
- package/templates/elixir/lib/bd_starter/forms/quiz_engine.ex +682 -0
- package/templates/elixir/lib/bd_starter/forms/quiz_options.ex +99 -0
- package/templates/elixir/lib/bd_starter/forms/quiz_page.ex +93 -0
- package/templates/elixir/lib/bd_starter/forms/quiz_runs.ex +44 -0
- package/templates/elixir/lib/bd_starter/forms/quiz_scoring.ex +397 -0
- package/templates/elixir/lib/bd_starter/forms/quiz_state.ex +68 -0
- package/templates/elixir/lib/bd_starter/forms/quiz_words.ex +101 -0
- package/templates/elixir/lib/bd_starter/forms/quizzes.ex +98 -0
- package/templates/elixir/lib/bd_starter/forms/re.ex +22 -0
- package/templates/elixir/lib/bd_starter/forms/rules.ex +1355 -0
- package/templates/elixir/lib/bd_starter/forms/sample_backend.ex +44 -0
- package/templates/elixir/lib/bd_starter/forms/schema.ex +50 -0
- package/templates/elixir/lib/bd_starter/forms/submit_result.ex +60 -0
- package/templates/elixir/lib/bd_starter/forms/units.ex +75 -0
- package/templates/elixir/lib/bd_starter_web/bundle.ex +27 -0
- package/templates/elixir/lib/bd_starter_web/components/form_components.ex +779 -0
- package/templates/elixir/lib/bd_starter_web/components/layouts/app.html.heex +50 -0
- package/templates/elixir/lib/bd_starter_web/components/layouts/root.html.heex +24 -0
- package/templates/elixir/lib/bd_starter_web/components/layouts.ex +6 -0
- package/templates/elixir/lib/bd_starter_web/controllers/bd_auth_controller.ex +144 -0
- package/templates/elixir/lib/bd_starter_web/controllers/bd_customer_auth_controller.ex +224 -0
- package/templates/elixir/lib/bd_starter_web/controllers/blog_controller.ex +28 -0
- package/templates/elixir/lib/bd_starter_web/controllers/blog_html/index.html.heex +10 -0
- package/templates/elixir/lib/bd_starter_web/controllers/blog_html/show.html.heex +20 -0
- package/templates/elixir/lib/bd_starter_web/controllers/blog_html.ex +6 -0
- package/templates/elixir/lib/bd_starter_web/controllers/cart_controller.ex +140 -0
- package/templates/elixir/lib/bd_starter_web/controllers/cart_html/show.html.heex +42 -0
- package/templates/elixir/lib/bd_starter_web/controllers/cart_html.ex +6 -0
- package/templates/elixir/lib/bd_starter_web/controllers/error_html.ex +8 -0
- package/templates/elixir/lib/bd_starter_web/controllers/form_page_controller.ex +77 -0
- package/templates/elixir/lib/bd_starter_web/controllers/form_page_html/form.html.heex +2 -0
- package/templates/elixir/lib/bd_starter_web/controllers/form_page_html/quiz.html.heex +4 -0
- package/templates/elixir/lib/bd_starter_web/controllers/form_page_html.ex +5 -0
- package/templates/elixir/lib/bd_starter_web/controllers/page_controller.ex +56 -0
- package/templates/elixir/lib/bd_starter_web/controllers/page_html/home.html.heex +53 -0
- package/templates/elixir/lib/bd_starter_web/controllers/page_html/reviews.html.heex +10 -0
- package/templates/elixir/lib/bd_starter_web/controllers/page_html/updates.html.heex +8 -0
- package/templates/elixir/lib/bd_starter_web/controllers/page_html.ex +6 -0
- package/templates/elixir/lib/bd_starter_web/controllers/portal_controller.ex +109 -0
- package/templates/elixir/lib/bd_starter_web/controllers/portal_html/delete_account.html.heex +31 -0
- package/templates/elixir/lib/bd_starter_web/controllers/portal_html/index.html.heex +29 -0
- package/templates/elixir/lib/bd_starter_web/controllers/portal_html/sign_in.html.heex +18 -0
- package/templates/elixir/lib/bd_starter_web/controllers/portal_html.ex +6 -0
- package/templates/elixir/lib/bd_starter_web/controllers/seo_controller.ex +87 -0
- package/templates/elixir/lib/bd_starter_web/controllers/service_area_controller.ex +14 -0
- package/templates/elixir/lib/bd_starter_web/controllers/service_area_html/index.html.heex +12 -0
- package/templates/elixir/lib/bd_starter_web/controllers/service_area_html/show.html.heex +4 -0
- package/templates/elixir/lib/bd_starter_web/controllers/service_area_html.ex +6 -0
- package/templates/elixir/lib/bd_starter_web/controllers/store_controller.ex +34 -0
- package/templates/elixir/lib/bd_starter_web/controllers/store_html/index.html.heex +31 -0
- package/templates/elixir/lib/bd_starter_web/controllers/store_html/show.html.heex +29 -0
- package/templates/elixir/lib/bd_starter_web/controllers/store_html.ex +6 -0
- package/templates/elixir/lib/bd_starter_web/controllers/subscription_controller.ex +31 -0
- package/templates/elixir/lib/bd_starter_web/controllers/subscription_html/index.html.heex +14 -0
- package/templates/elixir/lib/bd_starter_web/controllers/subscription_html.ex +6 -0
- package/templates/elixir/lib/bd_starter_web/controllers/todos_controller.ex +58 -0
- package/templates/elixir/lib/bd_starter_web/controllers/todos_html/index.html.heex +38 -0
- package/templates/elixir/lib/bd_starter_web/controllers/todos_html.ex +6 -0
- package/templates/elixir/lib/bd_starter_web/controllers/webhook_controller.ex +30 -0
- package/templates/elixir/lib/bd_starter_web/endpoint.ex +40 -0
- package/templates/elixir/lib/bd_starter_web/live/chat_live.ex +113 -0
- package/templates/elixir/lib/bd_starter_web/live/form_live.ex +431 -0
- package/templates/elixir/lib/bd_starter_web/live/quiz_live.ex +532 -0
- package/templates/elixir/lib/bd_starter_web/live/sign_in_live.ex +533 -0
- package/templates/elixir/lib/bd_starter_web/money.ex +50 -0
- package/templates/elixir/lib/bd_starter_web/plugs/cache_body_reader.ex +33 -0
- package/templates/elixir/lib/bd_starter_web/router.ex +110 -0
- package/templates/elixir/lib/bd_starter_web.ex +75 -0
- package/templates/elixir/mix.exs +42 -0
- package/templates/elixir/package.json +20 -0
- package/templates/elixir/pnpm-lock.yaml +347 -0
- package/templates/elixir/priv/forms/demo-form.json +283 -0
- package/templates/elixir/priv/forms/demo-quiz.json +97 -0
- package/templates/elixir/priv/static/assets/app.css +113 -0
- package/templates/elixir/priv/static/bd-sign-in.css +51 -0
- package/templates/elixir/priv/static/forms.css +1153 -0
- package/templates/elixir/test/fixtures/forms-parity.json +3806 -0
- package/templates/elixir/test/fixtures/quiz-parity.json +9937 -0
- package/templates/elixir/test/form_controller_test.exs +314 -0
- package/templates/elixir/test/forms_parity_test.exs +206 -0
- package/templates/elixir/test/quiz_parity_test.exs +243 -0
- package/templates/elixir/test/support/parity.ex +46 -0
- package/templates/elixir/test/test_helper.exs +1 -0
- package/templates/elixir/tsconfig.json +19 -0
- package/templates/flutter/README.md +321 -0
- package/templates/flutter/_gitignore +9 -0
- package/templates/flutter/analysis_options.yaml +8 -0
- package/templates/flutter/bd-records/README.md +50 -0
- package/templates/flutter/bd-records/todo-images.json +14 -0
- package/templates/flutter/bd-records/todos.json +20 -0
- package/templates/flutter/bd.config.ts +331 -0
- package/templates/flutter/bd.data-model.config.ts +89 -0
- package/templates/flutter/lib/forms/demo_form.dart +289 -0
- package/templates/flutter/lib/forms/demo_quiz.dart +104 -0
- package/templates/flutter/lib/forms/form_hooks.dart +147 -0
- package/templates/flutter/lib/main.dart +120 -0
- package/templates/flutter/lib/ui/account_page.dart +153 -0
- package/templates/flutter/lib/ui/bd_scope.dart +39 -0
- package/templates/flutter/lib/ui/cart_page.dart +102 -0
- package/templates/flutter/lib/ui/chat_page.dart +111 -0
- package/templates/flutter/lib/ui/form_page.dart +50 -0
- package/templates/flutter/lib/ui/load_state.dart +62 -0
- package/templates/flutter/lib/ui/product_page.dart +71 -0
- package/templates/flutter/lib/ui/quiz_page.dart +83 -0
- package/templates/flutter/lib/ui/storefront_page.dart +85 -0
- package/templates/flutter/package.json +20 -0
- package/templates/flutter/packages/businessdash_forms/analysis_options.yaml +8 -0
- package/templates/flutter/packages/businessdash_forms/lib/businessdash_forms.dart +47 -0
- package/templates/flutter/packages/businessdash_forms/lib/src/controls/choice.dart +865 -0
- package/templates/flutter/packages/businessdash_forms/lib/src/controls/dates.dart +527 -0
- package/templates/flutter/packages/businessdash_forms/lib/src/controls/media.dart +507 -0
- package/templates/flutter/packages/businessdash_forms/lib/src/controls/static.dart +302 -0
- package/templates/flutter/packages/businessdash_forms/lib/src/controls/text.dart +537 -0
- package/templates/flutter/packages/businessdash_forms/lib/src/form.dart +781 -0
- package/templates/flutter/packages/businessdash_forms/lib/src/icons.dart +398 -0
- package/templates/flutter/packages/businessdash_forms/lib/src/logic.dart +719 -0
- package/templates/flutter/packages/businessdash_forms/lib/src/primitives.dart +1223 -0
- package/templates/flutter/packages/businessdash_forms/lib/src/quiz.dart +1225 -0
- package/templates/flutter/packages/businessdash_forms/lib/src/sign_in.dart +570 -0
- package/templates/flutter/packages/businessdash_forms/lib/src/sign_in_core.dart +1069 -0
- package/templates/flutter/packages/businessdash_forms/lib/src/style.dart +497 -0
- package/templates/flutter/packages/businessdash_forms/lib/src/tree.dart +491 -0
- package/templates/flutter/packages/businessdash_forms/pubspec.yaml +34 -0
- package/templates/flutter/packages/businessdash_forms/test/form_widget_test.dart +358 -0
- package/templates/flutter/packages/businessdash_forms/test/logic_test.dart +207 -0
- package/templates/flutter/packages/businessdash_forms/test/quiz_widget_test.dart +221 -0
- package/templates/flutter/packages/businessdash_forms/test/sign_in_test.dart +279 -0
- package/templates/flutter/packages/businessdash_sdk/CHANGELOG.md +66 -0
- package/templates/flutter/packages/businessdash_sdk/LICENSE +21 -0
- package/templates/flutter/packages/businessdash_sdk/analysis_options.yaml +6 -0
- package/templates/flutter/packages/businessdash_sdk/lib/businessdash_sdk.dart +21 -0
- package/templates/flutter/packages/businessdash_sdk/lib/forms.dart +29 -0
- package/templates/flutter/packages/businessdash_sdk/lib/src/bundle.dart +34 -0
- package/templates/flutter/packages/businessdash_sdk/lib/src/chat.dart +122 -0
- package/templates/flutter/packages/businessdash_sdk/lib/src/client.dart +161 -0
- package/templates/flutter/packages/businessdash_sdk/lib/src/customer_account.dart +31 -0
- package/templates/flutter/packages/businessdash_sdk/lib/src/donations.dart +179 -0
- package/templates/flutter/packages/businessdash_sdk/lib/src/errors.dart +82 -0
- package/templates/flutter/packages/businessdash_sdk/lib/src/forms/backend.dart +488 -0
- package/templates/flutter/packages/businessdash_sdk/lib/src/forms/calculation.dart +172 -0
- package/templates/flutter/packages/businessdash_sdk/lib/src/forms/controller.dart +1004 -0
- package/templates/flutter/packages/businessdash_sdk/lib/src/forms/dates.dart +173 -0
- package/templates/flutter/packages/businessdash_sdk/lib/src/forms/forms_data.generated.dart +405 -0
- package/templates/flutter/packages/businessdash_sdk/lib/src/forms/formula.dart +920 -0
- package/templates/flutter/packages/businessdash_sdk/lib/src/forms/json.dart +462 -0
- package/templates/flutter/packages/businessdash_sdk/lib/src/forms/quiz.dart +1185 -0
- package/templates/flutter/packages/businessdash_sdk/lib/src/forms/quiz_backend.dart +382 -0
- package/templates/flutter/packages/businessdash_sdk/lib/src/forms/quiz_controller.dart +277 -0
- package/templates/flutter/packages/businessdash_sdk/lib/src/forms/quiz_page.dart +148 -0
- package/templates/flutter/packages/businessdash_sdk/lib/src/forms/quiz_scoring.dart +550 -0
- package/templates/flutter/packages/businessdash_sdk/lib/src/forms/quiz_screen.dart +388 -0
- package/templates/flutter/packages/businessdash_sdk/lib/src/forms/quiz_words.dart +280 -0
- package/templates/flutter/packages/businessdash_sdk/lib/src/forms/rules.dart +1268 -0
- package/templates/flutter/packages/businessdash_sdk/lib/src/forms/schema.dart +1114 -0
- package/templates/flutter/packages/businessdash_sdk/lib/src/forms/units.dart +105 -0
- package/templates/flutter/packages/businessdash_sdk/lib/src/models.dart +311 -0
- package/templates/flutter/packages/businessdash_sdk/lib/src/money.dart +38 -0
- package/templates/flutter/packages/businessdash_sdk/lib/src/portal.dart +227 -0
- package/templates/flutter/packages/businessdash_sdk/lib/src/resources.dart +164 -0
- package/templates/flutter/packages/businessdash_sdk/lib/src/scheduling.dart +135 -0
- package/templates/flutter/packages/businessdash_sdk/lib/src/seo.dart +144 -0
- package/templates/flutter/packages/businessdash_sdk/lib/src/social_platforms.generated.dart +45 -0
- package/templates/flutter/packages/businessdash_sdk/lib/src/socials.dart +88 -0
- package/templates/flutter/packages/businessdash_sdk/pubspec.yaml +23 -0
- package/templates/flutter/packages/businessdash_sdk/test/bd_test.dart +335 -0
- package/templates/flutter/packages/businessdash_sdk/test/fixtures/forms-parity.json +3806 -0
- package/templates/flutter/packages/businessdash_sdk/test/fixtures/quiz-parity.json +9937 -0
- package/templates/flutter/packages/businessdash_sdk/test/form_controller_test.dart +449 -0
- package/templates/flutter/packages/businessdash_sdk/test/forms_parity_test.dart +254 -0
- package/templates/flutter/packages/businessdash_sdk/test/quiz_controller_test.dart +390 -0
- package/templates/flutter/packages/businessdash_sdk/test/quiz_parity_test.dart +269 -0
- package/templates/flutter/pnpm-lock.yaml +347 -0
- package/templates/flutter/pubspec.yaml +33 -0
- package/templates/flutter/tsconfig.json +19 -0
- package/templates/htmx/.env.example +59 -0
- package/templates/htmx/README.md +446 -0
- package/templates/htmx/_gitignore +7 -0
- package/templates/htmx/bd.config.ts +331 -0
- package/templates/htmx/bd.data-model.config.ts +89 -0
- package/templates/htmx/package.json +27 -0
- package/templates/htmx/pnpm-lock.yaml +97 -0
- package/templates/htmx/public/forms.css +1134 -0
- package/templates/htmx/public/index.html +68 -0
- package/templates/htmx/public/styles.css +1078 -0
- package/templates/htmx/server.ts +387 -0
- package/templates/htmx/src/bd.ts +142 -0
- package/templates/htmx/src/cache.ts +45 -0
- package/templates/htmx/src/form-pages.ts +35 -0
- package/templates/htmx/src/form.ts +955 -0
- package/templates/htmx/src/forms/demo-form.json +283 -0
- package/templates/htmx/src/forms/demo-quiz.json +97 -0
- package/templates/htmx/src/html.ts +55 -0
- package/templates/htmx/src/layout.ts +232 -0
- package/templates/htmx/src/pages.ts +975 -0
- package/templates/htmx/src/quiz.ts +582 -0
- package/templates/htmx/src/sections/about.ts +63 -0
- package/templates/htmx/src/sections/blog.ts +53 -0
- package/templates/htmx/src/sections/header.ts +42 -0
- package/templates/htmx/src/sections/hero.ts +48 -0
- package/templates/htmx/src/sections/services.ts +71 -0
- package/templates/htmx/src/sections/subscribe.ts +141 -0
- package/templates/htmx/src/sign-in.ts +636 -0
- package/templates/htmx/tsconfig.json +19 -0
- package/templates/kotlin/README.md +318 -0
- package/templates/kotlin/_gitignore +12 -0
- package/templates/kotlin/app/build.gradle.kts +70 -0
- package/templates/kotlin/app/src/main/AndroidManifest.xml +21 -0
- package/templates/kotlin/app/src/main/assets/bd-demo-form.json +283 -0
- package/templates/kotlin/app/src/main/assets/bd-demo-quiz.json +97 -0
- package/templates/kotlin/app/src/main/kotlin/app/bdstarter/AccountScreen.kt +209 -0
- package/templates/kotlin/app/src/main/kotlin/app/bdstarter/BdApp.kt +68 -0
- package/templates/kotlin/app/src/main/kotlin/app/bdstarter/DemoFormsBackend.kt +52 -0
- package/templates/kotlin/app/src/main/kotlin/app/bdstarter/FormScreen.kt +37 -0
- package/templates/kotlin/app/src/main/kotlin/app/bdstarter/MainActivity.kt +186 -0
- package/templates/kotlin/app/src/main/kotlin/app/bdstarter/QuizScreen.kt +75 -0
- package/templates/kotlin/app/src/main/kotlin/app/bdstarter/SessionStore.kt +68 -0
- package/templates/kotlin/app/src/main/kotlin/app/bdstarter/ShopViewModel.kt +73 -0
- package/templates/kotlin/app/src/main/res/values/strings.xml +4 -0
- package/templates/kotlin/app/src/main/res/values/themes.xml +5 -0
- package/templates/kotlin/app/src/main/res/values-night/themes.xml +4 -0
- package/templates/kotlin/bd/LICENSE +21 -0
- package/templates/kotlin/bd/README.md +31 -0
- package/templates/kotlin/bd/build.gradle.kts +126 -0
- package/templates/kotlin/bd/src/main/kotlin/app/bd/Auth.kt +58 -0
- package/templates/kotlin/bd/src/main/kotlin/app/bd/BdClient.kt +166 -0
- package/templates/kotlin/bd/src/main/kotlin/app/bd/BdError.kt +62 -0
- package/templates/kotlin/bd/src/main/kotlin/app/bd/Bundle.kt +52 -0
- package/templates/kotlin/bd/src/main/kotlin/app/bd/ChatFeed.kt +82 -0
- package/templates/kotlin/bd/src/main/kotlin/app/bd/DataModel.kt +95 -0
- package/templates/kotlin/bd/src/main/kotlin/app/bd/Donations.kt +111 -0
- package/templates/kotlin/bd/src/main/kotlin/app/bd/Models.kt +271 -0
- package/templates/kotlin/bd/src/main/kotlin/app/bd/Money.kt +48 -0
- package/templates/kotlin/bd/src/main/kotlin/app/bd/Portal.kt +250 -0
- package/templates/kotlin/bd/src/main/kotlin/app/bd/Resources.kt +129 -0
- package/templates/kotlin/bd/src/main/kotlin/app/bd/Scheduling.kt +134 -0
- package/templates/kotlin/bd/src/main/kotlin/app/bd/Seo.kt +120 -0
- package/templates/kotlin/bd/src/main/kotlin/app/bd/SocialPlatforms.generated.kt +46 -0
- package/templates/kotlin/bd/src/main/kotlin/app/bd/Socials.kt +79 -0
- package/templates/kotlin/bd/src/main/kotlin/app/bd/forms/BdCalculation.kt +157 -0
- package/templates/kotlin/bd/src/main/kotlin/app/bd/forms/BdDates.kt +108 -0
- package/templates/kotlin/bd/src/main/kotlin/app/bd/forms/BdFormController.kt +770 -0
- package/templates/kotlin/bd/src/main/kotlin/app/bd/forms/BdFormRules.kt +1149 -0
- package/templates/kotlin/bd/src/main/kotlin/app/bd/forms/BdFormSchema.kt +528 -0
- package/templates/kotlin/bd/src/main/kotlin/app/bd/forms/BdFormsBackend.kt +392 -0
- package/templates/kotlin/bd/src/main/kotlin/app/bd/forms/BdFormula.kt +767 -0
- package/templates/kotlin/bd/src/main/kotlin/app/bd/forms/BdJson.kt +294 -0
- package/templates/kotlin/bd/src/main/kotlin/app/bd/forms/BdQuizBackend.kt +310 -0
- package/templates/kotlin/bd/src/main/kotlin/app/bd/forms/BdQuizController.kt +281 -0
- package/templates/kotlin/bd/src/main/kotlin/app/bd/forms/BdQuizEngine.kt +578 -0
- package/templates/kotlin/bd/src/main/kotlin/app/bd/forms/BdQuizPage.kt +128 -0
- package/templates/kotlin/bd/src/main/kotlin/app/bd/forms/BdQuizScoring.kt +386 -0
- package/templates/kotlin/bd/src/main/kotlin/app/bd/forms/BdQuizScreen.kt +477 -0
- package/templates/kotlin/bd/src/main/kotlin/app/bd/forms/BdQuizWords.kt +196 -0
- package/templates/kotlin/bd/src/main/kotlin/app/bd/forms/BdUnits.kt +84 -0
- package/templates/kotlin/bd/src/main/kotlin/app/bd/forms/FormsData.generated.kt +292 -0
- package/templates/kotlin/bd/src/test/kotlin/app/bd/BdClientTest.kt +278 -0
- package/templates/kotlin/bd/src/test/kotlin/app/bd/forms/FormControllerTest.kt +294 -0
- package/templates/kotlin/bd/src/test/kotlin/app/bd/forms/FormsBackendPathTest.kt +27 -0
- package/templates/kotlin/bd/src/test/kotlin/app/bd/forms/FormsParityTest.kt +233 -0
- package/templates/kotlin/bd/src/test/kotlin/app/bd/forms/PackageFormsBackendTest.kt +123 -0
- package/templates/kotlin/bd/src/test/kotlin/app/bd/forms/QuizControllerTest.kt +359 -0
- package/templates/kotlin/bd/src/test/kotlin/app/bd/forms/QuizParityTest.kt +260 -0
- package/templates/kotlin/bd/src/test/resources/forms-parity.json +3806 -0
- package/templates/kotlin/bd/src/test/resources/quiz-parity.json +9937 -0
- package/templates/kotlin/bd-forms/build.gradle.kts +51 -0
- package/templates/kotlin/bd-forms/src/main/AndroidManifest.xml +5 -0
- package/templates/kotlin/bd-forms/src/main/kotlin/app/bd/forms/ui/BdChoiceControls.kt +651 -0
- package/templates/kotlin/bd-forms/src/main/kotlin/app/bd/forms/ui/BdDateControls.kt +470 -0
- package/templates/kotlin/bd-forms/src/main/kotlin/app/bd/forms/ui/BdFieldControl.kt +520 -0
- package/templates/kotlin/bd-forms/src/main/kotlin/app/bd/forms/ui/BdFieldTree.kt +328 -0
- package/templates/kotlin/bd-forms/src/main/kotlin/app/bd/forms/ui/BdForm.kt +573 -0
- package/templates/kotlin/bd-forms/src/main/kotlin/app/bd/forms/ui/BdFormStyle.kt +279 -0
- package/templates/kotlin/bd-forms/src/main/kotlin/app/bd/forms/ui/BdHtml.kt +438 -0
- package/templates/kotlin/bd-forms/src/main/kotlin/app/bd/forms/ui/BdIcon.kt +282 -0
- package/templates/kotlin/bd-forms/src/main/kotlin/app/bd/forms/ui/BdMediaControls.kt +412 -0
- package/templates/kotlin/bd-forms/src/main/kotlin/app/bd/forms/ui/BdQuiz.kt +896 -0
- package/templates/kotlin/bd-forms/src/main/kotlin/app/bd/forms/ui/BdStaticViews.kt +250 -0
- package/templates/kotlin/bd-forms/src/main/kotlin/app/bd/forms/ui/BdTextControls.kt +409 -0
- package/templates/kotlin/bd-forms/src/test/kotlin/app/bd/forms/ui/RendererLogicTest.kt +177 -0
- package/templates/kotlin/bd-records/README.md +50 -0
- package/templates/kotlin/bd-records/todo-images.json +14 -0
- package/templates/kotlin/bd-records/todos.json +20 -0
- package/templates/kotlin/bd-sign-in/build.gradle.kts +49 -0
- package/templates/kotlin/bd-sign-in/src/main/AndroidManifest.xml +27 -0
- package/templates/kotlin/bd-sign-in/src/main/kotlin/app/bd/signin/BdSignIn.kt +713 -0
- package/templates/kotlin/bd-sign-in/src/main/kotlin/app/bd/signin/BdSignInBackend.kt +291 -0
- package/templates/kotlin/bd-sign-in/src/main/kotlin/app/bd/signin/BdSignInChecks.kt +162 -0
- package/templates/kotlin/bd-sign-in/src/main/kotlin/app/bd/signin/BdSignInOAuth.kt +95 -0
- package/templates/kotlin/bd-sign-in/src/test/kotlin/app/bd/signin/BdSignInChecksTest.kt +64 -0
- package/templates/kotlin/bd.config.ts +331 -0
- package/templates/kotlin/bd.data-model.config.ts +89 -0
- package/templates/kotlin/build.gradle.kts +8 -0
- package/templates/kotlin/gradle/libs.versions.toml +38 -0
- package/templates/kotlin/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/templates/kotlin/gradle/wrapper/gradle-wrapper.properties +10 -0
- package/templates/kotlin/gradle.properties +8 -0
- package/templates/kotlin/gradlew +248 -0
- package/templates/kotlin/gradlew.bat +112 -0
- package/templates/kotlin/local.properties.example +30 -0
- package/templates/kotlin/package.json +20 -0
- package/templates/kotlin/pnpm-lock.yaml +347 -0
- package/templates/kotlin/settings.gradle.kts +39 -0
- package/templates/kotlin/tsconfig.json +19 -0
- package/templates/laravel/.env.example +76 -0
- package/templates/laravel/README.md +316 -0
- package/templates/laravel/_gitignore +28 -0
- package/templates/laravel/app/Bd/Auth.php +181 -0
- package/templates/laravel/app/Bd/Bd.php +131 -0
- package/templates/laravel/app/Bd/BdAccessRejectedException.php +29 -0
- package/templates/laravel/app/Bd/BdApiException.php +18 -0
- package/templates/laravel/app/Bd/Client.php +358 -0
- package/templates/laravel/app/Bd/CustomerAnswer.php +58 -0
- package/templates/laravel/app/Bd/CustomerAuth.php +93 -0
- package/templates/laravel/app/Bd/Forms/Backend.php +35 -0
- package/templates/laravel/app/Bd/Forms/Calculation.php +179 -0
- package/templates/laravel/app/Bd/Forms/Dates.php +91 -0
- package/templates/laravel/app/Bd/Forms/Field.php +274 -0
- package/templates/laravel/app/Bd/Forms/FieldPath.php +36 -0
- package/templates/laravel/app/Bd/Forms/FormController.php +730 -0
- package/templates/laravel/app/Bd/Forms/FormView.php +307 -0
- package/templates/laravel/app/Bd/Forms/Forms.php +39 -0
- package/templates/laravel/app/Bd/Forms/FormsData.php +298 -0
- package/templates/laravel/app/Bd/Forms/FormsError.php +12 -0
- package/templates/laravel/app/Bd/Forms/Formula.php +696 -0
- package/templates/laravel/app/Bd/Forms/FormulaError.php +6 -0
- package/templates/laravel/app/Bd/Forms/FormulaParser.php +223 -0
- package/templates/laravel/app/Bd/Forms/Js.php +300 -0
- package/templates/laravel/app/Bd/Forms/Json.php +254 -0
- package/templates/laravel/app/Bd/Forms/Messages.php +89 -0
- package/templates/laravel/app/Bd/Forms/PackageBackend.php +181 -0
- package/templates/laravel/app/Bd/Forms/PickedFile.php +25 -0
- package/templates/laravel/app/Bd/Forms/QuizArrange.php +144 -0
- package/templates/laravel/app/Bd/Forms/QuizBackend.php +26 -0
- package/templates/laravel/app/Bd/Forms/QuizConfig.php +65 -0
- package/templates/laravel/app/Bd/Forms/QuizController.php +232 -0
- package/templates/laravel/app/Bd/Forms/QuizEngine.php +712 -0
- package/templates/laravel/app/Bd/Forms/QuizOptions.php +109 -0
- package/templates/laravel/app/Bd/Forms/QuizPage.php +99 -0
- package/templates/laravel/app/Bd/Forms/QuizScoring.php +459 -0
- package/templates/laravel/app/Bd/Forms/QuizState.php +96 -0
- package/templates/laravel/app/Bd/Forms/QuizWords.php +188 -0
- package/templates/laravel/app/Bd/Forms/Quizzes.php +123 -0
- package/templates/laravel/app/Bd/Forms/Rules.php +1593 -0
- package/templates/laravel/app/Bd/Forms/SampleBackend.php +48 -0
- package/templates/laravel/app/Bd/Forms/Schema.php +76 -0
- package/templates/laravel/app/Bd/Forms/Submission.php +33 -0
- package/templates/laravel/app/Bd/Forms/SubmitOptions.php +19 -0
- package/templates/laravel/app/Bd/Forms/SubmitResult.php +69 -0
- package/templates/laravel/app/Bd/Forms/Undefined.php +28 -0
- package/templates/laravel/app/Bd/Forms/Units.php +113 -0
- package/templates/laravel/app/Bd/Resources/Blog.php +50 -0
- package/templates/laravel/app/Bd/Resources/Cart.php +81 -0
- package/templates/laravel/app/Bd/Resources/Chatbot.php +117 -0
- package/templates/laravel/app/Bd/Resources/Checkout.php +51 -0
- package/templates/laravel/app/Bd/Resources/DataModel.php +61 -0
- package/templates/laravel/app/Bd/Resources/Donations.php +74 -0
- package/templates/laravel/app/Bd/Resources/Followers.php +48 -0
- package/templates/laravel/app/Bd/Resources/Forms.php +52 -0
- package/templates/laravel/app/Bd/Resources/Marketing.php +47 -0
- package/templates/laravel/app/Bd/Resources/Notifications.php +130 -0
- package/templates/laravel/app/Bd/Resources/ParallelPages.php +45 -0
- package/templates/laravel/app/Bd/Resources/Portal.php +241 -0
- package/templates/laravel/app/Bd/Resources/Reviews.php +22 -0
- package/templates/laravel/app/Bd/Resources/Scheduling.php +170 -0
- package/templates/laravel/app/Bd/Resources/Storefront.php +89 -0
- package/templates/laravel/app/Bd/Resources/Subscriptions.php +34 -0
- package/templates/laravel/app/Bd/Seo.php +167 -0
- package/templates/laravel/app/Bd/SignInCore.php +276 -0
- package/templates/laravel/app/Bd/SocialPlatforms.php +45 -0
- package/templates/laravel/app/Bd/Socials.php +118 -0
- package/templates/laravel/app/Bd/Webhook.php +93 -0
- package/templates/laravel/app/Http/Controllers/BdAuthController.php +146 -0
- package/templates/laravel/app/Http/Controllers/BdCustomerAuthController.php +214 -0
- package/templates/laravel/app/Http/Controllers/BlogController.php +49 -0
- package/templates/laravel/app/Http/Controllers/CartController.php +183 -0
- package/templates/laravel/app/Http/Controllers/Controller.php +8 -0
- package/templates/laravel/app/Http/Controllers/FormPageController.php +55 -0
- package/templates/laravel/app/Http/Controllers/HomeController.php +104 -0
- package/templates/laravel/app/Http/Controllers/PortalController.php +95 -0
- package/templates/laravel/app/Http/Controllers/SeoController.php +103 -0
- package/templates/laravel/app/Http/Controllers/ServiceAreaController.php +56 -0
- package/templates/laravel/app/Http/Controllers/StoreController.php +78 -0
- package/templates/laravel/app/Http/Controllers/SubscriptionController.php +40 -0
- package/templates/laravel/app/Http/Controllers/TodosController.php +87 -0
- package/templates/laravel/app/Http/Controllers/WebhookController.php +44 -0
- package/templates/laravel/app/Livewire/BdForm.php +508 -0
- package/templates/laravel/app/Livewire/BdQuiz.php +429 -0
- package/templates/laravel/app/Livewire/SignIn.php +449 -0
- package/templates/laravel/app/Support/Money.php +54 -0
- package/templates/laravel/app/Support/PhpSecurity.php +94 -0
- package/templates/laravel/artisan +16 -0
- package/templates/laravel/bd-records/README.md +50 -0
- package/templates/laravel/bd-records/todo-images.json +14 -0
- package/templates/laravel/bd-records/todos.json +20 -0
- package/templates/laravel/bd.config.ts +331 -0
- package/templates/laravel/bd.data-model.config.ts +89 -0
- package/templates/laravel/bootstrap/app.php +33 -0
- package/templates/laravel/bootstrap/cache/.gitkeep +0 -0
- package/templates/laravel/composer.json +47 -0
- package/templates/laravel/config/bd.php +75 -0
- package/templates/laravel/package.json +20 -0
- package/templates/laravel/phpunit.xml +22 -0
- package/templates/laravel/pnpm-lock.yaml +347 -0
- package/templates/laravel/public/bd-sign-in.css +48 -0
- package/templates/laravel/public/forms.css +1153 -0
- package/templates/laravel/public/index.php +17 -0
- package/templates/laravel/public/styles.css +100 -0
- package/templates/laravel/resources/forms/demo-form.json +283 -0
- package/templates/laravel/resources/forms/demo-quiz.json +97 -0
- package/templates/laravel/resources/views/forms/control.blade.php +238 -0
- package/templates/laravel/resources/views/forms/field.blade.php +39 -0
- package/templates/laravel/resources/views/forms/files.blade.php +36 -0
- package/templates/laravel/resources/views/forms/pair.blade.php +6 -0
- package/templates/laravel/resources/views/forms/repeater.blade.php +16 -0
- package/templates/laravel/resources/views/forms/styles.blade.php +8 -0
- package/templates/laravel/resources/views/forms/tree.blade.php +58 -0
- package/templates/laravel/resources/views/layout.blade.php +94 -0
- package/templates/laravel/resources/views/livewire/bd-form.blade.php +103 -0
- package/templates/laravel/resources/views/livewire/bd-quiz.blade.php +101 -0
- package/templates/laravel/resources/views/livewire/sign-in.blade.php +82 -0
- package/templates/laravel/resources/views/pages/blog-post.blade.php +24 -0
- package/templates/laravel/resources/views/pages/blog.blade.php +15 -0
- package/templates/laravel/resources/views/pages/cart.blade.php +41 -0
- package/templates/laravel/resources/views/pages/delete-account.blade.php +26 -0
- package/templates/laravel/resources/views/pages/form.blade.php +10 -0
- package/templates/laravel/resources/views/pages/home.blade.php +73 -0
- package/templates/laravel/resources/views/pages/my-account.blade.php +40 -0
- package/templates/laravel/resources/views/pages/product.blade.php +39 -0
- package/templates/laravel/resources/views/pages/quiz.blade.php +12 -0
- package/templates/laravel/resources/views/pages/reviews.blade.php +17 -0
- package/templates/laravel/resources/views/pages/service-area.blade.php +14 -0
- package/templates/laravel/resources/views/pages/services.blade.php +20 -0
- package/templates/laravel/resources/views/pages/sign-in.blade.php +30 -0
- package/templates/laravel/resources/views/pages/store.blade.php +35 -0
- package/templates/laravel/resources/views/pages/subscriptions.blade.php +19 -0
- package/templates/laravel/resources/views/pages/todos.blade.php +45 -0
- package/templates/laravel/resources/views/pages/updates.blade.php +13 -0
- package/templates/laravel/resources/views/quiz/actions.blade.php +14 -0
- package/templates/laravel/resources/views/quiz/error.blade.php +3 -0
- package/templates/laravel/resources/views/quiz/feedback.blade.php +19 -0
- package/templates/laravel/resources/views/quiz/header.blade.php +10 -0
- package/templates/laravel/resources/views/quiz/question.blade.php +55 -0
- package/templates/laravel/routes/web.php +97 -0
- package/templates/laravel/storage/framework/cache/.gitkeep +0 -0
- package/templates/laravel/storage/framework/sessions/.gitkeep +0 -0
- package/templates/laravel/storage/framework/views/.gitkeep +0 -0
- package/templates/laravel/storage/logs/.gitkeep +0 -0
- package/templates/laravel/tests/Fixtures/forms-parity.json +3806 -0
- package/templates/laravel/tests/Fixtures/quiz-parity.json +9937 -0
- package/templates/laravel/tests/Unit/FormControllerTest.php +310 -0
- package/templates/laravel/tests/Unit/FormsParityTest.php +314 -0
- package/templates/laravel/tests/Unit/PhpSecurityTest.php +38 -0
- package/templates/laravel/tests/Unit/QuizParityTest.php +303 -0
- package/templates/laravel/tsconfig.json +19 -0
- package/templates/nuxt/.env.example +47 -0
- package/templates/nuxt/README.md +446 -0
- package/templates/nuxt/_gitignore +10 -0
- package/templates/nuxt/app/app.vue +28 -0
- package/templates/nuxt/app/assets/css/bd-tokens.css +944 -0
- package/templates/nuxt/app/components/bd/About.vue +34 -0
- package/templates/nuxt/app/components/bd/BdFooter.vue +22 -0
- package/templates/nuxt/app/components/bd/BdHeader.vue +25 -0
- package/templates/nuxt/app/components/bd/Blog.vue +43 -0
- package/templates/nuxt/app/components/bd/Booking.vue +235 -0
- package/templates/nuxt/app/components/bd/ContactForm.vue +111 -0
- package/templates/nuxt/app/components/bd/Gallery.vue +46 -0
- package/templates/nuxt/app/components/bd/Hero.vue +14 -0
- package/templates/nuxt/app/components/bd/NewsBanner.vue +44 -0
- package/templates/nuxt/app/components/bd/NotFoundBody.vue +22 -0
- package/templates/nuxt/app/components/bd/ReviewForm.vue +106 -0
- package/templates/nuxt/app/components/bd/SdkSetupBanner.vue +111 -0
- package/templates/nuxt/app/components/bd/Services.vue +34 -0
- package/templates/nuxt/app/components/bd/Subscribe.vue +205 -0
- package/templates/nuxt/app/composables/useCart.ts +83 -0
- package/templates/nuxt/app/pages/[...slug].vue +52 -0
- package/templates/nuxt/app/pages/cart.vue +194 -0
- package/templates/nuxt/app/pages/index.vue +58 -0
- package/templates/nuxt/app/pages/my-account.vue +207 -0
- package/templates/nuxt/app/pages/reviews.vue +104 -0
- package/templates/nuxt/app/pages/services/[service]/[area].vue +85 -0
- package/templates/nuxt/app/pages/services/index.vue +57 -0
- package/templates/nuxt/app/pages/store/[id].vue +128 -0
- package/templates/nuxt/app/pages/store/index.vue +73 -0
- package/templates/nuxt/app/pages/subscriptions.vue +117 -0
- package/templates/nuxt/app/pages/todos.vue +222 -0
- package/templates/nuxt/app/pages/updates.vue +78 -0
- package/templates/nuxt/bd.config.ts +331 -0
- package/templates/nuxt/bd.data-model.config.ts +89 -0
- package/templates/nuxt/nuxt.config.ts +78 -0
- package/templates/nuxt/package.json +35 -0
- package/templates/nuxt/pnpm-lock.yaml +6211 -0
- package/templates/nuxt/public/favicon.ico +0 -0
- package/templates/nuxt/server/api/bd/cart/add.post.ts +21 -0
- package/templates/nuxt/server/api/bd/cart/clear.post.ts +10 -0
- package/templates/nuxt/server/api/bd/cart/coupon.post.ts +15 -0
- package/templates/nuxt/server/api/bd/cart/index.get.ts +25 -0
- package/templates/nuxt/server/api/bd/cart/remove.post.ts +10 -0
- package/templates/nuxt/server/api/bd/cart/update.post.ts +13 -0
- package/templates/nuxt/server/api/bd/checkout/start.post.ts +35 -0
- package/templates/nuxt/server/api/bd/forms/[slug].post.ts +37 -0
- package/templates/nuxt/server/api/bd/home.get.ts +284 -0
- package/templates/nuxt/server/api/bd/jsonld.get.ts +42 -0
- package/templates/nuxt/server/api/bd/legal.get.ts +30 -0
- package/templates/nuxt/server/api/bd/parallel/render.get.ts +53 -0
- package/templates/nuxt/server/api/bd/parallel/variants.get.ts +27 -0
- package/templates/nuxt/server/api/bd/portal/context.get.ts +76 -0
- package/templates/nuxt/server/api/bd/portal/plan.post.ts +27 -0
- package/templates/nuxt/server/api/bd/portal/submit-review.post.ts +53 -0
- package/templates/nuxt/server/api/bd/revalidate.post.ts +38 -0
- package/templates/nuxt/server/api/bd/reviews.get.ts +44 -0
- package/templates/nuxt/server/api/bd/scheduling/bookings.post.ts +40 -0
- package/templates/nuxt/server/api/bd/scheduling/slots.get.ts +37 -0
- package/templates/nuxt/server/api/bd/store/product/[id].get.ts +39 -0
- package/templates/nuxt/server/api/bd/store/products-meta.get.ts +101 -0
- package/templates/nuxt/server/api/bd/store/products.get.ts +53 -0
- package/templates/nuxt/server/api/bd/store/subscriptions/[id]/checkout.post.ts +36 -0
- package/templates/nuxt/server/api/bd/store/subscriptions.get.ts +42 -0
- package/templates/nuxt/server/api/bd/todos.get.ts +111 -0
- package/templates/nuxt/server/api/bd-auth/[...slug].ts +57 -0
- package/templates/nuxt/server/api/mcp.get.ts +14 -0
- package/templates/nuxt/server/api/mcp.post.ts +37 -0
- package/templates/nuxt/server/routes/.well-known/mcp.json.ts +31 -0
- package/templates/nuxt/server/routes/llms.txt.ts +43 -0
- package/templates/nuxt/server/routes/robots.txt.ts +38 -0
- package/templates/nuxt/server/routes/sitemap.xml.ts +60 -0
- package/templates/nuxt/server/utils/bd-cart.ts +73 -0
- package/templates/nuxt/server/utils/bd-env.ts +54 -0
- package/templates/nuxt/server/utils/bd-portal.ts +151 -0
- package/templates/nuxt/server/utils/bd.ts +36 -0
- package/templates/nuxt/tsconfig.json +18 -0
- package/templates/qwik/.env.example +48 -0
- package/templates/qwik/.prettierignore +37 -0
- package/templates/qwik/.vscode/launch.json +24 -0
- package/templates/qwik/.vscode/qwik-city.code-snippets +36 -0
- package/templates/qwik/.vscode/qwik.code-snippets +78 -0
- package/templates/qwik/README.md +436 -0
- package/templates/qwik/_gitignore +42 -0
- package/templates/qwik/bd.config.ts +331 -0
- package/templates/qwik/bd.data-model.config.ts +90 -0
- package/templates/qwik/eslint.config.js +76 -0
- package/templates/qwik/package.json +58 -0
- package/templates/qwik/pnpm-lock.yaml +4928 -0
- package/templates/qwik/public/favicon.svg +1 -0
- package/templates/qwik/public/manifest.json +9 -0
- package/templates/qwik/public/robots.txt +0 -0
- package/templates/qwik/qwik.env.d.ts +4 -0
- package/templates/qwik/src/components/bd/About.tsx +26 -0
- package/templates/qwik/src/components/bd/Banner.tsx +46 -0
- package/templates/qwik/src/components/bd/Blog.tsx +53 -0
- package/templates/qwik/src/components/bd/Booking.tsx +296 -0
- package/templates/qwik/src/components/bd/ContactForm.tsx +100 -0
- package/templates/qwik/src/components/bd/Footer.tsx +28 -0
- package/templates/qwik/src/components/bd/Gallery.tsx +53 -0
- package/templates/qwik/src/components/bd/Header.tsx +18 -0
- package/templates/qwik/src/components/bd/Hero.tsx +21 -0
- package/templates/qwik/src/components/bd/SdkSetupBanner.tsx +115 -0
- package/templates/qwik/src/components/bd/Services.tsx +38 -0
- package/templates/qwik/src/components/bd/SiteHeader.tsx +49 -0
- package/templates/qwik/src/components/bd/Stars.tsx +46 -0
- package/templates/qwik/src/components/bd/Subscribe.tsx +175 -0
- package/templates/qwik/src/components/router-head/router-head.tsx +48 -0
- package/templates/qwik/src/entry.dev.tsx +17 -0
- package/templates/qwik/src/entry.preview.tsx +21 -0
- package/templates/qwik/src/entry.ssr.tsx +31 -0
- package/templates/qwik/src/global.css +875 -0
- package/templates/qwik/src/lib/bd-content.ts +143 -0
- package/templates/qwik/src/lib/bd-distribution.ts +25 -0
- package/templates/qwik/src/lib/bd-portal.ts +181 -0
- package/templates/qwik/src/lib/bd-store.ts +308 -0
- package/templates/qwik/src/lib/bd-todos.ts +137 -0
- package/templates/qwik/src/lib/bd.ts +42 -0
- package/templates/qwik/src/root.tsx +38 -0
- package/templates/qwik/src/routes/.well-known/mcp.json/index.ts +19 -0
- package/templates/qwik/src/routes/[...slug]/index.tsx +85 -0
- package/templates/qwik/src/routes/ai/product-feed/index.ts +24 -0
- package/templates/qwik/src/routes/api/bd/revalidate/index.ts +45 -0
- package/templates/qwik/src/routes/api/bd-auth/[...slug]/index.ts +77 -0
- package/templates/qwik/src/routes/api/mcp/index.ts +38 -0
- package/templates/qwik/src/routes/cart/index.tsx +254 -0
- package/templates/qwik/src/routes/index.tsx +239 -0
- package/templates/qwik/src/routes/llms.txt/index.ts +23 -0
- package/templates/qwik/src/routes/my-account/index.tsx +370 -0
- package/templates/qwik/src/routes/reviews/index.tsx +147 -0
- package/templates/qwik/src/routes/robots.txt/index.ts +70 -0
- package/templates/qwik/src/routes/services/[service]/[area]/index.tsx +115 -0
- package/templates/qwik/src/routes/services/index.tsx +99 -0
- package/templates/qwik/src/routes/sitemap.xml/index.ts +62 -0
- package/templates/qwik/src/routes/store/[id]/index.tsx +362 -0
- package/templates/qwik/src/routes/store/index.tsx +436 -0
- package/templates/qwik/src/routes/store/order/index.tsx +74 -0
- package/templates/qwik/src/routes/subscriptions/index.tsx +164 -0
- package/templates/qwik/src/routes/todos/index.tsx +202 -0
- package/templates/qwik/src/routes/updates/index.tsx +106 -0
- package/templates/qwik/tsconfig.json +26 -0
- package/templates/qwik/vite.config.ts +115 -0
- package/templates/react-bun/.env.example +65 -0
- package/templates/react-bun/README.md +354 -0
- package/templates/react-bun/_gitignore +24 -0
- package/templates/react-bun/bd.config.ts +331 -0
- package/templates/react-bun/bd.data-model.config.ts +90 -0
- package/templates/react-bun/eslint.config.js +22 -0
- package/templates/react-bun/index.html +13 -0
- package/templates/react-bun/package.json +46 -0
- package/templates/react-bun/pnpm-lock.yaml +2060 -0
- package/templates/react-bun/public/favicon.svg +1 -0
- package/templates/react-bun/public/icons.svg +24 -0
- package/templates/react-bun/server.ts +978 -0
- package/templates/react-bun/src/App.css +910 -0
- package/templates/react-bun/src/App.tsx +104 -0
- package/templates/react-bun/src/assets/hero.png +0 -0
- package/templates/react-bun/src/assets/react.svg +1 -0
- package/templates/react-bun/src/assets/vite.svg +1 -0
- package/templates/react-bun/src/components/About.tsx +46 -0
- package/templates/react-bun/src/components/Banner.tsx +53 -0
- package/templates/react-bun/src/components/Blog.tsx +84 -0
- package/templates/react-bun/src/components/Booking.tsx +278 -0
- package/templates/react-bun/src/components/ContactForm.tsx +47 -0
- package/templates/react-bun/src/components/Footer.tsx +24 -0
- package/templates/react-bun/src/components/Gallery.tsx +83 -0
- package/templates/react-bun/src/components/Header.tsx +27 -0
- package/templates/react-bun/src/components/Hero.tsx +65 -0
- package/templates/react-bun/src/components/SdkSetupBanner.tsx +102 -0
- package/templates/react-bun/src/components/Services.tsx +92 -0
- package/templates/react-bun/src/components/Subscribe.tsx +169 -0
- package/templates/react-bun/src/index.css +302 -0
- package/templates/react-bun/src/lib/bd.ts +370 -0
- package/templates/react-bun/src/lib/router.tsx +54 -0
- package/templates/react-bun/src/main.tsx +14 -0
- package/templates/react-bun/src/pages/Cart.tsx +144 -0
- package/templates/react-bun/src/pages/MyAccount.tsx +207 -0
- package/templates/react-bun/src/pages/Product.tsx +220 -0
- package/templates/react-bun/src/pages/Reviews.tsx +73 -0
- package/templates/react-bun/src/pages/ServiceArea.tsx +41 -0
- package/templates/react-bun/src/pages/ServiceAreas.tsx +31 -0
- package/templates/react-bun/src/pages/Store.tsx +274 -0
- package/templates/react-bun/src/pages/Subscriptions.tsx +70 -0
- package/templates/react-bun/src/pages/Todos.tsx +147 -0
- package/templates/react-bun/src/pages/Updates.tsx +53 -0
- package/templates/react-bun/src/pages/ui.tsx +52 -0
- package/templates/react-bun/tsconfig.app.json +25 -0
- package/templates/react-bun/tsconfig.json +7 -0
- package/templates/react-bun/tsconfig.node.json +24 -0
- package/templates/react-bun/vite.config.ts +41 -0
- package/templates/react-native/.env.example +32 -0
- package/templates/react-native/README.md +299 -0
- package/templates/react-native/SECURITY-NOTES.md +22 -0
- package/templates/react-native/_gitignore +21 -0
- package/templates/react-native/app/(tabs)/_layout.tsx +13 -0
- package/templates/react-native/app/(tabs)/account.tsx +116 -0
- package/templates/react-native/app/(tabs)/cart.tsx +79 -0
- package/templates/react-native/app/(tabs)/chat.tsx +58 -0
- package/templates/react-native/app/(tabs)/form.tsx +41 -0
- package/templates/react-native/app/(tabs)/index.tsx +74 -0
- package/templates/react-native/app/_layout.tsx +19 -0
- package/templates/react-native/app/product/[id].tsx +78 -0
- package/templates/react-native/app.json +15 -0
- package/templates/react-native/bd-records/README.md +50 -0
- package/templates/react-native/bd-records/todo-images.json +14 -0
- package/templates/react-native/bd-records/todos.json +20 -0
- package/templates/react-native/bd.config.ts +331 -0
- package/templates/react-native/bd.data-model.config.ts +89 -0
- package/templates/react-native/metro.config.js +16 -0
- package/templates/react-native/package.json +51 -0
- package/templates/react-native/pnpm-lock.yaml +5967 -0
- package/templates/react-native/src/bd/auth.ts +152 -0
- package/templates/react-native/src/bd/client.ts +103 -0
- package/templates/react-native/src/bd/demo-form.json +283 -0
- package/templates/react-native/src/bd/forms.tsx +148 -0
- package/templates/react-native/src/bd/money.ts +29 -0
- package/templates/react-native/src/bd/session.ts +53 -0
- package/templates/react-native/src/bd/useBd.ts +63 -0
- package/templates/react-native/src/bd/useChat.ts +116 -0
- package/templates/react-native/src/bd-forms/BdForm.tsx +973 -0
- package/templates/react-native/src/bd-forms/__tests__/logic.test.ts +195 -0
- package/templates/react-native/src/bd-forms/controls.tsx +1966 -0
- package/templates/react-native/src/bd-forms/index.ts +34 -0
- package/templates/react-native/src/bd-forms/keyboard.ts +139 -0
- package/templates/react-native/src/bd-forms/logic.ts +737 -0
- package/templates/react-native/src/bd-forms/pickers.tsx +487 -0
- package/templates/react-native/src/bd-forms/primitives.tsx +1162 -0
- package/templates/react-native/src/bd-forms/runtime.ts +95 -0
- package/templates/react-native/src/bd-forms/static.tsx +304 -0
- package/templates/react-native/src/bd-forms/theme.ts +385 -0
- package/templates/react-native/src/components/LoadState.tsx +53 -0
- package/templates/react-native/src/components/SignInScreen.tsx +399 -0
- package/templates/react-native/tsconfig.json +19 -0
- package/templates/remix/.env.example +63 -0
- package/templates/remix/README.md +392 -0
- package/templates/remix/_gitignore +10 -0
- package/templates/remix/app/components/ContactForm.tsx +55 -0
- package/templates/remix/app/components/NewsBanner.tsx +43 -0
- package/templates/remix/app/components/SdkSetupBanner.tsx +96 -0
- package/templates/remix/app/components/SiteHeader.tsx +37 -0
- package/templates/remix/app/components/Subscribe.tsx +138 -0
- package/templates/remix/app/lib/bd-booking.server.ts +90 -0
- package/templates/remix/app/lib/bd-bundle.server.ts +143 -0
- package/templates/remix/app/lib/bd-cache.server.ts +71 -0
- package/templates/remix/app/lib/bd-distribution.server.ts +26 -0
- package/templates/remix/app/lib/bd-pages.server.ts +84 -0
- package/templates/remix/app/lib/bd-portal.server.ts +170 -0
- package/templates/remix/app/lib/bd-seo.server.ts +56 -0
- package/templates/remix/app/lib/bd-store.server.ts +320 -0
- package/templates/remix/app/lib/bd-todos.server.ts +124 -0
- package/templates/remix/app/lib/bd.server.ts +112 -0
- package/templates/remix/app/lib/format.ts +17 -0
- package/templates/remix/app/lib/sdk-sections.server.ts +217 -0
- package/templates/remix/app/root.tsx +73 -0
- package/templates/remix/app/routes/$.tsx +85 -0
- package/templates/remix/app/routes/[.well-known].[mcp.json].ts +19 -0
- package/templates/remix/app/routes/[llms.txt].ts +22 -0
- package/templates/remix/app/routes/[robots.txt].ts +45 -0
- package/templates/remix/app/routes/[sitemap.xml].ts +57 -0
- package/templates/remix/app/routes/_index.tsx +210 -0
- package/templates/remix/app/routes/ai.product-feed.ts +24 -0
- package/templates/remix/app/routes/api.bd-auth.$.ts +47 -0
- package/templates/remix/app/routes/api.bd.forms.ts +53 -0
- package/templates/remix/app/routes/api.bd.revalidate.ts +46 -0
- package/templates/remix/app/routes/api.mcp.ts +38 -0
- package/templates/remix/app/routes/api.reviews.ts +44 -0
- package/templates/remix/app/routes/book.tsx +155 -0
- package/templates/remix/app/routes/my-account.tsx +349 -0
- package/templates/remix/app/routes/reviews.tsx +129 -0
- package/templates/remix/app/routes/services.$service.$area.tsx +80 -0
- package/templates/remix/app/routes/services._index.tsx +51 -0
- package/templates/remix/app/routes/store.$id.tsx +287 -0
- package/templates/remix/app/routes/store._index.tsx +318 -0
- package/templates/remix/app/routes/store.cart.tsx +196 -0
- package/templates/remix/app/routes/store.subscriptions.tsx +122 -0
- package/templates/remix/app/routes/todos.tsx +163 -0
- package/templates/remix/app/routes/updates._index.tsx +70 -0
- package/templates/remix/app/routes.ts +9 -0
- package/templates/remix/app/styles.css +699 -0
- package/templates/remix/bd.config.ts +331 -0
- package/templates/remix/bd.data-model.config.ts +90 -0
- package/templates/remix/package.json +52 -0
- package/templates/remix/pnpm-lock.yaml +2368 -0
- package/templates/remix/react-router.config.ts +5 -0
- package/templates/remix/tsconfig.json +22 -0
- package/templates/remix/vite.config.ts +16 -0
- package/templates/solid/.cta.json +24 -0
- package/templates/solid/.cursorrules +35 -0
- package/templates/solid/.env.example +56 -0
- package/templates/solid/.vscode/settings.json +35 -0
- package/templates/solid/README.md +421 -0
- package/templates/solid/VERCEL.md +50 -0
- package/templates/solid/_gitignore +12 -0
- package/templates/solid/bd.config.ts +331 -0
- package/templates/solid/bd.data-model.config.ts +90 -0
- package/templates/solid/biome.json +39 -0
- package/templates/solid/package.json +63 -0
- package/templates/solid/pnpm-lock.yaml +4086 -0
- package/templates/solid/public/favicon.ico +0 -0
- package/templates/solid/public/logo192.png +0 -0
- package/templates/solid/public/logo512.png +0 -0
- package/templates/solid/public/manifest.json +25 -0
- package/templates/solid/public/robots.txt +3 -0
- package/templates/solid/src/components/Header.tsx +58 -0
- package/templates/solid/src/components/bd/About.tsx +22 -0
- package/templates/solid/src/components/bd/Blog.tsx +52 -0
- package/templates/solid/src/components/bd/Booking.tsx +286 -0
- package/templates/solid/src/components/bd/ContactForm.tsx +102 -0
- package/templates/solid/src/components/bd/Footer.tsx +23 -0
- package/templates/solid/src/components/bd/Gallery.tsx +52 -0
- package/templates/solid/src/components/bd/Header.tsx +25 -0
- package/templates/solid/src/components/bd/Hero.tsx +14 -0
- package/templates/solid/src/components/bd/NewsBanner.tsx +47 -0
- package/templates/solid/src/components/bd/SdkSetupBanner.tsx +111 -0
- package/templates/solid/src/components/bd/Services.tsx +34 -0
- package/templates/solid/src/components/bd/Stars.tsx +32 -0
- package/templates/solid/src/components/bd/Subscribe.tsx +217 -0
- package/templates/solid/src/components/bd/money.ts +38 -0
- package/templates/solid/src/env.ts +48 -0
- package/templates/solid/src/integrations/tanstack-query/header-user.tsx +5 -0
- package/templates/solid/src/integrations/tanstack-query/provider.tsx +8 -0
- package/templates/solid/src/lib/bd-distribution.ts +26 -0
- package/templates/solid/src/lib/bd-server-fns.ts +1346 -0
- package/templates/solid/src/lib/bd-todos.ts +122 -0
- package/templates/solid/src/lib/bd.ts +169 -0
- package/templates/solid/src/lib/utils.ts +6 -0
- package/templates/solid/src/routeTree.gen.ts +513 -0
- package/templates/solid/src/router.tsx +23 -0
- package/templates/solid/src/routes/$.tsx +63 -0
- package/templates/solid/src/routes/[.]well-known.mcp[.]json.tsx +16 -0
- package/templates/solid/src/routes/__root.tsx +64 -0
- package/templates/solid/src/routes/about.tsx +23 -0
- package/templates/solid/src/routes/ai.product-feed.tsx +18 -0
- package/templates/solid/src/routes/api/bd/revalidate.tsx +48 -0
- package/templates/solid/src/routes/api/bd-auth.$.tsx +63 -0
- package/templates/solid/src/routes/api/mcp.tsx +23 -0
- package/templates/solid/src/routes/demo.tanstack-query.tsx +28 -0
- package/templates/solid/src/routes/index.tsx +65 -0
- package/templates/solid/src/routes/llms[.]txt.tsx +18 -0
- package/templates/solid/src/routes/my-account.tsx +365 -0
- package/templates/solid/src/routes/reviews.tsx +124 -0
- package/templates/solid/src/routes/robots[.]txt.tsx +17 -0
- package/templates/solid/src/routes/services.$service.$area.tsx +107 -0
- package/templates/solid/src/routes/services.index.tsx +68 -0
- package/templates/solid/src/routes/sitemap[.]xml.tsx +16 -0
- package/templates/solid/src/routes/store.$id.tsx +253 -0
- package/templates/solid/src/routes/store.cart.tsx +242 -0
- package/templates/solid/src/routes/store.index.tsx +392 -0
- package/templates/solid/src/routes/subscriptions.tsx +155 -0
- package/templates/solid/src/routes/todos.tsx +214 -0
- package/templates/solid/src/routes/updates.tsx +92 -0
- package/templates/solid/src/styles.css +1571 -0
- package/templates/solid/tsconfig.json +29 -0
- package/templates/solid/ui.config.json +13 -0
- package/templates/solid/vercel.json +7 -0
- package/templates/solid/vite.config.ts +23 -0
- package/templates/solid-1/.cta.json +24 -0
- package/templates/solid-1/.cursorrules +35 -0
- package/templates/solid-1/.env.example +56 -0
- package/templates/solid-1/.vscode/settings.json +35 -0
- package/templates/solid-1/README.md +385 -0
- package/templates/solid-1/VERCEL.md +50 -0
- package/templates/solid-1/_gitignore +12 -0
- package/templates/solid-1/bd.config.ts +331 -0
- package/templates/solid-1/bd.data-model.config.ts +90 -0
- package/templates/solid-1/biome.json +39 -0
- package/templates/solid-1/package.json +99 -0
- package/templates/solid-1/pnpm-lock.yaml +3937 -0
- package/templates/solid-1/public/favicon.ico +0 -0
- package/templates/solid-1/public/logo192.png +0 -0
- package/templates/solid-1/public/logo512.png +0 -0
- package/templates/solid-1/public/manifest.json +25 -0
- package/templates/solid-1/public/robots.txt +3 -0
- package/templates/solid-1/src/components/Header.tsx +70 -0
- package/templates/solid-1/src/components/bd/About.tsx +22 -0
- package/templates/solid-1/src/components/bd/Blog.tsx +52 -0
- package/templates/solid-1/src/components/bd/Booking.tsx +271 -0
- package/templates/solid-1/src/components/bd/ContactForm.tsx +102 -0
- package/templates/solid-1/src/components/bd/Footer.tsx +23 -0
- package/templates/solid-1/src/components/bd/Gallery.tsx +52 -0
- package/templates/solid-1/src/components/bd/Header.tsx +25 -0
- package/templates/solid-1/src/components/bd/Hero.tsx +14 -0
- package/templates/solid-1/src/components/bd/NewsBanner.tsx +47 -0
- package/templates/solid-1/src/components/bd/SdkSetupBanner.tsx +111 -0
- package/templates/solid-1/src/components/bd/Services.tsx +34 -0
- package/templates/solid-1/src/components/bd/Stars.tsx +30 -0
- package/templates/solid-1/src/components/bd/Subscribe.tsx +215 -0
- package/templates/solid-1/src/components/bd/money.ts +38 -0
- package/templates/solid-1/src/env.ts +48 -0
- package/templates/solid-1/src/integrations/tanstack-query/header-user.tsx +5 -0
- package/templates/solid-1/src/integrations/tanstack-query/provider.tsx +8 -0
- package/templates/solid-1/src/lib/bd-distribution.ts +26 -0
- package/templates/solid-1/src/lib/bd-server-fns.ts +1346 -0
- package/templates/solid-1/src/lib/bd-todos.ts +122 -0
- package/templates/solid-1/src/lib/bd.ts +169 -0
- package/templates/solid-1/src/lib/demo-store.ts +14 -0
- package/templates/solid-1/src/lib/utils.ts +6 -0
- package/templates/solid-1/src/routeTree.gen.ts +555 -0
- package/templates/solid-1/src/router.tsx +23 -0
- package/templates/solid-1/src/routes/$.tsx +63 -0
- package/templates/solid-1/src/routes/[.]well-known.mcp[.]json.tsx +16 -0
- package/templates/solid-1/src/routes/__root.tsx +62 -0
- package/templates/solid-1/src/routes/about.tsx +23 -0
- package/templates/solid-1/src/routes/ai.product-feed.tsx +18 -0
- package/templates/solid-1/src/routes/api/bd/revalidate.tsx +48 -0
- package/templates/solid-1/src/routes/api/bd-auth.$.tsx +63 -0
- package/templates/solid-1/src/routes/api/mcp.tsx +23 -0
- package/templates/solid-1/src/routes/demo.form.tsx +339 -0
- package/templates/solid-1/src/routes/demo.store.tsx +62 -0
- package/templates/solid-1/src/routes/demo.tanstack-query.tsx +28 -0
- package/templates/solid-1/src/routes/index.tsx +65 -0
- package/templates/solid-1/src/routes/llms[.]txt.tsx +18 -0
- package/templates/solid-1/src/routes/my-account.tsx +365 -0
- package/templates/solid-1/src/routes/reviews.tsx +124 -0
- package/templates/solid-1/src/routes/robots[.]txt.tsx +17 -0
- package/templates/solid-1/src/routes/services.$service.$area.tsx +107 -0
- package/templates/solid-1/src/routes/services.index.tsx +68 -0
- package/templates/solid-1/src/routes/sitemap[.]xml.tsx +16 -0
- package/templates/solid-1/src/routes/store.$id.tsx +253 -0
- package/templates/solid-1/src/routes/store.cart.tsx +242 -0
- package/templates/solid-1/src/routes/store.index.tsx +384 -0
- package/templates/solid-1/src/routes/subscriptions.tsx +155 -0
- package/templates/solid-1/src/routes/todos.tsx +214 -0
- package/templates/solid-1/src/routes/updates.tsx +92 -0
- package/templates/solid-1/src/styles.css +1571 -0
- package/templates/solid-1/tsconfig.json +29 -0
- package/templates/solid-1/ui.config.json +13 -0
- package/templates/solid-1/vercel.json +7 -0
- package/templates/solid-1/vite.config.ts +22 -0
- package/templates/svelte/.cursor/mcp.json +11 -0
- package/templates/svelte/.env.example +61 -0
- package/templates/svelte/.mcp.json +15 -0
- package/templates/svelte/.opencode/opencode.json +6 -0
- package/templates/svelte/.opencode/svelte.json +3 -0
- package/templates/svelte/.prettierignore +10 -0
- package/templates/svelte/.prettierrc +19 -0
- package/templates/svelte/.storybook/main.ts +17 -0
- package/templates/svelte/.storybook/preview.ts +21 -0
- package/templates/svelte/.vscode/extensions.json +7 -0
- package/templates/svelte/.vscode/settings.json +5 -0
- package/templates/svelte/AGENTS.md +23 -0
- package/templates/svelte/CLAUDE.md +23 -0
- package/templates/svelte/README.md +416 -0
- package/templates/svelte/_gitignore +30 -0
- package/templates/svelte/_npmrc +1 -0
- package/templates/svelte/bd.config.ts +331 -0
- package/templates/svelte/bd.data-model.config.ts +89 -0
- package/templates/svelte/drizzle.config.ts +11 -0
- package/templates/svelte/messages/en.json +4 -0
- package/templates/svelte/messages/es.json +4 -0
- package/templates/svelte/package.json +80 -0
- package/templates/svelte/playwright.config.ts +6 -0
- package/templates/svelte/pnpm-lock.yaml +4332 -0
- package/templates/svelte/project.inlang/settings.json +15 -0
- package/templates/svelte/src/app.d.ts +13 -0
- package/templates/svelte/src/app.html +17 -0
- package/templates/svelte/src/env.ts +22 -0
- package/templates/svelte/src/hooks.server.ts +17 -0
- package/templates/svelte/src/hooks.ts +4 -0
- package/templates/svelte/src/lib/assets/favicon.svg +1 -0
- package/templates/svelte/src/lib/bd/cart-client.ts +111 -0
- package/templates/svelte/src/lib/components/bd/About.svelte +31 -0
- package/templates/svelte/src/lib/components/bd/Banner.svelte +79 -0
- package/templates/svelte/src/lib/components/bd/Blog.svelte +47 -0
- package/templates/svelte/src/lib/components/bd/Booking.svelte +243 -0
- package/templates/svelte/src/lib/components/bd/ContactForm.svelte +69 -0
- package/templates/svelte/src/lib/components/bd/Footer.svelte +35 -0
- package/templates/svelte/src/lib/components/bd/Gallery.svelte +54 -0
- package/templates/svelte/src/lib/components/bd/Header.svelte +51 -0
- package/templates/svelte/src/lib/components/bd/Hero.svelte +19 -0
- package/templates/svelte/src/lib/components/bd/SdkSetupBanner.svelte +107 -0
- package/templates/svelte/src/lib/components/bd/Services.svelte +36 -0
- package/templates/svelte/src/lib/components/bd/StoreNav.svelte +65 -0
- package/templates/svelte/src/lib/components/bd/Subscribe.svelte +180 -0
- package/templates/svelte/src/lib/index.ts +1 -0
- package/templates/svelte/src/lib/server/bd-ai.ts +21 -0
- package/templates/svelte/src/lib/server/bd-bundle.ts +142 -0
- package/templates/svelte/src/lib/server/bd-parallel.ts +94 -0
- package/templates/svelte/src/lib/server/bd-portal.ts +187 -0
- package/templates/svelte/src/lib/server/bd-seo.ts +40 -0
- package/templates/svelte/src/lib/server/bd-store.ts +262 -0
- package/templates/svelte/src/lib/server/bd.ts +45 -0
- package/templates/svelte/src/lib/server/db/index.ts +30 -0
- package/templates/svelte/src/lib/server/db/schema.ts +7 -0
- package/templates/svelte/src/lib/vitest-examples/Welcome.svelte +8 -0
- package/templates/svelte/src/lib/vitest-examples/Welcome.svelte.spec.ts +13 -0
- package/templates/svelte/src/lib/vitest-examples/greet.spec.ts +8 -0
- package/templates/svelte/src/lib/vitest-examples/greet.ts +3 -0
- package/templates/svelte/src/routes/+error.svelte +30 -0
- package/templates/svelte/src/routes/+layout.svelte +33 -0
- package/templates/svelte/src/routes/+page.server.ts +167 -0
- package/templates/svelte/src/routes/+page.svelte +45 -0
- package/templates/svelte/src/routes/.well-known/mcp.json/+server.ts +34 -0
- package/templates/svelte/src/routes/[...slug]/+page.server.ts +30 -0
- package/templates/svelte/src/routes/[...slug]/+page.svelte +19 -0
- package/templates/svelte/src/routes/api/bd/cart/+server.ts +19 -0
- package/templates/svelte/src/routes/api/bd/cart/clear/+server.ts +13 -0
- package/templates/svelte/src/routes/api/bd/cart/coupon/+server.ts +29 -0
- package/templates/svelte/src/routes/api/bd/cart/items/+server.ts +28 -0
- package/templates/svelte/src/routes/api/bd/cart/items/[itemId]/+server.ts +31 -0
- package/templates/svelte/src/routes/api/bd/checkout/start/+server.ts +15 -0
- package/templates/svelte/src/routes/api/bd/forms/[slug]/+server.ts +36 -0
- package/templates/svelte/src/routes/api/bd/revalidate/+server.ts +40 -0
- package/templates/svelte/src/routes/api/bd/reviews/+server.ts +37 -0
- package/templates/svelte/src/routes/api/bd/scheduling/bookings/+server.ts +41 -0
- package/templates/svelte/src/routes/api/bd/scheduling/slots/+server.ts +33 -0
- package/templates/svelte/src/routes/api/bd/subscriptions/[id]/checkout/+server.ts +43 -0
- package/templates/svelte/src/routes/api/bd-auth/[...slug]/+server.ts +63 -0
- package/templates/svelte/src/routes/api/mcp/+server.ts +40 -0
- package/templates/svelte/src/routes/bd-tokens.css +518 -0
- package/templates/svelte/src/routes/demo/+page.svelte +6 -0
- package/templates/svelte/src/routes/demo/paraglide/+page.svelte +22 -0
- package/templates/svelte/src/routes/demo/playwright/+page.svelte +1 -0
- package/templates/svelte/src/routes/demo/playwright/page.svelte.e2e.ts +6 -0
- package/templates/svelte/src/routes/layout.css +10 -0
- package/templates/svelte/src/routes/llms.txt/+server.ts +42 -0
- package/templates/svelte/src/routes/my-account/+page.server.ts +165 -0
- package/templates/svelte/src/routes/my-account/+page.svelte +291 -0
- package/templates/svelte/src/routes/reviews/+page.server.ts +40 -0
- package/templates/svelte/src/routes/reviews/+page.svelte +137 -0
- package/templates/svelte/src/routes/robots.txt/+server.ts +52 -0
- package/templates/svelte/src/routes/services/+page.server.ts +15 -0
- package/templates/svelte/src/routes/services/+page.svelte +70 -0
- package/templates/svelte/src/routes/services/[service]/[area]/+page.server.ts +41 -0
- package/templates/svelte/src/routes/services/[service]/[area]/+page.svelte +67 -0
- package/templates/svelte/src/routes/sitemap.xml/+server.ts +63 -0
- package/templates/svelte/src/routes/store/+page.server.ts +98 -0
- package/templates/svelte/src/routes/store/+page.svelte +514 -0
- package/templates/svelte/src/routes/store/[id]/+page.server.ts +54 -0
- package/templates/svelte/src/routes/store/[id]/+page.svelte +511 -0
- package/templates/svelte/src/routes/store/cart/+page.server.ts +17 -0
- package/templates/svelte/src/routes/store/cart/+page.svelte +237 -0
- package/templates/svelte/src/routes/store/order/+page.server.ts +24 -0
- package/templates/svelte/src/routes/store/order/+page.svelte +68 -0
- package/templates/svelte/src/routes/store/subscriptions/+page.server.ts +35 -0
- package/templates/svelte/src/routes/store/subscriptions/+page.svelte +136 -0
- package/templates/svelte/src/routes/todos/+page.server.ts +153 -0
- package/templates/svelte/src/routes/todos/+page.svelte +175 -0
- package/templates/svelte/src/routes/updates/+page.server.ts +20 -0
- package/templates/svelte/src/routes/updates/+page.svelte +94 -0
- package/templates/svelte/src/stories/Button.stories.svelte +31 -0
- package/templates/svelte/src/stories/Button.svelte +30 -0
- package/templates/svelte/src/stories/Configure.mdx +388 -0
- package/templates/svelte/src/stories/Header.stories.svelte +26 -0
- package/templates/svelte/src/stories/Header.svelte +45 -0
- package/templates/svelte/src/stories/Page.stories.svelte +30 -0
- package/templates/svelte/src/stories/Page.svelte +70 -0
- package/templates/svelte/src/stories/assets/accessibility.png +0 -0
- package/templates/svelte/src/stories/assets/accessibility.svg +1 -0
- package/templates/svelte/src/stories/assets/addon-library.png +0 -0
- package/templates/svelte/src/stories/assets/assets.png +0 -0
- package/templates/svelte/src/stories/assets/avif-test-image.avif +0 -0
- package/templates/svelte/src/stories/assets/context.png +0 -0
- package/templates/svelte/src/stories/assets/discord.svg +1 -0
- package/templates/svelte/src/stories/assets/docs.png +0 -0
- package/templates/svelte/src/stories/assets/figma-plugin.png +0 -0
- package/templates/svelte/src/stories/assets/github.svg +1 -0
- package/templates/svelte/src/stories/assets/share.png +0 -0
- package/templates/svelte/src/stories/assets/styling.png +0 -0
- package/templates/svelte/src/stories/assets/testing.png +0 -0
- package/templates/svelte/src/stories/assets/theming.png +0 -0
- package/templates/svelte/src/stories/assets/tutorials.svg +1 -0
- package/templates/svelte/src/stories/assets/youtube.svg +1 -0
- package/templates/svelte/src/stories/button.css +30 -0
- package/templates/svelte/src/stories/header.css +32 -0
- package/templates/svelte/src/stories/page.css +68 -0
- package/templates/svelte/tsconfig.json +8 -0
- package/templates/svelte/vite.config.ts +88 -0
- package/templates/svelte/vitest.shims.d.ts +1 -0
- package/templates/swift/BdStarter.xcconfig +30 -0
- package/templates/swift/LICENSE +21 -0
- package/templates/swift/Package.swift +62 -0
- package/templates/swift/README.md +334 -0
- package/templates/swift/Sources/BdForms/Backend/BdFormsBackend.swift +441 -0
- package/templates/swift/Sources/BdForms/Controller/BdFormController.swift +717 -0
- package/templates/swift/Sources/BdForms/Engine/BdCalculation.swift +173 -0
- package/templates/swift/Sources/BdForms/Engine/BdFormRules+Client.swift +200 -0
- package/templates/swift/Sources/BdForms/Engine/BdFormRules.swift +949 -0
- package/templates/swift/Sources/BdForms/Engine/BdFormula.swift +783 -0
- package/templates/swift/Sources/BdForms/Engine/BdUnits.swift +171 -0
- package/templates/swift/Sources/BdForms/Generated/BdFormsData.generated.swift +294 -0
- package/templates/swift/Sources/BdForms/Model/BdFormSchema.swift +509 -0
- package/templates/swift/Sources/BdForms/Model/BdJSON.swift +302 -0
- package/templates/swift/Sources/BdForms/Quiz/BdQuizBackend.swift +313 -0
- package/templates/swift/Sources/BdForms/Quiz/BdQuizController.swift +271 -0
- package/templates/swift/Sources/BdForms/Quiz/BdQuizEngine.swift +757 -0
- package/templates/swift/Sources/BdForms/Quiz/BdQuizPage.swift +124 -0
- package/templates/swift/Sources/BdForms/Quiz/BdQuizScoring.swift +445 -0
- package/templates/swift/Sources/BdForms/Quiz/BdQuizScreen.swift +461 -0
- package/templates/swift/Sources/BdForms/Quiz/BdQuizWords.swift +110 -0
- package/templates/swift/Sources/BdForms/UI/BdFieldTree.swift +352 -0
- package/templates/swift/Sources/BdForms/UI/BdForm.swift +346 -0
- package/templates/swift/Sources/BdForms/UI/BdFormStyle.swift +247 -0
- package/templates/swift/Sources/BdForms/UI/BdHTML.swift +304 -0
- package/templates/swift/Sources/BdForms/UI/BdIcon.swift +351 -0
- package/templates/swift/Sources/BdForms/UI/Controls/BdChoiceControls.swift +677 -0
- package/templates/swift/Sources/BdForms/UI/Controls/BdDateControls.swift +360 -0
- package/templates/swift/Sources/BdForms/UI/Controls/BdFieldControl.swift +338 -0
- package/templates/swift/Sources/BdForms/UI/Controls/BdMediaControls.swift +412 -0
- package/templates/swift/Sources/BdForms/UI/Controls/BdStaticViews.swift +183 -0
- package/templates/swift/Sources/BdForms/UI/Controls/BdTextControls.swift +388 -0
- package/templates/swift/Sources/BdForms/UI/Quiz/BdQuiz.swift +696 -0
- package/templates/swift/Sources/BdSignIn/BdSignInBackend.swift +299 -0
- package/templates/swift/Sources/BdSignIn/BdSignInChecks.swift +158 -0
- package/templates/swift/Sources/BdSignIn/BdSignInView.swift +806 -0
- package/templates/swift/Sources/BdStarterApp/BdEnvironment.swift +138 -0
- package/templates/swift/Sources/BdStarterApp/ViewModels/CartViewModel.swift +74 -0
- package/templates/swift/Sources/BdStarterApp/ViewModels/ChatViewModel.swift +87 -0
- package/templates/swift/Sources/BdStarterApp/ViewModels/StorefrontViewModel.swift +73 -0
- package/templates/swift/Sources/BdStarterApp/ViewModels/ViewModel.swift +53 -0
- package/templates/swift/Sources/BdStarterApp/Views/AccountView.swift +163 -0
- package/templates/swift/Sources/BdStarterApp/Views/BdFormView.swift +50 -0
- package/templates/swift/Sources/BdStarterApp/Views/BdQuizView.swift +59 -0
- package/templates/swift/Sources/BdStarterApp/Views/BlogView.swift +33 -0
- package/templates/swift/Sources/BdStarterApp/Views/CartView.swift +73 -0
- package/templates/swift/Sources/BdStarterApp/Views/ChatView.swift +57 -0
- package/templates/swift/Sources/BdStarterApp/Views/LoadState.swift +50 -0
- package/templates/swift/Sources/BdStarterApp/Views/ProductDetailView.swift +57 -0
- package/templates/swift/Sources/BdStarterApp/Views/RootView.swift +60 -0
- package/templates/swift/Sources/BdStarterApp/Views/StorefrontView.swift +68 -0
- package/templates/swift/Sources/BusinessDashKit/BdAuth.swift +113 -0
- package/templates/swift/Sources/BusinessDashKit/BdClient.swift +223 -0
- package/templates/swift/Sources/BusinessDashKit/BdConfiguration.swift +59 -0
- package/templates/swift/Sources/BusinessDashKit/BdError.swift +71 -0
- package/templates/swift/Sources/BusinessDashKit/BdSessionStore.swift +83 -0
- package/templates/swift/Sources/BusinessDashKit/ChatFeed.swift +145 -0
- package/templates/swift/Sources/BusinessDashKit/Donations.swift +144 -0
- package/templates/swift/Sources/BusinessDashKit/JSONValue.swift +118 -0
- package/templates/swift/Sources/BusinessDashKit/Models.swift +447 -0
- package/templates/swift/Sources/BusinessDashKit/Money.swift +33 -0
- package/templates/swift/Sources/BusinessDashKit/Resources.swift +439 -0
- package/templates/swift/Sources/BusinessDashKit/Scheduling.swift +128 -0
- package/templates/swift/Sources/BusinessDashKit/Seo.swift +169 -0
- package/templates/swift/Sources/BusinessDashKit/SocialPlatforms.generated.swift +48 -0
- package/templates/swift/Sources/BusinessDashKit/Socials.swift +160 -0
- package/templates/swift/Tests/BdFormsTests/ControllerTests.swift +356 -0
- package/templates/swift/Tests/BdFormsTests/Fixtures/forms-parity.json +3806 -0
- package/templates/swift/Tests/BdFormsTests/Fixtures/quiz-parity.json +9937 -0
- package/templates/swift/Tests/BdFormsTests/FormsBackendPathTests.swift +17 -0
- package/templates/swift/Tests/BdFormsTests/ParityTests.swift +192 -0
- package/templates/swift/Tests/BdFormsTests/QuizControllerTests.swift +342 -0
- package/templates/swift/Tests/BdFormsTests/QuizParityTests.swift +230 -0
- package/templates/swift/Tests/BdSignInTests/BdSignInChecksTests.swift +49 -0
- package/templates/swift/Tests/BusinessDashKitTests/BusinessDashKitTests.swift +367 -0
- package/templates/swift/_gitignore +9 -0
- package/templates/swift/bd-records/README.md +50 -0
- package/templates/swift/bd-records/todo-images.json +14 -0
- package/templates/swift/bd-records/todos.json +20 -0
- package/templates/swift/bd.config.ts +331 -0
- package/templates/swift/bd.data-model.config.ts +89 -0
- package/templates/swift/package.json +20 -0
- package/templates/swift/pnpm-lock.yaml +347 -0
- package/templates/swift/tsconfig.json +19 -0
- package/templates/t3/.env.example +62 -0
- package/templates/t3/README.md +428 -0
- package/templates/t3/_gitignore +46 -0
- package/templates/t3/bd.config.ts +331 -0
- package/templates/t3/bd.data-model.config.ts +90 -0
- package/templates/t3/biome.jsonc +69 -0
- package/templates/t3/drizzle.config.ts +15 -0
- package/templates/t3/next.config.js +17 -0
- package/templates/t3/package.json +64 -0
- package/templates/t3/pnpm-lock.yaml +1843 -0
- package/templates/t3/postcss.config.js +5 -0
- package/templates/t3/public/favicon.ico +0 -0
- package/templates/t3/src/app/.well-known/mcp.json/route.ts +17 -0
- package/templates/t3/src/app/[...slug]/page.tsx +71 -0
- package/templates/t3/src/app/_actions/plans.ts +60 -0
- package/templates/t3/src/app/_actions/review.ts +88 -0
- package/templates/t3/src/app/_actions/store.ts +119 -0
- package/templates/t3/src/app/_components/bd/About.tsx +25 -0
- package/templates/t3/src/app/_components/bd/AuthButtons.tsx +49 -0
- package/templates/t3/src/app/_components/bd/Blog.tsx +47 -0
- package/templates/t3/src/app/_components/bd/Booking.tsx +257 -0
- package/templates/t3/src/app/_components/bd/ContactForm.tsx +82 -0
- package/templates/t3/src/app/_components/bd/Footer.tsx +25 -0
- package/templates/t3/src/app/_components/bd/Gallery.tsx +49 -0
- package/templates/t3/src/app/_components/bd/Header.tsx +27 -0
- package/templates/t3/src/app/_components/bd/Hero.tsx +14 -0
- package/templates/t3/src/app/_components/bd/NewsBanner.tsx +57 -0
- package/templates/t3/src/app/_components/bd/ReviewForm.tsx +95 -0
- package/templates/t3/src/app/_components/bd/Reviews.tsx +83 -0
- package/templates/t3/src/app/_components/bd/ReviewsLoadMore.tsx +107 -0
- package/templates/t3/src/app/_components/bd/SdkSetupBanner.tsx +97 -0
- package/templates/t3/src/app/_components/bd/Services.tsx +30 -0
- package/templates/t3/src/app/_components/bd/SignInScreen.tsx +32 -0
- package/templates/t3/src/app/_components/bd/Subscribe.tsx +157 -0
- package/templates/t3/src/app/_components/bd/Updates.tsx +90 -0
- package/templates/t3/src/app/_components/post.tsx +50 -0
- package/templates/t3/src/app/ai/product-feed/route.ts +21 -0
- package/templates/t3/src/app/api/bd/revalidate/route.ts +16 -0
- package/templates/t3/src/app/api/bd-auth/[...slug]/route.ts +39 -0
- package/templates/t3/src/app/api/mcp/route.ts +36 -0
- package/templates/t3/src/app/api/trpc/[trpc]/route.ts +34 -0
- package/templates/t3/src/app/layout.tsx +55 -0
- package/templates/t3/src/app/llms.txt/route.ts +21 -0
- package/templates/t3/src/app/my-account/page.tsx +259 -0
- package/templates/t3/src/app/not-found.tsx +26 -0
- package/templates/t3/src/app/page.tsx +89 -0
- package/templates/t3/src/app/robots.txt/route.ts +51 -0
- package/templates/t3/src/app/services/[service]/[area]/page.tsx +114 -0
- package/templates/t3/src/app/sitemap.xml/route.ts +75 -0
- package/templates/t3/src/app/store/[id]/page.tsx +69 -0
- package/templates/t3/src/app/store/_components/AddToCart.tsx +117 -0
- package/templates/t3/src/app/store/_components/CartClient.tsx +198 -0
- package/templates/t3/src/app/store/_components/Notice.tsx +11 -0
- package/templates/t3/src/app/store/_components/StoreView.tsx +372 -0
- package/templates/t3/src/app/store/_components/store-utils.ts +63 -0
- package/templates/t3/src/app/store/cart/page.tsx +28 -0
- package/templates/t3/src/app/store/layout.tsx +38 -0
- package/templates/t3/src/app/store/order/page.tsx +88 -0
- package/templates/t3/src/app/store/page.tsx +104 -0
- package/templates/t3/src/app/store/subscriptions/page.tsx +110 -0
- package/templates/t3/src/app/todos/TodoCreateForm.tsx +68 -0
- package/templates/t3/src/app/todos/page.tsx +134 -0
- package/templates/t3/src/env.js +78 -0
- package/templates/t3/src/server/api/root.ts +25 -0
- package/templates/t3/src/server/api/routers/bd.ts +359 -0
- package/templates/t3/src/server/api/routers/post.ts +30 -0
- package/templates/t3/src/server/api/trpc.ts +106 -0
- package/templates/t3/src/server/db/index.ts +40 -0
- package/templates/t3/src/server/db/schema.ts +26 -0
- package/templates/t3/src/server/lib/bd-distribution.ts +28 -0
- package/templates/t3/src/server/lib/bd-portal.ts +163 -0
- package/templates/t3/src/server/lib/bd-seo.ts +55 -0
- package/templates/t3/src/server/lib/bd-store.ts +177 -0
- package/templates/t3/src/server/lib/bd-todos.ts +138 -0
- package/templates/t3/src/server/lib/bd.ts +260 -0
- package/templates/t3/src/styles/globals.css +1088 -0
- package/templates/t3/src/trpc/query-client.ts +25 -0
- package/templates/t3/src/trpc/react.tsx +78 -0
- package/templates/t3/src/trpc/server.ts +30 -0
- package/templates/t3/start-database.sh +88 -0
- package/templates/t3/tsconfig.json +42 -0
- package/templates/vanilla/.env.example +51 -0
- package/templates/vanilla/README.md +345 -0
- package/templates/vanilla/_gitignore +7 -0
- package/templates/vanilla/bd.config.ts +331 -0
- package/templates/vanilla/bd.data-model.config.ts +89 -0
- package/templates/vanilla/lib/cache.ts +58 -0
- package/templates/vanilla/package.json +23 -0
- package/templates/vanilla/pnpm-lock.yaml +97 -0
- package/templates/vanilla/public/banner.js +75 -0
- package/templates/vanilla/public/bd.js +435 -0
- package/templates/vanilla/public/index.html +74 -0
- package/templates/vanilla/public/main.js +59 -0
- package/templates/vanilla/public/pages/_ui.js +24 -0
- package/templates/vanilla/public/pages/cart.js +143 -0
- package/templates/vanilla/public/pages/my-account.js +182 -0
- package/templates/vanilla/public/pages/product.js +211 -0
- package/templates/vanilla/public/pages/reviews.js +56 -0
- package/templates/vanilla/public/pages/services-area.js +33 -0
- package/templates/vanilla/public/pages/services.js +26 -0
- package/templates/vanilla/public/pages/store.js +271 -0
- package/templates/vanilla/public/pages/subscriptions.js +80 -0
- package/templates/vanilla/public/pages/todos.js +160 -0
- package/templates/vanilla/public/pages/updates.js +46 -0
- package/templates/vanilla/public/sections/about.js +47 -0
- package/templates/vanilla/public/sections/blog.js +66 -0
- package/templates/vanilla/public/sections/booking.js +304 -0
- package/templates/vanilla/public/sections/contact-form.js +104 -0
- package/templates/vanilla/public/sections/gallery.js +70 -0
- package/templates/vanilla/public/sections/hero.js +43 -0
- package/templates/vanilla/public/sections/services.js +70 -0
- package/templates/vanilla/public/sections/subscribe.js +160 -0
- package/templates/vanilla/public/setup-banner.js +81 -0
- package/templates/vanilla/public/styles.css +1720 -0
- package/templates/vanilla/server.ts +1192 -0
- package/templates/vanilla/src/content/en/home/about.json +4 -0
- package/templates/vanilla/src/content/en/home/hero.json +6 -0
- package/templates/vanilla/src/content/en/shared/brand.json +5 -0
- package/templates/vanilla/src/content/en/shared/companyInfo.json +11 -0
- package/templates/vanilla/tsconfig.json +14 -0
- package/templates/vapor/.env.example +38 -0
- package/templates/vapor/Package.resolved +285 -0
- package/templates/vapor/Package.swift +33 -0
- package/templates/vapor/Public/bd-sign-in.css +53 -0
- package/templates/vapor/Public/forms.css +1158 -0
- package/templates/vapor/Public/styles.css +100 -0
- package/templates/vapor/README.md +280 -0
- package/templates/vapor/Resources/Forms/demo-form.json +283 -0
- package/templates/vapor/Resources/Forms/demo-quiz.json +97 -0
- package/templates/vapor/Resources/Views/account.leaf +23 -0
- package/templates/vapor/Resources/Views/base.leaf +51 -0
- package/templates/vapor/Resources/Views/blog.leaf +18 -0
- package/templates/vapor/Resources/Views/cart.leaf +30 -0
- package/templates/vapor/Resources/Views/delete-account.leaf +26 -0
- package/templates/vapor/Resources/Views/form.leaf +6 -0
- package/templates/vapor/Resources/Views/home.leaf +37 -0
- package/templates/vapor/Resources/Views/post.leaf +15 -0
- package/templates/vapor/Resources/Views/product.leaf +28 -0
- package/templates/vapor/Resources/Views/quiz.leaf +6 -0
- package/templates/vapor/Resources/Views/reviews.leaf +16 -0
- package/templates/vapor/Resources/Views/service-area.leaf +9 -0
- package/templates/vapor/Resources/Views/services.leaf +15 -0
- package/templates/vapor/Resources/Views/store.leaf +37 -0
- package/templates/vapor/Resources/Views/subscriptions.leaf +18 -0
- package/templates/vapor/Resources/Views/todos.leaf +28 -0
- package/templates/vapor/Sources/App/Bd/BdCache.swift +99 -0
- package/templates/vapor/Sources/App/Bd/BdClient.swift +178 -0
- package/templates/vapor/Sources/App/Bd/BdWebhook.swift +92 -0
- package/templates/vapor/Sources/App/Bd/Donations.swift +95 -0
- package/templates/vapor/Sources/App/Bd/JSONValue.swift +66 -0
- package/templates/vapor/Sources/App/Bd/Models.swift +153 -0
- package/templates/vapor/Sources/App/Bd/Money.swift +29 -0
- package/templates/vapor/Sources/App/Bd/PortalResources.swift +372 -0
- package/templates/vapor/Sources/App/Bd/Resources.swift +115 -0
- package/templates/vapor/Sources/App/Bd/Scheduling.swift +135 -0
- package/templates/vapor/Sources/App/Bd/Seo.swift +169 -0
- package/templates/vapor/Sources/App/Bd/SignInCore.swift +232 -0
- package/templates/vapor/Sources/App/Bd/SocialPlatforms.generated.swift +48 -0
- package/templates/vapor/Sources/App/Bd/Socials.swift +96 -0
- package/templates/vapor/Sources/App/Controllers/AccountController.swift +435 -0
- package/templates/vapor/Sources/App/Controllers/CartController.swift +107 -0
- package/templates/vapor/Sources/App/Controllers/Contexts.swift +124 -0
- package/templates/vapor/Sources/App/Controllers/PageController.swift +151 -0
- package/templates/vapor/Sources/App/Controllers/SeoController.swift +83 -0
- package/templates/vapor/Sources/App/Controllers/SignInController.swift +583 -0
- package/templates/vapor/Sources/App/Controllers/StoreController.swift +48 -0
- package/templates/vapor/Sources/App/Controllers/WebhookController.swift +34 -0
- package/templates/vapor/Sources/App/Forms/FormPage.swift +900 -0
- package/templates/vapor/Sources/App/Forms/FormPost.swift +125 -0
- package/templates/vapor/Sources/App/Forms/FormRoutes.swift +36 -0
- package/templates/vapor/Sources/App/Forms/FormSamples.swift +45 -0
- package/templates/vapor/Sources/App/Forms/QuizPage.swift +481 -0
- package/templates/vapor/Sources/App/Forms/QuizRoutes.swift +77 -0
- package/templates/vapor/Sources/App/configure.swift +18 -0
- package/templates/vapor/Sources/App/entrypoint.swift +20 -0
- package/templates/vapor/Sources/App/routes.swift +62 -0
- package/templates/vapor/Sources/BdForms/Backend/BdFormsBackend.swift +445 -0
- package/templates/vapor/Sources/BdForms/Controller/BdFormController.swift +721 -0
- package/templates/vapor/Sources/BdForms/Engine/BdCalculation.swift +177 -0
- package/templates/vapor/Sources/BdForms/Engine/BdFormRules+Client.swift +204 -0
- package/templates/vapor/Sources/BdForms/Engine/BdFormRules.swift +953 -0
- package/templates/vapor/Sources/BdForms/Engine/BdFormula.swift +787 -0
- package/templates/vapor/Sources/BdForms/Engine/BdUnits.swift +175 -0
- package/templates/vapor/Sources/BdForms/Generated/BdFormsData.generated.swift +298 -0
- package/templates/vapor/Sources/BdForms/Model/BdFormSchema.swift +513 -0
- package/templates/vapor/Sources/BdForms/Model/BdJSON.swift +306 -0
- package/templates/vapor/Sources/BdForms/Quiz/BdQuizBackend.swift +317 -0
- package/templates/vapor/Sources/BdForms/Quiz/BdQuizController.swift +275 -0
- package/templates/vapor/Sources/BdForms/Quiz/BdQuizEngine.swift +761 -0
- package/templates/vapor/Sources/BdForms/Quiz/BdQuizPage.swift +128 -0
- package/templates/vapor/Sources/BdForms/Quiz/BdQuizScoring.swift +449 -0
- package/templates/vapor/Sources/BdForms/Quiz/BdQuizScreen.swift +465 -0
- package/templates/vapor/Sources/BdForms/Quiz/BdQuizWords.swift +114 -0
- package/templates/vapor/_gitignore +9 -0
- package/templates/vapor/bd-records/README.md +50 -0
- package/templates/vapor/bd-records/todo-images.json +14 -0
- package/templates/vapor/bd-records/todos.json +20 -0
- package/templates/vapor/bd.config.ts +331 -0
- package/templates/vapor/bd.data-model.config.ts +89 -0
- package/templates/vapor/package.json +20 -0
- package/templates/vapor/pnpm-lock.yaml +347 -0
- package/templates/vapor/tsconfig.json +19 -0
|
@@ -0,0 +1,3806 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "Generated by sdk/scripts/gen-native-forms.ts from the TypeScript forms-core. DO NOT EDIT.",
|
|
3
|
+
"fnDef": {
|
|
4
|
+
"slug": "quote",
|
|
5
|
+
"inputs": [
|
|
6
|
+
{
|
|
7
|
+
"key": "sqft",
|
|
8
|
+
"type": "number",
|
|
9
|
+
"required": true
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"key": "rate",
|
|
13
|
+
"type": "number",
|
|
14
|
+
"default": 2
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"key": "rush",
|
|
18
|
+
"type": "boolean"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"outputs": [
|
|
22
|
+
{
|
|
23
|
+
"key": "subtotal",
|
|
24
|
+
"type": "number",
|
|
25
|
+
"formula": "sqft * rate"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"key": "total",
|
|
29
|
+
"type": "number",
|
|
30
|
+
"formula": "IF(rush, subtotal * 1.5, subtotal)"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"key": "label",
|
|
34
|
+
"type": "text",
|
|
35
|
+
"formula": "\"$\" & total"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"key": "bad",
|
|
39
|
+
"type": "number",
|
|
40
|
+
"formula": "\"x\"",
|
|
41
|
+
"fallback": 0
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
"numberStrings": [
|
|
46
|
+
{
|
|
47
|
+
"input": 0,
|
|
48
|
+
"output": "0"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"input": 0,
|
|
52
|
+
"output": "0"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"input": 1,
|
|
56
|
+
"output": "1"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"input": -1,
|
|
60
|
+
"output": "-1"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"input": 1.5,
|
|
64
|
+
"output": "1.5"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"input": -2.25,
|
|
68
|
+
"output": "-2.25"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"input": 0.30000000000000004,
|
|
72
|
+
"output": "0.30000000000000004"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"input": 0.3333333333333333,
|
|
76
|
+
"output": "0.3333333333333333"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"input": 0.6666666666666666,
|
|
80
|
+
"output": "0.6666666666666666"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"input": 100,
|
|
84
|
+
"output": "100"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"input": 100000000000000000000,
|
|
88
|
+
"output": "100000000000000000000"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"input": 1e+21,
|
|
92
|
+
"output": "1e+21"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"input": 1.5e+21,
|
|
96
|
+
"output": "1.5e+21"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"input": 123456789012,
|
|
100
|
+
"output": "123456789012"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"input": 0.000001,
|
|
104
|
+
"output": "0.000001"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"input": 1e-7,
|
|
108
|
+
"output": "1e-7"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"input": 1.5e-7,
|
|
112
|
+
"output": "1.5e-7"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"input": 9007199254740992,
|
|
116
|
+
"output": "9007199254740992"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"input": 5e-324,
|
|
120
|
+
"output": "5e-324"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"input": 1.7976931348623157e+308,
|
|
124
|
+
"output": "1.7976931348623157e+308"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"input": 12.5,
|
|
128
|
+
"output": "12.5"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"input": 0.5,
|
|
132
|
+
"output": "0.5"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"input": 1234.5678,
|
|
136
|
+
"output": "1234.5678"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"input": -0.001,
|
|
140
|
+
"output": "-0.001"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"input": 3.14159,
|
|
144
|
+
"output": "3.14159"
|
|
145
|
+
}
|
|
146
|
+
],
|
|
147
|
+
"numberParses": [
|
|
148
|
+
{
|
|
149
|
+
"input": "",
|
|
150
|
+
"output": 0
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"input": " ",
|
|
154
|
+
"output": 0
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"input": "42",
|
|
158
|
+
"output": 42
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"input": " 42 ",
|
|
162
|
+
"output": 42
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"input": "-7",
|
|
166
|
+
"output": -7
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"input": "+7",
|
|
170
|
+
"output": 7
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"input": "1.5",
|
|
174
|
+
"output": 1.5
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"input": ".5",
|
|
178
|
+
"output": 0.5
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"input": "5.",
|
|
182
|
+
"output": 5
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"input": "1e3",
|
|
186
|
+
"output": 1000
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"input": "1E-2",
|
|
190
|
+
"output": 0.01
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"input": "-1.5e+2",
|
|
194
|
+
"output": -150
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"input": "0x1F",
|
|
198
|
+
"output": 31
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"input": "0b101",
|
|
202
|
+
"output": 5
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"input": "0o17",
|
|
206
|
+
"output": 15
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"input": "Infinity",
|
|
210
|
+
"output": {
|
|
211
|
+
"$number": "Infinity"
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"input": "-Infinity",
|
|
216
|
+
"output": {
|
|
217
|
+
"$number": "-Infinity"
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"input": "12px",
|
|
222
|
+
"output": {
|
|
223
|
+
"$number": "NaN"
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"input": "abc",
|
|
228
|
+
"output": {
|
|
229
|
+
"$number": "NaN"
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"input": "1,000",
|
|
234
|
+
"output": {
|
|
235
|
+
"$number": "NaN"
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"input": "--1",
|
|
240
|
+
"output": {
|
|
241
|
+
"$number": "NaN"
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"input": "1e",
|
|
246
|
+
"output": {
|
|
247
|
+
"$number": "NaN"
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"input": "0.0",
|
|
252
|
+
"output": 0
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"input": "\n12\t",
|
|
256
|
+
"output": 12
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"input": "١٢",
|
|
260
|
+
"output": {
|
|
261
|
+
"$number": "NaN"
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"input": "0x",
|
|
266
|
+
"output": {
|
|
267
|
+
"$number": "NaN"
|
|
268
|
+
}
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"input": "+0x10",
|
|
272
|
+
"output": {
|
|
273
|
+
"$number": "NaN"
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"input": "NaN",
|
|
278
|
+
"output": {
|
|
279
|
+
"$number": "NaN"
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"input": "5d",
|
|
284
|
+
"output": {
|
|
285
|
+
"$number": "NaN"
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"input": "1_000",
|
|
290
|
+
"output": {
|
|
291
|
+
"$number": "NaN"
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
],
|
|
295
|
+
"toFixed": [
|
|
296
|
+
{
|
|
297
|
+
"input": 1.005,
|
|
298
|
+
"decimals": 2,
|
|
299
|
+
"output": "1.00"
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"input": 1.255,
|
|
303
|
+
"decimals": 2,
|
|
304
|
+
"output": "1.25"
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"input": 0.125,
|
|
308
|
+
"decimals": 2,
|
|
309
|
+
"output": "0.13"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"input": 2.5,
|
|
313
|
+
"decimals": 0,
|
|
314
|
+
"output": "3"
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"input": -2.5,
|
|
318
|
+
"decimals": 0,
|
|
319
|
+
"output": "-3"
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
"input": 1.45,
|
|
323
|
+
"decimals": 1,
|
|
324
|
+
"output": "1.4"
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"input": 10,
|
|
328
|
+
"decimals": 2,
|
|
329
|
+
"output": "10.00"
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"input": 0.30000000000000004,
|
|
333
|
+
"decimals": 2,
|
|
334
|
+
"output": "0.30"
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"input": 123.456,
|
|
338
|
+
"decimals": 1,
|
|
339
|
+
"output": "123.5"
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"input": -0.0001,
|
|
343
|
+
"decimals": 2,
|
|
344
|
+
"output": "-0.00"
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"input": 99.995,
|
|
348
|
+
"decimals": 2,
|
|
349
|
+
"output": "100.00"
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"input": 1e+21,
|
|
353
|
+
"decimals": 2,
|
|
354
|
+
"output": "1e+21"
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"input": 0,
|
|
358
|
+
"decimals": 3,
|
|
359
|
+
"output": "0.000"
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
"input": 5e-7,
|
|
363
|
+
"decimals": 6,
|
|
364
|
+
"output": "0.000000"
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
"input": 1234567.891,
|
|
368
|
+
"decimals": 2,
|
|
369
|
+
"output": "1234567.89"
|
|
370
|
+
}
|
|
371
|
+
],
|
|
372
|
+
"formula": [
|
|
373
|
+
{
|
|
374
|
+
"src": "1 + 2 * 3",
|
|
375
|
+
"result": {
|
|
376
|
+
"ok": true,
|
|
377
|
+
"value": 7
|
|
378
|
+
}
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
"src": "(1 + 2) * 3",
|
|
382
|
+
"result": {
|
|
383
|
+
"ok": true,
|
|
384
|
+
"value": 9
|
|
385
|
+
}
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
"src": "2 ^ 3 ^ 2",
|
|
389
|
+
"result": {
|
|
390
|
+
"ok": true,
|
|
391
|
+
"value": 512
|
|
392
|
+
}
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
"src": "-2 ^ 2",
|
|
396
|
+
"result": {
|
|
397
|
+
"ok": true,
|
|
398
|
+
"value": -4
|
|
399
|
+
}
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
"src": "10 / 4",
|
|
403
|
+
"result": {
|
|
404
|
+
"ok": true,
|
|
405
|
+
"value": 2.5
|
|
406
|
+
}
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
"src": "10 % 4",
|
|
410
|
+
"result": {
|
|
411
|
+
"ok": true,
|
|
412
|
+
"value": 2
|
|
413
|
+
}
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
"src": "1 / 0",
|
|
417
|
+
"result": {
|
|
418
|
+
"ok": false,
|
|
419
|
+
"error": "Division by zero."
|
|
420
|
+
}
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
"src": "7 % 0",
|
|
424
|
+
"result": {
|
|
425
|
+
"ok": false,
|
|
426
|
+
"error": "Division by zero."
|
|
427
|
+
}
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
"src": "\"a\" & \"b\" & 1.5",
|
|
431
|
+
"result": {
|
|
432
|
+
"ok": true,
|
|
433
|
+
"value": "ab1.5"
|
|
434
|
+
}
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
"src": "\"Total: \" & (2 + 3)",
|
|
438
|
+
"result": {
|
|
439
|
+
"ok": true,
|
|
440
|
+
"value": "Total: 5"
|
|
441
|
+
}
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
"src": "1 = 1.0",
|
|
445
|
+
"result": {
|
|
446
|
+
"ok": true,
|
|
447
|
+
"value": true
|
|
448
|
+
}
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
"src": "\"1\" = 1",
|
|
452
|
+
"result": {
|
|
453
|
+
"ok": true,
|
|
454
|
+
"value": true
|
|
455
|
+
}
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
"src": "\"a\" < \"b\"",
|
|
459
|
+
"result": {
|
|
460
|
+
"ok": true,
|
|
461
|
+
"value": true
|
|
462
|
+
}
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
"src": "\"10\" > 9",
|
|
466
|
+
"result": {
|
|
467
|
+
"ok": true,
|
|
468
|
+
"value": true
|
|
469
|
+
}
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
"src": "\"abc\" <> \"abc\"",
|
|
473
|
+
"result": {
|
|
474
|
+
"ok": true,
|
|
475
|
+
"value": false
|
|
476
|
+
}
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
"src": "1 <= 1 AND 2 >= 3",
|
|
480
|
+
"result": {
|
|
481
|
+
"ok": true,
|
|
482
|
+
"value": false
|
|
483
|
+
}
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
"src": "TRUE OR FALSE",
|
|
487
|
+
"result": {
|
|
488
|
+
"ok": true,
|
|
489
|
+
"value": true
|
|
490
|
+
}
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
"src": "NOT TRUE",
|
|
494
|
+
"result": {
|
|
495
|
+
"ok": true,
|
|
496
|
+
"value": false
|
|
497
|
+
}
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
"src": "!FALSE && TRUE || FALSE",
|
|
501
|
+
"result": {
|
|
502
|
+
"ok": true,
|
|
503
|
+
"value": true
|
|
504
|
+
}
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
"src": "true and false",
|
|
508
|
+
"result": {
|
|
509
|
+
"ok": true,
|
|
510
|
+
"value": false
|
|
511
|
+
}
|
|
512
|
+
},
|
|
513
|
+
{
|
|
514
|
+
"src": ".5 + 1e3",
|
|
515
|
+
"result": {
|
|
516
|
+
"ok": true,
|
|
517
|
+
"value": 1000.5
|
|
518
|
+
}
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
"src": "1e-2 * 100",
|
|
522
|
+
"result": {
|
|
523
|
+
"ok": true,
|
|
524
|
+
"value": 1
|
|
525
|
+
}
|
|
526
|
+
},
|
|
527
|
+
{
|
|
528
|
+
"src": "SUM(1, 2, 3)",
|
|
529
|
+
"result": {
|
|
530
|
+
"ok": true,
|
|
531
|
+
"value": 6
|
|
532
|
+
}
|
|
533
|
+
},
|
|
534
|
+
{
|
|
535
|
+
"src": "PRODUCT(2, 3, 4)",
|
|
536
|
+
"result": {
|
|
537
|
+
"ok": true,
|
|
538
|
+
"value": 24
|
|
539
|
+
}
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
"src": "ABS(-3.5)",
|
|
543
|
+
"result": {
|
|
544
|
+
"ok": true,
|
|
545
|
+
"value": 3.5
|
|
546
|
+
}
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
"src": "ROUND(2.345, 2)",
|
|
550
|
+
"result": {
|
|
551
|
+
"ok": true,
|
|
552
|
+
"value": 2.35
|
|
553
|
+
}
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
"src": "ROUND(2.5)",
|
|
557
|
+
"result": {
|
|
558
|
+
"ok": true,
|
|
559
|
+
"value": 3
|
|
560
|
+
}
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
"src": "ROUND(-2.5)",
|
|
564
|
+
"result": {
|
|
565
|
+
"ok": true,
|
|
566
|
+
"value": -2
|
|
567
|
+
}
|
|
568
|
+
},
|
|
569
|
+
{
|
|
570
|
+
"src": "ROUNDUP(2.341, 2)",
|
|
571
|
+
"result": {
|
|
572
|
+
"ok": true,
|
|
573
|
+
"value": 2.35
|
|
574
|
+
}
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
"src": "ROUNDDOWN(-2.349, 2)",
|
|
578
|
+
"result": {
|
|
579
|
+
"ok": true,
|
|
580
|
+
"value": -2.34
|
|
581
|
+
}
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
"src": "CEILING(1.2)",
|
|
585
|
+
"result": {
|
|
586
|
+
"ok": true,
|
|
587
|
+
"value": 2
|
|
588
|
+
}
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
"src": "FLOOR(-1.2)",
|
|
592
|
+
"result": {
|
|
593
|
+
"ok": true,
|
|
594
|
+
"value": -2
|
|
595
|
+
}
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
"src": "INT(-7.9)",
|
|
599
|
+
"result": {
|
|
600
|
+
"ok": true,
|
|
601
|
+
"value": -7
|
|
602
|
+
}
|
|
603
|
+
},
|
|
604
|
+
{
|
|
605
|
+
"src": "MOD(-7, 3)",
|
|
606
|
+
"result": {
|
|
607
|
+
"ok": true,
|
|
608
|
+
"value": -1
|
|
609
|
+
}
|
|
610
|
+
},
|
|
611
|
+
{
|
|
612
|
+
"src": "POWER(2, 10)",
|
|
613
|
+
"result": {
|
|
614
|
+
"ok": true,
|
|
615
|
+
"value": 1024
|
|
616
|
+
}
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
"src": "SQRT(16)",
|
|
620
|
+
"result": {
|
|
621
|
+
"ok": true,
|
|
622
|
+
"value": 4
|
|
623
|
+
}
|
|
624
|
+
},
|
|
625
|
+
{
|
|
626
|
+
"src": "SQRT(-1)",
|
|
627
|
+
"result": {
|
|
628
|
+
"ok": true,
|
|
629
|
+
"value": {
|
|
630
|
+
"$number": "NaN"
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
},
|
|
634
|
+
{
|
|
635
|
+
"src": "SIGN(-4)",
|
|
636
|
+
"result": {
|
|
637
|
+
"ok": true,
|
|
638
|
+
"value": -1
|
|
639
|
+
}
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
"src": "EXP(1)",
|
|
643
|
+
"result": {
|
|
644
|
+
"ok": true,
|
|
645
|
+
"value": 2.718281828459045
|
|
646
|
+
}
|
|
647
|
+
},
|
|
648
|
+
{
|
|
649
|
+
"src": "LN(10)",
|
|
650
|
+
"result": {
|
|
651
|
+
"ok": true,
|
|
652
|
+
"value": 2.302585092994046
|
|
653
|
+
}
|
|
654
|
+
},
|
|
655
|
+
{
|
|
656
|
+
"src": "LOG10(1000)",
|
|
657
|
+
"result": {
|
|
658
|
+
"ok": true,
|
|
659
|
+
"value": 3
|
|
660
|
+
}
|
|
661
|
+
},
|
|
662
|
+
{
|
|
663
|
+
"src": "AVERAGE(1, 2, 3, 4)",
|
|
664
|
+
"result": {
|
|
665
|
+
"ok": true,
|
|
666
|
+
"value": 2.5
|
|
667
|
+
}
|
|
668
|
+
},
|
|
669
|
+
{
|
|
670
|
+
"src": "MIN(3, 1, 2)",
|
|
671
|
+
"result": {
|
|
672
|
+
"ok": true,
|
|
673
|
+
"value": 1
|
|
674
|
+
}
|
|
675
|
+
},
|
|
676
|
+
{
|
|
677
|
+
"src": "MAX(3, 1, 2)",
|
|
678
|
+
"result": {
|
|
679
|
+
"ok": true,
|
|
680
|
+
"value": 3
|
|
681
|
+
}
|
|
682
|
+
},
|
|
683
|
+
{
|
|
684
|
+
"src": "MEDIAN(3, 1, 4, 2)",
|
|
685
|
+
"result": {
|
|
686
|
+
"ok": true,
|
|
687
|
+
"value": 2.5
|
|
688
|
+
}
|
|
689
|
+
},
|
|
690
|
+
{
|
|
691
|
+
"src": "MEDIAN(5, 1, 3)",
|
|
692
|
+
"result": {
|
|
693
|
+
"ok": true,
|
|
694
|
+
"value": 3
|
|
695
|
+
}
|
|
696
|
+
},
|
|
697
|
+
{
|
|
698
|
+
"src": "COUNT(1, \"2\", \"x\", \"\", TRUE)",
|
|
699
|
+
"result": {
|
|
700
|
+
"ok": true,
|
|
701
|
+
"value": 2
|
|
702
|
+
}
|
|
703
|
+
},
|
|
704
|
+
{
|
|
705
|
+
"src": "COUNTA(1, \"\", \"x\", FALSE)",
|
|
706
|
+
"result": {
|
|
707
|
+
"ok": true,
|
|
708
|
+
"value": 3
|
|
709
|
+
}
|
|
710
|
+
},
|
|
711
|
+
{
|
|
712
|
+
"src": "IF(1 > 2, \"yes\", \"no\")",
|
|
713
|
+
"result": {
|
|
714
|
+
"ok": true,
|
|
715
|
+
"value": "no"
|
|
716
|
+
}
|
|
717
|
+
},
|
|
718
|
+
{
|
|
719
|
+
"src": "IF(0, 1)",
|
|
720
|
+
"result": {
|
|
721
|
+
"ok": true,
|
|
722
|
+
"value": false
|
|
723
|
+
}
|
|
724
|
+
},
|
|
725
|
+
{
|
|
726
|
+
"src": "AND(1, \"true\", TRUE)",
|
|
727
|
+
"result": {
|
|
728
|
+
"ok": true,
|
|
729
|
+
"value": true
|
|
730
|
+
}
|
|
731
|
+
},
|
|
732
|
+
{
|
|
733
|
+
"src": "OR(0, \"\", FALSE)",
|
|
734
|
+
"result": {
|
|
735
|
+
"ok": true,
|
|
736
|
+
"value": false
|
|
737
|
+
}
|
|
738
|
+
},
|
|
739
|
+
{
|
|
740
|
+
"src": "XOR(TRUE, TRUE, TRUE)",
|
|
741
|
+
"result": {
|
|
742
|
+
"ok": true,
|
|
743
|
+
"value": true
|
|
744
|
+
}
|
|
745
|
+
},
|
|
746
|
+
{
|
|
747
|
+
"src": "TRUE()",
|
|
748
|
+
"result": {
|
|
749
|
+
"ok": false,
|
|
750
|
+
"error": "Unexpected trailing input."
|
|
751
|
+
}
|
|
752
|
+
},
|
|
753
|
+
{
|
|
754
|
+
"src": "IFS(1 > 2, \"a\", 2 > 1, \"b\")",
|
|
755
|
+
"result": {
|
|
756
|
+
"ok": true,
|
|
757
|
+
"value": "b"
|
|
758
|
+
}
|
|
759
|
+
},
|
|
760
|
+
{
|
|
761
|
+
"src": "IFS(FALSE, 1)",
|
|
762
|
+
"result": {
|
|
763
|
+
"ok": false,
|
|
764
|
+
"error": "No IFS condition matched."
|
|
765
|
+
}
|
|
766
|
+
},
|
|
767
|
+
{
|
|
768
|
+
"src": "CHOOSE(2, \"a\", \"b\", \"c\")",
|
|
769
|
+
"result": {
|
|
770
|
+
"ok": true,
|
|
771
|
+
"value": "b"
|
|
772
|
+
}
|
|
773
|
+
},
|
|
774
|
+
{
|
|
775
|
+
"src": "CHOOSE(5, \"a\")",
|
|
776
|
+
"result": {
|
|
777
|
+
"ok": false,
|
|
778
|
+
"error": "CHOOSE index out of range."
|
|
779
|
+
}
|
|
780
|
+
},
|
|
781
|
+
{
|
|
782
|
+
"src": "SWITCH(2, 1, \"one\", 2, \"two\", \"other\")",
|
|
783
|
+
"result": {
|
|
784
|
+
"ok": true,
|
|
785
|
+
"value": "two"
|
|
786
|
+
}
|
|
787
|
+
},
|
|
788
|
+
{
|
|
789
|
+
"src": "SWITCH(\"x\", \"a\", 1, \"fallback\")",
|
|
790
|
+
"result": {
|
|
791
|
+
"ok": true,
|
|
792
|
+
"value": "fallback"
|
|
793
|
+
}
|
|
794
|
+
},
|
|
795
|
+
{
|
|
796
|
+
"src": "SWITCH(3, 1, \"one\", 2, \"two\")",
|
|
797
|
+
"result": {
|
|
798
|
+
"ok": true,
|
|
799
|
+
"value": false
|
|
800
|
+
}
|
|
801
|
+
},
|
|
802
|
+
{
|
|
803
|
+
"src": "CONCATENATE(\"a\", 1, TRUE)",
|
|
804
|
+
"result": {
|
|
805
|
+
"ok": true,
|
|
806
|
+
"value": "a1true"
|
|
807
|
+
}
|
|
808
|
+
},
|
|
809
|
+
{
|
|
810
|
+
"src": "LEN(\"héllo\")",
|
|
811
|
+
"result": {
|
|
812
|
+
"ok": true,
|
|
813
|
+
"value": 5
|
|
814
|
+
}
|
|
815
|
+
},
|
|
816
|
+
{
|
|
817
|
+
"src": "LOWER(\"AbC\")",
|
|
818
|
+
"result": {
|
|
819
|
+
"ok": true,
|
|
820
|
+
"value": "abc"
|
|
821
|
+
}
|
|
822
|
+
},
|
|
823
|
+
{
|
|
824
|
+
"src": "UPPER(\"straße\")",
|
|
825
|
+
"result": {
|
|
826
|
+
"ok": true,
|
|
827
|
+
"value": "STRASSE"
|
|
828
|
+
}
|
|
829
|
+
},
|
|
830
|
+
{
|
|
831
|
+
"src": "SUBSTITUTE(\"a-b-c\", \"-\", \"+\")",
|
|
832
|
+
"result": {
|
|
833
|
+
"ok": true,
|
|
834
|
+
"value": "a+b+c"
|
|
835
|
+
}
|
|
836
|
+
},
|
|
837
|
+
{
|
|
838
|
+
"src": "SUBSTITUTE(\"cat category\", \"cat\", \"dog\", \"category\", \"class\")",
|
|
839
|
+
"result": {
|
|
840
|
+
"ok": true,
|
|
841
|
+
"value": "dog class"
|
|
842
|
+
}
|
|
843
|
+
},
|
|
844
|
+
{
|
|
845
|
+
"src": "SUBSTITUTE(\"abc\", \"a\")",
|
|
846
|
+
"result": {
|
|
847
|
+
"ok": false,
|
|
848
|
+
"error": "SUBSTITUTE got the wrong number of arguments."
|
|
849
|
+
}
|
|
850
|
+
},
|
|
851
|
+
{
|
|
852
|
+
"src": "SLUGIFY(\" Héllo, Wörld! \")",
|
|
853
|
+
"result": {
|
|
854
|
+
"ok": true,
|
|
855
|
+
"value": "hello-world"
|
|
856
|
+
}
|
|
857
|
+
},
|
|
858
|
+
{
|
|
859
|
+
"src": "TRIM(\" x \")",
|
|
860
|
+
"result": {
|
|
861
|
+
"ok": true,
|
|
862
|
+
"value": "x"
|
|
863
|
+
}
|
|
864
|
+
},
|
|
865
|
+
{
|
|
866
|
+
"src": "LEFT(\"hello\", 2)",
|
|
867
|
+
"result": {
|
|
868
|
+
"ok": true,
|
|
869
|
+
"value": "he"
|
|
870
|
+
}
|
|
871
|
+
},
|
|
872
|
+
{
|
|
873
|
+
"src": "LEFT(\"hello\")",
|
|
874
|
+
"result": {
|
|
875
|
+
"ok": true,
|
|
876
|
+
"value": "h"
|
|
877
|
+
}
|
|
878
|
+
},
|
|
879
|
+
{
|
|
880
|
+
"src": "RIGHT(\"hello\", 3)",
|
|
881
|
+
"result": {
|
|
882
|
+
"ok": true,
|
|
883
|
+
"value": "llo"
|
|
884
|
+
}
|
|
885
|
+
},
|
|
886
|
+
{
|
|
887
|
+
"src": "MID(\"hello\", 2, 3)",
|
|
888
|
+
"result": {
|
|
889
|
+
"ok": true,
|
|
890
|
+
"value": "ell"
|
|
891
|
+
}
|
|
892
|
+
},
|
|
893
|
+
{
|
|
894
|
+
"src": "FILETYPE(\"https://x.com/a/photo.JPG?w=2\")",
|
|
895
|
+
"result": {
|
|
896
|
+
"ok": true,
|
|
897
|
+
"value": "image"
|
|
898
|
+
}
|
|
899
|
+
},
|
|
900
|
+
{
|
|
901
|
+
"src": "FILETYPE(\"report\")",
|
|
902
|
+
"result": {
|
|
903
|
+
"ok": true,
|
|
904
|
+
"value": "other"
|
|
905
|
+
}
|
|
906
|
+
},
|
|
907
|
+
{
|
|
908
|
+
"src": "YEAR(\"2024-03-15\")",
|
|
909
|
+
"result": {
|
|
910
|
+
"ok": true,
|
|
911
|
+
"value": 2024
|
|
912
|
+
}
|
|
913
|
+
},
|
|
914
|
+
{
|
|
915
|
+
"src": "MONTH(\"2024-03-15\")",
|
|
916
|
+
"result": {
|
|
917
|
+
"ok": true,
|
|
918
|
+
"value": 3
|
|
919
|
+
}
|
|
920
|
+
},
|
|
921
|
+
{
|
|
922
|
+
"src": "DAY(\"2024-03-15T23:30:00Z\")",
|
|
923
|
+
"result": {
|
|
924
|
+
"ok": true,
|
|
925
|
+
"value": 15
|
|
926
|
+
}
|
|
927
|
+
},
|
|
928
|
+
{
|
|
929
|
+
"src": "DAYS(\"2024-03-15\", \"2024-03-01\")",
|
|
930
|
+
"result": {
|
|
931
|
+
"ok": true,
|
|
932
|
+
"value": 14
|
|
933
|
+
}
|
|
934
|
+
},
|
|
935
|
+
{
|
|
936
|
+
"src": "MINUTES(\"2024-03-15T10:00:00Z\", \"2024-03-15T11:30:00Z\")",
|
|
937
|
+
"result": {
|
|
938
|
+
"ok": true,
|
|
939
|
+
"value": 90
|
|
940
|
+
}
|
|
941
|
+
},
|
|
942
|
+
{
|
|
943
|
+
"src": "HOURS(\"2024-03-15T10:00:00Z\", \"2024-03-15T11:20:00Z\")",
|
|
944
|
+
"result": {
|
|
945
|
+
"ok": true,
|
|
946
|
+
"value": 1.33
|
|
947
|
+
}
|
|
948
|
+
},
|
|
949
|
+
{
|
|
950
|
+
"src": "HOURS(\"2024-03-15T10:00:00Z\", \"2024-03-15T11:20:00Z\", 0)",
|
|
951
|
+
"result": {
|
|
952
|
+
"ok": true,
|
|
953
|
+
"value": 1
|
|
954
|
+
}
|
|
955
|
+
},
|
|
956
|
+
{
|
|
957
|
+
"src": "WEEKS(\"2024-01-01\", \"2024-03-15\")",
|
|
958
|
+
"result": {
|
|
959
|
+
"ok": true,
|
|
960
|
+
"value": 10
|
|
961
|
+
}
|
|
962
|
+
},
|
|
963
|
+
{
|
|
964
|
+
"src": "MONTHS(\"2024-01-31\", \"2024-03-15\")",
|
|
965
|
+
"result": {
|
|
966
|
+
"ok": true,
|
|
967
|
+
"value": 1
|
|
968
|
+
}
|
|
969
|
+
},
|
|
970
|
+
{
|
|
971
|
+
"src": "YEARS(\"2000-06-15\", \"2024-06-14\")",
|
|
972
|
+
"result": {
|
|
973
|
+
"ok": true,
|
|
974
|
+
"value": 23
|
|
975
|
+
}
|
|
976
|
+
},
|
|
977
|
+
{
|
|
978
|
+
"src": "DATEDIFF(\"days\", \"2024-01-01\", \"2024-02-01\")",
|
|
979
|
+
"result": {
|
|
980
|
+
"ok": true,
|
|
981
|
+
"value": 31
|
|
982
|
+
}
|
|
983
|
+
},
|
|
984
|
+
{
|
|
985
|
+
"src": "DATEDIFF(\"hours\", \"2024-01-01T00:00:00Z\", \"2024-01-01T01:10:00Z\")",
|
|
986
|
+
"result": {
|
|
987
|
+
"ok": true,
|
|
988
|
+
"value": 1.17
|
|
989
|
+
}
|
|
990
|
+
},
|
|
991
|
+
{
|
|
992
|
+
"src": "DATEDIFF(\"fortnights\", \"2024-01-01\", \"2024-02-01\")",
|
|
993
|
+
"result": {
|
|
994
|
+
"ok": false,
|
|
995
|
+
"error": "Unknown DATEDIFF unit \"fortnights\"."
|
|
996
|
+
}
|
|
997
|
+
},
|
|
998
|
+
{
|
|
999
|
+
"src": "YEAR(\"not a date\")",
|
|
1000
|
+
"result": {
|
|
1001
|
+
"ok": false,
|
|
1002
|
+
"error": "Invalid date."
|
|
1003
|
+
}
|
|
1004
|
+
},
|
|
1005
|
+
{
|
|
1006
|
+
"src": "DISTANCE(40.7128, -74.006, 34.0522, -118.2437)",
|
|
1007
|
+
"result": {
|
|
1008
|
+
"ok": true,
|
|
1009
|
+
"value": 3935.746254609723
|
|
1010
|
+
}
|
|
1011
|
+
},
|
|
1012
|
+
{
|
|
1013
|
+
"src": "DISTANCE(40.7128, -74.006, 34.0522, -118.2437, \"mi\")",
|
|
1014
|
+
"result": {
|
|
1015
|
+
"ok": true,
|
|
1016
|
+
"value": 2445.558585973098
|
|
1017
|
+
}
|
|
1018
|
+
},
|
|
1019
|
+
{
|
|
1020
|
+
"src": "price * qty",
|
|
1021
|
+
"vars": {
|
|
1022
|
+
"price": 12.5,
|
|
1023
|
+
"qty": 3
|
|
1024
|
+
},
|
|
1025
|
+
"result": {
|
|
1026
|
+
"ok": true,
|
|
1027
|
+
"value": 37.5
|
|
1028
|
+
}
|
|
1029
|
+
},
|
|
1030
|
+
{
|
|
1031
|
+
"src": "price * qty",
|
|
1032
|
+
"vars": {
|
|
1033
|
+
"price": "12.5",
|
|
1034
|
+
"qty": "3"
|
|
1035
|
+
},
|
|
1036
|
+
"result": {
|
|
1037
|
+
"ok": true,
|
|
1038
|
+
"value": 37.5
|
|
1039
|
+
}
|
|
1040
|
+
},
|
|
1041
|
+
{
|
|
1042
|
+
"src": "price * qty",
|
|
1043
|
+
"vars": {
|
|
1044
|
+
"price": 12.5
|
|
1045
|
+
},
|
|
1046
|
+
"result": {
|
|
1047
|
+
"ok": false,
|
|
1048
|
+
"error": "Variable \"qty\" has no value."
|
|
1049
|
+
}
|
|
1050
|
+
},
|
|
1051
|
+
{
|
|
1052
|
+
"src": "total > 100",
|
|
1053
|
+
"vars": {
|
|
1054
|
+
"total": 150
|
|
1055
|
+
},
|
|
1056
|
+
"result": {
|
|
1057
|
+
"ok": true,
|
|
1058
|
+
"value": true
|
|
1059
|
+
}
|
|
1060
|
+
},
|
|
1061
|
+
{
|
|
1062
|
+
"src": "addr.city & \", \" & addr.state",
|
|
1063
|
+
"vars": {
|
|
1064
|
+
"addr": {
|
|
1065
|
+
"city": "Austin",
|
|
1066
|
+
"state": "TX"
|
|
1067
|
+
}
|
|
1068
|
+
},
|
|
1069
|
+
"result": {
|
|
1070
|
+
"ok": true,
|
|
1071
|
+
"value": "Austin, TX"
|
|
1072
|
+
}
|
|
1073
|
+
},
|
|
1074
|
+
{
|
|
1075
|
+
"src": "addr.zip",
|
|
1076
|
+
"vars": {
|
|
1077
|
+
"addr": {
|
|
1078
|
+
"city": "Austin"
|
|
1079
|
+
}
|
|
1080
|
+
},
|
|
1081
|
+
"result": {
|
|
1082
|
+
"ok": false,
|
|
1083
|
+
"error": "Field \"zip\" has no value."
|
|
1084
|
+
}
|
|
1085
|
+
},
|
|
1086
|
+
{
|
|
1087
|
+
"src": "name.first",
|
|
1088
|
+
"vars": {
|
|
1089
|
+
"name": "x"
|
|
1090
|
+
},
|
|
1091
|
+
"result": {
|
|
1092
|
+
"ok": false,
|
|
1093
|
+
"error": "Cannot read field \"first\" of a non-object value."
|
|
1094
|
+
}
|
|
1095
|
+
},
|
|
1096
|
+
{
|
|
1097
|
+
"src": "flag + 1",
|
|
1098
|
+
"vars": {
|
|
1099
|
+
"flag": true
|
|
1100
|
+
},
|
|
1101
|
+
"result": {
|
|
1102
|
+
"ok": true,
|
|
1103
|
+
"value": 2
|
|
1104
|
+
}
|
|
1105
|
+
},
|
|
1106
|
+
{
|
|
1107
|
+
"src": "word + 1",
|
|
1108
|
+
"vars": {
|
|
1109
|
+
"word": "abc"
|
|
1110
|
+
},
|
|
1111
|
+
"result": {
|
|
1112
|
+
"ok": false,
|
|
1113
|
+
"error": "\"abc\" is not a number."
|
|
1114
|
+
}
|
|
1115
|
+
},
|
|
1116
|
+
{
|
|
1117
|
+
"src": "obj + 1",
|
|
1118
|
+
"vars": {
|
|
1119
|
+
"obj": {
|
|
1120
|
+
"a": 1
|
|
1121
|
+
}
|
|
1122
|
+
},
|
|
1123
|
+
"result": {
|
|
1124
|
+
"ok": false,
|
|
1125
|
+
"error": "Cannot use an object as a number."
|
|
1126
|
+
}
|
|
1127
|
+
},
|
|
1128
|
+
{
|
|
1129
|
+
"src": "LEN(obj)",
|
|
1130
|
+
"vars": {
|
|
1131
|
+
"obj": {
|
|
1132
|
+
"a": 1
|
|
1133
|
+
}
|
|
1134
|
+
},
|
|
1135
|
+
"result": {
|
|
1136
|
+
"ok": false,
|
|
1137
|
+
"error": "Cannot use an object as text."
|
|
1138
|
+
}
|
|
1139
|
+
},
|
|
1140
|
+
{
|
|
1141
|
+
"src": "SUM(1,)",
|
|
1142
|
+
"result": {
|
|
1143
|
+
"ok": false,
|
|
1144
|
+
"error": "Unexpected token."
|
|
1145
|
+
}
|
|
1146
|
+
},
|
|
1147
|
+
{
|
|
1148
|
+
"src": "1 +",
|
|
1149
|
+
"result": {
|
|
1150
|
+
"ok": false,
|
|
1151
|
+
"error": "Unexpected end of formula."
|
|
1152
|
+
}
|
|
1153
|
+
},
|
|
1154
|
+
{
|
|
1155
|
+
"src": "(1 + 2",
|
|
1156
|
+
"result": {
|
|
1157
|
+
"ok": false,
|
|
1158
|
+
"error": "Expected rparen."
|
|
1159
|
+
}
|
|
1160
|
+
},
|
|
1161
|
+
{
|
|
1162
|
+
"src": "\"unterminated",
|
|
1163
|
+
"result": {
|
|
1164
|
+
"ok": false,
|
|
1165
|
+
"error": "Unterminated string literal."
|
|
1166
|
+
}
|
|
1167
|
+
},
|
|
1168
|
+
{
|
|
1169
|
+
"src": "1 @ 2",
|
|
1170
|
+
"result": {
|
|
1171
|
+
"ok": false,
|
|
1172
|
+
"error": "Unexpected character \"@\"."
|
|
1173
|
+
}
|
|
1174
|
+
},
|
|
1175
|
+
{
|
|
1176
|
+
"src": "1 2",
|
|
1177
|
+
"result": {
|
|
1178
|
+
"ok": false,
|
|
1179
|
+
"error": "Unexpected trailing input."
|
|
1180
|
+
}
|
|
1181
|
+
},
|
|
1182
|
+
{
|
|
1183
|
+
"src": "NOPE(1)",
|
|
1184
|
+
"result": {
|
|
1185
|
+
"ok": false,
|
|
1186
|
+
"error": "Unknown function \"NOPE\"."
|
|
1187
|
+
}
|
|
1188
|
+
},
|
|
1189
|
+
{
|
|
1190
|
+
"src": "ABS(1, 2)",
|
|
1191
|
+
"result": {
|
|
1192
|
+
"ok": false,
|
|
1193
|
+
"error": "ABS got the wrong number of arguments."
|
|
1194
|
+
}
|
|
1195
|
+
},
|
|
1196
|
+
{
|
|
1197
|
+
"src": "1..2",
|
|
1198
|
+
"result": {
|
|
1199
|
+
"ok": false,
|
|
1200
|
+
"error": "Invalid number \"1..2\"."
|
|
1201
|
+
}
|
|
1202
|
+
},
|
|
1203
|
+
{
|
|
1204
|
+
"src": "\"esc\\\"aped\" & \"x\"",
|
|
1205
|
+
"result": {
|
|
1206
|
+
"ok": true,
|
|
1207
|
+
"value": "esc\"apedx"
|
|
1208
|
+
}
|
|
1209
|
+
},
|
|
1210
|
+
{
|
|
1211
|
+
"src": "DOUBLE(4) + 1",
|
|
1212
|
+
"functions": {
|
|
1213
|
+
"DOUBLE": {
|
|
1214
|
+
"inputs": [
|
|
1215
|
+
{
|
|
1216
|
+
"key": "n",
|
|
1217
|
+
"type": "number"
|
|
1218
|
+
}
|
|
1219
|
+
],
|
|
1220
|
+
"outputs": [
|
|
1221
|
+
{
|
|
1222
|
+
"key": "out",
|
|
1223
|
+
"type": "number",
|
|
1224
|
+
"formula": "n * 2"
|
|
1225
|
+
}
|
|
1226
|
+
]
|
|
1227
|
+
}
|
|
1228
|
+
},
|
|
1229
|
+
"result": {
|
|
1230
|
+
"ok": true,
|
|
1231
|
+
"value": 9
|
|
1232
|
+
}
|
|
1233
|
+
},
|
|
1234
|
+
{
|
|
1235
|
+
"src": "LOOP(1)",
|
|
1236
|
+
"functions": {
|
|
1237
|
+
"LOOP": {
|
|
1238
|
+
"inputs": [
|
|
1239
|
+
{
|
|
1240
|
+
"key": "n",
|
|
1241
|
+
"type": "number"
|
|
1242
|
+
}
|
|
1243
|
+
],
|
|
1244
|
+
"outputs": [
|
|
1245
|
+
{
|
|
1246
|
+
"key": "out",
|
|
1247
|
+
"type": "number",
|
|
1248
|
+
"formula": "LOOP(n)"
|
|
1249
|
+
}
|
|
1250
|
+
]
|
|
1251
|
+
}
|
|
1252
|
+
},
|
|
1253
|
+
"result": {
|
|
1254
|
+
"ok": false,
|
|
1255
|
+
"error": "Circular function reference: \"LOOP\"."
|
|
1256
|
+
}
|
|
1257
|
+
},
|
|
1258
|
+
{
|
|
1259
|
+
"src": "DOUBLE(1, 2)",
|
|
1260
|
+
"functions": {
|
|
1261
|
+
"DOUBLE": {
|
|
1262
|
+
"inputs": [
|
|
1263
|
+
{
|
|
1264
|
+
"key": "n",
|
|
1265
|
+
"type": "number"
|
|
1266
|
+
}
|
|
1267
|
+
],
|
|
1268
|
+
"outputs": [
|
|
1269
|
+
{
|
|
1270
|
+
"key": "out",
|
|
1271
|
+
"type": "number",
|
|
1272
|
+
"formula": "n * 2"
|
|
1273
|
+
}
|
|
1274
|
+
]
|
|
1275
|
+
}
|
|
1276
|
+
},
|
|
1277
|
+
"result": {
|
|
1278
|
+
"ok": false,
|
|
1279
|
+
"error": "DOUBLE expects 1 argument(s)."
|
|
1280
|
+
}
|
|
1281
|
+
}
|
|
1282
|
+
],
|
|
1283
|
+
"conditions": [
|
|
1284
|
+
{
|
|
1285
|
+
"rule": {
|
|
1286
|
+
"fieldId": "a",
|
|
1287
|
+
"operator": "eq",
|
|
1288
|
+
"value": "x"
|
|
1289
|
+
},
|
|
1290
|
+
"value": "x",
|
|
1291
|
+
"result": true
|
|
1292
|
+
},
|
|
1293
|
+
{
|
|
1294
|
+
"rule": {
|
|
1295
|
+
"fieldId": "a",
|
|
1296
|
+
"operator": "eq",
|
|
1297
|
+
"value": "x"
|
|
1298
|
+
},
|
|
1299
|
+
"value": "X",
|
|
1300
|
+
"result": false
|
|
1301
|
+
},
|
|
1302
|
+
{
|
|
1303
|
+
"rule": {
|
|
1304
|
+
"fieldId": "a",
|
|
1305
|
+
"operator": "eq",
|
|
1306
|
+
"value": "true"
|
|
1307
|
+
},
|
|
1308
|
+
"value": true,
|
|
1309
|
+
"result": true
|
|
1310
|
+
},
|
|
1311
|
+
{
|
|
1312
|
+
"rule": {
|
|
1313
|
+
"fieldId": "a",
|
|
1314
|
+
"operator": "eq",
|
|
1315
|
+
"value": "3"
|
|
1316
|
+
},
|
|
1317
|
+
"value": 3,
|
|
1318
|
+
"result": true
|
|
1319
|
+
},
|
|
1320
|
+
{
|
|
1321
|
+
"rule": {
|
|
1322
|
+
"fieldId": "a",
|
|
1323
|
+
"operator": "eq",
|
|
1324
|
+
"value": "1.5"
|
|
1325
|
+
},
|
|
1326
|
+
"value": 1.5,
|
|
1327
|
+
"result": true
|
|
1328
|
+
},
|
|
1329
|
+
{
|
|
1330
|
+
"rule": {
|
|
1331
|
+
"fieldId": "a",
|
|
1332
|
+
"operator": "eq",
|
|
1333
|
+
"value": "a,b"
|
|
1334
|
+
},
|
|
1335
|
+
"value": [
|
|
1336
|
+
"a",
|
|
1337
|
+
"b"
|
|
1338
|
+
],
|
|
1339
|
+
"result": true
|
|
1340
|
+
},
|
|
1341
|
+
{
|
|
1342
|
+
"rule": {
|
|
1343
|
+
"fieldId": "a",
|
|
1344
|
+
"operator": "eq",
|
|
1345
|
+
"value": ""
|
|
1346
|
+
},
|
|
1347
|
+
"value": null,
|
|
1348
|
+
"result": true
|
|
1349
|
+
},
|
|
1350
|
+
{
|
|
1351
|
+
"rule": {
|
|
1352
|
+
"fieldId": "a",
|
|
1353
|
+
"operator": "neq",
|
|
1354
|
+
"value": "x"
|
|
1355
|
+
},
|
|
1356
|
+
"result": true
|
|
1357
|
+
},
|
|
1358
|
+
{
|
|
1359
|
+
"rule": {
|
|
1360
|
+
"fieldId": "a",
|
|
1361
|
+
"operator": "contains",
|
|
1362
|
+
"value": "OO"
|
|
1363
|
+
},
|
|
1364
|
+
"value": "foobar",
|
|
1365
|
+
"result": true
|
|
1366
|
+
},
|
|
1367
|
+
{
|
|
1368
|
+
"rule": {
|
|
1369
|
+
"fieldId": "a",
|
|
1370
|
+
"operator": "contains",
|
|
1371
|
+
"value": "b"
|
|
1372
|
+
},
|
|
1373
|
+
"value": [
|
|
1374
|
+
"a",
|
|
1375
|
+
"b"
|
|
1376
|
+
],
|
|
1377
|
+
"result": true
|
|
1378
|
+
},
|
|
1379
|
+
{
|
|
1380
|
+
"rule": {
|
|
1381
|
+
"fieldId": "a",
|
|
1382
|
+
"operator": "gt",
|
|
1383
|
+
"value": "10"
|
|
1384
|
+
},
|
|
1385
|
+
"value": "12",
|
|
1386
|
+
"result": true
|
|
1387
|
+
},
|
|
1388
|
+
{
|
|
1389
|
+
"rule": {
|
|
1390
|
+
"fieldId": "a",
|
|
1391
|
+
"operator": "gt",
|
|
1392
|
+
"value": "10"
|
|
1393
|
+
},
|
|
1394
|
+
"value": "",
|
|
1395
|
+
"result": false
|
|
1396
|
+
},
|
|
1397
|
+
{
|
|
1398
|
+
"rule": {
|
|
1399
|
+
"fieldId": "a",
|
|
1400
|
+
"operator": "gt",
|
|
1401
|
+
"value": "-1"
|
|
1402
|
+
},
|
|
1403
|
+
"value": "",
|
|
1404
|
+
"result": true
|
|
1405
|
+
},
|
|
1406
|
+
{
|
|
1407
|
+
"rule": {
|
|
1408
|
+
"fieldId": "a",
|
|
1409
|
+
"operator": "lt",
|
|
1410
|
+
"value": "5"
|
|
1411
|
+
},
|
|
1412
|
+
"value": [
|
|
1413
|
+
3
|
|
1414
|
+
],
|
|
1415
|
+
"result": true
|
|
1416
|
+
},
|
|
1417
|
+
{
|
|
1418
|
+
"rule": {
|
|
1419
|
+
"fieldId": "a",
|
|
1420
|
+
"operator": "lt",
|
|
1421
|
+
"value": "5"
|
|
1422
|
+
},
|
|
1423
|
+
"value": [
|
|
1424
|
+
"a"
|
|
1425
|
+
],
|
|
1426
|
+
"result": false
|
|
1427
|
+
},
|
|
1428
|
+
{
|
|
1429
|
+
"rule": {
|
|
1430
|
+
"fieldId": "a",
|
|
1431
|
+
"operator": "gt",
|
|
1432
|
+
"value": "0"
|
|
1433
|
+
},
|
|
1434
|
+
"value": true,
|
|
1435
|
+
"result": true
|
|
1436
|
+
},
|
|
1437
|
+
{
|
|
1438
|
+
"rule": {
|
|
1439
|
+
"fieldId": "a",
|
|
1440
|
+
"operator": "lt",
|
|
1441
|
+
"value": "1"
|
|
1442
|
+
},
|
|
1443
|
+
"value": null,
|
|
1444
|
+
"result": true
|
|
1445
|
+
},
|
|
1446
|
+
{
|
|
1447
|
+
"rule": {
|
|
1448
|
+
"fieldId": "a",
|
|
1449
|
+
"operator": "gt",
|
|
1450
|
+
"value": "abc"
|
|
1451
|
+
},
|
|
1452
|
+
"value": 5,
|
|
1453
|
+
"result": false
|
|
1454
|
+
},
|
|
1455
|
+
{
|
|
1456
|
+
"rule": {
|
|
1457
|
+
"fieldId": "a",
|
|
1458
|
+
"operator": "is_empty"
|
|
1459
|
+
},
|
|
1460
|
+
"value": "",
|
|
1461
|
+
"result": true
|
|
1462
|
+
},
|
|
1463
|
+
{
|
|
1464
|
+
"rule": {
|
|
1465
|
+
"fieldId": "a",
|
|
1466
|
+
"operator": "is_empty"
|
|
1467
|
+
},
|
|
1468
|
+
"value": [],
|
|
1469
|
+
"result": false
|
|
1470
|
+
},
|
|
1471
|
+
{
|
|
1472
|
+
"rule": {
|
|
1473
|
+
"fieldId": "a",
|
|
1474
|
+
"operator": "is_not_empty"
|
|
1475
|
+
},
|
|
1476
|
+
"value": 0,
|
|
1477
|
+
"result": true
|
|
1478
|
+
},
|
|
1479
|
+
{
|
|
1480
|
+
"rule": {
|
|
1481
|
+
"fieldId": "a",
|
|
1482
|
+
"operator": "is_not_empty"
|
|
1483
|
+
},
|
|
1484
|
+
"value": false,
|
|
1485
|
+
"result": true
|
|
1486
|
+
},
|
|
1487
|
+
{
|
|
1488
|
+
"rule": {
|
|
1489
|
+
"fieldId": "a",
|
|
1490
|
+
"operator": "mystery",
|
|
1491
|
+
"value": "x"
|
|
1492
|
+
},
|
|
1493
|
+
"value": "y",
|
|
1494
|
+
"result": true
|
|
1495
|
+
},
|
|
1496
|
+
{
|
|
1497
|
+
"rule": {
|
|
1498
|
+
"fieldId": "a"
|
|
1499
|
+
},
|
|
1500
|
+
"value": "y",
|
|
1501
|
+
"result": true
|
|
1502
|
+
},
|
|
1503
|
+
{
|
|
1504
|
+
"rule": {
|
|
1505
|
+
"operator": "eq",
|
|
1506
|
+
"value": "x"
|
|
1507
|
+
},
|
|
1508
|
+
"value": "y",
|
|
1509
|
+
"result": true
|
|
1510
|
+
},
|
|
1511
|
+
{
|
|
1512
|
+
"rule": {
|
|
1513
|
+
"fieldId": "a",
|
|
1514
|
+
"clauses": [
|
|
1515
|
+
{
|
|
1516
|
+
"operator": "contains",
|
|
1517
|
+
"value": "a"
|
|
1518
|
+
},
|
|
1519
|
+
{
|
|
1520
|
+
"operator": "contains",
|
|
1521
|
+
"value": "z"
|
|
1522
|
+
}
|
|
1523
|
+
]
|
|
1524
|
+
},
|
|
1525
|
+
"value": "abc",
|
|
1526
|
+
"result": false
|
|
1527
|
+
},
|
|
1528
|
+
{
|
|
1529
|
+
"rule": {
|
|
1530
|
+
"fieldId": "a",
|
|
1531
|
+
"match": "any",
|
|
1532
|
+
"clauses": [
|
|
1533
|
+
{
|
|
1534
|
+
"operator": "contains",
|
|
1535
|
+
"value": "a"
|
|
1536
|
+
},
|
|
1537
|
+
{
|
|
1538
|
+
"operator": "contains",
|
|
1539
|
+
"value": "z"
|
|
1540
|
+
}
|
|
1541
|
+
]
|
|
1542
|
+
},
|
|
1543
|
+
"value": "abc",
|
|
1544
|
+
"result": true
|
|
1545
|
+
},
|
|
1546
|
+
{
|
|
1547
|
+
"rule": {
|
|
1548
|
+
"fieldId": "a",
|
|
1549
|
+
"operator": "eq",
|
|
1550
|
+
"value": "[object Object]"
|
|
1551
|
+
},
|
|
1552
|
+
"value": {
|
|
1553
|
+
"k": 1
|
|
1554
|
+
},
|
|
1555
|
+
"result": true
|
|
1556
|
+
}
|
|
1557
|
+
],
|
|
1558
|
+
"validation": [
|
|
1559
|
+
{
|
|
1560
|
+
"field": {
|
|
1561
|
+
"id": "f",
|
|
1562
|
+
"label": "Field",
|
|
1563
|
+
"required": true,
|
|
1564
|
+
"type": "text"
|
|
1565
|
+
},
|
|
1566
|
+
"value": "hi",
|
|
1567
|
+
"empty": false,
|
|
1568
|
+
"reason": null
|
|
1569
|
+
},
|
|
1570
|
+
{
|
|
1571
|
+
"field": {
|
|
1572
|
+
"id": "f",
|
|
1573
|
+
"label": "Field",
|
|
1574
|
+
"required": true,
|
|
1575
|
+
"type": "text"
|
|
1576
|
+
},
|
|
1577
|
+
"value": "",
|
|
1578
|
+
"empty": true,
|
|
1579
|
+
"reason": null
|
|
1580
|
+
},
|
|
1581
|
+
{
|
|
1582
|
+
"field": {
|
|
1583
|
+
"id": "f",
|
|
1584
|
+
"label": "Field",
|
|
1585
|
+
"required": true,
|
|
1586
|
+
"type": "text"
|
|
1587
|
+
},
|
|
1588
|
+
"value": 5,
|
|
1589
|
+
"empty": false,
|
|
1590
|
+
"reason": null
|
|
1591
|
+
},
|
|
1592
|
+
{
|
|
1593
|
+
"field": {
|
|
1594
|
+
"id": "f",
|
|
1595
|
+
"label": "Field",
|
|
1596
|
+
"required": true,
|
|
1597
|
+
"type": "text"
|
|
1598
|
+
},
|
|
1599
|
+
"value": [
|
|
1600
|
+
"x"
|
|
1601
|
+
],
|
|
1602
|
+
"empty": false,
|
|
1603
|
+
"reason": "type"
|
|
1604
|
+
},
|
|
1605
|
+
{
|
|
1606
|
+
"field": {
|
|
1607
|
+
"id": "f",
|
|
1608
|
+
"label": "Field",
|
|
1609
|
+
"required": true,
|
|
1610
|
+
"type": "text",
|
|
1611
|
+
"regexPattern": "^[A-Z]{3}$"
|
|
1612
|
+
},
|
|
1613
|
+
"value": "ABC",
|
|
1614
|
+
"empty": false,
|
|
1615
|
+
"reason": null
|
|
1616
|
+
},
|
|
1617
|
+
{
|
|
1618
|
+
"field": {
|
|
1619
|
+
"id": "f",
|
|
1620
|
+
"label": "Field",
|
|
1621
|
+
"required": true,
|
|
1622
|
+
"type": "text",
|
|
1623
|
+
"regexPattern": "^[A-Z]{3}$"
|
|
1624
|
+
},
|
|
1625
|
+
"value": "abc",
|
|
1626
|
+
"empty": false,
|
|
1627
|
+
"reason": "regex"
|
|
1628
|
+
},
|
|
1629
|
+
{
|
|
1630
|
+
"field": {
|
|
1631
|
+
"id": "f",
|
|
1632
|
+
"label": "Field",
|
|
1633
|
+
"required": true,
|
|
1634
|
+
"type": "text",
|
|
1635
|
+
"regexPattern": "/^[a-z]{3}$/i"
|
|
1636
|
+
},
|
|
1637
|
+
"value": "ABC",
|
|
1638
|
+
"empty": false,
|
|
1639
|
+
"reason": null
|
|
1640
|
+
},
|
|
1641
|
+
{
|
|
1642
|
+
"field": {
|
|
1643
|
+
"id": "f",
|
|
1644
|
+
"label": "Field",
|
|
1645
|
+
"required": true,
|
|
1646
|
+
"type": "text",
|
|
1647
|
+
"regexPattern": "(["
|
|
1648
|
+
},
|
|
1649
|
+
"value": "anything",
|
|
1650
|
+
"empty": false,
|
|
1651
|
+
"reason": null
|
|
1652
|
+
},
|
|
1653
|
+
{
|
|
1654
|
+
"field": {
|
|
1655
|
+
"id": "f",
|
|
1656
|
+
"label": "Field",
|
|
1657
|
+
"required": true,
|
|
1658
|
+
"type": "email"
|
|
1659
|
+
},
|
|
1660
|
+
"value": "a@b.co",
|
|
1661
|
+
"empty": false,
|
|
1662
|
+
"reason": null
|
|
1663
|
+
},
|
|
1664
|
+
{
|
|
1665
|
+
"field": {
|
|
1666
|
+
"id": "f",
|
|
1667
|
+
"label": "Field",
|
|
1668
|
+
"required": true,
|
|
1669
|
+
"type": "email"
|
|
1670
|
+
},
|
|
1671
|
+
"value": "a@b.c",
|
|
1672
|
+
"empty": false,
|
|
1673
|
+
"reason": "format"
|
|
1674
|
+
},
|
|
1675
|
+
{
|
|
1676
|
+
"field": {
|
|
1677
|
+
"id": "f",
|
|
1678
|
+
"label": "Field",
|
|
1679
|
+
"required": true,
|
|
1680
|
+
"type": "email"
|
|
1681
|
+
},
|
|
1682
|
+
"value": "no at sign",
|
|
1683
|
+
"empty": false,
|
|
1684
|
+
"reason": "format"
|
|
1685
|
+
},
|
|
1686
|
+
{
|
|
1687
|
+
"field": {
|
|
1688
|
+
"id": "f",
|
|
1689
|
+
"label": "Field",
|
|
1690
|
+
"required": true,
|
|
1691
|
+
"type": "email",
|
|
1692
|
+
"emailConfig": {
|
|
1693
|
+
"businessOnly": true
|
|
1694
|
+
}
|
|
1695
|
+
},
|
|
1696
|
+
"value": "me@gmail.com",
|
|
1697
|
+
"empty": false,
|
|
1698
|
+
"reason": "business_email"
|
|
1699
|
+
},
|
|
1700
|
+
{
|
|
1701
|
+
"field": {
|
|
1702
|
+
"id": "f",
|
|
1703
|
+
"label": "Field",
|
|
1704
|
+
"required": true,
|
|
1705
|
+
"type": "email",
|
|
1706
|
+
"emailConfig": {
|
|
1707
|
+
"businessOnly": true
|
|
1708
|
+
}
|
|
1709
|
+
},
|
|
1710
|
+
"value": "me@acme.io",
|
|
1711
|
+
"empty": false,
|
|
1712
|
+
"reason": null
|
|
1713
|
+
},
|
|
1714
|
+
{
|
|
1715
|
+
"field": {
|
|
1716
|
+
"id": "f",
|
|
1717
|
+
"label": "Field",
|
|
1718
|
+
"required": true,
|
|
1719
|
+
"type": "phone"
|
|
1720
|
+
},
|
|
1721
|
+
"value": "(555) 123-4567",
|
|
1722
|
+
"empty": false,
|
|
1723
|
+
"reason": null
|
|
1724
|
+
},
|
|
1725
|
+
{
|
|
1726
|
+
"field": {
|
|
1727
|
+
"id": "f",
|
|
1728
|
+
"label": "Field",
|
|
1729
|
+
"required": true,
|
|
1730
|
+
"type": "phone"
|
|
1731
|
+
},
|
|
1732
|
+
"value": "1 555 123 4567",
|
|
1733
|
+
"empty": false,
|
|
1734
|
+
"reason": null
|
|
1735
|
+
},
|
|
1736
|
+
{
|
|
1737
|
+
"field": {
|
|
1738
|
+
"id": "f",
|
|
1739
|
+
"label": "Field",
|
|
1740
|
+
"required": true,
|
|
1741
|
+
"type": "phone"
|
|
1742
|
+
},
|
|
1743
|
+
"value": "123",
|
|
1744
|
+
"empty": false,
|
|
1745
|
+
"reason": "format"
|
|
1746
|
+
},
|
|
1747
|
+
{
|
|
1748
|
+
"field": {
|
|
1749
|
+
"id": "f",
|
|
1750
|
+
"label": "Field",
|
|
1751
|
+
"required": true,
|
|
1752
|
+
"type": "phone",
|
|
1753
|
+
"phoneConfig": {
|
|
1754
|
+
"international": true
|
|
1755
|
+
}
|
|
1756
|
+
},
|
|
1757
|
+
"value": "+44 20 7946 0958",
|
|
1758
|
+
"empty": false,
|
|
1759
|
+
"reason": null
|
|
1760
|
+
},
|
|
1761
|
+
{
|
|
1762
|
+
"field": {
|
|
1763
|
+
"id": "f",
|
|
1764
|
+
"label": "Field",
|
|
1765
|
+
"required": true,
|
|
1766
|
+
"type": "phone",
|
|
1767
|
+
"phoneConfig": {
|
|
1768
|
+
"international": true
|
|
1769
|
+
}
|
|
1770
|
+
},
|
|
1771
|
+
"value": "+1 23",
|
|
1772
|
+
"empty": false,
|
|
1773
|
+
"reason": "format"
|
|
1774
|
+
},
|
|
1775
|
+
{
|
|
1776
|
+
"field": {
|
|
1777
|
+
"id": "f",
|
|
1778
|
+
"label": "Field",
|
|
1779
|
+
"required": true,
|
|
1780
|
+
"type": "url"
|
|
1781
|
+
},
|
|
1782
|
+
"value": {
|
|
1783
|
+
"url": "example.com"
|
|
1784
|
+
},
|
|
1785
|
+
"empty": false,
|
|
1786
|
+
"reason": null
|
|
1787
|
+
},
|
|
1788
|
+
{
|
|
1789
|
+
"field": {
|
|
1790
|
+
"id": "f",
|
|
1791
|
+
"label": "Field",
|
|
1792
|
+
"required": true,
|
|
1793
|
+
"type": "url"
|
|
1794
|
+
},
|
|
1795
|
+
"value": {
|
|
1796
|
+
"url": "https://sub.example.co.uk/x?y=1"
|
|
1797
|
+
},
|
|
1798
|
+
"empty": false,
|
|
1799
|
+
"reason": null
|
|
1800
|
+
},
|
|
1801
|
+
{
|
|
1802
|
+
"field": {
|
|
1803
|
+
"id": "f",
|
|
1804
|
+
"label": "Field",
|
|
1805
|
+
"required": true,
|
|
1806
|
+
"type": "url"
|
|
1807
|
+
},
|
|
1808
|
+
"value": {
|
|
1809
|
+
"url": "notaurl"
|
|
1810
|
+
},
|
|
1811
|
+
"empty": false,
|
|
1812
|
+
"reason": "format"
|
|
1813
|
+
},
|
|
1814
|
+
{
|
|
1815
|
+
"field": {
|
|
1816
|
+
"id": "f",
|
|
1817
|
+
"label": "Field",
|
|
1818
|
+
"required": true,
|
|
1819
|
+
"type": "url"
|
|
1820
|
+
},
|
|
1821
|
+
"value": {
|
|
1822
|
+
"url": ""
|
|
1823
|
+
},
|
|
1824
|
+
"empty": true,
|
|
1825
|
+
"reason": null
|
|
1826
|
+
},
|
|
1827
|
+
{
|
|
1828
|
+
"field": {
|
|
1829
|
+
"id": "f",
|
|
1830
|
+
"label": "Field",
|
|
1831
|
+
"required": true,
|
|
1832
|
+
"type": "url"
|
|
1833
|
+
},
|
|
1834
|
+
"value": "example.com",
|
|
1835
|
+
"empty": true,
|
|
1836
|
+
"reason": "type"
|
|
1837
|
+
},
|
|
1838
|
+
{
|
|
1839
|
+
"field": {
|
|
1840
|
+
"id": "f",
|
|
1841
|
+
"label": "Field",
|
|
1842
|
+
"required": true,
|
|
1843
|
+
"type": "number"
|
|
1844
|
+
},
|
|
1845
|
+
"value": 5,
|
|
1846
|
+
"empty": false,
|
|
1847
|
+
"reason": null
|
|
1848
|
+
},
|
|
1849
|
+
{
|
|
1850
|
+
"field": {
|
|
1851
|
+
"id": "f",
|
|
1852
|
+
"label": "Field",
|
|
1853
|
+
"required": true,
|
|
1854
|
+
"type": "number"
|
|
1855
|
+
},
|
|
1856
|
+
"value": "5",
|
|
1857
|
+
"empty": false,
|
|
1858
|
+
"reason": null
|
|
1859
|
+
},
|
|
1860
|
+
{
|
|
1861
|
+
"field": {
|
|
1862
|
+
"id": "f",
|
|
1863
|
+
"label": "Field",
|
|
1864
|
+
"required": true,
|
|
1865
|
+
"type": "number"
|
|
1866
|
+
},
|
|
1867
|
+
"value": "five",
|
|
1868
|
+
"empty": false,
|
|
1869
|
+
"reason": "type"
|
|
1870
|
+
},
|
|
1871
|
+
{
|
|
1872
|
+
"field": {
|
|
1873
|
+
"id": "f",
|
|
1874
|
+
"label": "Field",
|
|
1875
|
+
"required": true,
|
|
1876
|
+
"type": "number",
|
|
1877
|
+
"allowDecimal": false
|
|
1878
|
+
},
|
|
1879
|
+
"value": 5.5,
|
|
1880
|
+
"empty": false,
|
|
1881
|
+
"reason": "format"
|
|
1882
|
+
},
|
|
1883
|
+
{
|
|
1884
|
+
"field": {
|
|
1885
|
+
"id": "f",
|
|
1886
|
+
"label": "Field",
|
|
1887
|
+
"required": true,
|
|
1888
|
+
"type": "number",
|
|
1889
|
+
"allowNegative": false
|
|
1890
|
+
},
|
|
1891
|
+
"value": -1,
|
|
1892
|
+
"empty": false,
|
|
1893
|
+
"reason": "min"
|
|
1894
|
+
},
|
|
1895
|
+
{
|
|
1896
|
+
"field": {
|
|
1897
|
+
"id": "f",
|
|
1898
|
+
"label": "Field",
|
|
1899
|
+
"required": true,
|
|
1900
|
+
"type": "number",
|
|
1901
|
+
"validation": {
|
|
1902
|
+
"min": 1,
|
|
1903
|
+
"max": 10
|
|
1904
|
+
}
|
|
1905
|
+
},
|
|
1906
|
+
"value": 11,
|
|
1907
|
+
"empty": false,
|
|
1908
|
+
"reason": "max"
|
|
1909
|
+
},
|
|
1910
|
+
{
|
|
1911
|
+
"field": {
|
|
1912
|
+
"id": "f",
|
|
1913
|
+
"label": "Field",
|
|
1914
|
+
"required": true,
|
|
1915
|
+
"type": "number",
|
|
1916
|
+
"validation": {
|
|
1917
|
+
"min": 1,
|
|
1918
|
+
"max": 10
|
|
1919
|
+
}
|
|
1920
|
+
},
|
|
1921
|
+
"value": 0,
|
|
1922
|
+
"empty": false,
|
|
1923
|
+
"reason": "min"
|
|
1924
|
+
},
|
|
1925
|
+
{
|
|
1926
|
+
"field": {
|
|
1927
|
+
"id": "f",
|
|
1928
|
+
"label": "Field",
|
|
1929
|
+
"required": true,
|
|
1930
|
+
"type": "number"
|
|
1931
|
+
},
|
|
1932
|
+
"value": 0,
|
|
1933
|
+
"empty": false,
|
|
1934
|
+
"reason": null
|
|
1935
|
+
},
|
|
1936
|
+
{
|
|
1937
|
+
"field": {
|
|
1938
|
+
"id": "f",
|
|
1939
|
+
"label": "Field",
|
|
1940
|
+
"required": true,
|
|
1941
|
+
"type": "slider",
|
|
1942
|
+
"sliderConfig": {
|
|
1943
|
+
"min": 0,
|
|
1944
|
+
"max": 50
|
|
1945
|
+
}
|
|
1946
|
+
},
|
|
1947
|
+
"value": 60,
|
|
1948
|
+
"empty": false,
|
|
1949
|
+
"reason": "max"
|
|
1950
|
+
},
|
|
1951
|
+
{
|
|
1952
|
+
"field": {
|
|
1953
|
+
"id": "f",
|
|
1954
|
+
"label": "Field",
|
|
1955
|
+
"required": true,
|
|
1956
|
+
"type": "star_rating"
|
|
1957
|
+
},
|
|
1958
|
+
"value": 0,
|
|
1959
|
+
"empty": true,
|
|
1960
|
+
"reason": null
|
|
1961
|
+
},
|
|
1962
|
+
{
|
|
1963
|
+
"field": {
|
|
1964
|
+
"id": "f",
|
|
1965
|
+
"label": "Field",
|
|
1966
|
+
"required": true,
|
|
1967
|
+
"type": "star_rating"
|
|
1968
|
+
},
|
|
1969
|
+
"value": 4,
|
|
1970
|
+
"empty": false,
|
|
1971
|
+
"reason": null
|
|
1972
|
+
},
|
|
1973
|
+
{
|
|
1974
|
+
"field": {
|
|
1975
|
+
"id": "f",
|
|
1976
|
+
"label": "Field",
|
|
1977
|
+
"required": true,
|
|
1978
|
+
"type": "star_rating",
|
|
1979
|
+
"starRatingConfig": {
|
|
1980
|
+
"maxStars": 3
|
|
1981
|
+
}
|
|
1982
|
+
},
|
|
1983
|
+
"value": 4,
|
|
1984
|
+
"empty": false,
|
|
1985
|
+
"reason": "max"
|
|
1986
|
+
},
|
|
1987
|
+
{
|
|
1988
|
+
"field": {
|
|
1989
|
+
"id": "f",
|
|
1990
|
+
"label": "Field",
|
|
1991
|
+
"required": true,
|
|
1992
|
+
"type": "happiness_rating"
|
|
1993
|
+
},
|
|
1994
|
+
"value": 0,
|
|
1995
|
+
"empty": false,
|
|
1996
|
+
"reason": null
|
|
1997
|
+
},
|
|
1998
|
+
{
|
|
1999
|
+
"field": {
|
|
2000
|
+
"id": "f",
|
|
2001
|
+
"label": "Field",
|
|
2002
|
+
"required": true,
|
|
2003
|
+
"type": "happiness_rating"
|
|
2004
|
+
},
|
|
2005
|
+
"value": 3,
|
|
2006
|
+
"empty": false,
|
|
2007
|
+
"reason": null
|
|
2008
|
+
},
|
|
2009
|
+
{
|
|
2010
|
+
"field": {
|
|
2011
|
+
"id": "f",
|
|
2012
|
+
"label": "Field",
|
|
2013
|
+
"required": true,
|
|
2014
|
+
"type": "happiness_rating"
|
|
2015
|
+
},
|
|
2016
|
+
"value": 4,
|
|
2017
|
+
"empty": false,
|
|
2018
|
+
"reason": null
|
|
2019
|
+
},
|
|
2020
|
+
{
|
|
2021
|
+
"field": {
|
|
2022
|
+
"id": "f",
|
|
2023
|
+
"label": "Field",
|
|
2024
|
+
"required": true,
|
|
2025
|
+
"type": "happiness_rating"
|
|
2026
|
+
},
|
|
2027
|
+
"value": 5,
|
|
2028
|
+
"empty": false,
|
|
2029
|
+
"reason": "options"
|
|
2030
|
+
},
|
|
2031
|
+
{
|
|
2032
|
+
"field": {
|
|
2033
|
+
"id": "f",
|
|
2034
|
+
"label": "Field",
|
|
2035
|
+
"required": true,
|
|
2036
|
+
"type": "happiness_rating"
|
|
2037
|
+
},
|
|
2038
|
+
"value": -1,
|
|
2039
|
+
"empty": false,
|
|
2040
|
+
"reason": "options"
|
|
2041
|
+
},
|
|
2042
|
+
{
|
|
2043
|
+
"field": {
|
|
2044
|
+
"id": "f",
|
|
2045
|
+
"label": "Field",
|
|
2046
|
+
"required": true,
|
|
2047
|
+
"type": "happiness_rating"
|
|
2048
|
+
},
|
|
2049
|
+
"value": 2.5,
|
|
2050
|
+
"empty": false,
|
|
2051
|
+
"reason": "options"
|
|
2052
|
+
},
|
|
2053
|
+
{
|
|
2054
|
+
"field": {
|
|
2055
|
+
"id": "f",
|
|
2056
|
+
"label": "Field",
|
|
2057
|
+
"required": true,
|
|
2058
|
+
"type": "happiness_rating"
|
|
2059
|
+
},
|
|
2060
|
+
"value": "3",
|
|
2061
|
+
"empty": true,
|
|
2062
|
+
"reason": "type"
|
|
2063
|
+
},
|
|
2064
|
+
{
|
|
2065
|
+
"field": {
|
|
2066
|
+
"id": "f",
|
|
2067
|
+
"label": "Field",
|
|
2068
|
+
"required": true,
|
|
2069
|
+
"type": "boolean"
|
|
2070
|
+
},
|
|
2071
|
+
"value": false,
|
|
2072
|
+
"empty": false,
|
|
2073
|
+
"reason": null
|
|
2074
|
+
},
|
|
2075
|
+
{
|
|
2076
|
+
"field": {
|
|
2077
|
+
"id": "f",
|
|
2078
|
+
"label": "Field",
|
|
2079
|
+
"required": true,
|
|
2080
|
+
"type": "boolean"
|
|
2081
|
+
},
|
|
2082
|
+
"value": "yes",
|
|
2083
|
+
"empty": true,
|
|
2084
|
+
"reason": "type"
|
|
2085
|
+
},
|
|
2086
|
+
{
|
|
2087
|
+
"field": {
|
|
2088
|
+
"id": "f",
|
|
2089
|
+
"label": "Field",
|
|
2090
|
+
"required": true,
|
|
2091
|
+
"type": "boolean",
|
|
2092
|
+
"mustBeTrue": true
|
|
2093
|
+
},
|
|
2094
|
+
"value": false,
|
|
2095
|
+
"empty": true,
|
|
2096
|
+
"reason": null
|
|
2097
|
+
},
|
|
2098
|
+
{
|
|
2099
|
+
"field": {
|
|
2100
|
+
"id": "f",
|
|
2101
|
+
"label": "Field",
|
|
2102
|
+
"required": true,
|
|
2103
|
+
"type": "boolean",
|
|
2104
|
+
"mustBeTrue": true
|
|
2105
|
+
},
|
|
2106
|
+
"value": true,
|
|
2107
|
+
"empty": false,
|
|
2108
|
+
"reason": null
|
|
2109
|
+
},
|
|
2110
|
+
{
|
|
2111
|
+
"field": {
|
|
2112
|
+
"id": "f",
|
|
2113
|
+
"label": "Field",
|
|
2114
|
+
"required": true,
|
|
2115
|
+
"type": "select",
|
|
2116
|
+
"options": [
|
|
2117
|
+
"A",
|
|
2118
|
+
"B"
|
|
2119
|
+
]
|
|
2120
|
+
},
|
|
2121
|
+
"value": "A",
|
|
2122
|
+
"empty": false,
|
|
2123
|
+
"reason": null
|
|
2124
|
+
},
|
|
2125
|
+
{
|
|
2126
|
+
"field": {
|
|
2127
|
+
"id": "f",
|
|
2128
|
+
"label": "Field",
|
|
2129
|
+
"required": true,
|
|
2130
|
+
"type": "select",
|
|
2131
|
+
"options": [
|
|
2132
|
+
"A",
|
|
2133
|
+
"B"
|
|
2134
|
+
]
|
|
2135
|
+
},
|
|
2136
|
+
"value": "C",
|
|
2137
|
+
"empty": false,
|
|
2138
|
+
"reason": "options"
|
|
2139
|
+
},
|
|
2140
|
+
{
|
|
2141
|
+
"field": {
|
|
2142
|
+
"id": "f",
|
|
2143
|
+
"label": "Field",
|
|
2144
|
+
"required": true,
|
|
2145
|
+
"type": "select",
|
|
2146
|
+
"options": [
|
|
2147
|
+
"A",
|
|
2148
|
+
"B"
|
|
2149
|
+
],
|
|
2150
|
+
"allowCustom": true
|
|
2151
|
+
},
|
|
2152
|
+
"value": "C",
|
|
2153
|
+
"empty": false,
|
|
2154
|
+
"reason": null
|
|
2155
|
+
},
|
|
2156
|
+
{
|
|
2157
|
+
"field": {
|
|
2158
|
+
"id": "f",
|
|
2159
|
+
"label": "Field",
|
|
2160
|
+
"required": true,
|
|
2161
|
+
"type": "radio",
|
|
2162
|
+
"options": [
|
|
2163
|
+
"A",
|
|
2164
|
+
"B"
|
|
2165
|
+
]
|
|
2166
|
+
},
|
|
2167
|
+
"value": 1,
|
|
2168
|
+
"empty": false,
|
|
2169
|
+
"reason": "type"
|
|
2170
|
+
},
|
|
2171
|
+
{
|
|
2172
|
+
"field": {
|
|
2173
|
+
"id": "f",
|
|
2174
|
+
"label": "Field",
|
|
2175
|
+
"required": true,
|
|
2176
|
+
"type": "checkbox",
|
|
2177
|
+
"options": [
|
|
2178
|
+
"A",
|
|
2179
|
+
"B"
|
|
2180
|
+
]
|
|
2181
|
+
},
|
|
2182
|
+
"value": [
|
|
2183
|
+
"A"
|
|
2184
|
+
],
|
|
2185
|
+
"empty": false,
|
|
2186
|
+
"reason": null
|
|
2187
|
+
},
|
|
2188
|
+
{
|
|
2189
|
+
"field": {
|
|
2190
|
+
"id": "f",
|
|
2191
|
+
"label": "Field",
|
|
2192
|
+
"required": true,
|
|
2193
|
+
"type": "checkbox",
|
|
2194
|
+
"options": [
|
|
2195
|
+
"A",
|
|
2196
|
+
"B"
|
|
2197
|
+
]
|
|
2198
|
+
},
|
|
2199
|
+
"value": [],
|
|
2200
|
+
"empty": true,
|
|
2201
|
+
"reason": null
|
|
2202
|
+
},
|
|
2203
|
+
{
|
|
2204
|
+
"field": {
|
|
2205
|
+
"id": "f",
|
|
2206
|
+
"label": "Field",
|
|
2207
|
+
"required": true,
|
|
2208
|
+
"type": "checkbox",
|
|
2209
|
+
"options": [
|
|
2210
|
+
"A",
|
|
2211
|
+
"B"
|
|
2212
|
+
]
|
|
2213
|
+
},
|
|
2214
|
+
"value": [
|
|
2215
|
+
"Z"
|
|
2216
|
+
],
|
|
2217
|
+
"empty": false,
|
|
2218
|
+
"reason": "options"
|
|
2219
|
+
},
|
|
2220
|
+
{
|
|
2221
|
+
"field": {
|
|
2222
|
+
"id": "f",
|
|
2223
|
+
"label": "Field",
|
|
2224
|
+
"required": true,
|
|
2225
|
+
"type": "checkbox",
|
|
2226
|
+
"options": [
|
|
2227
|
+
"A",
|
|
2228
|
+
"B"
|
|
2229
|
+
]
|
|
2230
|
+
},
|
|
2231
|
+
"value": "A",
|
|
2232
|
+
"empty": true,
|
|
2233
|
+
"reason": "type"
|
|
2234
|
+
},
|
|
2235
|
+
{
|
|
2236
|
+
"field": {
|
|
2237
|
+
"id": "f",
|
|
2238
|
+
"label": "Field",
|
|
2239
|
+
"required": true,
|
|
2240
|
+
"type": "tags"
|
|
2241
|
+
},
|
|
2242
|
+
"value": [
|
|
2243
|
+
"x",
|
|
2244
|
+
"y"
|
|
2245
|
+
],
|
|
2246
|
+
"empty": false,
|
|
2247
|
+
"reason": null
|
|
2248
|
+
},
|
|
2249
|
+
{
|
|
2250
|
+
"field": {
|
|
2251
|
+
"id": "f",
|
|
2252
|
+
"label": "Field",
|
|
2253
|
+
"required": true,
|
|
2254
|
+
"type": "tags"
|
|
2255
|
+
},
|
|
2256
|
+
"value": [
|
|
2257
|
+
1
|
|
2258
|
+
],
|
|
2259
|
+
"empty": false,
|
|
2260
|
+
"reason": "type"
|
|
2261
|
+
},
|
|
2262
|
+
{
|
|
2263
|
+
"field": {
|
|
2264
|
+
"id": "f",
|
|
2265
|
+
"label": "Field",
|
|
2266
|
+
"required": true,
|
|
2267
|
+
"type": "color_picker"
|
|
2268
|
+
},
|
|
2269
|
+
"value": "#ABC",
|
|
2270
|
+
"empty": false,
|
|
2271
|
+
"reason": null
|
|
2272
|
+
},
|
|
2273
|
+
{
|
|
2274
|
+
"field": {
|
|
2275
|
+
"id": "f",
|
|
2276
|
+
"label": "Field",
|
|
2277
|
+
"required": true,
|
|
2278
|
+
"type": "color_picker"
|
|
2279
|
+
},
|
|
2280
|
+
"value": "#abcdef",
|
|
2281
|
+
"empty": false,
|
|
2282
|
+
"reason": null
|
|
2283
|
+
},
|
|
2284
|
+
{
|
|
2285
|
+
"field": {
|
|
2286
|
+
"id": "f",
|
|
2287
|
+
"label": "Field",
|
|
2288
|
+
"required": true,
|
|
2289
|
+
"type": "color_picker"
|
|
2290
|
+
},
|
|
2291
|
+
"value": "blue",
|
|
2292
|
+
"empty": false,
|
|
2293
|
+
"reason": "format"
|
|
2294
|
+
},
|
|
2295
|
+
{
|
|
2296
|
+
"field": {
|
|
2297
|
+
"id": "f",
|
|
2298
|
+
"label": "Field",
|
|
2299
|
+
"required": true,
|
|
2300
|
+
"type": "icon_select"
|
|
2301
|
+
},
|
|
2302
|
+
"value": "cloud-sun",
|
|
2303
|
+
"empty": false,
|
|
2304
|
+
"reason": null
|
|
2305
|
+
},
|
|
2306
|
+
{
|
|
2307
|
+
"field": {
|
|
2308
|
+
"id": "f",
|
|
2309
|
+
"label": "Field",
|
|
2310
|
+
"required": true,
|
|
2311
|
+
"type": "icon_select"
|
|
2312
|
+
},
|
|
2313
|
+
"value": "Cloud Sun",
|
|
2314
|
+
"empty": false,
|
|
2315
|
+
"reason": "format"
|
|
2316
|
+
},
|
|
2317
|
+
{
|
|
2318
|
+
"field": {
|
|
2319
|
+
"id": "f",
|
|
2320
|
+
"label": "Field",
|
|
2321
|
+
"required": true,
|
|
2322
|
+
"type": "icon_select",
|
|
2323
|
+
"iconConfig": {
|
|
2324
|
+
"allowedIcons": [
|
|
2325
|
+
"star"
|
|
2326
|
+
]
|
|
2327
|
+
}
|
|
2328
|
+
},
|
|
2329
|
+
"value": "heart",
|
|
2330
|
+
"empty": false,
|
|
2331
|
+
"reason": "options"
|
|
2332
|
+
},
|
|
2333
|
+
{
|
|
2334
|
+
"field": {
|
|
2335
|
+
"id": "f",
|
|
2336
|
+
"label": "Field",
|
|
2337
|
+
"required": true,
|
|
2338
|
+
"type": "image_input"
|
|
2339
|
+
},
|
|
2340
|
+
"value": "https://cdn.example.com/a.png",
|
|
2341
|
+
"empty": false,
|
|
2342
|
+
"reason": null
|
|
2343
|
+
},
|
|
2344
|
+
{
|
|
2345
|
+
"field": {
|
|
2346
|
+
"id": "f",
|
|
2347
|
+
"label": "Field",
|
|
2348
|
+
"required": true,
|
|
2349
|
+
"type": "image_input"
|
|
2350
|
+
},
|
|
2351
|
+
"value": "not a url",
|
|
2352
|
+
"empty": false,
|
|
2353
|
+
"reason": "format"
|
|
2354
|
+
},
|
|
2355
|
+
{
|
|
2356
|
+
"field": {
|
|
2357
|
+
"id": "f",
|
|
2358
|
+
"label": "Field",
|
|
2359
|
+
"required": true,
|
|
2360
|
+
"type": "choice_cards",
|
|
2361
|
+
"choiceConfig": {
|
|
2362
|
+
"options": [
|
|
2363
|
+
{
|
|
2364
|
+
"label": "Basic"
|
|
2365
|
+
},
|
|
2366
|
+
{
|
|
2367
|
+
"label": "Pro"
|
|
2368
|
+
}
|
|
2369
|
+
]
|
|
2370
|
+
}
|
|
2371
|
+
},
|
|
2372
|
+
"value": "Pro",
|
|
2373
|
+
"empty": false,
|
|
2374
|
+
"reason": null
|
|
2375
|
+
},
|
|
2376
|
+
{
|
|
2377
|
+
"field": {
|
|
2378
|
+
"id": "f",
|
|
2379
|
+
"label": "Field",
|
|
2380
|
+
"required": true,
|
|
2381
|
+
"type": "choice_cards",
|
|
2382
|
+
"choiceConfig": {
|
|
2383
|
+
"options": [
|
|
2384
|
+
{
|
|
2385
|
+
"label": "Basic"
|
|
2386
|
+
}
|
|
2387
|
+
]
|
|
2388
|
+
}
|
|
2389
|
+
},
|
|
2390
|
+
"value": "Gold",
|
|
2391
|
+
"empty": false,
|
|
2392
|
+
"reason": "options"
|
|
2393
|
+
},
|
|
2394
|
+
{
|
|
2395
|
+
"field": {
|
|
2396
|
+
"id": "f",
|
|
2397
|
+
"label": "Field",
|
|
2398
|
+
"required": true,
|
|
2399
|
+
"type": "choice_cards",
|
|
2400
|
+
"choiceConfig": {
|
|
2401
|
+
"mode": "multi",
|
|
2402
|
+
"options": [
|
|
2403
|
+
{
|
|
2404
|
+
"label": "A"
|
|
2405
|
+
}
|
|
2406
|
+
]
|
|
2407
|
+
}
|
|
2408
|
+
},
|
|
2409
|
+
"value": [
|
|
2410
|
+
"A"
|
|
2411
|
+
],
|
|
2412
|
+
"empty": false,
|
|
2413
|
+
"reason": null
|
|
2414
|
+
},
|
|
2415
|
+
{
|
|
2416
|
+
"field": {
|
|
2417
|
+
"id": "f",
|
|
2418
|
+
"label": "Field",
|
|
2419
|
+
"required": true,
|
|
2420
|
+
"type": "choice_cards",
|
|
2421
|
+
"choiceConfig": {
|
|
2422
|
+
"mode": "multi",
|
|
2423
|
+
"options": [
|
|
2424
|
+
{
|
|
2425
|
+
"label": "A"
|
|
2426
|
+
}
|
|
2427
|
+
]
|
|
2428
|
+
}
|
|
2429
|
+
},
|
|
2430
|
+
"value": [],
|
|
2431
|
+
"empty": true,
|
|
2432
|
+
"reason": null
|
|
2433
|
+
},
|
|
2434
|
+
{
|
|
2435
|
+
"field": {
|
|
2436
|
+
"id": "f",
|
|
2437
|
+
"label": "Field",
|
|
2438
|
+
"required": true,
|
|
2439
|
+
"type": "currency"
|
|
2440
|
+
},
|
|
2441
|
+
"value": 12.5,
|
|
2442
|
+
"empty": false,
|
|
2443
|
+
"reason": null
|
|
2444
|
+
},
|
|
2445
|
+
{
|
|
2446
|
+
"field": {
|
|
2447
|
+
"id": "f",
|
|
2448
|
+
"label": "Field",
|
|
2449
|
+
"required": true,
|
|
2450
|
+
"type": "currency"
|
|
2451
|
+
},
|
|
2452
|
+
"value": -1,
|
|
2453
|
+
"empty": false,
|
|
2454
|
+
"reason": "format"
|
|
2455
|
+
},
|
|
2456
|
+
{
|
|
2457
|
+
"field": {
|
|
2458
|
+
"id": "f",
|
|
2459
|
+
"label": "Field",
|
|
2460
|
+
"required": true,
|
|
2461
|
+
"type": "currency",
|
|
2462
|
+
"currencyConfig": {
|
|
2463
|
+
"allowNegative": true
|
|
2464
|
+
}
|
|
2465
|
+
},
|
|
2466
|
+
"value": -1,
|
|
2467
|
+
"empty": false,
|
|
2468
|
+
"reason": null
|
|
2469
|
+
},
|
|
2470
|
+
{
|
|
2471
|
+
"field": {
|
|
2472
|
+
"id": "f",
|
|
2473
|
+
"label": "Field",
|
|
2474
|
+
"required": true,
|
|
2475
|
+
"type": "currency",
|
|
2476
|
+
"currencyConfig": {
|
|
2477
|
+
"allowDecimal": false
|
|
2478
|
+
}
|
|
2479
|
+
},
|
|
2480
|
+
"value": 1.5,
|
|
2481
|
+
"empty": false,
|
|
2482
|
+
"reason": "format"
|
|
2483
|
+
},
|
|
2484
|
+
{
|
|
2485
|
+
"field": {
|
|
2486
|
+
"id": "f",
|
|
2487
|
+
"label": "Field",
|
|
2488
|
+
"required": true,
|
|
2489
|
+
"type": "currency"
|
|
2490
|
+
},
|
|
2491
|
+
"value": "12",
|
|
2492
|
+
"empty": false,
|
|
2493
|
+
"reason": "type"
|
|
2494
|
+
},
|
|
2495
|
+
{
|
|
2496
|
+
"field": {
|
|
2497
|
+
"id": "f",
|
|
2498
|
+
"label": "Field",
|
|
2499
|
+
"required": true,
|
|
2500
|
+
"type": "measurement",
|
|
2501
|
+
"unitConfig": {
|
|
2502
|
+
"category": "length"
|
|
2503
|
+
}
|
|
2504
|
+
},
|
|
2505
|
+
"value": {
|
|
2506
|
+
"value": 3,
|
|
2507
|
+
"unit": "ft"
|
|
2508
|
+
},
|
|
2509
|
+
"empty": false,
|
|
2510
|
+
"reason": null
|
|
2511
|
+
},
|
|
2512
|
+
{
|
|
2513
|
+
"field": {
|
|
2514
|
+
"id": "f",
|
|
2515
|
+
"label": "Field",
|
|
2516
|
+
"required": true,
|
|
2517
|
+
"type": "measurement",
|
|
2518
|
+
"unitConfig": {
|
|
2519
|
+
"category": "length"
|
|
2520
|
+
}
|
|
2521
|
+
},
|
|
2522
|
+
"value": {
|
|
2523
|
+
"value": 3,
|
|
2524
|
+
"unit": "kg"
|
|
2525
|
+
},
|
|
2526
|
+
"empty": false,
|
|
2527
|
+
"reason": "options"
|
|
2528
|
+
},
|
|
2529
|
+
{
|
|
2530
|
+
"field": {
|
|
2531
|
+
"id": "f",
|
|
2532
|
+
"label": "Field",
|
|
2533
|
+
"required": true,
|
|
2534
|
+
"type": "measurement",
|
|
2535
|
+
"unitConfig": {
|
|
2536
|
+
"category": "length"
|
|
2537
|
+
}
|
|
2538
|
+
},
|
|
2539
|
+
"value": {
|
|
2540
|
+
"value": "",
|
|
2541
|
+
"unit": "ft"
|
|
2542
|
+
},
|
|
2543
|
+
"empty": true,
|
|
2544
|
+
"reason": null
|
|
2545
|
+
},
|
|
2546
|
+
{
|
|
2547
|
+
"field": {
|
|
2548
|
+
"id": "f",
|
|
2549
|
+
"label": "Field",
|
|
2550
|
+
"required": true,
|
|
2551
|
+
"type": "measurement",
|
|
2552
|
+
"unitConfig": {
|
|
2553
|
+
"category": "length",
|
|
2554
|
+
"allowDecimal": false
|
|
2555
|
+
}
|
|
2556
|
+
},
|
|
2557
|
+
"value": {
|
|
2558
|
+
"value": 1.5,
|
|
2559
|
+
"unit": "m"
|
|
2560
|
+
},
|
|
2561
|
+
"empty": false,
|
|
2562
|
+
"reason": "format"
|
|
2563
|
+
},
|
|
2564
|
+
{
|
|
2565
|
+
"field": {
|
|
2566
|
+
"id": "f",
|
|
2567
|
+
"label": "Field",
|
|
2568
|
+
"required": true,
|
|
2569
|
+
"type": "date_range"
|
|
2570
|
+
},
|
|
2571
|
+
"value": {
|
|
2572
|
+
"start": "2024-01-01",
|
|
2573
|
+
"end": "2024-01-05"
|
|
2574
|
+
},
|
|
2575
|
+
"empty": false,
|
|
2576
|
+
"reason": null
|
|
2577
|
+
},
|
|
2578
|
+
{
|
|
2579
|
+
"field": {
|
|
2580
|
+
"id": "f",
|
|
2581
|
+
"label": "Field",
|
|
2582
|
+
"required": true,
|
|
2583
|
+
"type": "date_range"
|
|
2584
|
+
},
|
|
2585
|
+
"value": {
|
|
2586
|
+
"start": "2024-01-01",
|
|
2587
|
+
"end": ""
|
|
2588
|
+
},
|
|
2589
|
+
"empty": true,
|
|
2590
|
+
"reason": null
|
|
2591
|
+
},
|
|
2592
|
+
{
|
|
2593
|
+
"field": {
|
|
2594
|
+
"id": "f",
|
|
2595
|
+
"label": "Field",
|
|
2596
|
+
"required": true,
|
|
2597
|
+
"type": "time_picker"
|
|
2598
|
+
},
|
|
2599
|
+
"value": "09:30",
|
|
2600
|
+
"empty": false,
|
|
2601
|
+
"reason": null
|
|
2602
|
+
},
|
|
2603
|
+
{
|
|
2604
|
+
"field": {
|
|
2605
|
+
"id": "f",
|
|
2606
|
+
"label": "Field",
|
|
2607
|
+
"required": true,
|
|
2608
|
+
"type": "time_picker",
|
|
2609
|
+
"timeConfig": {
|
|
2610
|
+
"mode": "time_block"
|
|
2611
|
+
}
|
|
2612
|
+
},
|
|
2613
|
+
"value": {
|
|
2614
|
+
"start": "09:00",
|
|
2615
|
+
"end": ""
|
|
2616
|
+
},
|
|
2617
|
+
"empty": true,
|
|
2618
|
+
"reason": null
|
|
2619
|
+
},
|
|
2620
|
+
{
|
|
2621
|
+
"field": {
|
|
2622
|
+
"id": "f",
|
|
2623
|
+
"label": "Field",
|
|
2624
|
+
"required": true,
|
|
2625
|
+
"type": "time_picker",
|
|
2626
|
+
"timeConfig": {
|
|
2627
|
+
"mode": "appointment"
|
|
2628
|
+
}
|
|
2629
|
+
},
|
|
2630
|
+
"value": {
|
|
2631
|
+
"date": "2024-01-01",
|
|
2632
|
+
"time": "10:00"
|
|
2633
|
+
},
|
|
2634
|
+
"empty": false,
|
|
2635
|
+
"reason": null
|
|
2636
|
+
},
|
|
2637
|
+
{
|
|
2638
|
+
"field": {
|
|
2639
|
+
"id": "f",
|
|
2640
|
+
"label": "Field",
|
|
2641
|
+
"required": true,
|
|
2642
|
+
"type": "address"
|
|
2643
|
+
},
|
|
2644
|
+
"value": {
|
|
2645
|
+
"line1": "1 Main",
|
|
2646
|
+
"city": "Austin",
|
|
2647
|
+
"state": "TX",
|
|
2648
|
+
"zip": "78701"
|
|
2649
|
+
},
|
|
2650
|
+
"empty": false,
|
|
2651
|
+
"reason": null
|
|
2652
|
+
},
|
|
2653
|
+
{
|
|
2654
|
+
"field": {
|
|
2655
|
+
"id": "f",
|
|
2656
|
+
"label": "Field",
|
|
2657
|
+
"required": true,
|
|
2658
|
+
"type": "address"
|
|
2659
|
+
},
|
|
2660
|
+
"value": {
|
|
2661
|
+
"line1": "1 Main",
|
|
2662
|
+
"city": "Austin",
|
|
2663
|
+
"state": "TX",
|
|
2664
|
+
"zip": "7870"
|
|
2665
|
+
},
|
|
2666
|
+
"empty": false,
|
|
2667
|
+
"reason": "format"
|
|
2668
|
+
},
|
|
2669
|
+
{
|
|
2670
|
+
"field": {
|
|
2671
|
+
"id": "f",
|
|
2672
|
+
"label": "Field",
|
|
2673
|
+
"required": true,
|
|
2674
|
+
"type": "address"
|
|
2675
|
+
},
|
|
2676
|
+
"value": {
|
|
2677
|
+
"line1": "1 Main",
|
|
2678
|
+
"city": "",
|
|
2679
|
+
"state": "TX",
|
|
2680
|
+
"zip": "78701-1234"
|
|
2681
|
+
},
|
|
2682
|
+
"empty": true,
|
|
2683
|
+
"reason": null
|
|
2684
|
+
},
|
|
2685
|
+
{
|
|
2686
|
+
"field": {
|
|
2687
|
+
"id": "f",
|
|
2688
|
+
"label": "Field",
|
|
2689
|
+
"required": true,
|
|
2690
|
+
"type": "address"
|
|
2691
|
+
},
|
|
2692
|
+
"value": {
|
|
2693
|
+
"line1": "",
|
|
2694
|
+
"line2": "",
|
|
2695
|
+
"city": "",
|
|
2696
|
+
"state": "",
|
|
2697
|
+
"zip": ""
|
|
2698
|
+
},
|
|
2699
|
+
"empty": true,
|
|
2700
|
+
"reason": null
|
|
2701
|
+
},
|
|
2702
|
+
{
|
|
2703
|
+
"field": {
|
|
2704
|
+
"id": "f",
|
|
2705
|
+
"label": "Field",
|
|
2706
|
+
"required": true,
|
|
2707
|
+
"type": "address"
|
|
2708
|
+
},
|
|
2709
|
+
"value": {
|
|
2710
|
+
"line1": "1 Main",
|
|
2711
|
+
"city": "Austin",
|
|
2712
|
+
"state": "TX",
|
|
2713
|
+
"zip": " "
|
|
2714
|
+
},
|
|
2715
|
+
"empty": false,
|
|
2716
|
+
"reason": null
|
|
2717
|
+
},
|
|
2718
|
+
{
|
|
2719
|
+
"field": {
|
|
2720
|
+
"id": "f",
|
|
2721
|
+
"label": "Field",
|
|
2722
|
+
"required": true,
|
|
2723
|
+
"type": "name"
|
|
2724
|
+
},
|
|
2725
|
+
"value": {
|
|
2726
|
+
"first": "Ada",
|
|
2727
|
+
"last": "Lovelace"
|
|
2728
|
+
},
|
|
2729
|
+
"empty": false,
|
|
2730
|
+
"reason": null
|
|
2731
|
+
},
|
|
2732
|
+
{
|
|
2733
|
+
"field": {
|
|
2734
|
+
"id": "f",
|
|
2735
|
+
"label": "Field",
|
|
2736
|
+
"required": true,
|
|
2737
|
+
"type": "name"
|
|
2738
|
+
},
|
|
2739
|
+
"value": {
|
|
2740
|
+
"first": "Ada",
|
|
2741
|
+
"last": " "
|
|
2742
|
+
},
|
|
2743
|
+
"empty": true,
|
|
2744
|
+
"reason": null
|
|
2745
|
+
},
|
|
2746
|
+
{
|
|
2747
|
+
"field": {
|
|
2748
|
+
"id": "f",
|
|
2749
|
+
"label": "Field",
|
|
2750
|
+
"required": true,
|
|
2751
|
+
"type": "name"
|
|
2752
|
+
},
|
|
2753
|
+
"value": {
|
|
2754
|
+
"first": "Ada",
|
|
2755
|
+
"nickname": "x"
|
|
2756
|
+
},
|
|
2757
|
+
"empty": true,
|
|
2758
|
+
"reason": "options"
|
|
2759
|
+
},
|
|
2760
|
+
{
|
|
2761
|
+
"field": {
|
|
2762
|
+
"id": "f",
|
|
2763
|
+
"label": "Field",
|
|
2764
|
+
"required": true,
|
|
2765
|
+
"type": "name"
|
|
2766
|
+
},
|
|
2767
|
+
"value": {
|
|
2768
|
+
"first": "Ada",
|
|
2769
|
+
"last": "L",
|
|
2770
|
+
"nicknames": "Countess, Ada"
|
|
2771
|
+
},
|
|
2772
|
+
"empty": false,
|
|
2773
|
+
"reason": null
|
|
2774
|
+
},
|
|
2775
|
+
{
|
|
2776
|
+
"field": {
|
|
2777
|
+
"id": "f",
|
|
2778
|
+
"label": "Field",
|
|
2779
|
+
"required": true,
|
|
2780
|
+
"type": "schedule"
|
|
2781
|
+
},
|
|
2782
|
+
"value": {
|
|
2783
|
+
"asap": true
|
|
2784
|
+
},
|
|
2785
|
+
"empty": false,
|
|
2786
|
+
"reason": null
|
|
2787
|
+
},
|
|
2788
|
+
{
|
|
2789
|
+
"field": {
|
|
2790
|
+
"id": "f",
|
|
2791
|
+
"label": "Field",
|
|
2792
|
+
"required": true,
|
|
2793
|
+
"type": "schedule"
|
|
2794
|
+
},
|
|
2795
|
+
"value": {
|
|
2796
|
+
"days": [],
|
|
2797
|
+
"times": []
|
|
2798
|
+
},
|
|
2799
|
+
"empty": true,
|
|
2800
|
+
"reason": null
|
|
2801
|
+
},
|
|
2802
|
+
{
|
|
2803
|
+
"field": {
|
|
2804
|
+
"id": "f",
|
|
2805
|
+
"label": "Field",
|
|
2806
|
+
"required": true,
|
|
2807
|
+
"type": "schedule"
|
|
2808
|
+
},
|
|
2809
|
+
"value": {
|
|
2810
|
+
"slotStartAt": "2024-03-01T10:00:00Z"
|
|
2811
|
+
},
|
|
2812
|
+
"empty": false,
|
|
2813
|
+
"reason": null
|
|
2814
|
+
},
|
|
2815
|
+
{
|
|
2816
|
+
"field": {
|
|
2817
|
+
"id": "f",
|
|
2818
|
+
"label": "Field",
|
|
2819
|
+
"required": true,
|
|
2820
|
+
"type": "schedule"
|
|
2821
|
+
},
|
|
2822
|
+
"value": {
|
|
2823
|
+
"slotStartAt": "garbage"
|
|
2824
|
+
},
|
|
2825
|
+
"empty": false,
|
|
2826
|
+
"reason": "format"
|
|
2827
|
+
},
|
|
2828
|
+
{
|
|
2829
|
+
"field": {
|
|
2830
|
+
"id": "f",
|
|
2831
|
+
"label": "Field",
|
|
2832
|
+
"required": true,
|
|
2833
|
+
"type": "file_upload",
|
|
2834
|
+
"fileConfig": {
|
|
2835
|
+
"maxFiles": 1
|
|
2836
|
+
}
|
|
2837
|
+
},
|
|
2838
|
+
"value": [
|
|
2839
|
+
{
|
|
2840
|
+
"storageId": "s",
|
|
2841
|
+
"url": "u",
|
|
2842
|
+
"name": "n",
|
|
2843
|
+
"mimeType": "m",
|
|
2844
|
+
"size": 1
|
|
2845
|
+
}
|
|
2846
|
+
],
|
|
2847
|
+
"empty": false,
|
|
2848
|
+
"reason": null
|
|
2849
|
+
},
|
|
2850
|
+
{
|
|
2851
|
+
"field": {
|
|
2852
|
+
"id": "f",
|
|
2853
|
+
"label": "Field",
|
|
2854
|
+
"required": true,
|
|
2855
|
+
"type": "file_upload",
|
|
2856
|
+
"fileConfig": {
|
|
2857
|
+
"maxFiles": 1
|
|
2858
|
+
}
|
|
2859
|
+
},
|
|
2860
|
+
"value": [
|
|
2861
|
+
{
|
|
2862
|
+
"storageId": "s"
|
|
2863
|
+
},
|
|
2864
|
+
{
|
|
2865
|
+
"storageId": "t"
|
|
2866
|
+
}
|
|
2867
|
+
],
|
|
2868
|
+
"empty": false,
|
|
2869
|
+
"reason": "max"
|
|
2870
|
+
},
|
|
2871
|
+
{
|
|
2872
|
+
"field": {
|
|
2873
|
+
"id": "f",
|
|
2874
|
+
"label": "Field",
|
|
2875
|
+
"required": true,
|
|
2876
|
+
"type": "file_upload"
|
|
2877
|
+
},
|
|
2878
|
+
"value": [],
|
|
2879
|
+
"empty": true,
|
|
2880
|
+
"reason": null
|
|
2881
|
+
},
|
|
2882
|
+
{
|
|
2883
|
+
"field": {
|
|
2884
|
+
"id": "f",
|
|
2885
|
+
"label": "Field",
|
|
2886
|
+
"required": true,
|
|
2887
|
+
"type": "textarea"
|
|
2888
|
+
},
|
|
2889
|
+
"value": "xxxxxxxxxx",
|
|
2890
|
+
"empty": false,
|
|
2891
|
+
"reason": null
|
|
2892
|
+
}
|
|
2893
|
+
],
|
|
2894
|
+
"trees": [
|
|
2895
|
+
{
|
|
2896
|
+
"name": "condition block hides its required child",
|
|
2897
|
+
"fields": [
|
|
2898
|
+
{
|
|
2899
|
+
"id": "q",
|
|
2900
|
+
"type": "select",
|
|
2901
|
+
"label": "Q",
|
|
2902
|
+
"required": false,
|
|
2903
|
+
"options": [
|
|
2904
|
+
"yes",
|
|
2905
|
+
"no"
|
|
2906
|
+
]
|
|
2907
|
+
},
|
|
2908
|
+
{
|
|
2909
|
+
"id": "cb",
|
|
2910
|
+
"type": "condition_block",
|
|
2911
|
+
"label": "",
|
|
2912
|
+
"required": false,
|
|
2913
|
+
"conditionRule": {
|
|
2914
|
+
"fieldId": "q",
|
|
2915
|
+
"operator": "eq",
|
|
2916
|
+
"value": "yes"
|
|
2917
|
+
},
|
|
2918
|
+
"children": [
|
|
2919
|
+
{
|
|
2920
|
+
"id": "why",
|
|
2921
|
+
"type": "text",
|
|
2922
|
+
"label": "Why",
|
|
2923
|
+
"required": true
|
|
2924
|
+
}
|
|
2925
|
+
]
|
|
2926
|
+
}
|
|
2927
|
+
],
|
|
2928
|
+
"data": {
|
|
2929
|
+
"q": "no"
|
|
2930
|
+
},
|
|
2931
|
+
"missing": [],
|
|
2932
|
+
"seed": {
|
|
2933
|
+
"q": "",
|
|
2934
|
+
"why": ""
|
|
2935
|
+
},
|
|
2936
|
+
"payload": {
|
|
2937
|
+
"q": "no"
|
|
2938
|
+
}
|
|
2939
|
+
},
|
|
2940
|
+
{
|
|
2941
|
+
"name": "condition block shows its required child",
|
|
2942
|
+
"fields": [
|
|
2943
|
+
{
|
|
2944
|
+
"id": "q",
|
|
2945
|
+
"type": "select",
|
|
2946
|
+
"label": "Q",
|
|
2947
|
+
"required": false,
|
|
2948
|
+
"options": [
|
|
2949
|
+
"yes",
|
|
2950
|
+
"no"
|
|
2951
|
+
]
|
|
2952
|
+
},
|
|
2953
|
+
{
|
|
2954
|
+
"id": "cb",
|
|
2955
|
+
"type": "condition_block",
|
|
2956
|
+
"label": "",
|
|
2957
|
+
"required": false,
|
|
2958
|
+
"conditionRule": {
|
|
2959
|
+
"fieldId": "q",
|
|
2960
|
+
"operator": "eq",
|
|
2961
|
+
"value": "yes"
|
|
2962
|
+
},
|
|
2963
|
+
"children": [
|
|
2964
|
+
{
|
|
2965
|
+
"id": "why",
|
|
2966
|
+
"type": "text",
|
|
2967
|
+
"label": "Why",
|
|
2968
|
+
"required": true
|
|
2969
|
+
}
|
|
2970
|
+
]
|
|
2971
|
+
}
|
|
2972
|
+
],
|
|
2973
|
+
"data": {
|
|
2974
|
+
"q": "yes"
|
|
2975
|
+
},
|
|
2976
|
+
"missing": [
|
|
2977
|
+
"why"
|
|
2978
|
+
],
|
|
2979
|
+
"seed": {
|
|
2980
|
+
"q": "",
|
|
2981
|
+
"why": ""
|
|
2982
|
+
},
|
|
2983
|
+
"payload": {
|
|
2984
|
+
"q": "yes"
|
|
2985
|
+
}
|
|
2986
|
+
},
|
|
2987
|
+
{
|
|
2988
|
+
"name": "or_condition with neither side",
|
|
2989
|
+
"fields": [
|
|
2990
|
+
{
|
|
2991
|
+
"id": "or",
|
|
2992
|
+
"type": "or_condition",
|
|
2993
|
+
"label": "Contact",
|
|
2994
|
+
"required": false,
|
|
2995
|
+
"children": [
|
|
2996
|
+
{
|
|
2997
|
+
"id": "email",
|
|
2998
|
+
"type": "email",
|
|
2999
|
+
"label": "Email",
|
|
3000
|
+
"required": true
|
|
3001
|
+
},
|
|
3002
|
+
{
|
|
3003
|
+
"id": "phone",
|
|
3004
|
+
"type": "phone",
|
|
3005
|
+
"label": "Phone",
|
|
3006
|
+
"required": true
|
|
3007
|
+
}
|
|
3008
|
+
]
|
|
3009
|
+
}
|
|
3010
|
+
],
|
|
3011
|
+
"data": {},
|
|
3012
|
+
"missing": [
|
|
3013
|
+
"or"
|
|
3014
|
+
],
|
|
3015
|
+
"seed": {
|
|
3016
|
+
"email": "",
|
|
3017
|
+
"phone": ""
|
|
3018
|
+
},
|
|
3019
|
+
"payload": {}
|
|
3020
|
+
},
|
|
3021
|
+
{
|
|
3022
|
+
"name": "or_condition with one side",
|
|
3023
|
+
"fields": [
|
|
3024
|
+
{
|
|
3025
|
+
"id": "or",
|
|
3026
|
+
"type": "or_condition",
|
|
3027
|
+
"label": "Contact",
|
|
3028
|
+
"required": false,
|
|
3029
|
+
"children": [
|
|
3030
|
+
{
|
|
3031
|
+
"id": "email",
|
|
3032
|
+
"type": "email",
|
|
3033
|
+
"label": "Email",
|
|
3034
|
+
"required": true
|
|
3035
|
+
},
|
|
3036
|
+
{
|
|
3037
|
+
"id": "phone",
|
|
3038
|
+
"type": "phone",
|
|
3039
|
+
"label": "Phone",
|
|
3040
|
+
"required": true
|
|
3041
|
+
}
|
|
3042
|
+
]
|
|
3043
|
+
}
|
|
3044
|
+
],
|
|
3045
|
+
"data": {
|
|
3046
|
+
"phone": "(555) 123-4567"
|
|
3047
|
+
},
|
|
3048
|
+
"missing": [],
|
|
3049
|
+
"seed": {
|
|
3050
|
+
"email": "",
|
|
3051
|
+
"phone": ""
|
|
3052
|
+
},
|
|
3053
|
+
"payload": {
|
|
3054
|
+
"phone": "(555) 123-4567"
|
|
3055
|
+
}
|
|
3056
|
+
},
|
|
3057
|
+
{
|
|
3058
|
+
"name": "populator requires an entry",
|
|
3059
|
+
"fields": [
|
|
3060
|
+
{
|
|
3061
|
+
"id": "kids",
|
|
3062
|
+
"type": "multi_populator",
|
|
3063
|
+
"label": "Kids",
|
|
3064
|
+
"required": true,
|
|
3065
|
+
"children": [
|
|
3066
|
+
{
|
|
3067
|
+
"id": "kname",
|
|
3068
|
+
"type": "text",
|
|
3069
|
+
"label": "Name",
|
|
3070
|
+
"required": true,
|
|
3071
|
+
"key": "name"
|
|
3072
|
+
}
|
|
3073
|
+
]
|
|
3074
|
+
}
|
|
3075
|
+
],
|
|
3076
|
+
"data": {
|
|
3077
|
+
"kids": [
|
|
3078
|
+
{}
|
|
3079
|
+
]
|
|
3080
|
+
},
|
|
3081
|
+
"missing": [
|
|
3082
|
+
"kids"
|
|
3083
|
+
],
|
|
3084
|
+
"seed": {
|
|
3085
|
+
"kids": [
|
|
3086
|
+
{}
|
|
3087
|
+
]
|
|
3088
|
+
},
|
|
3089
|
+
"payload": {
|
|
3090
|
+
"kids": [
|
|
3091
|
+
{}
|
|
3092
|
+
]
|
|
3093
|
+
}
|
|
3094
|
+
},
|
|
3095
|
+
{
|
|
3096
|
+
"name": "populator enforces children per filled entry",
|
|
3097
|
+
"fields": [
|
|
3098
|
+
{
|
|
3099
|
+
"id": "kids",
|
|
3100
|
+
"type": "multi_populator",
|
|
3101
|
+
"label": "Kids",
|
|
3102
|
+
"required": true,
|
|
3103
|
+
"children": [
|
|
3104
|
+
{
|
|
3105
|
+
"id": "kname",
|
|
3106
|
+
"type": "text",
|
|
3107
|
+
"label": "Name",
|
|
3108
|
+
"required": true,
|
|
3109
|
+
"key": "name"
|
|
3110
|
+
},
|
|
3111
|
+
{
|
|
3112
|
+
"id": "kage",
|
|
3113
|
+
"type": "number",
|
|
3114
|
+
"label": "Age",
|
|
3115
|
+
"required": true,
|
|
3116
|
+
"key": "age"
|
|
3117
|
+
}
|
|
3118
|
+
]
|
|
3119
|
+
}
|
|
3120
|
+
],
|
|
3121
|
+
"data": {
|
|
3122
|
+
"kids": [
|
|
3123
|
+
{
|
|
3124
|
+
"kname": "Sam"
|
|
3125
|
+
},
|
|
3126
|
+
{
|
|
3127
|
+
"kage": 4
|
|
3128
|
+
},
|
|
3129
|
+
{}
|
|
3130
|
+
]
|
|
3131
|
+
},
|
|
3132
|
+
"missing": [
|
|
3133
|
+
"kage",
|
|
3134
|
+
"kname"
|
|
3135
|
+
],
|
|
3136
|
+
"seed": {
|
|
3137
|
+
"kids": [
|
|
3138
|
+
{}
|
|
3139
|
+
]
|
|
3140
|
+
},
|
|
3141
|
+
"payload": {
|
|
3142
|
+
"kids": [
|
|
3143
|
+
{
|
|
3144
|
+
"name": "Sam"
|
|
3145
|
+
},
|
|
3146
|
+
{
|
|
3147
|
+
"age": 4
|
|
3148
|
+
},
|
|
3149
|
+
{}
|
|
3150
|
+
]
|
|
3151
|
+
}
|
|
3152
|
+
},
|
|
3153
|
+
{
|
|
3154
|
+
"name": "hidden page enforces nothing",
|
|
3155
|
+
"fields": [
|
|
3156
|
+
{
|
|
3157
|
+
"id": "t",
|
|
3158
|
+
"type": "boolean",
|
|
3159
|
+
"label": "Has pets",
|
|
3160
|
+
"required": false
|
|
3161
|
+
},
|
|
3162
|
+
{
|
|
3163
|
+
"id": "page",
|
|
3164
|
+
"type": "input_group",
|
|
3165
|
+
"label": "Pets",
|
|
3166
|
+
"required": false,
|
|
3167
|
+
"conditionRule": {
|
|
3168
|
+
"fieldId": "t",
|
|
3169
|
+
"operator": "eq",
|
|
3170
|
+
"value": "true"
|
|
3171
|
+
},
|
|
3172
|
+
"children": [
|
|
3173
|
+
{
|
|
3174
|
+
"id": "pn",
|
|
3175
|
+
"type": "text",
|
|
3176
|
+
"label": "Pet name",
|
|
3177
|
+
"required": true
|
|
3178
|
+
}
|
|
3179
|
+
]
|
|
3180
|
+
},
|
|
3181
|
+
{
|
|
3182
|
+
"id": "title",
|
|
3183
|
+
"type": "title",
|
|
3184
|
+
"label": "Thanks",
|
|
3185
|
+
"required": true
|
|
3186
|
+
}
|
|
3187
|
+
],
|
|
3188
|
+
"data": {
|
|
3189
|
+
"t": false
|
|
3190
|
+
},
|
|
3191
|
+
"missing": [],
|
|
3192
|
+
"seed": {
|
|
3193
|
+
"t": false,
|
|
3194
|
+
"pn": ""
|
|
3195
|
+
},
|
|
3196
|
+
"payload": {
|
|
3197
|
+
"t": false
|
|
3198
|
+
}
|
|
3199
|
+
},
|
|
3200
|
+
{
|
|
3201
|
+
"name": "consent must be true",
|
|
3202
|
+
"fields": [
|
|
3203
|
+
{
|
|
3204
|
+
"id": "c",
|
|
3205
|
+
"type": "boolean",
|
|
3206
|
+
"label": "I agree",
|
|
3207
|
+
"required": false,
|
|
3208
|
+
"mustBeTrue": true
|
|
3209
|
+
},
|
|
3210
|
+
{
|
|
3211
|
+
"id": "n",
|
|
3212
|
+
"type": "name",
|
|
3213
|
+
"label": "Name",
|
|
3214
|
+
"required": true,
|
|
3215
|
+
"key": "fullName",
|
|
3216
|
+
"nameConfig": {
|
|
3217
|
+
"middle": true,
|
|
3218
|
+
"nicknames": true
|
|
3219
|
+
}
|
|
3220
|
+
},
|
|
3221
|
+
{
|
|
3222
|
+
"id": "m",
|
|
3223
|
+
"type": "measurement",
|
|
3224
|
+
"label": "Height",
|
|
3225
|
+
"required": false,
|
|
3226
|
+
"unitConfig": {
|
|
3227
|
+
"category": "length",
|
|
3228
|
+
"defaultUnit": "ft"
|
|
3229
|
+
}
|
|
3230
|
+
},
|
|
3231
|
+
{
|
|
3232
|
+
"id": "ch",
|
|
3233
|
+
"type": "choice_cards",
|
|
3234
|
+
"label": "Plan",
|
|
3235
|
+
"required": false,
|
|
3236
|
+
"choiceConfig": {
|
|
3237
|
+
"mode": "multi"
|
|
3238
|
+
}
|
|
3239
|
+
},
|
|
3240
|
+
{
|
|
3241
|
+
"id": "tp",
|
|
3242
|
+
"type": "time_picker",
|
|
3243
|
+
"label": "When",
|
|
3244
|
+
"required": false,
|
|
3245
|
+
"timeConfig": {
|
|
3246
|
+
"mode": "appointment"
|
|
3247
|
+
}
|
|
3248
|
+
},
|
|
3249
|
+
{
|
|
3250
|
+
"id": "st",
|
|
3251
|
+
"type": "stepper",
|
|
3252
|
+
"label": "Count",
|
|
3253
|
+
"required": true,
|
|
3254
|
+
"key": "count"
|
|
3255
|
+
},
|
|
3256
|
+
{
|
|
3257
|
+
"id": "tx",
|
|
3258
|
+
"type": "text",
|
|
3259
|
+
"label": "Code",
|
|
3260
|
+
"required": false,
|
|
3261
|
+
"defaultValue": "ABC"
|
|
3262
|
+
}
|
|
3263
|
+
],
|
|
3264
|
+
"data": {
|
|
3265
|
+
"c": false,
|
|
3266
|
+
"n": {
|
|
3267
|
+
"first": " Ada ",
|
|
3268
|
+
"middle": "",
|
|
3269
|
+
"last": "Lovelace",
|
|
3270
|
+
"nicknames": "Countess, , Ada"
|
|
3271
|
+
}
|
|
3272
|
+
},
|
|
3273
|
+
"missing": [
|
|
3274
|
+
"c"
|
|
3275
|
+
],
|
|
3276
|
+
"seed": {
|
|
3277
|
+
"c": false,
|
|
3278
|
+
"n": "",
|
|
3279
|
+
"m": {
|
|
3280
|
+
"value": "",
|
|
3281
|
+
"unit": "ft",
|
|
3282
|
+
"baseUnit": "m"
|
|
3283
|
+
},
|
|
3284
|
+
"ch": [],
|
|
3285
|
+
"tp": {
|
|
3286
|
+
"date": "",
|
|
3287
|
+
"time": ""
|
|
3288
|
+
},
|
|
3289
|
+
"st": 0,
|
|
3290
|
+
"tx": "ABC"
|
|
3291
|
+
},
|
|
3292
|
+
"payload": {
|
|
3293
|
+
"c": false,
|
|
3294
|
+
"fullName": {
|
|
3295
|
+
"first": "Ada",
|
|
3296
|
+
"last": "Lovelace",
|
|
3297
|
+
"nicknames": [
|
|
3298
|
+
"Countess",
|
|
3299
|
+
"Ada"
|
|
3300
|
+
],
|
|
3301
|
+
"full": "Ada Lovelace",
|
|
3302
|
+
"short": "Ada Lovelace"
|
|
3303
|
+
}
|
|
3304
|
+
}
|
|
3305
|
+
},
|
|
3306
|
+
{
|
|
3307
|
+
"name": "rating and slider seeds",
|
|
3308
|
+
"fields": [
|
|
3309
|
+
{
|
|
3310
|
+
"id": "h",
|
|
3311
|
+
"type": "happiness_rating",
|
|
3312
|
+
"label": "Mood",
|
|
3313
|
+
"required": true
|
|
3314
|
+
},
|
|
3315
|
+
{
|
|
3316
|
+
"id": "s",
|
|
3317
|
+
"type": "slider",
|
|
3318
|
+
"label": "Budget",
|
|
3319
|
+
"required": false,
|
|
3320
|
+
"sliderConfig": {
|
|
3321
|
+
"min": 5,
|
|
3322
|
+
"max": 50
|
|
3323
|
+
}
|
|
3324
|
+
},
|
|
3325
|
+
{
|
|
3326
|
+
"id": "s0",
|
|
3327
|
+
"type": "slider",
|
|
3328
|
+
"label": "Level",
|
|
3329
|
+
"required": false
|
|
3330
|
+
},
|
|
3331
|
+
{
|
|
3332
|
+
"id": "r",
|
|
3333
|
+
"type": "star_rating",
|
|
3334
|
+
"label": "Stars",
|
|
3335
|
+
"required": false
|
|
3336
|
+
}
|
|
3337
|
+
],
|
|
3338
|
+
"data": {
|
|
3339
|
+
"h": 0,
|
|
3340
|
+
"s": 5
|
|
3341
|
+
},
|
|
3342
|
+
"missing": [],
|
|
3343
|
+
"seed": {
|
|
3344
|
+
"s": 5,
|
|
3345
|
+
"s0": 0,
|
|
3346
|
+
"r": 0
|
|
3347
|
+
},
|
|
3348
|
+
"payload": {
|
|
3349
|
+
"h": 0,
|
|
3350
|
+
"s": 5
|
|
3351
|
+
}
|
|
3352
|
+
},
|
|
3353
|
+
{
|
|
3354
|
+
"name": "collection select seeds",
|
|
3355
|
+
"fields": [
|
|
3356
|
+
{
|
|
3357
|
+
"id": "cm",
|
|
3358
|
+
"type": "collection_select",
|
|
3359
|
+
"label": "Rooms",
|
|
3360
|
+
"required": false,
|
|
3361
|
+
"collectionSelectConfig": {
|
|
3362
|
+
"collectionKey": "rooms",
|
|
3363
|
+
"multi": true
|
|
3364
|
+
}
|
|
3365
|
+
},
|
|
3366
|
+
{
|
|
3367
|
+
"id": "cs",
|
|
3368
|
+
"type": "collection_select",
|
|
3369
|
+
"label": "Room",
|
|
3370
|
+
"required": false,
|
|
3371
|
+
"defaultValue": "lobby",
|
|
3372
|
+
"collectionSelectConfig": {
|
|
3373
|
+
"collectionKey": "rooms"
|
|
3374
|
+
}
|
|
3375
|
+
},
|
|
3376
|
+
{
|
|
3377
|
+
"id": "fu",
|
|
3378
|
+
"type": "file_upload",
|
|
3379
|
+
"label": "Files",
|
|
3380
|
+
"required": false
|
|
3381
|
+
}
|
|
3382
|
+
],
|
|
3383
|
+
"data": {},
|
|
3384
|
+
"missing": [],
|
|
3385
|
+
"seed": {
|
|
3386
|
+
"cm": [],
|
|
3387
|
+
"cs": "lobby",
|
|
3388
|
+
"fu": ""
|
|
3389
|
+
},
|
|
3390
|
+
"payload": {}
|
|
3391
|
+
}
|
|
3392
|
+
],
|
|
3393
|
+
"units": [
|
|
3394
|
+
{
|
|
3395
|
+
"category": "length",
|
|
3396
|
+
"value": 1,
|
|
3397
|
+
"unit": "km",
|
|
3398
|
+
"base": 1000,
|
|
3399
|
+
"back": 1,
|
|
3400
|
+
"formatted": "1 km"
|
|
3401
|
+
},
|
|
3402
|
+
{
|
|
3403
|
+
"category": "length",
|
|
3404
|
+
"value": 12,
|
|
3405
|
+
"unit": "in",
|
|
3406
|
+
"base": 0.30479999999999996,
|
|
3407
|
+
"back": 11.999999999999998,
|
|
3408
|
+
"formatted": "12 in"
|
|
3409
|
+
},
|
|
3410
|
+
{
|
|
3411
|
+
"category": "temperature",
|
|
3412
|
+
"value": 212,
|
|
3413
|
+
"unit": "°F",
|
|
3414
|
+
"base": 100,
|
|
3415
|
+
"back": 212,
|
|
3416
|
+
"formatted": "212 °F"
|
|
3417
|
+
},
|
|
3418
|
+
{
|
|
3419
|
+
"category": "temperature",
|
|
3420
|
+
"value": 300,
|
|
3421
|
+
"unit": "K",
|
|
3422
|
+
"base": 26.850000000000023,
|
|
3423
|
+
"back": 300,
|
|
3424
|
+
"formatted": "300 K"
|
|
3425
|
+
},
|
|
3426
|
+
{
|
|
3427
|
+
"category": "mass",
|
|
3428
|
+
"value": 1,
|
|
3429
|
+
"unit": "lb",
|
|
3430
|
+
"base": 453.59237,
|
|
3431
|
+
"back": 1,
|
|
3432
|
+
"formatted": "1 lb"
|
|
3433
|
+
},
|
|
3434
|
+
{
|
|
3435
|
+
"category": "storage",
|
|
3436
|
+
"value": 1,
|
|
3437
|
+
"unit": "GiB",
|
|
3438
|
+
"base": 1073741824,
|
|
3439
|
+
"back": 1,
|
|
3440
|
+
"formatted": "1 GiB"
|
|
3441
|
+
},
|
|
3442
|
+
{
|
|
3443
|
+
"category": "volume",
|
|
3444
|
+
"value": 2,
|
|
3445
|
+
"unit": "gal",
|
|
3446
|
+
"base": 7.5708236,
|
|
3447
|
+
"back": 2,
|
|
3448
|
+
"formatted": "2 gal"
|
|
3449
|
+
},
|
|
3450
|
+
{
|
|
3451
|
+
"category": "speed",
|
|
3452
|
+
"value": 60,
|
|
3453
|
+
"unit": "mph",
|
|
3454
|
+
"base": 26.8224,
|
|
3455
|
+
"back": 60,
|
|
3456
|
+
"formatted": "26.8224 m/s"
|
|
3457
|
+
},
|
|
3458
|
+
{
|
|
3459
|
+
"category": "time",
|
|
3460
|
+
"value": 90,
|
|
3461
|
+
"unit": "min",
|
|
3462
|
+
"base": 5400,
|
|
3463
|
+
"back": 90,
|
|
3464
|
+
"formatted": "1.5 h"
|
|
3465
|
+
},
|
|
3466
|
+
{
|
|
3467
|
+
"category": "length",
|
|
3468
|
+
"value": 1,
|
|
3469
|
+
"unit": "parsec",
|
|
3470
|
+
"base": null,
|
|
3471
|
+
"back": null,
|
|
3472
|
+
"formatted": "1 parsec"
|
|
3473
|
+
}
|
|
3474
|
+
],
|
|
3475
|
+
"calculations": [
|
|
3476
|
+
{
|
|
3477
|
+
"config": {
|
|
3478
|
+
"mode": "formula",
|
|
3479
|
+
"formula": "a * b",
|
|
3480
|
+
"inputMap": [
|
|
3481
|
+
{
|
|
3482
|
+
"variable": "a",
|
|
3483
|
+
"fieldId": "fa"
|
|
3484
|
+
},
|
|
3485
|
+
{
|
|
3486
|
+
"variable": "b",
|
|
3487
|
+
"fieldId": "fb"
|
|
3488
|
+
}
|
|
3489
|
+
]
|
|
3490
|
+
},
|
|
3491
|
+
"values": {
|
|
3492
|
+
"fa": 3,
|
|
3493
|
+
"fb": "4"
|
|
3494
|
+
},
|
|
3495
|
+
"result": {
|
|
3496
|
+
"ok": true,
|
|
3497
|
+
"value": 12
|
|
3498
|
+
}
|
|
3499
|
+
},
|
|
3500
|
+
{
|
|
3501
|
+
"config": {
|
|
3502
|
+
"mode": "formula",
|
|
3503
|
+
"formula": "a * b",
|
|
3504
|
+
"inputMap": [
|
|
3505
|
+
{
|
|
3506
|
+
"variable": "a",
|
|
3507
|
+
"fieldId": "fa"
|
|
3508
|
+
},
|
|
3509
|
+
{
|
|
3510
|
+
"variable": "b",
|
|
3511
|
+
"fieldId": "fb"
|
|
3512
|
+
}
|
|
3513
|
+
]
|
|
3514
|
+
},
|
|
3515
|
+
"values": {
|
|
3516
|
+
"fa": 3,
|
|
3517
|
+
"fb": ""
|
|
3518
|
+
},
|
|
3519
|
+
"result": {
|
|
3520
|
+
"ok": false,
|
|
3521
|
+
"value": null,
|
|
3522
|
+
"error": "Variable \"b\" has no value."
|
|
3523
|
+
}
|
|
3524
|
+
},
|
|
3525
|
+
{
|
|
3526
|
+
"config": {
|
|
3527
|
+
"mode": "formula",
|
|
3528
|
+
"formula": " "
|
|
3529
|
+
},
|
|
3530
|
+
"values": {},
|
|
3531
|
+
"result": {
|
|
3532
|
+
"ok": false,
|
|
3533
|
+
"value": null,
|
|
3534
|
+
"error": "No formula."
|
|
3535
|
+
}
|
|
3536
|
+
},
|
|
3537
|
+
{
|
|
3538
|
+
"config": {
|
|
3539
|
+
"mode": "function",
|
|
3540
|
+
"functionId": "fn1",
|
|
3541
|
+
"inputMap": [
|
|
3542
|
+
{
|
|
3543
|
+
"variable": "sqft",
|
|
3544
|
+
"fieldId": "s"
|
|
3545
|
+
},
|
|
3546
|
+
{
|
|
3547
|
+
"variable": "rush",
|
|
3548
|
+
"fieldId": "r"
|
|
3549
|
+
}
|
|
3550
|
+
]
|
|
3551
|
+
},
|
|
3552
|
+
"values": {
|
|
3553
|
+
"s": "100",
|
|
3554
|
+
"r": true
|
|
3555
|
+
},
|
|
3556
|
+
"result": {
|
|
3557
|
+
"ok": true,
|
|
3558
|
+
"value": 200,
|
|
3559
|
+
"outputs": {
|
|
3560
|
+
"subtotal": 200,
|
|
3561
|
+
"total": 300,
|
|
3562
|
+
"label": "$300",
|
|
3563
|
+
"bad": 0
|
|
3564
|
+
}
|
|
3565
|
+
}
|
|
3566
|
+
},
|
|
3567
|
+
{
|
|
3568
|
+
"config": {
|
|
3569
|
+
"mode": "function",
|
|
3570
|
+
"functionId": "fn1",
|
|
3571
|
+
"outputKey": "label",
|
|
3572
|
+
"inputMap": [
|
|
3573
|
+
{
|
|
3574
|
+
"variable": "sqft",
|
|
3575
|
+
"fieldId": "s"
|
|
3576
|
+
}
|
|
3577
|
+
]
|
|
3578
|
+
},
|
|
3579
|
+
"values": {
|
|
3580
|
+
"s": 50
|
|
3581
|
+
},
|
|
3582
|
+
"result": {
|
|
3583
|
+
"ok": false,
|
|
3584
|
+
"value": null,
|
|
3585
|
+
"outputs": {
|
|
3586
|
+
"subtotal": 100,
|
|
3587
|
+
"bad": 0
|
|
3588
|
+
},
|
|
3589
|
+
"error": "output/total: Variable \"rush\" has no value.; output/label: Variable \"total\" has no value."
|
|
3590
|
+
}
|
|
3591
|
+
},
|
|
3592
|
+
{
|
|
3593
|
+
"config": {
|
|
3594
|
+
"mode": "function",
|
|
3595
|
+
"functionId": "fn1",
|
|
3596
|
+
"inputMap": [
|
|
3597
|
+
{
|
|
3598
|
+
"variable": "sqft",
|
|
3599
|
+
"fieldId": "s"
|
|
3600
|
+
}
|
|
3601
|
+
]
|
|
3602
|
+
},
|
|
3603
|
+
"values": {},
|
|
3604
|
+
"result": {
|
|
3605
|
+
"ok": false,
|
|
3606
|
+
"value": null,
|
|
3607
|
+
"outputs": {
|
|
3608
|
+
"bad": 0
|
|
3609
|
+
},
|
|
3610
|
+
"error": "input/sqft: required value is missing; output/subtotal: Variable \"sqft\" has no value.; output/total: Variable \"rush\" has no value.; output/label: Variable \"total\" has no value."
|
|
3611
|
+
}
|
|
3612
|
+
},
|
|
3613
|
+
{
|
|
3614
|
+
"config": {
|
|
3615
|
+
"mode": "function",
|
|
3616
|
+
"functionId": "missing"
|
|
3617
|
+
},
|
|
3618
|
+
"values": {},
|
|
3619
|
+
"result": {
|
|
3620
|
+
"ok": false,
|
|
3621
|
+
"value": null,
|
|
3622
|
+
"error": "Referenced function not found."
|
|
3623
|
+
}
|
|
3624
|
+
}
|
|
3625
|
+
],
|
|
3626
|
+
"businessFunctions": [
|
|
3627
|
+
{
|
|
3628
|
+
"inputs": {
|
|
3629
|
+
"sqft": 10
|
|
3630
|
+
},
|
|
3631
|
+
"result": {
|
|
3632
|
+
"ok": false,
|
|
3633
|
+
"outputs": {
|
|
3634
|
+
"subtotal": 20,
|
|
3635
|
+
"bad": 0
|
|
3636
|
+
},
|
|
3637
|
+
"issues": [
|
|
3638
|
+
{
|
|
3639
|
+
"scope": "output",
|
|
3640
|
+
"key": "total",
|
|
3641
|
+
"reason": "Variable \"rush\" has no value."
|
|
3642
|
+
},
|
|
3643
|
+
{
|
|
3644
|
+
"scope": "output",
|
|
3645
|
+
"key": "label",
|
|
3646
|
+
"reason": "Variable \"total\" has no value."
|
|
3647
|
+
}
|
|
3648
|
+
]
|
|
3649
|
+
}
|
|
3650
|
+
},
|
|
3651
|
+
{
|
|
3652
|
+
"inputs": {
|
|
3653
|
+
"sqft": "abc"
|
|
3654
|
+
},
|
|
3655
|
+
"result": {
|
|
3656
|
+
"ok": false,
|
|
3657
|
+
"outputs": {
|
|
3658
|
+
"bad": 0
|
|
3659
|
+
},
|
|
3660
|
+
"issues": [
|
|
3661
|
+
{
|
|
3662
|
+
"scope": "input",
|
|
3663
|
+
"key": "sqft",
|
|
3664
|
+
"reason": "not a number"
|
|
3665
|
+
},
|
|
3666
|
+
{
|
|
3667
|
+
"scope": "output",
|
|
3668
|
+
"key": "subtotal",
|
|
3669
|
+
"reason": "Variable \"sqft\" has no value."
|
|
3670
|
+
},
|
|
3671
|
+
{
|
|
3672
|
+
"scope": "output",
|
|
3673
|
+
"key": "total",
|
|
3674
|
+
"reason": "Variable \"rush\" has no value."
|
|
3675
|
+
},
|
|
3676
|
+
{
|
|
3677
|
+
"scope": "output",
|
|
3678
|
+
"key": "label",
|
|
3679
|
+
"reason": "Variable \"total\" has no value."
|
|
3680
|
+
}
|
|
3681
|
+
]
|
|
3682
|
+
}
|
|
3683
|
+
},
|
|
3684
|
+
{
|
|
3685
|
+
"inputs": {
|
|
3686
|
+
"sqft": 10,
|
|
3687
|
+
"rush": "true"
|
|
3688
|
+
},
|
|
3689
|
+
"result": {
|
|
3690
|
+
"ok": true,
|
|
3691
|
+
"outputs": {
|
|
3692
|
+
"subtotal": 20,
|
|
3693
|
+
"total": 30,
|
|
3694
|
+
"label": "$30",
|
|
3695
|
+
"bad": 0
|
|
3696
|
+
},
|
|
3697
|
+
"issues": []
|
|
3698
|
+
}
|
|
3699
|
+
},
|
|
3700
|
+
{
|
|
3701
|
+
"inputs": {
|
|
3702
|
+
"sqft": 10,
|
|
3703
|
+
"rush": "maybe"
|
|
3704
|
+
},
|
|
3705
|
+
"result": {
|
|
3706
|
+
"ok": false,
|
|
3707
|
+
"outputs": {
|
|
3708
|
+
"subtotal": 20,
|
|
3709
|
+
"bad": 0
|
|
3710
|
+
},
|
|
3711
|
+
"issues": [
|
|
3712
|
+
{
|
|
3713
|
+
"scope": "input",
|
|
3714
|
+
"key": "rush",
|
|
3715
|
+
"reason": "not a boolean"
|
|
3716
|
+
},
|
|
3717
|
+
{
|
|
3718
|
+
"scope": "output",
|
|
3719
|
+
"key": "total",
|
|
3720
|
+
"reason": "Variable \"rush\" has no value."
|
|
3721
|
+
},
|
|
3722
|
+
{
|
|
3723
|
+
"scope": "output",
|
|
3724
|
+
"key": "label",
|
|
3725
|
+
"reason": "Variable \"total\" has no value."
|
|
3726
|
+
}
|
|
3727
|
+
]
|
|
3728
|
+
}
|
|
3729
|
+
},
|
|
3730
|
+
{
|
|
3731
|
+
"inputs": {},
|
|
3732
|
+
"result": {
|
|
3733
|
+
"ok": false,
|
|
3734
|
+
"outputs": {
|
|
3735
|
+
"bad": 0
|
|
3736
|
+
},
|
|
3737
|
+
"issues": [
|
|
3738
|
+
{
|
|
3739
|
+
"scope": "input",
|
|
3740
|
+
"key": "sqft",
|
|
3741
|
+
"reason": "required value is missing"
|
|
3742
|
+
},
|
|
3743
|
+
{
|
|
3744
|
+
"scope": "output",
|
|
3745
|
+
"key": "subtotal",
|
|
3746
|
+
"reason": "Variable \"sqft\" has no value."
|
|
3747
|
+
},
|
|
3748
|
+
{
|
|
3749
|
+
"scope": "output",
|
|
3750
|
+
"key": "total",
|
|
3751
|
+
"reason": "Variable \"rush\" has no value."
|
|
3752
|
+
},
|
|
3753
|
+
{
|
|
3754
|
+
"scope": "output",
|
|
3755
|
+
"key": "label",
|
|
3756
|
+
"reason": "Variable \"total\" has no value."
|
|
3757
|
+
}
|
|
3758
|
+
]
|
|
3759
|
+
}
|
|
3760
|
+
}
|
|
3761
|
+
],
|
|
3762
|
+
"calcFormat": [
|
|
3763
|
+
{
|
|
3764
|
+
"value": 3.14159,
|
|
3765
|
+
"display": {
|
|
3766
|
+
"decimals": 2,
|
|
3767
|
+
"prefix": "$"
|
|
3768
|
+
},
|
|
3769
|
+
"output": "$3.14"
|
|
3770
|
+
},
|
|
3771
|
+
{
|
|
3772
|
+
"value": 2,
|
|
3773
|
+
"display": {
|
|
3774
|
+
"suffix": " hrs"
|
|
3775
|
+
},
|
|
3776
|
+
"output": "2 hrs"
|
|
3777
|
+
},
|
|
3778
|
+
{
|
|
3779
|
+
"value": "text",
|
|
3780
|
+
"display": {
|
|
3781
|
+
"decimals": 2
|
|
3782
|
+
},
|
|
3783
|
+
"output": "text"
|
|
3784
|
+
},
|
|
3785
|
+
{
|
|
3786
|
+
"value": true,
|
|
3787
|
+
"display": {},
|
|
3788
|
+
"output": "true"
|
|
3789
|
+
},
|
|
3790
|
+
{
|
|
3791
|
+
"value": {
|
|
3792
|
+
"a": 1,
|
|
3793
|
+
"b": "x"
|
|
3794
|
+
},
|
|
3795
|
+
"display": {},
|
|
3796
|
+
"output": "{\"a\":1,\"b\":\"x\"}"
|
|
3797
|
+
},
|
|
3798
|
+
{
|
|
3799
|
+
"value": null,
|
|
3800
|
+
"display": {
|
|
3801
|
+
"prefix": "$"
|
|
3802
|
+
},
|
|
3803
|
+
"output": ""
|
|
3804
|
+
}
|
|
3805
|
+
]
|
|
3806
|
+
}
|