@ngbase/adk 0.1.10 → 0.1.12
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/a11y/index.d.ts +151 -5
- package/accordion/index.d.ts +44 -5
- package/autocomplete/index.d.ts +54 -5
- package/avatar/index.d.ts +25 -5
- package/bidi/index.d.ts +17 -5
- package/breadcrumb/index.d.ts +36 -5
- package/cache/index.d.ts +46 -5
- package/carousel/index.d.ts +79 -5
- package/checkbox/index.d.ts +33 -5
- package/chip/index.d.ts +28 -5
- package/clipboard/index.d.ts +11 -5
- package/collections/index.d.ts +23 -5
- package/color-picker/index.d.ts +119 -5
- package/cookies/index.d.ts +35 -5
- package/datepicker/index.d.ts +317 -5
- package/dialog/index.d.ts +63 -5
- package/drag/index.d.ts +107 -5
- package/fesm2022/ngbase-adk-a11y.mjs +100 -74
- package/fesm2022/ngbase-adk-a11y.mjs.map +1 -1
- package/fesm2022/ngbase-adk-accordion.mjs +31 -19
- package/fesm2022/ngbase-adk-accordion.mjs.map +1 -1
- package/fesm2022/ngbase-adk-autocomplete.mjs +17 -17
- package/fesm2022/ngbase-adk-autocomplete.mjs.map +1 -1
- package/fesm2022/ngbase-adk-avatar.mjs +16 -16
- package/fesm2022/ngbase-adk-avatar.mjs.map +1 -1
- package/fesm2022/ngbase-adk-bidi.mjs +6 -7
- package/fesm2022/ngbase-adk-bidi.mjs.map +1 -1
- package/fesm2022/ngbase-adk-breadcrumb.mjs +15 -15
- package/fesm2022/ngbase-adk-breadcrumb.mjs.map +1 -1
- package/fesm2022/ngbase-adk-cache.mjs +3 -3
- package/fesm2022/ngbase-adk-carousel.mjs +24 -24
- package/fesm2022/ngbase-adk-carousel.mjs.map +1 -1
- package/fesm2022/ngbase-adk-checkbox.mjs +10 -10
- package/fesm2022/ngbase-adk-checkbox.mjs.map +1 -1
- package/fesm2022/ngbase-adk-chip.mjs +13 -13
- package/fesm2022/ngbase-adk-chip.mjs.map +1 -1
- package/fesm2022/ngbase-adk-clipboard.mjs +27 -12
- package/fesm2022/ngbase-adk-clipboard.mjs.map +1 -1
- package/fesm2022/ngbase-adk-collections.mjs +5 -5
- package/fesm2022/ngbase-adk-collections.mjs.map +1 -1
- package/fesm2022/ngbase-adk-color-picker.mjs +39 -39
- package/fesm2022/ngbase-adk-color-picker.mjs.map +1 -1
- package/fesm2022/ngbase-adk-cookies.mjs +3 -3
- package/fesm2022/ngbase-adk-datepicker.mjs +107 -107
- package/fesm2022/ngbase-adk-datepicker.mjs.map +1 -1
- package/fesm2022/ngbase-adk-dialog.mjs +39 -109
- package/fesm2022/ngbase-adk-dialog.mjs.map +1 -1
- package/fesm2022/ngbase-adk-drag.mjs +21 -22
- package/fesm2022/ngbase-adk-drag.mjs.map +1 -1
- package/fesm2022/ngbase-adk-form-field.mjs +206 -31
- package/fesm2022/ngbase-adk-form-field.mjs.map +1 -1
- package/fesm2022/ngbase-adk-hover-card.mjs +6 -6
- package/fesm2022/ngbase-adk-hover-card.mjs.map +1 -1
- package/fesm2022/ngbase-adk-icon.mjs +10 -10
- package/fesm2022/ngbase-adk-icon.mjs.map +1 -1
- package/fesm2022/ngbase-adk-inline-edit.mjs +29 -27
- package/fesm2022/ngbase-adk-inline-edit.mjs.map +1 -1
- package/fesm2022/ngbase-adk-jwt.mjs +6 -6
- package/fesm2022/ngbase-adk-keys.mjs +7 -8
- package/fesm2022/ngbase-adk-keys.mjs.map +1 -1
- package/fesm2022/ngbase-adk-layout.mjs +1 -1
- package/fesm2022/ngbase-adk-layout.mjs.map +1 -1
- package/fesm2022/ngbase-adk-list.mjs +10 -10
- package/fesm2022/ngbase-adk-list.mjs.map +1 -1
- package/fesm2022/ngbase-adk-mask.mjs +8 -8
- package/fesm2022/ngbase-adk-mask.mjs.map +1 -1
- package/fesm2022/ngbase-adk-menu.mjs +41 -41
- package/fesm2022/ngbase-adk-menu.mjs.map +1 -1
- package/fesm2022/ngbase-adk-network.mjs +4 -4
- package/fesm2022/ngbase-adk-network.mjs.map +1 -1
- package/fesm2022/ngbase-adk-otp.mjs +19 -19
- package/fesm2022/ngbase-adk-otp.mjs.map +1 -1
- package/fesm2022/ngbase-adk-pagination.mjs +20 -20
- package/fesm2022/ngbase-adk-pagination.mjs.map +1 -1
- package/fesm2022/ngbase-adk-popover.mjs +28 -28
- package/fesm2022/ngbase-adk-popover.mjs.map +1 -1
- package/fesm2022/ngbase-adk-portal.mjs +14 -15
- package/fesm2022/ngbase-adk-portal.mjs.map +1 -1
- package/fesm2022/ngbase-adk-progress.mjs +8 -8
- package/fesm2022/ngbase-adk-progress.mjs.map +1 -1
- package/fesm2022/ngbase-adk-radio.mjs +15 -15
- package/fesm2022/ngbase-adk-radio.mjs.map +1 -1
- package/fesm2022/ngbase-adk-resizable.mjs +19 -20
- package/fesm2022/ngbase-adk-resizable.mjs.map +1 -1
- package/fesm2022/ngbase-adk-scroll-area.mjs +31 -31
- package/fesm2022/ngbase-adk-scroll-area.mjs.map +1 -1
- package/fesm2022/ngbase-adk-select.mjs +73 -75
- package/fesm2022/ngbase-adk-select.mjs.map +1 -1
- package/fesm2022/ngbase-adk-selectable.mjs +9 -9
- package/fesm2022/ngbase-adk-selectable.mjs.map +1 -1
- package/fesm2022/ngbase-adk-sheet.mjs +9 -7
- package/fesm2022/ngbase-adk-sheet.mjs.map +1 -1
- package/fesm2022/ngbase-adk-sidenav.mjs +37 -37
- package/fesm2022/ngbase-adk-sidenav.mjs.map +1 -1
- package/fesm2022/ngbase-adk-slider.mjs +26 -26
- package/fesm2022/ngbase-adk-slider.mjs.map +1 -1
- package/fesm2022/ngbase-adk-sonner.mjs +11 -11
- package/fesm2022/ngbase-adk-sonner.mjs.map +1 -1
- package/fesm2022/ngbase-adk-stepper.mjs +28 -28
- package/fesm2022/ngbase-adk-stepper.mjs.map +1 -1
- package/fesm2022/ngbase-adk-switch.mjs +16 -16
- package/fesm2022/ngbase-adk-switch.mjs.map +1 -1
- package/fesm2022/ngbase-adk-table.mjs +98 -78
- package/fesm2022/ngbase-adk-table.mjs.map +1 -1
- package/fesm2022/ngbase-adk-tabs.mjs +44 -44
- package/fesm2022/ngbase-adk-tabs.mjs.map +1 -1
- package/fesm2022/ngbase-adk-toggle-group.mjs +15 -15
- package/fesm2022/ngbase-adk-toggle-group.mjs.map +1 -1
- package/fesm2022/ngbase-adk-toggle.mjs +4 -4
- package/fesm2022/ngbase-adk-toggle.mjs.map +1 -1
- package/fesm2022/ngbase-adk-tooltip.mjs +15 -15
- package/fesm2022/ngbase-adk-tooltip.mjs.map +1 -1
- package/fesm2022/ngbase-adk-tour.mjs +28 -28
- package/fesm2022/ngbase-adk-tour.mjs.map +1 -1
- package/fesm2022/ngbase-adk-translate.mjs +13 -13
- package/fesm2022/ngbase-adk-translate.mjs.map +1 -1
- package/fesm2022/ngbase-adk-tree.mjs +27 -27
- package/fesm2022/ngbase-adk-tree.mjs.map +1 -1
- package/fesm2022/ngbase-adk-utils.mjs +43 -20
- package/fesm2022/ngbase-adk-utils.mjs.map +1 -1
- package/fesm2022/ngbase-adk-virtualizer.mjs +20 -20
- package/fesm2022/ngbase-adk-virtualizer.mjs.map +1 -1
- package/form-field/index.d.ts +95 -5
- package/hover-card/index.d.ts +21 -5
- package/icon/index.d.ts +28 -5
- package/index.d.ts +2 -5
- package/inline-edit/index.d.ts +53 -5
- package/jwt/index.d.ts +20 -5
- package/keys/index.d.ts +54 -5
- package/layout/index.d.ts +20 -5
- package/list/index.d.ts +34 -5
- package/mask/index.d.ts +33 -5
- package/menu/index.d.ts +145 -5
- package/network/index.d.ts +29 -5
- package/otp/index.d.ts +51 -5
- package/package.json +44 -44
- package/pagination/index.d.ts +35 -5
- package/popover/index.d.ts +212 -5
- package/portal/index.d.ts +113 -5
- package/progress/index.d.ts +17 -5
- package/radio/index.d.ts +45 -5
- package/resizable/index.d.ts +73 -5
- package/schematics/components/files/accordion/accordion.ts.template +2 -2
- package/schematics/components/files/autocomplete/autocomplete.ts.template +1 -0
- package/schematics/components/files/avatar/avatar.ts.template +12 -4
- package/schematics/components/files/button/button.ts.template +32 -13
- package/schematics/components/files/command/command.ts.template +10 -9
- package/schematics/components/files/datepicker/datepicker-llm.md.template +15 -2
- package/schematics/components/files/dialog/dialog.ts.template +9 -2
- package/schematics/components/files/drawer/drawer.ts.template +1 -1
- package/schematics/components/files/form-field/form-field.ts.template +10 -1
- package/schematics/components/files/form-field/input-style.directive.ts.template +1 -1
- package/schematics/components/files/icon/icon-llm.md.template +0 -1
- package/schematics/components/files/inline-edit/inline-edit.ts.template +2 -2
- package/schematics/components/files/otp/otp.ts.template +1 -1
- package/schematics/components/files/picasa/picasa-base.component.ts.template +1 -2
- package/schematics/components/files/picasa/picasa.component.ts.template +4 -4
- package/schematics/components/files/select/select.ts.template +5 -18
- package/schematics/components/files/sheet/sheet.ts.template +1 -1
- package/schematics/components/files/sidenav/sidenav-llm.md.template +0 -1
- package/schematics/components/files/spinner/spinner.ts.template +1 -29
- package/schematics/components/files/table/table-llm.md.template +41 -1
- package/schematics/components/files/table/table.ts.template +40 -5
- package/scroll-area/index.d.ts +60 -5
- package/select/index.d.ts +177 -5
- package/selectable/index.d.ts +32 -5
- package/sheet/index.d.ts +44 -5
- package/sidenav/index.d.ts +74 -5
- package/slider/index.d.ts +79 -5
- package/sonner/index.d.ts +50 -5
- package/stepper/index.d.ts +54 -5
- package/switch/index.d.ts +47 -5
- package/table/index.d.ts +143 -5
- package/tabs/index.d.ts +85 -5
- package/test/index.d.ts +81 -5
- package/toggle/index.d.ts +16 -5
- package/toggle-group/index.d.ts +39 -5
- package/tooltip/index.d.ts +60 -5
- package/tour/index.d.ts +70 -5
- package/translate/index.d.ts +58 -5
- package/tree/index.d.ts +95 -5
- package/utils/index.d.ts +82 -5
- package/virtualizer/index.d.ts +45 -5
- package/a11y/accessibility-group.d.ts +0 -46
- package/a11y/accessibility-item.d.ts +0 -49
- package/a11y/accessibility.service.d.ts +0 -17
- package/a11y/autofocus.d.ts +0 -18
- package/a11y/focus-trap.d.ts +0 -15
- package/a11y/public-api.d.ts +0 -4
- package/accordion/accordion-content.d.ts +0 -8
- package/accordion/accordion-group.d.ts +0 -10
- package/accordion/accordion-header.d.ts +0 -7
- package/accordion/accordion-item.d.ts +0 -16
- package/accordion/public-api.d.ts +0 -4
- package/autocomplete/autocomplete-input.d.ts +0 -19
- package/autocomplete/autocomplete.d.ts +0 -34
- package/autocomplete/public-api.d.ts +0 -2
- package/avatar/avatar.d.ts +0 -22
- package/avatar/public-api.d.ts +0 -1
- package/bidi/direction.service.d.ts +0 -14
- package/bidi/public-api.d.ts +0 -1
- package/breadcrumb/breadcrumb-link.d.ts +0 -7
- package/breadcrumb/breadcrumb-separator.d.ts +0 -6
- package/breadcrumb/breadcrumb.d.ts +0 -12
- package/breadcrumb/breadcrumbs.d.ts +0 -9
- package/breadcrumb/public-api.d.ts +0 -4
- package/cache/cache-config.d.ts +0 -22
- package/cache/cache.d.ts +0 -17
- package/cache/cache.interecptor.d.ts +0 -2
- package/cache/public-api.d.ts +0 -3
- package/carousel/carousel-item.d.ts +0 -7
- package/carousel/carousel-next.d.ts +0 -8
- package/carousel/carousel.d.ts +0 -61
- package/carousel/public-api.d.ts +0 -3
- package/checkbox/checkbox.d.ts +0 -30
- package/checkbox/public-api.d.ts +0 -1
- package/chip/chip-group.d.ts +0 -7
- package/chip/chip.d.ts +0 -19
- package/chip/public-api.d.ts +0 -2
- package/clipboard/clipboard.d.ts +0 -7
- package/clipboard/public-api.d.ts +0 -1
- package/collections/SelectionModel.d.ts +0 -19
- package/collections/public-api.d.ts +0 -1
- package/color-picker/color-input.d.ts +0 -16
- package/color-picker/color-picker-trigger.d.ts +0 -30
- package/color-picker/color-picker.d.ts +0 -72
- package/color-picker/public-api.d.ts +0 -3
- package/color-picker/utils.d.ts +0 -21
- package/cookies/cookie.service.d.ts +0 -32
- package/cookies/public-api.d.ts +0 -1
- package/datepicker/calendar.d.ts +0 -121
- package/datepicker/datepicker-trigger.d.ts +0 -66
- package/datepicker/datepicker.d.ts +0 -55
- package/datepicker/native-date-adapter.d.ts +0 -33
- package/datepicker/public-api.d.ts +0 -5
- package/datepicker/time.d.ts +0 -42
- package/dialog/dialog.animation.d.ts +0 -3
- package/dialog/dialog.d.ts +0 -49
- package/dialog/dialog.service.d.ts +0 -7
- package/dialog/public-api.d.ts +0 -3
- package/drag/drag-drop.d.ts +0 -37
- package/drag/drag-move.d.ts +0 -17
- package/drag/drag.d.ts +0 -52
- package/drag/public-api.d.ts +0 -3
- package/form-field/auto-height.d.ts +0 -9
- package/form-field/error.d.ts +0 -18
- package/form-field/form-field.d.ts +0 -14
- package/form-field/input.d.ts +0 -16
- package/form-field/label.d.ts +0 -7
- package/form-field/public-api.d.ts +0 -5
- package/hover-card/hover-card.d.ts +0 -18
- package/hover-card/public-api.d.ts +0 -1
- package/icon/icon.d.ts +0 -12
- package/icon/icon.service.d.ts +0 -12
- package/icon/public-api.d.ts +0 -2
- package/inline-edit/inline-edit.d.ts +0 -47
- package/inline-edit/public-api.d.ts +0 -1
- package/jwt/jwt.service.d.ts +0 -27
- package/jwt/public-api.d.ts +0 -1
- package/keys/keys.service.d.ts +0 -13
- package/keys/public-api.d.ts +0 -2
- package/keys/shortcuts.service.d.ts +0 -38
- package/layout/layout.d.ts +0 -16
- package/layout/public-api.d.ts +0 -1
- package/list/list.d.ts +0 -20
- package/list/list.directive.d.ts +0 -12
- package/list/public-api.d.ts +0 -2
- package/mask/mask-pipe.d.ts +0 -7
- package/mask/mask.d.ts +0 -24
- package/mask/public-api.d.ts +0 -2
- package/menu/context-menu.d.ts +0 -21
- package/menu/mention.d.ts +0 -18
- package/menu/menu-trigger.d.ts +0 -34
- package/menu/menu.d.ts +0 -58
- package/menu/navigation-menu.d.ts +0 -19
- package/menu/public-api.d.ts +0 -5
- package/network/network.interceptor.d.ts +0 -6
- package/network/network.service.d.ts +0 -18
- package/network/public-api.d.ts +0 -2
- package/otp/otp.d.ts +0 -48
- package/otp/public-api.d.ts +0 -1
- package/pagination/pagination.d.ts +0 -32
- package/pagination/public-api.d.ts +0 -1
- package/popover/base-popover.service.d.ts +0 -16
- package/popover/popover-arrow.ng.d.ts +0 -34
- package/popover/popover-trigger.d.ts +0 -21
- package/popover/popover.d.ts +0 -60
- package/popover/popover.service.d.ts +0 -43
- package/popover/public-api.d.ts +0 -6
- package/popover/utils.d.ts +0 -69
- package/portal/dialog-ref.d.ts +0 -70
- package/portal/portal-base.service.d.ts +0 -19
- package/portal/portal-close.directive.d.ts +0 -9
- package/portal/portal.component.d.ts +0 -7
- package/portal/portal.service.d.ts +0 -16
- package/portal/public-api.d.ts +0 -5
- package/progress/progress.d.ts +0 -13
- package/progress/public-api.d.ts +0 -1
- package/public-api.d.ts +0 -2
- package/radio/public-api.d.ts +0 -2
- package/radio/radio-group.d.ts +0 -19
- package/radio/radio.d.ts +0 -26
- package/resizable/public-api.d.ts +0 -2
- package/resizable/resizable-group.d.ts +0 -22
- package/resizable/resizable.d.ts +0 -50
- package/scroll-area/public-api.d.ts +0 -1
- package/scroll-area/scroll-area.d.ts +0 -56
- package/select/list-selection.d.ts +0 -7
- package/select/option-group.d.ts +0 -7
- package/select/option.d.ts +0 -25
- package/select/public-api.d.ts +0 -6
- package/select/select-base.d.ts +0 -66
- package/select/select-input.d.ts +0 -23
- package/select/select.d.ts +0 -53
- package/selectable/public-api.d.ts +0 -2
- package/selectable/selectable-item.d.ts +0 -12
- package/selectable/selectable.d.ts +0 -19
- package/sheet/public-api.d.ts +0 -2
- package/sheet/sheet.d.ts +0 -26
- package/sheet/sheet.service.d.ts +0 -13
- package/sidenav/public-api.d.ts +0 -3
- package/sidenav/sidenav-header.d.ts +0 -31
- package/sidenav/sidenav.d.ts +0 -23
- package/sidenav/sidenav.service.d.ts +0 -18
- package/slider/public-api.d.ts +0 -1
- package/slider/slider.d.ts +0 -76
- package/sonner/public-api.d.ts +0 -2
- package/sonner/sonner.d.ts +0 -25
- package/sonner/sonner.service.d.ts +0 -21
- package/stepper/animation.d.ts +0 -1
- package/stepper/public-api.d.ts +0 -3
- package/stepper/step.d.ts +0 -24
- package/stepper/stepper.d.ts +0 -26
- package/switch/public-api.d.ts +0 -1
- package/switch/switch.d.ts +0 -44
- package/table/body-cell.d.ts +0 -11
- package/table/body-row.d.ts +0 -25
- package/table/column.d.ts +0 -10
- package/table/head-cell.d.ts +0 -12
- package/table/head-row.d.ts +0 -24
- package/table/public-api.d.ts +0 -8
- package/table/sort.d.ts +0 -40
- package/table/table.d.ts +0 -38
- package/tabs/public-api.d.ts +0 -2
- package/tabs/tab-group.d.ts +0 -52
- package/tabs/tab.d.ts +0 -31
- package/test/public-api.d.ts +0 -1
- package/test/utils.d.ts +0 -78
- package/toggle/public-api.d.ts +0 -1
- package/toggle/toggle.d.ts +0 -13
- package/toggle-group/public-api.d.ts +0 -2
- package/toggle-group/toggle-group.d.ts +0 -25
- package/toggle-group/toggle-item.d.ts +0 -14
- package/tooltip/public-api.d.ts +0 -2
- package/tooltip/tooltip.d.ts +0 -24
- package/tooltip/tooltip.directive.d.ts +0 -34
- package/tooltip/tooltip.service.d.ts +0 -28
- package/tour/animation.d.ts +0 -2
- package/tour/public-api.d.ts +0 -5
- package/tour/tour-base.d.ts +0 -21
- package/tour/tour-step.d.ts +0 -11
- package/tour/tour.d.ts +0 -9
- package/tour/tour.service.d.ts +0 -29
- package/translate/config.d.ts +0 -16
- package/translate/public-api.d.ts +0 -3
- package/translate/translate.d.ts +0 -11
- package/translate/translate.service.d.ts +0 -31
- package/tree/public-api.d.ts +0 -3
- package/tree/tree-node.d.ts +0 -28
- package/tree/tree-toggle.d.ts +0 -16
- package/tree/tree.d.ts +0 -55
- package/utils/animation.d.ts +0 -3
- package/utils/disposals.d.ts +0 -7
- package/utils/number-only.d.ts +0 -22
- package/utils/public-api.d.ts +0 -6
- package/utils/range.pipe.d.ts +0 -7
- package/utils/ssr.d.ts +0 -2
- package/utils/utils.d.ts +0 -28
- package/virtualizer/public-api.d.ts +0 -1
- package/virtualizer/virtualizer.d.ts +0 -42
|
@@ -11,10 +11,10 @@ class SliderTrack {
|
|
|
11
11
|
this.drag = inject(Drag);
|
|
12
12
|
this.drag._disabled = linkedSignal(this.slider.disabled);
|
|
13
13
|
}
|
|
14
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
15
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
14
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: SliderTrack, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
15
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0", type: SliderTrack, isStandalone: true, selector: "[ngbSliderTrack]", host: { properties: { "attr.aria-disabled": "slider.disabled()" }, styleAttribute: "overflow: hidden; position: relative;" }, hostDirectives: [{ directive: i1.Drag }], ngImport: i0 }); }
|
|
16
16
|
}
|
|
17
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
17
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: SliderTrack, decorators: [{
|
|
18
18
|
type: Directive,
|
|
19
19
|
args: [{
|
|
20
20
|
selector: '[ngbSliderTrack]',
|
|
@@ -29,10 +29,10 @@ class SliderRange {
|
|
|
29
29
|
constructor() {
|
|
30
30
|
this.slider = inject(NgbSlider);
|
|
31
31
|
}
|
|
32
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
33
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
32
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: SliderRange, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
33
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0", type: SliderRange, isStandalone: true, selector: "[ngbSliderRange]", host: { properties: { "attr.aria-disabled": "slider.disabled()" }, styleAttribute: "position: absolute;" }, ngImport: i0 }); }
|
|
34
34
|
}
|
|
35
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
35
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: SliderRange, decorators: [{
|
|
36
36
|
type: Directive,
|
|
37
37
|
args: [{
|
|
38
38
|
selector: '[ngbSliderRange]',
|
|
@@ -48,18 +48,18 @@ class SliderThumb {
|
|
|
48
48
|
this.el = inject(ElementRef);
|
|
49
49
|
this.index = computed(() => {
|
|
50
50
|
return this.slider.thumbs().findIndex(t => t.nativeElement === this.el.nativeElement);
|
|
51
|
-
});
|
|
51
|
+
}, ...(ngDevMode ? [{ debugName: "index" }] : []));
|
|
52
52
|
this.value = computed(() => {
|
|
53
53
|
const values = this.slider.value();
|
|
54
54
|
if (!values)
|
|
55
55
|
return values;
|
|
56
56
|
return this.slider.range() > 1 ? values[this.index()] : values;
|
|
57
|
-
});
|
|
57
|
+
}, ...(ngDevMode ? [{ debugName: "value" }] : []));
|
|
58
58
|
}
|
|
59
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
60
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
59
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: SliderThumb, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
60
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0", type: SliderThumb, isStandalone: true, selector: "[ngbSliderThumb]", host: { attributes: { "type": "button", "role": "slider" }, properties: { "attr.tabindex": "slider.disabled() ? -1 : 0", "attr.aria-disabled": "slider.disabled()", "attr.aria-valuemin": "slider.min()", "attr.aria-valuemax": "slider.max()", "attr.aria-valuenow": "value()" }, styleAttribute: "position: absolute; pointer-events: none;" }, ngImport: i0 }); }
|
|
61
61
|
}
|
|
62
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
62
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: SliderThumb, decorators: [{
|
|
63
63
|
type: Directive,
|
|
64
64
|
args: [{
|
|
65
65
|
selector: '[ngbSliderThumb]',
|
|
@@ -84,19 +84,19 @@ class NgbSlider {
|
|
|
84
84
|
this.track = viewChild.required(SliderRange, {
|
|
85
85
|
read: ElementRef,
|
|
86
86
|
});
|
|
87
|
-
this.thumbs = viewChildren(SliderThumb, {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
this.value = model();
|
|
91
|
-
this.step = input(1, { transform: numberAttribute });
|
|
92
|
-
this.min = input(0, { transform: numberAttribute });
|
|
93
|
-
this.max = input(100, { transform: numberAttribute });
|
|
94
|
-
this.range = input(1, { transform: numberAttribute });
|
|
95
|
-
this.disabled = input(false, { transform: booleanAttribute });
|
|
96
|
-
this.orientation = input('horizontal');
|
|
87
|
+
this.thumbs = viewChildren(SliderThumb, ...(ngDevMode ? [{ debugName: "thumbs", read: ElementRef }] : [{
|
|
88
|
+
read: ElementRef,
|
|
89
|
+
}]));
|
|
90
|
+
this.value = model(...(ngDevMode ? [undefined, { debugName: "value" }] : []));
|
|
91
|
+
this.step = input(1, ...(ngDevMode ? [{ debugName: "step", transform: numberAttribute }] : [{ transform: numberAttribute }]));
|
|
92
|
+
this.min = input(0, ...(ngDevMode ? [{ debugName: "min", transform: numberAttribute }] : [{ transform: numberAttribute }]));
|
|
93
|
+
this.max = input(100, ...(ngDevMode ? [{ debugName: "max", transform: numberAttribute }] : [{ transform: numberAttribute }]));
|
|
94
|
+
this.range = input(1, ...(ngDevMode ? [{ debugName: "range", transform: numberAttribute }] : [{ transform: numberAttribute }]));
|
|
95
|
+
this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
|
|
96
|
+
this.orientation = input('horizontal', ...(ngDevMode ? [{ debugName: "orientation" }] : []));
|
|
97
97
|
this.afterChange = output();
|
|
98
|
-
this.noOfThumbs = computed(() => Array.from({ length: this.range() }, (_, i) => i));
|
|
99
|
-
this.totalSteps = computed(() => (this.max() - this.min()) / this.step());
|
|
98
|
+
this.noOfThumbs = computed(() => Array.from({ length: this.range() }, (_, i) => i), ...(ngDevMode ? [{ debugName: "noOfThumbs" }] : []));
|
|
99
|
+
this.totalSteps = computed(() => (this.max() - this.min()) / this.step(), ...(ngDevMode ? [{ debugName: "totalSteps" }] : []));
|
|
100
100
|
this.values = [];
|
|
101
101
|
this.activeIndex = 0;
|
|
102
102
|
this.totalWidth = 0;
|
|
@@ -302,10 +302,10 @@ class NgbSlider {
|
|
|
302
302
|
// this is required for reactive forms to work
|
|
303
303
|
this.cdr.markForCheck();
|
|
304
304
|
}
|
|
305
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
306
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "
|
|
305
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: NgbSlider, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
306
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "20.2.0", type: NgbSlider, isStandalone: true, selector: "[ngbSlider]", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, step: { classPropertyName: "step", publicName: "step", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, range: { classPropertyName: "range", publicName: "range", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", afterChange: "afterChange" }, host: { properties: { "attr.aria-orientation": "orientation()" } }, providers: [provideValueAccessor(NgbSlider)], viewQueries: [{ propertyName: "drag", first: true, predicate: Drag, descendants: true, isSignal: true }, { propertyName: "track", first: true, predicate: SliderRange, descendants: true, read: ElementRef, isSignal: true }, { propertyName: "thumbs", predicate: SliderThumb, descendants: true, read: ElementRef, isSignal: true }], exportAs: ["ngbSlider"], ngImport: i0 }); }
|
|
307
307
|
}
|
|
308
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
308
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: NgbSlider, decorators: [{
|
|
309
309
|
type: Directive,
|
|
310
310
|
args: [{
|
|
311
311
|
selector: '[ngbSlider]',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngbase-adk-slider.mjs","sources":["../../../projects/adk/slider/slider.ts","../../../projects/adk/slider/public-api.ts","../../../projects/adk/slider/ngbase-adk-slider.ts"],"sourcesContent":["import {\n afterNextRender,\n booleanAttribute,\n ChangeDetectorRef,\n computed,\n Directive,\n effect,\n ElementRef,\n inject,\n input,\n linkedSignal,\n model,\n numberAttribute,\n output,\n untracked,\n viewChild,\n viewChildren,\n} from '@angular/core';\nimport { ControlValueAccessor } from '@angular/forms';\nimport { Directionality } from '@ngbase/adk/bidi';\nimport { Drag, DragData } from '@ngbase/adk/drag';\nimport { provideValueAccessor } from '@ngbase/adk/utils';\n\n@Directive({\n selector: '[ngbSliderTrack]',\n hostDirectives: [Drag],\n host: {\n style: 'overflow: hidden; position: relative;',\n '[attr.aria-disabled]': 'slider.disabled()',\n },\n})\nexport class SliderTrack {\n readonly slider = inject(NgbSlider);\n private readonly drag = inject(Drag);\n\n constructor() {\n this.drag._disabled = linkedSignal(this.slider.disabled);\n }\n}\n\n@Directive({\n selector: '[ngbSliderRange]',\n host: {\n '[attr.aria-disabled]': 'slider.disabled()',\n style: 'position: absolute;',\n },\n})\nexport class SliderRange {\n readonly slider = inject(NgbSlider);\n}\n\n@Directive({\n selector: '[ngbSliderThumb]',\n host: {\n type: 'button',\n role: 'slider',\n style: 'position: absolute; pointer-events: none;',\n '[attr.tabindex]': 'slider.disabled() ? -1 : 0',\n '[attr.aria-disabled]': 'slider.disabled()',\n '[attr.aria-valuemin]': 'slider.min()',\n '[attr.aria-valuemax]': 'slider.max()',\n '[attr.aria-valuenow]': 'value()',\n },\n})\nexport class SliderThumb {\n readonly slider = inject(NgbSlider);\n readonly el = inject(ElementRef);\n\n readonly index = computed(() => {\n return this.slider.thumbs().findIndex(t => t.nativeElement === this.el.nativeElement);\n });\n readonly value = computed(() => {\n const values = this.slider.value();\n if (!values) return values;\n return this.slider.range() > 1 ? (values as number[])[this.index()] : values;\n });\n}\n\n@Directive({\n selector: '[ngbSlider]',\n exportAs: 'ngbSlider',\n providers: [provideValueAccessor(NgbSlider)],\n host: {\n '[attr.aria-orientation]': 'orientation()',\n },\n})\nexport class NgbSlider implements ControlValueAccessor {\n private readonly el = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly dir = inject(Directionality); // this.dir.isRtl();\n private cdr = inject(ChangeDetectorRef);\n\n private readonly drag = viewChild.required(Drag);\n private readonly track = viewChild.required<SliderRange, ElementRef<HTMLElement>>(SliderRange, {\n read: ElementRef,\n });\n readonly thumbs = viewChildren<SliderThumb, ElementRef<HTMLElement>>(SliderThumb, {\n read: ElementRef,\n });\n\n readonly value = model<number | number[]>();\n readonly step = input(1, { transform: numberAttribute });\n readonly min = input(0, { transform: numberAttribute });\n readonly max = input(100, { transform: numberAttribute });\n readonly range = input(1, { transform: numberAttribute });\n readonly disabled = input(false, { transform: booleanAttribute });\n readonly orientation = input<'horizontal' | 'vertical'>('horizontal');\n\n readonly afterChange = output<number | number[]>();\n\n private onChange?: (value: number | number[]) => {};\n private onTouched?: () => {};\n\n readonly noOfThumbs = computed(() => Array.from({ length: this.range() }, (_, i) => i));\n private readonly totalSteps = computed(() => (this.max() - this.min()) / this.step());\n private values: number[] = [];\n private activeIndex = 0;\n private totalWidth = 0;\n private totalSliderWidth = 0;\n private isChanged = false;\n\n constructor() {\n effect(() => {\n const value = this.value() || 0;\n // we need to update the value direction when direction changes\n const _ = this.dir.isRtl();\n if (this.thumbs().length) {\n untracked(() => this.handleValueUpdate(value));\n }\n });\n\n afterNextRender(() => {\n this.drag().events.subscribe(data => this.move(data));\n });\n }\n\n private handleValueUpdate(value: number | number[]) {\n const values = this.values;\n const range = this.range() > 1;\n if ((range && value !== values) || (!range && value !== values[0])) {\n const v = Array.isArray(value) ? value : [value];\n this.values = v.map(v => this.fixStep(v));\n }\n\n this.updateElement();\n }\n\n private updateElement() {\n const positions = this.values.map(x => this.toPercentage(x));\n const isVertical = this.orientation() === 'vertical';\n const isRtl = !isVertical && this.dir.isRtl();\n const track = this.track().nativeElement;\n\n // Update thumb positions\n this.thumbs().forEach((thumb, i) => {\n const value = this.values[i];\n let pos = isVertical ? 100 - positions[i] : positions[i];\n // Invert position for RTL\n if (isRtl) {\n pos = 100 - pos;\n }\n const prop = isVertical ? 'top' : 'left';\n const thumbSize = this.getThumbSize(value, thumb.nativeElement.offsetWidth);\n const offset = isVertical || isRtl ? -thumbSize : thumbSize;\n thumb.nativeElement.style[prop] = `calc(${pos}% + ${offset}px)`;\n });\n\n // Update track position\n const [min, max] =\n positions.length > 1 ? [Math.min(...positions), Math.max(...positions)] : [0, positions[0]];\n\n if (isVertical) {\n track.style.top = 100 - max + '%';\n track.style.bottom = min + '%';\n track.style.width = '100%';\n } else {\n track.style.left = (isRtl ? 100 - max : min) + '%';\n track.style.right = (isRtl ? min : 100 - max) + '%';\n track.style.height = '100%';\n }\n }\n\n private getThumbSize(value: number, thumbSize: number = 0) {\n const currentStep = (value - this.min()) / this.step();\n const halfSteps = this.totalSteps() / 2;\n const halfThumbSize = thumbSize / 2;\n\n // Return 0 for middle, positive offset for first half, negative for second half\n const offset = currentStep - halfSteps;\n return -(offset / halfSteps) * halfThumbSize;\n }\n\n writeValue(value: number | number[]): void {\n this.value.set(value);\n }\n\n registerOnChange(fn: any): void {\n this.onChange = fn;\n }\n\n registerOnTouched(fn: any): void {\n this.onTouched = fn;\n }\n\n private get width() {\n return this.orientation() === 'vertical'\n ? this.el.nativeElement.clientHeight\n : this.el.nativeElement.clientWidth;\n }\n\n // We need to consider the min value also because the slider can be negative\n private toPercentage(value: number) {\n const min = this.min();\n const max = this.max();\n const range = max - min;\n const percentage = ((value - min) / range) * 100;\n return percentage;\n }\n\n private fromPercentage(percentage: number) {\n const min = this.min();\n const max = this.max();\n const range = max - min;\n const value = (percentage / 100) * range + min;\n return value;\n }\n\n private move(data: DragData) {\n requestAnimationFrame(() => this.moveSlider(data));\n }\n\n private clicked(clientX: number) {\n const slider = this.el.nativeElement;\n const rect = slider.getBoundingClientRect();\n const isVertical = this.orientation() === 'vertical';\n const isRtl = !isVertical && this.dir.isRtl();\n\n let position: number;\n if (isVertical) {\n position = rect.top;\n } else {\n position = isRtl ? rect.right : rect.left;\n clientX = isRtl ? -clientX : clientX; // Invert the click position for RTL\n }\n\n return this.perRound(clientX + (isRtl ? position : -position), this.width, isVertical);\n }\n\n private perRound(x: number, width: number, reverse = false) {\n // the new percentage of the slider\n let percentage = (x / width) * 100;\n if (reverse) {\n percentage = 100 - percentage;\n }\n // convert percentage to value\n return this.fromPercentage(percentage);\n }\n\n private fixStep(value = this.min()) {\n // make sure the value is within the min and max\n // we need to make the percentage to be a multiple of the step\n value = parseFloat((Math.round(value / this.step()) * this.step()).toFixed(10));\n return Math.max(this.min(), Math.min(this.max(), value));\n }\n\n private moveSlider(data: DragData) {\n data.event?.preventDefault();\n const isVertical = this.orientation() === 'vertical';\n const isRtl = !isVertical && this.dir.isRtl();\n\n let cx = data.clientX!;\n let x = data.x!;\n\n if (isVertical) {\n cx = data.clientY!;\n x = -data.y!;\n } else if (isRtl) {\n x = -x; // Invert the movement for RTL\n }\n // convert value to percentage based on the max value\n if (data.type === 'start') {\n const clickedValue = this.clicked(cx);\n const valuePercentage = this.toPercentage(clickedValue);\n // total width of the slider\n this.totalWidth = this.width;\n // the width of the slider using current percentage\n this.totalSliderWidth = this.totalWidth * (valuePercentage / 100);\n\n // make sure the values are equal length as the range\n if (this.values.length !== this.range()) {\n this.values = Array.from({ length: this.range() }, (_, i) => this.values[i] || this.min());\n }\n // sort the values\n this.values = this.values.sort((a, b) => a - b);\n\n // find the nearest value index based on the percentage\n this.activeIndex = this.values.reduce((closestIndex, value, index) => {\n const diff = Math.abs(this.toPercentage(value) - valuePercentage);\n return diff < Math.abs(this.toPercentage(this.values[closestIndex]) - valuePercentage)\n ? index\n : closestIndex;\n }, 0);\n this.updateValue(this.activeIndex, clickedValue);\n if (this.values[this.activeIndex] !== this.value()) {\n this.notifyChange();\n }\n } else if (data.type === 'move') {\n // the new percentage of the slider\n const newSize = this.totalSliderWidth + x;\n const percentage = this.perRound(newSize, this.totalWidth);\n // update the value only when the percentage is different and within the range\n const prevValue = this.values[this.activeIndex];\n const currentValue = this.updateValue(this.activeIndex, percentage);\n if (prevValue !== currentValue) {\n this.notifyChange();\n }\n } else {\n this.totalWidth = 0;\n this.totalSliderWidth = 0;\n if (this.isChanged) {\n this.afterChange.emit(this.values);\n this.isChanged = false;\n }\n }\n }\n\n private updateValue(index: number, value: number) {\n const values = this.values;\n let stepValue = this.fixStep(value);\n\n // Clamp the value between min and max\n stepValue = Math.max(this.min(), Math.min(this.max(), stepValue));\n values[index] = stepValue;\n\n this.values = values.sort((a, b) => a - b);\n this.activeIndex = this.values.findIndex(v => v === stepValue);\n return stepValue;\n }\n\n private notifyChange() {\n const percentage = this.range() > 1 ? [...this.values] : this.values[0];\n this.value.set(percentage);\n this.onChange?.(percentage);\n this.onTouched?.();\n this.isChanged = true;\n // this is required for reactive forms to work\n this.cdr.markForCheck();\n }\n}\n\nexport const aliasSlider = (slider: typeof NgbSlider) => [\n { provide: NgbSlider, useExisting: slider },\n provideValueAccessor(slider),\n];\n","/*\n * Public API Surface of slider\n */\n\nexport { NgbSlider, SliderTrack, SliderRange, SliderThumb, aliasSlider } from './slider';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;MA+Ba,WAAW,CAAA;AAItB,IAAA,WAAA,GAAA;AAHS,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC;AAClB,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;AAGlC,QAAA,IAAI,CAAC,IAAI,CAAC,SAAS,GAAG,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC;;8GAL/C,WAAW,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAX,WAAW,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,oBAAA,EAAA,mBAAA,EAAA,EAAA,cAAA,EAAA,uCAAA,EAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAA,EAAA,CAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAX,WAAW,EAAA,UAAA,EAAA,CAAA;kBARvB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,kBAAkB;oBAC5B,cAAc,EAAE,CAAC,IAAI,CAAC;AACtB,oBAAA,IAAI,EAAE;AACJ,wBAAA,KAAK,EAAE,uCAAuC;AAC9C,wBAAA,sBAAsB,EAAE,mBAAmB;AAC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AA,EAAA,EAAA,EAAA,YAAA,EAAA,OAAA,EAAA,KAAA,EAAA,IAAA,EAAA,SAAA,EACmC,WAAW,EACrF,WAAA,EAAA,IAAA,EAAA,IAAA,EAAA,UAAU,EAEmD,QAAA,EAAA,IAAA,EAAA,EAAA,EAAA,YAAA,EAAA,QAAA,EAAA,SAAA,EAAA,WAAW,2BACxE,UAAU,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,CAAA,WAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAVP,SAAS,EAAA,UAAA,EAAA,CAAA;kBARrB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,aAAa;AACvB,oBAAA,QAAQ,EAAE,WAAW;AACrB,oBAAA,SAAS,EAAE,CAAC,oBAAoB,CAAA,SAAA,CAAW,CAAC;AAC5C,oBAAA,IAAI,EAAE;AACJ,wBAAA,yBAAyB,EAAE,eAAe;AAC3C,qBAAA;AACF,iBAAA;;MAwQY,WAAW,GAAG,CAAC,MAAwB,KAAK;AACvD,IAAA,EAAE,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,EAAE;IAC3C,oBAAoB,CAAC,MAAM,CAAC;;;AC/V9B;;AAEG;;ACFH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ngbase-adk-slider.mjs","sources":["../../../projects/adk/slider/slider.ts","../../../projects/adk/slider/public-api.ts","../../../projects/adk/slider/ngbase-adk-slider.ts"],"sourcesContent":["import {\n afterNextRender,\n booleanAttribute,\n ChangeDetectorRef,\n computed,\n Directive,\n effect,\n ElementRef,\n inject,\n input,\n linkedSignal,\n model,\n numberAttribute,\n output,\n untracked,\n viewChild,\n viewChildren,\n} from '@angular/core';\nimport { ControlValueAccessor } from '@angular/forms';\nimport { Directionality } from '@ngbase/adk/bidi';\nimport { Drag, DragData } from '@ngbase/adk/drag';\nimport { provideValueAccessor } from '@ngbase/adk/utils';\n\n@Directive({\n selector: '[ngbSliderTrack]',\n hostDirectives: [Drag],\n host: {\n style: 'overflow: hidden; position: relative;',\n '[attr.aria-disabled]': 'slider.disabled()',\n },\n})\nexport class SliderTrack {\n readonly slider = inject(NgbSlider);\n private readonly drag = inject(Drag);\n\n constructor() {\n this.drag._disabled = linkedSignal(this.slider.disabled);\n }\n}\n\n@Directive({\n selector: '[ngbSliderRange]',\n host: {\n '[attr.aria-disabled]': 'slider.disabled()',\n style: 'position: absolute;',\n },\n})\nexport class SliderRange {\n readonly slider = inject(NgbSlider);\n}\n\n@Directive({\n selector: '[ngbSliderThumb]',\n host: {\n type: 'button',\n role: 'slider',\n style: 'position: absolute; pointer-events: none;',\n '[attr.tabindex]': 'slider.disabled() ? -1 : 0',\n '[attr.aria-disabled]': 'slider.disabled()',\n '[attr.aria-valuemin]': 'slider.min()',\n '[attr.aria-valuemax]': 'slider.max()',\n '[attr.aria-valuenow]': 'value()',\n },\n})\nexport class SliderThumb {\n readonly slider = inject(NgbSlider);\n readonly el = inject(ElementRef);\n\n readonly index = computed(() => {\n return this.slider.thumbs().findIndex(t => t.nativeElement === this.el.nativeElement);\n });\n readonly value = computed(() => {\n const values = this.slider.value();\n if (!values) return values;\n return this.slider.range() > 1 ? (values as number[])[this.index()] : values;\n });\n}\n\n@Directive({\n selector: '[ngbSlider]',\n exportAs: 'ngbSlider',\n providers: [provideValueAccessor(NgbSlider)],\n host: {\n '[attr.aria-orientation]': 'orientation()',\n },\n})\nexport class NgbSlider implements ControlValueAccessor {\n private readonly el = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly dir = inject(Directionality); // this.dir.isRtl();\n private cdr = inject(ChangeDetectorRef);\n\n private readonly drag = viewChild.required(Drag);\n private readonly track = viewChild.required<SliderRange, ElementRef<HTMLElement>>(SliderRange, {\n read: ElementRef,\n });\n readonly thumbs = viewChildren<SliderThumb, ElementRef<HTMLElement>>(SliderThumb, {\n read: ElementRef,\n });\n\n readonly value = model<number | number[]>();\n readonly step = input(1, { transform: numberAttribute });\n readonly min = input(0, { transform: numberAttribute });\n readonly max = input(100, { transform: numberAttribute });\n readonly range = input(1, { transform: numberAttribute });\n readonly disabled = input(false, { transform: booleanAttribute });\n readonly orientation = input<'horizontal' | 'vertical'>('horizontal');\n\n readonly afterChange = output<number | number[]>();\n\n private onChange?: (value: number | number[]) => {};\n private onTouched?: () => {};\n\n readonly noOfThumbs = computed(() => Array.from({ length: this.range() }, (_, i) => i));\n private readonly totalSteps = computed(() => (this.max() - this.min()) / this.step());\n private values: number[] = [];\n private activeIndex = 0;\n private totalWidth = 0;\n private totalSliderWidth = 0;\n private isChanged = false;\n\n constructor() {\n effect(() => {\n const value = this.value() || 0;\n // we need to update the value direction when direction changes\n const _ = this.dir.isRtl();\n if (this.thumbs().length) {\n untracked(() => this.handleValueUpdate(value));\n }\n });\n\n afterNextRender(() => {\n this.drag().events.subscribe(data => this.move(data));\n });\n }\n\n private handleValueUpdate(value: number | number[]) {\n const values = this.values;\n const range = this.range() > 1;\n if ((range && value !== values) || (!range && value !== values[0])) {\n const v = Array.isArray(value) ? value : [value];\n this.values = v.map(v => this.fixStep(v));\n }\n\n this.updateElement();\n }\n\n private updateElement() {\n const positions = this.values.map(x => this.toPercentage(x));\n const isVertical = this.orientation() === 'vertical';\n const isRtl = !isVertical && this.dir.isRtl();\n const track = this.track().nativeElement;\n\n // Update thumb positions\n this.thumbs().forEach((thumb, i) => {\n const value = this.values[i];\n let pos = isVertical ? 100 - positions[i] : positions[i];\n // Invert position for RTL\n if (isRtl) {\n pos = 100 - pos;\n }\n const prop = isVertical ? 'top' : 'left';\n const thumbSize = this.getThumbSize(value, thumb.nativeElement.offsetWidth);\n const offset = isVertical || isRtl ? -thumbSize : thumbSize;\n thumb.nativeElement.style[prop] = `calc(${pos}% + ${offset}px)`;\n });\n\n // Update track position\n const [min, max] =\n positions.length > 1 ? [Math.min(...positions), Math.max(...positions)] : [0, positions[0]];\n\n if (isVertical) {\n track.style.top = 100 - max + '%';\n track.style.bottom = min + '%';\n track.style.width = '100%';\n } else {\n track.style.left = (isRtl ? 100 - max : min) + '%';\n track.style.right = (isRtl ? min : 100 - max) + '%';\n track.style.height = '100%';\n }\n }\n\n private getThumbSize(value: number, thumbSize: number = 0) {\n const currentStep = (value - this.min()) / this.step();\n const halfSteps = this.totalSteps() / 2;\n const halfThumbSize = thumbSize / 2;\n\n // Return 0 for middle, positive offset for first half, negative for second half\n const offset = currentStep - halfSteps;\n return -(offset / halfSteps) * halfThumbSize;\n }\n\n writeValue(value: number | number[]): void {\n this.value.set(value);\n }\n\n registerOnChange(fn: any): void {\n this.onChange = fn;\n }\n\n registerOnTouched(fn: any): void {\n this.onTouched = fn;\n }\n\n private get width() {\n return this.orientation() === 'vertical'\n ? this.el.nativeElement.clientHeight\n : this.el.nativeElement.clientWidth;\n }\n\n // We need to consider the min value also because the slider can be negative\n private toPercentage(value: number) {\n const min = this.min();\n const max = this.max();\n const range = max - min;\n const percentage = ((value - min) / range) * 100;\n return percentage;\n }\n\n private fromPercentage(percentage: number) {\n const min = this.min();\n const max = this.max();\n const range = max - min;\n const value = (percentage / 100) * range + min;\n return value;\n }\n\n private move(data: DragData) {\n requestAnimationFrame(() => this.moveSlider(data));\n }\n\n private clicked(clientX: number) {\n const slider = this.el.nativeElement;\n const rect = slider.getBoundingClientRect();\n const isVertical = this.orientation() === 'vertical';\n const isRtl = !isVertical && this.dir.isRtl();\n\n let position: number;\n if (isVertical) {\n position = rect.top;\n } else {\n position = isRtl ? rect.right : rect.left;\n clientX = isRtl ? -clientX : clientX; // Invert the click position for RTL\n }\n\n return this.perRound(clientX + (isRtl ? position : -position), this.width, isVertical);\n }\n\n private perRound(x: number, width: number, reverse = false) {\n // the new percentage of the slider\n let percentage = (x / width) * 100;\n if (reverse) {\n percentage = 100 - percentage;\n }\n // convert percentage to value\n return this.fromPercentage(percentage);\n }\n\n private fixStep(value = this.min()) {\n // make sure the value is within the min and max\n // we need to make the percentage to be a multiple of the step\n value = parseFloat((Math.round(value / this.step()) * this.step()).toFixed(10));\n return Math.max(this.min(), Math.min(this.max(), value));\n }\n\n private moveSlider(data: DragData) {\n data.event?.preventDefault();\n const isVertical = this.orientation() === 'vertical';\n const isRtl = !isVertical && this.dir.isRtl();\n\n let cx = data.clientX!;\n let x = data.x!;\n\n if (isVertical) {\n cx = data.clientY!;\n x = -data.y!;\n } else if (isRtl) {\n x = -x; // Invert the movement for RTL\n }\n // convert value to percentage based on the max value\n if (data.type === 'start') {\n const clickedValue = this.clicked(cx);\n const valuePercentage = this.toPercentage(clickedValue);\n // total width of the slider\n this.totalWidth = this.width;\n // the width of the slider using current percentage\n this.totalSliderWidth = this.totalWidth * (valuePercentage / 100);\n\n // make sure the values are equal length as the range\n if (this.values.length !== this.range()) {\n this.values = Array.from({ length: this.range() }, (_, i) => this.values[i] || this.min());\n }\n // sort the values\n this.values = this.values.sort((a, b) => a - b);\n\n // find the nearest value index based on the percentage\n this.activeIndex = this.values.reduce((closestIndex, value, index) => {\n const diff = Math.abs(this.toPercentage(value) - valuePercentage);\n return diff < Math.abs(this.toPercentage(this.values[closestIndex]) - valuePercentage)\n ? index\n : closestIndex;\n }, 0);\n this.updateValue(this.activeIndex, clickedValue);\n if (this.values[this.activeIndex] !== this.value()) {\n this.notifyChange();\n }\n } else if (data.type === 'move') {\n // the new percentage of the slider\n const newSize = this.totalSliderWidth + x;\n const percentage = this.perRound(newSize, this.totalWidth);\n // update the value only when the percentage is different and within the range\n const prevValue = this.values[this.activeIndex];\n const currentValue = this.updateValue(this.activeIndex, percentage);\n if (prevValue !== currentValue) {\n this.notifyChange();\n }\n } else {\n this.totalWidth = 0;\n this.totalSliderWidth = 0;\n if (this.isChanged) {\n this.afterChange.emit(this.values);\n this.isChanged = false;\n }\n }\n }\n\n private updateValue(index: number, value: number) {\n const values = this.values;\n let stepValue = this.fixStep(value);\n\n // Clamp the value between min and max\n stepValue = Math.max(this.min(), Math.min(this.max(), stepValue));\n values[index] = stepValue;\n\n this.values = values.sort((a, b) => a - b);\n this.activeIndex = this.values.findIndex(v => v === stepValue);\n return stepValue;\n }\n\n private notifyChange() {\n const percentage = this.range() > 1 ? [...this.values] : this.values[0];\n this.value.set(percentage);\n this.onChange?.(percentage);\n this.onTouched?.();\n this.isChanged = true;\n // this is required for reactive forms to work\n this.cdr.markForCheck();\n }\n}\n\nexport const aliasSlider = (slider: typeof NgbSlider) => [\n { provide: NgbSlider, useExisting: slider },\n provideValueAccessor(slider),\n];\n","/*\n * Public API Surface of slider\n */\n\nexport { NgbSlider, SliderTrack, SliderRange, SliderThumb, aliasSlider } from './slider';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;MA+Ba,WAAW,CAAA;AAItB,IAAA,WAAA,GAAA;AAHS,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC;AAClB,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;AAGlC,QAAA,IAAI,CAAC,IAAI,CAAC,SAAS,GAAG,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC;;8GAL/C,WAAW,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAX,WAAW,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,oBAAA,EAAA,mBAAA,EAAA,EAAA,cAAA,EAAA,uCAAA,EAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAA,EAAA,CAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAX,WAAW,EAAA,UAAA,EAAA,CAAA;kBARvB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,kBAAkB;oBAC5B,cAAc,EAAE,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3C,qBAAA;AACF,iBAAA;;MAwQY,WAAW,GAAG,CAAC,MAAwB,KAAK;AACvD,IAAA,EAAE,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,EAAE;IAC3C,oBAAoB,CAAC,MAAM,CAAC;;;AC/V9B;;AAEG;;ACFH;;AAEG;;;;"}
|
|
@@ -12,12 +12,12 @@ const sonnerAnimation = trigger('sonnerAnimation', [
|
|
|
12
12
|
]);
|
|
13
13
|
class SonnerBase {
|
|
14
14
|
constructor() {
|
|
15
|
-
this.ngbSonnerBase = input.required();
|
|
15
|
+
this.ngbSonnerBase = input.required(...(ngDevMode ? [{ debugName: "ngbSonnerBase" }] : []));
|
|
16
16
|
}
|
|
17
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
18
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
17
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: SonnerBase, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
18
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.2.0", type: SonnerBase, isStandalone: true, selector: "[ngbSonnerBase]", inputs: { ngbSonnerBase: { classPropertyName: "ngbSonnerBase", publicName: "ngbSonnerBase", isSignal: true, isRequired: true, transformFunction: null } }, host: { properties: { "style": "{\n 'z-index': -ngbSonnerBase(),\n bottom: 16 * ngbSonnerBase() + 'px',\n visibility: ngbSonnerBase() < 3 ? 'visible' : 'hidden',\n transform: 'scale(' + (1 - ngbSonnerBase() * 0.08) + ')',\n opacity: ngbSonnerBase() < 3 ? 1 : 0,\n }", "@sonnerAnimation": "" }, styleAttribute: "position: absolute; right: 0; display: flex; flex-direction: column;" }, exportAs: ["ngbSonnerBase"], ngImport: i0 }); }
|
|
19
19
|
}
|
|
20
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: SonnerBase, decorators: [{
|
|
21
21
|
type: Directive,
|
|
22
22
|
args: [{
|
|
23
23
|
selector: '[ngbSonnerBase]',
|
|
@@ -37,7 +37,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImpor
|
|
|
37
37
|
}] });
|
|
38
38
|
class NgbSonner {
|
|
39
39
|
constructor() {
|
|
40
|
-
this.messages = signal([]);
|
|
40
|
+
this.messages = signal([], ...(ngDevMode ? [{ debugName: "messages" }] : []));
|
|
41
41
|
}
|
|
42
42
|
addMessage(message, type, data) {
|
|
43
43
|
const id = uniqueId();
|
|
@@ -55,10 +55,10 @@ class NgbSonner {
|
|
|
55
55
|
clear() {
|
|
56
56
|
this.messages.set([]);
|
|
57
57
|
}
|
|
58
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
59
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
58
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: NgbSonner, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
59
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0", type: NgbSonner, isStandalone: true, selector: "ngb-sonner", ngImport: i0 }); }
|
|
60
60
|
}
|
|
61
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
61
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: NgbSonner, decorators: [{
|
|
62
62
|
type: Directive,
|
|
63
63
|
args: [{
|
|
64
64
|
selector: 'ngb-sonner',
|
|
@@ -83,10 +83,10 @@ class SonnerService {
|
|
|
83
83
|
closeAll() {
|
|
84
84
|
this.sonner?.parent.instance.clear();
|
|
85
85
|
}
|
|
86
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
87
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
86
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: SonnerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
87
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: SonnerService, providedIn: 'root' }); }
|
|
88
88
|
}
|
|
89
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
89
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: SonnerService, decorators: [{
|
|
90
90
|
type: Injectable,
|
|
91
91
|
args: [{ providedIn: 'root' }]
|
|
92
92
|
}] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngbase-adk-sonner.mjs","sources":["../../../projects/adk/sonner/sonner.ts","../../../projects/adk/sonner/sonner.service.ts","../../../projects/adk/sonner/public-api.ts","../../../projects/adk/sonner/ngbase-adk-sonner.ts"],"sourcesContent":["import { animate, state, style, transition, trigger } from '@angular/animations';\nimport { Directive, input, signal } from '@angular/core';\nimport { uniqueId } from '@ngbase/adk/utils';\n\nexport const sonnerAnimation = trigger('sonnerAnimation', [\n state('1', style({ transform: 'none', opacity: 1 })),\n state('void', style({ transform: 'translateY(100%)', opacity: 0 })),\n state('0', style({ transform: 'translateY(100%)', opacity: 0 })),\n transition('* => *', animate('300ms ease-out')),\n]);\n\n@Directive({\n selector: '[ngbSonnerBase]',\n exportAs: 'ngbSonnerBase',\n host: {\n style: `position: absolute; right: 0; display: flex; flex-direction: column;`,\n '[style]': `{\n 'z-index': -ngbSonnerBase(),\n bottom: 16 * ngbSonnerBase() + 'px',\n visibility: ngbSonnerBase() < 3 ? 'visible' : 'hidden',\n transform: 'scale(' + (1 - ngbSonnerBase() * 0.08) + ')',\n opacity: ngbSonnerBase() < 3 ? 1 : 0,\n }`,\n '[@sonnerAnimation]': '',\n },\n})\nexport class SonnerBase {\n readonly ngbSonnerBase = input.required<number>();\n}\n\n@Directive({\n selector: 'ngb-sonner',\n})\nexport class NgbSonner {\n readonly messages = signal<SonnerMessage[]>([]);\n\n addMessage(message: string, type: SonnerType, data?: SonnerData) {\n const id = uniqueId();\n const { timeout = 3000 } = data ?? {};\n\n // push the new message to the top of the list\n // so that it will be displayed first\n // also the index is less than 3, the message will be visible\n this.messages.update(x => [{ id, message, data, type }, ...x]);\n\n if (timeout === 0) return;\n setTimeout(() => {\n this.messages.update(x => x.filter(msg => msg.id !== id));\n }, timeout);\n }\n\n clear() {\n this.messages.set([]);\n }\n}\n\nexport interface SonnerMessage {\n message: string;\n data?: SonnerData;\n type?: SonnerType;\n id?: string;\n}\n\nexport type SonnerType = 'default' | 'success' | 'error' | 'warning' | 'info';\n\nexport interface SonnerData {\n description?: string;\n timeout?: number;\n}\n","import { ComponentRef, inject, Injectable, Type } from '@angular/core';\nimport { basePortal, DialogRef } from '@ngbase/adk/portal';\nimport { NgbSonner, SonnerData, SonnerType } from './sonner';\n\n@Injectable({ providedIn: 'root' })\nexport class SonnerService {\n private NAME = 'sonner';\n private base = basePortal(this.NAME, NgbSonner);\n private sonner: { parent: ComponentRef<NgbSonner>; diaRef: DialogRef<NgbSonner> } | undefined;\n\n updateSonner(component: Type<NgbSonner> = NgbSonner) {\n this.base.updateBaseComponent(component);\n }\n\n addMessage(message: string, type: SonnerType, data?: SonnerData) {\n if (!this.sonner) {\n const { parent, diaRef } = this.base.open();\n this.sonner = { parent, diaRef };\n }\n this.sonner.parent.instance.addMessage(message, type, data);\n }\n\n closeAll() {\n this.sonner?.parent.instance.clear();\n }\n}\n\nexport function ngbSonnerPortal(component?: Type<NgbSonner>) {\n const sonnerService = inject(SonnerService);\n\n sonnerService.updateSonner(component);\n\n function closeAll() {\n sonnerService.closeAll();\n }\n\n function message(message: string, data?: SonnerData) {\n sonnerService.addMessage(message, 'default', data);\n }\n\n function success(message: string, data?: SonnerData) {\n sonnerService.addMessage(message, 'success', data);\n }\n\n function error(message: string, data?: SonnerData) {\n sonnerService.addMessage(message, 'error', data);\n }\n\n function warning(message: string, data?: SonnerData) {\n sonnerService.addMessage(message, 'warning', data);\n }\n\n function info(message: string, data?: SonnerData) {\n sonnerService.addMessage(message, 'info', data);\n }\n\n return { message, success, error, warning, info, closeAll };\n}\n","/*\n * Public API Surface of sonner\n */\n\nexport * from './sonner.service';\nexport * from './sonner';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAIa,MAAA,eAAe,GAAG,OAAO,CAAC,iBAAiB,EAAE;AACxD,IAAA,KAAK,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC;AACpD,IAAA,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,SAAS,EAAE,kBAAkB,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC;AACnE,IAAA,KAAK,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,SAAS,EAAE,kBAAkB,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC;AAChE,IAAA,UAAU,CAAC,QAAQ,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC;AAChD,CAAA;MAiBY,UAAU,CAAA;AAfvB,IAAA,WAAA,GAAA;AAgBW,QAAA,IAAA,CAAA,aAAa,GAAG,KAAK,CAAC,QAAQ,
|
|
1
|
+
{"version":3,"file":"ngbase-adk-sonner.mjs","sources":["../../../projects/adk/sonner/sonner.ts","../../../projects/adk/sonner/sonner.service.ts","../../../projects/adk/sonner/public-api.ts","../../../projects/adk/sonner/ngbase-adk-sonner.ts"],"sourcesContent":["import { animate, state, style, transition, trigger } from '@angular/animations';\nimport { Directive, input, signal } from '@angular/core';\nimport { uniqueId } from '@ngbase/adk/utils';\n\nexport const sonnerAnimation = trigger('sonnerAnimation', [\n state('1', style({ transform: 'none', opacity: 1 })),\n state('void', style({ transform: 'translateY(100%)', opacity: 0 })),\n state('0', style({ transform: 'translateY(100%)', opacity: 0 })),\n transition('* => *', animate('300ms ease-out')),\n]);\n\n@Directive({\n selector: '[ngbSonnerBase]',\n exportAs: 'ngbSonnerBase',\n host: {\n style: `position: absolute; right: 0; display: flex; flex-direction: column;`,\n '[style]': `{\n 'z-index': -ngbSonnerBase(),\n bottom: 16 * ngbSonnerBase() + 'px',\n visibility: ngbSonnerBase() < 3 ? 'visible' : 'hidden',\n transform: 'scale(' + (1 - ngbSonnerBase() * 0.08) + ')',\n opacity: ngbSonnerBase() < 3 ? 1 : 0,\n }`,\n '[@sonnerAnimation]': '',\n },\n})\nexport class SonnerBase {\n readonly ngbSonnerBase = input.required<number>();\n}\n\n@Directive({\n selector: 'ngb-sonner',\n})\nexport class NgbSonner {\n readonly messages = signal<SonnerMessage[]>([]);\n\n addMessage(message: string, type: SonnerType, data?: SonnerData) {\n const id = uniqueId();\n const { timeout = 3000 } = data ?? {};\n\n // push the new message to the top of the list\n // so that it will be displayed first\n // also the index is less than 3, the message will be visible\n this.messages.update(x => [{ id, message, data, type }, ...x]);\n\n if (timeout === 0) return;\n setTimeout(() => {\n this.messages.update(x => x.filter(msg => msg.id !== id));\n }, timeout);\n }\n\n clear() {\n this.messages.set([]);\n }\n}\n\nexport interface SonnerMessage {\n message: string;\n data?: SonnerData;\n type?: SonnerType;\n id?: string;\n}\n\nexport type SonnerType = 'default' | 'success' | 'error' | 'warning' | 'info';\n\nexport interface SonnerData {\n description?: string;\n timeout?: number;\n}\n","import { ComponentRef, inject, Injectable, Type } from '@angular/core';\nimport { basePortal, DialogRef } from '@ngbase/adk/portal';\nimport { NgbSonner, SonnerData, SonnerType } from './sonner';\n\n@Injectable({ providedIn: 'root' })\nexport class SonnerService {\n private NAME = 'sonner';\n private base = basePortal(this.NAME, NgbSonner);\n private sonner: { parent: ComponentRef<NgbSonner>; diaRef: DialogRef<NgbSonner> } | undefined;\n\n updateSonner(component: Type<NgbSonner> = NgbSonner) {\n this.base.updateBaseComponent(component);\n }\n\n addMessage(message: string, type: SonnerType, data?: SonnerData) {\n if (!this.sonner) {\n const { parent, diaRef } = this.base.open();\n this.sonner = { parent, diaRef };\n }\n this.sonner.parent.instance.addMessage(message, type, data);\n }\n\n closeAll() {\n this.sonner?.parent.instance.clear();\n }\n}\n\nexport function ngbSonnerPortal(component?: Type<NgbSonner>) {\n const sonnerService = inject(SonnerService);\n\n sonnerService.updateSonner(component);\n\n function closeAll() {\n sonnerService.closeAll();\n }\n\n function message(message: string, data?: SonnerData) {\n sonnerService.addMessage(message, 'default', data);\n }\n\n function success(message: string, data?: SonnerData) {\n sonnerService.addMessage(message, 'success', data);\n }\n\n function error(message: string, data?: SonnerData) {\n sonnerService.addMessage(message, 'error', data);\n }\n\n function warning(message: string, data?: SonnerData) {\n sonnerService.addMessage(message, 'warning', data);\n }\n\n function info(message: string, data?: SonnerData) {\n sonnerService.addMessage(message, 'info', data);\n }\n\n return { message, success, error, warning, info, closeAll };\n}\n","/*\n * Public API Surface of sonner\n */\n\nexport * from './sonner.service';\nexport * from './sonner';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAIa,MAAA,eAAe,GAAG,OAAO,CAAC,iBAAiB,EAAE;AACxD,IAAA,KAAK,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC;AACpD,IAAA,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,SAAS,EAAE,kBAAkB,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC;AACn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AAE,IAAI,CAAC;;AAGpD,IAAA,SAAS,OAAO,CAAC,OAAe,EAAE,IAAiB,EAAA;QACjD,aAAa,CAAC,UAAU,CAAC,OAAO,EAAE,SAAS,EAAE,IAAI,CAAC;;AAGpD,IAAA,SAAS,KAAK,CAAC,OAAe,EAAE,IAAiB,EAAA;QAC/C,aAAa,CAAC,UAAU,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC;;AAGlD,IAAA,SAAS,OAAO,CAAC,OAAe,EAAE,IAAiB,EAAA;QACjD,aAAa,CAAC,UAAU,CAAC,OAAO,EAAE,SAAS,EAAE,IAAI,CAAC;;AAGpD,IAAA,SAAS,IAAI,CAAC,OAAe,EAAE,IAAiB,EAAA;QAC9C,aAAa,CAAC,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC;;AAGjD,IAAA,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE;AAC7D;;ACzDA;;AAEG;;ACFH;;AAEG;;;;"}
|
|
@@ -5,29 +5,29 @@ import { trigger, state, style, transition, animate } from '@angular/animations'
|
|
|
5
5
|
class NgbStep {
|
|
6
6
|
constructor() {
|
|
7
7
|
this.stepper = inject(NgbStepper);
|
|
8
|
-
this.header = contentChild(NgbStepHeader, { read: TemplateRef });
|
|
8
|
+
this.header = contentChild(NgbStepHeader, ...(ngDevMode ? [{ debugName: "header", read: TemplateRef }] : [{ read: TemplateRef }]));
|
|
9
9
|
this.stepContainer = viewChild.required('stepContainer', { read: TemplateRef });
|
|
10
|
-
this.title = input('Tab');
|
|
11
|
-
this.index = computed(() => this.stepper.steps().indexOf(this));
|
|
12
|
-
this.active = computed(() => this.stepper.activeIndex() === this.index());
|
|
13
|
-
this.template = computed(() => (this.active() ? this.stepContainer() : null));
|
|
14
|
-
this.horizontalTemplate = computed(() => this.stepper.direction() === 'horizontal' && this.template());
|
|
15
|
-
this.verticalTemplate = computed(() => this.stepper.direction() === 'vertical' && this.template());
|
|
10
|
+
this.title = input('Tab', ...(ngDevMode ? [{ debugName: "title" }] : []));
|
|
11
|
+
this.index = computed(() => this.stepper.steps().indexOf(this), ...(ngDevMode ? [{ debugName: "index" }] : []));
|
|
12
|
+
this.active = computed(() => this.stepper.activeIndex() === this.index(), ...(ngDevMode ? [{ debugName: "active" }] : []));
|
|
13
|
+
this.template = computed(() => (this.active() ? this.stepContainer() : null), ...(ngDevMode ? [{ debugName: "template" }] : []));
|
|
14
|
+
this.horizontalTemplate = computed(() => this.stepper.direction() === 'horizontal' && this.template(), ...(ngDevMode ? [{ debugName: "horizontalTemplate" }] : []));
|
|
15
|
+
this.verticalTemplate = computed(() => this.stepper.direction() === 'vertical' && this.template(), ...(ngDevMode ? [{ debugName: "verticalTemplate" }] : []));
|
|
16
16
|
}
|
|
17
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
18
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "
|
|
17
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: NgbStep, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
18
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "20.2.0", type: NgbStep, isStandalone: true, selector: "[ngbStep]", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null } }, queries: [{ propertyName: "header", first: true, predicate: NgbStepHeader, descendants: true, read: TemplateRef, isSignal: true }], viewQueries: [{ propertyName: "stepContainer", first: true, predicate: ["stepContainer"], descendants: true, read: TemplateRef, isSignal: true }], ngImport: i0 }); }
|
|
19
19
|
}
|
|
20
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: NgbStep, decorators: [{
|
|
21
21
|
type: Directive,
|
|
22
22
|
args: [{
|
|
23
23
|
selector: '[ngbStep]',
|
|
24
24
|
}]
|
|
25
25
|
}] });
|
|
26
26
|
class NgbStepHeader {
|
|
27
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
28
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
27
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: NgbStepHeader, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
28
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0", type: NgbStepHeader, isStandalone: true, selector: "[ngbStepHeader]", ngImport: i0 }); }
|
|
29
29
|
}
|
|
30
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
30
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: NgbStepHeader, decorators: [{
|
|
31
31
|
type: Directive,
|
|
32
32
|
args: [{
|
|
33
33
|
selector: '[ngbStepHeader]',
|
|
@@ -41,8 +41,8 @@ const provideStep = (step) => ({
|
|
|
41
41
|
class NgbStepperStep {
|
|
42
42
|
constructor() {
|
|
43
43
|
this.stepper = inject(NgbStepper);
|
|
44
|
-
this.ngbStepperStep = input(0);
|
|
45
|
-
this.last = computed(() => this.ngbStepperStep() === this.stepper.steps().length - 1);
|
|
44
|
+
this.ngbStepperStep = input(0, ...(ngDevMode ? [{ debugName: "ngbStepperStep" }] : []));
|
|
45
|
+
this.last = computed(() => this.ngbStepperStep() === this.stepper.steps().length - 1, ...(ngDevMode ? [{ debugName: "last" }] : []));
|
|
46
46
|
this.status = computed(() => {
|
|
47
47
|
const index = this.ngbStepperStep();
|
|
48
48
|
const activeIndex = this.stepper.activeIndex();
|
|
@@ -51,12 +51,12 @@ class NgbStepperStep {
|
|
|
51
51
|
if (index === activeIndex)
|
|
52
52
|
return 'active';
|
|
53
53
|
return 'inactive';
|
|
54
|
-
});
|
|
54
|
+
}, ...(ngDevMode ? [{ debugName: "status" }] : []));
|
|
55
55
|
}
|
|
56
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
57
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
56
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: NgbStepperStep, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
57
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.2.0", type: NgbStepperStep, isStandalone: true, selector: "[ngbStepperStep]", inputs: { ngbStepperStep: { classPropertyName: "ngbStepperStep", publicName: "ngbStepperStep", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.data-status": "status()", "attr.aria-current": "status() === \"active\" ? true : undefined", "attr.data-orientation": "stepper.direction()", "attr.data-index": "!last() ? true : undefined" } }, ngImport: i0 }); }
|
|
58
58
|
}
|
|
59
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
59
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: NgbStepperStep, decorators: [{
|
|
60
60
|
type: Directive,
|
|
61
61
|
args: [{
|
|
62
62
|
selector: '[ngbStepperStep]',
|
|
@@ -70,12 +70,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImpor
|
|
|
70
70
|
}] });
|
|
71
71
|
class NgbStepper {
|
|
72
72
|
constructor() {
|
|
73
|
-
this.steps = contentChildren(NgbStep);
|
|
74
|
-
this.activeIndex = model(0);
|
|
75
|
-
this.direction = input('horizontal');
|
|
76
|
-
this.first = computed(() => this.activeIndex() === 0);
|
|
77
|
-
this.last = computed(() => this.activeIndex() === this.steps().length - 1);
|
|
78
|
-
this.completed = computed(() => this.activeIndex() === this.steps().length);
|
|
73
|
+
this.steps = contentChildren(NgbStep, ...(ngDevMode ? [{ debugName: "steps" }] : []));
|
|
74
|
+
this.activeIndex = model(0, ...(ngDevMode ? [{ debugName: "activeIndex" }] : []));
|
|
75
|
+
this.direction = input('horizontal', ...(ngDevMode ? [{ debugName: "direction" }] : []));
|
|
76
|
+
this.first = computed(() => this.activeIndex() === 0, ...(ngDevMode ? [{ debugName: "first" }] : []));
|
|
77
|
+
this.last = computed(() => this.activeIndex() === this.steps().length - 1, ...(ngDevMode ? [{ debugName: "last" }] : []));
|
|
78
|
+
this.completed = computed(() => this.activeIndex() === this.steps().length, ...(ngDevMode ? [{ debugName: "completed" }] : []));
|
|
79
79
|
}
|
|
80
80
|
nextStep() {
|
|
81
81
|
this.activeIndex.update(index => Math.min(index + 1, this.steps().length));
|
|
@@ -83,10 +83,10 @@ class NgbStepper {
|
|
|
83
83
|
prevStep() {
|
|
84
84
|
this.activeIndex.update(index => Math.max(index - 1, 0));
|
|
85
85
|
}
|
|
86
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
87
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "
|
|
86
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: NgbStepper, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
87
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "20.2.0", type: NgbStepper, isStandalone: true, selector: "[ngbStepper]", inputs: { activeIndex: { classPropertyName: "activeIndex", publicName: "activeIndex", isSignal: true, isRequired: false, transformFunction: null }, direction: { classPropertyName: "direction", publicName: "direction", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { activeIndex: "activeIndexChange" }, queries: [{ propertyName: "steps", predicate: NgbStep, isSignal: true }], exportAs: ["ngbStepper"], ngImport: i0 }); }
|
|
88
88
|
}
|
|
89
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
89
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: NgbStepper, decorators: [{
|
|
90
90
|
type: Directive,
|
|
91
91
|
args: [{
|
|
92
92
|
selector: '[ngbStepper]',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngbase-adk-stepper.mjs","sources":["../../../projects/adk/stepper/step.ts","../../../projects/adk/stepper/stepper.ts","../../../projects/adk/stepper/animation.ts","../../../projects/adk/stepper/ngbase-adk-stepper.ts"],"sourcesContent":["import {\n Directive,\n TemplateRef,\n computed,\n contentChild,\n inject,\n input,\n viewChild,\n} from '@angular/core';\nimport { NgbStepper } from './stepper';\n\n@Directive({\n selector: '[ngbStep]',\n})\nexport class NgbStep {\n readonly stepper = inject(NgbStepper);\n readonly header = contentChild(NgbStepHeader, { read: TemplateRef });\n readonly stepContainer = viewChild.required('stepContainer', { read: TemplateRef });\n\n readonly title = input<any>('Tab');\n\n readonly index = computed(() => this.stepper.steps().indexOf(this));\n readonly active = computed(() => this.stepper.activeIndex() === this.index());\n private readonly template = computed(() => (this.active() ? this.stepContainer() : null));\n readonly horizontalTemplate = computed(\n () => this.stepper.direction() === 'horizontal' && this.template(),\n );\n readonly verticalTemplate = computed(\n () => this.stepper.direction() === 'vertical' && this.template(),\n );\n}\n\n@Directive({\n selector: '[ngbStepHeader]',\n})\nexport class NgbStepHeader {}\n\nexport const provideStep = (step: typeof NgbStep) => ({\n provide: NgbStep,\n useExisting: step,\n});\n","import { computed, contentChildren, Directive, inject, input, model } from '@angular/core';\nimport { NgbStep } from './step';\n\n@Directive({\n selector: '[ngbStepperStep]',\n host: {\n '[attr.data-status]': 'status()',\n '[attr.aria-current]': 'status() === \"active\" ? true : undefined',\n '[attr.data-orientation]': 'stepper.direction()',\n '[attr.data-index]': '!last() ? true : undefined',\n },\n})\nexport class NgbStepperStep {\n readonly stepper = inject(NgbStepper);\n readonly ngbStepperStep = input(0);\n readonly last = computed(() => this.ngbStepperStep() === this.stepper.steps().length - 1);\n readonly status = computed(() => {\n const index = this.ngbStepperStep();\n const activeIndex = this.stepper.activeIndex();\n\n if (index < activeIndex) return 'completed';\n if (index === activeIndex) return 'active';\n return 'inactive';\n });\n}\n\n@Directive({\n selector: '[ngbStepper]',\n exportAs: 'ngbStepper',\n})\nexport class NgbStepper {\n readonly steps = contentChildren(NgbStep);\n\n readonly activeIndex = model(0);\n readonly direction = input<'horizontal' | 'vertical'>('horizontal');\n\n readonly first = computed(() => this.activeIndex() === 0);\n readonly last = computed(() => this.activeIndex() === this.steps().length - 1);\n readonly completed = computed(() => this.activeIndex() === this.steps().length);\n\n nextStep() {\n this.activeIndex.update(index => Math.min(index + 1, this.steps().length));\n }\n\n prevStep() {\n this.activeIndex.update(index => Math.max(index - 1, 0));\n }\n}\n\nexport const aliasStepper = (stepper: typeof NgbStepper) => ({\n provide: NgbStepper,\n useExisting: stepper,\n});\n","import { trigger, state, style, transition, animate } from '@angular/animations';\n\nexport const stepperAnimation = trigger('slide', [\n state('void', style({ height: '0', overflow: 'hidden' })),\n state('*', style({ height: '*' })),\n transition('void => *', animate('200ms ease')),\n transition('* => void', animate('200ms ease')),\n]);\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAca,OAAO,CAAA;AAHpB,IAAA,WAAA,GAAA;AAIW,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"ngbase-adk-stepper.mjs","sources":["../../../projects/adk/stepper/step.ts","../../../projects/adk/stepper/stepper.ts","../../../projects/adk/stepper/animation.ts","../../../projects/adk/stepper/ngbase-adk-stepper.ts"],"sourcesContent":["import {\n Directive,\n TemplateRef,\n computed,\n contentChild,\n inject,\n input,\n viewChild,\n} from '@angular/core';\nimport { NgbStepper } from './stepper';\n\n@Directive({\n selector: '[ngbStep]',\n})\nexport class NgbStep {\n readonly stepper = inject(NgbStepper);\n readonly header = contentChild(NgbStepHeader, { read: TemplateRef });\n readonly stepContainer = viewChild.required('stepContainer', { read: TemplateRef });\n\n readonly title = input<any>('Tab');\n\n readonly index = computed(() => this.stepper.steps().indexOf(this));\n readonly active = computed(() => this.stepper.activeIndex() === this.index());\n private readonly template = computed(() => (this.active() ? this.stepContainer() : null));\n readonly horizontalTemplate = computed(\n () => this.stepper.direction() === 'horizontal' && this.template(),\n );\n readonly verticalTemplate = computed(\n () => this.stepper.direction() === 'vertical' && this.template(),\n );\n}\n\n@Directive({\n selector: '[ngbStepHeader]',\n})\nexport class NgbStepHeader {}\n\nexport const provideStep = (step: typeof NgbStep) => ({\n provide: NgbStep,\n useExisting: step,\n});\n","import { computed, contentChildren, Directive, inject, input, model } from '@angular/core';\nimport { NgbStep } from './step';\n\n@Directive({\n selector: '[ngbStepperStep]',\n host: {\n '[attr.data-status]': 'status()',\n '[attr.aria-current]': 'status() === \"active\" ? true : undefined',\n '[attr.data-orientation]': 'stepper.direction()',\n '[attr.data-index]': '!last() ? true : undefined',\n },\n})\nexport class NgbStepperStep {\n readonly stepper = inject(NgbStepper);\n readonly ngbStepperStep = input(0);\n readonly last = computed(() => this.ngbStepperStep() === this.stepper.steps().length - 1);\n readonly status = computed(() => {\n const index = this.ngbStepperStep();\n const activeIndex = this.stepper.activeIndex();\n\n if (index < activeIndex) return 'completed';\n if (index === activeIndex) return 'active';\n return 'inactive';\n });\n}\n\n@Directive({\n selector: '[ngbStepper]',\n exportAs: 'ngbStepper',\n})\nexport class NgbStepper {\n readonly steps = contentChildren(NgbStep);\n\n readonly activeIndex = model(0);\n readonly direction = input<'horizontal' | 'vertical'>('horizontal');\n\n readonly first = computed(() => this.activeIndex() === 0);\n readonly last = computed(() => this.activeIndex() === this.steps().length - 1);\n readonly completed = computed(() => this.activeIndex() === this.steps().length);\n\n nextStep() {\n this.activeIndex.update(index => Math.min(index + 1, this.steps().length));\n }\n\n prevStep() {\n this.activeIndex.update(index => Math.max(index - 1, 0));\n }\n}\n\nexport const aliasStepper = (stepper: typeof NgbStepper) => ({\n provide: NgbStepper,\n useExisting: stepper,\n});\n","import { trigger, state, style, transition, animate } from '@angular/animations';\n\nexport const stepperAnimation = trigger('slide', [\n state('void', style({ height: '0', overflow: 'hidden' })),\n state('*', style({ height: '*' })),\n transition('void => *', animate('200ms ease')),\n transition('* => void', animate('200ms ease')),\n]);\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAca,OAAO,CAAA;AAHpB,IAAA,WAAA,GAAA;AAIW,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,UAAU,CAAC;AAC5B,QAAA,IAAA,CAAA,MAAM,GAAG,YAAY,CAAC,aAAa,0CAAI,IAAI,EAAE,WAAW,EAAA,CAAA,GAAA,CAAnB,EAAE,IAAI,EAAE,WAAW,EAAE,GAAC;AAC3D,QAAA,IAAA,CAAA,aAAa,GAAG,SAAS,CAAC,QAAQ,CAAC,eAAe,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;AAE1E,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAM,KAAK,iDAAC;AAEzB,QAAA,IAAA,CAAA,KAAK,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,iDAAC;AAC1D,QAAA,IAAA,CAAA,MAAM,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,KAAK,IAAI,CAAC,KAAK,EAAE,kDAAC;QAC5D,IAAQ,CAAA,QAAA,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,aAAa,EA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AE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,CAAC;IACzD,KAAK,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC;AAClC,IAAA,UAAU,CAAC,WAAW,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;AAC9C,IAAA,UAAU,CAAC,WAAW,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;AAC/C,CAAA;;ACPD;;AAEG;;;;"}
|
|
@@ -6,12 +6,12 @@ import { uniqueId, provideValueAccessor } from '@ngbase/adk/utils';
|
|
|
6
6
|
class NgbSwitchTrack {
|
|
7
7
|
constructor() {
|
|
8
8
|
this.switch = inject(NgbSwitch);
|
|
9
|
-
this.checked = computed(() => this.switch.checked());
|
|
9
|
+
this.checked = computed(() => this.switch.checked(), ...(ngDevMode ? [{ debugName: "checked" }] : []));
|
|
10
10
|
}
|
|
11
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
12
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
11
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: NgbSwitchTrack, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
12
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0", type: NgbSwitchTrack, isStandalone: true, selector: "button[ngbSwitchTrack]", host: { attributes: { "type": "button", "role": "switch" }, listeners: { "click": "switch.updateValue()" }, properties: { "id": "switch.id", "disabled": "switch.disabled()", "attr.aria-checked": "checked()" } }, exportAs: ["ngbSwitchTrack"], ngImport: i0 }); }
|
|
13
13
|
}
|
|
14
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
14
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: NgbSwitchTrack, decorators: [{
|
|
15
15
|
type: Directive,
|
|
16
16
|
args: [{
|
|
17
17
|
selector: 'button[ngbSwitchTrack]',
|
|
@@ -30,13 +30,13 @@ class NgbSwitchThumb {
|
|
|
30
30
|
constructor() {
|
|
31
31
|
this.switch = inject(NgbSwitch);
|
|
32
32
|
this.dir = inject(Directionality);
|
|
33
|
-
this.checked = computed(() => this.switch.checked());
|
|
33
|
+
this.checked = computed(() => this.switch.checked(), ...(ngDevMode ? [{ debugName: "checked" }] : []));
|
|
34
34
|
this.rtl = this.dir.isRtl;
|
|
35
35
|
}
|
|
36
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
37
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
36
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: NgbSwitchThumb, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
37
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0", type: NgbSwitchThumb, isStandalone: true, selector: "[ngbSwitchThumb]", host: { properties: { "attr.aria-checked": "checked()" } }, exportAs: ["ngbSwitchThumb"], ngImport: i0 }); }
|
|
38
38
|
}
|
|
39
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
39
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: NgbSwitchThumb, decorators: [{
|
|
40
40
|
type: Directive,
|
|
41
41
|
args: [{
|
|
42
42
|
selector: '[ngbSwitchThumb]',
|
|
@@ -50,10 +50,10 @@ class NgbSwitchLabel {
|
|
|
50
50
|
constructor() {
|
|
51
51
|
this.switch = inject(NgbSwitch);
|
|
52
52
|
}
|
|
53
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
54
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
53
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: NgbSwitchLabel, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
54
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0", type: NgbSwitchLabel, isStandalone: true, selector: "[ngbSwitchLabel]", host: { properties: { "attr.for": "switch.id" } }, ngImport: i0 }); }
|
|
55
55
|
}
|
|
56
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
56
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: NgbSwitchLabel, decorators: [{
|
|
57
57
|
type: Directive,
|
|
58
58
|
args: [{
|
|
59
59
|
selector: '[ngbSwitchLabel]',
|
|
@@ -66,8 +66,8 @@ class NgbSwitch {
|
|
|
66
66
|
constructor() {
|
|
67
67
|
this.id = uniqueId();
|
|
68
68
|
this.change = output();
|
|
69
|
-
this.checked = model(false);
|
|
70
|
-
this.disabled = input(false, { transform: booleanAttribute });
|
|
69
|
+
this.checked = model(false, ...(ngDevMode ? [{ debugName: "checked" }] : []));
|
|
70
|
+
this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
|
|
71
71
|
}
|
|
72
72
|
updateValue() {
|
|
73
73
|
this.checked.update(v => !v);
|
|
@@ -85,10 +85,10 @@ class NgbSwitch {
|
|
|
85
85
|
registerOnTouched(fn) {
|
|
86
86
|
this.onTouched = fn;
|
|
87
87
|
}
|
|
88
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
89
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
88
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: NgbSwitch, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
89
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.2.0", type: NgbSwitch, isStandalone: true, selector: "[ngbSwitch]", inputs: { checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { change: "change", checked: "checkedChange" }, providers: [_provide(NgbSwitch)], exportAs: ["ngbSwitch"], ngImport: i0 }); }
|
|
90
90
|
}
|
|
91
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
91
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: NgbSwitch, decorators: [{
|
|
92
92
|
type: Directive,
|
|
93
93
|
args: [{
|
|
94
94
|
selector: '[ngbSwitch]',
|