@exhaustive-ui/core 22.0.0-alpha.9 → 22.0.0-rc.1
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/exhaustive-ui-core-accordion.mjs +5 -5
- package/fesm2022/exhaustive-ui-core-accordion.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-api.mjs +3 -3
- package/fesm2022/exhaustive-ui-core-api.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-autocomplete.mjs +25 -14
- package/fesm2022/exhaustive-ui-core-autocomplete.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-avatar.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-avatar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-avatargroup.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-avatargroup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-badge.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-badge.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-basecomponent.mjs +34 -4
- package/fesm2022/exhaustive-ui-core-basecomponent.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-baseeditableholder.mjs +4 -2
- package/fesm2022/exhaustive-ui-core-baseeditableholder.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-blockui.mjs +9 -2
- package/fesm2022/exhaustive-ui-core-blockui.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-breadcrumb.mjs +13 -6
- package/fesm2022/exhaustive-ui-core-breadcrumb.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-button.mjs +35 -13
- package/fesm2022/exhaustive-ui-core-button.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-card.mjs +2 -6
- package/fesm2022/exhaustive-ui-core-card.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-carousel.mjs +9 -4
- package/fesm2022/exhaustive-ui-core-carousel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-cascadeselect.mjs +12 -11
- package/fesm2022/exhaustive-ui-core-cascadeselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-chart.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-chart.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-checkbox.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-checkbox.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-chip.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-chip.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-colorpicker.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-colorpicker.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-config.mjs +3 -1
- package/fesm2022/exhaustive-ui-core-config.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-confirmdialog.mjs +65 -26
- package/fesm2022/exhaustive-ui-core-confirmdialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-confirmpopup.mjs +28 -5
- package/fesm2022/exhaustive-ui-core-confirmpopup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-contextmenu.mjs +15 -8
- package/fesm2022/exhaustive-ui-core-contextmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dataview.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-dataview.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-datepicker.mjs +188 -95
- package/fesm2022/exhaustive-ui-core-datepicker.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dialog.mjs +31 -13
- package/fesm2022/exhaustive-ui-core-dialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-divider.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-divider.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dock.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-dock.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dom.mjs +3 -1
- package/fesm2022/exhaustive-ui-core-dom.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-drawer.mjs +24 -6
- package/fesm2022/exhaustive-ui-core-drawer.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs +9 -5
- package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-editor.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-editor.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-fieldset.mjs +4 -4
- package/fesm2022/exhaustive-ui-core-fieldset.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-fileupload.mjs +25 -14
- package/fesm2022/exhaustive-ui-core-fileupload.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-floatlabel.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-floatlabel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-focustrap.mjs +0 -2
- package/fesm2022/exhaustive-ui-core-focustrap.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-galleria.mjs +5 -5
- package/fesm2022/exhaustive-ui-core-galleria.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-iconfield.mjs +18 -3
- package/fesm2022/exhaustive-ui-core-iconfield.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-image.mjs +12 -4
- package/fesm2022/exhaustive-ui-core-image.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-imagecompare.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-imagecompare.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inplace.mjs +3 -3
- package/fesm2022/exhaustive-ui-core-inplace.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputgroup.mjs +11 -2
- package/fesm2022/exhaustive-ui-core-inputgroup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputicon.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-inputicon.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputmask.mjs +31 -7
- package/fesm2022/exhaustive-ui-core-inputmask.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputnumber.mjs +85 -25
- package/fesm2022/exhaustive-ui-core-inputnumber.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputotp.mjs +9 -3
- package/fesm2022/exhaustive-ui-core-inputotp.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputtext.mjs +8 -9
- package/fesm2022/exhaustive-ui-core-inputtext.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-keyfilter.mjs +27 -17
- package/fesm2022/exhaustive-ui-core-keyfilter.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-knob.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-knob.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-listbox.mjs +17 -6
- package/fesm2022/exhaustive-ui-core-listbox.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-megamenu.mjs +4 -3
- package/fesm2022/exhaustive-ui-core-megamenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-menu.mjs +15 -4
- package/fesm2022/exhaustive-ui-core-menu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-menubar.mjs +58 -14
- package/fesm2022/exhaustive-ui-core-menubar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-message.mjs +2 -4
- package/fesm2022/exhaustive-ui-core-message.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-metergroup.mjs +7 -7
- package/fesm2022/exhaustive-ui-core-metergroup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-multiselect.mjs +38 -27
- package/fesm2022/exhaustive-ui-core-multiselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-orderlist.mjs +19 -6
- package/fesm2022/exhaustive-ui-core-orderlist.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-organizationchart.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-organizationchart.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-overlay.mjs +6 -4
- package/fesm2022/exhaustive-ui-core-overlay.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-overlaybadge.mjs +4 -4
- package/fesm2022/exhaustive-ui-core-overlaybadge.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-paginator.mjs +12 -5
- package/fesm2022/exhaustive-ui-core-paginator.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-panel.mjs +9 -11
- package/fesm2022/exhaustive-ui-core-panel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-panelmenu.mjs +43 -15
- package/fesm2022/exhaustive-ui-core-panelmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-password.mjs +93 -25
- package/fesm2022/exhaustive-ui-core-password.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-picklist.mjs +33 -12
- package/fesm2022/exhaustive-ui-core-picklist.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-popover.mjs +27 -8
- package/fesm2022/exhaustive-ui-core-popover.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-progressbar.mjs +5 -5
- package/fesm2022/exhaustive-ui-core-progressbar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-progressspinner.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-progressspinner.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-radiobutton.mjs +8 -3
- package/fesm2022/exhaustive-ui-core-radiobutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-rating.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-rating.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-scroller.mjs +14 -4
- package/fesm2022/exhaustive-ui-core-scroller.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-scrollpanel.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-scrollpanel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-scrolltop.mjs +11 -3
- package/fesm2022/exhaustive-ui-core-scrolltop.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-select.mjs +102 -29
- package/fesm2022/exhaustive-ui-core-select.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-selectbutton.mjs +13 -7
- package/fesm2022/exhaustive-ui-core-selectbutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-skeleton.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-skeleton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-slider.mjs +18 -5
- package/fesm2022/exhaustive-ui-core-slider.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-speeddial.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-speeddial.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-splitbutton.mjs +9 -5
- package/fesm2022/exhaustive-ui-core-splitbutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-splitter.mjs +29 -8
- package/fesm2022/exhaustive-ui-core-splitter.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-stepper.mjs +8 -4
- package/fesm2022/exhaustive-ui-core-stepper.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-steps.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-steps.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-table.mjs +535 -203
- package/fesm2022/exhaustive-ui-core-table.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tabs.mjs +44 -8
- package/fesm2022/exhaustive-ui-core-tabs.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tag.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-tag.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-terminal.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-terminal.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-textarea.mjs +9 -4
- package/fesm2022/exhaustive-ui-core-textarea.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tieredmenu.mjs +31 -16
- package/fesm2022/exhaustive-ui-core-tieredmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-timeline.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-timeline.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-toast.mjs +17 -5
- package/fesm2022/exhaustive-ui-core-toast.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-togglebutton.mjs +11 -4
- package/fesm2022/exhaustive-ui-core-togglebutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-toggleswitch.mjs +2 -4
- package/fesm2022/exhaustive-ui-core-toggleswitch.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-toolbar.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-toolbar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tooltip.mjs +5 -1
- package/fesm2022/exhaustive-ui-core-tooltip.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tree.mjs +30 -11
- package/fesm2022/exhaustive-ui-core-tree.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-treeselect.mjs +53 -6
- package/fesm2022/exhaustive-ui-core-treeselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-treetable.mjs +93 -21
- package/fesm2022/exhaustive-ui-core-treetable.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-usestyle.mjs +49 -0
- package/fesm2022/exhaustive-ui-core-usestyle.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-utils.mjs +2 -1
- package/fesm2022/exhaustive-ui-core-utils.mjs.map +1 -1
- package/package.json +5 -5
- package/schematics/migrate-from-primeflex/index.js +4 -2
- package/schematics/migrate-from-primeflex/schema.json +5 -0
- package/schematics/utils/package-json.js +17 -0
- package/schematics/utils/primeflex.js +45 -10
- package/schematics/utils/versions.json +8 -8
- package/types/exhaustive-ui-core-api.d.ts +6 -0
- package/types/exhaustive-ui-core-autocomplete.d.ts +2 -0
- package/types/exhaustive-ui-core-basecomponent.d.ts +16 -0
- package/types/exhaustive-ui-core-breadcrumb.d.ts +7 -1
- package/types/exhaustive-ui-core-button.d.ts +12 -1
- package/types/exhaustive-ui-core-cascadeselect.d.ts +2 -1
- package/types/exhaustive-ui-core-chart.d.ts +2 -2
- package/types/exhaustive-ui-core-confirmdialog.d.ts +17 -5
- package/types/exhaustive-ui-core-confirmpopup.d.ts +4 -0
- package/types/exhaustive-ui-core-datepicker.d.ts +10 -2
- package/types/exhaustive-ui-core-dialog.d.ts +2 -0
- package/types/exhaustive-ui-core-drawer.d.ts +1 -0
- package/types/exhaustive-ui-core-fileupload.d.ts +4 -0
- package/types/exhaustive-ui-core-iconfield.d.ts +1 -2
- package/types/exhaustive-ui-core-image.d.ts +6 -1
- package/types/exhaustive-ui-core-inputnumber.d.ts +8 -0
- package/types/exhaustive-ui-core-keyfilter.d.ts +1 -0
- package/types/exhaustive-ui-core-megamenu.d.ts +1 -0
- package/types/exhaustive-ui-core-menu.d.ts +2 -0
- package/types/exhaustive-ui-core-menubar.d.ts +5 -0
- package/types/exhaustive-ui-core-metergroup.d.ts +1 -1
- package/types/exhaustive-ui-core-multiselect.d.ts +1 -1
- package/types/exhaustive-ui-core-orderlist.d.ts +11 -1
- package/types/exhaustive-ui-core-paginator.d.ts +1 -0
- package/types/exhaustive-ui-core-panelmenu.d.ts +7 -0
- package/types/exhaustive-ui-core-password.d.ts +9 -1
- package/types/exhaustive-ui-core-picklist.d.ts +8 -3
- package/types/exhaustive-ui-core-popover.d.ts +3 -0
- package/types/exhaustive-ui-core-select.d.ts +13 -1
- package/types/exhaustive-ui-core-selectbutton.d.ts +3 -0
- package/types/exhaustive-ui-core-splitbutton.d.ts +2 -1
- package/types/exhaustive-ui-core-splitter.d.ts +7 -1
- package/types/exhaustive-ui-core-stepper.d.ts +3 -2
- package/types/exhaustive-ui-core-table.d.ts +34 -4
- package/types/exhaustive-ui-core-tabs.d.ts +4 -0
- package/types/exhaustive-ui-core-tieredmenu.d.ts +2 -0
- package/types/exhaustive-ui-core-togglebutton.d.ts +1 -0
- package/types/exhaustive-ui-core-tree.d.ts +2 -0
- package/types/exhaustive-ui-core-treeselect.d.ts +12 -1
- package/types/exhaustive-ui-core-treetable.d.ts +22 -2
- package/types/exhaustive-ui-core-types-chart.d.ts +21 -1
- package/types/exhaustive-ui-core-types-confirmdialog.d.ts +1 -3
- package/types/exhaustive-ui-core-types-table.d.ts +1 -1
- package/types/exhaustive-ui-core-types-treetable.d.ts +2 -2
- package/types/exhaustive-ui-core-usestyle.d.ts +17 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exhaustive-ui-core-config.mjs","sources":["../../src/config/themeprovider.ts","../../src/config/exhaustive.ts","../../src/config/provide-exhaustive.ts","../../src/config/exhaustive-ui-core-config.ts"],"sourcesContent":["import { DOCUMENT } from '@angular/common';\nimport { effect, inject, Injectable, signal, untracked } from '@angular/core';\nimport { Theme, ThemeService } from '@exhaustive-ui/styled';\nimport { BaseStyle } from '@exhaustive-ui/core/base';\nimport type { ThemeConfigType } from './exhaustive.types';\n\n@Injectable({ providedIn: 'root' })\nexport class ThemeProvider {\n // @todo define type for theme\n theme = signal<any>(undefined);\n\n csp = signal<{ nonce: string | undefined }>({ nonce: undefined });\n\n isThemeChanged: boolean = false;\n\n public document: Document = inject(DOCUMENT);\n\n baseStyle: BaseStyle = inject(BaseStyle);\n\n constructor() {\n effect(() => {\n ThemeService.on('theme:change', (newTheme) => {\n untracked(() => {\n this.isThemeChanged = true;\n this.theme.set(newTheme);\n // this.onThemeChange(this.theme());\n });\n });\n });\n effect(() => {\n const themeValue = this.theme();\n if (this.document && themeValue) {\n if (!this.isThemeChanged) {\n this.onThemeChange(themeValue);\n }\n this.isThemeChanged = false;\n }\n });\n }\n\n ngOnDestroy() {\n Theme.clearLoadedStyleNames();\n ThemeService.clear();\n }\n\n onThemeChange(value: any) {\n Theme.setTheme(value);\n if (this.document) {\n this.loadCommonTheme();\n }\n }\n\n loadCommonTheme() {\n if (this.theme() === 'none') return;\n\n // common\n if (!Theme.isStyleNameLoaded('common')) {\n const { primitive, semantic, global, style } = this.baseStyle.getCommonTheme?.() || {};\n const styleOptions = { nonce: this.csp?.()?.nonce };\n\n this.baseStyle.load(primitive?.css, { name: 'primitive-variables', ...styleOptions });\n this.baseStyle.load(semantic?.css, { name: 'semantic-variables', ...styleOptions });\n this.baseStyle.load(global?.css, { name: 'global-variables', ...styleOptions });\n this.baseStyle.loadBaseStyle({ name: 'global-style', ...styleOptions }, style);\n\n Theme.setLoadedStyleName('common');\n }\n }\n\n setThemeConfig(config: ThemeConfigType): void {\n const { theme, csp } = config || {};\n if (theme) this.theme.set(theme);\n if (csp) this.csp.set(csp);\n }\n}\n","import { ElementRef, inject, Injectable, PLATFORM_ID, signal, TemplateRef } from '@angular/core';\nimport { FilterMatchMode, OverlayOptions, Translation } from '@exhaustive-ui/core/api';\nimport { Subject } from 'rxjs';\nimport type { ExhaustiveConfigType, ThemeConfigType, ZIndex } from './exhaustive.types';\nimport { ThemeProvider } from './themeprovider';\n\n@Injectable({ providedIn: 'root' })\nexport class Exhaustive extends ThemeProvider {\n ripple = signal<boolean>(false);\n\n public platformId: any = inject(PLATFORM_ID);\n /**\n * @deprecated Since v20. Use `inputVariant` instead.\n */\n inputStyle = signal<'outlined' | 'filled' | null>(null);\n\n inputVariant = signal<'outlined' | 'filled' | null>(null);\n\n overlayAppendTo = signal<HTMLElement | ElementRef | TemplateRef<any> | 'self' | 'body' | null | undefined | any>('self');\n\n overlayOptions = signal<OverlayOptions>({});\n\n csp = signal<{ nonce: string | undefined }>({ nonce: undefined });\n\n unstyled = signal<boolean | undefined>(undefined);\n\n pt = signal<ExhaustiveConfigType['pt']>(undefined);\n\n ptOptions = signal<ExhaustiveConfigType['ptOptions']>(undefined);\n\n filterMatchModeOptions = {\n text: [FilterMatchMode.STARTS_WITH, FilterMatchMode.CONTAINS, FilterMatchMode.NOT_CONTAINS, FilterMatchMode.ENDS_WITH, FilterMatchMode.EQUALS, FilterMatchMode.NOT_EQUALS],\n numeric: [FilterMatchMode.EQUALS, FilterMatchMode.NOT_EQUALS, FilterMatchMode.LESS_THAN, FilterMatchMode.LESS_THAN_OR_EQUAL_TO, FilterMatchMode.GREATER_THAN, FilterMatchMode.GREATER_THAN_OR_EQUAL_TO],\n date: [FilterMatchMode.DATE_IS, FilterMatchMode.DATE_IS_NOT, FilterMatchMode.DATE_BEFORE, FilterMatchMode.DATE_AFTER]\n };\n\n public translation: Translation = {\n startsWith: 'Starts with',\n contains: 'Contains',\n notContains: 'Not contains',\n endsWith: 'Ends with',\n equals: 'Equals',\n notEquals: 'Not equals',\n noFilter: 'No Filter',\n lt: 'Less than',\n lte: 'Less than or equal to',\n gt: 'Greater than',\n gte: 'Greater than or equal to',\n is: 'Is',\n isNot: 'Is not',\n before: 'Before',\n after: 'After',\n dateIs: 'Date is',\n dateIsNot: 'Date is not',\n dateBefore: 'Date is before',\n dateAfter: 'Date is after',\n clear: 'Clear',\n apply: 'Apply',\n matchAll: 'Match All',\n matchAny: 'Match Any',\n addRule: 'Add Rule',\n removeRule: 'Remove Rule',\n accept: 'Yes',\n reject: 'No',\n choose: 'Choose',\n completed: 'Completed',\n upload: 'Upload',\n cancel: 'Cancel',\n pending: 'Pending',\n fileSizeTypes: ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'],\n dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],\n dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n dayNamesMin: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],\n monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],\n monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],\n chooseYear: 'Choose Year',\n chooseMonth: 'Choose Month',\n chooseDate: 'Choose Date',\n prevDecade: 'Previous Decade',\n nextDecade: 'Next Decade',\n prevYear: 'Previous Year',\n nextYear: 'Next Year',\n prevMonth: 'Previous Month',\n nextMonth: 'Next Month',\n prevHour: 'Previous Hour',\n nextHour: 'Next Hour',\n prevMinute: 'Previous Minute',\n nextMinute: 'Next Minute',\n prevSecond: 'Previous Second',\n nextSecond: 'Next Second',\n am: 'am',\n pm: 'pm',\n dateFormat: 'mm/dd/yy',\n firstDayOfWeek: 0,\n today: 'Today',\n weekHeader: 'Wk',\n weak: 'Weak',\n medium: 'Medium',\n strong: 'Strong',\n passwordPrompt: 'Enter a password',\n emptyMessage: 'No results found',\n searchMessage: 'Search results are available',\n selectionMessage: '{0} items selected',\n emptySelectionMessage: 'No selected item',\n emptySearchMessage: 'No results found',\n emptyFilterMessage: 'No results found',\n fileChosenMessage: 'Files',\n noFileChosenMessage: 'No file chosen',\n aria: {\n trueLabel: 'True',\n falseLabel: 'False',\n nullLabel: 'Not Selected',\n star: '1 star',\n stars: '{star} stars',\n selectAll: 'All items selected',\n unselectAll: 'All items unselected',\n close: 'Close',\n previous: 'Previous',\n next: 'Next',\n navigation: 'Navigation',\n home: 'Home',\n scrollTop: 'Scroll Top',\n moveTop: 'Move Top',\n moveUp: 'Move Up',\n moveDown: 'Move Down',\n moveBottom: 'Move Bottom',\n moveToTarget: 'Move to Target',\n moveToSource: 'Move to Source',\n moveAllToTarget: 'Move All to Target',\n moveAllToSource: 'Move All to Source',\n pageLabel: '{page}',\n firstPageLabel: 'First Page',\n lastPageLabel: 'Last Page',\n nextPageLabel: 'Next Page',\n prevPageLabel: 'Previous Page',\n rowsPerPageLabel: 'Rows per page',\n previousPageLabel: 'Previous Page',\n jumpToPageDropdownLabel: 'Jump to Page Dropdown',\n jumpToPageInputLabel: 'Jump to Page Input',\n selectRow: 'Row Selected',\n unselectRow: 'Row Unselected',\n expandRow: 'Row Expanded',\n collapseRow: 'Row Collapsed',\n showFilterMenu: 'Show Filter Menu',\n hideFilterMenu: 'Hide Filter Menu',\n filterOperator: 'Filter Operator',\n filterConstraint: 'Filter Constraint',\n editRow: 'Row Edit',\n saveEdit: 'Save Edit',\n cancelEdit: 'Cancel Edit',\n listView: 'List View',\n gridView: 'Grid View',\n slide: 'Slide',\n slideNumber: '{slideNumber}',\n zoomImage: 'Zoom Image',\n zoomIn: 'Zoom In',\n zoomOut: 'Zoom Out',\n rotateRight: 'Rotate Right',\n rotateLeft: 'Rotate Left',\n listLabel: 'Option List',\n selectColor: 'Select a color',\n removeLabel: 'Remove',\n browseFiles: 'Browse Files',\n maximizeLabel: 'Maximize',\n minimizeLabel: 'Minimize'\n }\n };\n\n zIndex: ZIndex = {\n modal: 1100,\n overlay: 1000,\n menu: 1000,\n tooltip: 1100\n };\n\n private translationSource = new Subject<any>();\n\n translationObserver = this.translationSource.asObservable();\n\n getTranslation(key: string): any {\n return this.translation[key as keyof typeof this.translation];\n }\n\n setTranslation(value: Translation) {\n this.translation = { ...this.translation, ...value };\n this.translationSource.next(this.translation);\n }\n\n setConfig(config: ExhaustiveConfigType): void {\n const { csp, ripple, inputStyle, inputVariant, theme, overlayOptions, translation, filterMatchModeOptions, overlayAppendTo, zIndex, ptOptions, pt, unstyled } = config || {};\n\n if (csp) this.csp.set(csp);\n if (overlayAppendTo) this.overlayAppendTo.set(overlayAppendTo);\n if (ripple) this.ripple.set(ripple);\n if (inputStyle) this.inputStyle.set(inputStyle);\n if (inputVariant) this.inputVariant.set(inputVariant);\n if (overlayOptions) this.overlayOptions.set(overlayOptions);\n if (translation) this.setTranslation(translation);\n if (filterMatchModeOptions) this.filterMatchModeOptions = filterMatchModeOptions;\n if (zIndex) this.zIndex = zIndex;\n if (pt) this.pt.set(pt);\n if (ptOptions) this.ptOptions.set(ptOptions);\n if (unstyled) this.unstyled.set(unstyled);\n\n if (theme)\n this.setThemeConfig({\n theme,\n csp\n } as ThemeConfigType);\n }\n}\n","import { EnvironmentProviders, inject, InjectionToken, makeEnvironmentProviders, provideAppInitializer } from '@angular/core';\nimport { Exhaustive } from './exhaustive';\nimport type { ExhaustiveConfigType } from './exhaustive.types';\n\nexport const EXHAUSTIVE_CONFIG = new InjectionToken<ExhaustiveConfigType>('EXHAUSTIVE_CONFIG');\n\nexport function provideExhaustive(...features: ExhaustiveConfigType[]): EnvironmentProviders {\n const providers = features?.map((feature) => ({\n provide: EXHAUSTIVE_CONFIG,\n useValue: feature,\n multi: false\n }));\n\n const initializer = provideAppInitializer(() => {\n const config = inject(Exhaustive);\n features?.forEach((feature) => config.setConfig(feature));\n return;\n });\n\n return makeEnvironmentProviders([...providers, initializer]);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;MAOa,aAAa,CAAA;;IAEtB,KAAK,GAAG,MAAM,CAAM,SAAS;8EAAC;AAE9B,IAAA,GAAG,GAAG,MAAM,CAAgC,EAAE,KAAK,EAAE,SAAS,EAAE;4EAAC;IAEjE,cAAc,GAAY,KAAK;AAExB,IAAA,QAAQ,GAAa,MAAM,CAAC,QAAQ,CAAC;AAE5C,IAAA,SAAS,GAAc,MAAM,CAAC,SAAS,CAAC;AAExC,IAAA,WAAA,GAAA;QACI,MAAM,CAAC,MAAK;YACR,YAAY,CAAC,EAAE,CAAC,cAAc,EAAE,CAAC,QAAQ,KAAI;gBACzC,SAAS,CAAC,MAAK;AACX,oBAAA,IAAI,CAAC,cAAc,GAAG,IAAI;AAC1B,oBAAA,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC;;AAE5B,gBAAA,CAAC,CAAC;AACN,YAAA,CAAC,CAAC;AACN,QAAA,CAAC,CAAC;QACF,MAAM,CAAC,MAAK;AACR,YAAA,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,EAAE;AAC/B,YAAA,IAAI,IAAI,CAAC,QAAQ,IAAI,UAAU,EAAE;AAC7B,gBAAA,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE;AACtB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;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;MCFrB,iBAAiB,GAAG,IAAI,cAAc,CAAuB,mBAAmB;AAEvF,SAAU,iBAAiB,CAAC,GAAG,QAAgC,EAAA;IACjE,MAAM,SAAS,GAAG,QAAQ,EAAE,GAAG,CAAC,CAAC,OAAO,MAAM;AAC1C,QAAA,OAAO,EAAE,iBAAiB;AAC1B,QAAA,QAAQ,EAAE,OAAO;AACjB,QAAA,KAAK,EAAE;AACV,KAAA,CAAC,CAAC;AAEH,IAAA,MAAM,WAAW,GAAG,qBAAqB,CAAC,MAAK;AAC3C,QAAA,MAAM,MAAM,GAAG,MAAM,CAAC,UAAU,CAAC;AACjC,QAAA,QAAQ,EAAE,OAAO,CAAC,CAAC,OAAO,KAAK,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;QACzD;AACJ,IAAA,CAAC,CAAC;IAEF,OAAO,wBAAwB,CAAC,CAAC,GAAG,SAAS,EAAE,WAAW,CAAC,CAAC;AAChE;;ACpBA;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"exhaustive-ui-core-config.mjs","sources":["../../src/config/themeprovider.ts","../../src/config/exhaustive.ts","../../src/config/provide-exhaustive.ts","../../src/config/exhaustive-ui-core-config.ts"],"sourcesContent":["import { DOCUMENT } from '@angular/common';\nimport { effect, inject, Injectable, signal, untracked } from '@angular/core';\nimport { Theme, ThemeService } from '@exhaustive-ui/styled';\nimport { BaseStyle } from '@exhaustive-ui/core/base';\nimport type { ThemeConfigType } from './exhaustive.types';\n\n@Injectable({ providedIn: 'root' })\nexport class ThemeProvider {\n // @todo define type for theme\n theme = signal<any>(undefined);\n\n csp = signal<{ nonce: string | undefined }>({ nonce: undefined });\n\n isThemeChanged: boolean = false;\n\n public document: Document = inject(DOCUMENT);\n\n baseStyle: BaseStyle = inject(BaseStyle);\n\n constructor() {\n effect(() => {\n ThemeService.on('theme:change', (newTheme) => {\n untracked(() => {\n this.isThemeChanged = true;\n this.theme.set(newTheme);\n // this.onThemeChange(this.theme());\n });\n });\n });\n effect(() => {\n const themeValue = this.theme();\n if (this.document && themeValue) {\n if (!this.isThemeChanged) {\n this.onThemeChange(themeValue);\n }\n this.isThemeChanged = false;\n }\n });\n }\n\n ngOnDestroy() {\n Theme.clearLoadedStyleNames();\n ThemeService.clear();\n }\n\n onThemeChange(value: any) {\n Theme.setTheme(value);\n if (this.document) {\n this.loadCommonTheme();\n }\n }\n\n loadCommonTheme() {\n if (this.theme() === 'none') return;\n\n // common\n if (!Theme.isStyleNameLoaded('common')) {\n const { primitive, semantic, global, style } = this.baseStyle.getCommonTheme?.() || {};\n const styleOptions = { nonce: this.csp?.()?.nonce };\n\n this.baseStyle.load(primitive?.css, { name: 'primitive-variables', ...styleOptions });\n this.baseStyle.load(semantic?.css, { name: 'semantic-variables', ...styleOptions });\n this.baseStyle.load(global?.css, { name: 'global-variables', ...styleOptions });\n this.baseStyle.loadBaseStyle({ name: 'global-style', ...styleOptions }, style);\n\n Theme.setLoadedStyleName('common');\n }\n }\n\n setThemeConfig(config: ThemeConfigType): void {\n const { theme, csp } = config || {};\n if (theme) this.theme.set(theme);\n if (csp) this.csp.set(csp);\n }\n}\n","import { ElementRef, inject, Injectable, PLATFORM_ID, signal, TemplateRef } from '@angular/core';\nimport { FilterMatchMode, OverlayOptions, Translation } from '@exhaustive-ui/core/api';\nimport { Subject } from 'rxjs';\nimport type { ExhaustiveConfigType, ThemeConfigType, ZIndex } from './exhaustive.types';\nimport { ThemeProvider } from './themeprovider';\n\n@Injectable({ providedIn: 'root' })\nexport class Exhaustive extends ThemeProvider {\n ripple = signal<boolean>(false);\n\n public platformId: any = inject(PLATFORM_ID);\n /**\n * @deprecated Since v20. Use `inputVariant` instead.\n */\n inputStyle = signal<'outlined' | 'filled' | null>(null);\n\n inputVariant = signal<'outlined' | 'filled' | null>(null);\n\n overlayAppendTo = signal<HTMLElement | ElementRef | TemplateRef<any> | 'self' | 'body' | null | undefined | any>('self');\n\n overlayOptions = signal<OverlayOptions>({});\n\n csp = signal<{ nonce: string | undefined }>({ nonce: undefined });\n\n unstyled = signal<boolean | undefined>(undefined);\n\n pt = signal<ExhaustiveConfigType['pt']>(undefined);\n\n ptOptions = signal<ExhaustiveConfigType['ptOptions']>(undefined);\n\n filterMatchModeOptions = {\n text: [FilterMatchMode.STARTS_WITH, FilterMatchMode.CONTAINS, FilterMatchMode.NOT_CONTAINS, FilterMatchMode.ENDS_WITH, FilterMatchMode.EQUALS, FilterMatchMode.NOT_EQUALS],\n numeric: [FilterMatchMode.EQUALS, FilterMatchMode.NOT_EQUALS, FilterMatchMode.LESS_THAN, FilterMatchMode.LESS_THAN_OR_EQUAL_TO, FilterMatchMode.GREATER_THAN, FilterMatchMode.GREATER_THAN_OR_EQUAL_TO],\n date: [FilterMatchMode.DATE_IS, FilterMatchMode.DATE_IS_NOT, FilterMatchMode.DATE_BEFORE, FilterMatchMode.DATE_AFTER]\n };\n\n public translation: Translation = {\n startsWith: 'Starts with',\n contains: 'Contains',\n notContains: 'Not contains',\n endsWith: 'Ends with',\n equals: 'Equals',\n notEquals: 'Not equals',\n noFilter: 'No Filter',\n lt: 'Less than',\n lte: 'Less than or equal to',\n gt: 'Greater than',\n gte: 'Greater than or equal to',\n is: 'Is',\n isNot: 'Is not',\n before: 'Before',\n after: 'After',\n dateIs: 'Date is',\n dateIsNot: 'Date is not',\n dateBefore: 'Date is before',\n dateAfter: 'Date is after',\n clear: 'Clear',\n apply: 'Apply',\n matchAll: 'Match All',\n matchAny: 'Match Any',\n addRule: 'Add Rule',\n removeRule: 'Remove Rule',\n accept: 'Yes',\n reject: 'No',\n choose: 'Choose',\n completed: 'Completed',\n upload: 'Upload',\n cancel: 'Cancel',\n pending: 'Pending',\n fileSizeTypes: ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'],\n dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],\n dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n dayNamesMin: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],\n monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],\n monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],\n chooseYear: 'Choose Year',\n chooseMonth: 'Choose Month',\n chooseDate: 'Choose Date',\n prevDecade: 'Previous Decade',\n nextDecade: 'Next Decade',\n prevYear: 'Previous Year',\n nextYear: 'Next Year',\n prevMonth: 'Previous Month',\n nextMonth: 'Next Month',\n prevHour: 'Previous Hour',\n nextHour: 'Next Hour',\n prevMinute: 'Previous Minute',\n nextMinute: 'Next Minute',\n prevSecond: 'Previous Second',\n nextSecond: 'Next Second',\n am: 'am',\n pm: 'pm',\n dateFormat: 'mm/dd/yy',\n firstDayOfWeek: 0,\n today: 'Today',\n weekHeader: 'Wk',\n weak: 'Weak',\n medium: 'Medium',\n strong: 'Strong',\n passwordPrompt: 'Enter a password',\n emptyMessage: 'No results found',\n searchMessage: 'Search results are available',\n selectionMessage: '{0} items selected',\n emptySelectionMessage: 'No selected item',\n emptySearchMessage: 'No results found',\n emptyFilterMessage: 'No results found',\n fileChosenMessage: 'Files',\n noFileChosenMessage: 'No file chosen',\n aria: {\n trueLabel: 'True',\n falseLabel: 'False',\n nullLabel: 'Not Selected',\n star: '1 star',\n stars: '{star} stars',\n selectAll: 'All items selected',\n unselectAll: 'All items unselected',\n close: 'Close',\n previous: 'Previous',\n next: 'Next',\n navigation: 'Navigation',\n home: 'Home',\n scrollTop: 'Scroll Top',\n moveTop: 'Move Top',\n moveUp: 'Move Up',\n moveDown: 'Move Down',\n moveBottom: 'Move Bottom',\n moveToTarget: 'Move to Target',\n moveToSource: 'Move to Source',\n moveAllToTarget: 'Move All to Target',\n moveAllToSource: 'Move All to Source',\n pageLabel: '{page}',\n firstPageLabel: 'First Page',\n lastPageLabel: 'Last Page',\n nextPageLabel: 'Next Page',\n prevPageLabel: 'Previous Page',\n rowsPerPageLabel: 'Rows per page',\n previousPageLabel: 'Previous Page',\n jumpToPageDropdownLabel: 'Jump to Page Dropdown',\n jumpToPageInputLabel: 'Jump to Page Input',\n selectRow: 'Row Selected',\n unselectRow: 'Row Unselected',\n expandRow: 'Row Expanded',\n collapseRow: 'Row Collapsed',\n showFilterMenu: 'Show Filter Menu',\n hideFilterMenu: 'Hide Filter Menu',\n filterOperator: 'Filter Operator',\n filterConstraint: 'Filter Constraint',\n editRow: 'Row Edit',\n saveEdit: 'Save Edit',\n cancelEdit: 'Cancel Edit',\n listView: 'List View',\n gridView: 'Grid View',\n slide: 'Slide',\n slideNumber: '{slideNumber}',\n zoomImage: 'Zoom Image',\n zoomIn: 'Zoom In',\n zoomOut: 'Zoom Out',\n rotateRight: 'Rotate Right',\n rotateLeft: 'Rotate Left',\n listLabel: 'Option List',\n selectColor: 'Select a color',\n removeLabel: 'Remove',\n browseFiles: 'Browse Files',\n maximizeLabel: 'Maximize',\n minimizeLabel: 'Minimize',\n columnMoved: 'Column moved to position {position} of {total}',\n rowMoved: 'Row moved to position {position} of {total}'\n }\n };\n\n zIndex: ZIndex = {\n modal: 1100,\n overlay: 1000,\n menu: 1000,\n tooltip: 1100\n };\n\n private translationSource = new Subject<any>();\n\n translationObserver = this.translationSource.asObservable();\n\n getTranslation(key: string): any {\n return this.translation[key as keyof typeof this.translation];\n }\n\n setTranslation(value: Translation) {\n this.translation = { ...this.translation, ...value };\n this.translationSource.next(this.translation);\n }\n\n setConfig(config: ExhaustiveConfigType): void {\n const { csp, ripple, inputStyle, inputVariant, theme, overlayOptions, translation, filterMatchModeOptions, overlayAppendTo, zIndex, ptOptions, pt, unstyled } = config || {};\n\n if (csp) this.csp.set(csp);\n if (overlayAppendTo) this.overlayAppendTo.set(overlayAppendTo);\n if (ripple) this.ripple.set(ripple);\n if (inputStyle) this.inputStyle.set(inputStyle);\n if (inputVariant) this.inputVariant.set(inputVariant);\n if (overlayOptions) this.overlayOptions.set(overlayOptions);\n if (translation) this.setTranslation(translation);\n if (filterMatchModeOptions) this.filterMatchModeOptions = filterMatchModeOptions;\n if (zIndex) this.zIndex = zIndex;\n if (pt) this.pt.set(pt);\n if (ptOptions) this.ptOptions.set(ptOptions);\n if (unstyled) this.unstyled.set(unstyled);\n\n if (theme)\n this.setThemeConfig({\n theme,\n csp\n } as ThemeConfigType);\n }\n}\n","import { EnvironmentProviders, inject, InjectionToken, makeEnvironmentProviders, provideAppInitializer } from '@angular/core';\nimport { Exhaustive } from './exhaustive';\nimport type { ExhaustiveConfigType } from './exhaustive.types';\n\nexport const EXHAUSTIVE_CONFIG = new InjectionToken<ExhaustiveConfigType>('EXHAUSTIVE_CONFIG');\n\nexport function provideExhaustive(...features: ExhaustiveConfigType[]): EnvironmentProviders {\n const providers = features?.map((feature) => ({\n provide: EXHAUSTIVE_CONFIG,\n useValue: feature,\n multi: false\n }));\n\n const initializer = provideAppInitializer(() => {\n const config = inject(Exhaustive);\n features?.forEach((feature) => config.setConfig(feature));\n return;\n });\n\n return makeEnvironmentProviders([...providers, initializer]);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;MAOa,aAAa,CAAA;;IAEtB,KAAK,GAAG,MAAM,CAAM,SAAS;8EAAC;AAE9B,IAAA,GAAG,GAAG,MAAM,CAAgC,EAAE,KAAK,EAAE,SAAS,EAAE;4EAAC;IAEjE,cAAc,GAAY,KAAK;AAExB,IAAA,QAAQ,GAAa,MAAM,CAAC,QAAQ,CAAC;AAE5C,IAAA,SAAS,GAAc,MAAM,CAAC,SAAS,CAAC;AAExC,IAAA,WAAA,GAAA;QACI,MAAM,CAAC,MAAK;YACR,YAAY,CAAC,EAAE,CAAC,cAAc,EAAE,CAAC,QAAQ,KAAI;gBACzC,SAAS,CAAC,MAAK;AACX,oBAA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AEzC,QAAA,IAAI,KAAK;YACL,IAAI,CAAC,cAAc,CAAC;gBAChB,KAAK;gBACL;AACgB,aAAA,CAAC;IAC7B;uGA5MS,UAAU,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;AAAV,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAU,cADG,MAAM,EAAA,CAAA;;2FACnB,UAAU,EAAA,UAAA,EAAA,CAAA;kBADtB,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;MCFrB,iBAAiB,GAAG,IAAI,cAAc,CAAuB,mBAAmB;AAEvF,SAAU,iBAAiB,CAAC,GAAG,QAAgC,EAAA;IACjE,MAAM,SAAS,GAAG,QAAQ,EAAE,GAAG,CAAC,CAAC,OAAO,MAAM;AAC1C,QAAA,OAAO,EAAE,iBAAiB;AAC1B,QAAA,QAAQ,EAAE,OAAO;AACjB,QAAA,KAAK,EAAE;AACV,KAAA,CAAC,CAAC;AAEH,IAAA,MAAM,WAAW,GAAG,qBAAqB,CAAC,MAAK;AAC3C,QAAA,MAAM,MAAM,GAAG,MAAM,CAAC,UAAU,CAAC;AACjC,QAAA,QAAQ,EAAE,OAAO,CAAC,CAAC,OAAO,KAAK,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;QACzD;AACJ,IAAA,CAAC,CAAC;IAEF,OAAO,wBAAwB,CAAC,CAAC,GAAG,SAAS,EAAE,WAAW,CAAC,CAAC;AAChE;;ACpBA;;AAEG;;;;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as i2 from '@angular/common';
|
|
2
2
|
import { CommonModule } from '@angular/common';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { Injectable, InjectionToken, inject, input, booleanAttribute, numberAttribute, model, output, contentChild, contentChildren, computed, signal,
|
|
5
|
-
import { ConfirmationService, PrimeTemplate, ConfirmEventType, TranslationKeys, SharedModule } from '@exhaustive-ui/core/api';
|
|
4
|
+
import { Injectable, InjectionToken, inject, input, booleanAttribute, numberAttribute, model, output, contentChild, contentChildren, computed, signal, viewChild, ElementRef, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
5
|
+
import { ConfirmationService, PrimeTemplate, Footer, ConfirmEventType, TranslationKeys, SharedModule } from '@exhaustive-ui/core/api';
|
|
6
6
|
import { BaseComponent, PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';
|
|
7
7
|
import * as i1 from '@exhaustive-ui/core/bind';
|
|
8
8
|
import { Bind } from '@exhaustive-ui/core/bind';
|
|
@@ -271,6 +271,8 @@ class ConfirmDialog extends BaseComponent {
|
|
|
271
271
|
headlessTemplate = contentChild('headless', { ...(ngDevMode ? { debugName: "headlessTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
272
272
|
templates = contentChildren(PrimeTemplate, /* @ts-ignore */
|
|
273
273
|
...(ngDevMode ? [{ debugName: "templates" }] : /* istanbul ignore next */ []));
|
|
274
|
+
footerFacet = contentChild(Footer, /* @ts-ignore */
|
|
275
|
+
...(ngDevMode ? [{ debugName: "footerFacet" }] : /* istanbul ignore next */ []));
|
|
274
276
|
$appendTo = computed(() => this.appendTo() || this.config.overlayAppendTo(), /* @ts-ignore */
|
|
275
277
|
...(ngDevMode ? [{ debugName: "$appendTo" }] : /* istanbul ignore next */ []));
|
|
276
278
|
_headerTemplate = computed(() => this.templates()
|
|
@@ -303,11 +305,17 @@ class ConfirmDialog extends BaseComponent {
|
|
|
303
305
|
...(ngDevMode ? [{ debugName: "_headlessTemplate" }] : /* istanbul ignore next */ []));
|
|
304
306
|
confirmation = signal(undefined, /* @ts-ignore */
|
|
305
307
|
...(ngDevMode ? [{ debugName: "confirmation" }] : /* istanbul ignore next */ []));
|
|
308
|
+
dialogViewChild = viewChild('dialog', /* @ts-ignore */
|
|
309
|
+
...(ngDevMode ? [{ debugName: "dialogViewChild" }] : /* istanbul ignore next */ []));
|
|
310
|
+
_closeButtonProps = computed(() => ({ severity: 'secondary', variant: 'text', rounded: true, ...this.confirmation()?.closeButtonProps }), /* @ts-ignore */
|
|
311
|
+
...(ngDevMode ? [{ debugName: "_closeButtonProps" }] : /* istanbul ignore next */ []));
|
|
312
|
+
acceptButtonViewChild = viewChild('acceptButton', { ...(ngDevMode ? { debugName: "acceptButtonViewChild" } : /* istanbul ignore next */ {}), read: ElementRef });
|
|
313
|
+
rejectButtonViewChild = viewChild('rejectButton', { ...(ngDevMode ? { debugName: "rejectButtonViewChild" } : /* istanbul ignore next */ {}), read: ElementRef });
|
|
306
314
|
subscription;
|
|
307
315
|
translationSubscription;
|
|
308
316
|
constructor() {
|
|
309
317
|
super();
|
|
310
|
-
|
|
318
|
+
this.bindHostAttrs(this.bindDirectiveInstance, () => this.ptm('host'));
|
|
311
319
|
this.subscription = this.confirmationService.requireConfirmation$.subscribe((confirmation) => {
|
|
312
320
|
if (!confirmation) {
|
|
313
321
|
this.hide();
|
|
@@ -353,13 +361,35 @@ class ConfirmDialog extends BaseComponent {
|
|
|
353
361
|
if (confirmation?.rejectEvent) {
|
|
354
362
|
confirmation.rejectEvent.next(ConfirmEventType.CANCEL);
|
|
355
363
|
}
|
|
356
|
-
this.hide(ConfirmEventType.CANCEL);
|
|
364
|
+
this.hide(ConfirmEventType.CANCEL, confirmation);
|
|
357
365
|
}
|
|
358
|
-
hide(type) {
|
|
366
|
+
hide(type, confirmation = this.confirmation()) {
|
|
359
367
|
this.onHide.emit(type);
|
|
360
|
-
|
|
368
|
+
// A callback of the answered confirmation may have requested a new one: keep the dialog open for it.
|
|
369
|
+
if (this.confirmation() === confirmation) {
|
|
370
|
+
this.visible.set(false);
|
|
371
|
+
}
|
|
361
372
|
// Unsubscribe from confirmation events when the dialogue is closed, because events are created when the dialogue is opened.
|
|
362
|
-
this.unsubscribeConfirmationEvents();
|
|
373
|
+
this.unsubscribeConfirmationEvents(confirmation);
|
|
374
|
+
}
|
|
375
|
+
/**
|
|
376
|
+
* Applies the defaultFocus of the confirmation ('accept', 'reject', 'close' or 'none') once the dialog is shown.
|
|
377
|
+
* Without defaultFocus the inner Dialog focuses its first focusable element itself (focusOnShow).
|
|
378
|
+
*/
|
|
379
|
+
onDialogShow() {
|
|
380
|
+
const defaultFocus = this.option('defaultFocus');
|
|
381
|
+
let target;
|
|
382
|
+
if (defaultFocus === 'accept') {
|
|
383
|
+
target = this.acceptButtonViewChild()?.nativeElement;
|
|
384
|
+
}
|
|
385
|
+
else if (defaultFocus === 'reject') {
|
|
386
|
+
target = this.rejectButtonViewChild()?.nativeElement;
|
|
387
|
+
}
|
|
388
|
+
else if (defaultFocus === 'close') {
|
|
389
|
+
target = this.dialogViewChild()?.container()?.querySelector('[data-pc-group-section="headericon"]');
|
|
390
|
+
}
|
|
391
|
+
const focusable = target?.matches('button') ? target : target?.querySelector('button');
|
|
392
|
+
focusable?.focus();
|
|
363
393
|
}
|
|
364
394
|
onDialogHide() {
|
|
365
395
|
this.confirmation.set(null);
|
|
@@ -385,17 +415,16 @@ class ConfirmDialog extends BaseComponent {
|
|
|
385
415
|
if (confirmation && confirmation.acceptEvent) {
|
|
386
416
|
confirmation.acceptEvent.next(undefined);
|
|
387
417
|
}
|
|
388
|
-
this.hide(ConfirmEventType.ACCEPT);
|
|
418
|
+
this.hide(ConfirmEventType.ACCEPT, confirmation);
|
|
389
419
|
}
|
|
390
420
|
onReject() {
|
|
391
421
|
const confirmation = this.confirmation();
|
|
392
422
|
if (confirmation && confirmation.rejectEvent) {
|
|
393
423
|
confirmation.rejectEvent.next(ConfirmEventType.REJECT);
|
|
394
424
|
}
|
|
395
|
-
this.hide(ConfirmEventType.REJECT);
|
|
425
|
+
this.hide(ConfirmEventType.REJECT, confirmation);
|
|
396
426
|
}
|
|
397
|
-
unsubscribeConfirmationEvents() {
|
|
398
|
-
const confirmation = this.confirmation();
|
|
427
|
+
unsubscribeConfirmationEvents(confirmation = this.confirmation()) {
|
|
399
428
|
if (confirmation) {
|
|
400
429
|
confirmation.acceptEvent?.unsubscribe();
|
|
401
430
|
confirmation.rejectEvent?.unsubscribe();
|
|
@@ -414,13 +443,13 @@ class ConfirmDialog extends BaseComponent {
|
|
|
414
443
|
return this.option('rejectButtonProps');
|
|
415
444
|
}
|
|
416
445
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: ConfirmDialog, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
417
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: ConfirmDialog, isStandalone: true, selector: "p-confirmDialog, p-confirmdialog, p-confirm-dialog", inputs: { header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, message: { classPropertyName: "message", publicName: "message", isSignal: true, isRequired: false, transformFunction: null }, style: { classPropertyName: "style", publicName: "style", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, maskStyleClass: { classPropertyName: "maskStyleClass", publicName: "maskStyleClass", isSignal: true, isRequired: false, transformFunction: null }, acceptIcon: { classPropertyName: "acceptIcon", publicName: "acceptIcon", isSignal: true, isRequired: false, transformFunction: null }, acceptLabel: { classPropertyName: "acceptLabel", publicName: "acceptLabel", isSignal: true, isRequired: false, transformFunction: null }, acceptVisible: { classPropertyName: "acceptVisible", publicName: "acceptVisible", isSignal: true, isRequired: false, transformFunction: null }, rejectIcon: { classPropertyName: "rejectIcon", publicName: "rejectIcon", isSignal: true, isRequired: false, transformFunction: null }, rejectLabel: { classPropertyName: "rejectLabel", publicName: "rejectLabel", isSignal: true, isRequired: false, transformFunction: null }, rejectVisible: { classPropertyName: "rejectVisible", publicName: "rejectVisible", isSignal: true, isRequired: false, transformFunction: null }, acceptButtonStyleClass: { classPropertyName: "acceptButtonStyleClass", publicName: "acceptButtonStyleClass", isSignal: true, isRequired: false, transformFunction: null }, rejectButtonStyleClass: { classPropertyName: "rejectButtonStyleClass", publicName: "rejectButtonStyleClass", isSignal: true, isRequired: false, transformFunction: null }, closeOnEscape: { classPropertyName: "closeOnEscape", publicName: "closeOnEscape", isSignal: true, isRequired: false, transformFunction: null }, dismissableMask: { classPropertyName: "dismissableMask", publicName: "dismissableMask", isSignal: true, isRequired: false, transformFunction: null }, blockScroll: { classPropertyName: "blockScroll", publicName: "blockScroll", isSignal: true, isRequired: false, transformFunction: null }, closable: { classPropertyName: "closable", publicName: "closable", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, key: { classPropertyName: "key", publicName: "key", isSignal: true, isRequired: false, transformFunction: null }, autoZIndex: { classPropertyName: "autoZIndex", publicName: "autoZIndex", isSignal: true, isRequired: false, transformFunction: null }, baseZIndex: { classPropertyName: "baseZIndex", publicName: "baseZIndex", isSignal: true, isRequired: false, transformFunction: null }, breakpoints: { classPropertyName: "breakpoints", publicName: "breakpoints", isSignal: true, isRequired: false, transformFunction: null }, modal: { classPropertyName: "modal", publicName: "modal", isSignal: true, isRequired: false, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, draggable: { classPropertyName: "draggable", publicName: "draggable", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { visible: "visibleChange", onHide: "onHide" }, providers: [ConfirmDialogStyle, { provide: CONFIRMDIALOG_INSTANCE, useExisting: ConfirmDialog }, { provide: PARENT_INSTANCE, useExisting: ConfirmDialog }], queries: [{ propertyName: "headerTemplate", first: true, predicate: ["header"], isSignal: true }, { propertyName: "footerTemplate", first: true, predicate: ["footer"], isSignal: true }, { propertyName: "rejectIconTemplate", first: true, predicate: ["rejecticon"], isSignal: true }, { propertyName: "acceptIconTemplate", first: true, predicate: ["accepticon"], isSignal: true }, { propertyName: "messageTemplate", first: true, predicate: ["message"], isSignal: true }, { propertyName: "iconTemplate", first: true, predicate: ["icon"], isSignal: true }, { propertyName: "headlessTemplate", first: true, predicate: ["headless"], isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
|
|
446
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: ConfirmDialog, isStandalone: true, selector: "p-confirmDialog, p-confirmdialog, p-confirm-dialog", inputs: { header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, message: { classPropertyName: "message", publicName: "message", isSignal: true, isRequired: false, transformFunction: null }, style: { classPropertyName: "style", publicName: "style", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, maskStyleClass: { classPropertyName: "maskStyleClass", publicName: "maskStyleClass", isSignal: true, isRequired: false, transformFunction: null }, acceptIcon: { classPropertyName: "acceptIcon", publicName: "acceptIcon", isSignal: true, isRequired: false, transformFunction: null }, acceptLabel: { classPropertyName: "acceptLabel", publicName: "acceptLabel", isSignal: true, isRequired: false, transformFunction: null }, acceptVisible: { classPropertyName: "acceptVisible", publicName: "acceptVisible", isSignal: true, isRequired: false, transformFunction: null }, rejectIcon: { classPropertyName: "rejectIcon", publicName: "rejectIcon", isSignal: true, isRequired: false, transformFunction: null }, rejectLabel: { classPropertyName: "rejectLabel", publicName: "rejectLabel", isSignal: true, isRequired: false, transformFunction: null }, rejectVisible: { classPropertyName: "rejectVisible", publicName: "rejectVisible", isSignal: true, isRequired: false, transformFunction: null }, acceptButtonStyleClass: { classPropertyName: "acceptButtonStyleClass", publicName: "acceptButtonStyleClass", isSignal: true, isRequired: false, transformFunction: null }, rejectButtonStyleClass: { classPropertyName: "rejectButtonStyleClass", publicName: "rejectButtonStyleClass", isSignal: true, isRequired: false, transformFunction: null }, closeOnEscape: { classPropertyName: "closeOnEscape", publicName: "closeOnEscape", isSignal: true, isRequired: false, transformFunction: null }, dismissableMask: { classPropertyName: "dismissableMask", publicName: "dismissableMask", isSignal: true, isRequired: false, transformFunction: null }, blockScroll: { classPropertyName: "blockScroll", publicName: "blockScroll", isSignal: true, isRequired: false, transformFunction: null }, closable: { classPropertyName: "closable", publicName: "closable", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, key: { classPropertyName: "key", publicName: "key", isSignal: true, isRequired: false, transformFunction: null }, autoZIndex: { classPropertyName: "autoZIndex", publicName: "autoZIndex", isSignal: true, isRequired: false, transformFunction: null }, baseZIndex: { classPropertyName: "baseZIndex", publicName: "baseZIndex", isSignal: true, isRequired: false, transformFunction: null }, breakpoints: { classPropertyName: "breakpoints", publicName: "breakpoints", isSignal: true, isRequired: false, transformFunction: null }, modal: { classPropertyName: "modal", publicName: "modal", isSignal: true, isRequired: false, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, draggable: { classPropertyName: "draggable", publicName: "draggable", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { visible: "visibleChange", onHide: "onHide" }, providers: [ConfirmDialogStyle, { provide: CONFIRMDIALOG_INSTANCE, useExisting: ConfirmDialog }, { provide: PARENT_INSTANCE, useExisting: ConfirmDialog }], queries: [{ propertyName: "headerTemplate", first: true, predicate: ["header"], isSignal: true }, { propertyName: "footerTemplate", first: true, predicate: ["footer"], isSignal: true }, { propertyName: "rejectIconTemplate", first: true, predicate: ["rejecticon"], isSignal: true }, { propertyName: "acceptIconTemplate", first: true, predicate: ["accepticon"], isSignal: true }, { propertyName: "messageTemplate", first: true, predicate: ["message"], isSignal: true }, { propertyName: "iconTemplate", first: true, predicate: ["icon"], isSignal: true }, { propertyName: "headlessTemplate", first: true, predicate: ["headless"], isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }, { propertyName: "footerFacet", first: true, predicate: Footer, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "dialogViewChild", first: true, predicate: ["dialog"], descendants: true, isSignal: true }, { propertyName: "acceptButtonViewChild", first: true, predicate: ["acceptButton"], descendants: true, read: ElementRef, isSignal: true }, { propertyName: "rejectButtonViewChild", first: true, predicate: ["rejectButton"], descendants: true, read: ElementRef, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
|
|
418
447
|
<p-dialog
|
|
419
448
|
[pt]="pt()"
|
|
420
449
|
#dialog
|
|
421
450
|
[visible]="visible()"
|
|
422
451
|
(visibleChange)="onVisibleChange($event)"
|
|
423
|
-
role="alertdialog"
|
|
452
|
+
[role]="'alertdialog'"
|
|
424
453
|
[closable]="option('closable')"
|
|
425
454
|
[styleClass]="cn(cx('root'), styleClass())"
|
|
426
455
|
[modal]="option('modal')"
|
|
@@ -432,11 +461,14 @@ class ConfirmDialog extends BaseComponent {
|
|
|
432
461
|
[style]="style()"
|
|
433
462
|
[breakpoints]="breakpoints()"
|
|
434
463
|
[dismissableMask]="option('dismissableMask')"
|
|
435
|
-
[draggable]="draggable
|
|
464
|
+
[draggable]="option('draggable')"
|
|
436
465
|
[baseZIndex]="baseZIndex()"
|
|
437
466
|
[autoZIndex]="autoZIndex()"
|
|
438
467
|
[maskStyleClass]="cn(cx('mask'), maskStyleClass())"
|
|
439
468
|
[unstyled]="unstyled()"
|
|
469
|
+
[focusOnShow]="!option('defaultFocus')"
|
|
470
|
+
[closeButtonProps]="_closeButtonProps()"
|
|
471
|
+
(onShow)="onDialogShow()"
|
|
440
472
|
(onHide)="onDialogHide()"
|
|
441
473
|
>
|
|
442
474
|
@if (headlessTemplate() || _headlessTemplate()) {
|
|
@@ -454,8 +486,8 @@ class ConfirmDialog extends BaseComponent {
|
|
|
454
486
|
</ng-template>
|
|
455
487
|
} @else {
|
|
456
488
|
@if (headerTemplate() || _headerTemplate()) {
|
|
457
|
-
<ng-template #header>
|
|
458
|
-
<ng-container *ngTemplateOutlet="headerTemplate() || _headerTemplate()"></ng-container>
|
|
489
|
+
<ng-template #header let-ariaLabelledBy="ariaLabelledBy">
|
|
490
|
+
<ng-container *ngTemplateOutlet="headerTemplate() || _headerTemplate(); context: { ariaLabelledBy: ariaLabelledBy }"></ng-container>
|
|
459
491
|
</ng-template>
|
|
460
492
|
}
|
|
461
493
|
|
|
@@ -475,13 +507,14 @@ class ConfirmDialog extends BaseComponent {
|
|
|
475
507
|
</ng-template>
|
|
476
508
|
}
|
|
477
509
|
<ng-template #footer>
|
|
478
|
-
@if (footerTemplate() || _footerTemplate()) {
|
|
510
|
+
@if (footerTemplate() || _footerTemplate() || footerFacet()) {
|
|
479
511
|
<ng-content select="p-footer"></ng-content>
|
|
480
512
|
<ng-container *ngTemplateOutlet="footerTemplate() || _footerTemplate()"></ng-container>
|
|
481
513
|
}
|
|
482
|
-
@if (!footerTemplate() && !_footerTemplate()) {
|
|
514
|
+
@if (!footerTemplate() && !_footerTemplate() && !footerFacet()) {
|
|
483
515
|
@if (option('rejectVisible')) {
|
|
484
516
|
<p-button
|
|
517
|
+
#rejectButton
|
|
485
518
|
[pt]="ptm('pcRejectButton')"
|
|
486
519
|
[label]="rejectButtonLabel"
|
|
487
520
|
(onClick)="onReject()"
|
|
@@ -500,6 +533,7 @@ class ConfirmDialog extends BaseComponent {
|
|
|
500
533
|
}
|
|
501
534
|
@if (option('acceptVisible')) {
|
|
502
535
|
<p-button
|
|
536
|
+
#acceptButton
|
|
503
537
|
[pt]="ptm('pcAcceptButton')"
|
|
504
538
|
[label]="acceptButtonLabel"
|
|
505
539
|
(onClick)="onAccept()"
|
|
@@ -519,7 +553,7 @@ class ConfirmDialog extends BaseComponent {
|
|
|
519
553
|
}
|
|
520
554
|
</ng-template>
|
|
521
555
|
</p-dialog>
|
|
522
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: Button, selector: "p-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: Dialog, selector: "p-dialog", inputs: ["hostName", "header", "draggable", "resizable", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "closable", "breakpoints", "styleClass", "maskStyleClass", "maskStyle", "showHeader", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "maskMotionOptions", "motionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "closeButtonProps", "maximizeButtonProps", "visible", "style", "position", "role", "ariaLabelledBy", "appendTo", "content", "contentTemplate", "footerTemplate", "closeIconTemplate", "maximizeIconTemplate", "minimizeIconTemplate", "headlessTemplate"], outputs: ["visibleChange", "onShow", "onHide", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }, { kind: "ngmodule", type: SharedModule }, { kind: "directive", type: Bind, selector: "[pBind]", inputs: ["pBind"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
556
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: Button, selector: "p-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeSeverity", "ariaLabel", "ariaExpanded", "ariaControls", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: Dialog, selector: "p-dialog", inputs: ["hostName", "header", "draggable", "resizable", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "closable", "breakpoints", "styleClass", "maskStyleClass", "maskStyle", "showHeader", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "maskMotionOptions", "motionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "closeButtonProps", "maximizeButtonProps", "visible", "style", "position", "role", "ariaLabelledBy", "appendTo", "content", "contentTemplate", "footerTemplate", "closeIconTemplate", "maximizeIconTemplate", "minimizeIconTemplate", "headlessTemplate"], outputs: ["visibleChange", "onShow", "onHide", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }, { kind: "ngmodule", type: SharedModule }, { kind: "directive", type: Bind, selector: "[pBind]", inputs: ["pBind"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
523
557
|
}
|
|
524
558
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: ConfirmDialog, decorators: [{
|
|
525
559
|
type: Component,
|
|
@@ -532,7 +566,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
532
566
|
#dialog
|
|
533
567
|
[visible]="visible()"
|
|
534
568
|
(visibleChange)="onVisibleChange($event)"
|
|
535
|
-
role="alertdialog"
|
|
569
|
+
[role]="'alertdialog'"
|
|
536
570
|
[closable]="option('closable')"
|
|
537
571
|
[styleClass]="cn(cx('root'), styleClass())"
|
|
538
572
|
[modal]="option('modal')"
|
|
@@ -544,11 +578,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
544
578
|
[style]="style()"
|
|
545
579
|
[breakpoints]="breakpoints()"
|
|
546
580
|
[dismissableMask]="option('dismissableMask')"
|
|
547
|
-
[draggable]="draggable
|
|
581
|
+
[draggable]="option('draggable')"
|
|
548
582
|
[baseZIndex]="baseZIndex()"
|
|
549
583
|
[autoZIndex]="autoZIndex()"
|
|
550
584
|
[maskStyleClass]="cn(cx('mask'), maskStyleClass())"
|
|
551
585
|
[unstyled]="unstyled()"
|
|
586
|
+
[focusOnShow]="!option('defaultFocus')"
|
|
587
|
+
[closeButtonProps]="_closeButtonProps()"
|
|
588
|
+
(onShow)="onDialogShow()"
|
|
552
589
|
(onHide)="onDialogHide()"
|
|
553
590
|
>
|
|
554
591
|
@if (headlessTemplate() || _headlessTemplate()) {
|
|
@@ -566,8 +603,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
566
603
|
</ng-template>
|
|
567
604
|
} @else {
|
|
568
605
|
@if (headerTemplate() || _headerTemplate()) {
|
|
569
|
-
<ng-template #header>
|
|
570
|
-
<ng-container *ngTemplateOutlet="headerTemplate() || _headerTemplate()"></ng-container>
|
|
606
|
+
<ng-template #header let-ariaLabelledBy="ariaLabelledBy">
|
|
607
|
+
<ng-container *ngTemplateOutlet="headerTemplate() || _headerTemplate(); context: { ariaLabelledBy: ariaLabelledBy }"></ng-container>
|
|
571
608
|
</ng-template>
|
|
572
609
|
}
|
|
573
610
|
|
|
@@ -587,13 +624,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
587
624
|
</ng-template>
|
|
588
625
|
}
|
|
589
626
|
<ng-template #footer>
|
|
590
|
-
@if (footerTemplate() || _footerTemplate()) {
|
|
627
|
+
@if (footerTemplate() || _footerTemplate() || footerFacet()) {
|
|
591
628
|
<ng-content select="p-footer"></ng-content>
|
|
592
629
|
<ng-container *ngTemplateOutlet="footerTemplate() || _footerTemplate()"></ng-container>
|
|
593
630
|
}
|
|
594
|
-
@if (!footerTemplate() && !_footerTemplate()) {
|
|
631
|
+
@if (!footerTemplate() && !_footerTemplate() && !footerFacet()) {
|
|
595
632
|
@if (option('rejectVisible')) {
|
|
596
633
|
<p-button
|
|
634
|
+
#rejectButton
|
|
597
635
|
[pt]="ptm('pcRejectButton')"
|
|
598
636
|
[label]="rejectButtonLabel"
|
|
599
637
|
(onClick)="onReject()"
|
|
@@ -612,6 +650,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
612
650
|
}
|
|
613
651
|
@if (option('acceptVisible')) {
|
|
614
652
|
<p-button
|
|
653
|
+
#acceptButton
|
|
615
654
|
[pt]="ptm('pcAcceptButton')"
|
|
616
655
|
[label]="acceptButtonLabel"
|
|
617
656
|
(onClick)="onAccept()"
|
|
@@ -637,7 +676,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
637
676
|
providers: [ConfirmDialogStyle, { provide: CONFIRMDIALOG_INSTANCE, useExisting: ConfirmDialog }, { provide: PARENT_INSTANCE, useExisting: ConfirmDialog }],
|
|
638
677
|
hostDirectives: [Bind]
|
|
639
678
|
}]
|
|
640
|
-
}], ctorParameters: () => [], propDecorators: { header: [{ type: i0.Input, args: [{ isSignal: true, alias: "header", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], message: [{ type: i0.Input, args: [{ isSignal: true, alias: "message", required: false }] }], style: [{ type: i0.Input, args: [{ isSignal: true, alias: "style", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], maskStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "maskStyleClass", required: false }] }], acceptIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "acceptIcon", required: false }] }], acceptLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "acceptLabel", required: false }] }], acceptVisible: [{ type: i0.Input, args: [{ isSignal: true, alias: "acceptVisible", required: false }] }], rejectIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "rejectIcon", required: false }] }], rejectLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "rejectLabel", required: false }] }], rejectVisible: [{ type: i0.Input, args: [{ isSignal: true, alias: "rejectVisible", required: false }] }], acceptButtonStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "acceptButtonStyleClass", required: false }] }], rejectButtonStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "rejectButtonStyleClass", required: false }] }], closeOnEscape: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnEscape", required: false }] }], dismissableMask: [{ type: i0.Input, args: [{ isSignal: true, alias: "dismissableMask", required: false }] }], blockScroll: [{ type: i0.Input, args: [{ isSignal: true, alias: "blockScroll", required: false }] }], closable: [{ type: i0.Input, args: [{ isSignal: true, alias: "closable", required: false }] }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], key: [{ type: i0.Input, args: [{ isSignal: true, alias: "key", required: false }] }], autoZIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoZIndex", required: false }] }], baseZIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "baseZIndex", required: false }] }], breakpoints: [{ type: i0.Input, args: [{ isSignal: true, alias: "breakpoints", required: false }] }], modal: [{ type: i0.Input, args: [{ isSignal: true, alias: "modal", required: false }] }], visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: false }] }, { type: i0.Output, args: ["visibleChange"] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], draggable: [{ type: i0.Input, args: [{ isSignal: true, alias: "draggable", required: false }] }], onHide: [{ type: i0.Output, args: ["onHide"] }], headerTemplate: [{ type: i0.ContentChild, args: ['header', { ...{ descendants: false }, isSignal: true }] }], footerTemplate: [{ type: i0.ContentChild, args: ['footer', { ...{ descendants: false }, isSignal: true }] }], rejectIconTemplate: [{ type: i0.ContentChild, args: ['rejecticon', { ...{ descendants: false }, isSignal: true }] }], acceptIconTemplate: [{ type: i0.ContentChild, args: ['accepticon', { ...{ descendants: false }, isSignal: true }] }], messageTemplate: [{ type: i0.ContentChild, args: ['message', { ...{ descendants: false }, isSignal: true }] }], iconTemplate: [{ type: i0.ContentChild, args: ['icon', { ...{ descendants: false }, isSignal: true }] }], headlessTemplate: [{ type: i0.ContentChild, args: ['headless', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }] } });
|
|
679
|
+
}], ctorParameters: () => [], propDecorators: { header: [{ type: i0.Input, args: [{ isSignal: true, alias: "header", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], message: [{ type: i0.Input, args: [{ isSignal: true, alias: "message", required: false }] }], style: [{ type: i0.Input, args: [{ isSignal: true, alias: "style", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], maskStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "maskStyleClass", required: false }] }], acceptIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "acceptIcon", required: false }] }], acceptLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "acceptLabel", required: false }] }], acceptVisible: [{ type: i0.Input, args: [{ isSignal: true, alias: "acceptVisible", required: false }] }], rejectIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "rejectIcon", required: false }] }], rejectLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "rejectLabel", required: false }] }], rejectVisible: [{ type: i0.Input, args: [{ isSignal: true, alias: "rejectVisible", required: false }] }], acceptButtonStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "acceptButtonStyleClass", required: false }] }], rejectButtonStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "rejectButtonStyleClass", required: false }] }], closeOnEscape: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnEscape", required: false }] }], dismissableMask: [{ type: i0.Input, args: [{ isSignal: true, alias: "dismissableMask", required: false }] }], blockScroll: [{ type: i0.Input, args: [{ isSignal: true, alias: "blockScroll", required: false }] }], closable: [{ type: i0.Input, args: [{ isSignal: true, alias: "closable", required: false }] }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], key: [{ type: i0.Input, args: [{ isSignal: true, alias: "key", required: false }] }], autoZIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoZIndex", required: false }] }], baseZIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "baseZIndex", required: false }] }], breakpoints: [{ type: i0.Input, args: [{ isSignal: true, alias: "breakpoints", required: false }] }], modal: [{ type: i0.Input, args: [{ isSignal: true, alias: "modal", required: false }] }], visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: false }] }, { type: i0.Output, args: ["visibleChange"] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], draggable: [{ type: i0.Input, args: [{ isSignal: true, alias: "draggable", required: false }] }], onHide: [{ type: i0.Output, args: ["onHide"] }], headerTemplate: [{ type: i0.ContentChild, args: ['header', { ...{ descendants: false }, isSignal: true }] }], footerTemplate: [{ type: i0.ContentChild, args: ['footer', { ...{ descendants: false }, isSignal: true }] }], rejectIconTemplate: [{ type: i0.ContentChild, args: ['rejecticon', { ...{ descendants: false }, isSignal: true }] }], acceptIconTemplate: [{ type: i0.ContentChild, args: ['accepticon', { ...{ descendants: false }, isSignal: true }] }], messageTemplate: [{ type: i0.ContentChild, args: ['message', { ...{ descendants: false }, isSignal: true }] }], iconTemplate: [{ type: i0.ContentChild, args: ['icon', { ...{ descendants: false }, isSignal: true }] }], headlessTemplate: [{ type: i0.ContentChild, args: ['headless', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }], footerFacet: [{ type: i0.ContentChild, args: [i0.forwardRef(() => Footer), { isSignal: true }] }], dialogViewChild: [{ type: i0.ViewChild, args: ['dialog', { isSignal: true }] }], acceptButtonViewChild: [{ type: i0.ViewChild, args: ['acceptButton', { ...{ read: ElementRef }, isSignal: true }] }], rejectButtonViewChild: [{ type: i0.ViewChild, args: ['rejectButton', { ...{ read: ElementRef }, isSignal: true }] }] } });
|
|
641
680
|
class ConfirmDialogModule {
|
|
642
681
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: ConfirmDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
643
682
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.2.1", ngImport: i0, type: ConfirmDialogModule, imports: [ConfirmDialog, SharedModule], exports: [ConfirmDialog, SharedModule] });
|