@design-factory/angular 21.1.0 → 22.0.0-next.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/.ai/docs/components/accordion/accessibility.md +45 -0
- package/.ai/docs/components/accordion/api.md +279 -0
- package/.ai/docs/components/accordion/developer.md +43 -0
- package/.ai/docs/components/accordion/guidelines.md +99 -0
- package/.ai/docs/components/accordion/overview.md +17 -0
- package/.ai/docs/components/alert/accessibility.md +24 -0
- package/.ai/docs/components/alert/api.md +65 -0
- package/.ai/docs/components/alert/developer.md +63 -0
- package/.ai/docs/components/alert/guidelines.md +62 -0
- package/.ai/docs/components/alert/overview.md +12 -0
- package/.ai/docs/components/button/accessibility.md +25 -0
- package/.ai/docs/components/button/api.md +71 -0
- package/.ai/docs/components/button/developer.md +52 -0
- package/.ai/docs/components/button/guidelines.md +75 -0
- package/.ai/docs/components/button/overview.md +15 -0
- package/.ai/docs/components/buttongroup/api.md +16 -0
- package/.ai/docs/components/buttongroup/developer.md +32 -0
- package/.ai/docs/components/drawer/accessibility.md +15 -0
- package/.ai/docs/components/drawer/api.md +56 -0
- package/.ai/docs/components/drawer/developer.md +36 -0
- package/.ai/docs/components/drawer/examples.md +9 -0
- package/.ai/docs/components/drawer/guidelines.md +58 -0
- package/.ai/docs/components/drawer/overview.md +19 -0
- package/.ai/docs/components/dropdown/accessibility.md +27 -0
- package/.ai/docs/components/dropdown/api.md +85 -0
- package/.ai/docs/components/dropdown/developer.md +59 -0
- package/.ai/docs/components/dropdown/guidelines.md +80 -0
- package/.ai/docs/components/dropdown/overview.md +16 -0
- package/.ai/docs/components/sidenav/accessibility.md +48 -0
- package/.ai/docs/components/sidenav/api.md +110 -0
- package/.ai/docs/components/sidenav/developer.md +14 -0
- package/.ai/docs/components/sidenav/guidelines.md +83 -0
- package/.ai/docs/components/sidenav/overview.md +16 -0
- package/.ai/docs/components/tooltip/accessibility.md +11 -0
- package/.ai/docs/components/tooltip/api.md +39 -0
- package/.ai/docs/components/tooltip/developer.md +16 -0
- package/.ai/docs/components/tooltip/guidelines.md +84 -0
- package/.ai/docs/components/tooltip/overview.md +23 -0
- package/.ai/docs/components/topnav/accessibility.md +51 -0
- package/.ai/docs/components/topnav/api.md +190 -0
- package/.ai/docs/components/topnav/developer.md +43 -0
- package/.ai/docs/components/topnav/guidelines.md +121 -0
- package/.ai/docs/components/topnav/overview.md +17 -0
- package/.ai/docs/demos/accordion/addons-subtitle/accordion-addons-subtitle.html +75 -0
- package/.ai/docs/demos/accordion/addons-subtitle/accordion-addons-subtitle.ts +27 -0
- package/.ai/docs/demos/accordion/basic/accordion-basic.html +16 -0
- package/.ai/docs/demos/accordion/basic/accordion-basic.ts +14 -0
- package/.ai/docs/demos/accordion/close-others/accordion-close-others.html +16 -0
- package/.ai/docs/demos/accordion/close-others/accordion-close-others.ts +14 -0
- package/.ai/docs/demos/accordion/interactive/accordion-interactive.html +84 -0
- package/.ai/docs/demos/accordion/interactive/accordion-interactive.ts +30 -0
- package/.ai/docs/demos/accordion/interactive-addons-subtitle/accordion-interactive-addons-subtitle.html +126 -0
- package/.ai/docs/demos/accordion/interactive-addons-subtitle/accordion-interactive-addons-subtitle.ts +33 -0
- package/.ai/docs/demos/accordion/programmatic-control/accordion-programmatic-control.html +36 -0
- package/.ai/docs/demos/accordion/programmatic-control/accordion-programmatic-control.ts +15 -0
- package/.ai/docs/demos/accordion/selectable/accordion-selectable.html +16 -0
- package/.ai/docs/demos/accordion/selectable/accordion-selectable.ts +14 -0
- package/.ai/docs/demos/accordion/selectable-extended/accordion-selectable-extended.html +28 -0
- package/.ai/docs/demos/accordion/selectable-extended/accordion-selectable-extended.ts +80 -0
- package/.ai/docs/demos/accordion/separator/accordion-separator.html +16 -0
- package/.ai/docs/demos/accordion/separator/accordion-separator.ts +14 -0
- package/.ai/docs/demos/alert/banner/alert-banner.html +15 -0
- package/.ai/docs/demos/alert/banner/alert-banner.ts +16 -0
- package/.ai/docs/demos/alert/basic/alert-basic.html +6 -0
- package/.ai/docs/demos/alert/basic/alert-basic.ts +9 -0
- package/.ai/docs/demos/alert/card/alert-card.html +15 -0
- package/.ai/docs/demos/alert/card/alert-card.ts +9 -0
- package/.ai/docs/demos/alert/dismissal/alert-dismissal.html +5 -0
- package/.ai/docs/demos/alert/dismissal/alert-dismissal.ts +27 -0
- package/.ai/docs/demos/alert/expandable/alert-expandable.html +9 -0
- package/.ai/docs/demos/alert/expandable/alert-expandable.ts +11 -0
- package/.ai/docs/demos/button/basic/button-basic.html +4 -0
- package/.ai/docs/demos/button/basic/button-basic.ts +9 -0
- package/.ai/docs/demos/button/disabled/button-disabled.html +18 -0
- package/.ai/docs/demos/button/disabled/button-disabled.ts +12 -0
- package/.ai/docs/demos/button/icons/button-icons.html +17 -0
- package/.ai/docs/demos/button/icons/button-icons.ts +10 -0
- package/.ai/docs/demos/button/surfaces/button-surfaces.html +13 -0
- package/.ai/docs/demos/button/surfaces/button-surfaces.ts +9 -0
- package/.ai/docs/demos/button/variants/button-variants.html +49 -0
- package/.ai/docs/demos/button/variants/button-variants.ts +9 -0
- package/.ai/docs/demos/buttongroup/basic/buttongroup-basic.html +6 -0
- package/.ai/docs/demos/buttongroup/basic/buttongroup-basic.ts +10 -0
- package/.ai/docs/demos/buttongroup/disabled/buttongroup-disabled.html +6 -0
- package/.ai/docs/demos/buttongroup/disabled/buttongroup-disabled.ts +10 -0
- package/.ai/docs/demos/buttongroup/mirror/buttongroup-mirror.html +8 -0
- package/.ai/docs/demos/buttongroup/mirror/buttongroup-mirror.ts +10 -0
- package/.ai/docs/demos/buttongroup/orientation/buttongroup-orientation.html +19 -0
- package/.ai/docs/demos/buttongroup/orientation/buttongroup-orientation.ts +10 -0
- package/.ai/docs/demos/buttongroup/sizing/buttongroup-sizing.html +19 -0
- package/.ai/docs/demos/buttongroup/sizing/buttongroup-sizing.ts +10 -0
- package/.ai/docs/demos/drawer/inline/drawer-inline-basic.html +46 -0
- package/.ai/docs/demos/drawer/inline/drawer-inline-basic.ts +33 -0
- package/.ai/docs/demos/drawer/overlay/drawer-overlay-basic.html +30 -0
- package/.ai/docs/demos/drawer/overlay/drawer-overlay-basic.ts +25 -0
- package/.ai/docs/demos/dropdown/basic/dropdown-basic.html +8 -0
- package/.ai/docs/demos/dropdown/basic/dropdown-basic.ts +15 -0
- package/.ai/docs/demos/dropdown/sizes/dropdown-sizes.html +9 -0
- package/.ai/docs/demos/dropdown/sizes/dropdown-sizes.ts +21 -0
- package/.ai/docs/demos/dropdown/split/dropdown-split.html +9 -0
- package/.ai/docs/demos/dropdown/split/dropdown-split.ts +11 -0
- package/.ai/docs/demos/dropdown/toggle/dropdown-toggle.html +22 -0
- package/.ai/docs/demos/dropdown/toggle/dropdown-toggle.ts +10 -0
- package/.ai/docs/demos/sidenav/sidenav-basic-no-icon/routes.ts +95 -0
- package/.ai/docs/demos/sidenav/sidenav-basic-no-icon/sidenav-basic-no-icon.html +42 -0
- package/.ai/docs/demos/sidenav/sidenav-basic-no-icon/sidenav-basic-no-icon.ts +12 -0
- package/.ai/docs/demos/sidenav/sidenav-basic-with-icon/routes.ts +41 -0
- package/.ai/docs/demos/sidenav/sidenav-basic-with-icon/sidenav-basic-with-icon.html +34 -0
- package/.ai/docs/demos/sidenav/sidenav-basic-with-icon/sidenav-basic-with-icon.ts +12 -0
- package/.ai/docs/demos/tooltip/basic/tooltip-basic.html +1 -0
- package/.ai/docs/demos/tooltip/basic/tooltip-basic.ts +10 -0
- package/.ai/docs/demos/tooltip/placements/tooltip-placements.html +35 -0
- package/.ai/docs/demos/tooltip/placements/tooltip-placements.ts +12 -0
- package/.ai/docs/demos/tooltip/sizes/tooltip-sizes.html +5 -0
- package/.ai/docs/demos/tooltip/sizes/tooltip-sizes.ts +10 -0
- package/.ai/docs/demos/topnav/brand/topnav-brand.ts +64 -0
- package/.ai/docs/demos/topnav/environment-banner/topnav-environment-banner.ts +20 -0
- package/.ai/docs/demos/topnav/navigation/routes.ts +35 -0
- package/.ai/docs/demos/topnav/navigation/topnav-navigation-flat.ts +67 -0
- package/.ai/docs/demos/topnav/navigation/topnav-navigation-tree.ts +82 -0
- package/.ai/docs/demos/topnav/quick-actions/notifications.ts +75 -0
- package/.ai/docs/demos/topnav/quick-actions/topnav-quick-actions.ts +108 -0
- package/.ai/docs/demos/topnav/quick-actions/user-account.ts +23 -0
- package/.ai/index.md +26 -0
- package/fesm2022/design-factory-angular-accordion.mjs +1153 -0
- package/fesm2022/design-factory-angular-accordion.mjs.map +1 -0
- package/fesm2022/design-factory-angular-alert.mjs +312 -0
- package/fesm2022/design-factory-angular-alert.mjs.map +1 -0
- package/fesm2022/design-factory-angular-breakpoints.mjs +53 -0
- package/fesm2022/design-factory-angular-breakpoints.mjs.map +1 -0
- package/fesm2022/design-factory-angular-button.mjs +240 -0
- package/fesm2022/design-factory-angular-button.mjs.map +1 -0
- package/fesm2022/design-factory-angular-buttongroup.mjs +75 -0
- package/fesm2022/design-factory-angular-buttongroup.mjs.map +1 -0
- package/fesm2022/design-factory-angular-drawer.mjs +64 -62
- package/fesm2022/design-factory-angular-drawer.mjs.map +1 -1
- package/fesm2022/design-factory-angular-dropdown.mjs +323 -0
- package/fesm2022/design-factory-angular-dropdown.mjs.map +1 -0
- package/fesm2022/design-factory-angular-form-field.mjs +287 -0
- package/fesm2022/design-factory-angular-form-field.mjs.map +1 -0
- package/fesm2022/design-factory-angular-icon.mjs +24 -0
- package/fesm2022/design-factory-angular-icon.mjs.map +1 -0
- package/fesm2022/design-factory-angular-input.mjs +34 -0
- package/fesm2022/design-factory-angular-input.mjs.map +1 -0
- package/fesm2022/design-factory-angular-internals.mjs +119 -39
- package/fesm2022/design-factory-angular-internals.mjs.map +1 -1
- package/fesm2022/design-factory-angular-separator.mjs +43 -0
- package/fesm2022/design-factory-angular-separator.mjs.map +1 -0
- package/fesm2022/design-factory-angular-sidenav.mjs +652 -401
- package/fesm2022/design-factory-angular-sidenav.mjs.map +1 -1
- package/fesm2022/design-factory-angular-slider.mjs +451 -0
- package/fesm2022/design-factory-angular-slider.mjs.map +1 -0
- package/fesm2022/design-factory-angular-theme.mjs +29 -19
- package/fesm2022/design-factory-angular-theme.mjs.map +1 -1
- package/fesm2022/design-factory-angular-toggle.mjs +172 -0
- package/fesm2022/design-factory-angular-toggle.mjs.map +1 -0
- package/fesm2022/design-factory-angular-tooltip.mjs +138 -0
- package/fesm2022/design-factory-angular-tooltip.mjs.map +1 -0
- package/fesm2022/design-factory-angular-topnav.mjs +589 -589
- package/fesm2022/design-factory-angular-topnav.mjs.map +1 -1
- package/package.json +61 -8
- package/schematics/collection.json +35 -0
- package/schematics/component-migration/accordion/constants.d.ts +10 -0
- package/schematics/component-migration/accordion/constants.js +46 -0
- package/schematics/component-migration/accordion/guide.md +257 -0
- package/schematics/component-migration/accordion/index.d.ts +2 -0
- package/schematics/component-migration/accordion/index.js +5 -0
- package/schematics/component-migration/accordion/migration.d.ts +2 -0
- package/schematics/component-migration/accordion/migration.js +13 -0
- package/schematics/component-migration/accordion/schema.json +25 -0
- package/schematics/component-migration/accordion/steps/accordion-imports.d.ts +3 -0
- package/schematics/component-migration/accordion/steps/accordion-imports.js +41 -0
- package/schematics/component-migration/accordion/steps/template-migration.d.ts +3 -0
- package/schematics/component-migration/accordion/steps/template-migration.js +554 -0
- package/schematics/component-migration/accordion/steps/title-content.d.ts +9 -0
- package/schematics/component-migration/accordion/steps/title-content.js +75 -0
- package/schematics/component-migration/ai/prompt.md +83 -0
- package/schematics/component-migration/alert/guide.md +246 -0
- package/schematics/component-migration/alert/index.d.ts +2 -0
- package/schematics/component-migration/alert/index.js +5 -0
- package/schematics/component-migration/alert/migration.d.ts +2 -0
- package/schematics/component-migration/alert/migration.js +50 -0
- package/schematics/component-migration/alert/schema.json +25 -0
- package/schematics/component-migration/alert/steps/alert-imports.d.ts +4 -0
- package/schematics/component-migration/alert/steps/alert-imports.js +97 -0
- package/schematics/component-migration/alert/steps/animation-input.d.ts +3 -0
- package/schematics/component-migration/alert/steps/animation-input.js +17 -0
- package/schematics/component-migration/alert/steps/close-output.d.ts +3 -0
- package/schematics/component-migration/alert/steps/close-output.js +17 -0
- package/schematics/component-migration/alert/steps/icon-directive-imports.d.ts +3 -0
- package/schematics/component-migration/alert/steps/icon-directive-imports.js +84 -0
- package/schematics/component-migration/alert/steps/icon-directive.d.ts +3 -0
- package/schematics/component-migration/alert/steps/icon-directive.js +10 -0
- package/schematics/component-migration/alert/steps/legacy-module-imports.d.ts +3 -0
- package/schematics/component-migration/alert/steps/legacy-module-imports.js +57 -0
- package/schematics/component-migration/alert/steps/programmatic-close.d.ts +3 -0
- package/schematics/component-migration/alert/steps/programmatic-close.js +44 -0
- package/schematics/component-migration/alert/steps/selector.d.ts +3 -0
- package/schematics/component-migration/alert/steps/selector.js +18 -0
- package/schematics/component-migration/alert/steps/static-classes.d.ts +3 -0
- package/schematics/component-migration/alert/steps/static-classes.js +97 -0
- package/schematics/component-migration/alert/steps/static-type.d.ts +3 -0
- package/schematics/component-migration/alert/steps/static-type.js +28 -0
- package/schematics/component-migration/alert/steps/template-reference.d.ts +3 -0
- package/schematics/component-migration/alert/steps/template-reference.js +15 -0
- package/schematics/component-migration/alert/steps/template-todos.d.ts +3 -0
- package/schematics/component-migration/alert/steps/template-todos.js +78 -0
- package/schematics/component-migration/button/guide.md +278 -0
- package/schematics/component-migration/button/index.d.ts +2 -0
- package/schematics/component-migration/button/index.js +5 -0
- package/schematics/component-migration/button/migration.d.ts +2 -0
- package/schematics/component-migration/button/migration.js +180 -0
- package/schematics/component-migration/button/schema.json +25 -0
- package/schematics/component-migration/button/steps/static-classes.d.ts +10 -0
- package/schematics/component-migration/button/steps/static-classes.js +128 -0
- package/schematics/component-migration/button/steps/template-todos.d.ts +19 -0
- package/schematics/component-migration/button/steps/template-todos.js +120 -0
- package/schematics/component-migration/button/types.d.ts +7 -0
- package/schematics/component-migration/button/types.js +2 -0
- package/schematics/component-migration/dropdown/guide.md +252 -0
- package/schematics/component-migration/dropdown/index.d.ts +2 -0
- package/schematics/component-migration/dropdown/index.js +5 -0
- package/schematics/component-migration/dropdown/migration.d.ts +2 -0
- package/schematics/component-migration/dropdown/migration.js +41 -0
- package/schematics/component-migration/dropdown/schema.json +25 -0
- package/schematics/component-migration/dropdown/steps/dropdown-imports.d.ts +3 -0
- package/schematics/component-migration/dropdown/steps/dropdown-imports.js +308 -0
- package/schematics/component-migration/dropdown/steps/template-attributes.d.ts +10 -0
- package/schematics/component-migration/dropdown/steps/template-attributes.js +57 -0
- package/schematics/component-migration/dropdown/steps/template-helpers.d.ts +20 -0
- package/schematics/component-migration/dropdown/steps/template-helpers.js +125 -0
- package/schematics/component-migration/dropdown/steps/template-imports.d.ts +22 -0
- package/schematics/component-migration/dropdown/steps/template-imports.js +12 -0
- package/schematics/component-migration/dropdown/steps/template-items.d.ts +7 -0
- package/schematics/component-migration/dropdown/steps/template-items.js +58 -0
- package/schematics/component-migration/dropdown/steps/template-menu.d.ts +14 -0
- package/schematics/component-migration/dropdown/steps/template-menu.js +107 -0
- package/schematics/component-migration/dropdown/steps/template-todos.d.ts +19 -0
- package/schematics/component-migration/dropdown/steps/template-todos.js +118 -0
- package/schematics/component-migration/dropdown/steps/template-toggle.d.ts +9 -0
- package/schematics/component-migration/dropdown/steps/template-toggle.js +70 -0
- package/schematics/component-migration/dropdown/steps/template-wrapper.d.ts +12 -0
- package/schematics/component-migration/dropdown/steps/template-wrapper.js +105 -0
- package/schematics/component-migration/index.d.ts +3 -0
- package/schematics/component-migration/index.js +26 -0
- package/schematics/component-migration/next-steps/index.d.ts +13 -0
- package/schematics/component-migration/next-steps/index.js +34 -0
- package/schematics/component-migration/registry.d.ts +1 -0
- package/schematics/component-migration/registry.js +15 -0
- package/schematics/component-migration/schema.json +20 -0
- package/schematics/component-migration/shared/ai-handoff.d.ts +2 -0
- package/schematics/component-migration/shared/ai-handoff.js +28 -0
- package/schematics/component-migration/shared/angular-component.d.ts +10 -0
- package/schematics/component-migration/shared/angular-component.js +125 -0
- package/schematics/component-migration/shared/button-visual-classes.d.ts +24 -0
- package/schematics/component-migration/shared/button-visual-classes.js +111 -0
- package/schematics/component-migration/shared/component-context.d.ts +7 -0
- package/schematics/component-migration/shared/component-context.js +24 -0
- package/schematics/component-migration/shared/component-imports.d.ts +45 -0
- package/schematics/component-migration/shared/component-imports.js +380 -0
- package/schematics/component-migration/shared/create-component-schematic.d.ts +3 -0
- package/schematics/component-migration/shared/create-component-schematic.js +55 -0
- package/schematics/component-migration/shared/import-edits.d.ts +11 -0
- package/schematics/component-migration/shared/import-edits.js +157 -0
- package/schematics/component-migration/shared/legacy-config-todos.d.ts +3 -0
- package/schematics/component-migration/shared/legacy-config-todos.js +90 -0
- package/schematics/component-migration/shared/migrate-project.d.ts +12 -0
- package/schematics/component-migration/shared/migrate-project.js +151 -0
- package/schematics/component-migration/shared/project-templates.d.ts +15 -0
- package/schematics/component-migration/shared/project-templates.js +43 -0
- package/schematics/component-migration/shared/scan-project.d.ts +3 -0
- package/schematics/component-migration/shared/scan-project.js +24 -0
- package/schematics/component-migration/shared/static-placement.d.ts +1 -0
- package/schematics/component-migration/shared/static-placement.js +45 -0
- package/schematics/component-migration/shared/template-edits.d.ts +28 -0
- package/schematics/component-migration/shared/template-edits.js +153 -0
- package/schematics/component-migration/shared/template-result.d.ts +3 -0
- package/schematics/component-migration/shared/template-result.js +11 -0
- package/schematics/component-migration/shared/testing.d.ts +13 -0
- package/schematics/component-migration/shared/testing.js +59 -0
- package/schematics/component-migration/shared/todo-comments.d.ts +10 -0
- package/schematics/component-migration/shared/todo-comments.js +81 -0
- package/schematics/component-migration/shared/types.d.ts +41 -0
- package/schematics/component-migration/shared/types.js +2 -0
- package/schematics/component-migration/tooltip/guide.md +196 -0
- package/schematics/component-migration/tooltip/index.d.ts +2 -0
- package/schematics/component-migration/tooltip/index.js +5 -0
- package/schematics/component-migration/tooltip/migration.d.ts +2 -0
- package/schematics/component-migration/tooltip/migration.js +50 -0
- package/schematics/component-migration/tooltip/schema.json +25 -0
- package/schematics/component-migration/tooltip/steps/template-attributes.d.ts +13 -0
- package/schematics/component-migration/tooltip/steps/template-attributes.js +266 -0
- package/schematics/component-migration/tooltip/steps/template-todos.d.ts +24 -0
- package/schematics/component-migration/tooltip/steps/template-todos.js +115 -0
- package/schematics/component-migration/tooltip/steps/tooltip-imports.d.ts +3 -0
- package/schematics/component-migration/tooltip/steps/tooltip-imports.js +79 -0
- package/schematics/component-migration/utils/component-resource-collector.d.ts +34 -0
- package/schematics/component-migration/utils/component-resource-collector.js +107 -0
- package/schematics/component-migration/utils/project_tsconfig_paths.d.ts +18 -0
- package/schematics/component-migration/utils/project_tsconfig_paths.js +105 -0
- package/schematics/component-migration/utils/typescript/compiler_host.d.ts +44 -0
- package/schematics/component-migration/utils/typescript/compiler_host.js +87 -0
- package/schematics/component-migration/utils/typescript/decorators.d.ts +22 -0
- package/schematics/component-migration/utils/typescript/decorators.js +41 -0
- package/schematics/component-migration/utils/typescript/functions.d.ts +14 -0
- package/schematics/component-migration/utils/typescript/functions.js +20 -0
- package/schematics/component-migration/utils/typescript/imports.d.ts +17 -0
- package/schematics/component-migration/utils/typescript/imports.js +110 -0
- package/schematics/component-migration/utils/typescript/parse_tsconfig.d.ts +9 -0
- package/schematics/component-migration/utils/typescript/parse_tsconfig.js +29 -0
- package/schematics/component-migration/utils/typescript/property-name.d.ts +13 -0
- package/schematics/component-migration/utils/typescript/property-name.js +22 -0
- package/schematics/package.json +3 -0
- package/types/design-factory-angular-accordion.d.ts +553 -0
- package/types/design-factory-angular-alert.d.ts +166 -0
- package/types/design-factory-angular-breakpoints.d.ts +13 -0
- package/types/design-factory-angular-button.d.ts +166 -0
- package/types/design-factory-angular-buttongroup.d.ts +45 -0
- package/types/design-factory-angular-drawer.d.ts +10 -16
- package/types/design-factory-angular-dropdown.d.ts +148 -0
- package/types/design-factory-angular-form-field.d.ts +122 -0
- package/types/design-factory-angular-icon.d.ts +11 -0
- package/types/design-factory-angular-input.d.ts +16 -0
- package/types/design-factory-angular-internals.d.ts +78 -19
- package/types/design-factory-angular-separator.d.ts +29 -0
- package/types/design-factory-angular-sidenav.d.ts +98 -14
- package/types/design-factory-angular-slider.d.ts +239 -0
- package/types/design-factory-angular-toggle.d.ts +93 -0
- package/types/design-factory-angular-tooltip.d.ts +113 -0
- package/types/design-factory-angular-topnav.d.ts +35 -47
- package/drawer/README.md +0 -54
|
@@ -0,0 +1,553 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { TemplateRef } from '@angular/core';
|
|
3
|
+
import { AgnosWidgetDirective } from '@design-factory/angular/internals';
|
|
4
|
+
import { AccordionWidget, AccordionItemWidget, AccordionProps } from '@design-factory/core/components/accordion';
|
|
5
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
6
|
+
|
|
7
|
+
type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
8
|
+
/**
|
|
9
|
+
* Abstract base class for accordion variants.
|
|
10
|
+
*
|
|
11
|
+
* Provides the shared inputs, outputs and methods common to all accordion types.
|
|
12
|
+
*
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
declare abstract class DfAccordionBase extends AgnosWidgetDirective<AccordionWidget> {
|
|
16
|
+
/**
|
|
17
|
+
* An event fired when an item is shown.
|
|
18
|
+
*
|
|
19
|
+
* Event payload is the id of the item.
|
|
20
|
+
*/
|
|
21
|
+
readonly itemShown: _angular_core.OutputEmitterRef<string>;
|
|
22
|
+
/**
|
|
23
|
+
* An event fired when an item is hidden.
|
|
24
|
+
*
|
|
25
|
+
* Event payload is the id of the item.
|
|
26
|
+
*/
|
|
27
|
+
readonly itemHidden: _angular_core.OutputEmitterRef<string>;
|
|
28
|
+
/**
|
|
29
|
+
* If `true`, the accordion-item body container will be removed from the DOM when the accordion-item is collapsed. It will be just hidden otherwise.
|
|
30
|
+
*
|
|
31
|
+
* @defaultValue `true`
|
|
32
|
+
*/
|
|
33
|
+
readonly itemDestroyOnHide: _angular_core.InputSignalWithTransform<boolean | undefined, unknown>;
|
|
34
|
+
/**
|
|
35
|
+
* If `true`, accordion-item will be animated.
|
|
36
|
+
*
|
|
37
|
+
* @defaultValue `true`
|
|
38
|
+
*/
|
|
39
|
+
readonly animated: _angular_core.InputSignalWithTransform<boolean | undefined, unknown>;
|
|
40
|
+
/**
|
|
41
|
+
* The HTML heading level to use for the accordion-item-header.
|
|
42
|
+
*
|
|
43
|
+
* Should be an integer between 1 and 6, if an invalid value is provided, it will default to 2.
|
|
44
|
+
* @defaultValue 2
|
|
45
|
+
*/
|
|
46
|
+
readonly itemHeadingLevel: _angular_core.InputSignalWithTransform<HeadingLevel, HeadingLevel | "1" | "2" | "3" | "4" | "5" | "6">;
|
|
47
|
+
/**
|
|
48
|
+
* The size of the accordion.
|
|
49
|
+
*
|
|
50
|
+
* @defaultValue `'md'`
|
|
51
|
+
*/
|
|
52
|
+
readonly size: _angular_core.InputSignal<"sm" | "md" | "lg" | undefined>;
|
|
53
|
+
/**
|
|
54
|
+
* Position of the expandable icon on the accordion header.
|
|
55
|
+
*
|
|
56
|
+
* @defaultValue `'end'`
|
|
57
|
+
*/
|
|
58
|
+
readonly arrowPosition: _angular_core.InputSignal<"start" | "end" | undefined>;
|
|
59
|
+
/**
|
|
60
|
+
* Addon type to show on the left side of the accordion header.
|
|
61
|
+
*
|
|
62
|
+
* Only valid for 'default' and 'interactive' variant.
|
|
63
|
+
*
|
|
64
|
+
* @defaultValue `'none'`
|
|
65
|
+
*/
|
|
66
|
+
readonly addon: _angular_core.InputSignal<"number" | "none" | "icon" | undefined>;
|
|
67
|
+
/**
|
|
68
|
+
* In case of subtitle, defines how the subtitle is displayed.
|
|
69
|
+
*
|
|
70
|
+
* Only valid for 'default' and 'interactive'.
|
|
71
|
+
*
|
|
72
|
+
* On an interactive variant, subtitle is always displayed as inline.
|
|
73
|
+
*
|
|
74
|
+
* @defaultValue `'none'`
|
|
75
|
+
*/
|
|
76
|
+
readonly subtitleType: _angular_core.InputSignal<"none" | "inline" | "block" | undefined>;
|
|
77
|
+
/**
|
|
78
|
+
* When an item is visible (a.k.a. expanded), a separator line is shown below the item header.
|
|
79
|
+
*
|
|
80
|
+
* @defaultValue `false`
|
|
81
|
+
*/
|
|
82
|
+
readonly separator: _angular_core.InputSignalWithTransform<boolean | undefined, unknown>;
|
|
83
|
+
constructor();
|
|
84
|
+
/**
|
|
85
|
+
* Toggles an item with the given id.
|
|
86
|
+
*
|
|
87
|
+
* It will toggle an item, even if it is disabled.
|
|
88
|
+
*/
|
|
89
|
+
toggle(itemId: string): Promise<void>;
|
|
90
|
+
/**
|
|
91
|
+
* Expands an item with the given id.
|
|
92
|
+
*
|
|
93
|
+
* If closeOthers is true, it will collapse other panels.
|
|
94
|
+
*/
|
|
95
|
+
expand(itemId: string): Promise<void>;
|
|
96
|
+
/**
|
|
97
|
+
* Expands all items.
|
|
98
|
+
*
|
|
99
|
+
* If closeOthers is true and all items are closed, it will open the first one. Otherwise, it will keep the opened one.
|
|
100
|
+
*/
|
|
101
|
+
expandAll(): Promise<void>;
|
|
102
|
+
/**
|
|
103
|
+
* Checks if an item with the given id is expanded.
|
|
104
|
+
*
|
|
105
|
+
* If the itemId does not correspond to any item, it returns false.
|
|
106
|
+
*/
|
|
107
|
+
isExpanded(itemId: string): boolean;
|
|
108
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DfAccordionBase, never>;
|
|
109
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<DfAccordionBase, never, never, { "itemDestroyOnHide": { "alias": "itemDestroyOnHide"; "required": false; "isSignal": true; }; "animated": { "alias": "animated"; "required": false; "isSignal": true; }; "itemHeadingLevel": { "alias": "itemHeadingLevel"; "required": true; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "arrowPosition": { "alias": "arrowPosition"; "required": false; "isSignal": true; }; "addon": { "alias": "addon"; "required": false; "isSignal": true; }; "subtitleType": { "alias": "subtitleType"; "required": false; "isSignal": true; }; "separator": { "alias": "separator"; "required": false; "isSignal": true; }; }, { "itemShown": "itemShown"; "itemHidden": "itemHidden"; }, never, never, true, never>;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* An accordion is a vertically stacked list of headers that reveal or hide associated sections of content
|
|
114
|
+
*
|
|
115
|
+
* Each header and content section is called an accordion-item.
|
|
116
|
+
*
|
|
117
|
+
* This component is a container for these items and provides an API to handle them.
|
|
118
|
+
*
|
|
119
|
+
* @since 22.0.0
|
|
120
|
+
*/
|
|
121
|
+
declare class DfAccordion extends DfAccordionBase {
|
|
122
|
+
/**
|
|
123
|
+
* If `true`, only one accordion-item at the time can stay open.
|
|
124
|
+
*
|
|
125
|
+
* @defaultValue `false`
|
|
126
|
+
*/
|
|
127
|
+
readonly closeOthers: _angular_core.InputSignalWithTransform<boolean | undefined, unknown>;
|
|
128
|
+
/**
|
|
129
|
+
* Collapses an item with the given id.
|
|
130
|
+
*
|
|
131
|
+
* Has no effect if the itemId does not correspond to any item.
|
|
132
|
+
*/
|
|
133
|
+
collapse(itemId: string): Promise<void>;
|
|
134
|
+
/**
|
|
135
|
+
* Collapses all items.
|
|
136
|
+
*/
|
|
137
|
+
collapseAll(): Promise<void>;
|
|
138
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DfAccordion, never>;
|
|
139
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DfAccordion, "df-accordion", never, { "closeOthers": { "alias": "closeOthers"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* A directive to define a template containing the body content of the accordion item.
|
|
144
|
+
* @since 22.0.0
|
|
145
|
+
* */
|
|
146
|
+
declare class DfAccordionItemBody {
|
|
147
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DfAccordionItemBody, never>;
|
|
148
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<DfAccordionItemBody, "ng-template[dfAccordionItemBody]", never, {}, {}, never, never, true, never>;
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* A directive to define a template containing the title of the accordion item.
|
|
152
|
+
* @since 22.0.0
|
|
153
|
+
* */
|
|
154
|
+
declare class DfAccordionItemTitle {
|
|
155
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DfAccordionItemTitle, never>;
|
|
156
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<DfAccordionItemTitle, "ng-template[dfAccordionItemTitle]", never, {}, {}, never, never, true, never>;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
*
|
|
160
|
+
* An accordion item is a group of a header and a collapsible content section.
|
|
161
|
+
*
|
|
162
|
+
* It is used within an accordion component to display and hide content.
|
|
163
|
+
*
|
|
164
|
+
* This is the basic template for an accordion item. See {@link DfAccordionItemInteractive} for a template with interactive elements in the header.
|
|
165
|
+
*
|
|
166
|
+
* As its content, it accepts two directives:
|
|
167
|
+
* - `dfAccordionItemTitle`: to define the title of the accordion item.
|
|
168
|
+
* - `dfAccordionItemBody`: to define the body content of the accordion item.
|
|
169
|
+
* @since 22.0.0
|
|
170
|
+
*/
|
|
171
|
+
declare class DfAccordionItem extends AgnosWidgetDirective<AccordionItemWidget> {
|
|
172
|
+
/**
|
|
173
|
+
* The id of the accordion-item. It can be used for controlling the accordion-item via the accordion api.
|
|
174
|
+
*
|
|
175
|
+
* @defaultValue `'dfId-[number]'`
|
|
176
|
+
*/
|
|
177
|
+
readonly id: _angular_core.InputSignal<string | undefined>;
|
|
178
|
+
/**
|
|
179
|
+
* If `true`, the accordion-item body container will be removed from the DOM when the accordion-item is collapsed. It will be just hidden otherwise.
|
|
180
|
+
*
|
|
181
|
+
* @defaultValue `true`
|
|
182
|
+
*/
|
|
183
|
+
readonly destroyOnHide: _angular_core.InputSignalWithTransform<boolean | undefined, unknown>;
|
|
184
|
+
/**
|
|
185
|
+
* If `true`, the accordion-item will be disabled.
|
|
186
|
+
*
|
|
187
|
+
* It will not react to user's clicks, but still will be possible to toggle programmatically.
|
|
188
|
+
*
|
|
189
|
+
* @defaultValue `false`
|
|
190
|
+
*/
|
|
191
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean | undefined, unknown>;
|
|
192
|
+
/**
|
|
193
|
+
* If `true`, the accordion-item will be visible (expanded). Otherwise, it will be hidden (collapsed).
|
|
194
|
+
*
|
|
195
|
+
* @defaultValue `false`
|
|
196
|
+
*/
|
|
197
|
+
readonly visible: _angular_core.InputSignalWithTransform<boolean | undefined, unknown>;
|
|
198
|
+
/**
|
|
199
|
+
* An event fired when an item is shown.
|
|
200
|
+
*/
|
|
201
|
+
readonly shown: _angular_core.OutputEmitterRef<void>;
|
|
202
|
+
/**
|
|
203
|
+
* An event fired when an item is hidden.
|
|
204
|
+
*/
|
|
205
|
+
readonly hidden: _angular_core.OutputEmitterRef<void>;
|
|
206
|
+
/**
|
|
207
|
+
* An event fired when the `visible` value changes.
|
|
208
|
+
*
|
|
209
|
+
* Event payload is the new value of visible.
|
|
210
|
+
*/
|
|
211
|
+
readonly visibleChange: _angular_core.OutputEmitterRef<boolean>;
|
|
212
|
+
/**
|
|
213
|
+
* Optional input only valid if the accordion's subtitleType is 'inline' or 'block' to set custom subtitle
|
|
214
|
+
*
|
|
215
|
+
* @defaultValue `undefined`
|
|
216
|
+
* */
|
|
217
|
+
readonly subtitle: _angular_core.InputSignal<string | undefined>;
|
|
218
|
+
/**
|
|
219
|
+
* Optional input only valid for Icon variant to set custom icon class
|
|
220
|
+
*
|
|
221
|
+
* @defaultValue `undefined`
|
|
222
|
+
* */
|
|
223
|
+
readonly iconClass: _angular_core.InputSignal<string | undefined>;
|
|
224
|
+
/**
|
|
225
|
+
* Optional input only valid for addon number variant to set the custom number
|
|
226
|
+
*
|
|
227
|
+
* @defaultValue `undefined`
|
|
228
|
+
* */
|
|
229
|
+
readonly number: _angular_core.InputSignal<string | undefined>;
|
|
230
|
+
protected readonly title: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
231
|
+
protected readonly body: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
232
|
+
protected readonly accordion: DfAccordion;
|
|
233
|
+
constructor();
|
|
234
|
+
/**
|
|
235
|
+
* Toggles the item.
|
|
236
|
+
*
|
|
237
|
+
* It will toggle the item, even if it is disabled.
|
|
238
|
+
*/
|
|
239
|
+
toggle(): Promise<void>;
|
|
240
|
+
/**
|
|
241
|
+
* Expands the item.
|
|
242
|
+
*
|
|
243
|
+
* If closeOthers is true, it will collapse other panels.
|
|
244
|
+
*/
|
|
245
|
+
expand(): Promise<void>;
|
|
246
|
+
/**
|
|
247
|
+
* Collapses the item.
|
|
248
|
+
* */
|
|
249
|
+
collapse(): Promise<void>;
|
|
250
|
+
/**
|
|
251
|
+
* Checks if the item is expanded.
|
|
252
|
+
*
|
|
253
|
+
* */
|
|
254
|
+
isExpanded(): boolean;
|
|
255
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DfAccordionItem, never>;
|
|
256
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DfAccordionItem, "df-accordion-item", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "destroyOnHide": { "alias": "destroyOnHide"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "visible": { "alias": "visible"; "required": false; "isSignal": true; }; "subtitle": { "alias": "subtitle"; "required": false; "isSignal": true; }; "iconClass": { "alias": "iconClass"; "required": false; "isSignal": true; }; "number": { "alias": "number"; "required": false; "isSignal": true; }; }, { "shown": "shown"; "hidden": "hidden"; "visibleChange": "visibleChange"; }, ["title", "body"], never, true, never>;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* A directive to define a template containing an interactive element inside the accordion item header.
|
|
261
|
+
* @since 22.0.0
|
|
262
|
+
* */
|
|
263
|
+
declare class DfAccordionItemInteractiveSection {
|
|
264
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DfAccordionItemInteractiveSection, never>;
|
|
265
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<DfAccordionItemInteractiveSection, "ng-template[dfAccordionItemInteractiveSection]", never, {}, {}, never, never, true, never>;
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
*
|
|
269
|
+
* An accordion item is a group of a header and a collapsible content section.
|
|
270
|
+
*
|
|
271
|
+
* It is used within an accordion component to display and hide content.
|
|
272
|
+
*
|
|
273
|
+
* This template is for the case when it is needed an interactive section inside the header.
|
|
274
|
+
*
|
|
275
|
+
* As its content, it accepts three directives:
|
|
276
|
+
* - `dfAccordionItemTitle`: to define the title of the accordion item.
|
|
277
|
+
* - `DfAccordionItemInteractiveSection`: to define a template containing an interactive element.
|
|
278
|
+
* - `dfAccordionItemBody`: to define the body content of the accordion item.
|
|
279
|
+
* @since 22.0.0
|
|
280
|
+
*/
|
|
281
|
+
declare class DfAccordionItemInteractive extends AgnosWidgetDirective<AccordionItemWidget> {
|
|
282
|
+
/**
|
|
283
|
+
* The id of the accordion-item. It can be used for controlling the accordion-item via the accordion api.
|
|
284
|
+
*
|
|
285
|
+
* @defaultValue `'dfId-[number]'`
|
|
286
|
+
*/
|
|
287
|
+
readonly id: _angular_core.InputSignal<string | undefined>;
|
|
288
|
+
/**
|
|
289
|
+
* If `true`, the accordion-item body container will be removed from the DOM when the accordion-item is collapsed. It will be just hidden otherwise.
|
|
290
|
+
*
|
|
291
|
+
* @defaultValue `true`
|
|
292
|
+
*/
|
|
293
|
+
readonly destroyOnHide: _angular_core.InputSignalWithTransform<boolean | undefined, unknown>;
|
|
294
|
+
/**
|
|
295
|
+
* If `true`, the accordion-item will be disabled.
|
|
296
|
+
*
|
|
297
|
+
* It will not react to user's clicks, but still will be possible to toggle programmatically.
|
|
298
|
+
*
|
|
299
|
+
* @defaultValue `false`
|
|
300
|
+
*/
|
|
301
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean | undefined, unknown>;
|
|
302
|
+
/**
|
|
303
|
+
* If `true`, the accordion-item will be visible (expanded). Otherwise, it will be hidden (collapsed).
|
|
304
|
+
*
|
|
305
|
+
* @defaultValue `false`
|
|
306
|
+
*/
|
|
307
|
+
readonly visible: _angular_core.InputSignalWithTransform<boolean | undefined, unknown>;
|
|
308
|
+
/**
|
|
309
|
+
* An event fired when an item is shown.
|
|
310
|
+
*/
|
|
311
|
+
readonly shown: _angular_core.OutputEmitterRef<void>;
|
|
312
|
+
/**
|
|
313
|
+
* An event fired when an item is hidden.
|
|
314
|
+
*/
|
|
315
|
+
readonly hidden: _angular_core.OutputEmitterRef<void>;
|
|
316
|
+
/**
|
|
317
|
+
* An event fired when the `visible` value changes.
|
|
318
|
+
*
|
|
319
|
+
* Event payload is the new value of visible.
|
|
320
|
+
*/
|
|
321
|
+
readonly visibleChange: _angular_core.OutputEmitterRef<boolean>;
|
|
322
|
+
/**
|
|
323
|
+
* Optional input only valid if the accordion's subtitleType is 'inline' or 'block' to set custom subtitle
|
|
324
|
+
* */
|
|
325
|
+
readonly subtitle: _angular_core.InputSignal<string | undefined>;
|
|
326
|
+
/**
|
|
327
|
+
* Optional input only valid for Icon variant to set custom icon class
|
|
328
|
+
* */
|
|
329
|
+
readonly iconClass: _angular_core.InputSignal<string | undefined>;
|
|
330
|
+
/**
|
|
331
|
+
* Optional input only valid for addon number variant to set custom the number
|
|
332
|
+
* */
|
|
333
|
+
readonly number: _angular_core.InputSignal<string>;
|
|
334
|
+
protected readonly title: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
335
|
+
protected readonly interactiveSection: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
336
|
+
protected readonly body: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
337
|
+
protected readonly accordion: DfAccordion;
|
|
338
|
+
constructor();
|
|
339
|
+
/**
|
|
340
|
+
* Toggles the item
|
|
341
|
+
*
|
|
342
|
+
* It will toggle the item, even if it is disabled.
|
|
343
|
+
*/
|
|
344
|
+
toggle(): Promise<void>;
|
|
345
|
+
/**
|
|
346
|
+
* Expands an item.
|
|
347
|
+
*
|
|
348
|
+
* If closeOthers is true, it will collapse other panels.
|
|
349
|
+
*/
|
|
350
|
+
expand(): Promise<void>;
|
|
351
|
+
/**
|
|
352
|
+
* Collapses the item.
|
|
353
|
+
* */
|
|
354
|
+
collapse(): Promise<void>;
|
|
355
|
+
/**
|
|
356
|
+
* Checks if the item is expanded.
|
|
357
|
+
*
|
|
358
|
+
* */
|
|
359
|
+
isExpanded(): boolean;
|
|
360
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DfAccordionItemInteractive, never>;
|
|
361
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DfAccordionItemInteractive, "df-accordion-item-interactive", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "destroyOnHide": { "alias": "destroyOnHide"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "visible": { "alias": "visible"; "required": false; "isSignal": true; }; "subtitle": { "alias": "subtitle"; "required": false; "isSignal": true; }; "iconClass": { "alias": "iconClass"; "required": false; "isSignal": true; }; "number": { "alias": "number"; "required": false; "isSignal": true; }; }, { "shown": "shown"; "hidden": "hidden"; "visibleChange": "visibleChange"; }, ["title", "interactiveSection", "body"], never, true, never>;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
* A selectable accordion is a vertically stacked list of headers with built-in radio inputs,
|
|
366
|
+
* following the radio-group pattern. Expanding an item selects it.
|
|
367
|
+
*
|
|
368
|
+
* Each header and content section is a selectable accordion-item.
|
|
369
|
+
*
|
|
370
|
+
* This component is a container for these items and provides an API to handle them.
|
|
371
|
+
* It always enforces `closeOthers` behavior (only one item open at a time)
|
|
372
|
+
* and uses `role="radiogroup"` for accessibility.
|
|
373
|
+
*
|
|
374
|
+
* @since 22.0.0
|
|
375
|
+
*/
|
|
376
|
+
declare class DfAccordionSelectable extends DfAccordionBase {
|
|
377
|
+
/**
|
|
378
|
+
* The id of the accordion. Used to derive the radio group name for selectable items.
|
|
379
|
+
*/
|
|
380
|
+
readonly id: _angular_core.InputSignal<string | undefined>;
|
|
381
|
+
/**
|
|
382
|
+
* Accessible label for the radiogroup.
|
|
383
|
+
* Use when there is no visible heading that can be referenced by `ariaLabelledBy`.
|
|
384
|
+
*/
|
|
385
|
+
readonly ariaLabel: _angular_core.InputSignal<string | undefined>;
|
|
386
|
+
/**
|
|
387
|
+
* ID of an element that labels this radiogroup.
|
|
388
|
+
* Preferred over `ariaLabel` when a visible heading exists.
|
|
389
|
+
*/
|
|
390
|
+
readonly ariaLabelledBy: _angular_core.InputSignal<string | undefined>;
|
|
391
|
+
constructor();
|
|
392
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DfAccordionSelectable, never>;
|
|
393
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DfAccordionSelectable, "df-accordion-selectable", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
/**
|
|
397
|
+
* A directive to define a template containing a subsection element inside the selectable accordion item header.
|
|
398
|
+
* @since 22.0.0
|
|
399
|
+
*/
|
|
400
|
+
declare class DfAccordionItemSelectableSubsection {
|
|
401
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DfAccordionItemSelectableSubsection, never>;
|
|
402
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<DfAccordionItemSelectableSubsection, "ng-template[dfAccordionItemSelectableSubsection]", never, {}, {}, never, never, true, never>;
|
|
403
|
+
}
|
|
404
|
+
/**
|
|
405
|
+
* An accordion item with a built-in radio input in the header.
|
|
406
|
+
* Implements {@link ControlValueAccessor} so it can be used with `formControlName` or `ngModel`.
|
|
407
|
+
* All selectable items sharing the same form control act as a radio group:
|
|
408
|
+
* expanding an item selects its {@link DfAccordionItemSelectable#value | value}.
|
|
409
|
+
*
|
|
410
|
+
* As its content, it accepts two directives:
|
|
411
|
+
* - `dfAccordionItemTitle`: to define the title of the accordion item.
|
|
412
|
+
* - `dfAccordionItemBody`: to define the body content of the accordion item.
|
|
413
|
+
*
|
|
414
|
+
* Optionally:
|
|
415
|
+
* - `dfAccordionItemSelectableSubsection`: to define a subsection element inside the header.
|
|
416
|
+
* @since 22.0.0
|
|
417
|
+
*/
|
|
418
|
+
declare class DfAccordionItemSelectable extends AgnosWidgetDirective<AccordionItemWidget> implements ControlValueAccessor {
|
|
419
|
+
/**
|
|
420
|
+
* The id of the accordion-item. It can be used for controlling the accordion-item via the accordion api.
|
|
421
|
+
*
|
|
422
|
+
* @defaultValue `'dfId-[number]'`
|
|
423
|
+
*/
|
|
424
|
+
readonly id: _angular_core.InputSignal<string | undefined>;
|
|
425
|
+
/**
|
|
426
|
+
* If `true`, the accordion-item body container will be removed from the DOM when the accordion-item is collapsed. It will be just hidden otherwise.
|
|
427
|
+
*
|
|
428
|
+
* @defaultValue `true`
|
|
429
|
+
*/
|
|
430
|
+
readonly destroyOnHide: _angular_core.InputSignalWithTransform<boolean | undefined, unknown>;
|
|
431
|
+
/**
|
|
432
|
+
* If `true`, the accordion-item will be visible (expanded). Otherwise, it will be hidden (collapsed).
|
|
433
|
+
*
|
|
434
|
+
* @defaultValue `false`
|
|
435
|
+
*/
|
|
436
|
+
readonly visible: _angular_core.InputSignalWithTransform<boolean | undefined, unknown>;
|
|
437
|
+
/**
|
|
438
|
+
* The value this item represents in the radio group.
|
|
439
|
+
* When the item is expanded, this value is emitted to the form control.
|
|
440
|
+
*/
|
|
441
|
+
readonly value: _angular_core.InputSignal<string | undefined>;
|
|
442
|
+
/**
|
|
443
|
+
* An event fired when an item is shown.
|
|
444
|
+
*/
|
|
445
|
+
readonly shown: _angular_core.OutputEmitterRef<void>;
|
|
446
|
+
/**
|
|
447
|
+
* An event fired when an item is hidden.
|
|
448
|
+
*/
|
|
449
|
+
readonly hidden: _angular_core.OutputEmitterRef<void>;
|
|
450
|
+
/**
|
|
451
|
+
* An event fired when the `visible` value changes.
|
|
452
|
+
*
|
|
453
|
+
* Event payload is the new value of visible.
|
|
454
|
+
*/
|
|
455
|
+
readonly visibleChange: _angular_core.OutputEmitterRef<boolean>;
|
|
456
|
+
/**
|
|
457
|
+
* Optional input only valid if the accordion's subtitleType is 'inline' or 'block' to set custom subtitle.
|
|
458
|
+
*/
|
|
459
|
+
readonly subtitle: _angular_core.InputSignal<string | undefined>;
|
|
460
|
+
/**
|
|
461
|
+
* Optional input only valid for Icon variant to set custom icon class.
|
|
462
|
+
*/
|
|
463
|
+
readonly iconClass: _angular_core.InputSignal<string | undefined>;
|
|
464
|
+
/**
|
|
465
|
+
* Optional input only valid for addon number variant to set the number.
|
|
466
|
+
*/
|
|
467
|
+
readonly number: _angular_core.InputSignal<string>;
|
|
468
|
+
/**
|
|
469
|
+
* In case of subtitle, defines how the subtitle is displayed.
|
|
470
|
+
* Only valid for 'default' and 'card'.
|
|
471
|
+
* On a card variant, subtitle is always displayed as inline.
|
|
472
|
+
*/
|
|
473
|
+
readonly subtitleType: _angular_core.InputSignal<"none" | "inline" | "block" | undefined>;
|
|
474
|
+
protected readonly title: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
475
|
+
protected readonly body: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
476
|
+
protected readonly subsection: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
477
|
+
protected readonly accordion: DfAccordionSelectable;
|
|
478
|
+
protected readonly subtitleComputed: _angular_core.Signal<"none" | "inline" | "block">;
|
|
479
|
+
constructor();
|
|
480
|
+
/** @internal */
|
|
481
|
+
writeValue(val: string): void;
|
|
482
|
+
/** @internal */
|
|
483
|
+
registerOnChange(fn: (value: string | undefined) => void): void;
|
|
484
|
+
/** @internal */
|
|
485
|
+
registerOnTouched(fn: () => void): void;
|
|
486
|
+
/** @internal */
|
|
487
|
+
setDisabledState(isDisabled: boolean): void;
|
|
488
|
+
/**
|
|
489
|
+
* Toggles the item.
|
|
490
|
+
*
|
|
491
|
+
* It will toggle the item, even if it is disabled.
|
|
492
|
+
*/
|
|
493
|
+
toggle(): Promise<void>;
|
|
494
|
+
/**
|
|
495
|
+
* Expands the item.
|
|
496
|
+
*
|
|
497
|
+
* Since the parent accordion has closeOthers, it will collapse other panels.
|
|
498
|
+
*/
|
|
499
|
+
expand(): Promise<void>;
|
|
500
|
+
/**
|
|
501
|
+
* Collapses the item.
|
|
502
|
+
*/
|
|
503
|
+
collapse(): Promise<void>;
|
|
504
|
+
/**
|
|
505
|
+
* Checks if the item is expanded.
|
|
506
|
+
*/
|
|
507
|
+
isExpanded(): boolean;
|
|
508
|
+
/** Expand the item when the label is clicked (expand-only, no toggle). */
|
|
509
|
+
protected onLabelClick(event: MouseEvent): void;
|
|
510
|
+
private onChange;
|
|
511
|
+
private onTouched;
|
|
512
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DfAccordionItemSelectable, never>;
|
|
513
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DfAccordionItemSelectable, "df-accordion-item-selectable", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "destroyOnHide": { "alias": "destroyOnHide"; "required": false; "isSignal": true; }; "visible": { "alias": "visible"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "subtitle": { "alias": "subtitle"; "required": false; "isSignal": true; }; "iconClass": { "alias": "iconClass"; "required": false; "isSignal": true; }; "number": { "alias": "number"; "required": false; "isSignal": true; }; "subtitleType": { "alias": "subtitleType"; "required": false; "isSignal": true; }; }, { "shown": "shown"; "hidden": "hidden"; "visibleChange": "visibleChange"; }, ["title", "body", "subsection"], never, true, never>;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* Configuration options supported by {@link provideDfAccordionConfig}
|
|
518
|
+
*/
|
|
519
|
+
type DfAccordionConfig = Pick<AccordionProps, 'animated' | 'ariaToggleButtonLabel'>;
|
|
520
|
+
declare const ACCORDION_CONFIG_KEY: "accordion";
|
|
521
|
+
/**
|
|
522
|
+
* Provides the configuration for the accordion component.
|
|
523
|
+
*
|
|
524
|
+
* @example
|
|
525
|
+
* ```ts
|
|
526
|
+
* @Component({
|
|
527
|
+
* providers: [provideDfAccordionConfig({ animated: false })]
|
|
528
|
+
* })
|
|
529
|
+
* export class MyHomeComponent {}
|
|
530
|
+
* ```
|
|
531
|
+
*
|
|
532
|
+
* @param config - Partial configuration or a function that receives the parent configuration and returns a partial configuration.
|
|
533
|
+
*/
|
|
534
|
+
declare const provideDfAccordionConfig: (config?: Partial<DfAccordionConfig> | ((prevConfig: Partial<DfAccordionConfig>) => Partial<DfAccordionConfig>) | undefined) => _angular_core.FactoryProvider;
|
|
535
|
+
/**
|
|
536
|
+
* Injects the configuration for the accordion component.
|
|
537
|
+
*
|
|
538
|
+
* @example
|
|
539
|
+
* ```ts
|
|
540
|
+
* @Component({
|
|
541
|
+
* providers: [provideDfAccordionConfig()]
|
|
542
|
+
* })
|
|
543
|
+
* export class MyAccordionComponent {
|
|
544
|
+
* readonly accordionConfig = injectDfAccordionConfig();
|
|
545
|
+
* }
|
|
546
|
+
* ```
|
|
547
|
+
*
|
|
548
|
+
* @returns A writable signal containing the accordion configuration.
|
|
549
|
+
*/
|
|
550
|
+
declare const injectDfAccordionConfig: () => _angular_core.WritableSignal<Partial<DfAccordionConfig>>;
|
|
551
|
+
|
|
552
|
+
export { ACCORDION_CONFIG_KEY, DfAccordion, DfAccordionItem, DfAccordionItemBody, DfAccordionItemInteractive, DfAccordionItemInteractiveSection, DfAccordionItemSelectable, DfAccordionItemSelectableSubsection, DfAccordionItemTitle, DfAccordionSelectable, injectDfAccordionConfig, provideDfAccordionConfig };
|
|
553
|
+
export type { DfAccordionConfig };
|