From c718381387aa1ca1e5cd40e27e1bf1c6664c7a18 Mon Sep 17 00:00:00 2001 From: Quentin Deroubaix <139884126+quentinderoubaix@users.noreply.github.com> Date: Fri, 18 Oct 2024 14:31:35 +0200 Subject: [PATCH] feat: moving actions into directives / api (#947) --- .../src/components/select/select.component.ts | 16 +- angular/bootstrap/src/index.ts | 18 +- .../app/samples/pagination/custom.route.ts | 2 +- .../src/app/samples/select/custom.route.ts | 2 +- .../slots/rating-readonly.component.ts | 5 - .../pagination/pagination.component.html | 10 +- .../app/samples/rating/rating.component.html | 6 +- .../app/samples/slider/slider.component.html | 12 +- .../app/samples/slider/slider.component.ts | 4 +- angular/ssr-app/tsconfig.json | 2 + .../src/components/accordion/accordion.ts | 3 +- core-bootstrap/src/components/modal/modal.ts | 10 +- .../src/components/pagination/pagination.ts | 4 +- .../src/components/rating/rating.ts | 10 +- .../src/components/select/select.ts | 11 +- .../src/components/slider/slider.ts | 10 +- core-bootstrap/src/scss/select.scss | 2 + .../components/accordion/accordion.spec.ts | 10 +- core/src/components/accordion/accordion.ts | 26 +- core/src/components/components.spec-utils.ts | 54 ++++ core/src/components/modal/modal.spec.ts | 7 +- core/src/components/modal/modal.ts | 41 +-- .../components/pagination/pagination.spec.ts | 19 +- core/src/components/pagination/pagination.ts | 62 ++--- core/src/components/rating/rating.spec.ts | 118 ++++---- core/src/components/rating/rating.ts | 137 +++++---- core/src/components/select/select.spec.ts | 36 ++- core/src/components/select/select.ts | 191 +++++++------ core/src/components/slider/slider.spec.ts | 93 ++++--- core/src/components/slider/slider.ts | 259 ++++++++---------- .../bootstrap-select-custom.html | 2 +- .../bootstrap-select-default.html | 2 +- .../bootstrap-select-playground.html | 2 +- .../bootstrap-select-select.html | 2 +- .../daisyui-slider-default.html | 2 +- e2e/select/select.singlebrowser-e2e-spec.ts | 4 +- e2e/ssr.ssr-e2e-spec.ts-snapshots/ssr.html | 2 +- .../src/components/select/select.tsx | 18 +- .../samples/pagination/Custom.route.tsx | 2 +- .../bootstrap/samples/select/Custom.route.tsx | 3 +- .../daisyui/samples/pagination/Pagination.tsx | 2 +- .../src/daisyui/samples/rating/Rating.tsx | 6 +- .../src/daisyui/samples/slider/Slider.tsx | 11 +- react/headless/src/utils/directive.ts | 3 + react/ssr-app/tsconfig.json | 1 + .../src/components/select/Select.svelte | 18 +- .../samples/pagination/CustomPages.svelte | 2 +- .../samples/select/Custom.route.svelte | 6 +- .../samples/pagination/Pagination.svelte | 4 +- .../src/daisyui/samples/rating/Rating.svelte | 11 +- .../src/daisyui/samples/slider/Slider.svelte | 8 +- 51 files changed, 616 insertions(+), 675 deletions(-) diff --git a/angular/bootstrap/src/components/select/select.component.ts b/angular/bootstrap/src/components/select/select.component.ts index a0f402768b..6b3ec733bd 100644 --- a/angular/bootstrap/src/components/select/select.component.ts +++ b/angular/bootstrap/src/components/select/select.component.ts @@ -46,24 +46,12 @@ export class SelectItemLabelDirective { > @if (state.selectedContexts; as selectedContexts) { @for (itemContext of selectedContexts; track itemCtxTrackBy($index, itemContext)) { -
+
} } - +
@if (state.open && state.visibleItems.length) {