@salesforce/afv-skills 1.14.0 → 1.16.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/package.json +1 -1
- package/skills/activating-datacloud/SKILL.md +0 -1
- package/skills/analyzing-omnistudio-dependencies/SKILL.md +0 -1
- package/skills/applying-slds/SKILL.md +322 -0
- package/skills/applying-slds/checklists.md +83 -0
- package/skills/applying-slds/examples.md +283 -0
- package/skills/applying-slds/guidance/README.md +83 -0
- package/skills/applying-slds/guidance/blueprints-index.md +213 -0
- package/skills/applying-slds/guidance/icons-guidance.md +186 -0
- package/skills/applying-slds/guidance/overviews/borders.md +236 -0
- package/skills/applying-slds/guidance/overviews/color.md +266 -0
- package/skills/applying-slds/guidance/overviews/display-density.md +366 -0
- package/skills/applying-slds/guidance/overviews/icons.md +240 -0
- package/skills/applying-slds/guidance/overviews/illustrations.md +235 -0
- package/skills/applying-slds/guidance/overviews/shadows.md +176 -0
- package/skills/applying-slds/guidance/overviews/spacing.md +216 -0
- package/skills/applying-slds/guidance/overviews/typography.md +323 -0
- package/skills/applying-slds/guidance/overviews/utilities.md +542 -0
- package/skills/applying-slds/guidance/slds-development-guide.md +288 -0
- package/skills/applying-slds/guidance/styling-hooks/borders.md +202 -0
- package/skills/applying-slds/guidance/styling-hooks/color/expressive-palette-hooks.md +153 -0
- package/skills/applying-slds/guidance/styling-hooks/color/index.md +171 -0
- package/skills/applying-slds/guidance/styling-hooks/color/semantic/accent-hooks.md +204 -0
- package/skills/applying-slds/guidance/styling-hooks/color/semantic/feedback-hooks.md +768 -0
- package/skills/applying-slds/guidance/styling-hooks/color/semantic/surface-hooks.md +337 -0
- package/skills/applying-slds/guidance/styling-hooks/color/system-hooks.md +132 -0
- package/skills/applying-slds/guidance/styling-hooks/index.md +327 -0
- package/skills/applying-slds/guidance/styling-hooks/shadows.md +238 -0
- package/skills/applying-slds/guidance/styling-hooks/spacing.md +254 -0
- package/skills/applying-slds/guidance/styling-hooks/typography.md +448 -0
- package/skills/applying-slds/guidance/utilities/alignment.md +119 -0
- package/skills/applying-slds/guidance/utilities/borders.md +131 -0
- package/skills/applying-slds/guidance/utilities/box.md +125 -0
- package/skills/applying-slds/guidance/utilities/color.md +165 -0
- package/skills/applying-slds/guidance/utilities/dark-mode.md +111 -0
- package/skills/applying-slds/guidance/utilities/description-list.md +168 -0
- package/skills/applying-slds/guidance/utilities/floats.md +117 -0
- package/skills/applying-slds/guidance/utilities/grid.md +264 -0
- package/skills/applying-slds/guidance/utilities/horizontal-list.md +110 -0
- package/skills/applying-slds/guidance/utilities/hyphenation.md +84 -0
- package/skills/applying-slds/guidance/utilities/index.md +205 -0
- package/skills/applying-slds/guidance/utilities/interactions.md +89 -0
- package/skills/applying-slds/guidance/utilities/layout.md +109 -0
- package/skills/applying-slds/guidance/utilities/line-clamp.md +131 -0
- package/skills/applying-slds/guidance/utilities/margin.md +155 -0
- package/skills/applying-slds/guidance/utilities/media-object.md +161 -0
- package/skills/applying-slds/guidance/utilities/name-value-list.md +152 -0
- package/skills/applying-slds/guidance/utilities/padding.md +155 -0
- package/skills/applying-slds/guidance/utilities/position.md +177 -0
- package/skills/applying-slds/guidance/utilities/print.md +114 -0
- package/skills/applying-slds/guidance/utilities/scrollable.md +126 -0
- package/skills/applying-slds/guidance/utilities/sizing.md +190 -0
- package/skills/applying-slds/guidance/utilities/themes.md +121 -0
- package/skills/applying-slds/guidance/utilities/truncate.md +127 -0
- package/skills/applying-slds/guidance/utilities/typography.md +166 -0
- package/skills/applying-slds/guidance/utilities/vertical-list.md +166 -0
- package/skills/applying-slds/guidance/utilities/visibility.md +228 -0
- package/skills/applying-slds/metadata/README.md +84 -0
- package/skills/applying-slds/metadata/blueprints/components/accordion.yaml +304 -0
- package/skills/applying-slds/metadata/blueprints/components/activity-timeline.yaml +92 -0
- package/skills/applying-slds/metadata/blueprints/components/alert.yaml +103 -0
- package/skills/applying-slds/metadata/blueprints/components/app-launcher.yaml +94 -0
- package/skills/applying-slds/metadata/blueprints/components/avatar-group.yaml +81 -0
- package/skills/applying-slds/metadata/blueprints/components/avatar.yaml +97 -0
- package/skills/applying-slds/metadata/blueprints/components/badges.yaml +102 -0
- package/skills/applying-slds/metadata/blueprints/components/brand-band.yaml +198 -0
- package/skills/applying-slds/metadata/blueprints/components/breadcrumbs.yaml +95 -0
- package/skills/applying-slds/metadata/blueprints/components/builder-header.yaml +192 -0
- package/skills/applying-slds/metadata/blueprints/components/button-groups.yaml +82 -0
- package/skills/applying-slds/metadata/blueprints/components/button-icons.yaml +295 -0
- package/skills/applying-slds/metadata/blueprints/components/buttons.yaml +230 -0
- package/skills/applying-slds/metadata/blueprints/components/cards.yaml +124 -0
- package/skills/applying-slds/metadata/blueprints/components/carousel.yaml +140 -0
- package/skills/applying-slds/metadata/blueprints/components/chat.yaml +179 -0
- package/skills/applying-slds/metadata/blueprints/components/checkbox-button-group.yaml +192 -0
- package/skills/applying-slds/metadata/blueprints/components/checkbox-button.yaml +204 -0
- package/skills/applying-slds/metadata/blueprints/components/checkbox-toggle.yaml +177 -0
- package/skills/applying-slds/metadata/blueprints/components/checkbox.yaml +108 -0
- package/skills/applying-slds/metadata/blueprints/components/color-picker.yaml +172 -0
- package/skills/applying-slds/metadata/blueprints/components/combobox.yaml +136 -0
- package/skills/applying-slds/metadata/blueprints/components/counter.yaml +147 -0
- package/skills/applying-slds/metadata/blueprints/components/data-tables.yaml +157 -0
- package/skills/applying-slds/metadata/blueprints/components/datepickers.yaml +130 -0
- package/skills/applying-slds/metadata/blueprints/components/datetime-picker.yaml +155 -0
- package/skills/applying-slds/metadata/blueprints/components/docked-composer.yaml +201 -0
- package/skills/applying-slds/metadata/blueprints/components/docked-form-footer.yaml +161 -0
- package/skills/applying-slds/metadata/blueprints/components/docked-utility-bar.yaml +175 -0
- package/skills/applying-slds/metadata/blueprints/components/drop-zone.yaml +115 -0
- package/skills/applying-slds/metadata/blueprints/components/dueling-picklist.yaml +196 -0
- package/skills/applying-slds/metadata/blueprints/components/dynamic-icons.yaml +128 -0
- package/skills/applying-slds/metadata/blueprints/components/dynamic-menu.yaml +141 -0
- package/skills/applying-slds/metadata/blueprints/components/expandable-section.yaml +115 -0
- package/skills/applying-slds/metadata/blueprints/components/expression.yaml +143 -0
- package/skills/applying-slds/metadata/blueprints/components/feeds.yaml +125 -0
- package/skills/applying-slds/metadata/blueprints/components/file-selector.yaml +154 -0
- package/skills/applying-slds/metadata/blueprints/components/files.yaml +119 -0
- package/skills/applying-slds/metadata/blueprints/components/form-element.yaml +145 -0
- package/skills/applying-slds/metadata/blueprints/components/global-header.yaml +120 -0
- package/skills/applying-slds/metadata/blueprints/components/global-navigation.yaml +100 -0
- package/skills/applying-slds/metadata/blueprints/components/icons.yaml +138 -0
- package/skills/applying-slds/metadata/blueprints/components/illustration.yaml +205 -0
- package/skills/applying-slds/metadata/blueprints/components/input.yaml +151 -0
- package/skills/applying-slds/metadata/blueprints/components/list-builder.yaml +127 -0
- package/skills/applying-slds/metadata/blueprints/components/lookups.yaml +132 -0
- package/skills/applying-slds/metadata/blueprints/components/map.yaml +118 -0
- package/skills/applying-slds/metadata/blueprints/components/menus.yaml +134 -0
- package/skills/applying-slds/metadata/blueprints/components/modals.yaml +152 -0
- package/skills/applying-slds/metadata/blueprints/components/notifications.yaml +88 -0
- package/skills/applying-slds/metadata/blueprints/components/page-headers.yaml +135 -0
- package/skills/applying-slds/metadata/blueprints/components/panels.yaml +149 -0
- package/skills/applying-slds/metadata/blueprints/components/path.yaml +154 -0
- package/skills/applying-slds/metadata/blueprints/components/picklist.yaml +125 -0
- package/skills/applying-slds/metadata/blueprints/components/pills.yaml +154 -0
- package/skills/applying-slds/metadata/blueprints/components/popovers.yaml +120 -0
- package/skills/applying-slds/metadata/blueprints/components/progress-bar.yaml +110 -0
- package/skills/applying-slds/metadata/blueprints/components/progress-indicator.yaml +133 -0
- package/skills/applying-slds/metadata/blueprints/components/progress-ring.yaml +102 -0
- package/skills/applying-slds/metadata/blueprints/components/prompt.yaml +126 -0
- package/skills/applying-slds/metadata/blueprints/components/publishers.yaml +178 -0
- package/skills/applying-slds/metadata/blueprints/components/radio-button-group.yaml +172 -0
- package/skills/applying-slds/metadata/blueprints/components/radio-group.yaml +112 -0
- package/skills/applying-slds/metadata/blueprints/components/rich-text-editor.yaml +135 -0
- package/skills/applying-slds/metadata/blueprints/components/scoped-notifications.yaml +188 -0
- package/skills/applying-slds/metadata/blueprints/components/scoped-tabs.yaml +97 -0
- package/skills/applying-slds/metadata/blueprints/components/select.yaml +127 -0
- package/skills/applying-slds/metadata/blueprints/components/setup-assistant.yaml +152 -0
- package/skills/applying-slds/metadata/blueprints/components/slider.yaml +111 -0
- package/skills/applying-slds/metadata/blueprints/components/spinners.yaml +135 -0
- package/skills/applying-slds/metadata/blueprints/components/split-view.yaml +112 -0
- package/skills/applying-slds/metadata/blueprints/components/summary-detail.yaml +103 -0
- package/skills/applying-slds/metadata/blueprints/components/tabs.yaml +138 -0
- package/skills/applying-slds/metadata/blueprints/components/textarea.yaml +116 -0
- package/skills/applying-slds/metadata/blueprints/components/tiles.yaml +108 -0
- package/skills/applying-slds/metadata/blueprints/components/timepicker.yaml +111 -0
- package/skills/applying-slds/metadata/blueprints/components/toast.yaml +154 -0
- package/skills/applying-slds/metadata/blueprints/components/tooltips.yaml +107 -0
- package/skills/applying-slds/metadata/blueprints/components/tree-grid.yaml +116 -0
- package/skills/applying-slds/metadata/blueprints/components/trees.yaml +116 -0
- package/skills/applying-slds/metadata/blueprints/components/trial-bar.yaml +112 -0
- package/skills/applying-slds/metadata/blueprints/components/vertical-navigation.yaml +130 -0
- package/skills/applying-slds/metadata/blueprints/components/vertical-tabs.yaml +140 -0
- package/skills/applying-slds/metadata/blueprints/components/visual-picker.yaml +150 -0
- package/skills/applying-slds/metadata/blueprints/components/welcome-mat.yaml +136 -0
- package/skills/applying-slds/metadata/hooks-index.json +6272 -0
- package/skills/applying-slds/metadata/icon-metadata.json +38466 -0
- package/skills/applying-slds/metadata/utilities-index.json +21912 -0
- package/skills/applying-slds/references/component-selection.md +112 -0
- package/skills/applying-slds/references/icons-decision-guide.md +124 -0
- package/skills/applying-slds/references/styling-decision-guide.md +228 -0
- package/skills/applying-slds/references/utilities-quick-ref.md +125 -0
- package/skills/applying-slds/scripts/search-blueprints.cjs +117 -0
- package/skills/applying-slds/scripts/search-hooks.cjs +139 -0
- package/skills/applying-slds/scripts/search-icons.cjs +174 -0
- package/skills/applying-slds/scripts/search-utilities.cjs +161 -0
- package/skills/building-mobile-apps/SKILL.md +0 -1
- package/skills/building-omnistudio-callable-apex/SKILL.md +0 -1
- package/skills/building-omnistudio-datamapper/SKILL.md +0 -1
- package/skills/building-omnistudio-flexcard/SKILL.md +0 -1
- package/skills/building-omnistudio-integration-procedure/SKILL.md +0 -1
- package/skills/building-omnistudio-omniscript/SKILL.md +0 -1
- package/skills/building-sf-integrations/SKILL.md +0 -1
- package/skills/configuring-connected-apps/SKILL.md +0 -1
- package/skills/connecting-datacloud/SKILL.md +0 -1
- package/skills/creating-b2b-commerce-store/SKILL.md +0 -1
- package/skills/debugging-apex-logs/SKILL.md +0 -1
- package/skills/deploying-metadata/SKILL.md +0 -1
- package/skills/deploying-omnistudio-datapacks/SKILL.md +0 -1
- package/skills/developing-agentforce/SKILL.md +0 -1
- package/skills/fetching-salesforce-docs/SKILL.md +0 -1
- package/skills/generating-custom-lightning-type/SKILL.md +17 -39
- package/skills/generating-custom-lightning-type/assets/primitive-types-and-constraints.md +41 -0
- package/skills/generating-custom-lightning-type/references/widget-rendition.md +124 -0
- package/skills/generating-lwc-components/SKILL.md +0 -1
- package/skills/generating-mermaid-diagrams/SKILL.md +0 -1
- package/skills/generating-visual-diagrams/SKILL.md +0 -1
- package/skills/handling-sf-data/SKILL.md +0 -1
- package/skills/harmonizing-datacloud/SKILL.md +0 -1
- package/skills/integrating-b2b-commerce-open-code-components/SKILL.md +0 -1
- package/skills/investigating-agentforce-architecture/README.md +156 -0
- package/skills/investigating-agentforce-architecture/SKILL.md +230 -0
- package/skills/investigating-agentforce-architecture/assets/cli/describe_sobject.yaml +16 -0
- package/skills/investigating-agentforce-architecture/assets/cli/describe_tooling_sobject.yaml +17 -0
- package/skills/investigating-agentforce-architecture/assets/cli/list_metadata_genaiprompttemplate.yaml +17 -0
- package/skills/investigating-agentforce-architecture/assets/cli/org_display.yaml +15 -0
- package/skills/investigating-agentforce-architecture/assets/cli/retrieve_genai_plugin.yaml +18 -0
- package/skills/investigating-agentforce-architecture/assets/cli/show_access_token.yaml +27 -0
- package/skills/investigating-agentforce-architecture/assets/mermaid/action_tree.mmd +20 -0
- package/skills/investigating-agentforce-architecture/assets/mermaid/data_flow.mmd +19 -0
- package/skills/investigating-agentforce-architecture/assets/mermaid/dependency_graph.mmd +19 -0
- package/skills/investigating-agentforce-architecture/assets/mermaid/invocation_sequence.mmd +20 -0
- package/skills/investigating-agentforce-architecture/assets/mermaid/planner_state.mmd +18 -0
- package/skills/investigating-agentforce-architecture/assets/soql/apex_class_bodies_by_ids.soql +3 -0
- package/skills/investigating-agentforce-architecture/assets/soql/apex_class_bodies_by_names.soql +3 -0
- package/skills/investigating-agentforce-architecture/assets/soql/bot_definition_details.soql +3 -0
- package/skills/investigating-agentforce-architecture/assets/soql/bot_version_lookup.soql +4 -0
- package/skills/investigating-agentforce-architecture/assets/soql/flow_definition_by_ids.soql +3 -0
- package/skills/investigating-agentforce-architecture/assets/soql/flow_definition_ids_by_names.soql +3 -0
- package/skills/investigating-agentforce-architecture/assets/soql/flow_definition_view_by_durable_ids.soql +4 -0
- package/skills/investigating-agentforce-architecture/assets/soql/flow_metadata_by_id.soql +3 -0
- package/skills/investigating-agentforce-architecture/assets/soql/functions_by_plugins.soql +5 -0
- package/skills/investigating-agentforce-architecture/assets/soql/planner_attrs_by_parent_ids.soql +3 -0
- package/skills/investigating-agentforce-architecture/assets/soql/planner_bundle_functions.soql +3 -0
- package/skills/investigating-agentforce-architecture/assets/soql/planner_definition_by_agent_chain.soql +3 -0
- package/skills/investigating-agentforce-architecture/assets/soql/plugin_functions_by_plugin_ids.soql +3 -0
- package/skills/investigating-agentforce-architecture/assets/soql/plugin_instructions_by_plugin_ids.soql +3 -0
- package/skills/investigating-agentforce-architecture/assets/soql/plugins_by_planner.soql +4 -0
- package/skills/investigating-agentforce-architecture/references/architecture_sections.md +243 -0
- package/skills/investigating-agentforce-architecture/references/contract.json +244 -0
- package/skills/investigating-agentforce-architecture/references/soql_fields.md +512 -0
- package/skills/investigating-agentforce-architecture/scripts/_shared/__init__.py +1 -0
- package/skills/investigating-agentforce-architecture/scripts/_shared/fs_guard.py +329 -0
- package/skills/investigating-agentforce-architecture/scripts/_shared/paths.py +110 -0
- package/skills/investigating-agentforce-architecture/scripts/_shared/runtime.py +59 -0
- package/skills/investigating-agentforce-architecture/scripts/_shared/sql.py +10 -0
- package/skills/investigating-agentforce-architecture/scripts/cache_check.py +234 -0
- package/skills/investigating-agentforce-architecture/scripts/config.py +131 -0
- package/skills/investigating-agentforce-architecture/scripts/fetch_soql.py +689 -0
- package/skills/investigating-agentforce-architecture/scripts/finalize.py +295 -0
- package/skills/investigating-agentforce-architecture/scripts/main.py +2835 -0
- package/skills/investigating-agentforce-architecture/scripts/metadata_listing.py +265 -0
- package/skills/investigating-agentforce-architecture/scripts/parallel_retrieve.py +69 -0
- package/skills/investigating-agentforce-architecture/scripts/parse_bundle.py +215 -0
- package/skills/investigating-agentforce-architecture/scripts/parse_wave.py +845 -0
- package/skills/investigating-agentforce-architecture/scripts/probe_channels.py +302 -0
- package/skills/investigating-agentforce-architecture/scripts/render_architecture.py +1043 -0
- package/skills/investigating-agentforce-architecture/scripts/resolve_bot.py +255 -0
- package/skills/investigating-agentforce-architecture/scripts/resolve_invocation_target.py +130 -0
- package/skills/investigating-agentforce-architecture/scripts/rest_client.py +763 -0
- package/skills/investigating-agentforce-architecture/scripts/retrieve_planner.py +13 -0
- package/skills/investigating-agentforce-architecture/scripts/sf_cli.py +242 -0
- package/skills/investigating-agentforce-architecture/scripts/soql_loader.py +253 -0
- package/skills/investigating-agentforce-architecture/scripts/summarize_tree.py +143 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/__init__.py +0 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/_bootstrap.py +23 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/fixtures/__init__.py +0 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/fixtures/genai_payloads.py +400 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_cache_check.py +307 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_cache_check_main.py +283 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_config.py +115 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_end_to_end_fixture.py +651 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_finalize.py +278 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_flow_children_inflation.py +582 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_fs_guard.py +113 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_iterative_wave_b.py +478 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_main_pipeline.py +3359 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_parallel_retrieve.py +131 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_parse_bundle.py +400 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_parse_wave.py +644 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_parse_wave_classifiers.py +224 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_parse_wave_helpers.py +380 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_parse_wave_main.py +397 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_per_branch_visited.py +244 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_probe_channels.py +359 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_probe_cli_recipes.py +185 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_render_architecture.py +810 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_resolve_bot.py +203 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_resolve_creds.py +157 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_resolve_invocation_target.py +145 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_rest_client.py +1253 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_runtime_override.py +100 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_sf_cli.py +261 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_signature_stamping.py +466 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_soql_loader.py +501 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_summarize_tree.py +241 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_write_emit_ctx.py +480 -0
- package/skills/investigating-agentforce-architecture/tools/emit_env.py +157 -0
- package/skills/investigating-agentforce-architecture/tools/emit_result.py +262 -0
- package/skills/investigating-agentforce-architecture/tools/sanitize.py +33 -0
- package/skills/investigating-agentforce-architecture/tools/write_emit_ctx.py +332 -0
- package/skills/investigating-agentforce-d360/README.md +123 -0
- package/skills/investigating-agentforce-d360/SKILL.md +163 -0
- package/skills/investigating-agentforce-d360/assets/dc/app_generation.sql +51 -0
- package/skills/investigating-agentforce-d360/assets/dc/content_category.sql +44 -0
- package/skills/investigating-agentforce-d360/assets/dc/content_quality.sql +41 -0
- package/skills/investigating-agentforce-d360/assets/dc/discover_sessions.sql +36 -0
- package/skills/investigating-agentforce-d360/assets/dc/feedback.sql +47 -0
- package/skills/investigating-agentforce-d360/assets/dc/feedback_details.sql +38 -0
- package/skills/investigating-agentforce-d360/assets/dc/gateway_records.sql +45 -0
- package/skills/investigating-agentforce-d360/assets/dc/gateway_request_llm.sql +50 -0
- package/skills/investigating-agentforce-d360/assets/dc/gateway_request_metadata.sql +44 -0
- package/skills/investigating-agentforce-d360/assets/dc/gateway_request_tags.sql +42 -0
- package/skills/investigating-agentforce-d360/assets/dc/gateway_requests.sql +89 -0
- package/skills/investigating-agentforce-d360/assets/dc/gateway_responses.sql +43 -0
- package/skills/investigating-agentforce-d360/assets/dc/generations.sql +52 -0
- package/skills/investigating-agentforce-d360/assets/dc/interactions.sql +53 -0
- package/skills/investigating-agentforce-d360/assets/dc/messages.sql +53 -0
- package/skills/investigating-agentforce-d360/assets/dc/messaging_session.sql +37 -0
- package/skills/investigating-agentforce-d360/assets/dc/moment_interactions.sql +34 -0
- package/skills/investigating-agentforce-d360/assets/dc/moments.sql +39 -0
- package/skills/investigating-agentforce-d360/assets/dc/participants.sql +48 -0
- package/skills/investigating-agentforce-d360/assets/dc/sessions.sql +78 -0
- package/skills/investigating-agentforce-d360/assets/dc/steps.sql +64 -0
- package/skills/investigating-agentforce-d360/assets/dc/tag_associations.sql +46 -0
- package/skills/investigating-agentforce-d360/assets/dc/tag_definition_associations.sql +37 -0
- package/skills/investigating-agentforce-d360/assets/dc/tag_definitions.sql +50 -0
- package/skills/investigating-agentforce-d360/assets/dc/tags.sql +37 -0
- package/skills/investigating-agentforce-d360/assets/dc/telemetry_spans.sql +55 -0
- package/skills/investigating-agentforce-d360/references/artifacts.md +50 -0
- package/skills/investigating-agentforce-d360/references/dc_dmo_fields.md +823 -0
- package/skills/investigating-agentforce-d360/references/dc_pipeline_contract.md +608 -0
- package/skills/investigating-agentforce-d360/scripts/_shared/__init__.py +2 -0
- package/skills/investigating-agentforce-d360/scripts/_shared/cli_override.py +98 -0
- package/skills/investigating-agentforce-d360/scripts/_shared/fs_guard.py +334 -0
- package/skills/investigating-agentforce-d360/scripts/_shared/paths.py +155 -0
- package/skills/investigating-agentforce-d360/scripts/_shared/runtime.py +59 -0
- package/skills/investigating-agentforce-d360/scripts/_shared/sql.py +14 -0
- package/skills/investigating-agentforce-d360/scripts/assemble_dc.py +1624 -0
- package/skills/investigating-agentforce-d360/scripts/config.py +45 -0
- package/skills/investigating-agentforce-d360/scripts/dc.py +188 -0
- package/skills/investigating-agentforce-d360/scripts/discover_sessions.py +556 -0
- package/skills/investigating-agentforce-d360/scripts/fetch_dc.py +1045 -0
- package/skills/investigating-agentforce-d360/scripts/render_dc.py +1750 -0
- package/skills/investigating-agentforce-d360/scripts/resolve_session.py +264 -0
- package/skills/investigating-agentforce-d360/scripts/storage.py +92 -0
- package/skills/investigating-agentforce-d360/scripts/tests/__init__.py +0 -0
- package/skills/investigating-agentforce-d360/scripts/tests/_bootstrap.py +15 -0
- package/skills/investigating-agentforce-d360/scripts/tests/fixtures/__init__.py +0 -0
- package/skills/investigating-agentforce-d360/scripts/tests/fixtures/synthetic_session.py +424 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_assemble_dc_bootstrap_and_mode.py +115 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_assemble_dc_gateway_direct.py +220 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_assemble_dc_gateway_direct_integration.py +158 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_assemble_dc_helpers.py +287 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_assemble_dc_integration.py +247 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_dc_and_resolve_session.py +433 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_discover_sessions.py +458 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_discover_sessions_grep_ci.py +193 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_fetch_dc_helpers.py +266 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_fetch_dc_identity.py +528 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_fetch_dc_main.py +251 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_fetch_dc_waterfall.py +229 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_fetch_dc_waterfall_full.py +283 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_identity_coherence.py +327 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_render_dc_branches.py +256 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_render_dc_gateway_direct.py +130 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_render_dc_helpers.py +291 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_render_dc_integration.py +220 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_render_dc_planner_llm_calls.py +284 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_render_dc_show_prompts_gating.py +215 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_resolve_from_disk.py +100 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_resolve_session_main.py +149 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_runtime_override.py +104 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_session_shape.py +95 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_session_shape_dropped_by_stdm.py +85 -0
- package/skills/managing-managed-event-subscription/SKILL.md +152 -0
- package/skills/managing-managed-event-subscription/assets/managed-event-subscription-template.xml +20 -0
- package/skills/managing-managed-event-subscription/references/delete-guide.md +57 -0
- package/skills/managing-managed-event-subscription/references/topic-name-formats.md +26 -0
- package/skills/managing-managed-event-subscription/references/update-constraints.md +30 -0
- package/skills/modeling-omnistudio-epc-catalog/SKILL.md +0 -1
- package/skills/observing-agentforce/SKILL.md +0 -1
- package/skills/orchestrating-datacloud/SKILL.md +0 -1
- package/skills/preparing-datacloud/SKILL.md +0 -1
- package/skills/querying-soql/SKILL.md +0 -1
- package/skills/retrieving-datacloud/SKILL.md +0 -1
- package/skills/running-apex-tests/SKILL.md +0 -1
- package/skills/running-code-analyzer/SKILL.md +0 -1
- package/skills/segmenting-datacloud/SKILL.md +0 -1
- package/skills/testing-agentforce/SKILL.md +0 -1
- package/skills/uplifting-components-to-slds2/SKILL.md +3 -2
- package/skills/uplifting-components-to-slds2/references/color-hooks-decision-guide.md +30 -9
- package/skills/uplifting-components-to-slds2/references/examples.md +24 -6
- package/skills/validating-slds/SKILL.md +262 -0
- package/skills/validating-slds/references/quality-checks.md +308 -0
- package/skills/validating-slds/references/report-format.md +302 -0
- package/skills/validating-slds/scripts/analyze-quality.cjs +521 -0
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: slds.guidance.utilities.name-value-list
|
|
3
|
+
title: Name-Value List Utilities
|
|
4
|
+
description: SLDS name-value list utility classes for structured data display
|
|
5
|
+
summary: "Utilities for structured data lists (labels and details). Creates horizontal, vertical, and inline label-value pair layouts."
|
|
6
|
+
|
|
7
|
+
artifact_type: reference
|
|
8
|
+
domain: utilities
|
|
9
|
+
topic: name-value-list
|
|
10
|
+
|
|
11
|
+
content_format: structured
|
|
12
|
+
complexity: intermediate
|
|
13
|
+
audience: [implementer]
|
|
14
|
+
|
|
15
|
+
tasks: [implement]
|
|
16
|
+
|
|
17
|
+
refs:
|
|
18
|
+
- slds.guidance.utilities
|
|
19
|
+
- slds.guidance.overview.utilities
|
|
20
|
+
- slds.guidance.hooks.spacing
|
|
21
|
+
|
|
22
|
+
tags: [utilities, name-value-list, data-display, lists]
|
|
23
|
+
keywords: [slds-list_horizontal, slds-list_vertical, slds-list_inline, slds-item_label, slds-item_detail]
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
# Name-Value List - Structured Data Display
|
|
27
|
+
|
|
28
|
+
Creating label-value pair layouts in horizontal, vertical, and inline configurations.
|
|
29
|
+
|
|
30
|
+
## Core Classes
|
|
31
|
+
|
|
32
|
+
| Class | Purpose |
|
|
33
|
+
|-------|---------|
|
|
34
|
+
| `slds-list_horizontal` | Layout container for horizontal name-value pairs with 30/70 split |
|
|
35
|
+
| `slds-list_vertical` | Layout container for vertical (stacked) name-value pairs |
|
|
36
|
+
| `slds-list_inline` | Inline flex container for compact name-value pairs |
|
|
37
|
+
| `slds-item_label` | Label element with 30% width and right padding (12px) |
|
|
38
|
+
| `slds-item_detail` | Detail/value element with 70% width |
|
|
39
|
+
|
|
40
|
+
## Layout Variants
|
|
41
|
+
|
|
42
|
+
### Horizontal Layout (30/70 Split)
|
|
43
|
+
| Variant | Label Width | Detail Width | Spacing |
|
|
44
|
+
|---------|-------------|--------------|---------|
|
|
45
|
+
| `slds-list_horizontal` | 30% | 70% | 12px gap |
|
|
46
|
+
|
|
47
|
+
### Vertical Layout
|
|
48
|
+
| Variant | Display | Spacing |
|
|
49
|
+
|---------|---------|---------|
|
|
50
|
+
| `slds-list_vertical` | Block stacked | Default line height |
|
|
51
|
+
|
|
52
|
+
### Inline Layout
|
|
53
|
+
| Variant | Display | Max Width |
|
|
54
|
+
|---------|---------|-----------|
|
|
55
|
+
| `slds-list_inline` | `inline-flex` | 100% |
|
|
56
|
+
|
|
57
|
+
## Common Patterns
|
|
58
|
+
|
|
59
|
+
### Horizontal Name-Value List
|
|
60
|
+
```html
|
|
61
|
+
<!-- Standard 30/70 horizontal layout -->
|
|
62
|
+
<dl class="slds-list_horizontal">
|
|
63
|
+
<dt class="slds-item_label">Account Name</dt>
|
|
64
|
+
<dd class="slds-item_detail">Acme Corporation</dd>
|
|
65
|
+
|
|
66
|
+
<dt class="slds-item_label">Account Type</dt>
|
|
67
|
+
<dd class="slds-item_detail">Enterprise Customer</dd>
|
|
68
|
+
|
|
69
|
+
<dt class="slds-item_label">Industry</dt>
|
|
70
|
+
<dd class="slds-item_detail">Technology</dd>
|
|
71
|
+
</dl>
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### Vertical Stacked List
|
|
75
|
+
```html
|
|
76
|
+
<!-- Vertical stacked layout for long content -->
|
|
77
|
+
<dl class="slds-list_vertical">
|
|
78
|
+
<dt class="slds-item_label">Description</dt>
|
|
79
|
+
<dd class="slds-item_detail">
|
|
80
|
+
This is a detailed description that spans multiple lines
|
|
81
|
+
and works better in a vertical layout.
|
|
82
|
+
</dd>
|
|
83
|
+
|
|
84
|
+
<dt class="slds-item_label">Notes</dt>
|
|
85
|
+
<dd class="slds-item_detail">
|
|
86
|
+
Additional notes and comments that may be lengthy.
|
|
87
|
+
</dd>
|
|
88
|
+
</dl>
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### Inline Compact List
|
|
92
|
+
```html
|
|
93
|
+
<!-- Inline layout for compact display -->
|
|
94
|
+
<dl class="slds-list_inline">
|
|
95
|
+
<dt class="slds-item_label">Status:</dt>
|
|
96
|
+
<dd class="slds-item_detail">Active</dd>
|
|
97
|
+
|
|
98
|
+
<dt class="slds-item_label">Priority:</dt>
|
|
99
|
+
<dd class="slds-item_detail">High</dd>
|
|
100
|
+
</dl>
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
### Mixed Layout in Card
|
|
104
|
+
```html
|
|
105
|
+
<!-- Name-value list within a card component -->
|
|
106
|
+
<article class="slds-card">
|
|
107
|
+
<div class="slds-card__header">
|
|
108
|
+
<h2>Contact Details</h2>
|
|
109
|
+
</div>
|
|
110
|
+
<div class="slds-card__body">
|
|
111
|
+
<dl class="slds-list_horizontal">
|
|
112
|
+
<dt class="slds-item_label">Name</dt>
|
|
113
|
+
<dd class="slds-item_detail">John Smith</dd>
|
|
114
|
+
|
|
115
|
+
<dt class="slds-item_label">Email</dt>
|
|
116
|
+
<dd class="slds-item_detail">john.smith@example.com</dd>
|
|
117
|
+
|
|
118
|
+
<dt class="slds-item_label">Phone</dt>
|
|
119
|
+
<dd class="slds-item_detail">(555) 123-4567</dd>
|
|
120
|
+
</dl>
|
|
121
|
+
</div>
|
|
122
|
+
</article>
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
## Best Practices
|
|
126
|
+
|
|
127
|
+
✅ Use `slds-list_horizontal` for compact record details with short values
|
|
128
|
+
✅ Use `slds-list_vertical` for long text content or descriptions
|
|
129
|
+
✅ Use `slds-list_inline` for status indicators and brief metadata
|
|
130
|
+
✅ Use semantic `<dl>`, `<dt>`, `<dd>` elements for accessibility
|
|
131
|
+
✅ Apply `slds-item_label` to `<dt>` and `slds-item_detail` to `<dd>`
|
|
132
|
+
✅ Maintain the 30/70 ratio for horizontal layouts to ensure consistency
|
|
133
|
+
|
|
134
|
+
❌ Avoid using name-value lists for form inputs (use form layouts instead)
|
|
135
|
+
❌ Avoid mixing layout types within the same list
|
|
136
|
+
❌ Never omit `slds-item_label` or `slds-item_detail` classes
|
|
137
|
+
❌ Avoid horizontal layout for values longer than 2-3 lines
|
|
138
|
+
|
|
139
|
+
## Spacing Details
|
|
140
|
+
|
|
141
|
+
The name-value list utilities use these specific spacing tokens:
|
|
142
|
+
- **Horizontal gap**: `var(--slds-g-spacing-3)` (12px)
|
|
143
|
+
- **Inline spacing**: `var(--slds-g-spacing-3)` to `var(--slds-g-spacing-4)` (12-16px)
|
|
144
|
+
- **Label padding**: `padding-inline-end: var(--slds-g-spacing-3)` (12px right padding)
|
|
145
|
+
|
|
146
|
+
## Accessibility Notes
|
|
147
|
+
|
|
148
|
+
- Use `<dl>` (description list) as the container
|
|
149
|
+
- Use `<dt>` (description term) for labels with `slds-item_label`
|
|
150
|
+
- Use `<dd>` (description details) for values with `slds-item_detail`
|
|
151
|
+
- Screen readers announce the semantic relationship between labels and values
|
|
152
|
+
- Maintain logical reading order in the HTML structure
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: slds.guidance.utilities.padding
|
|
3
|
+
title: Padding Utilities
|
|
4
|
+
description: SLDS padding utility classes for internal spacing
|
|
5
|
+
summary: "Utilities for internal spacing within elements. Includes directional variants, size scale from xxx-small to xx-large, and variable density classes."
|
|
6
|
+
|
|
7
|
+
artifact_type: reference
|
|
8
|
+
domain: utilities
|
|
9
|
+
topic: padding
|
|
10
|
+
|
|
11
|
+
content_format: structured
|
|
12
|
+
complexity: intermediate
|
|
13
|
+
audience: [implementer]
|
|
14
|
+
|
|
15
|
+
tasks: [implement]
|
|
16
|
+
|
|
17
|
+
refs:
|
|
18
|
+
- slds.guidance.utilities
|
|
19
|
+
- slds.guidance.overview.utilities
|
|
20
|
+
- slds.guidance.utilities.margin
|
|
21
|
+
- slds.guidance.hooks.spacing
|
|
22
|
+
|
|
23
|
+
tags: [utilities, padding, spacing, internal-spacing]
|
|
24
|
+
keywords: [slds-p, slds-p-around, slds-p-horizontal, slds-p-vertical, padding]
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
# Padding - Internal Spacing
|
|
28
|
+
|
|
29
|
+
Internal spacing within elements. Base unit: **4px**.
|
|
30
|
+
|
|
31
|
+
## Size Scale
|
|
32
|
+
|
|
33
|
+
| Size | Token | Value | Pixels |
|
|
34
|
+
|------|-------|-------|--------|
|
|
35
|
+
| `none` | 0 | 0 | 0px |
|
|
36
|
+
| `xxx-small` | `--slds-g-spacing-1` | 0.125rem | 2px |
|
|
37
|
+
| `xx-small` | `--slds-g-spacing-2` | 0.25rem | 4px |
|
|
38
|
+
| `x-small` | `--slds-g-spacing-3` | 0.5rem | 8px |
|
|
39
|
+
| `small` | `--slds-g-spacing-4` | 0.75rem | 12px |
|
|
40
|
+
| `medium` | `--slds-g-spacing-5` | 1rem | 16px |
|
|
41
|
+
| `large` | `--slds-g-spacing-6` | 1.5rem | 24px |
|
|
42
|
+
| `x-large` | `--slds-g-spacing-7` | 2rem | 32px |
|
|
43
|
+
| `xx-large` | `--slds-g-spacing-8` | 3rem | 48px |
|
|
44
|
+
|
|
45
|
+
## Core Classes
|
|
46
|
+
|
|
47
|
+
### Directional Padding
|
|
48
|
+
|
|
49
|
+
| Class | Purpose |
|
|
50
|
+
|-------|---------|
|
|
51
|
+
| `slds-p-top_*` | Applies padding to element's top edge |
|
|
52
|
+
| `slds-p-right_*` | Applies padding to element's right edge |
|
|
53
|
+
| `slds-p-bottom_*` | Applies padding to element's bottom edge |
|
|
54
|
+
| `slds-p-left_*` | Applies padding to element's left edge |
|
|
55
|
+
| `slds-p-horizontal_*` | Applies padding to left and right edges |
|
|
56
|
+
| `slds-p-vertical_*` | Applies padding to top and bottom edges |
|
|
57
|
+
| `slds-p-around_*` | Applies padding to all four edges |
|
|
58
|
+
|
|
59
|
+
### Special Classes
|
|
60
|
+
|
|
61
|
+
| Class | Purpose |
|
|
62
|
+
|-------|---------|
|
|
63
|
+
| `slds-has-cushion` | Applies default padding of 12px (small) to all sides |
|
|
64
|
+
|
|
65
|
+
## Common Patterns
|
|
66
|
+
|
|
67
|
+
```html
|
|
68
|
+
<!-- Card with standard padding -->
|
|
69
|
+
<div class="slds-card">
|
|
70
|
+
<div class="slds-card__header slds-p-around_medium">
|
|
71
|
+
<!-- 16px padding on all sides -->
|
|
72
|
+
Card Header
|
|
73
|
+
</div>
|
|
74
|
+
<div class="slds-card__body slds-p-horizontal_medium slds-p-vertical_small">
|
|
75
|
+
<!-- 16px left/right, 12px top/bottom -->
|
|
76
|
+
Card Content
|
|
77
|
+
</div>
|
|
78
|
+
</div>
|
|
79
|
+
|
|
80
|
+
<!-- Button with extra padding -->
|
|
81
|
+
<button class="slds-button slds-button_neutral slds-p-horizontal_large">
|
|
82
|
+
<!-- 24px left and right padding for wider button -->
|
|
83
|
+
Wide Action Button
|
|
84
|
+
</button>
|
|
85
|
+
|
|
86
|
+
<!-- Form element spacing -->
|
|
87
|
+
<div class="slds-form-element slds-p-bottom_small">
|
|
88
|
+
<!-- 12px bottom padding between form elements -->
|
|
89
|
+
<label class="slds-form-element__label">Field Label</label>
|
|
90
|
+
<div class="slds-form-element__control">
|
|
91
|
+
<input type="text" class="slds-input" />
|
|
92
|
+
</div>
|
|
93
|
+
</div>
|
|
94
|
+
|
|
95
|
+
<!-- Modal with appropriate padding -->
|
|
96
|
+
<div class="slds-modal__container">
|
|
97
|
+
<div class="slds-modal__header slds-p-around_medium">
|
|
98
|
+
<!-- 16px padding in header -->
|
|
99
|
+
Modal Title
|
|
100
|
+
</div>
|
|
101
|
+
<div class="slds-modal__content slds-p-around_large">
|
|
102
|
+
<!-- 24px padding for modal body content -->
|
|
103
|
+
Modal content with comfortable spacing
|
|
104
|
+
</div>
|
|
105
|
+
<div class="slds-modal__footer slds-p-around_medium">
|
|
106
|
+
<!-- 16px padding in footer -->
|
|
107
|
+
Footer actions
|
|
108
|
+
</div>
|
|
109
|
+
</div>
|
|
110
|
+
|
|
111
|
+
<!-- List item with asymmetric padding -->
|
|
112
|
+
<li class="slds-p-vertical_x-small slds-p-horizontal_medium">
|
|
113
|
+
<!-- 8px top/bottom, 16px left/right for list items -->
|
|
114
|
+
List item with comfortable touch target
|
|
115
|
+
</li>
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
## Variable Density Classes
|
|
119
|
+
|
|
120
|
+
Adapt padding to user density preferences (comfy/compact modes).
|
|
121
|
+
|
|
122
|
+
| Class | Comfy Mode | Compact Mode |
|
|
123
|
+
|-------|------------|--------------|
|
|
124
|
+
| `slds-var-p-around_small` | 0.75rem (12px) | 0.375rem (6px) |
|
|
125
|
+
| `slds-var-p-around_medium` | 1rem (16px) | 0.5rem (8px) |
|
|
126
|
+
| `slds-var-p-around_large` | 1.5rem (24px) | 0.75rem (12px) |
|
|
127
|
+
| `slds-var-p-horizontal_medium` | 1rem (16px) | 0.5rem (8px) |
|
|
128
|
+
| `slds-var-p-vertical_medium` | 1rem (16px) | 0.5rem (8px) |
|
|
129
|
+
|
|
130
|
+
## Common Use Cases
|
|
131
|
+
|
|
132
|
+
| Use Case | Class | Value |
|
|
133
|
+
|----------|-------|-------|
|
|
134
|
+
| Card body padding | `slds-p-around_medium` | 16px all sides |
|
|
135
|
+
| Button padding | `slds-p-horizontal_medium` | 16px left/right |
|
|
136
|
+
| Modal content | `slds-p-around_large` | 24px all sides |
|
|
137
|
+
| List item padding | `slds-p-vertical_x-small slds-p-horizontal_medium` | 8px top/bottom, 16px left/right |
|
|
138
|
+
| Compact form fields | `slds-p-around_small` | 12px all sides |
|
|
139
|
+
| Section padding | `slds-p-vertical_large` | 24px top/bottom |
|
|
140
|
+
| Icon button padding | `slds-p-around_x-small` | 8px all sides |
|
|
141
|
+
| Remove padding | `slds-p-around_none` | 0px all sides |
|
|
142
|
+
|
|
143
|
+
## Best Practices
|
|
144
|
+
|
|
145
|
+
✅ Use `slds-p-around_medium` (16px) for standard component padding
|
|
146
|
+
✅ Use `slds-p-around_small` (12px) for compact layouts and dense information
|
|
147
|
+
✅ Use `slds-p-around_large` (24px) for spacious layouts and primary content areas
|
|
148
|
+
✅ Use `slds-p-horizontal_*` and `slds-p-vertical_*` for asymmetric padding
|
|
149
|
+
✅ Use `slds-has-cushion` for quick default padding of 12px
|
|
150
|
+
✅ Use variable density classes (`slds-var-p-*`) for responsive density
|
|
151
|
+
|
|
152
|
+
❌ Avoid combining `slds-has-cushion` with other padding classes
|
|
153
|
+
❌ Avoid using padding for external spacing between elements (use [Margin Utilities](ref:slds.guidance.utilities.margin) instead)
|
|
154
|
+
❌ Avoid mixing different size scales within the same component
|
|
155
|
+
❌ Avoid excessive padding that creates wasted space
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: slds.guidance.utilities.position
|
|
3
|
+
title: Position Utilities
|
|
4
|
+
description: SLDS CSS positioning utility classes
|
|
5
|
+
summary: "Utilities for CSS positioning (static, relative, absolute, fixed). Controls element positioning for dropdowns, modals, and overlays."
|
|
6
|
+
|
|
7
|
+
artifact_type: reference
|
|
8
|
+
domain: utilities
|
|
9
|
+
topic: position
|
|
10
|
+
|
|
11
|
+
content_format: structured
|
|
12
|
+
complexity: intermediate
|
|
13
|
+
audience: [implementer]
|
|
14
|
+
|
|
15
|
+
tasks: [implement]
|
|
16
|
+
|
|
17
|
+
refs:
|
|
18
|
+
- slds.guidance.utilities
|
|
19
|
+
- slds.guidance.overview.utilities
|
|
20
|
+
|
|
21
|
+
tags: [utilities, position, css-positioning]
|
|
22
|
+
keywords: [slds-is-relative, slds-is-absolute, slds-is-fixed, slds-is-static]
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
# Position - CSS Positioning Control
|
|
26
|
+
|
|
27
|
+
CSS positioning including static, relative, absolute, and fixed positioning.
|
|
28
|
+
|
|
29
|
+
## Core Classes
|
|
30
|
+
|
|
31
|
+
| Class | CSS Property | Purpose |
|
|
32
|
+
|-------|-------------|---------|
|
|
33
|
+
| `slds-is-static` | `position: static` | Reset element to normal document flow |
|
|
34
|
+
| `slds-is-relative` | `position: relative` | Position element relative to its normal position, create containing block for absolute children |
|
|
35
|
+
| `slds-is-absolute` | `position: absolute` | Position element relative to nearest positioned ancestor |
|
|
36
|
+
| `slds-is-fixed` | `position: fixed` | Position element relative to viewport |
|
|
37
|
+
|
|
38
|
+
## Common Patterns
|
|
39
|
+
|
|
40
|
+
### Dropdown Positioning
|
|
41
|
+
```html
|
|
42
|
+
<!-- Dropdown container with relative positioning -->
|
|
43
|
+
<div class="slds-dropdown-trigger slds-is-relative">
|
|
44
|
+
<button class="slds-button">Actions</button>
|
|
45
|
+
<!-- Dropdown positioned absolutely below trigger -->
|
|
46
|
+
<div class="slds-dropdown slds-is-absolute" style="top: 100%; left: 0;">
|
|
47
|
+
<ul class="slds-dropdown__list">
|
|
48
|
+
<li class="slds-dropdown__item">Edit</li>
|
|
49
|
+
<li class="slds-dropdown__item">Delete</li>
|
|
50
|
+
</ul>
|
|
51
|
+
</div>
|
|
52
|
+
</div>
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### Modal Overlay
|
|
56
|
+
```html
|
|
57
|
+
<!-- Fixed position modal covering viewport -->
|
|
58
|
+
<section class="slds-modal slds-is-fixed" style="top: 0; left: 0; right: 0; bottom: 0; z-index: 9000;">
|
|
59
|
+
<div class="slds-modal__container">
|
|
60
|
+
<div class="slds-modal__content">
|
|
61
|
+
Modal content here
|
|
62
|
+
</div>
|
|
63
|
+
</div>
|
|
64
|
+
</section>
|
|
65
|
+
<!-- Fixed backdrop behind modal -->
|
|
66
|
+
<div class="slds-backdrop slds-is-fixed" style="top: 0; left: 0; width: 100%; height: 100%; z-index: 8999;"></div>
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### Badge Indicator
|
|
70
|
+
```html
|
|
71
|
+
<!-- Icon with absolutely positioned badge -->
|
|
72
|
+
<div class="slds-icon_container slds-is-relative">
|
|
73
|
+
<svg class="slds-icon slds-icon-text-default">
|
|
74
|
+
<use xlink:href="/assets/icons/utility-sprite.svg#notification"></use>
|
|
75
|
+
</svg>
|
|
76
|
+
<!-- Badge positioned at top-right corner -->
|
|
77
|
+
<span class="slds-badge slds-is-absolute" style="top: -4px; right: -4px;">
|
|
78
|
+
5
|
|
79
|
+
</span>
|
|
80
|
+
</div>
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
### Tooltip Positioning
|
|
84
|
+
```html
|
|
85
|
+
<!-- Button with absolutely positioned tooltip -->
|
|
86
|
+
<div class="slds-is-relative">
|
|
87
|
+
<button class="slds-button">Hover for info</button>
|
|
88
|
+
<!-- Tooltip positioned above button -->
|
|
89
|
+
<div class="slds-popover slds-is-absolute" style="bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 0.5rem;">
|
|
90
|
+
<div class="slds-popover__body">Helpful information</div>
|
|
91
|
+
</div>
|
|
92
|
+
</div>
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### Sticky Elements
|
|
96
|
+
```html
|
|
97
|
+
<!-- Use CSS sticky for header (not utility class) -->
|
|
98
|
+
<header class="slds-page-header" style="position: sticky; top: 0; z-index: 100;">
|
|
99
|
+
Page header remains visible on scroll
|
|
100
|
+
</header>
|
|
101
|
+
|
|
102
|
+
<!-- Fixed action bar at bottom -->
|
|
103
|
+
<div class="slds-is-fixed" style="bottom: 0; left: 0; right: 0; z-index: 100;">
|
|
104
|
+
<div class="slds-button-group">
|
|
105
|
+
<button class="slds-button slds-button_brand">Save</button>
|
|
106
|
+
<button class="slds-button slds-button_neutral">Cancel</button>
|
|
107
|
+
</div>
|
|
108
|
+
</div>
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
## Best Practices
|
|
112
|
+
|
|
113
|
+
✅ Use `slds-is-relative` on parent containers for absolutely positioned children
|
|
114
|
+
✅ Use `slds-is-absolute` for dropdowns, tooltips, and popovers
|
|
115
|
+
✅ Use `slds-is-fixed` for modals, backdrops, and viewport-relative elements
|
|
116
|
+
✅ Always specify positioning coordinates (`top`, `right`, `bottom`, `left`)
|
|
117
|
+
✅ Include appropriate `z-index` values for stacking context
|
|
118
|
+
✅ Use `slds-is-static` to reset positioning when needed
|
|
119
|
+
|
|
120
|
+
❌ Never use `slds-is-absolute` without a positioned ancestor
|
|
121
|
+
❌ Avoid `slds-is-fixed` for elements that should scroll with content
|
|
122
|
+
❌ Never position elements without defining coordinates
|
|
123
|
+
❌ Avoid excessive z-index values (stay within defined ranges)
|
|
124
|
+
|
|
125
|
+
## Z-Index Guidelines
|
|
126
|
+
|
|
127
|
+
| Layer | Z-Index Range | Use For |
|
|
128
|
+
|-------|---------------|---------|
|
|
129
|
+
| Base content | 1-10 | Regular page elements |
|
|
130
|
+
| Dropdowns | 5000-5999 | Dropdown menus, select lists |
|
|
131
|
+
| Sticky elements | 6000-6999 | Sticky headers, navigation |
|
|
132
|
+
| Modals | 9000-9999 | Modal dialogs, overlays |
|
|
133
|
+
| Toasts | 10000+ | Toast notifications, alerts |
|
|
134
|
+
|
|
135
|
+
### Z-Index Example
|
|
136
|
+
```html
|
|
137
|
+
<!-- Properly layered elements -->
|
|
138
|
+
<div class="slds-dropdown slds-is-absolute" style="z-index: 5000;">Dropdown</div>
|
|
139
|
+
<header class="slds-is-fixed" style="z-index: 6000;">Sticky header</header>
|
|
140
|
+
<div class="slds-modal slds-is-fixed" style="z-index: 9000;">Modal</div>
|
|
141
|
+
<div class="slds-notification slds-is-fixed" style="z-index: 10000;">Toast</div>
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
## Positioning Coordinates
|
|
145
|
+
|
|
146
|
+
When using position utilities, always define coordinates:
|
|
147
|
+
|
|
148
|
+
| Coordinate | Description | Example |
|
|
149
|
+
|------------|-------------|---------|
|
|
150
|
+
| `top` | Distance from top edge | `top: 0` or `top: 100%` |
|
|
151
|
+
| `right` | Distance from right edge | `right: 0` or `right: 1rem` |
|
|
152
|
+
| `bottom` | Distance from bottom edge | `bottom: 0` or `bottom: 100%` |
|
|
153
|
+
| `left` | Distance from left edge | `left: 0` or `left: 50%` |
|
|
154
|
+
|
|
155
|
+
### Coordinate Combinations
|
|
156
|
+
```html
|
|
157
|
+
<!-- Full coverage -->
|
|
158
|
+
<div class="slds-is-fixed" style="top: 0; right: 0; bottom: 0; left: 0;">
|
|
159
|
+
|
|
160
|
+
<!-- Top-right corner -->
|
|
161
|
+
<div class="slds-is-absolute" style="top: 0; right: 0;">
|
|
162
|
+
|
|
163
|
+
<!-- Centered horizontally -->
|
|
164
|
+
<div class="slds-is-absolute" style="left: 50%; transform: translateX(-50%);">
|
|
165
|
+
|
|
166
|
+
<!-- Bottom-aligned -->
|
|
167
|
+
<div class="slds-is-absolute" style="bottom: 0; left: 0; right: 0;">
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
## Browser Compatibility
|
|
171
|
+
|
|
172
|
+
All position utilities are fully supported in modern browsers:
|
|
173
|
+
- Chrome 1+
|
|
174
|
+
- Firefox 1+
|
|
175
|
+
- Safari 1+
|
|
176
|
+
- Edge 12+
|
|
177
|
+
- No vendor prefixes required
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: slds.guidance.utilities.print
|
|
3
|
+
title: Print Utilities
|
|
4
|
+
description: SLDS print utility class for controlling element visibility when printing
|
|
5
|
+
summary: "Utility class (.slds-no-print) for hiding elements when printing."
|
|
6
|
+
|
|
7
|
+
artifact_type: reference
|
|
8
|
+
domain: utilities
|
|
9
|
+
topic: print
|
|
10
|
+
|
|
11
|
+
content_format: structured
|
|
12
|
+
complexity: intermediate
|
|
13
|
+
audience: [implementer]
|
|
14
|
+
|
|
15
|
+
tasks: [implement]
|
|
16
|
+
|
|
17
|
+
refs:
|
|
18
|
+
- slds.guidance.utilities
|
|
19
|
+
- slds.guidance.overview.utilities
|
|
20
|
+
|
|
21
|
+
tags: [utilities, print, visibility, media-query]
|
|
22
|
+
keywords: [slds-no-print, print, hide-on-print]
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
# Print - Print Visibility Control
|
|
26
|
+
|
|
27
|
+
Hiding elements when printing pages.
|
|
28
|
+
|
|
29
|
+
## Core Classes
|
|
30
|
+
|
|
31
|
+
| Class | Purpose |
|
|
32
|
+
|-------|---------|
|
|
33
|
+
| `slds-no-print` | Hides element when page is printed (display: none in @media print) |
|
|
34
|
+
|
|
35
|
+
## Common Patterns
|
|
36
|
+
|
|
37
|
+
```html
|
|
38
|
+
<!-- Hide navigation when printing -->
|
|
39
|
+
<nav class="slds-context-bar slds-no-print">
|
|
40
|
+
<!-- Navigation won't appear in printed output -->
|
|
41
|
+
<div class="slds-context-bar__primary">
|
|
42
|
+
Navigation Menu
|
|
43
|
+
</div>
|
|
44
|
+
</nav>
|
|
45
|
+
|
|
46
|
+
<!-- Hide action buttons when printing -->
|
|
47
|
+
<div class="slds-page-header">
|
|
48
|
+
<div class="slds-page-header__title">
|
|
49
|
+
Report Title
|
|
50
|
+
</div>
|
|
51
|
+
<div class="slds-page-header__controls slds-no-print">
|
|
52
|
+
<!-- Buttons hidden in print -->
|
|
53
|
+
<button class="slds-button slds-button_neutral">Edit</button>
|
|
54
|
+
<button class="slds-button slds-button_brand">Save</button>
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
|
|
58
|
+
<!-- Hide UI controls on data table -->
|
|
59
|
+
<table class="slds-table">
|
|
60
|
+
<thead>
|
|
61
|
+
<tr>
|
|
62
|
+
<th class="slds-no-print">
|
|
63
|
+
<!-- Checkbox column hidden in print -->
|
|
64
|
+
<input type="checkbox" />
|
|
65
|
+
</th>
|
|
66
|
+
<th>Name</th>
|
|
67
|
+
<th>Status</th>
|
|
68
|
+
<th class="slds-no-print">Actions</th>
|
|
69
|
+
</tr>
|
|
70
|
+
</thead>
|
|
71
|
+
<tbody>
|
|
72
|
+
<tr>
|
|
73
|
+
<td class="slds-no-print">
|
|
74
|
+
<input type="checkbox" />
|
|
75
|
+
</td>
|
|
76
|
+
<td>Record Name</td>
|
|
77
|
+
<td>Active</td>
|
|
78
|
+
<td class="slds-no-print">
|
|
79
|
+
<!-- Action buttons hidden in print -->
|
|
80
|
+
<button class="slds-button">Edit</button>
|
|
81
|
+
</td>
|
|
82
|
+
</tr>
|
|
83
|
+
</tbody>
|
|
84
|
+
</table>
|
|
85
|
+
|
|
86
|
+
<!-- Hide floating action button -->
|
|
87
|
+
<div class="slds-fab slds-no-print">
|
|
88
|
+
<!-- Floating button hidden in print -->
|
|
89
|
+
<button class="slds-button slds-button_icon">
|
|
90
|
+
<svg class="slds-button__icon"><!-- Icon --></svg>
|
|
91
|
+
</button>
|
|
92
|
+
</div>
|
|
93
|
+
|
|
94
|
+
<!-- Hide page footer with metadata -->
|
|
95
|
+
<footer class="slds-p-around_medium slds-no-print">
|
|
96
|
+
<!-- Footer info hidden in print -->
|
|
97
|
+
Last updated: Today at 3:45 PM
|
|
98
|
+
<br />
|
|
99
|
+
Page 1 of 10
|
|
100
|
+
</footer>
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
## Best Practices
|
|
104
|
+
|
|
105
|
+
✅ Use `slds-no-print` on navigation menus and app bars
|
|
106
|
+
✅ Use `slds-no-print` on action buttons and interactive controls
|
|
107
|
+
✅ Use `slds-no-print` on checkbox columns in data tables
|
|
108
|
+
✅ Use `slds-no-print` on floating action buttons and overlays
|
|
109
|
+
✅ Use `slds-no-print` on breadcrumbs and page metadata
|
|
110
|
+
✅ Test print preview to ensure proper hiding of elements
|
|
111
|
+
|
|
112
|
+
❌ Avoid hiding essential content that users need in printed output
|
|
113
|
+
❌ Avoid hiding data table headers or important labels
|
|
114
|
+
❌ Avoid hiding status badges or important visual indicators
|