ng-primitives 0.120.5 → 0.121.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/ng-primitives-a11y.mjs +5 -5
- package/fesm2022/ng-primitives-a11y.mjs.map +1 -1
- package/fesm2022/ng-primitives-accordion.mjs +30 -47
- package/fesm2022/ng-primitives-accordion.mjs.map +1 -1
- package/fesm2022/ng-primitives-ai.mjs +39 -52
- package/fesm2022/ng-primitives-ai.mjs.map +1 -1
- package/fesm2022/ng-primitives-autofill.mjs +4 -4
- package/fesm2022/ng-primitives-autofill.mjs.map +1 -1
- package/fesm2022/ng-primitives-avatar.mjs +14 -17
- package/fesm2022/ng-primitives-avatar.mjs.map +1 -1
- package/fesm2022/ng-primitives-breadcrumbs.mjs +21 -21
- package/fesm2022/ng-primitives-breadcrumbs.mjs.map +1 -1
- package/fesm2022/ng-primitives-button.mjs +7 -9
- package/fesm2022/ng-primitives-button.mjs.map +1 -1
- package/fesm2022/ng-primitives-checkbox.mjs +15 -30
- package/fesm2022/ng-primitives-checkbox.mjs.map +1 -1
- package/fesm2022/ng-primitives-combobox.mjs +60 -92
- package/fesm2022/ng-primitives-combobox.mjs.map +1 -1
- package/fesm2022/ng-primitives-common.mjs +4 -4
- package/fesm2022/ng-primitives-common.mjs.map +1 -1
- package/fesm2022/ng-primitives-context-menu.mjs +66 -119
- package/fesm2022/ng-primitives-context-menu.mjs.map +1 -1
- package/fesm2022/ng-primitives-date-picker.mjs +70 -108
- package/fesm2022/ng-primitives-date-picker.mjs.map +1 -1
- package/fesm2022/ng-primitives-dialog.mjs +33 -49
- package/fesm2022/ng-primitives-dialog.mjs.map +1 -1
- package/fesm2022/ng-primitives-file-upload.mjs +26 -53
- package/fesm2022/ng-primitives-file-upload.mjs.map +1 -1
- package/fesm2022/ng-primitives-focus-trap.mjs +5 -8
- package/fesm2022/ng-primitives-focus-trap.mjs.map +1 -1
- package/fesm2022/ng-primitives-form-field.mjs +39 -44
- package/fesm2022/ng-primitives-form-field.mjs.map +1 -1
- package/fesm2022/ng-primitives-input-otp.mjs +30 -43
- package/fesm2022/ng-primitives-input-otp.mjs.map +1 -1
- package/fesm2022/ng-primitives-input.mjs +6 -8
- package/fesm2022/ng-primitives-input.mjs.map +1 -1
- package/fesm2022/ng-primitives-interactions.mjs +31 -48
- package/fesm2022/ng-primitives-interactions.mjs.map +1 -1
- package/fesm2022/ng-primitives-internal.mjs +12 -12
- package/fesm2022/ng-primitives-internal.mjs.map +1 -1
- package/fesm2022/ng-primitives-listbox.mjs +34 -48
- package/fesm2022/ng-primitives-listbox.mjs.map +1 -1
- package/fesm2022/ng-primitives-menu.mjs +83 -149
- package/fesm2022/ng-primitives-menu.mjs.map +1 -1
- package/fesm2022/ng-primitives-meter.mjs +25 -36
- package/fesm2022/ng-primitives-meter.mjs.map +1 -1
- package/fesm2022/ng-primitives-navigation-menu.mjs +60 -108
- package/fesm2022/ng-primitives-navigation-menu.mjs.map +1 -1
- package/fesm2022/ng-primitives-number-field.mjs +35 -59
- package/fesm2022/ng-primitives-number-field.mjs.map +1 -1
- package/fesm2022/ng-primitives-pagination.mjs +270 -297
- package/fesm2022/ng-primitives-pagination.mjs.map +1 -1
- package/fesm2022/ng-primitives-popover.mjs +42 -87
- package/fesm2022/ng-primitives-popover.mjs.map +1 -1
- package/fesm2022/ng-primitives-portal.mjs +81 -57
- package/fesm2022/ng-primitives-portal.mjs.map +1 -1
- package/fesm2022/ng-primitives-progress.mjs +30 -41
- package/fesm2022/ng-primitives-progress.mjs.map +1 -1
- package/fesm2022/ng-primitives-radio.mjs +20 -30
- package/fesm2022/ng-primitives-radio.mjs.map +1 -1
- package/fesm2022/ng-primitives-resize.mjs +3 -3
- package/fesm2022/ng-primitives-resize.mjs.map +1 -1
- package/fesm2022/ng-primitives-roving-focus.mjs +20 -34
- package/fesm2022/ng-primitives-roving-focus.mjs.map +1 -1
- package/fesm2022/ng-primitives-search.mjs +9 -9
- package/fesm2022/ng-primitives-search.mjs.map +1 -1
- package/fesm2022/ng-primitives-select.mjs +50 -81
- package/fesm2022/ng-primitives-select.mjs.map +1 -1
- package/fesm2022/ng-primitives-separator.mjs +4 -6
- package/fesm2022/ng-primitives-separator.mjs.map +1 -1
- package/fesm2022/ng-primitives-slider.mjs +63 -100
- package/fesm2022/ng-primitives-slider.mjs.map +1 -1
- package/fesm2022/ng-primitives-state.mjs +3 -3
- package/fesm2022/ng-primitives-state.mjs.map +1 -1
- package/fesm2022/ng-primitives-switch.mjs +15 -21
- package/fesm2022/ng-primitives-switch.mjs.map +1 -1
- package/fesm2022/ng-primitives-tabs.mjs +31 -41
- package/fesm2022/ng-primitives-tabs.mjs.map +1 -1
- package/fesm2022/ng-primitives-textarea.mjs +5 -7
- package/fesm2022/ng-primitives-textarea.mjs.map +1 -1
- package/fesm2022/ng-primitives-toast.mjs +19 -19
- package/fesm2022/ng-primitives-toast.mjs.map +1 -1
- package/fesm2022/ng-primitives-toggle-group.mjs +20 -36
- package/fesm2022/ng-primitives-toggle-group.mjs.map +1 -1
- package/fesm2022/ng-primitives-toggle.mjs +10 -19
- package/fesm2022/ng-primitives-toggle.mjs.map +1 -1
- package/fesm2022/ng-primitives-toolbar.mjs +4 -6
- package/fesm2022/ng-primitives-toolbar.mjs.map +1 -1
- package/fesm2022/ng-primitives-tooltip.mjs +401 -402
- package/fesm2022/ng-primitives-tooltip.mjs.map +1 -1
- package/fesm2022/ng-primitives-utils.mjs +5 -4
- package/fesm2022/ng-primitives-utils.mjs.map +1 -1
- package/package.json +56 -55
- package/{a11y/index.d.ts → types/ng-primitives-a11y.d.ts} +15 -14
- package/{accordion/index.d.ts → types/ng-primitives-accordion.d.ts} +78 -77
- package/{button/index.d.ts → types/ng-primitives-button.d.ts} +21 -20
- package/{checkbox/index.d.ts → types/ng-primitives-checkbox.d.ts} +67 -66
- package/{combobox/index.d.ts → types/ng-primitives-combobox.d.ts} +35 -35
- package/{date-picker/index.d.ts → types/ng-primitives-date-picker.d.ts} +2 -2
- package/{number-field/index.d.ts → types/ng-primitives-number-field.d.ts} +72 -71
- package/types/ng-primitives-pagination.d.ts +502 -0
- package/{popover/index.d.ts → types/ng-primitives-popover.d.ts} +3 -2
- package/{portal/index.d.ts → types/ng-primitives-portal.d.ts} +19 -3
- package/{roving-focus/index.d.ts → types/ng-primitives-roving-focus.d.ts} +61 -60
- package/{select/index.d.ts → types/ng-primitives-select.d.ts} +39 -38
- package/{slider/index.d.ts → types/ng-primitives-slider.d.ts} +59 -58
- package/{switch/index.d.ts → types/ng-primitives-switch.d.ts} +45 -44
- package/{toast/index.d.ts → types/ng-primitives-toast.d.ts} +2 -1
- package/{toggle-group/index.d.ts → types/ng-primitives-toggle-group.d.ts} +69 -68
- package/{toggle/index.d.ts → types/ng-primitives-toggle.d.ts} +48 -47
- package/types/ng-primitives-tooltip.d.ts +691 -0
- package/pagination/index.d.ts +0 -211
- package/tooltip/index.d.ts +0 -376
- /package/{ai/index.d.ts → types/ng-primitives-ai.d.ts} +0 -0
- /package/{autofill/index.d.ts → types/ng-primitives-autofill.d.ts} +0 -0
- /package/{avatar/index.d.ts → types/ng-primitives-avatar.d.ts} +0 -0
- /package/{breadcrumbs/index.d.ts → types/ng-primitives-breadcrumbs.d.ts} +0 -0
- /package/{common/index.d.ts → types/ng-primitives-common.d.ts} +0 -0
- /package/{context-menu/index.d.ts → types/ng-primitives-context-menu.d.ts} +0 -0
- /package/{date-time-luxon/index.d.ts → types/ng-primitives-date-time-luxon.d.ts} +0 -0
- /package/{date-time/index.d.ts → types/ng-primitives-date-time.d.ts} +0 -0
- /package/{dialog/index.d.ts → types/ng-primitives-dialog.d.ts} +0 -0
- /package/{file-upload/index.d.ts → types/ng-primitives-file-upload.d.ts} +0 -0
- /package/{focus-trap/index.d.ts → types/ng-primitives-focus-trap.d.ts} +0 -0
- /package/{form-field/index.d.ts → types/ng-primitives-form-field.d.ts} +0 -0
- /package/{input-otp/index.d.ts → types/ng-primitives-input-otp.d.ts} +0 -0
- /package/{input/index.d.ts → types/ng-primitives-input.d.ts} +0 -0
- /package/{interactions/index.d.ts → types/ng-primitives-interactions.d.ts} +0 -0
- /package/{internal/index.d.ts → types/ng-primitives-internal.d.ts} +0 -0
- /package/{listbox/index.d.ts → types/ng-primitives-listbox.d.ts} +0 -0
- /package/{menu/index.d.ts → types/ng-primitives-menu.d.ts} +0 -0
- /package/{meter/index.d.ts → types/ng-primitives-meter.d.ts} +0 -0
- /package/{navigation-menu/index.d.ts → types/ng-primitives-navigation-menu.d.ts} +0 -0
- /package/{progress/index.d.ts → types/ng-primitives-progress.d.ts} +0 -0
- /package/{radio/index.d.ts → types/ng-primitives-radio.d.ts} +0 -0
- /package/{resize/index.d.ts → types/ng-primitives-resize.d.ts} +0 -0
- /package/{search/index.d.ts → types/ng-primitives-search.d.ts} +0 -0
- /package/{separator/index.d.ts → types/ng-primitives-separator.d.ts} +0 -0
- /package/{state/index.d.ts → types/ng-primitives-state.d.ts} +0 -0
- /package/{tabs/index.d.ts → types/ng-primitives-tabs.d.ts} +0 -0
- /package/{textarea/index.d.ts → types/ng-primitives-textarea.d.ts} +0 -0
- /package/{toolbar/index.d.ts → types/ng-primitives-toolbar.d.ts} +0 -0
- /package/{utils/index.d.ts → types/ng-primitives-utils.d.ts} +0 -0
- /package/{index.d.ts → types/ng-primitives.d.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-primitives-pagination.mjs","sources":["../../../../packages/ng-primitives/pagination/src/pagination/pagination-state.ts","../../../../packages/ng-primitives/pagination/src/pagination-button/pagination-button.ts","../../../../packages/ng-primitives/pagination/src/pagination-first/pagination-first.ts","../../../../packages/ng-primitives/pagination/src/pagination-last/pagination-last.ts","../../../../packages/ng-primitives/pagination/src/pagination-next/pagination-next.ts","../../../../packages/ng-primitives/pagination/src/pagination-previous/pagination-previous.ts","../../../../packages/ng-primitives/pagination/src/pagination/pagination.ts","../../../../packages/ng-primitives/pagination/src/ng-primitives-pagination.ts"],"sourcesContent":["import {\n createState,\n createStateInjector,\n createStateProvider,\n createStateToken,\n} from 'ng-primitives/state';\nimport type { NgpPagination } from './pagination';\n\n/**\n * The state token for the Pagination primitive.\n */\nexport const NgpPaginationStateToken = createStateToken<NgpPagination>('Pagination');\n\n/**\n * Provides the Pagination state.\n */\nexport const providePaginationState = createStateProvider(NgpPaginationStateToken);\n\n/**\n * Injects the Pagination state.\n */\nexport const injectPaginationState = createStateInjector<NgpPagination>(NgpPaginationStateToken);\n\n/**\n * The Pagination state registration function.\n */\nexport const paginationState = createState(NgpPaginationStateToken);\n","import { BooleanInput, NumberInput } from '@angular/cdk/coercion';\nimport {\n booleanAttribute,\n computed,\n Directive,\n HostListener,\n input,\n numberAttribute,\n} from '@angular/core';\nimport { ngpButton } from 'ng-primitives/button';\nimport { injectPaginationState } from '../pagination/pagination-state';\n\n/**\n * The `NgpPaginationButton` directive is used to create a pagination button.\n */\n@Directive({\n selector: '[ngpPaginationButton]',\n exportAs: 'ngpPaginationButton',\n host: {\n '[tabindex]': 'disabled() ? -1 : 0',\n '[attr.data-page]': 'page()',\n '[attr.data-selected]': 'selected() ? \"\" : null',\n '[attr.aria-current]': 'selected()',\n },\n})\nexport class NgpPaginationButton {\n /**\n * Access the pagination state.\n */\n protected readonly paginationState = injectPaginationState();\n\n /**\n * Define the page this button represents.\n */\n readonly page = input.required<number, NumberInput>({\n alias: 'ngpPaginationButtonPage',\n transform: numberAttribute,\n });\n\n /**\n * Whether the button is disabled.\n */\n readonly buttonDisabled = input<boolean, BooleanInput>(false, {\n alias: 'ngpPaginationButtonDisabled',\n transform: booleanAttribute,\n });\n\n /**\n * Whether the button is disabled.\n */\n readonly disabled = computed(() => this.buttonDisabled() || this.paginationState().disabled());\n\n /**\n * Whether this page is the currently selected page.\n */\n protected readonly selected = computed(() => this.page() === this.paginationState().page());\n\n constructor() {\n ngpButton({ disabled: this.disabled });\n }\n\n /**\n * Go to the page this button represents.\n */\n @HostListener('click')\n goToPage(): void {\n if (this.disabled()) {\n return;\n }\n\n this.paginationState().goToPage(this.page());\n }\n\n /**\n * A click event may not be fired if this is on an anchor tag and the href is empty.\n * This is a workaround to ensure the click event is fired.\n */\n @HostListener('keydown.enter', ['$event'])\n @HostListener('keydown.space', ['$event'])\n protected onEnter(event: Event): void {\n event.preventDefault();\n event.stopPropagation();\n this.goToPage();\n }\n}\n","import { BooleanInput } from '@angular/cdk/coercion';\nimport { booleanAttribute, computed, Directive, HostListener, input } from '@angular/core';\nimport { ngpButton } from 'ng-primitives/button';\nimport { injectPaginationState } from '../pagination/pagination-state';\n\n/**\n * The `NgpPaginationFirst` directive is used to create a pagination button that navigates to the first page.\n */\n@Directive({\n selector: '[ngpPaginationFirst]',\n exportAs: 'ngpPaginationFirst',\n host: {\n '[tabindex]': 'disabled() ? -1 : 0',\n '[attr.data-first-page]': 'paginationState().firstPage() ? \"\" : null',\n },\n})\nexport class NgpPaginationFirst {\n /**\n * Access the pagination state.\n */\n protected readonly paginationState = injectPaginationState();\n\n /**\n * Whether the button is disabled.\n */\n readonly buttonDisabled = input<boolean, BooleanInput>(false, {\n alias: 'ngpPaginationFirstDisabled',\n transform: booleanAttribute,\n });\n\n readonly disabled = computed(\n () =>\n this.buttonDisabled() ||\n this.paginationState().disabled() ||\n this.paginationState().firstPage(),\n );\n\n constructor() {\n ngpButton({ disabled: this.disabled });\n }\n /**\n * Go to the first page.\n */\n @HostListener('click')\n goToFirstPage() {\n if (this.disabled()) {\n return;\n }\n\n this.paginationState().goToPage(1);\n }\n\n /**\n * A click event may not be fired if this is on an anchor tag and the href is empty.\n * This is a workaround to ensure the click event is fired.\n */\n @HostListener('keydown.enter', ['$event'])\n @HostListener('keydown.space', ['$event'])\n protected onEnter(event: Event): void {\n event.preventDefault();\n event.stopPropagation();\n this.goToFirstPage();\n }\n}\n","import { BooleanInput } from '@angular/cdk/coercion';\nimport { booleanAttribute, computed, Directive, HostListener, input } from '@angular/core';\nimport { ngpButton } from 'ng-primitives/button';\nimport { injectPaginationState } from '../pagination/pagination-state';\n\n/**\n * The `NgpPaginationLast` directive is used to create a pagination button that navigates to the last page.\n */\n@Directive({\n selector: '[ngpPaginationLast]',\n exportAs: 'ngpPaginationLast',\n host: {\n '[tabindex]': 'disabled() ? -1 : 0',\n '[attr.data-last-page]': 'paginationState().lastPage() ? \"\" : null',\n },\n})\nexport class NgpPaginationLast {\n /**\n * Access the pagination state.\n */\n protected readonly paginationState = injectPaginationState();\n\n /**\n * Whether the button is disabled.\n */\n readonly buttonDisabled = input<boolean, BooleanInput>(false, {\n alias: 'ngpPaginationLastDisabled',\n transform: booleanAttribute,\n });\n\n readonly disabled = computed(\n () =>\n this.buttonDisabled() ||\n this.paginationState().disabled() ||\n this.paginationState().lastPage(),\n );\n\n constructor() {\n ngpButton({ disabled: this.disabled });\n }\n\n /**\n * Go to the last page.\n */\n @HostListener('click')\n goToLastPage(): void {\n if (this.disabled()) {\n return;\n }\n\n this.paginationState().goToPage(this.paginationState().pageCount());\n }\n\n /**\n * A click event may not be fired if this is on an anchor tag and the href is empty.\n * This is a workaround to ensure the click event is fired.\n */\n @HostListener('keydown.enter', ['$event'])\n @HostListener('keydown.space', ['$event'])\n protected onEnter(event: Event): void {\n event.preventDefault();\n event.stopPropagation();\n this.goToLastPage();\n }\n}\n","import { BooleanInput } from '@angular/cdk/coercion';\nimport { booleanAttribute, computed, Directive, HostListener, input } from '@angular/core';\nimport { ngpButton } from 'ng-primitives/button';\nimport { injectPaginationState } from '../pagination/pagination-state';\n\n/**\n * The `NgpPaginationNext` directive is used to create a pagination button that navigates to the next page.\n */\n@Directive({\n selector: '[ngpPaginationNext]',\n exportAs: 'ngpPaginationNext',\n host: {\n '[tabindex]': 'disabled() ? -1 : 0',\n '[attr.data-last-page]': 'paginationState().lastPage() ? \"\" : null',\n },\n})\nexport class NgpPaginationNext {\n /**\n * Access the pagination state.\n */\n protected readonly paginationState = injectPaginationState();\n\n /**\n * Whether the button is disabled.\n */\n readonly buttonDisabled = input<boolean, BooleanInput>(false, {\n alias: 'ngpPaginationNextDisabled',\n transform: booleanAttribute,\n });\n\n /**\n * Whether the button is disabled.\n */\n readonly disabled = computed(\n () =>\n this.buttonDisabled() ||\n this.paginationState().disabled() ||\n this.paginationState().lastPage(),\n );\n\n constructor() {\n ngpButton({ disabled: this.disabled });\n }\n\n /**\n * Go to the next page.\n */\n @HostListener('click')\n goToNextPage(): void {\n if (this.disabled()) {\n return;\n }\n\n this.paginationState().goToPage(this.paginationState().page() + 1);\n }\n\n /**\n * A click event may not be fired if this is on an anchor tag and the href is empty.\n * This is a workaround to ensure the click event is fired.\n */\n @HostListener('keydown.enter', ['$event'])\n @HostListener('keydown.space', ['$event'])\n protected onEnter(event: Event): void {\n event.preventDefault();\n event.stopPropagation();\n this.goToNextPage();\n }\n}\n","import { BooleanInput } from '@angular/cdk/coercion';\nimport { booleanAttribute, computed, Directive, HostListener, input } from '@angular/core';\nimport { ngpButton } from 'ng-primitives/button';\nimport { injectPaginationState } from '../pagination/pagination-state';\n\n/**\n * The `NgpPaginationPrevious` directive is used to create a pagination button that navigates to the previous page.\n */\n@Directive({\n selector: '[ngpPaginationPrevious]',\n exportAs: 'ngpPaginationPrevious',\n host: {\n '[tabindex]': 'disabled() ? -1 : 0',\n '[attr.data-first-page]': 'paginationState().firstPage() ? \"\" : null',\n },\n})\nexport class NgpPaginationPrevious {\n /**\n * Access the pagination state.\n */\n protected readonly paginationState = injectPaginationState();\n\n /**\n * Whether the button is disabled.\n */\n readonly buttonDisabled = input<boolean, BooleanInput>(false, {\n alias: 'ngpPaginationPreviousDisabled',\n transform: booleanAttribute,\n });\n\n /**\n * Whether the button is disabled.\n */\n readonly disabled = computed(\n () =>\n this.buttonDisabled() ||\n this.paginationState().disabled() ||\n this.paginationState().firstPage(),\n );\n\n constructor() {\n ngpButton({ disabled: this.disabled });\n }\n\n /**\n * Go to the previous page.\n */\n @HostListener('click')\n goToPreviousPage() {\n if (this.disabled()) {\n return;\n }\n\n this.paginationState().goToPage(this.paginationState().page() - 1);\n }\n\n /**\n * A click event may not be fired if this is on an anchor tag and the href is empty.\n * This is a workaround to ensure the click event is fired.\n */\n @HostListener('keydown.enter', ['$event'])\n @HostListener('keydown.space', ['$event'])\n protected onEnter(event: Event): void {\n event.preventDefault();\n event.stopPropagation();\n this.goToPreviousPage();\n }\n}\n","import { BooleanInput, NumberInput } from '@angular/cdk/coercion';\nimport {\n booleanAttribute,\n computed,\n Directive,\n input,\n numberAttribute,\n output,\n} from '@angular/core';\nimport { paginationState, providePaginationState } from './pagination-state';\n\n/**\n * The `NgpPagination` directive is used to create a pagination control.\n */\n@Directive({\n selector: '[ngpPagination]',\n exportAs: 'ngpPagination',\n providers: [providePaginationState()],\n host: {\n role: 'navigation',\n '[attr.data-page]': 'state.page()',\n '[attr.data-page-count]': 'state.pageCount()',\n '[attr.data-first-page]': 'firstPage() ? \"\" : null',\n '[attr.data-last-page]': 'lastPage() ? \"\" : null',\n '[attr.data-disabled]': 'state.disabled() ? \"\" : null',\n },\n})\nexport class NgpPagination {\n /**\n * The currently selected page.\n */\n readonly page = input<number, NumberInput>(1, {\n alias: 'ngpPaginationPage',\n transform: numberAttribute,\n });\n\n /**\n * The event that is fired when the page changes.\n */\n readonly pageChange = output<number>({\n alias: 'ngpPaginationPageChange',\n });\n\n /**\n * The total number of pages.\n */\n readonly pageCount = input<number, NumberInput>(0, {\n alias: 'ngpPaginationPageCount',\n transform: numberAttribute,\n });\n\n /**\n * Whether the pagination is disabled.\n */\n readonly disabled = input<boolean, BooleanInput>(false, {\n alias: 'ngpPaginationDisabled',\n transform: booleanAttribute,\n });\n\n /**\n * Determine if we are on the first page.\n * @internal\n */\n readonly firstPage = computed(() => this.state.page() === 1);\n\n /**\n * Determine if we are on the last page.\n * @internal\n */\n readonly lastPage = computed(() => this.state.page() === this.state.pageCount());\n\n /**\n * The control state for the pagination.\n * @internal\n */\n protected readonly state = paginationState<NgpPagination>(this);\n\n /**\n * Go to the specified page.\n * @param page The page to go to.\n */\n goToPage(page: number) {\n // check if the page is within the bounds of the pagination\n if (page < 1 || page > this.state.pageCount()) {\n return;\n }\n\n this.state.page.set(page);\n this.pageChange.emit(page);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAQA;;AAEG;AACI,MAAM,uBAAuB,GAAG,gBAAgB,CAAgB,YAAY,CAAC;AAEpF;;AAEG;MACU,sBAAsB,GAAG,mBAAmB,CAAC,uBAAuB;AAEjF;;AAEG;MACU,qBAAqB,GAAG,mBAAmB,CAAgB,uBAAuB;AAE/F;;AAEG;AACI,MAAM,eAAe,GAAG,WAAW,CAAC,uBAAuB,CAAC;;ACdnE;;AAEG;MAWU,mBAAmB,CAAA;AAgC9B,IAAA,WAAA,GAAA;AA/BA;;AAEG;QACgB,IAAA,CAAA,eAAe,GAAG,qBAAqB,EAAE;AAE5D;;AAEG;AACM,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAC,QAAQ,CAAA,IAAA,SAAA,GAAA,CAAA,EAAA,SAAA,EAAA,MAAA,EAC5B,KAAK,EAAE,yBAAyB;gBAChC,SAAS,EAAE,eAAe,EAAA,CAAA,GAAA,CAFwB;AAClD,gBAAA,KAAK,EAAE,yBAAyB;AAChC,gBAAA,SAAS,EAAE,eAAe;AAC3B,aAAA,CAAA,CAAA,CAAC;AAEF;;AAEG;AACM,QAAA,IAAA,CAAA,cAAc,GAAG,KAAK,CAAwB,KAAK,EAAA,IAAA,SAAA,GAAA,CAAA,EAAA,SAAA,EAAA,gBAAA,EAC1D,KAAK,EAAE,6BAA6B;gBACpC,SAAS,EAAE,gBAAgB,EAAA,CAAA,GAAA,CAFiC;AAC5D,gBAAA,KAAK,EAAE,6BAA6B;AACpC,gBAAA,SAAS,EAAE,gBAAgB;AAC5B,aAAA,CAAA,CAAA,CAAC;AAEF;;AAEG;AACM,QAAA,IAAA,CAAA,QAAQ,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,cAAc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AE,8BAA8B;AACvD,qBAAA;AACF,iBAAA;;;AC1BD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ng-primitives-pagination.mjs","sources":["../../../../packages/ng-primitives/pagination/src/pagination/pagination-state.ts","../../../../packages/ng-primitives/pagination/src/pagination-button/pagination-button-state.ts","../../../../packages/ng-primitives/pagination/src/pagination-button/pagination-button.ts","../../../../packages/ng-primitives/pagination/src/pagination-first/pagination-first-state.ts","../../../../packages/ng-primitives/pagination/src/pagination-first/pagination-first.ts","../../../../packages/ng-primitives/pagination/src/pagination-last/pagination-last-state.ts","../../../../packages/ng-primitives/pagination/src/pagination-last/pagination-last.ts","../../../../packages/ng-primitives/pagination/src/pagination-next/pagination-next-state.ts","../../../../packages/ng-primitives/pagination/src/pagination-next/pagination-next.ts","../../../../packages/ng-primitives/pagination/src/pagination-previous/pagination-previous-state.ts","../../../../packages/ng-primitives/pagination/src/pagination-previous/pagination-previous.ts","../../../../packages/ng-primitives/pagination/src/pagination/pagination.ts","../../../../packages/ng-primitives/pagination/src/ng-primitives-pagination.ts"],"sourcesContent":["import { computed, signal, Signal, WritableSignal } from '@angular/core';\nimport { injectElementRef } from 'ng-primitives/internal';\nimport {\n attrBinding,\n controlledState,\n createPrimitive,\n dataBinding,\n deprecatedSetter,\n} from 'ng-primitives/state';\nimport { Observable } from 'rxjs';\n\nexport interface NgpPaginationState {\n /**\n * The currently selected page.\n */\n readonly page: WritableSignal<number>;\n /**\n * The total number of pages.\n */\n readonly pageCount: Signal<number>;\n /**\n * Whether the pagination is disabled.\n */\n readonly disabled: Signal<boolean>;\n /**\n * Determine if we are on the first page.\n * @internal\n */\n readonly firstPage: Signal<boolean>;\n /**\n * Determine if we are on the last page.\n * @internal\n */\n readonly lastPage: Signal<boolean>;\n /**\n * The event that is fired when the page changes.\n */\n readonly pageChange: Observable<number>;\n /**\n * Go to the specified page.\n * @param page The page to go to.\n */\n goToPage: (page: number) => void;\n}\n\nexport interface NgpPaginationProps {\n /**\n * The currently selected page. When `undefined`, the pagination is uncontrolled\n * and seeds from `defaultPage`.\n */\n readonly page?: Signal<number | undefined>;\n /**\n * The default page for uncontrolled usage.\n */\n readonly defaultPage?: Signal<number>;\n /**\n * The total number of pages.\n */\n readonly pageCount?: Signal<number>;\n /**\n * Whether the pagination is disabled.\n */\n readonly disabled?: Signal<boolean>;\n /** Callback fired when the page state changes. */\n onPageChange: (page: number) => void;\n}\n\nexport const [\n NgpPaginationStateToken,\n ngpPagination,\n injectPaginationState,\n providePaginationState,\n] = createPrimitive(\n 'NgpPagination',\n ({\n page: _page = signal<number | undefined>(undefined),\n defaultPage: _defaultPage = signal<number>(1),\n pageCount: _pageCount = signal<number>(0),\n disabled: _disabled = signal<boolean>(false),\n onPageChange,\n }: NgpPaginationProps) => {\n const elementRef = injectElementRef();\n\n const [page, setPage, pageChange] = controlledState({\n value: _page,\n defaultValue: _defaultPage,\n onChange: onPageChange,\n });\n\n const firstPage = computed(() => page() === 1);\n const lastPage = computed(() => page() === _pageCount());\n\n // Host bindings\n attrBinding(elementRef, 'role', 'navigation');\n dataBinding(elementRef, 'data-page', () => page().toString());\n dataBinding(elementRef, 'data-page-count', () => _pageCount().toString());\n dataBinding(elementRef, 'data-first-page', () => (firstPage() ? '' : null));\n dataBinding(elementRef, 'data-last-page', () => (lastPage() ? '' : null));\n dataBinding(elementRef, 'data-disabled', () => (_disabled() ? '' : null));\n\n function goToPage(page: number) {\n // check if the page is within the bounds of the pagination\n if (page < 1 || page > _pageCount()) {\n return;\n }\n\n setPage(page);\n }\n\n return {\n page: deprecatedSetter(page, 'setPage', setPage),\n pageCount: _pageCount,\n pageChange,\n disabled: _disabled,\n firstPage,\n lastPage,\n goToPage,\n } satisfies NgpPaginationState;\n },\n);\n","import { computed, signal, Signal } from '@angular/core';\nimport { ngpButton } from 'ng-primitives/button';\nimport { injectElementRef } from 'ng-primitives/internal';\nimport { attrBinding, createPrimitive, dataBinding, listener } from 'ng-primitives/state';\nimport { injectPaginationState } from '../pagination/pagination-state';\n\nexport interface NgpPaginationButtonState {\n /**\n * Define the page this button represents.\n */\n readonly page: Signal<number>;\n /**\n * Whether the button is disabled, accounting for the parent pagination state.\n */\n readonly disabled: Signal<boolean>;\n /**\n * Go to the page this button represents.\n */\n goToPage(): void;\n}\n\nexport interface NgpPaginationButtonProps {\n /**\n * Define the page this button represents.\n */\n readonly page?: Signal<number>;\n /**\n * Whether the button is disabled.\n */\n readonly disabled?: Signal<boolean>;\n}\n\nexport const [\n NgpPaginationButtonStateToken,\n ngpPaginationButton,\n injectPaginationButtonState,\n providePaginationButtonState,\n] = createPrimitive(\n 'NgpPaginationButton',\n ({\n page = signal<number>(-1),\n disabled: _disabled = signal<boolean>(false),\n }: NgpPaginationButtonProps) => {\n const elementRef = injectElementRef();\n const paginationState = injectPaginationState();\n\n const selected = computed(() => page() === paginationState().page());\n const disabled = computed(() => _disabled() || paginationState().disabled());\n\n // Setup interactions\n ngpButton({ disabled: disabled });\n\n // Host binding\n attrBinding(elementRef, 'tabindex', () => (disabled() ? -1 : 0));\n attrBinding(elementRef, 'aria-current', selected);\n dataBinding(elementRef, 'data-page', () => page().toString());\n dataBinding(elementRef, 'data-selected', () => (selected() ? '' : null));\n\n // Listeners\n listener(elementRef, 'click', goToPage);\n listener(elementRef, 'keydown.space', handleOnEnter);\n listener(elementRef, 'keydown.enter', handleOnEnter);\n\n function goToPage(): void {\n if (disabled()) {\n return;\n }\n\n paginationState().goToPage(page());\n }\n\n function handleOnEnter(event: Event): void {\n event.preventDefault();\n event.stopPropagation();\n goToPage();\n }\n\n return {\n page,\n disabled,\n goToPage,\n } satisfies NgpPaginationButtonState;\n },\n);\n","import { BooleanInput, NumberInput } from '@angular/cdk/coercion';\nimport { booleanAttribute, Directive, input, numberAttribute } from '@angular/core';\nimport { ngpPaginationButton } from './pagination-button-state';\n\n/**\n * The `NgpPaginationButton` directive is used to create a pagination button.\n */\n@Directive({\n selector: '[ngpPaginationButton]',\n exportAs: 'ngpPaginationButton',\n})\nexport class NgpPaginationButton {\n /**\n * Define the page this button represents.\n */\n readonly page = input.required<number, NumberInput>({\n alias: 'ngpPaginationButtonPage',\n transform: numberAttribute,\n });\n\n /**\n * Whether the button is disabled.\n */\n readonly disabled = input<boolean, BooleanInput>(false, {\n alias: 'ngpPaginationButtonDisabled',\n transform: booleanAttribute,\n });\n\n protected readonly state = ngpPaginationButton({\n page: this.page,\n disabled: this.disabled,\n });\n\n /**\n * Go to the page this button represents.\n */\n goToPage(): void {\n return this.state.goToPage();\n }\n}\n","import { computed, signal, Signal } from '@angular/core';\nimport { ngpButton } from 'ng-primitives/button';\nimport { injectElementRef } from 'ng-primitives/internal';\nimport { attrBinding, createPrimitive, dataBinding, listener } from 'ng-primitives/state';\nimport { injectPaginationState } from '../pagination/pagination-state';\n\nexport interface NgpPaginationFirstState {\n /**\n * Whether the button is disabled, accounting for the parent pagination state.\n */\n readonly disabled: Signal<boolean>;\n /**\n * Go to the first page.\n */\n goToFirstPage(): void;\n}\n\nexport interface NgpPaginationFirstProps {\n /**\n * Whether the button is disabled.\n */\n readonly disabled?: Signal<boolean>;\n}\n\nexport const [\n NgpPaginationFirstStateToken,\n ngpPaginationFirst,\n injectPaginationFirstState,\n providePaginationFirstState,\n] = createPrimitive(\n 'NgpPaginationFirst',\n ({ disabled: _disabled = signal<boolean>(false) }: NgpPaginationFirstProps) => {\n const elementRef = injectElementRef();\n const paginationState = injectPaginationState();\n\n const disabled = computed(\n () => _disabled() || paginationState().disabled() || paginationState().firstPage(),\n );\n\n // Setup interactions\n ngpButton({ disabled: disabled });\n\n // Host binding\n attrBinding(elementRef, 'tabindex', () => (disabled() ? -1 : 0));\n dataBinding(elementRef, 'data-first-page', () => (paginationState().firstPage() ? '' : null));\n\n // Listener\n listener(elementRef, 'click', goToFirstPage);\n listener(elementRef, 'keydown.enter', handleOnEnter);\n listener(elementRef, 'keydown.space', handleOnEnter);\n\n function goToFirstPage(): void {\n if (disabled()) {\n return;\n }\n\n paginationState().goToPage(1);\n }\n\n function handleOnEnter(event: Event): void {\n event.preventDefault();\n event.stopPropagation();\n goToFirstPage();\n }\n\n return {\n disabled,\n goToFirstPage,\n } satisfies NgpPaginationFirstState;\n },\n);\n","import { BooleanInput } from '@angular/cdk/coercion';\nimport { booleanAttribute, Directive, input } from '@angular/core';\nimport { ngpPaginationFirst } from './pagination-first-state';\n\n/**\n * The `NgpPaginationFirst` directive is used to create a pagination button that navigates to the first page.\n */\n@Directive({\n selector: '[ngpPaginationFirst]',\n exportAs: 'ngpPaginationFirst',\n})\nexport class NgpPaginationFirst {\n /**\n * Whether the button is disabled.\n */\n readonly disabled = input<boolean, BooleanInput>(false, {\n alias: 'ngpPaginationFirstDisabled',\n transform: booleanAttribute,\n });\n\n protected readonly state = ngpPaginationFirst({\n disabled: this.disabled,\n });\n\n /**\n * Go to the first page.\n */\n goToFirstPage() {\n return this.state.goToFirstPage();\n }\n}\n","import { computed, signal, Signal } from '@angular/core';\nimport { ngpButton } from 'ng-primitives/button';\nimport { injectElementRef } from 'ng-primitives/internal';\nimport { attrBinding, createPrimitive, dataBinding, listener } from 'ng-primitives/state';\nimport { injectPaginationState } from '../pagination/pagination-state';\n\nexport interface NgpPaginationLastState {\n /** Whether the button is disabled, accounting for the parent pagination state. */\n readonly disabled: Signal<boolean>;\n /** Go to the last page. */\n goToLastPage(): void;\n}\n\nexport interface NgpPaginationLastProps {\n /** Whether the button is disabled. */\n readonly disabled?: Signal<boolean>;\n}\n\nexport const [\n NgpPaginationLastStateToken,\n ngpPaginationLast,\n injectPaginationLastState,\n providePaginationLastState,\n] = createPrimitive(\n 'NgpPaginationLast',\n ({ disabled: _disabled = signal<boolean>(false) }: NgpPaginationLastProps) => {\n const elementRef = injectElementRef();\n const paginationState = injectPaginationState();\n\n const disabled = computed(\n () => _disabled() || paginationState().disabled() || paginationState().lastPage(),\n );\n\n // Setup interactions\n ngpButton({ disabled: disabled });\n\n // Host binding\n attrBinding(elementRef, 'tabindex', () => (disabled() ? -1 : 0));\n dataBinding(elementRef, 'data-last-page', () => (paginationState().lastPage() ? '' : null));\n\n // Listener\n listener(elementRef, 'click', goToLastPage);\n listener(elementRef, 'keydown.enter', handleOnEnter);\n listener(elementRef, 'keydown.space', handleOnEnter);\n\n function goToLastPage(): void {\n if (disabled()) {\n return;\n }\n\n paginationState().goToPage(paginationState().pageCount());\n }\n\n function handleOnEnter(event: Event): void {\n event.preventDefault();\n event.stopPropagation();\n goToLastPage();\n }\n\n return {\n disabled,\n goToLastPage,\n } satisfies NgpPaginationLastState;\n },\n);\n","import { BooleanInput } from '@angular/cdk/coercion';\nimport { booleanAttribute, Directive, input } from '@angular/core';\nimport { ngpPaginationLast } from './pagination-last-state';\n\n/**\n * The `NgpPaginationLast` directive is used to create a pagination button that navigates to the last page.\n */\n@Directive({\n selector: '[ngpPaginationLast]',\n exportAs: 'ngpPaginationLast',\n})\nexport class NgpPaginationLast {\n /**\n * Whether the button is disabled.\n */\n readonly disabled = input<boolean, BooleanInput>(false, {\n alias: 'ngpPaginationLastDisabled',\n transform: booleanAttribute,\n });\n\n protected readonly state = ngpPaginationLast({\n disabled: this.disabled,\n });\n\n /**\n * Go to the last page.\n */\n goToLastPage(): void {\n this.state.goToLastPage();\n }\n}\n","import { computed, Signal, signal } from '@angular/core';\nimport { ngpButton } from 'ng-primitives/button';\nimport { injectElementRef } from 'ng-primitives/internal';\nimport { attrBinding, createPrimitive, dataBinding, listener } from 'ng-primitives/state';\nimport { injectPaginationState } from '../pagination/pagination-state';\n\nexport interface NgpPaginationNextState {\n /** Whether the button is disabled, accounting for the parent pagination state. */\n readonly disabled: Signal<boolean>;\n /** Go to the next page. */\n goToNextPage(): void;\n}\n\nexport interface NgpPaginationNextProps {\n /** Whether the button is disabled */\n readonly disabled?: Signal<boolean>;\n}\n\nexport const [\n NgpPaginationNextStateToken,\n ngpPaginationNext,\n injectPaginationNextState,\n providePaginationNextState,\n] = createPrimitive(\n 'NgpPaginationNext',\n ({ disabled: _disabled = signal<boolean>(false) }: NgpPaginationNextProps) => {\n const elementRef = injectElementRef();\n const paginationState = injectPaginationState();\n\n const disabled = computed(\n () => _disabled() || paginationState().disabled() || paginationState().lastPage(),\n );\n\n // Setup interactions\n ngpButton({ disabled: disabled });\n\n // Host binding\n attrBinding(elementRef, 'tabindex', () => (disabled() ? -1 : 0));\n dataBinding(elementRef, 'data-last-page', () => (paginationState().lastPage() ? '' : null));\n\n // Listener\n listener(elementRef, 'click', goToNextPage);\n listener(elementRef, 'keydown.enter', handleOnEnter);\n listener(elementRef, 'keydown.space', handleOnEnter);\n\n function goToNextPage(): void {\n if (disabled()) {\n return;\n }\n\n paginationState().goToPage(paginationState().page() + 1);\n }\n\n function handleOnEnter(event: Event): void {\n event.preventDefault();\n event.stopPropagation();\n goToNextPage();\n }\n\n return {\n disabled,\n goToNextPage,\n } satisfies NgpPaginationNextState;\n },\n);\n","import { BooleanInput } from '@angular/cdk/coercion';\nimport { booleanAttribute, Directive, input } from '@angular/core';\nimport { ngpPaginationNext } from './pagination-next-state';\n\n/**\n * The `NgpPaginationNext` directive is used to create a pagination button that navigates to the next page.\n */\n@Directive({\n selector: '[ngpPaginationNext]',\n exportAs: 'ngpPaginationNext',\n})\nexport class NgpPaginationNext {\n /**\n * Whether the button is disabled.\n */\n readonly disabled = input<boolean, BooleanInput>(false, {\n alias: 'ngpPaginationNextDisabled',\n transform: booleanAttribute,\n });\n\n protected readonly state = ngpPaginationNext({\n disabled: this.disabled,\n });\n\n /**\n * Go to the next page.\n */\n goToNextPage(): void {\n return this.state.goToNextPage();\n }\n}\n","import { computed, signal, Signal } from '@angular/core';\nimport { ngpButton } from 'ng-primitives/button';\nimport { injectElementRef } from 'ng-primitives/internal';\nimport { attrBinding, createPrimitive, dataBinding, listener } from 'ng-primitives/state';\nimport { injectPaginationState } from '../pagination/pagination-state';\n\nexport interface NgpPaginationPreviousState {\n /**\n * Whether the button is disabled, accounting for the parent pagination state.\n */\n readonly disabled: Signal<boolean>;\n /**\n * Go to the previous page.\n */\n goToPreviousPage(): void;\n}\n\nexport interface NgpPaginationPreviousProps {\n /**\n * Whether the button is disabled.\n */\n readonly disabled?: Signal<boolean>;\n}\n\nexport const [\n NgpPaginationPreviousStateToken,\n ngpPaginationPrevious,\n injectPaginationPreviousState,\n providePaginationPreviousState,\n] = createPrimitive(\n 'NgpPaginationPrevious',\n ({ disabled: _disabled = signal<boolean>(false) }: NgpPaginationPreviousProps) => {\n const elementRef = injectElementRef();\n const paginationState = injectPaginationState();\n\n const disabled = computed(\n () => _disabled() || paginationState().disabled() || paginationState().firstPage(),\n );\n\n // Setup interactions\n ngpButton({ disabled: disabled });\n\n // Host binding\n attrBinding(elementRef, 'tabindex', () => (disabled() ? -1 : 0));\n dataBinding(elementRef, 'data-first-page', () => (paginationState().firstPage() ? '' : null));\n\n // Listener\n listener(elementRef, 'click', goToPreviousPage);\n listener(elementRef, 'keydown.enter', handleOnEnter);\n listener(elementRef, 'keydown.space', handleOnEnter);\n\n function goToPreviousPage(): void {\n if (disabled()) {\n return;\n }\n\n paginationState().goToPage(paginationState().page() - 1);\n }\n\n function handleOnEnter(event: Event): void {\n event.preventDefault();\n event.stopPropagation();\n goToPreviousPage();\n }\n\n return {\n disabled,\n goToPreviousPage,\n } satisfies NgpPaginationPreviousState;\n },\n);\n","import { BooleanInput } from '@angular/cdk/coercion';\nimport { booleanAttribute, Directive, input } from '@angular/core';\nimport { ngpPaginationPrevious } from './pagination-previous-state';\n\n/**\n * The `NgpPaginationPrevious` directive is used to create a pagination button that navigates to the previous page.\n */\n@Directive({\n selector: '[ngpPaginationPrevious]',\n exportAs: 'ngpPaginationPrevious',\n})\nexport class NgpPaginationPrevious {\n /**\n * Whether the button is disabled.\n */\n readonly disabled = input<boolean, BooleanInput>(false, {\n alias: 'ngpPaginationPreviousDisabled',\n transform: booleanAttribute,\n });\n\n protected readonly state = ngpPaginationPrevious({\n disabled: this.disabled,\n });\n\n /**\n * Go to the previous page.\n */\n goToPreviousPage() {\n return this.state.goToPreviousPage();\n }\n}\n","import { BooleanInput, NumberInput } from '@angular/cdk/coercion';\nimport { booleanAttribute, Directive, input, numberAttribute, output } from '@angular/core';\nimport { ngpPagination, providePaginationState } from './pagination-state';\n\n/**\n * The `NgpPagination` directive is used to create a pagination control.\n */\n@Directive({\n selector: '[ngpPagination]',\n exportAs: 'ngpPagination',\n providers: [providePaginationState()],\n})\nexport class NgpPagination {\n /**\n * The currently selected page. Leave unset for uncontrolled usage, where the\n * internal state is seeded from `defaultPage`.\n */\n readonly page = input<number | undefined, NumberInput>(undefined, {\n alias: 'ngpPaginationPage',\n transform: numberAttribute,\n });\n\n /**\n * The default page for uncontrolled usage.\n * @default 1\n */\n readonly defaultPage = input<number, NumberInput>(1, {\n alias: 'ngpPaginationDefaultPage',\n transform: numberAttribute,\n });\n\n /**\n * The event that is fired when the page changes.\n */\n readonly pageChange = output<number>({\n alias: 'ngpPaginationPageChange',\n });\n\n /**\n * The total number of pages.\n */\n readonly pageCount = input<number, NumberInput>(0, {\n alias: 'ngpPaginationPageCount',\n transform: numberAttribute,\n });\n\n /**\n * Whether the pagination is disabled.\n */\n readonly disabled = input<boolean, BooleanInput>(false, {\n alias: 'ngpPaginationDisabled',\n transform: booleanAttribute,\n });\n\n /**\n * The control state for the pagination.\n * @internal\n */\n protected readonly state = ngpPagination({\n page: this.page,\n defaultPage: this.defaultPage,\n pageCount: this.pageCount,\n disabled: this.disabled,\n onPageChange: (value: number) => this.pageChange.emit(value),\n });\n\n /**\n * Go to the specified page.\n * @param page The page to go to.\n */\n goToPage(page: number) {\n return this.state.goToPage(page);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAmEO,MAAM,CACX,uBAAuB,EACvB,aAAa,EACb,qBAAqB,EACrB,sBAAsB,EACvB,GAAG,eAAe,CACjB,eAAe,EACf,CAAC,EACC,IAAI,EAAE,KAAK,GAAG,MAAM,CAAqB,SAAS,CAAC,EACnD,WAAW,EAAE,Y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A,aAAA,EAAA,UAAA,EAAA,0BAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,iBAAA,EAAA,WAAA,EAAA,UAAA,EAAA,wBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,QAAA,EAAA,EAAA,iBAAA,EAAA,UAAA,EAAA,UAAA,EAAA,uBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,OAAA,EAAA,EAAA,UAAA,EAAA,yBAAA,EAAA,EAAA,SAAA,EAFb,CAAC,sBAAsB,EAAE,CAAC,EAAA,QAAA,EAAA,CAAA,eAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAE1B,aAAa,EAAA,UAAA,EAAA,CAAA;kBALzB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,iBAAiB;AAC3B,oBAAA,QAAQ,EAAE,eAAe;AACzB,oBAAA,SAAS,EAAE,CAAC,sBAAsB,EAAE,CAAC;AACtC,iBAAA;;;ACXD;;AAEG;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ngpOverlayArrow, createOverlay, coerceOffset, coerceFlip, coerceShift, dismissGuardAttribute, injectOverlay } from 'ng-primitives/portal';
|
|
1
|
+
import { ngpOverlayArrow, createOverlay, coerceOffset, coerceFlip, coerceShift, dismissGuardAttribute, injectOverlay, provideControlContainerIsolation } from 'ng-primitives/portal';
|
|
2
2
|
export { injectOverlayContext as injectPopoverContext } from 'ng-primitives/portal';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
4
|
import { InjectionToken, inject, input, numberAttribute, Directive, ViewContainerRef, Injector, signal, computed, booleanAttribute, output } from '@angular/core';
|
|
@@ -53,11 +53,8 @@ class NgpPopoverArrow {
|
|
|
53
53
|
* Padding between the arrow and the edges of the popover.
|
|
54
54
|
* This prevents the arrow from overflowing the rounded corners.
|
|
55
55
|
*/
|
|
56
|
-
this.padding = input(undefined, ...(ngDevMode ?
|
|
57
|
-
|
|
58
|
-
alias: 'ngpPopoverArrowPadding',
|
|
59
|
-
transform: numberAttribute,
|
|
60
|
-
}]));
|
|
56
|
+
this.padding = input(undefined, { ...(ngDevMode ? { debugName: "padding" } : /* istanbul ignore next */ {}), alias: 'ngpPopoverArrowPadding',
|
|
57
|
+
transform: numberAttribute });
|
|
61
58
|
this.state = ngpPopoverArrow({ padding: this.padding });
|
|
62
59
|
}
|
|
63
60
|
/**
|
|
@@ -67,10 +64,10 @@ class NgpPopoverArrow {
|
|
|
67
64
|
setPadding(value) {
|
|
68
65
|
this.state.setPadding(value);
|
|
69
66
|
}
|
|
70
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
71
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
67
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: NgpPopoverArrow, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
68
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.14", type: NgpPopoverArrow, isStandalone: true, selector: "[ngpPopoverArrow]", inputs: { padding: { classPropertyName: "padding", publicName: "ngpPopoverArrowPadding", isSignal: true, isRequired: false, transformFunction: null } }, providers: [providePopoverArrowState()], exportAs: ["ngpPopoverArrow"], ngImport: i0 }); }
|
|
72
69
|
}
|
|
73
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
70
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: NgpPopoverArrow, decorators: [{
|
|
74
71
|
type: Directive,
|
|
75
72
|
args: [{
|
|
76
73
|
selector: '[ngpPopoverArrow]',
|
|
@@ -84,8 +81,8 @@ const [NgpPopoverTriggerStateToken, ngpPopoverTrigger, _injectPopoverTriggerStat
|
|
|
84
81
|
const viewContainerRef = inject(ViewContainerRef);
|
|
85
82
|
const injector = inject(Injector);
|
|
86
83
|
const popover = controlled(_popover);
|
|
87
|
-
const overlay = signal(null, ...(ngDevMode ? [{ debugName: "overlay" }] : []));
|
|
88
|
-
const open = computed(() => overlay()?.isOpen() ?? false, ...(ngDevMode ? [{ debugName: "open" }] : []));
|
|
84
|
+
const overlay = signal(null, ...(ngDevMode ? [{ debugName: "overlay" }] : /* istanbul ignore next */ []));
|
|
85
|
+
const open = computed(() => overlay()?.isOpen() ?? false, ...(ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []));
|
|
89
86
|
// Host binding
|
|
90
87
|
attrBinding(elementRef, 'aria-expanded', () => (open() ? 'true' : 'false'));
|
|
91
88
|
attrBinding(elementRef, 'aria-describedby', () => overlay()?.ariaDescribedBy());
|
|
@@ -207,139 +204,97 @@ class NgpPopoverTrigger {
|
|
|
207
204
|
/**
|
|
208
205
|
* Access the popover template ref.
|
|
209
206
|
*/
|
|
210
|
-
this.popover = input(undefined, ...(ngDevMode ?
|
|
211
|
-
alias: 'ngpPopoverTrigger',
|
|
212
|
-
}]));
|
|
207
|
+
this.popover = input(undefined, { ...(ngDevMode ? { debugName: "popover" } : /* istanbul ignore next */ {}), alias: 'ngpPopoverTrigger' });
|
|
213
208
|
/**
|
|
214
209
|
* Define if the trigger should be disabled.
|
|
215
210
|
* @default false
|
|
216
211
|
*/
|
|
217
|
-
this.disabled = input(false, ...(ngDevMode ?
|
|
218
|
-
|
|
219
|
-
alias: 'ngpPopoverTriggerDisabled',
|
|
220
|
-
transform: booleanAttribute,
|
|
221
|
-
}]));
|
|
212
|
+
this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), alias: 'ngpPopoverTriggerDisabled',
|
|
213
|
+
transform: booleanAttribute });
|
|
222
214
|
/**
|
|
223
215
|
* Define the placement of the popover relative to the trigger.
|
|
224
216
|
* @default 'top'
|
|
225
217
|
*/
|
|
226
|
-
this.placement = input(this.config.placement, ...(ngDevMode ?
|
|
227
|
-
alias: 'ngpPopoverTriggerPlacement',
|
|
228
|
-
}]));
|
|
218
|
+
this.placement = input(this.config.placement, { ...(ngDevMode ? { debugName: "placement" } : /* istanbul ignore next */ {}), alias: 'ngpPopoverTriggerPlacement' });
|
|
229
219
|
/**
|
|
230
220
|
* Define the offset of the popover relative to the trigger.
|
|
231
221
|
* Can be a number (applies to mainAxis) or an object with mainAxis, crossAxis, and alignmentAxis.
|
|
232
222
|
* @default 0
|
|
233
223
|
*/
|
|
234
|
-
this.offset = input(this.config.offset, ...(ngDevMode ?
|
|
235
|
-
|
|
236
|
-
alias: 'ngpPopoverTriggerOffset',
|
|
237
|
-
transform: coerceOffset,
|
|
238
|
-
}]));
|
|
224
|
+
this.offset = input(this.config.offset, { ...(ngDevMode ? { debugName: "offset" } : /* istanbul ignore next */ {}), alias: 'ngpPopoverTriggerOffset',
|
|
225
|
+
transform: coerceOffset });
|
|
239
226
|
/**
|
|
240
227
|
* Define the delay before the popover is displayed.
|
|
241
228
|
* @default 0
|
|
242
229
|
*/
|
|
243
|
-
this.showDelay = input(this.config.showDelay, ...(ngDevMode ?
|
|
244
|
-
|
|
245
|
-
alias: 'ngpPopoverTriggerShowDelay',
|
|
246
|
-
transform: numberAttribute,
|
|
247
|
-
}]));
|
|
230
|
+
this.showDelay = input(this.config.showDelay, { ...(ngDevMode ? { debugName: "showDelay" } : /* istanbul ignore next */ {}), alias: 'ngpPopoverTriggerShowDelay',
|
|
231
|
+
transform: numberAttribute });
|
|
248
232
|
/**
|
|
249
233
|
* Define the delay before the popover is hidden.
|
|
250
234
|
* @default 0
|
|
251
235
|
*/
|
|
252
|
-
this.hideDelay = input(this.config.hideDelay, ...(ngDevMode ?
|
|
253
|
-
|
|
254
|
-
alias: 'ngpPopoverTriggerHideDelay',
|
|
255
|
-
transform: numberAttribute,
|
|
256
|
-
}]));
|
|
236
|
+
this.hideDelay = input(this.config.hideDelay, { ...(ngDevMode ? { debugName: "hideDelay" } : /* istanbul ignore next */ {}), alias: 'ngpPopoverTriggerHideDelay',
|
|
237
|
+
transform: numberAttribute });
|
|
257
238
|
/**
|
|
258
239
|
* Define whether the popover should flip when there is not enough space for the popover.
|
|
259
240
|
* Can be a boolean to enable/disable, or an object with padding and fallbackPlacements options.
|
|
260
241
|
* @default true
|
|
261
242
|
*/
|
|
262
|
-
this.flip = input(this.config.flip, ...(ngDevMode ?
|
|
263
|
-
|
|
264
|
-
alias: 'ngpPopoverTriggerFlip',
|
|
265
|
-
transform: coerceFlip,
|
|
266
|
-
}]));
|
|
243
|
+
this.flip = input(this.config.flip, { ...(ngDevMode ? { debugName: "flip" } : /* istanbul ignore next */ {}), alias: 'ngpPopoverTriggerFlip',
|
|
244
|
+
transform: coerceFlip });
|
|
267
245
|
/**
|
|
268
246
|
* Configure shift behavior to keep the popover in view.
|
|
269
247
|
* Can be a boolean to enable/disable, or an object with padding and limiter options.
|
|
270
248
|
* @default undefined (enabled by default in overlay)
|
|
271
249
|
*/
|
|
272
|
-
this.shift = input(this.config.shift, ...(ngDevMode ?
|
|
273
|
-
|
|
274
|
-
alias: 'ngpPopoverTriggerShift',
|
|
275
|
-
transform: coerceShift,
|
|
276
|
-
}]));
|
|
250
|
+
this.shift = input(this.config.shift, { ...(ngDevMode ? { debugName: "shift" } : /* istanbul ignore next */ {}), alias: 'ngpPopoverTriggerShift',
|
|
251
|
+
transform: coerceShift });
|
|
277
252
|
/**
|
|
278
253
|
* Define the container in which the popover should be attached.
|
|
279
254
|
* @default document.body
|
|
280
255
|
*/
|
|
281
|
-
this.container = input(this.config.container, ...(ngDevMode ?
|
|
282
|
-
alias: 'ngpPopoverTriggerContainer',
|
|
283
|
-
}]));
|
|
256
|
+
this.container = input(this.config.container, { ...(ngDevMode ? { debugName: "container" } : /* istanbul ignore next */ {}), alias: 'ngpPopoverTriggerContainer' });
|
|
284
257
|
/**
|
|
285
258
|
* Define whether the popover should close when clicking outside of it, or a guard function.
|
|
286
259
|
* @default true
|
|
287
260
|
*/
|
|
288
|
-
this.closeOnOutsideClick = input(this.config.closeOnOutsideClick, ...(ngDevMode ?
|
|
289
|
-
|
|
290
|
-
alias: 'ngpPopoverTriggerCloseOnOutsideClick',
|
|
291
|
-
transform: dismissGuardAttribute,
|
|
292
|
-
}]));
|
|
261
|
+
this.closeOnOutsideClick = input(this.config.closeOnOutsideClick, { ...(ngDevMode ? { debugName: "closeOnOutsideClick" } : /* istanbul ignore next */ {}), alias: 'ngpPopoverTriggerCloseOnOutsideClick',
|
|
262
|
+
transform: dismissGuardAttribute });
|
|
293
263
|
/**
|
|
294
264
|
* Define whether the popover should close when the escape key is pressed, or a guard function.
|
|
295
265
|
* @default true
|
|
296
266
|
*/
|
|
297
|
-
this.closeOnEscape = input(this.config.closeOnEscape, ...(ngDevMode ?
|
|
298
|
-
|
|
299
|
-
alias: 'ngpPopoverTriggerCloseOnEscape',
|
|
300
|
-
transform: dismissGuardAttribute,
|
|
301
|
-
}]));
|
|
267
|
+
this.closeOnEscape = input(this.config.closeOnEscape, { ...(ngDevMode ? { debugName: "closeOnEscape" } : /* istanbul ignore next */ {}), alias: 'ngpPopoverTriggerCloseOnEscape',
|
|
268
|
+
transform: dismissGuardAttribute });
|
|
302
269
|
/**
|
|
303
270
|
* Defines how the popover behaves when the window is scrolled.
|
|
304
271
|
* @default 'reposition'
|
|
305
272
|
*/
|
|
306
|
-
this.scrollBehavior = input(this.config.scrollBehavior, ...(ngDevMode ?
|
|
307
|
-
alias: 'ngpPopoverTriggerScrollBehavior',
|
|
308
|
-
}]));
|
|
273
|
+
this.scrollBehavior = input(this.config.scrollBehavior, { ...(ngDevMode ? { debugName: "scrollBehavior" } : /* istanbul ignore next */ {}), alias: 'ngpPopoverTriggerScrollBehavior' });
|
|
309
274
|
/**
|
|
310
275
|
* Provide context to the popover. This can be used to pass data to the popover content.
|
|
311
276
|
*/
|
|
312
|
-
this.context = input(undefined, ...(ngDevMode ?
|
|
313
|
-
alias: 'ngpPopoverTriggerContext',
|
|
314
|
-
}]));
|
|
277
|
+
this.context = input(undefined, { ...(ngDevMode ? { debugName: "context" } : /* istanbul ignore next */ {}), alias: 'ngpPopoverTriggerContext' });
|
|
315
278
|
/**
|
|
316
279
|
* Define an anchor element for positioning the popover.
|
|
317
280
|
* If provided, the popover will be positioned relative to this element instead of the trigger.
|
|
318
281
|
*/
|
|
319
|
-
this.anchor = input(null, ...(ngDevMode ?
|
|
320
|
-
alias: 'ngpPopoverTriggerAnchor',
|
|
321
|
-
}]));
|
|
282
|
+
this.anchor = input(null, { ...(ngDevMode ? { debugName: "anchor" } : /* istanbul ignore next */ {}), alias: 'ngpPopoverTriggerAnchor' });
|
|
322
283
|
/**
|
|
323
284
|
* Define whether to track the trigger element position on every animation frame.
|
|
324
285
|
* Useful for moving elements like slider thumbs.
|
|
325
286
|
* @default false
|
|
326
287
|
*/
|
|
327
|
-
this.trackPosition = input(this.config.trackPosition, ...(ngDevMode ?
|
|
328
|
-
|
|
329
|
-
alias: 'ngpPopoverTriggerTrackPosition',
|
|
330
|
-
transform: booleanAttribute,
|
|
331
|
-
}]));
|
|
288
|
+
this.trackPosition = input(this.config.trackPosition, { ...(ngDevMode ? { debugName: "trackPosition" } : /* istanbul ignore next */ {}), alias: 'ngpPopoverTriggerTrackPosition',
|
|
289
|
+
transform: booleanAttribute });
|
|
332
290
|
/**
|
|
333
291
|
* Define the cooldown duration in milliseconds.
|
|
334
292
|
* When moving from one popover to another within this duration,
|
|
335
293
|
* the showDelay is skipped for the new popover.
|
|
336
294
|
* @default 0
|
|
337
295
|
*/
|
|
338
|
-
this.cooldown = input(this.config.cooldown, ...(ngDevMode ?
|
|
339
|
-
|
|
340
|
-
alias: 'ngpPopoverTriggerCooldown',
|
|
341
|
-
transform: numberAttribute,
|
|
342
|
-
}]));
|
|
296
|
+
this.cooldown = input(this.config.cooldown, { ...(ngDevMode ? { debugName: "cooldown" } : /* istanbul ignore next */ {}), alias: 'ngpPopoverTriggerCooldown',
|
|
297
|
+
transform: numberAttribute });
|
|
343
298
|
/**
|
|
344
299
|
* Event emitted when the popover open state changes.
|
|
345
300
|
*/
|
|
@@ -387,10 +342,10 @@ class NgpPopoverTrigger {
|
|
|
387
342
|
hide(origin = 'program') {
|
|
388
343
|
return this.state.hide(origin);
|
|
389
344
|
}
|
|
390
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
391
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
345
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: NgpPopoverTrigger, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
346
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.14", type: NgpPopoverTrigger, isStandalone: true, selector: "[ngpPopoverTrigger]", inputs: { popover: { classPropertyName: "popover", publicName: "ngpPopoverTrigger", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "ngpPopoverTriggerDisabled", isSignal: true, isRequired: false, transformFunction: null }, placement: { classPropertyName: "placement", publicName: "ngpPopoverTriggerPlacement", isSignal: true, isRequired: false, transformFunction: null }, offset: { classPropertyName: "offset", publicName: "ngpPopoverTriggerOffset", isSignal: true, isRequired: false, transformFunction: null }, showDelay: { classPropertyName: "showDelay", publicName: "ngpPopoverTriggerShowDelay", isSignal: true, isRequired: false, transformFunction: null }, hideDelay: { classPropertyName: "hideDelay", publicName: "ngpPopoverTriggerHideDelay", isSignal: true, isRequired: false, transformFunction: null }, flip: { classPropertyName: "flip", publicName: "ngpPopoverTriggerFlip", isSignal: true, isRequired: false, transformFunction: null }, shift: { classPropertyName: "shift", publicName: "ngpPopoverTriggerShift", isSignal: true, isRequired: false, transformFunction: null }, container: { classPropertyName: "container", publicName: "ngpPopoverTriggerContainer", isSignal: true, isRequired: false, transformFunction: null }, closeOnOutsideClick: { classPropertyName: "closeOnOutsideClick", publicName: "ngpPopoverTriggerCloseOnOutsideClick", isSignal: true, isRequired: false, transformFunction: null }, closeOnEscape: { classPropertyName: "closeOnEscape", publicName: "ngpPopoverTriggerCloseOnEscape", isSignal: true, isRequired: false, transformFunction: null }, scrollBehavior: { classPropertyName: "scrollBehavior", publicName: "ngpPopoverTriggerScrollBehavior", isSignal: true, isRequired: false, transformFunction: null }, context: { classPropertyName: "context", publicName: "ngpPopoverTriggerContext", isSignal: true, isRequired: false, transformFunction: null }, anchor: { classPropertyName: "anchor", publicName: "ngpPopoverTriggerAnchor", isSignal: true, isRequired: false, transformFunction: null }, trackPosition: { classPropertyName: "trackPosition", publicName: "ngpPopoverTriggerTrackPosition", isSignal: true, isRequired: false, transformFunction: null }, cooldown: { classPropertyName: "cooldown", publicName: "ngpPopoverTriggerCooldown", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { openChange: "ngpPopoverTriggerOpenChange" }, providers: [providePopoverTriggerState({ inherit: false })], exportAs: ["ngpPopoverTrigger"], ngImport: i0 }); }
|
|
392
347
|
}
|
|
393
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
348
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: NgpPopoverTrigger, decorators: [{
|
|
394
349
|
type: Directive,
|
|
395
350
|
args: [{
|
|
396
351
|
selector: '[ngpPopoverTrigger]',
|
|
@@ -430,21 +385,21 @@ class NgpPopover {
|
|
|
430
385
|
/**
|
|
431
386
|
* The unique id of the tooltip.
|
|
432
387
|
*/
|
|
433
|
-
this.id = input('', ...(ngDevMode ? [{ debugName: "id" }] : []));
|
|
388
|
+
this.id = input('', ...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
|
|
434
389
|
this.state = ngpPopover({
|
|
435
390
|
id: this.id,
|
|
436
391
|
});
|
|
437
392
|
}
|
|
438
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
439
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
393
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: NgpPopover, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
394
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.14", type: NgpPopover, isStandalone: true, selector: "[ngpPopover]", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, providers: [providePopoverState(), provideControlContainerIsolation()], exportAs: ["ngpPopover"], hostDirectives: [{ directive: i1.NgpFocusTrap }], ngImport: i0 }); }
|
|
440
395
|
}
|
|
441
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
396
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: NgpPopover, decorators: [{
|
|
442
397
|
type: Directive,
|
|
443
398
|
args: [{
|
|
444
399
|
selector: '[ngpPopover]',
|
|
445
400
|
exportAs: 'ngpPopover',
|
|
446
401
|
hostDirectives: [NgpFocusTrap],
|
|
447
|
-
providers: [providePopoverState()],
|
|
402
|
+
providers: [providePopoverState(), provideControlContainerIsolation()],
|
|
448
403
|
}]
|
|
449
404
|
}], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }] } });
|
|
450
405
|
|