@salesforce/ui-bundle-template-feature-angular-language-switcher 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 +193 -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-language-switcher/.forceignore +15 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/.graphqlrc.yml +2 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/.postcssrc.json +5 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/.prettierignore +8 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/.prettierrc +12 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/CHANGELOG.md +4 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/README.md +85 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/angular.json +98 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/codegen.yml +95 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/components.json +6 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/e2e/app.spec.ts +15 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/esbuild/api-version.mjs +17 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/esbuild/graphql-codegen.mjs +13 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/eslint-plugin-angular-graphql.js +148 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/eslint.config.js +76 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/feature-angular-language-switcher.uibundle-meta.xml +7 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/middleware/html.mjs +3 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/middleware/proxy.mjs +12 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/package.json +69 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/playwright.config.ts +25 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/public/favicon.ico +0 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/scripts/get-graphql-schema.mjs +69 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/scripts/rewrite-e2e-assets.mjs +30 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/api/data-client.service.spec.ts +184 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/api/data-client.service.ts +74 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/app.config.ts +20 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/app.html +1 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/app.routes.ts +26 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/app.spec.ts +18 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/app.ts +15 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/components/layout/app-layout/app-layout.html +51 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/components/layout/app-layout/app-layout.spec.ts +63 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/components/layout/app-layout/app-layout.ts +27 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/components/ui/alert/alert.html +27 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/components/ui/alert/alert.ts +41 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/components/ui/button/button.html +27 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/components/ui/button/button.ts +66 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/components/ui/card/card.ts +100 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/components/ui/collapsible/collapsible.html +38 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/components/ui/collapsible/collapsible.ts +21 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/components/ui/date-picker/date-picker.html +20 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/components/ui/date-picker/date-picker.ts +49 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/components/ui/date-range-picker/date-range-picker.html +20 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/components/ui/date-range-picker/date-range-picker.ts +69 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/components/ui/dialog/dialog.html +20 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/components/ui/dialog/dialog.ts +40 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/components/ui/dropdown-menu/dropdown-menu.html +20 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/components/ui/dropdown-menu/dropdown-menu.ts +100 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/components/ui/field/field.html +15 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/components/ui/field/field.ts +28 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/components/ui/field-appearance.ts +8 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/components/ui/field-size.ts +8 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/components/ui/icon/icon.ts +68 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/components/ui/input/input.html +34 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/components/ui/input/input.ts +79 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/components/ui/label/label.ts +21 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/components/ui/paginator/paginator.html +74 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/components/ui/paginator/paginator.ts +93 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/components/ui/paginator/types.ts +13 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/components/ui/popover/popover.html +13 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/components/ui/popover/popover.ts +37 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/components/ui/select/select.html +36 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/components/ui/select/select.ts +63 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/components/ui/separator/separator.ts +31 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/components/ui/skeleton/skeleton.ts +20 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/components/ui/spinner/spinner.ts +28 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/features/language-switcher/__examples__/html-middleware-site-example.ts +41 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/features/language-switcher/__examples__/language-switcher-example.ts +41 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/features/language-switcher/build-language-url.ts +158 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/features/language-switcher/index.ts +28 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/features/language-switcher/language-switcher.html +22 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/features/language-switcher/language-switcher.ts +110 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/features/language-switcher/languages.ts +46 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/pages/home/home.html +6 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/pages/home/home.spec.ts +23 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/pages/home/home.ts +13 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/pages/not-found/not-found.html +12 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/pages/not-found/not-found.spec.ts +33 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/pages/not-found/not-found.ts +15 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/alert/hlm-alert-action.ts +14 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/alert/hlm-alert-description.ts +17 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/alert/hlm-alert-title.ts +17 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/alert/hlm-alert.ts +35 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/alert/index.ts +16 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/button/hlm-button.token.ts +22 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/button/hlm-button.ts +72 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/button/index.ts +6 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/calendar/hlm-calendar-multi.ts +195 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/calendar/hlm-calendar-range.ts +194 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/calendar/hlm-calendar.ts +189 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/calendar/hlm-month-year-calendar.ts +119 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/calendar/index.ts +16 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/card/hlm-card-action.ts +12 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/card/hlm-card-avatar.ts +14 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/card/hlm-card-content.ts +12 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/card/hlm-card-description.ts +12 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/card/hlm-card-footer.ts +12 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/card/hlm-card-header.ts +15 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/card/hlm-card-title.ts +12 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/card/hlm-card.token.ts +19 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/card/hlm-card.ts +22 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/card/index.ts +28 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/collapsible/hlm-collapsible-content.ts +14 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/collapsible/hlm-collapsible-trigger.ts +9 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/collapsible/hlm-collapsible.ts +15 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/collapsible/index.ts +13 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/date-picker/hlm-date-multi-input.ts +104 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/date-picker/hlm-date-picker-anchor.ts +23 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/date-picker/hlm-date-picker-input.ts +118 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/date-picker/hlm-date-picker-multi.token.ts +109 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/date-picker/hlm-date-picker-multi.ts +220 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/date-picker/hlm-date-picker-trigger.ts +104 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/date-picker/hlm-date-picker.token.ts +69 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/date-picker/hlm-date-picker.ts +203 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/date-picker/hlm-date-range-input.ts +120 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/date-picker/hlm-date-range-picker.token.ts +86 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/date-picker/hlm-date-range-picker.ts +252 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/date-picker/hlm-month-year-input.ts +105 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/date-picker/hlm-month-year-picker.token.ts +89 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/date-picker/hlm-month-year-picker.ts +196 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/date-picker/index.ts +38 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/dialog/hlm-dialog-close.ts +9 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/dialog/hlm-dialog-content.ts +74 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/dialog/hlm-dialog-description.ts +17 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/dialog/hlm-dialog-footer.ts +15 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/dialog/hlm-dialog-header.ts +12 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/dialog/hlm-dialog-overlay.ts +27 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/dialog/hlm-dialog-portal.ts +8 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/dialog/hlm-dialog-title.ts +14 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/dialog/hlm-dialog-trigger.ts +14 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/dialog/hlm-dialog.service.ts +46 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/dialog/hlm-dialog.ts +24 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/dialog/index.ts +35 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/dropdown-menu/hlm-dropdown-menu-checkbox-indicator.ts +21 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/dropdown-menu/hlm-dropdown-menu-checkbox.ts +54 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/dropdown-menu/hlm-dropdown-menu-focus-on-hover.ts +35 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/dropdown-menu/hlm-dropdown-menu-group.ts +14 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/dropdown-menu/hlm-dropdown-menu-item-sub-indicator.ts +19 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/dropdown-menu/hlm-dropdown-menu-item.ts +42 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/dropdown-menu/hlm-dropdown-menu-label.ts +20 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/dropdown-menu/hlm-dropdown-menu-radio-indicator.ts +21 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/dropdown-menu/hlm-dropdown-menu-radio.ts +49 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/dropdown-menu/hlm-dropdown-menu-separator.ts +12 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/dropdown-menu/hlm-dropdown-menu-shortcut.ts +15 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/dropdown-menu/hlm-dropdown-menu-sub-trigger.ts +52 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/dropdown-menu/hlm-dropdown-menu-sub.ts +53 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/dropdown-menu/hlm-dropdown-menu-token.ts +26 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/dropdown-menu/hlm-dropdown-menu-trigger.ts +46 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/dropdown-menu/hlm-dropdown-menu.ts +57 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/dropdown-menu/index.ts +49 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/field/hlm-field-content.ts +12 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/field/hlm-field-description.ts +53 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/field/hlm-field-error.ts +100 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/field/hlm-field-group.ts +15 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/field/hlm-field-label.ts +17 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/field/hlm-field-legend.ts +19 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/field/hlm-field-separator.ts +24 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/field/hlm-field-set.ts +15 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/field/hlm-field-title.ts +15 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/field/hlm-field.ts +47 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/field/index.ts +34 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/input/hlm-input.ts +21 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/input/index.ts +5 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/input-group/hlm-input-group-addon.ts +40 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/input-group/hlm-input-group-button.ts +47 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/input-group/hlm-input-group-input.ts +17 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/input-group/hlm-input-group-text.ts +14 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/input-group/hlm-input-group.ts +18 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/input-group/index.ts +19 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/label/hlm-label.ts +17 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/label/index.ts +5 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/label/label.html +11 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/pagination/hlm-numbered-pagination-query-params.ts +191 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/pagination/hlm-numbered-pagination.ts +290 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/pagination/hlm-pagination-content.ts +12 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/pagination/hlm-pagination-ellipsis.ts +27 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/pagination/hlm-pagination-item.ts +7 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/pagination/hlm-pagination-link.ts +51 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/pagination/hlm-pagination-next.ts +65 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/pagination/hlm-pagination-previous.ts +65 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/pagination/hlm-pagination.ts +19 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/pagination/index.ts +31 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/popover/hlm-popover-content.ts +25 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/popover/hlm-popover-description.ts +12 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/popover/hlm-popover-header.ts +12 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/popover/hlm-popover-portal.ts +8 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/popover/hlm-popover-title.ts +12 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/popover/hlm-popover-trigger.ts +14 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/popover/hlm-popover.ts +23 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/popover/index.ts +25 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/select/hlm-select-content.ts +44 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/select/hlm-select-group.ts +14 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/select/hlm-select-item.ts +36 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/select/hlm-select-label.ts +14 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/select/hlm-select-multiple.ts +37 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/select/hlm-select-placeholder.ts +17 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/select/hlm-select-portal.ts +8 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/select/hlm-select-scroll-down.ts +22 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/select/hlm-select-scroll-up.ts +22 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/select/hlm-select-separator.ts +14 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/select/hlm-select-trigger.ts +59 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/select/hlm-select-value-template.ts +5 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/select/hlm-select-value.ts +18 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/select/hlm-select-values-content.ts +9 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/select/hlm-select-values.ts +5 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/select/hlm-select.ts +37 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/select/index.ts +52 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/separator/hlm-separator.ts +19 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/separator/index.ts +5 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/skeleton/hlm-skeleton.ts +14 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/skeleton/index.ts +5 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/spinner/hlm-spinner.ts +26 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/spinner/index.ts +5 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/utils/hlm.ts +313 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/utils/index.ts +2 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/shared/utils/provide-spartan-hlm.ts +34 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/app/utils/async-data.ts +99 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/index.html +13 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/main.ts +5 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/styles.css +139 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/src/types/sf-globals.d.ts +23 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/tsconfig.app.json +11 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/tsconfig.json +36 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/tsconfig.spec.json +10 -0
- package/dist/force-app/main/default/uiBundles/feature-angular-language-switcher/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 +46 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Directive } from '@angular/core';
|
|
2
|
+
import { BrnPopover } from '@spartan-ng/brain/popover';
|
|
3
|
+
|
|
4
|
+
@Directive({
|
|
5
|
+
selector: '[hlmPopover],hlm-popover',
|
|
6
|
+
hostDirectives: [
|
|
7
|
+
{
|
|
8
|
+
directive: BrnPopover,
|
|
9
|
+
inputs: [
|
|
10
|
+
'align',
|
|
11
|
+
'attachTo',
|
|
12
|
+
'autoFocus',
|
|
13
|
+
'closeOnOutsidePointerEvents',
|
|
14
|
+
'offsetX',
|
|
15
|
+
'sideOffset',
|
|
16
|
+
'state',
|
|
17
|
+
],
|
|
18
|
+
outputs: ['stateChanged', 'closed'],
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
host: { 'data-slot': 'popover' },
|
|
22
|
+
})
|
|
23
|
+
export class HlmPopover {}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { HlmPopover } from './hlm-popover';
|
|
2
|
+
import { HlmPopoverContent } from './hlm-popover-content';
|
|
3
|
+
import { HlmPopoverDescription } from './hlm-popover-description';
|
|
4
|
+
import { HlmPopoverHeader } from './hlm-popover-header';
|
|
5
|
+
import { HlmPopoverPortal } from './hlm-popover-portal';
|
|
6
|
+
import { HlmPopoverTitle } from './hlm-popover-title';
|
|
7
|
+
import { HlmPopoverTrigger } from './hlm-popover-trigger';
|
|
8
|
+
|
|
9
|
+
export * from './hlm-popover';
|
|
10
|
+
export * from './hlm-popover-content';
|
|
11
|
+
export * from './hlm-popover-description';
|
|
12
|
+
export * from './hlm-popover-header';
|
|
13
|
+
export * from './hlm-popover-portal';
|
|
14
|
+
export * from './hlm-popover-title';
|
|
15
|
+
export * from './hlm-popover-trigger';
|
|
16
|
+
|
|
17
|
+
export const HlmPopoverImports = [
|
|
18
|
+
HlmPopover,
|
|
19
|
+
HlmPopoverContent,
|
|
20
|
+
HlmPopoverDescription,
|
|
21
|
+
HlmPopoverHeader,
|
|
22
|
+
HlmPopoverPortal,
|
|
23
|
+
HlmPopoverTitle,
|
|
24
|
+
HlmPopoverTrigger,
|
|
25
|
+
] as const;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
|
+
import {
|
|
3
|
+
booleanAttribute,
|
|
4
|
+
ChangeDetectionStrategy,
|
|
5
|
+
Component,
|
|
6
|
+
computed,
|
|
7
|
+
input,
|
|
8
|
+
} from '@angular/core';
|
|
9
|
+
import { BrnSelectContent } from '@spartan-ng/brain/select';
|
|
10
|
+
import { classes, hlm } from '@spartan-ng/styles/utils';
|
|
11
|
+
import { HlmSelectScrollDown } from './hlm-select-scroll-down';
|
|
12
|
+
import { HlmSelectScrollUp } from './hlm-select-scroll-up';
|
|
13
|
+
|
|
14
|
+
@Component({
|
|
15
|
+
selector: 'hlm-select-content',
|
|
16
|
+
imports: [HlmSelectScrollUp, HlmSelectScrollDown],
|
|
17
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
18
|
+
hostDirectives: [BrnSelectContent],
|
|
19
|
+
template: `
|
|
20
|
+
@if (showScroll()) {
|
|
21
|
+
<hlm-select-scroll-up />
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
<div role="listbox" [class]="_computedListboxClasses()">
|
|
25
|
+
<ng-content />
|
|
26
|
+
</div>
|
|
27
|
+
|
|
28
|
+
@if (showScroll()) {
|
|
29
|
+
<hlm-select-scroll-down />
|
|
30
|
+
}
|
|
31
|
+
`,
|
|
32
|
+
})
|
|
33
|
+
export class HlmSelectContent {
|
|
34
|
+
protected readonly _computedListboxClasses = computed(() => hlm('flex flex-col'));
|
|
35
|
+
|
|
36
|
+
public readonly showScroll = input<boolean, BooleanInput>(false, { transform: booleanAttribute });
|
|
37
|
+
|
|
38
|
+
constructor() {
|
|
39
|
+
classes(
|
|
40
|
+
() =>
|
|
41
|
+
'bg-popover no-scrollbar text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 max-h-72 min-w-36 flex-col rounded-lg shadow-md ring-1 duration-100 relative flex w-(--brn-select-width) overflow-x-hidden overflow-y-auto',
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Directive } from '@angular/core';
|
|
2
|
+
import { BrnSelectGroup } from '@spartan-ng/brain/select';
|
|
3
|
+
import { classes } from '@spartan-ng/styles/utils';
|
|
4
|
+
|
|
5
|
+
@Directive({
|
|
6
|
+
selector: '[hlmSelectGroup],hlm-select-group',
|
|
7
|
+
hostDirectives: [{ directive: BrnSelectGroup }],
|
|
8
|
+
host: { 'data-slot': 'select-group' },
|
|
9
|
+
})
|
|
10
|
+
export class HlmSelectGroup {
|
|
11
|
+
constructor() {
|
|
12
|
+
classes(() => 'scroll-my-1 p-1');
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, inject } from '@angular/core';
|
|
2
|
+
import { NgIcon, provideIcons } from '@ng-icons/core';
|
|
3
|
+
import { lucideCheck } from '@ng-icons/lucide';
|
|
4
|
+
import { BrnSelectItem } from '@spartan-ng/brain/select';
|
|
5
|
+
import { classes } from '@spartan-ng/styles/utils';
|
|
6
|
+
|
|
7
|
+
@Component({
|
|
8
|
+
selector: 'hlm-select-item',
|
|
9
|
+
imports: [NgIcon],
|
|
10
|
+
providers: [provideIcons({ lucideCheck })],
|
|
11
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
12
|
+
hostDirectives: [{ directive: BrnSelectItem, inputs: ['id', 'disabled', 'value'] }],
|
|
13
|
+
host: { 'data-slot': 'select-item' },
|
|
14
|
+
template: `
|
|
15
|
+
<ng-content />
|
|
16
|
+
@if (_active()) {
|
|
17
|
+
<ng-icon
|
|
18
|
+
name="lucideCheck"
|
|
19
|
+
class="absolute end-2 flex items-center justify-center text-[length:--spacing(4)]"
|
|
20
|
+
aria-hidden="true"
|
|
21
|
+
/>
|
|
22
|
+
}
|
|
23
|
+
`,
|
|
24
|
+
})
|
|
25
|
+
export class HlmSelectItem {
|
|
26
|
+
private readonly _brnSelectItem = inject(BrnSelectItem);
|
|
27
|
+
|
|
28
|
+
protected readonly _active = this._brnSelectItem.active;
|
|
29
|
+
|
|
30
|
+
constructor() {
|
|
31
|
+
classes(
|
|
32
|
+
() =>
|
|
33
|
+
'data-highlighted:bg-accent data-highlighted:text-accent-foreground not-data-[variant=destructive]:data-highlighted:**:text-accent-foreground gap-1.5 rounded-md py-1 ps-1.5 pe-8 text-sm *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2 relative flex w-full cursor-default items-center outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_ng-icon]:pointer-events-none [&_ng-icon]:shrink-0',
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Directive } from '@angular/core';
|
|
2
|
+
import { BrnSelectLabel } from '@spartan-ng/brain/select';
|
|
3
|
+
import { classes } from '@spartan-ng/styles/utils';
|
|
4
|
+
|
|
5
|
+
@Directive({
|
|
6
|
+
selector: '[hlmSelectLabel],hlm-select-label',
|
|
7
|
+
hostDirectives: [{ directive: BrnSelectLabel, inputs: ['id'] }],
|
|
8
|
+
host: { 'data-slot': 'select-label' },
|
|
9
|
+
})
|
|
10
|
+
export class HlmSelectLabel {
|
|
11
|
+
constructor() {
|
|
12
|
+
classes(() => 'text-muted-foreground px-1.5 py-1 text-xs flex');
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Directive } from '@angular/core';
|
|
2
|
+
import {
|
|
3
|
+
BrnPopover,
|
|
4
|
+
provideBrnPopoverConfig,
|
|
5
|
+
provideBrnPopoverDefaultOptions,
|
|
6
|
+
} from '@spartan-ng/brain/popover';
|
|
7
|
+
import { BrnSelectMultiple } from '@spartan-ng/brain/select';
|
|
8
|
+
import { classes } from '@spartan-ng/styles/utils';
|
|
9
|
+
|
|
10
|
+
@Directive({
|
|
11
|
+
selector: '[hlmSelectMultiple],hlm-select-multiple',
|
|
12
|
+
providers: [
|
|
13
|
+
provideBrnPopoverConfig({
|
|
14
|
+
align: 'start',
|
|
15
|
+
sideOffset: 6,
|
|
16
|
+
}),
|
|
17
|
+
provideBrnPopoverDefaultOptions({ role: null }),
|
|
18
|
+
],
|
|
19
|
+
hostDirectives: [
|
|
20
|
+
{
|
|
21
|
+
directive: BrnSelectMultiple,
|
|
22
|
+
inputs: ['disabled', 'value', 'isItemEqualToValue', 'itemToString'],
|
|
23
|
+
outputs: ['valueChange'],
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
directive: BrnPopover,
|
|
27
|
+
inputs: ['align', 'closeOnOutsidePointerEvents', 'sideOffset', 'state', 'offsetX'],
|
|
28
|
+
outputs: ['stateChanged', 'closed'],
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
host: { 'data-slot': 'select' },
|
|
32
|
+
})
|
|
33
|
+
export class HlmSelectMultiple {
|
|
34
|
+
constructor() {
|
|
35
|
+
classes(() => 'block');
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Directive } from '@angular/core';
|
|
2
|
+
import { BrnSelectPlaceholder } from '@spartan-ng/brain/select';
|
|
3
|
+
import { classes } from '@spartan-ng/styles/utils';
|
|
4
|
+
|
|
5
|
+
@Directive({
|
|
6
|
+
selector: '[hlmSelectPlaceholder],hlm-select-placeholder',
|
|
7
|
+
hostDirectives: [BrnSelectPlaceholder],
|
|
8
|
+
host: { 'data-slot': 'select-placeholder' },
|
|
9
|
+
})
|
|
10
|
+
export class HlmSelectPlaceholder {
|
|
11
|
+
constructor() {
|
|
12
|
+
classes(
|
|
13
|
+
() =>
|
|
14
|
+
"gap-2 [&_ng-icon:not([class*='text-'])]:text-[length:--spacing(4)] flex items-center data-hidden:hidden [&_ng-icon]:pointer-events-none [&_ng-icon]:shrink-0",
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Directive } from '@angular/core';
|
|
2
|
+
import { BrnPopoverContent } from '@spartan-ng/brain/popover';
|
|
3
|
+
|
|
4
|
+
@Directive({
|
|
5
|
+
selector: '[hlmSelectPortal]',
|
|
6
|
+
hostDirectives: [{ directive: BrnPopoverContent, inputs: ['context', 'class'] }],
|
|
7
|
+
})
|
|
8
|
+
export class HlmSelectPortal {}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
2
|
+
import { NgIcon, provideIcons } from '@ng-icons/core';
|
|
3
|
+
import { lucideChevronDown } from '@ng-icons/lucide';
|
|
4
|
+
import { BrnSelectScrollDown } from '@spartan-ng/brain/select';
|
|
5
|
+
import { classes } from '@spartan-ng/styles/utils';
|
|
6
|
+
|
|
7
|
+
@Component({
|
|
8
|
+
selector: 'hlm-select-scroll-down',
|
|
9
|
+
imports: [NgIcon],
|
|
10
|
+
providers: [provideIcons({ lucideChevronDown })],
|
|
11
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
12
|
+
hostDirectives: [BrnSelectScrollDown],
|
|
13
|
+
template: ` <ng-icon name="lucideChevronDown" /> `,
|
|
14
|
+
})
|
|
15
|
+
export class HlmSelectScrollDown {
|
|
16
|
+
constructor() {
|
|
17
|
+
classes(
|
|
18
|
+
() =>
|
|
19
|
+
"bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_ng-icon:not([class*='text-'])]:text-[length:--spacing(4)] sticky bottom-0 w-full data-hidden:hidden",
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
2
|
+
import { NgIcon, provideIcons } from '@ng-icons/core';
|
|
3
|
+
import { lucideChevronUp } from '@ng-icons/lucide';
|
|
4
|
+
import { BrnSelectScrollUp } from '@spartan-ng/brain/select';
|
|
5
|
+
import { classes } from '@spartan-ng/styles/utils';
|
|
6
|
+
|
|
7
|
+
@Component({
|
|
8
|
+
selector: 'hlm-select-scroll-up',
|
|
9
|
+
imports: [NgIcon],
|
|
10
|
+
providers: [provideIcons({ lucideChevronUp })],
|
|
11
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
12
|
+
hostDirectives: [BrnSelectScrollUp],
|
|
13
|
+
template: ` <ng-icon name="lucideChevronUp" /> `,
|
|
14
|
+
})
|
|
15
|
+
export class HlmSelectScrollUp {
|
|
16
|
+
constructor() {
|
|
17
|
+
classes(
|
|
18
|
+
() =>
|
|
19
|
+
"bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_ng-icon:not([class*='text-'])]:text-[length:--spacing(4)] sticky top-0 w-full data-hidden:hidden",
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Directive } from '@angular/core';
|
|
2
|
+
import { BrnSelectSeparator } from '@spartan-ng/brain/select';
|
|
3
|
+
import { classes } from '@spartan-ng/styles/utils';
|
|
4
|
+
|
|
5
|
+
@Directive({
|
|
6
|
+
selector: '[hlmSelectSeparator],hlm-select-separator',
|
|
7
|
+
hostDirectives: [{ directive: BrnSelectSeparator, inputs: ['orientation'] }],
|
|
8
|
+
host: { 'data-slot': 'select-separator' },
|
|
9
|
+
})
|
|
10
|
+
export class HlmSelectSeparator {
|
|
11
|
+
constructor() {
|
|
12
|
+
classes(() => 'bg-border -mx-1 my-1 h-px pointer-events-none');
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { BooleanInput } from '@angular/cdk/coercion';
|
|
2
|
+
import {
|
|
3
|
+
booleanAttribute,
|
|
4
|
+
ChangeDetectionStrategy,
|
|
5
|
+
Component,
|
|
6
|
+
computed,
|
|
7
|
+
input,
|
|
8
|
+
} from '@angular/core';
|
|
9
|
+
import { NgIcon, provideIcons } from '@ng-icons/core';
|
|
10
|
+
import { lucideChevronDown } from '@ng-icons/lucide';
|
|
11
|
+
import { BrnFieldControlDescribedBy } from '@spartan-ng/brain/field';
|
|
12
|
+
import { BrnSelectTrigger } from '@spartan-ng/brain/select';
|
|
13
|
+
import { hlm } from '@spartan-ng/styles/utils';
|
|
14
|
+
import type { ClassValue } from 'clsx';
|
|
15
|
+
|
|
16
|
+
@Component({
|
|
17
|
+
selector: 'hlm-select-trigger',
|
|
18
|
+
imports: [NgIcon, BrnSelectTrigger, BrnFieldControlDescribedBy],
|
|
19
|
+
providers: [provideIcons({ lucideChevronDown })],
|
|
20
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
21
|
+
host: { class: 'block' },
|
|
22
|
+
template: `
|
|
23
|
+
<button
|
|
24
|
+
brnSelectTrigger
|
|
25
|
+
brnFieldControlDescribedBy
|
|
26
|
+
[forceInvalid]="forceInvalid()"
|
|
27
|
+
[id]="buttonId()"
|
|
28
|
+
[class]="_computedClass()"
|
|
29
|
+
[attr.data-size]="size()"
|
|
30
|
+
data-slot="select-trigger"
|
|
31
|
+
>
|
|
32
|
+
<ng-content />
|
|
33
|
+
<ng-icon
|
|
34
|
+
name="lucideChevronDown"
|
|
35
|
+
class="text-muted-foreground text-[length:--spacing(4)] ms-auto"
|
|
36
|
+
/>
|
|
37
|
+
</button>
|
|
38
|
+
`,
|
|
39
|
+
})
|
|
40
|
+
export class HlmSelectTrigger {
|
|
41
|
+
private static _id = 0;
|
|
42
|
+
|
|
43
|
+
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
44
|
+
protected readonly _computedClass = computed(() =>
|
|
45
|
+
hlm(
|
|
46
|
+
'border-input data-placeholder:text-muted-foreground dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/50 data-[matches-spartan-invalid=true]:ring-destructive/20 dark:data-[matches-spartan-invalid=true]:ring-destructive/40 data-[matches-spartan-invalid=true]:border-destructive dark:data-[matches-spartan-invalid=true]:border-destructive/50 gap-1.5 rounded-lg border bg-transparent py-2 ps-2.5 pe-2 text-sm transition-colors focus-visible:ring-3 data-[matches-spartan-invalid=true]:ring-3 data-[size=default]:h-8 data-[size=sm]:h-6 data-[size=sm]:text-xs data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-[size=lg]:h-10 *:data-[slot=select-value]:gap-1.5 flex w-full items-center justify-between whitespace-nowrap outline-none disabled:cursor-not-allowed disabled:opacity-50 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center [&_ng-icon]:pointer-events-none [&_ng-icon]:shrink-0',
|
|
47
|
+
this.userClass(),
|
|
48
|
+
),
|
|
49
|
+
);
|
|
50
|
+
|
|
51
|
+
public readonly buttonId = input<string>(`hlm-select-trigger-${HlmSelectTrigger._id++}`);
|
|
52
|
+
|
|
53
|
+
public readonly size = input<'default' | 'sm' | 'lg'>('default');
|
|
54
|
+
|
|
55
|
+
/** Whether to force the trigger into an invalid state. */
|
|
56
|
+
public readonly forceInvalid = input<boolean, BooleanInput>(false, {
|
|
57
|
+
transform: booleanAttribute,
|
|
58
|
+
});
|
|
59
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Directive, inject } from '@angular/core';
|
|
2
|
+
import { BrnSelectValue } from '@spartan-ng/brain/select';
|
|
3
|
+
import { classes } from '@spartan-ng/styles/utils';
|
|
4
|
+
|
|
5
|
+
@Directive({
|
|
6
|
+
selector: '[hlmSelectValue],hlm-select-value',
|
|
7
|
+
hostDirectives: [{ directive: BrnSelectValue, inputs: ['placeholder'] }],
|
|
8
|
+
host: { '[attr.data-slot]': '!_hidden() ? "select-value" : null' },
|
|
9
|
+
})
|
|
10
|
+
export class HlmSelectValue {
|
|
11
|
+
private readonly _brnSelectValue = inject(BrnSelectValue);
|
|
12
|
+
|
|
13
|
+
protected readonly _hidden = this._brnSelectValue.hidden;
|
|
14
|
+
|
|
15
|
+
constructor() {
|
|
16
|
+
classes(() => 'data-hidden:hidden');
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Directive } from '@angular/core';
|
|
2
|
+
import { classes } from '@spartan-ng/styles/utils';
|
|
3
|
+
|
|
4
|
+
@Directive({ selector: '[hlmSelectValuesContent],hlm-select-values-content' })
|
|
5
|
+
export class HlmSelectValuesContent {
|
|
6
|
+
constructor() {
|
|
7
|
+
classes(() => 'gap-2 flex');
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Directive } from '@angular/core';
|
|
2
|
+
import {
|
|
3
|
+
BrnPopover,
|
|
4
|
+
provideBrnPopoverConfig,
|
|
5
|
+
provideBrnPopoverDefaultOptions,
|
|
6
|
+
} from '@spartan-ng/brain/popover';
|
|
7
|
+
import { BrnSelect } from '@spartan-ng/brain/select';
|
|
8
|
+
import { classes } from '@spartan-ng/styles/utils';
|
|
9
|
+
|
|
10
|
+
@Directive({
|
|
11
|
+
selector: '[hlmSelect],hlm-select',
|
|
12
|
+
providers: [
|
|
13
|
+
provideBrnPopoverConfig({
|
|
14
|
+
align: 'start',
|
|
15
|
+
sideOffset: 6,
|
|
16
|
+
}),
|
|
17
|
+
provideBrnPopoverDefaultOptions({ role: null }),
|
|
18
|
+
],
|
|
19
|
+
hostDirectives: [
|
|
20
|
+
{
|
|
21
|
+
directive: BrnSelect,
|
|
22
|
+
inputs: ['disabled', 'value', 'isItemEqualToValue', 'itemToString'],
|
|
23
|
+
outputs: ['valueChange'],
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
directive: BrnPopover,
|
|
27
|
+
inputs: ['align', 'closeOnOutsidePointerEvents', 'sideOffset', 'state', 'offsetX'],
|
|
28
|
+
outputs: ['stateChanged', 'closed'],
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
host: { 'data-slot': 'select' },
|
|
32
|
+
})
|
|
33
|
+
export class HlmSelect {
|
|
34
|
+
constructor() {
|
|
35
|
+
classes(() => 'block');
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { HlmSelect } from './hlm-select';
|
|
2
|
+
import { HlmSelectContent } from './hlm-select-content';
|
|
3
|
+
import { HlmSelectGroup } from './hlm-select-group';
|
|
4
|
+
import { HlmSelectItem } from './hlm-select-item';
|
|
5
|
+
import { HlmSelectLabel } from './hlm-select-label';
|
|
6
|
+
import { HlmSelectMultiple } from './hlm-select-multiple';
|
|
7
|
+
import { HlmSelectPlaceholder } from './hlm-select-placeholder';
|
|
8
|
+
import { HlmSelectPortal } from './hlm-select-portal';
|
|
9
|
+
import { HlmSelectScrollDown } from './hlm-select-scroll-down';
|
|
10
|
+
import { HlmSelectScrollUp } from './hlm-select-scroll-up';
|
|
11
|
+
import { HlmSelectSeparator } from './hlm-select-separator';
|
|
12
|
+
import { HlmSelectTrigger } from './hlm-select-trigger';
|
|
13
|
+
import { HlmSelectValue } from './hlm-select-value';
|
|
14
|
+
import { HlmSelectValueTemplate } from './hlm-select-value-template';
|
|
15
|
+
import { HlmSelectValues } from './hlm-select-values';
|
|
16
|
+
import { HlmSelectValuesContent } from './hlm-select-values-content';
|
|
17
|
+
|
|
18
|
+
export * from './hlm-select';
|
|
19
|
+
export * from './hlm-select-content';
|
|
20
|
+
export * from './hlm-select-group';
|
|
21
|
+
export * from './hlm-select-item';
|
|
22
|
+
export * from './hlm-select-label';
|
|
23
|
+
export * from './hlm-select-multiple';
|
|
24
|
+
export * from './hlm-select-placeholder';
|
|
25
|
+
export * from './hlm-select-portal';
|
|
26
|
+
export * from './hlm-select-scroll-down';
|
|
27
|
+
export * from './hlm-select-scroll-up';
|
|
28
|
+
export * from './hlm-select-separator';
|
|
29
|
+
export * from './hlm-select-trigger';
|
|
30
|
+
export * from './hlm-select-value';
|
|
31
|
+
export * from './hlm-select-value-template';
|
|
32
|
+
export * from './hlm-select-values';
|
|
33
|
+
export * from './hlm-select-values-content';
|
|
34
|
+
|
|
35
|
+
export const HlmSelectImports = [
|
|
36
|
+
HlmSelect,
|
|
37
|
+
HlmSelectContent,
|
|
38
|
+
HlmSelectGroup,
|
|
39
|
+
HlmSelectItem,
|
|
40
|
+
HlmSelectLabel,
|
|
41
|
+
HlmSelectMultiple,
|
|
42
|
+
HlmSelectPlaceholder,
|
|
43
|
+
HlmSelectPortal,
|
|
44
|
+
HlmSelectScrollDown,
|
|
45
|
+
HlmSelectScrollUp,
|
|
46
|
+
HlmSelectSeparator,
|
|
47
|
+
HlmSelectTrigger,
|
|
48
|
+
HlmSelectValue,
|
|
49
|
+
HlmSelectValues,
|
|
50
|
+
HlmSelectValuesContent,
|
|
51
|
+
HlmSelectValueTemplate,
|
|
52
|
+
] as const;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Directive } from '@angular/core';
|
|
2
|
+
import { BrnSeparator } from '@spartan-ng/brain/separator';
|
|
3
|
+
import { classes } from '@spartan-ng/styles/utils';
|
|
4
|
+
|
|
5
|
+
export const hlmSeparatorClass =
|
|
6
|
+
'inline-flex shrink-0 bg-border data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch';
|
|
7
|
+
|
|
8
|
+
@Directive({
|
|
9
|
+
selector: '[hlmSeparator],hlm-separator',
|
|
10
|
+
hostDirectives: [{ directive: BrnSeparator, inputs: ['orientation', 'decorative'] }],
|
|
11
|
+
host: {
|
|
12
|
+
'data-slot': 'separator',
|
|
13
|
+
},
|
|
14
|
+
})
|
|
15
|
+
export class HlmSeparator {
|
|
16
|
+
constructor() {
|
|
17
|
+
classes(() => hlmSeparatorClass);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Directive } from '@angular/core';
|
|
2
|
+
import { classes } from '@spartan-ng/styles/utils';
|
|
3
|
+
|
|
4
|
+
@Directive({
|
|
5
|
+
selector: '[hlmSkeleton],hlm-skeleton',
|
|
6
|
+
host: {
|
|
7
|
+
'data-slot': 'skeleton',
|
|
8
|
+
},
|
|
9
|
+
})
|
|
10
|
+
export class HlmSkeleton {
|
|
11
|
+
constructor() {
|
|
12
|
+
classes(() => 'bg-accent rounded-md block motion-safe:animate-pulse');
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, input } from '@angular/core';
|
|
2
|
+
import { NgIcon, provideIcons, provideNgIconsConfig } from '@ng-icons/core';
|
|
3
|
+
import { lucideLoader2 } from '@ng-icons/lucide';
|
|
4
|
+
import { classes } from '@spartan-ng/styles/utils';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'hlm-spinner',
|
|
8
|
+
imports: [NgIcon],
|
|
9
|
+
providers: [provideIcons({ lucideLoader2 }), provideNgIconsConfig({ size: '1em' })],
|
|
10
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
11
|
+
host: {
|
|
12
|
+
'data-slot': 'spinner',
|
|
13
|
+
},
|
|
14
|
+
template: ` <ng-icon [name]="icon()" /> `,
|
|
15
|
+
})
|
|
16
|
+
export class HlmSpinner {
|
|
17
|
+
/**
|
|
18
|
+
* The name of the icon to be used as the spinner.
|
|
19
|
+
* Use provideIcons({ ... }) to register custom icons.
|
|
20
|
+
*/
|
|
21
|
+
public readonly icon = input<string>('lucideLoader2');
|
|
22
|
+
|
|
23
|
+
constructor() {
|
|
24
|
+
classes(() => 'inline-flex motion-safe:animate-spin');
|
|
25
|
+
}
|
|
26
|
+
}
|