@salesforce/ui-bundle-template-feature-angular-object-search 12.5.4
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.txt +82 -0
- package/README.md +101 -0
- package/dist/.forceignore +15 -0
- package/dist/.husky/pre-commit +4 -0
- package/dist/.prettierignore +11 -0
- package/dist/.prettierrc +17 -0
- package/dist/CHANGELOG.md +5238 -0
- package/dist/README.md +77 -0
- package/dist/config/project-scratch-def.json +13 -0
- package/dist/eslint.config.js +7 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/.forceignore +15 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/.graphqlrc.yml +2 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/.postcssrc.json +5 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/.prettierignore +8 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/.prettierrc +12 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/CHANGELOG.md +4 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/README.md +85 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/angular.json +98 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/codegen.yml +95 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/components.json +6 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/e2e/app.spec.ts +15 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/esbuild/api-version.mjs +17 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/esbuild/graphql-codegen.mjs +13 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/eslint-plugin-angular-graphql.js +148 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/eslint.config.js +76 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/feature-angular-object-search.uibundle-meta.xml +7 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/middleware/html.mjs +3 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/middleware/proxy.mjs +12 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/package.json +69 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/playwright.config.ts +25 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/public/favicon.ico +0 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/scripts/get-graphql-schema.mjs +69 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/scripts/rewrite-e2e-assets.mjs +30 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/api/account/account-search.service.ts +108 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/api/account/distinctAccountIndustries.ts +26 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/api/account/distinctAccountTypes.ts +26 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/api/account/getAccountDetail.ts +128 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/api/account/searchAccounts.ts +58 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/api/data-client.service.spec.ts +184 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/api/data-client.service.ts +74 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/api/graphql-operations-types.ts +29389 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/app.config.ts +20 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/app.html +1 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/app.routes.ts +32 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/app.spec.ts +18 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/app.ts +15 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/components/layout/app-layout/app-layout.html +51 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/components/layout/app-layout/app-layout.spec.ts +63 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/components/layout/app-layout/app-layout.ts +27 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/components/ui/alert/alert.html +27 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/components/ui/alert/alert.ts +41 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/components/ui/button/button.html +27 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/components/ui/button/button.ts +66 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/components/ui/card/card.ts +100 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/components/ui/collapsible/collapsible.html +38 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/components/ui/collapsible/collapsible.ts +21 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/components/ui/date-picker/date-picker.html +20 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/components/ui/date-picker/date-picker.ts +49 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/components/ui/date-range-picker/date-range-picker.html +20 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/components/ui/date-range-picker/date-range-picker.ts +69 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/components/ui/dialog/dialog.html +20 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/components/ui/dialog/dialog.ts +40 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/components/ui/dropdown-menu/dropdown-menu.html +20 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/components/ui/dropdown-menu/dropdown-menu.ts +100 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/components/ui/field/field.html +15 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/components/ui/field/field.ts +28 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/components/ui/field-appearance.ts +8 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/components/ui/field-size.ts +8 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/components/ui/icon/icon.ts +68 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/components/ui/input/input.html +34 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/components/ui/input/input.ts +79 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/components/ui/label/label.ts +21 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/components/ui/paginator/paginator.html +74 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/components/ui/paginator/paginator.ts +93 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/components/ui/paginator/types.ts +13 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/components/ui/popover/popover.html +13 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/components/ui/popover/popover.ts +37 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/components/ui/select/select.html +36 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/components/ui/select/select.ts +63 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/components/ui/separator/separator.ts +31 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/components/ui/skeleton/skeleton.ts +20 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/components/ui/spinner/spinner.ts +28 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/features/object-search/api/object-search.service.ts +94 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/features/object-search/breadcrumb/breadcrumb.html +34 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/features/object-search/breadcrumb/breadcrumb.ts +27 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/features/object-search/filters/active-filters.html +23 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/features/object-search/filters/active-filters.ts +78 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/features/object-search/filters/date-filter.html +18 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/features/object-search/filters/date-filter.ts +137 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/features/object-search/filters/date-range-filter.html +12 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/features/object-search/filters/date-range-filter.ts +60 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/features/object-search/filters/filter-field-wrapper.html +13 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/features/object-search/filters/filter-field-wrapper.ts +21 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/features/object-search/filters/multi-select-filter.html +11 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/features/object-search/filters/multi-select-filter.ts +58 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/features/object-search/filters/numeric-range-filter.html +22 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/features/object-search/filters/numeric-range-filter.ts +128 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/features/object-search/filters/search-filter.html +8 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/features/object-search/filters/search-filter.ts +78 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/features/object-search/filters/select-filter.html +9 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/features/object-search/filters/select-filter.ts +51 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/features/object-search/filters/text-filter.html +9 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/features/object-search/filters/text-filter.ts +76 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/features/object-search/object-search-state.service.ts +232 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/features/object-search/pagination/pagination.html +8 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/features/object-search/pagination/pagination.ts +45 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/features/object-search/search-bar/search-bar.html +10 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/features/object-search/search-bar/search-bar.ts +28 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/features/object-search/sort-control/sort-control.html +24 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/features/object-search/sort-control/sort-control.ts +65 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/features/object-search/utils/debounce.ts +31 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/features/object-search/utils/field-utils.ts +54 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/features/object-search/utils/filter-utils.ts +354 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/features/object-search/utils/index.ts +12 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/features/object-search/utils/sort-utils.ts +39 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/pages/account-detail/account-detail-page.html +142 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/pages/account-detail/account-detail-page.ts +176 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/pages/account-search/account-search-page.html +93 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/pages/account-search/account-search-page.ts +196 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/pages/home/home.html +17 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/pages/home/home.spec.ts +25 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/pages/home/home.ts +65 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/pages/not-found/not-found.html +12 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/pages/not-found/not-found.spec.ts +33 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/pages/not-found/not-found.ts +15 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/alert/hlm-alert-action.ts +14 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/alert/hlm-alert-description.ts +17 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/alert/hlm-alert-title.ts +17 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/alert/hlm-alert.ts +35 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/alert/index.ts +16 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/button/hlm-button.token.ts +22 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/button/hlm-button.ts +72 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/button/index.ts +6 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/calendar/hlm-calendar-multi.ts +195 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/calendar/hlm-calendar-range.ts +194 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/calendar/hlm-calendar.ts +189 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/calendar/hlm-month-year-calendar.ts +119 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/calendar/index.ts +16 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/card/hlm-card-action.ts +12 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/card/hlm-card-avatar.ts +14 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/card/hlm-card-content.ts +12 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/card/hlm-card-description.ts +12 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/card/hlm-card-footer.ts +12 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/card/hlm-card-header.ts +15 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/card/hlm-card-title.ts +12 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/card/hlm-card.token.ts +19 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/card/hlm-card.ts +22 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/card/index.ts +28 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/collapsible/hlm-collapsible-content.ts +14 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/collapsible/hlm-collapsible-trigger.ts +9 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/collapsible/hlm-collapsible.ts +15 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/collapsible/index.ts +13 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/date-picker/hlm-date-multi-input.ts +104 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/date-picker/hlm-date-picker-anchor.ts +23 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/date-picker/hlm-date-picker-input.ts +118 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/date-picker/hlm-date-picker-multi.token.ts +109 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/date-picker/hlm-date-picker-multi.ts +220 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/date-picker/hlm-date-picker-trigger.ts +104 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/date-picker/hlm-date-picker.token.ts +69 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/date-picker/hlm-date-picker.ts +203 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/date-picker/hlm-date-range-input.ts +120 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/date-picker/hlm-date-range-picker.token.ts +86 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/date-picker/hlm-date-range-picker.ts +252 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/date-picker/hlm-month-year-input.ts +105 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/date-picker/hlm-month-year-picker.token.ts +89 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/date-picker/hlm-month-year-picker.ts +196 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/date-picker/index.ts +38 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/dialog/hlm-dialog-close.ts +9 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/dialog/hlm-dialog-content.ts +74 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/dialog/hlm-dialog-description.ts +17 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/dialog/hlm-dialog-footer.ts +15 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/dialog/hlm-dialog-header.ts +12 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/dialog/hlm-dialog-overlay.ts +27 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/dialog/hlm-dialog-portal.ts +8 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/dialog/hlm-dialog-title.ts +14 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/dialog/hlm-dialog-trigger.ts +14 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/dialog/hlm-dialog.service.ts +46 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/dialog/hlm-dialog.ts +24 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/dialog/index.ts +35 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/dropdown-menu/hlm-dropdown-menu-checkbox-indicator.ts +21 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/dropdown-menu/hlm-dropdown-menu-checkbox.ts +54 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/dropdown-menu/hlm-dropdown-menu-focus-on-hover.ts +35 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/dropdown-menu/hlm-dropdown-menu-group.ts +14 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/dropdown-menu/hlm-dropdown-menu-item-sub-indicator.ts +19 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/dropdown-menu/hlm-dropdown-menu-item.ts +42 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/dropdown-menu/hlm-dropdown-menu-label.ts +20 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/dropdown-menu/hlm-dropdown-menu-radio-indicator.ts +21 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/dropdown-menu/hlm-dropdown-menu-radio.ts +49 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/dropdown-menu/hlm-dropdown-menu-separator.ts +12 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/dropdown-menu/hlm-dropdown-menu-shortcut.ts +15 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/dropdown-menu/hlm-dropdown-menu-sub-trigger.ts +52 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/dropdown-menu/hlm-dropdown-menu-sub.ts +53 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/dropdown-menu/hlm-dropdown-menu-token.ts +26 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/dropdown-menu/hlm-dropdown-menu-trigger.ts +46 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/dropdown-menu/hlm-dropdown-menu.ts +57 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/dropdown-menu/index.ts +49 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/field/hlm-field-content.ts +12 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/field/hlm-field-description.ts +53 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/field/hlm-field-error.ts +100 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/field/hlm-field-group.ts +15 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/field/hlm-field-label.ts +17 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/field/hlm-field-legend.ts +19 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/field/hlm-field-separator.ts +24 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/field/hlm-field-set.ts +15 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/field/hlm-field-title.ts +15 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/field/hlm-field.ts +47 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/field/index.ts +34 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/input/hlm-input.ts +21 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/input/index.ts +5 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/input-group/hlm-input-group-addon.ts +40 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/input-group/hlm-input-group-button.ts +47 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/input-group/hlm-input-group-input.ts +17 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/input-group/hlm-input-group-text.ts +14 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/input-group/hlm-input-group.ts +18 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/input-group/index.ts +19 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/label/hlm-label.ts +17 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/label/index.ts +5 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/label/label.html +11 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/pagination/hlm-numbered-pagination-query-params.ts +191 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/pagination/hlm-numbered-pagination.ts +290 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/pagination/hlm-pagination-content.ts +12 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/pagination/hlm-pagination-ellipsis.ts +27 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/pagination/hlm-pagination-item.ts +7 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/pagination/hlm-pagination-link.ts +51 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/pagination/hlm-pagination-next.ts +65 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/pagination/hlm-pagination-previous.ts +65 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/pagination/hlm-pagination.ts +19 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/pagination/index.ts +31 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/popover/hlm-popover-content.ts +25 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/popover/hlm-popover-description.ts +12 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/popover/hlm-popover-header.ts +12 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/popover/hlm-popover-portal.ts +8 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/popover/hlm-popover-title.ts +12 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/popover/hlm-popover-trigger.ts +14 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/popover/hlm-popover.ts +23 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/popover/index.ts +25 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/select/hlm-select-content.ts +44 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/select/hlm-select-group.ts +14 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/select/hlm-select-item.ts +36 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/select/hlm-select-label.ts +14 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/select/hlm-select-multiple.ts +37 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/select/hlm-select-placeholder.ts +17 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/select/hlm-select-portal.ts +8 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/select/hlm-select-scroll-down.ts +22 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/select/hlm-select-scroll-up.ts +22 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/select/hlm-select-separator.ts +14 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/select/hlm-select-trigger.ts +59 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/select/hlm-select-value-template.ts +5 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/select/hlm-select-value.ts +18 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/select/hlm-select-values-content.ts +9 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/select/hlm-select-values.ts +5 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/select/hlm-select.ts +37 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/select/index.ts +52 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/separator/hlm-separator.ts +19 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/separator/index.ts +5 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/skeleton/hlm-skeleton.ts +14 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/skeleton/index.ts +5 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/spinner/hlm-spinner.ts +26 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/spinner/index.ts +5 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/utils/hlm.ts +313 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/utils/index.ts +2 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/shared/utils/provide-spartan-hlm.ts +34 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/app/utils/async-data.ts +99 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/index.html +13 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/main.ts +5 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/styles.css +139 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/src/types/sf-globals.d.ts +9 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/tsconfig.app.json +11 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/tsconfig.json +36 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/tsconfig.spec.json +10 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-object-search/ui-bundle.json +7 -0
- package/dist/jest.config.js +6 -0
- package/dist/package-lock.json +12554 -0
- package/dist/package.json +46 -0
- package/dist/scripts/apex/hello.apex +10 -0
- package/dist/scripts/gitignore-templates.json +4 -0
- package/dist/scripts/graphql-search.sh +191 -0
- package/dist/scripts/org-setup-config-schema.mjs +132 -0
- package/dist/scripts/org-setup-dev.mjs +114 -0
- package/dist/scripts/org-setup-url.mjs +108 -0
- package/dist/scripts/org-setup-utils.mjs +569 -0
- package/dist/scripts/org-setup-xml.mjs +278 -0
- package/dist/scripts/org-setup.config.json +5 -0
- package/dist/scripts/org-setup.mjs +2537 -0
- package/dist/scripts/sf-project-setup.mjs +103 -0
- package/dist/scripts/soql/account.soql +6 -0
- package/dist/scripts/validate-org-setup-config.mjs +38 -0
- package/dist/sfdx-project.json +12 -0
- package/package.json +51 -0
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026, Salesforce, Inc.,
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
* For full license text, see the LICENSE.txt file
|
|
5
|
+
*/
|
|
6
|
+
import {
|
|
7
|
+
ChangeDetectionStrategy,
|
|
8
|
+
Component,
|
|
9
|
+
booleanAttribute,
|
|
10
|
+
computed,
|
|
11
|
+
input,
|
|
12
|
+
model,
|
|
13
|
+
output,
|
|
14
|
+
} from '@angular/core';
|
|
15
|
+
import { NgIcon, provideIcons } from '@ng-icons/core';
|
|
16
|
+
import {
|
|
17
|
+
lucideChevronFirst,
|
|
18
|
+
lucideChevronLast,
|
|
19
|
+
lucideChevronLeft,
|
|
20
|
+
lucideChevronRight,
|
|
21
|
+
} from '@ng-icons/lucide';
|
|
22
|
+
import { HlmPaginationImports } from '@spartan-ng/styles/pagination';
|
|
23
|
+
import type { PageEvent } from './types';
|
|
24
|
+
|
|
25
|
+
export type { PageEvent } from './types';
|
|
26
|
+
|
|
27
|
+
@Component({
|
|
28
|
+
selector: 'app-paginator',
|
|
29
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
30
|
+
imports: [HlmPaginationImports, NgIcon],
|
|
31
|
+
providers: [
|
|
32
|
+
provideIcons({ lucideChevronFirst, lucideChevronLast, lucideChevronLeft, lucideChevronRight }),
|
|
33
|
+
],
|
|
34
|
+
host: { class: 'flex items-center justify-end gap-4 text-sm' },
|
|
35
|
+
templateUrl: './paginator.html',
|
|
36
|
+
})
|
|
37
|
+
export class PaginatorComponent {
|
|
38
|
+
readonly length = input<number>(0);
|
|
39
|
+
readonly pageIndex = model<number>(0);
|
|
40
|
+
readonly pageSize = model<number>(10);
|
|
41
|
+
readonly pageSizeOptions = input<readonly number[]>([]);
|
|
42
|
+
readonly disabled = input(false, { transform: booleanAttribute });
|
|
43
|
+
readonly hidePageSize = input(false, { transform: booleanAttribute });
|
|
44
|
+
readonly showFirstLastButtons = input(false, { transform: booleanAttribute });
|
|
45
|
+
readonly page = output<PageEvent>();
|
|
46
|
+
|
|
47
|
+
private static _uid = 0;
|
|
48
|
+
// Unique so the label→select association survives multiple paginators on a page.
|
|
49
|
+
protected readonly pageSizeLabelId = `app-paginator-page-size-${PaginatorComponent._uid++}`;
|
|
50
|
+
|
|
51
|
+
protected readonly lastPage = computed(() =>
|
|
52
|
+
Math.max(0, Math.ceil(this.length() / this.pageSize()) - 1),
|
|
53
|
+
);
|
|
54
|
+
|
|
55
|
+
protected readonly clampedPageIndex = computed(() =>
|
|
56
|
+
Math.max(0, Math.min(this.pageIndex(), this.lastPage())),
|
|
57
|
+
);
|
|
58
|
+
|
|
59
|
+
protected readonly rangeLabel = computed(() => {
|
|
60
|
+
const len = this.length();
|
|
61
|
+
if (len === 0) return '0 of 0';
|
|
62
|
+
const idx = this.clampedPageIndex();
|
|
63
|
+
const start = idx * this.pageSize() + 1;
|
|
64
|
+
const end = Math.min((idx + 1) * this.pageSize(), len);
|
|
65
|
+
return `${start} – ${end} of ${len}`;
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
protected goToPage(index: number): void {
|
|
69
|
+
const previousPageIndex = this.pageIndex();
|
|
70
|
+
this.pageIndex.set(index);
|
|
71
|
+
this.page.emit({
|
|
72
|
+
pageIndex: index,
|
|
73
|
+
previousPageIndex,
|
|
74
|
+
pageSize: this.pageSize(),
|
|
75
|
+
length: this.length(),
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
protected onPageSizeChange(event: Event): void {
|
|
80
|
+
const newSize = Number((event.target as HTMLSelectElement).value);
|
|
81
|
+
const previousPageIndex = this.pageIndex();
|
|
82
|
+
this.pageSize.set(newSize);
|
|
83
|
+
this.pageIndex.set(0);
|
|
84
|
+
this.page.emit({
|
|
85
|
+
pageIndex: 0,
|
|
86
|
+
previousPageIndex,
|
|
87
|
+
pageSize: newSize,
|
|
88
|
+
length: this.length(),
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export const PaginatorImports = [PaginatorComponent] as const;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026, Salesforce, Inc.,
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
* For full license text, see the LICENSE.txt file
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/** Payload emitted by PaginatorComponent's `(page)` output. */
|
|
8
|
+
export interface PageEvent {
|
|
9
|
+
pageIndex: number;
|
|
10
|
+
previousPageIndex: number;
|
|
11
|
+
pageSize: number;
|
|
12
|
+
length: number;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<hlm-popover
|
|
2
|
+
[align]="align()"
|
|
3
|
+
[sideOffset]="sideOffset()"
|
|
4
|
+
[state]="open() ? 'open' : 'closed'"
|
|
5
|
+
(stateChanged)="onStateChanged($event)"
|
|
6
|
+
>
|
|
7
|
+
<button hlmPopoverTrigger type="button" [class]="triggerClass()" [attr.aria-label]="ariaLabel()">
|
|
8
|
+
<ng-content select="[trigger]" />
|
|
9
|
+
</button>
|
|
10
|
+
<div hlmPopoverContent *hlmPopoverPortal>
|
|
11
|
+
<ng-content />
|
|
12
|
+
</div>
|
|
13
|
+
</hlm-popover>
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026, Salesforce, Inc.,
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
* For full license text, see the LICENSE.txt file
|
|
5
|
+
*/
|
|
6
|
+
import { ChangeDetectionStrategy, Component, input, model } from '@angular/core';
|
|
7
|
+
import { HlmPopoverImports } from '@spartan-ng/styles/popover';
|
|
8
|
+
|
|
9
|
+
@Component({
|
|
10
|
+
selector: 'app-popover',
|
|
11
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
12
|
+
imports: [HlmPopoverImports],
|
|
13
|
+
templateUrl: './popover.html',
|
|
14
|
+
})
|
|
15
|
+
export class PopoverComponent {
|
|
16
|
+
readonly open = model<boolean>(false);
|
|
17
|
+
readonly align = input<'start' | 'center' | 'end'>('start');
|
|
18
|
+
readonly sideOffset = input<number>(4);
|
|
19
|
+
// The wrapper owns the single real trigger `<button>` (so callers project
|
|
20
|
+
// plain content, never a nested button); these style/label it.
|
|
21
|
+
readonly triggerClass = input<string>('');
|
|
22
|
+
readonly ariaLabel = input<string | null>(null, { alias: 'aria-label' });
|
|
23
|
+
|
|
24
|
+
toggle(): void {
|
|
25
|
+
this.open.set(!this.open());
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
close(): void {
|
|
29
|
+
this.open.set(false);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
protected onStateChanged(state: 'open' | 'closed'): void {
|
|
33
|
+
this.open.set(state === 'open');
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export const PopoverImports = [PopoverComponent] as const;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
@if (label()) {
|
|
2
|
+
<label hlmLabel [for]="labelId" class="mb-1.5 block">{{ label() }}</label>
|
|
3
|
+
}
|
|
4
|
+
@if (!multiple()) {
|
|
5
|
+
<hlm-select
|
|
6
|
+
[value]="value()"
|
|
7
|
+
(valueChange)="onSingleChange($event)"
|
|
8
|
+
[disabled]="disabled()"
|
|
9
|
+
[itemToString]="itemToString"
|
|
10
|
+
>
|
|
11
|
+
<hlm-select-trigger [buttonId]="labelId" [size]="size()" [class]="triggerClasses()">
|
|
12
|
+
<hlm-select-value [placeholder]="placeholder()" />
|
|
13
|
+
</hlm-select-trigger>
|
|
14
|
+
<hlm-select-content *hlmSelectPortal>
|
|
15
|
+
@for (option of options(); track option.value) {
|
|
16
|
+
<hlm-select-item [value]="option.value">{{ option.label }}</hlm-select-item>
|
|
17
|
+
}
|
|
18
|
+
</hlm-select-content>
|
|
19
|
+
</hlm-select>
|
|
20
|
+
} @else {
|
|
21
|
+
<hlm-select-multiple
|
|
22
|
+
[value]="$any(values())"
|
|
23
|
+
(valueChange)="onMultiChange($event)"
|
|
24
|
+
[disabled]="disabled()"
|
|
25
|
+
[itemToString]="itemToString"
|
|
26
|
+
>
|
|
27
|
+
<hlm-select-trigger [buttonId]="labelId" [size]="size()" [class]="triggerClasses()">
|
|
28
|
+
<hlm-select-value [placeholder]="placeholder()" />
|
|
29
|
+
</hlm-select-trigger>
|
|
30
|
+
<hlm-select-content *hlmSelectPortal>
|
|
31
|
+
@for (option of options(); track option.value) {
|
|
32
|
+
<hlm-select-item [value]="option.value">{{ option.label }}</hlm-select-item>
|
|
33
|
+
}
|
|
34
|
+
</hlm-select-content>
|
|
35
|
+
</hlm-select-multiple>
|
|
36
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026, Salesforce, Inc.,
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
* For full license text, see the LICENSE.txt file
|
|
5
|
+
*/
|
|
6
|
+
import {
|
|
7
|
+
ChangeDetectionStrategy,
|
|
8
|
+
Component,
|
|
9
|
+
booleanAttribute,
|
|
10
|
+
computed,
|
|
11
|
+
input,
|
|
12
|
+
model,
|
|
13
|
+
} from '@angular/core';
|
|
14
|
+
import { HlmSelectImports } from '@spartan-ng/styles/select';
|
|
15
|
+
import { HlmLabelImports } from '@spartan-ng/styles/label';
|
|
16
|
+
import type { AppFieldSize } from '../field-size';
|
|
17
|
+
import type { AppFieldAppearance } from '../field-appearance';
|
|
18
|
+
|
|
19
|
+
export interface AppSelectOption {
|
|
20
|
+
value: string;
|
|
21
|
+
label: string;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@Component({
|
|
25
|
+
selector: 'app-select',
|
|
26
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
27
|
+
imports: [HlmSelectImports, HlmLabelImports],
|
|
28
|
+
host: { class: 'block min-w-0' },
|
|
29
|
+
templateUrl: './select.html',
|
|
30
|
+
})
|
|
31
|
+
export class SelectComponent {
|
|
32
|
+
readonly value = model<string>('');
|
|
33
|
+
readonly values = model<readonly string[]>([]);
|
|
34
|
+
readonly multiple = input(false, { transform: booleanAttribute });
|
|
35
|
+
readonly options = input<readonly AppSelectOption[]>([]);
|
|
36
|
+
readonly placeholder = input<string>('');
|
|
37
|
+
readonly label = input<string>('');
|
|
38
|
+
readonly disabled = input(false, { transform: booleanAttribute });
|
|
39
|
+
readonly appearance = input<AppFieldAppearance>('outline');
|
|
40
|
+
readonly size = input<AppFieldSize>('default');
|
|
41
|
+
|
|
42
|
+
private static _uid = 0;
|
|
43
|
+
protected readonly labelId = `app-select-${SelectComponent._uid++}`;
|
|
44
|
+
|
|
45
|
+
protected readonly itemToString = (value: string): string => {
|
|
46
|
+
return this.options().find((o) => o.value === value)?.label ?? value;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
protected readonly triggerClasses = computed(() => {
|
|
50
|
+
if (this.appearance() === 'fill') return 'border-transparent bg-muted';
|
|
51
|
+
return '';
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
protected onSingleChange(event: string | null | undefined): void {
|
|
55
|
+
this.value.set(event ?? '');
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
protected onMultiChange(event: string[] | readonly string[] | null | undefined): void {
|
|
59
|
+
this.values.set(event ?? []);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export const SelectImports = [SelectComponent] as const;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026, Salesforce, Inc.,
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
* For full license text, see the LICENSE.txt file
|
|
5
|
+
*/
|
|
6
|
+
import { booleanAttribute, ChangeDetectionStrategy, Component, input } from '@angular/core';
|
|
7
|
+
import { BrnSeparator } from '@spartan-ng/brain/separator';
|
|
8
|
+
import { hlmSeparatorClass } from '@spartan-ng/styles/separator';
|
|
9
|
+
import { classes } from '@spartan-ng/styles/utils';
|
|
10
|
+
|
|
11
|
+
export type AppSeparatorOrientation = 'horizontal' | 'vertical';
|
|
12
|
+
|
|
13
|
+
@Component({
|
|
14
|
+
selector: 'app-separator',
|
|
15
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
16
|
+
hostDirectives: [{ directive: BrnSeparator, inputs: ['orientation', 'decorative'] }],
|
|
17
|
+
host: {
|
|
18
|
+
'data-slot': 'separator',
|
|
19
|
+
},
|
|
20
|
+
template: '',
|
|
21
|
+
})
|
|
22
|
+
export class SeparatorComponent {
|
|
23
|
+
readonly orientation = input<AppSeparatorOrientation>('horizontal');
|
|
24
|
+
readonly decorative = input(true, { transform: booleanAttribute });
|
|
25
|
+
|
|
26
|
+
constructor() {
|
|
27
|
+
classes(() => hlmSeparatorClass);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export const SeparatorImports = [SeparatorComponent] as const;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026, Salesforce, Inc.,
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
* For full license text, see the LICENSE.txt file
|
|
5
|
+
*/
|
|
6
|
+
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
7
|
+
import { HlmSkeleton } from '@spartan-ng/styles/skeleton';
|
|
8
|
+
|
|
9
|
+
@Component({
|
|
10
|
+
selector: 'app-skeleton',
|
|
11
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
12
|
+
hostDirectives: [HlmSkeleton],
|
|
13
|
+
host: {
|
|
14
|
+
'aria-hidden': 'true',
|
|
15
|
+
},
|
|
16
|
+
template: '<ng-content />',
|
|
17
|
+
})
|
|
18
|
+
export class SkeletonComponent {}
|
|
19
|
+
|
|
20
|
+
export const SkeletonImports = [SkeletonComponent] as const;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026, Salesforce, Inc.,
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
* For full license text, see the LICENSE.txt file
|
|
5
|
+
*/
|
|
6
|
+
import { ChangeDetectionStrategy, Component, input } from '@angular/core';
|
|
7
|
+
import { HlmSpinnerImports } from '@spartan-ng/styles/spinner';
|
|
8
|
+
import { classes } from '@spartan-ng/styles/utils';
|
|
9
|
+
|
|
10
|
+
@Component({
|
|
11
|
+
selector: 'app-spinner',
|
|
12
|
+
imports: [HlmSpinnerImports],
|
|
13
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
14
|
+
host: {
|
|
15
|
+
role: 'status',
|
|
16
|
+
'[attr.aria-label]': 'ariaLabel()',
|
|
17
|
+
},
|
|
18
|
+
template: `<hlm-spinner />`,
|
|
19
|
+
})
|
|
20
|
+
export class SpinnerComponent {
|
|
21
|
+
public readonly ariaLabel = input<string>('Loading', { alias: 'aria-label' });
|
|
22
|
+
|
|
23
|
+
constructor() {
|
|
24
|
+
classes(() => 'text-[length:--spacing(4)]');
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export const SpinnerImports = [SpinnerComponent] as const;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026, Salesforce, Inc.,
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
* For full license text, see the LICENSE.txt file
|
|
5
|
+
*/
|
|
6
|
+
import { Injectable, inject } from "@angular/core";
|
|
7
|
+
import { DataClient } from "../../../api/data-client.service";
|
|
8
|
+
|
|
9
|
+
/** Search args */
|
|
10
|
+
export interface ObjectSearchOptions<TWhere, TOrderBy> {
|
|
11
|
+
where?: TWhere;
|
|
12
|
+
orderBy?: TOrderBy;
|
|
13
|
+
first?: number;
|
|
14
|
+
after?: string;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/** Picklist option shape shared with filter components. */
|
|
18
|
+
export type PicklistOption = { value: string; label: string };
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Generic object-search data service
|
|
22
|
+
*
|
|
23
|
+
* Provides reusable, object-agnostic methods for:
|
|
24
|
+
* - Searching objects via GraphQL `uiapi.query.<ObjectName>`
|
|
25
|
+
* - Fetching distinct picklist values via `uiapi.aggregate.<ObjectName>`
|
|
26
|
+
*
|
|
27
|
+
* Domain-specific services (e.g. `AccountSearchService`) delegate here with
|
|
28
|
+
* typed parameters rather than reimplementing the query/extraction logic.
|
|
29
|
+
*/
|
|
30
|
+
@Injectable({ providedIn: "root" })
|
|
31
|
+
export class ObjectSearchService {
|
|
32
|
+
private readonly client = inject(DataClient);
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Executes a GraphQL search query and extracts the result for the given
|
|
36
|
+
* object name from the standard `uiapi.query.<ObjectName>` response shape.
|
|
37
|
+
*/
|
|
38
|
+
async searchObjects<TResult, TQuery, TVariables>(
|
|
39
|
+
query: string,
|
|
40
|
+
objectName: string,
|
|
41
|
+
options: ObjectSearchOptions<unknown, unknown> = {},
|
|
42
|
+
): Promise<TResult> {
|
|
43
|
+
const { where, orderBy, first = 20, after } = options;
|
|
44
|
+
const data = await this.client.execute<TQuery, TVariables>(query, {
|
|
45
|
+
first,
|
|
46
|
+
after,
|
|
47
|
+
where,
|
|
48
|
+
orderBy,
|
|
49
|
+
} as TVariables);
|
|
50
|
+
|
|
51
|
+
const uiapi = (data as Record<string, unknown>)?.["uiapi"] as
|
|
52
|
+
| Record<string, unknown>
|
|
53
|
+
| undefined;
|
|
54
|
+
const queryResult = (uiapi?.["query"] as Record<string, unknown> | undefined)?.[objectName] as
|
|
55
|
+
| TResult
|
|
56
|
+
| undefined;
|
|
57
|
+
|
|
58
|
+
if (!queryResult) {
|
|
59
|
+
throw new Error(`No ${objectName} data returned`);
|
|
60
|
+
}
|
|
61
|
+
return queryResult;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Executes a GraphQL aggregate/groupBy query and extracts picklist options
|
|
66
|
+
* from the standard `uiapi.aggregate.<ObjectName>` response shape.
|
|
67
|
+
*/
|
|
68
|
+
async fetchDistinctValues<TQuery>(
|
|
69
|
+
query: string,
|
|
70
|
+
objectName: string,
|
|
71
|
+
fieldName: string,
|
|
72
|
+
): Promise<PicklistOption[]> {
|
|
73
|
+
const data = await this.client.execute<TQuery>(query);
|
|
74
|
+
|
|
75
|
+
const uiapi = (data as Record<string, unknown>)?.["uiapi"] as
|
|
76
|
+
| Record<string, unknown>
|
|
77
|
+
| undefined;
|
|
78
|
+
const aggregate = (uiapi?.["aggregate"] as Record<string, unknown> | undefined)?.[
|
|
79
|
+
objectName
|
|
80
|
+
] as { edges?: Array<{ node?: { aggregate?: Record<string, unknown> } }> } | undefined;
|
|
81
|
+
|
|
82
|
+
const edges = aggregate?.edges ?? [];
|
|
83
|
+
return edges
|
|
84
|
+
.map((edge) => {
|
|
85
|
+
const field = edge?.node?.aggregate?.[fieldName] as
|
|
86
|
+
| { value?: string | null; displayValue?: string | null; label?: string | null }
|
|
87
|
+
| undefined;
|
|
88
|
+
const value = field?.value;
|
|
89
|
+
if (!value) return null;
|
|
90
|
+
return { value, label: field.label ?? field.displayValue ?? value };
|
|
91
|
+
})
|
|
92
|
+
.filter((opt): opt is PicklistOption => opt !== null);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<nav aria-label="Breadcrumb" class="mb-3">
|
|
2
|
+
<ol
|
|
3
|
+
class="text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5"
|
|
4
|
+
>
|
|
5
|
+
@if (includeHome()) {
|
|
6
|
+
<li class="inline-flex items-center gap-1.5">
|
|
7
|
+
<a [routerLink]="'/'" class="hover:text-foreground transition-colors">{{ homeLabel() }}</a>
|
|
8
|
+
</li>
|
|
9
|
+
<li aria-hidden="true">
|
|
10
|
+
<app-icon name="chevronRight" size="14px" class="flex" />
|
|
11
|
+
</li>
|
|
12
|
+
} @if (isDetailView()) {
|
|
13
|
+
<li class="inline-flex items-center gap-1.5">
|
|
14
|
+
<a [routerLink]="listPath()" class="hover:text-foreground transition-colors"
|
|
15
|
+
>{{ listLabel() }}</a
|
|
16
|
+
>
|
|
17
|
+
</li>
|
|
18
|
+
<li aria-hidden="true">
|
|
19
|
+
<app-icon name="chevronRight" size="14px" class="flex" />
|
|
20
|
+
</li>
|
|
21
|
+
<li class="inline-flex items-center gap-1.5">
|
|
22
|
+
@if (loading() && !recordName()) {
|
|
23
|
+
<app-skeleton class="h-4 w-32" />
|
|
24
|
+
} @else {
|
|
25
|
+
<span class="text-foreground font-normal" aria-current="page">{{ recordName() }}</span>
|
|
26
|
+
}
|
|
27
|
+
</li>
|
|
28
|
+
} @else {
|
|
29
|
+
<li class="inline-flex items-center gap-1.5">
|
|
30
|
+
<span class="text-foreground font-normal" aria-current="page">{{ listLabel() }}</span>
|
|
31
|
+
</li>
|
|
32
|
+
}
|
|
33
|
+
</ol>
|
|
34
|
+
</nav>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026, Salesforce, Inc.,
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
* For full license text, see the LICENSE.txt file
|
|
5
|
+
*/
|
|
6
|
+
import { ChangeDetectionStrategy, Component, computed, input } from "@angular/core";
|
|
7
|
+
import { RouterLink } from "@angular/router";
|
|
8
|
+
import { IconComponent } from "../../../components/ui/icon/icon";
|
|
9
|
+
import { SkeletonComponent } from "../../../components/ui/skeleton/skeleton";
|
|
10
|
+
|
|
11
|
+
/** Object-search breadcrumb — Home > Records list > (optional) Record name. */
|
|
12
|
+
@Component({
|
|
13
|
+
selector: "app-object-breadcrumb",
|
|
14
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
15
|
+
imports: [RouterLink, IconComponent, SkeletonComponent],
|
|
16
|
+
templateUrl: "./breadcrumb.html",
|
|
17
|
+
})
|
|
18
|
+
export class ObjectBreadcrumbComponent {
|
|
19
|
+
readonly listPath = input.required<string>();
|
|
20
|
+
readonly listLabel = input.required<string>();
|
|
21
|
+
readonly recordName = input<string | undefined>(undefined);
|
|
22
|
+
readonly loading = input<boolean>(false);
|
|
23
|
+
readonly includeHome = input<boolean>(true);
|
|
24
|
+
readonly homeLabel = input<string>("Home");
|
|
25
|
+
|
|
26
|
+
protected readonly isDetailView = computed(() => this.loading() || !!this.recordName());
|
|
27
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
@if (chips().length > 0) {
|
|
2
|
+
<div class="flex flex-wrap gap-2">
|
|
3
|
+
@for (chip of chips(); track chip.field) {
|
|
4
|
+
<app-button
|
|
5
|
+
appearance="outlined"
|
|
6
|
+
size="sm"
|
|
7
|
+
iconEnd="close"
|
|
8
|
+
[ariaLabel]="'Remove filter ' + chip.label"
|
|
9
|
+
(clicked)="onRemove(chip.field)"
|
|
10
|
+
>
|
|
11
|
+
{{ chip.label }}
|
|
12
|
+
</app-button>
|
|
13
|
+
}
|
|
14
|
+
<app-button
|
|
15
|
+
appearance="destructive"
|
|
16
|
+
size="sm"
|
|
17
|
+
ariaLabel="Clear all filters"
|
|
18
|
+
(clicked)="onClearAll()"
|
|
19
|
+
>
|
|
20
|
+
Clear all
|
|
21
|
+
</app-button>
|
|
22
|
+
</div>
|
|
23
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026, Salesforce, Inc.,
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
* For full license text, see the LICENSE.txt file
|
|
5
|
+
*/
|
|
6
|
+
import { ChangeDetectionStrategy, Component, computed, inject } from "@angular/core";
|
|
7
|
+
import { ButtonComponent } from "../../../components/ui/button/button";
|
|
8
|
+
import { ObjectSearchStateService } from "../object-search-state.service";
|
|
9
|
+
import type { ActiveFilterValue } from "../utils/filter-utils";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Format the display label for one active filter chip. Mirrors the React
|
|
13
|
+
* `formatFilterLabel`; a switch over the filter's declared `type`.
|
|
14
|
+
*/
|
|
15
|
+
function formatFilterLabel(filter: ActiveFilterValue): string {
|
|
16
|
+
const { label, type, value, min, max } = filter;
|
|
17
|
+
switch (type) {
|
|
18
|
+
case "search":
|
|
19
|
+
return `Search: ${value}`;
|
|
20
|
+
case "text":
|
|
21
|
+
case "picklist":
|
|
22
|
+
return `${label}: ${value}`;
|
|
23
|
+
case "multipicklist": {
|
|
24
|
+
const values = value ? value.split(",") : [];
|
|
25
|
+
if (values.length <= 2) return `${label}: ${values.join(", ")}`;
|
|
26
|
+
return `${label}: ${values.length} selected`;
|
|
27
|
+
}
|
|
28
|
+
case "boolean":
|
|
29
|
+
return `${label}: ${value === "true" ? "Yes" : "No"}`;
|
|
30
|
+
case "numeric": {
|
|
31
|
+
if (min && max) return `${label}: ${min} - ${max}`;
|
|
32
|
+
if (min) return `${label}: >= ${min}`;
|
|
33
|
+
return `${label}: <= ${max}`;
|
|
34
|
+
}
|
|
35
|
+
case "date":
|
|
36
|
+
case "datetime":
|
|
37
|
+
case "daterange":
|
|
38
|
+
case "datetimerange": {
|
|
39
|
+
if (min && max) return `${label}: ${min} to ${max}`;
|
|
40
|
+
if (min) return `${label}: from ${min}`;
|
|
41
|
+
return `${label}: until ${max}`;
|
|
42
|
+
}
|
|
43
|
+
default:
|
|
44
|
+
return label;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Removable-chip strip for the currently active filters.
|
|
50
|
+
*
|
|
51
|
+
* Reads `filters()` from {@link ObjectSearchStateService}; clicking a chip
|
|
52
|
+
* removes that filter, and the `Clear all` chip clears everything via
|
|
53
|
+
* `resetAll()`. Mirrors the React `ActiveFilters` component.
|
|
54
|
+
*/
|
|
55
|
+
@Component({
|
|
56
|
+
selector: "app-active-filters",
|
|
57
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
58
|
+
imports: [ButtonComponent],
|
|
59
|
+
templateUrl: "./active-filters.html",
|
|
60
|
+
})
|
|
61
|
+
export class ActiveFiltersComponent {
|
|
62
|
+
private readonly state = inject(ObjectSearchStateService);
|
|
63
|
+
|
|
64
|
+
/** Active filters signal from the state service. */
|
|
65
|
+
protected readonly filters = this.state.filters;
|
|
66
|
+
/** Display strings paired with the underlying field for chip actions. */
|
|
67
|
+
protected readonly chips = computed(() =>
|
|
68
|
+
this.filters().map((f) => ({ field: f.field, label: formatFilterLabel(f) })),
|
|
69
|
+
);
|
|
70
|
+
|
|
71
|
+
protected onRemove(field: string): void {
|
|
72
|
+
this.state.removeFilter(field);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
protected onClearAll(): void {
|
|
76
|
+
this.state.resetAll();
|
|
77
|
+
}
|
|
78
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<app-filter-field-wrapper [label]="config().label" [helpText]="config().helpText">
|
|
2
|
+
<div class="flex gap-2">
|
|
3
|
+
<app-select
|
|
4
|
+
class="flex-1"
|
|
5
|
+
[options]="operatorOptions"
|
|
6
|
+
[value]="operator()"
|
|
7
|
+
(valueChange)="onOperatorChange($event)"
|
|
8
|
+
/>
|
|
9
|
+
<app-date-picker
|
|
10
|
+
class="flex-1"
|
|
11
|
+
placeholder="Pick a date"
|
|
12
|
+
[readonly]="true"
|
|
13
|
+
[max]="maxDate()"
|
|
14
|
+
[value]="currentDate()"
|
|
15
|
+
(valueChange)="onDateChange($event)"
|
|
16
|
+
/>
|
|
17
|
+
</div>
|
|
18
|
+
</app-filter-field-wrapper>
|