@tailng-ui/components 0.17.0 → 0.19.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/package.json +16 -5
- package/src/lib/feedback/empty/tng-empty.component.d.ts +16 -1
- package/src/lib/feedback/empty/tng-empty.component.d.ts.map +1 -1
- package/src/lib/feedback/empty/tng-empty.component.js +47 -57
- package/src/lib/feedback/empty/tng-empty.component.js.map +1 -1
- package/src/lib/feedback/index.d.ts +0 -5
- package/src/lib/feedback/index.d.ts.map +1 -1
- package/src/lib/feedback/index.js +4 -5
- package/src/lib/feedback/index.js.map +1 -1
- package/src/lib/feedback/progress-bar/tng-progress-bar.component.d.ts +4 -0
- package/src/lib/feedback/progress-bar/tng-progress-bar.component.d.ts.map +1 -1
- package/src/lib/feedback/progress-bar/tng-progress-bar.component.js +16 -26
- package/src/lib/feedback/progress-bar/tng-progress-bar.component.js.map +1 -1
- package/src/lib/feedback/progress-spinner/tng-progress-spinner.component.d.ts +4 -0
- package/src/lib/feedback/progress-spinner/tng-progress-spinner.component.d.ts.map +1 -1
- package/src/lib/feedback/progress-spinner/tng-progress-spinner.component.js +18 -32
- package/src/lib/feedback/progress-spinner/tng-progress-spinner.component.js.map +1 -1
- package/src/lib/feedback/skeleton/tng-skeleton.component.d.ts +4 -0
- package/src/lib/feedback/skeleton/tng-skeleton.component.d.ts.map +1 -1
- package/src/lib/feedback/skeleton/tng-skeleton.component.js +14 -20
- package/src/lib/feedback/skeleton/tng-skeleton.component.js.map +1 -1
- package/src/lib/feedback/toast/tng-toast.component.d.ts +4 -1
- package/src/lib/feedback/toast/tng-toast.component.d.ts.map +1 -1
- package/src/lib/feedback/toast/tng-toast.component.js +17 -19
- package/src/lib/feedback/toast/tng-toast.component.js.map +1 -1
- package/src/lib/form/autocomplete/tng-autocomplete.component.d.ts +4 -0
- package/src/lib/form/autocomplete/tng-autocomplete.component.d.ts.map +1 -1
- package/src/lib/form/autocomplete/tng-autocomplete.component.js +46 -49
- package/src/lib/form/autocomplete/tng-autocomplete.component.js.map +1 -1
- package/src/lib/form/button-toggle/tng-button-toggle-group.component.d.ts +3 -0
- package/src/lib/form/button-toggle/tng-button-toggle-group.component.d.ts.map +1 -1
- package/src/lib/form/button-toggle/tng-button-toggle-group.component.js +33 -58
- package/src/lib/form/button-toggle/tng-button-toggle-group.component.js.map +1 -1
- package/src/lib/form/button-toggle/tng-button-toggle.component.d.ts +3 -0
- package/src/lib/form/button-toggle/tng-button-toggle.component.d.ts.map +1 -1
- package/src/lib/form/button-toggle/tng-button-toggle.component.js +15 -26
- package/src/lib/form/button-toggle/tng-button-toggle.component.js.map +1 -1
- package/src/lib/form/checkbox/tng-checkbox.component.d.ts +3 -0
- package/src/lib/form/checkbox/tng-checkbox.component.d.ts.map +1 -1
- package/src/lib/form/checkbox/tng-checkbox.component.js +32 -42
- package/src/lib/form/checkbox/tng-checkbox.component.js.map +1 -1
- package/src/lib/form/chips/tng-chips.component.d.ts +3 -0
- package/src/lib/form/chips/tng-chips.component.d.ts.map +1 -1
- package/src/lib/form/chips/tng-chips.component.js +14 -19
- package/src/lib/form/chips/tng-chips.component.js.map +1 -1
- package/src/lib/form/combobox/tng-combobox.component.d.ts +3 -0
- package/src/lib/form/combobox/tng-combobox.component.d.ts.map +1 -1
- package/src/lib/form/combobox/tng-combobox.component.js +10 -13
- package/src/lib/form/combobox/tng-combobox.component.js.map +1 -1
- package/src/lib/form/datepicker/tng-datepicker.component.d.ts +4 -1
- package/src/lib/form/datepicker/tng-datepicker.component.d.ts.map +1 -1
- package/src/lib/form/datepicker/tng-datepicker.component.js +58 -98
- package/src/lib/form/datepicker/tng-datepicker.component.js.map +1 -1
- package/src/lib/form/form-field/tng-form-field.component.d.ts +3 -0
- package/src/lib/form/form-field/tng-form-field.component.d.ts.map +1 -1
- package/src/lib/form/form-field/tng-form-field.component.js +28 -33
- package/src/lib/form/form-field/tng-form-field.component.js.map +1 -1
- package/src/lib/form/index.d.ts +0 -20
- package/src/lib/form/index.d.ts.map +1 -1
- package/src/lib/form/index.js +4 -20
- package/src/lib/form/index.js.map +1 -1
- package/src/lib/form/input/tng-input.component.d.ts +3 -0
- package/src/lib/form/input/tng-input.component.d.ts.map +1 -1
- package/src/lib/form/input/tng-input.component.js +49 -60
- package/src/lib/form/input/tng-input.component.js.map +1 -1
- package/src/lib/form/input-otp/tng-input-otp.component.d.ts +3 -0
- package/src/lib/form/input-otp/tng-input-otp.component.d.ts.map +1 -1
- package/src/lib/form/input-otp/tng-input-otp.component.js +55 -69
- package/src/lib/form/input-otp/tng-input-otp.component.js.map +1 -1
- package/src/lib/form/label/tng-label.component.d.ts +3 -0
- package/src/lib/form/label/tng-label.component.d.ts.map +1 -1
- package/src/lib/form/label/tng-label.component.js +12 -19
- package/src/lib/form/label/tng-label.component.js.map +1 -1
- package/src/lib/form/multi-autocomplete/tng-multi-autocomplete.component.d.ts +4 -0
- package/src/lib/form/multi-autocomplete/tng-multi-autocomplete.component.d.ts.map +1 -1
- package/src/lib/form/multi-autocomplete/tng-multi-autocomplete.component.js +40 -43
- package/src/lib/form/multi-autocomplete/tng-multi-autocomplete.component.js.map +1 -1
- package/src/lib/form/multiselect/tng-multiselect.component.d.ts +4 -0
- package/src/lib/form/multiselect/tng-multiselect.component.d.ts.map +1 -1
- package/src/lib/form/multiselect/tng-multiselect.component.js +49 -52
- package/src/lib/form/multiselect/tng-multiselect.component.js.map +1 -1
- package/src/lib/form/radio/tng-radio.component.d.ts +3 -0
- package/src/lib/form/radio/tng-radio.component.d.ts.map +1 -1
- package/src/lib/form/radio/tng-radio.component.js +18 -33
- package/src/lib/form/radio/tng-radio.component.js.map +1 -1
- package/src/lib/form/select/tng-select.component.d.ts +4 -0
- package/src/lib/form/select/tng-select.component.d.ts.map +1 -1
- package/src/lib/form/select/tng-select.component.js +52 -53
- package/src/lib/form/select/tng-select.component.js.map +1 -1
- package/src/lib/form/select/tng-select.slots.d.ts +5 -0
- package/src/lib/form/select/tng-select.slots.d.ts.map +1 -1
- package/src/lib/form/select/tng-select.slots.js +21 -17
- package/src/lib/form/select/tng-select.slots.js.map +1 -1
- package/src/lib/form/slider/tng-slider.component.d.ts +3 -0
- package/src/lib/form/slider/tng-slider.component.d.ts.map +1 -1
- package/src/lib/form/slider/tng-slider.component.js +14 -27
- package/src/lib/form/slider/tng-slider.component.js.map +1 -1
- package/src/lib/form/switch/tng-switch.component.d.ts +3 -0
- package/src/lib/form/switch/tng-switch.component.d.ts.map +1 -1
- package/src/lib/form/switch/tng-switch.component.js +15 -24
- package/src/lib/form/switch/tng-switch.component.js.map +1 -1
- package/src/lib/form/textarea/tng-textarea.component.d.ts +3 -0
- package/src/lib/form/textarea/tng-textarea.component.d.ts.map +1 -1
- package/src/lib/form/textarea/tng-textarea.component.js +19 -36
- package/src/lib/form/textarea/tng-textarea.component.js.map +1 -1
- package/src/lib/form/toggle/tng-toggle.component.d.ts +3 -0
- package/src/lib/form/toggle/tng-toggle.component.d.ts.map +1 -1
- package/src/lib/form/toggle/tng-toggle.component.js +41 -41
- package/src/lib/form/toggle/tng-toggle.component.js.map +1 -1
- package/src/lib/form/toggle-group/tng-toggle-group.component.d.ts +4 -0
- package/src/lib/form/toggle-group/tng-toggle-group.component.d.ts.map +1 -1
- package/src/lib/form/toggle-group/tng-toggle-group.component.js +28 -31
- package/src/lib/form/toggle-group/tng-toggle-group.component.js.map +1 -1
- package/src/lib/layout/accordion/tng-accordion.component.d.ts +10 -0
- package/src/lib/layout/accordion/tng-accordion.component.d.ts.map +1 -1
- package/src/lib/layout/accordion/tng-accordion.component.js +49 -148
- package/src/lib/layout/accordion/tng-accordion.component.js.map +1 -1
- package/src/lib/layout/bottom-sheet/tng-bottom-sheet.component.d.ts +3 -0
- package/src/lib/layout/bottom-sheet/tng-bottom-sheet.component.d.ts.map +1 -1
- package/src/lib/layout/bottom-sheet/tng-bottom-sheet.component.js +10 -13
- package/src/lib/layout/bottom-sheet/tng-bottom-sheet.component.js.map +1 -1
- package/src/lib/layout/card/tng-card.component.d.ts +21 -0
- package/src/lib/layout/card/tng-card.component.d.ts.map +1 -1
- package/src/lib/layout/card/tng-card.component.js +92 -136
- package/src/lib/layout/card/tng-card.component.js.map +1 -1
- package/src/lib/layout/collapsible/tng-collapsible.component.d.ts +3 -0
- package/src/lib/layout/collapsible/tng-collapsible.component.d.ts.map +1 -1
- package/src/lib/layout/collapsible/tng-collapsible.component.js +17 -24
- package/src/lib/layout/collapsible/tng-collapsible.component.js.map +1 -1
- package/src/lib/layout/drawer/tng-drawer.component.d.ts +4 -0
- package/src/lib/layout/drawer/tng-drawer.component.d.ts.map +1 -1
- package/src/lib/layout/drawer/tng-drawer.component.js +48 -51
- package/src/lib/layout/drawer/tng-drawer.component.js.map +1 -1
- package/src/lib/layout/grid/tng-grid.component.d.ts +8 -0
- package/src/lib/layout/grid/tng-grid.component.d.ts.map +1 -1
- package/src/lib/layout/grid/tng-grid.component.js +48 -110
- package/src/lib/layout/grid/tng-grid.component.js.map +1 -1
- package/src/lib/layout/index.d.ts +1 -8
- package/src/lib/layout/index.d.ts.map +1 -1
- package/src/lib/layout/index.js +5 -8
- package/src/lib/layout/index.js.map +1 -1
- package/src/lib/layout/separator/tng-separator.component.d.ts +3 -0
- package/src/lib/layout/separator/tng-separator.component.d.ts.map +1 -1
- package/src/lib/layout/separator/tng-separator.component.js +11 -16
- package/src/lib/layout/separator/tng-separator.component.js.map +1 -1
- package/src/lib/layout/stepper/tng-stepper.component.d.ts +3 -0
- package/src/lib/layout/stepper/tng-stepper.component.d.ts.map +1 -1
- package/src/lib/layout/stepper/tng-stepper.component.js +10 -13
- package/src/lib/layout/stepper/tng-stepper.component.js.map +1 -1
- package/src/lib/navigation/breadcrumb/tng-breadcrumb-item.component.d.ts +4 -0
- package/src/lib/navigation/breadcrumb/tng-breadcrumb-item.component.d.ts.map +1 -1
- package/src/lib/navigation/breadcrumb/tng-breadcrumb-item.component.js +47 -49
- package/src/lib/navigation/breadcrumb/tng-breadcrumb-item.component.js.map +1 -1
- package/src/lib/navigation/breadcrumb/tng-breadcrumb-link.component.d.ts +4 -0
- package/src/lib/navigation/breadcrumb/tng-breadcrumb-link.component.d.ts.map +1 -1
- package/src/lib/navigation/breadcrumb/tng-breadcrumb-link.component.js +16 -18
- package/src/lib/navigation/breadcrumb/tng-breadcrumb-link.component.js.map +1 -1
- package/src/lib/navigation/breadcrumb/tng-breadcrumb-list.component.d.ts +4 -0
- package/src/lib/navigation/breadcrumb/tng-breadcrumb-list.component.d.ts.map +1 -1
- package/src/lib/navigation/breadcrumb/tng-breadcrumb-list.component.js +10 -12
- package/src/lib/navigation/breadcrumb/tng-breadcrumb-list.component.js.map +1 -1
- package/src/lib/navigation/breadcrumb/tng-breadcrumb-separator-template.directive.d.ts +3 -0
- package/src/lib/navigation/breadcrumb/tng-breadcrumb-separator-template.directive.d.ts.map +1 -1
- package/src/lib/navigation/breadcrumb/tng-breadcrumb-separator-template.directive.js +12 -10
- package/src/lib/navigation/breadcrumb/tng-breadcrumb-separator-template.directive.js.map +1 -1
- package/src/lib/navigation/breadcrumb/tng-breadcrumb-separator.component.d.ts +4 -0
- package/src/lib/navigation/breadcrumb/tng-breadcrumb-separator.component.d.ts.map +1 -1
- package/src/lib/navigation/breadcrumb/tng-breadcrumb-separator.component.js +12 -14
- package/src/lib/navigation/breadcrumb/tng-breadcrumb-separator.component.js.map +1 -1
- package/src/lib/navigation/breadcrumb/tng-breadcrumb.component.d.ts +4 -0
- package/src/lib/navigation/breadcrumb/tng-breadcrumb.component.d.ts.map +1 -1
- package/src/lib/navigation/breadcrumb/tng-breadcrumb.component.js +23 -25
- package/src/lib/navigation/breadcrumb/tng-breadcrumb.component.js.map +1 -1
- package/src/lib/navigation/context-menu/tng-context-menu.component.d.ts +5 -0
- package/src/lib/navigation/context-menu/tng-context-menu.component.d.ts.map +1 -1
- package/src/lib/navigation/context-menu/tng-context-menu.component.js +24 -26
- package/src/lib/navigation/context-menu/tng-context-menu.component.js.map +1 -1
- package/src/lib/navigation/dropdown-menu/tng-dropdown-menu.component.d.ts +4 -0
- package/src/lib/navigation/dropdown-menu/tng-dropdown-menu.component.d.ts.map +1 -1
- package/src/lib/navigation/dropdown-menu/tng-dropdown-menu.component.js +19 -23
- package/src/lib/navigation/dropdown-menu/tng-dropdown-menu.component.js.map +1 -1
- package/src/lib/navigation/index.d.ts +0 -12
- package/src/lib/navigation/index.d.ts.map +1 -1
- package/src/lib/navigation/index.js +4 -12
- package/src/lib/navigation/index.js.map +1 -1
- package/src/lib/navigation/menu/tng-menu-trigger-for.directive.d.ts +3 -0
- package/src/lib/navigation/menu/tng-menu-trigger-for.directive.d.ts.map +1 -1
- package/src/lib/navigation/menu/tng-menu-trigger-for.directive.js +22 -20
- package/src/lib/navigation/menu/tng-menu-trigger-for.directive.js.map +1 -1
- package/src/lib/navigation/menu/tng-menu.component.d.ts +5 -0
- package/src/lib/navigation/menu/tng-menu.component.d.ts.map +1 -1
- package/src/lib/navigation/menu/tng-menu.component.js +21 -23
- package/src/lib/navigation/menu/tng-menu.component.js.map +1 -1
- package/src/lib/navigation/menubar/tng-menubar.component.d.ts +5 -0
- package/src/lib/navigation/menubar/tng-menubar.component.d.ts.map +1 -1
- package/src/lib/navigation/menubar/tng-menubar.component.js +20 -22
- package/src/lib/navigation/menubar/tng-menubar.component.js.map +1 -1
- package/src/lib/navigation/navigation-menu/tng-navigation-menu.component.d.ts +4 -0
- package/src/lib/navigation/navigation-menu/tng-navigation-menu.component.d.ts.map +1 -1
- package/src/lib/navigation/navigation-menu/tng-navigation-menu.component.js +11 -13
- package/src/lib/navigation/navigation-menu/tng-navigation-menu.component.js.map +1 -1
- package/src/lib/navigation/tabs/tng-tabs.component.d.ts +5 -0
- package/src/lib/navigation/tabs/tng-tabs.component.d.ts.map +1 -1
- package/src/lib/navigation/tabs/tng-tabs.component.js +32 -34
- package/src/lib/navigation/tabs/tng-tabs.component.js.map +1 -1
- package/src/lib/navigation/toolbar/tng-toolbar.component.d.ts +4 -0
- package/src/lib/navigation/toolbar/tng-toolbar.component.d.ts.map +1 -1
- package/src/lib/navigation/toolbar/tng-toolbar.component.js +11 -13
- package/src/lib/navigation/toolbar/tng-toolbar.component.js.map +1 -1
- package/src/lib/overlay/dialog/tng-dialog.component.d.ts +4 -0
- package/src/lib/overlay/dialog/tng-dialog.component.d.ts.map +1 -1
- package/src/lib/overlay/dialog/tng-dialog.component.js +18 -25
- package/src/lib/overlay/dialog/tng-dialog.component.js.map +1 -1
- package/src/lib/overlay/index.d.ts +0 -3
- package/src/lib/overlay/index.d.ts.map +1 -1
- package/src/lib/overlay/index.js +4 -3
- package/src/lib/overlay/index.js.map +1 -1
- package/src/lib/overlay/popover/tng-popover.component.d.ts +4 -0
- package/src/lib/overlay/popover/tng-popover.component.d.ts.map +1 -1
- package/src/lib/overlay/popover/tng-popover.component.js +23 -37
- package/src/lib/overlay/popover/tng-popover.component.js.map +1 -1
- package/src/lib/overlay/tooltip/tng-tooltip.component.d.ts +4 -0
- package/src/lib/overlay/tooltip/tng-tooltip.component.d.ts.map +1 -1
- package/src/lib/overlay/tooltip/tng-tooltip.component.js +17 -21
- package/src/lib/overlay/tooltip/tng-tooltip.component.js.map +1 -1
- package/src/lib/utility/avatar/tng-avatar.component.d.ts +4 -1
- package/src/lib/utility/avatar/tng-avatar.component.d.ts.map +1 -1
- package/src/lib/utility/avatar/tng-avatar.component.js +20 -22
- package/src/lib/utility/avatar/tng-avatar.component.js.map +1 -1
- package/src/lib/utility/badge/tng-badge.component.d.ts +4 -0
- package/src/lib/utility/badge/tng-badge.component.d.ts.map +1 -1
- package/src/lib/utility/badge/tng-badge.component.js +13 -10
- package/src/lib/utility/badge/tng-badge.component.js.map +1 -1
- package/src/lib/utility/button/tng-button.component.d.ts +4 -1
- package/src/lib/utility/button/tng-button.component.d.ts.map +1 -1
- package/src/lib/utility/button/tng-button.component.js +19 -29
- package/src/lib/utility/button/tng-button.component.js.map +1 -1
- package/src/lib/utility/code-block/tng-code-block.component.d.ts +4 -0
- package/src/lib/utility/code-block/tng-code-block.component.d.ts.map +1 -1
- package/src/lib/utility/code-block/tng-code-block.component.js +73 -103
- package/src/lib/utility/code-block/tng-code-block.component.js.map +1 -1
- package/src/lib/utility/copy-button/tng-copy-button.component.d.ts +4 -1
- package/src/lib/utility/copy-button/tng-copy-button.component.d.ts.map +1 -1
- package/src/lib/utility/copy-button/tng-copy-button.component.js +28 -36
- package/src/lib/utility/copy-button/tng-copy-button.component.js.map +1 -1
- package/src/lib/utility/index.d.ts +1 -9
- package/src/lib/utility/index.d.ts.map +1 -1
- package/src/lib/utility/index.js +5 -8
- package/src/lib/utility/index.js.map +1 -1
- package/src/lib/utility/tag/tng-tag.component.d.ts +4 -1
- package/src/lib/utility/tag/tng-tag.component.d.ts.map +1 -1
- package/src/lib/utility/tag/tng-tag.component.js +18 -24
- package/src/lib/utility/tag/tng-tag.component.js.map +1 -1
- package/src/lib/utility/tree/tng-tree.component.d.ts +4 -1
- package/src/lib/utility/tree/tng-tree.component.d.ts.map +1 -1
- package/src/lib/utility/tree/tng-tree.component.js +23 -25
- package/src/lib/utility/tree/tng-tree.component.js.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tng-breadcrumb-item.component.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/tailng-ui/components/src/lib/navigation/breadcrumb/tng-breadcrumb-item.component.ts"],"names":[],"mappings":"AACA,OAAO,EAQL,KAAK,WAAW,EACjB,MAAM,eAAe,CAAC;AAMvB,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC
|
|
1
|
+
{"version":3,"file":"tng-breadcrumb-item.component.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/tailng-ui/components/src/lib/navigation/breadcrumb/tng-breadcrumb-item.component.ts"],"names":[],"mappings":"AACA,OAAO,EAQL,KAAK,WAAW,EACjB,MAAM,eAAe,CAAC;AAMvB,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;;AAG/B,MAAM,MAAM,4B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Aa,IAAI,IAAI;IAK/B,SAAS,CAAC,WAAW,IAAI,IAAI;IAK7B,SAAS,CAAC,YAAY,IAAI,IAAI;IAK9B,SAAS,CAAC,SAAS,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAa5C,SAAS,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;yCAxHlC,0BAA0B;2CAA1B,0BAA0B;CAiItC;AACD,OAAO,EAAE,0BAA0B,IAAI,iBAAiB,EAAE,CAAC"}
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
1
|
import { NgTemplateOutlet } from '@angular/common';
|
|
3
2
|
import { booleanAttribute, Component, ElementRef, HostListener, inject, input, signal, } from '@angular/core';
|
|
4
3
|
import { RouterLink } from '@angular/router';
|
|
5
4
|
import { TngBreadcrumbItem as TngBreadcrumbItemPrimitive, TngBreadcrumbLink as TngBreadcrumbLinkPrimitive, } from '@tailng-ui/primitives';
|
|
6
5
|
import { Subject } from 'rxjs';
|
|
7
6
|
import { TngBreadcrumbSeparatorComponent } from './tng-breadcrumb-separator.component';
|
|
8
|
-
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export class TngBreadcrumbItemComponent {
|
|
9
9
|
hostRef = inject(ElementRef);
|
|
10
10
|
keyboardModality = false;
|
|
11
11
|
stateChanges = new Subject();
|
|
12
|
-
current = input(false, { transform: booleanAttribute });
|
|
13
|
-
currentAsLink = input(false, { transform: booleanAttribute });
|
|
14
|
-
disabled = input(false, { transform: booleanAttribute });
|
|
15
|
-
href = input(null);
|
|
16
|
-
routerLink = input(null);
|
|
17
|
-
isFocused = signal(false);
|
|
18
|
-
isFocusVisible = signal(false);
|
|
19
|
-
displayMode = signal('visible');
|
|
20
|
-
collapseLabel = signal('More');
|
|
21
|
-
isResolvedCurrent = signal(false);
|
|
22
|
-
separator = signal('/');
|
|
23
|
-
separatorTemplate = signal(null);
|
|
24
|
-
showSeparator = signal(false);
|
|
12
|
+
current = input(false, { ...(ngDevMode ? { debugName: "current" } : {}), transform: booleanAttribute });
|
|
13
|
+
currentAsLink = input(false, { ...(ngDevMode ? { debugName: "currentAsLink" } : {}), transform: booleanAttribute });
|
|
14
|
+
disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : {}), transform: booleanAttribute });
|
|
15
|
+
href = input(null, ...(ngDevMode ? [{ debugName: "href" }] : []));
|
|
16
|
+
routerLink = input(null, ...(ngDevMode ? [{ debugName: "routerLink" }] : []));
|
|
17
|
+
isFocused = signal(false, ...(ngDevMode ? [{ debugName: "isFocused" }] : []));
|
|
18
|
+
isFocusVisible = signal(false, ...(ngDevMode ? [{ debugName: "isFocusVisible" }] : []));
|
|
19
|
+
displayMode = signal('visible', ...(ngDevMode ? [{ debugName: "displayMode" }] : []));
|
|
20
|
+
collapseLabel = signal('More', ...(ngDevMode ? [{ debugName: "collapseLabel" }] : []));
|
|
21
|
+
isResolvedCurrent = signal(false, ...(ngDevMode ? [{ debugName: "isResolvedCurrent" }] : []));
|
|
22
|
+
separator = signal('/', ...(ngDevMode ? [{ debugName: "separator" }] : []));
|
|
23
|
+
separatorTemplate = signal(null, ...(ngDevMode ? [{ debugName: "separatorTemplate" }] : []));
|
|
24
|
+
showSeparator = signal(false, ...(ngDevMode ? [{ debugName: "showSeparator" }] : []));
|
|
25
25
|
constructor() {
|
|
26
26
|
this.current();
|
|
27
27
|
this.currentAsLink();
|
|
@@ -100,38 +100,36 @@ let TngBreadcrumbItemComponent = class TngBreadcrumbItemComponent {
|
|
|
100
100
|
this.isFocused.set(false);
|
|
101
101
|
this.isFocusVisible.set(false);
|
|
102
102
|
}
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
],
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
],
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
],
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
], TngBreadcrumbItemComponent);
|
|
136
|
-
export { TngBreadcrumbItemComponent };
|
|
103
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: TngBreadcrumbItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
104
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.1", type: TngBreadcrumbItemComponent, isStandalone: true, selector: "tng-breadcrumb-item", inputs: { current: { classPropertyName: "current", publicName: "current", isSignal: true, isRequired: false, transformFunction: null }, currentAsLink: { classPropertyName: "currentAsLink", publicName: "currentAsLink", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, href: { classPropertyName: "href", publicName: "href", isSignal: true, isRequired: false, transformFunction: null }, routerLink: { classPropertyName: "routerLink", publicName: "routerLink", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "keydown": "onKeydown()", "pointerdown": "onPointerdown()", "mousedown": "onMousedown()", "touchstart": "onTouchstart()", "focusin": "onFocusin($event)", "focusout": "onFocusout($event)" } }, usesOnChanges: true, ngImport: i0, template: "<ng-template #projectedContent>\n <ng-content />\n</ng-template>\n\n<li\n tngBreadcrumbItem\n class=\"tng-breadcrumb-item\"\n [attr.data-collapsed]=\"displayMode() === 'ellipsis' ? 'true' : null\"\n [attr.data-current]=\"isResolvedCurrent() ? 'true' : null\"\n [attr.data-disabled]=\"disabled() ? 'true' : null\"\n [attr.data-focused]=\"isFocused() ? 'true' : null\"\n [attr.data-focus-visible]=\"isFocusVisible() ? 'true' : null\"\n [hidden]=\"displayMode() === 'hidden'\"\n>\n @switch (displayMode()) {\n @case ('ellipsis') {\n <span class=\"tng-breadcrumb-item-ellipsis\" [attr.aria-label]=\"collapseLabel()\" aria-hidden=\"true\">\u2026</span>\n }\n @default {\n @if (shouldRenderLink()) {\n @if (hasRouterLink()) {\n <a\n tngBreadcrumbLink\n class=\"tng-breadcrumb-item-link\"\n [attr.aria-current]=\"isResolvedCurrent() ? 'page' : null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n [attr.tabindex]=\"disabled() ? '-1' : null\"\n [routerLink]=\"routerLink()\"\n (click)=\"onLinkClick($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"projectedContent\" />\n </a>\n } @else {\n <a\n tngBreadcrumbLink\n class=\"tng-breadcrumb-item-link\"\n [attr.aria-current]=\"isResolvedCurrent() ? 'page' : null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n [attr.href]=\"href()\"\n [attr.tabindex]=\"disabled() ? '-1' : null\"\n (click)=\"onLinkClick($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"projectedContent\" />\n </a>\n }\n } @else {\n <span class=\"tng-breadcrumb-item-text\" [attr.aria-current]=\"isResolvedCurrent() ? 'page' : null\">\n <ng-container [ngTemplateOutlet]=\"projectedContent\" />\n </span>\n }\n }\n }\n\n @if (showSeparator()) {\n <tng-breadcrumb-separator [symbol]=\"separator()\" [template]=\"separatorTemplate()\" />\n }\n</li>\n", styles: [":host {\n display: contents;\n}\n\n.tng-breadcrumb-item {\n align-items: center;\n display: inline-flex;\n gap: 0.45rem;\n}\n\n.tng-breadcrumb-item-link {\n color: var(--tng-semantic-accent-brand);\n text-decoration: none;\n}\n\n.tng-breadcrumb-item-link:hover {\n text-decoration: underline;\n}\n\n.tng-breadcrumb-item-link[aria-disabled='true'] {\n color: var(--tng-semantic-foreground-secondary);\n cursor: default;\n pointer-events: none;\n text-decoration: none;\n}\n\n.tng-breadcrumb-item-text {\n color: var(--tng-semantic-foreground-secondary);\n}\n\n.tng-breadcrumb-item[data-current='true'] .tng-breadcrumb-item-text,\n.tng-breadcrumb-item[data-current='true'] .tng-breadcrumb-item-link {\n color: var(--tng-semantic-foreground-primary);\n font-weight: 500;\n}\n\n.tng-breadcrumb-item[data-focus-visible='true'] .tng-breadcrumb-item-link {\n text-decoration: underline;\n}\n\n.tng-breadcrumb-item-ellipsis {\n color: var(--tng-semantic-foreground-secondary);\n user-select: none;\n}\n"], dependencies: [{ kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: TngBreadcrumbItemPrimitive, selector: "[tngBreadcrumbItem]", exportAs: ["tngBreadcrumbItem"] }, { kind: "directive", type: TngBreadcrumbLinkPrimitive, selector: "[tngBreadcrumbLink]", exportAs: ["tngBreadcrumbLink"] }, { kind: "component", type: TngBreadcrumbSeparatorComponent, selector: "tng-breadcrumb-separator", inputs: ["symbol", "template"] }] });
|
|
105
|
+
}
|
|
106
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: TngBreadcrumbItemComponent, decorators: [{
|
|
107
|
+
type: Component,
|
|
108
|
+
args: [{ selector: 'tng-breadcrumb-item', imports: [
|
|
109
|
+
RouterLink,
|
|
110
|
+
NgTemplateOutlet,
|
|
111
|
+
TngBreadcrumbItemPrimitive,
|
|
112
|
+
TngBreadcrumbLinkPrimitive,
|
|
113
|
+
TngBreadcrumbSeparatorComponent,
|
|
114
|
+
], template: "<ng-template #projectedContent>\n <ng-content />\n</ng-template>\n\n<li\n tngBreadcrumbItem\n class=\"tng-breadcrumb-item\"\n [attr.data-collapsed]=\"displayMode() === 'ellipsis' ? 'true' : null\"\n [attr.data-current]=\"isResolvedCurrent() ? 'true' : null\"\n [attr.data-disabled]=\"disabled() ? 'true' : null\"\n [attr.data-focused]=\"isFocused() ? 'true' : null\"\n [attr.data-focus-visible]=\"isFocusVisible() ? 'true' : null\"\n [hidden]=\"displayMode() === 'hidden'\"\n>\n @switch (displayMode()) {\n @case ('ellipsis') {\n <span class=\"tng-breadcrumb-item-ellipsis\" [attr.aria-label]=\"collapseLabel()\" aria-hidden=\"true\">\u2026</span>\n }\n @default {\n @if (shouldRenderLink()) {\n @if (hasRouterLink()) {\n <a\n tngBreadcrumbLink\n class=\"tng-breadcrumb-item-link\"\n [attr.aria-current]=\"isResolvedCurrent() ? 'page' : null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n [attr.tabindex]=\"disabled() ? '-1' : null\"\n [routerLink]=\"routerLink()\"\n (click)=\"onLinkClick($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"projectedContent\" />\n </a>\n } @else {\n <a\n tngBreadcrumbLink\n class=\"tng-breadcrumb-item-link\"\n [attr.aria-current]=\"isResolvedCurrent() ? 'page' : null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n [attr.href]=\"href()\"\n [attr.tabindex]=\"disabled() ? '-1' : null\"\n (click)=\"onLinkClick($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"projectedContent\" />\n </a>\n }\n } @else {\n <span class=\"tng-breadcrumb-item-text\" [attr.aria-current]=\"isResolvedCurrent() ? 'page' : null\">\n <ng-container [ngTemplateOutlet]=\"projectedContent\" />\n </span>\n }\n }\n }\n\n @if (showSeparator()) {\n <tng-breadcrumb-separator [symbol]=\"separator()\" [template]=\"separatorTemplate()\" />\n }\n</li>\n", styles: [":host {\n display: contents;\n}\n\n.tng-breadcrumb-item {\n align-items: center;\n display: inline-flex;\n gap: 0.45rem;\n}\n\n.tng-breadcrumb-item-link {\n color: var(--tng-semantic-accent-brand);\n text-decoration: none;\n}\n\n.tng-breadcrumb-item-link:hover {\n text-decoration: underline;\n}\n\n.tng-breadcrumb-item-link[aria-disabled='true'] {\n color: var(--tng-semantic-foreground-secondary);\n cursor: default;\n pointer-events: none;\n text-decoration: none;\n}\n\n.tng-breadcrumb-item-text {\n color: var(--tng-semantic-foreground-secondary);\n}\n\n.tng-breadcrumb-item[data-current='true'] .tng-breadcrumb-item-text,\n.tng-breadcrumb-item[data-current='true'] .tng-breadcrumb-item-link {\n color: var(--tng-semantic-foreground-primary);\n font-weight: 500;\n}\n\n.tng-breadcrumb-item[data-focus-visible='true'] .tng-breadcrumb-item-link {\n text-decoration: underline;\n}\n\n.tng-breadcrumb-item-ellipsis {\n color: var(--tng-semantic-foreground-secondary);\n user-select: none;\n}\n"] }]
|
|
115
|
+
}], ctorParameters: () => [], propDecorators: { current: [{ type: i0.Input, args: [{ isSignal: true, alias: "current", required: false }] }], currentAsLink: [{ type: i0.Input, args: [{ isSignal: true, alias: "currentAsLink", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], href: [{ type: i0.Input, args: [{ isSignal: true, alias: "href", required: false }] }], routerLink: [{ type: i0.Input, args: [{ isSignal: true, alias: "routerLink", required: false }] }], onKeydown: [{
|
|
116
|
+
type: HostListener,
|
|
117
|
+
args: ['keydown']
|
|
118
|
+
}], onPointerdown: [{
|
|
119
|
+
type: HostListener,
|
|
120
|
+
args: ['pointerdown']
|
|
121
|
+
}], onMousedown: [{
|
|
122
|
+
type: HostListener,
|
|
123
|
+
args: ['mousedown']
|
|
124
|
+
}], onTouchstart: [{
|
|
125
|
+
type: HostListener,
|
|
126
|
+
args: ['touchstart']
|
|
127
|
+
}], onFocusin: [{
|
|
128
|
+
type: HostListener,
|
|
129
|
+
args: ['focusin', ['$event']]
|
|
130
|
+
}], onFocusout: [{
|
|
131
|
+
type: HostListener,
|
|
132
|
+
args: ['focusout', ['$event']]
|
|
133
|
+
}] } });
|
|
134
|
+
export { TngBreadcrumbItemComponent as TngBreadcrumbItem };
|
|
137
135
|
//# sourceMappingURL=tng-breadcrumb-item.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tng-breadcrumb-item.component.js","sourceRoot":"","sources":["../../../../../../../../libs/tailng-ui/components/src/lib/navigation/breadcrumb/tng-breadcrumb-item.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EACL,gBAAgB,EAChB,SAAS,EACT,UAAU,EACV,YAAY,EACZ,MAAM,EACN,KAAK,EACL,MAAM,GAEP,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EACL,iBAAiB,IAAI,0BAA0B,EAC/C,iBAAiB,IAAI,0BAA0B,GAChD,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AAgBhF,IAAM,0BAA0B,GAAhC,MAAM,0BAA0B;IACpB,OAAO,GAAG,MAAM,CAA0B,UAAU,CAAC,CAAC;IAC/D,gBAAgB,GAAG,KAAK,CAAC;IAEjB,YAAY,GAAG,IAAI,OAAO,EAAQ,CAAC;IACnC,OAAO,GAAG,KAAK,CAAC,KAAK,EAAE,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAC,CAAC;IACxD,aAAa,GAAG,KAAK,CAAC,KAAK,EAAE,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAC,CAAC;IAC9D,QAAQ,GAAG,KAAK,CAAC,KAAK,EAAE,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAC,CAAC;IACzD,IAAI,GAAG,KAAK,CAAgB,IAAI,CAAC,CAAC;IAClC,UAAU,GAAG,KAAK,CAA+C,IAAI,CAAC,CAAC;IAEpE,SAAS,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;IAC1B,cAAc,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC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AI,CAAC,gBAAgB,CAAC,CAAC;YACnF,OAAO;QACT,CAAC;QAED,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;IACjD,CAAC;IAGS,UAAU,CAAC,KAAiB;QACpC,MAAM,aAAa,GAAG,KAAK,CAAC,aAAa,CAAC;QAC1C,IAAI,aAAa,YAAY,IAAI,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC;YACxF,OAAO;QACT,CAAC;QAED,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QAC1B,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,CAAC;CACF,CAAA;AA1CW;IADT,YAAY,CAAC,SAAS,CAAC;2DAGvB;AAGS;IADT,YAAY,CAAC,aAAa,CAAC;+DAG3B;AAGS;IADT,YAAY,CAAC,WAAW,CAAC;6DAGzB;AAGS;IADT,YAAY,CAAC,YAAY,CAAC;8DAG1B;AAGS;IADT,YAAY,CAAC,SAAS,EAAE,CAAC,QAAQ,CAAC,CAAC;2DAWnC;AAGS;IADT,YAAY,CAAC,UAAU,EAAE,CAAC,QAAQ,CAAC,CAAC;4DASpC;AAhIU,0BAA0B;IAZtC,SAAS,CAAC;QACT,QAAQ,EAAE,qBAAqB;QAC/B,OAAO,EAAE;YACP,UAAU;YACV,gBAAgB;YAChB,0BAA0B;YAC1B,0BAA0B;YAC1B,+BAA+B;SAChC;QACD,WAAW,EAAE,sCAAsC;QACnD,QAAQ,EAAE,qCAAqC;KAChD,CAAC;GACW,0BAA0B,CAiItC","sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport {\n booleanAttribute,\n Component,\n ElementRef,\n HostListener,\n inject,\n input,\n signal,\n type TemplateRef,\n} from '@angular/core';\nimport { RouterLink } from '@angular/router';\nimport {\n TngBreadcrumbItem as TngBreadcrumbItemPrimitive,\n TngBreadcrumbLink as TngBreadcrumbLinkPrimitive,\n} from '@tailng-ui/primitives';\nimport { Subject } from 'rxjs';\nimport { TngBreadcrumbSeparatorComponent } from './tng-breadcrumb-separator.component';\n\nexport type TngBreadcrumbItemDisplayMode = 'ellipsis' | 'hidden' | 'visible';\n\n@Component({\n selector: 'tng-breadcrumb-item',\n imports: [\n RouterLink,\n NgTemplateOutlet,\n TngBreadcrumbItemPrimitive,\n TngBreadcrumbLinkPrimitive,\n TngBreadcrumbSeparatorComponent,\n ],\n templateUrl: './tng-breadcrumb-item.component.html',\n styleUrl: './tng-breadcrumb-item.component.css',\n})\nexport class TngBreadcrumbItemComponent {\n private readonly hostRef = inject<ElementRef<HTMLElement>>(ElementRef);\n private keyboardModality = false;\n\n public readonly stateChanges = new Subject<void>();\n public readonly current = input(false, { transform: booleanAttribute });\n public readonly currentAsLink = input(false, { transform: booleanAttribute });\n public readonly disabled = input(false, { transform: booleanAttribute });\n public readonly href = input<string | null>(null);\n public readonly routerLink = input<string | readonly (number | string)[] | null>(null);\n\n protected readonly isFocused = signal(false);\n protected readonly isFocusVisible = signal(false);\n protected readonly displayMode = signal<TngBreadcrumbItemDisplayMode>('visible');\n protected readonly collapseLabel = signal('More');\n protected readonly isResolvedCurrent = signal(false);\n protected readonly separator = signal('/');\n protected readonly separatorTemplate = signal<TemplateRef<unknown> | null>(null);\n protected readonly showSeparator = signal(false);\n\n public constructor() {\n this.current();\n this.currentAsLink();\n this.disabled();\n this.href();\n this.routerLink();\n queueMicrotask(() => this.stateChanges.next());\n }\n\n public ngOnChanges(): void {\n this.stateChanges.next();\n }\n\n public ngOnDestroy(): void {\n this.stateChanges.complete();\n }\n\n public setDisplayMode(mode: TngBreadcrumbItemDisplayMode, collapseLabel: string): void {\n this.displayMode.set(mode);\n this.collapseLabel.set(collapseLabel);\n }\n\n public setResolvedCurrent(value: boolean): void {\n this.isResolvedCurrent.set(value);\n }\n\n public setSeparator(\n separator: string,\n showSeparator: boolean,\n separatorTemplate: TemplateRef<unknown> | null,\n ): void {\n this.separator.set(separator);\n this.showSeparator.set(showSeparator);\n this.separatorTemplate.set(separatorTemplate);\n }\n\n protected shouldRenderLink(): boolean {\n const hasExplicitTarget = this.hasHrefLink() || this.hasRouterLink();\n if (!hasExplicitTarget) {\n return false;\n }\n\n if (!this.isResolvedCurrent()) {\n return true;\n }\n\n return this.currentAsLink();\n }\n\n protected hasHrefLink(): boolean {\n return this.href() !== null;\n }\n\n protected hasRouterLink(): boolean {\n return this.routerLink() !== null;\n }\n\n protected onLinkClick(event: MouseEvent): void {\n if (!this.disabled()) {\n return;\n }\n\n event.preventDefault();\n event.stopImmediatePropagation();\n }\n\n @HostListener('keydown')\n protected onKeydown(): void {\n this.keyboardModality = true;\n }\n\n @HostListener('pointerdown')\n protected onPointerdown(): void {\n this.keyboardModality = false;\n }\n\n @HostListener('mousedown')\n protected onMousedown(): void {\n this.keyboardModality = false;\n }\n\n @HostListener('touchstart')\n protected onTouchstart(): void {\n this.keyboardModality = false;\n }\n\n @HostListener('focusin', ['$event'])\n protected onFocusin(event: FocusEvent): void {\n this.isFocused.set(true);\n\n const target = event.target;\n if (target instanceof HTMLElement) {\n this.isFocusVisible.set(target.matches(':focus-visible') || this.keyboardModality);\n return;\n }\n\n this.isFocusVisible.set(this.keyboardModality);\n }\n\n @HostListener('focusout', ['$event'])\n protected onFocusout(event: FocusEvent): void {\n const relatedTarget = event.relatedTarget;\n if (relatedTarget instanceof Node && this.hostRef.nativeElement.contains(relatedTarget)) {\n return;\n }\n\n this.isFocused.set(false);\n this.isFocusVisible.set(false);\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"tng-breadcrumb-item.component.js","sourceRoot":"","sources":["../../../../../../../../libs/tailng-ui/components/src/lib/navigation/breadcrumb/tng-breadcrumb-item.component.ts","../../../../../../../../libs/tailng-ui/components/src/lib/navigation/breadcrumb/tng-breadcrumb-item.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iB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AAC,OAAO,CAAC,aAAa,CAAC,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC;YACxF,OAAO;QACT,CAAC;QAED,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QAC1B,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,CAAC;uGAhIU,0BAA0B;2FAA1B,0BAA0B,g9BCjCvC,ijEAyDA,6iCDjCI,UAAU,oOACV,gBAAgB,oJAChB,0BAA0B,iGAC1B,0BAA0B,iGAC1B,+BAA+B;;2FAKtB,0BAA0B;kBAZtC,SAAS;+BACE,qBAAqB,WACtB;wBACP,UAAU;wBACV,gBAAgB;wBAChB,0BAA0B;wBAC1B,0BAA0B;wBAC1B,+BAA+B;qBAChC;;sBA0FA,YAAY;uBAAC,SAAS;;sBAKtB,YAAY;uBAAC,aAAa;;sBAK1B,YAAY;uBAAC,WAAW;;sBAKxB,YAAY;uBAAC,YAAY;;sBAKzB,YAAY;uBAAC,SAAS,EAAE,CAAC,QAAQ,CAAC;;sBAalC,YAAY;uBAAC,UAAU,EAAE,CAAC,QAAQ,CAAC;;AAWtC,OAAO,EAAE,0BAA0B,IAAI,iBAAiB,EAAE,CAAC","sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport {\n booleanAttribute,\n Component,\n ElementRef,\n HostListener,\n inject,\n input,\n signal,\n type TemplateRef,\n} from '@angular/core';\nimport { RouterLink } from '@angular/router';\nimport {\n TngBreadcrumbItem as TngBreadcrumbItemPrimitive,\n TngBreadcrumbLink as TngBreadcrumbLinkPrimitive,\n} from '@tailng-ui/primitives';\nimport { Subject } from 'rxjs';\nimport { TngBreadcrumbSeparatorComponent } from './tng-breadcrumb-separator.component';\n\nexport type TngBreadcrumbItemDisplayMode = 'ellipsis' | 'hidden' | 'visible';\n\n@Component({\n selector: 'tng-breadcrumb-item',\n imports: [\n RouterLink,\n NgTemplateOutlet,\n TngBreadcrumbItemPrimitive,\n TngBreadcrumbLinkPrimitive,\n TngBreadcrumbSeparatorComponent,\n ],\n templateUrl: './tng-breadcrumb-item.component.html',\n styleUrl: './tng-breadcrumb-item.component.css',\n})\nexport class TngBreadcrumbItemComponent {\n private readonly hostRef = inject<ElementRef<HTMLElement>>(ElementRef);\n private keyboardModality = false;\n\n public readonly stateChanges = new Subject<void>();\n public readonly current = input(false, { transform: booleanAttribute });\n public readonly currentAsLink = input(false, { transform: booleanAttribute });\n public readonly disabled = input(false, { transform: booleanAttribute });\n public readonly href = input<string | null>(null);\n public readonly routerLink = input<string | readonly (number | string)[] | null>(null);\n\n protected readonly isFocused = signal(false);\n protected readonly isFocusVisible = signal(false);\n protected readonly displayMode = signal<TngBreadcrumbItemDisplayMode>('visible');\n protected readonly collapseLabel = signal('More');\n protected readonly isResolvedCurrent = signal(false);\n protected readonly separator = signal('/');\n protected readonly separatorTemplate = signal<TemplateRef<unknown> | null>(null);\n protected readonly showSeparator = signal(false);\n\n public constructor() {\n this.current();\n this.currentAsLink();\n this.disabled();\n this.href();\n this.routerLink();\n queueMicrotask(() => this.stateChanges.next());\n }\n\n public ngOnChanges(): void {\n this.stateChanges.next();\n }\n\n public ngOnDestroy(): void {\n this.stateChanges.complete();\n }\n\n public setDisplayMode(mode: TngBreadcrumbItemDisplayMode, collapseLabel: string): void {\n this.displayMode.set(mode);\n this.collapseLabel.set(collapseLabel);\n }\n\n public setResolvedCurrent(value: boolean): void {\n this.isResolvedCurrent.set(value);\n }\n\n public setSeparator(\n separator: string,\n showSeparator: boolean,\n separatorTemplate: TemplateRef<unknown> | null,\n ): void {\n this.separator.set(separator);\n this.showSeparator.set(showSeparator);\n this.separatorTemplate.set(separatorTemplate);\n }\n\n protected shouldRenderLink(): boolean {\n const hasExplicitTarget = this.hasHrefLink() || this.hasRouterLink();\n if (!hasExplicitTarget) {\n return false;\n }\n\n if (!this.isResolvedCurrent()) {\n return true;\n }\n\n return this.currentAsLink();\n }\n\n protected hasHrefLink(): boolean {\n return this.href() !== null;\n }\n\n protected hasRouterLink(): boolean {\n return this.routerLink() !== null;\n }\n\n protected onLinkClick(event: MouseEvent): void {\n if (!this.disabled()) {\n return;\n }\n\n event.preventDefault();\n event.stopImmediatePropagation();\n }\n\n @HostListener('keydown')\n protected onKeydown(): void {\n this.keyboardModality = true;\n }\n\n @HostListener('pointerdown')\n protected onPointerdown(): void {\n this.keyboardModality = false;\n }\n\n @HostListener('mousedown')\n protected onMousedown(): void {\n this.keyboardModality = false;\n }\n\n @HostListener('touchstart')\n protected onTouchstart(): void {\n this.keyboardModality = false;\n }\n\n @HostListener('focusin', ['$event'])\n protected onFocusin(event: FocusEvent): void {\n this.isFocused.set(true);\n\n const target = event.target;\n if (target instanceof HTMLElement) {\n this.isFocusVisible.set(target.matches(':focus-visible') || this.keyboardModality);\n return;\n }\n\n this.isFocusVisible.set(this.keyboardModality);\n }\n\n @HostListener('focusout', ['$event'])\n protected onFocusout(event: FocusEvent): void {\n const relatedTarget = event.relatedTarget;\n if (relatedTarget instanceof Node && this.hostRef.nativeElement.contains(relatedTarget)) {\n return;\n }\n\n this.isFocused.set(false);\n this.isFocusVisible.set(false);\n }\n}\nexport { TngBreadcrumbItemComponent as TngBreadcrumbItem };\n","<ng-template #projectedContent>\n <ng-content />\n</ng-template>\n\n<li\n tngBreadcrumbItem\n class=\"tng-breadcrumb-item\"\n [attr.data-collapsed]=\"displayMode() === 'ellipsis' ? 'true' : null\"\n [attr.data-current]=\"isResolvedCurrent() ? 'true' : null\"\n [attr.data-disabled]=\"disabled() ? 'true' : null\"\n [attr.data-focused]=\"isFocused() ? 'true' : null\"\n [attr.data-focus-visible]=\"isFocusVisible() ? 'true' : null\"\n [hidden]=\"displayMode() === 'hidden'\"\n>\n @switch (displayMode()) {\n @case ('ellipsis') {\n <span class=\"tng-breadcrumb-item-ellipsis\" [attr.aria-label]=\"collapseLabel()\" aria-hidden=\"true\">…</span>\n }\n @default {\n @if (shouldRenderLink()) {\n @if (hasRouterLink()) {\n <a\n tngBreadcrumbLink\n class=\"tng-breadcrumb-item-link\"\n [attr.aria-current]=\"isResolvedCurrent() ? 'page' : null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n [attr.tabindex]=\"disabled() ? '-1' : null\"\n [routerLink]=\"routerLink()\"\n (click)=\"onLinkClick($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"projectedContent\" />\n </a>\n } @else {\n <a\n tngBreadcrumbLink\n class=\"tng-breadcrumb-item-link\"\n [attr.aria-current]=\"isResolvedCurrent() ? 'page' : null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n [attr.href]=\"href()\"\n [attr.tabindex]=\"disabled() ? '-1' : null\"\n (click)=\"onLinkClick($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"projectedContent\" />\n </a>\n }\n } @else {\n <span class=\"tng-breadcrumb-item-text\" [attr.aria-current]=\"isResolvedCurrent() ? 'page' : null\">\n <ng-container [ngTemplateOutlet]=\"projectedContent\" />\n </span>\n }\n }\n }\n\n @if (showSeparator()) {\n <tng-breadcrumb-separator [symbol]=\"separator()\" [template]=\"separatorTemplate()\" />\n }\n</li>\n"]}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
1
2
|
export declare class TngBreadcrumbLinkComponent {
|
|
2
3
|
readonly current: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
3
4
|
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
@@ -6,5 +7,8 @@ export declare class TngBreadcrumbLinkComponent {
|
|
|
6
7
|
readonly routerLink: import("@angular/core").InputSignal<string | readonly (string | number)[] | null>;
|
|
7
8
|
readonly target: import("@angular/core").InputSignal<string | null>;
|
|
8
9
|
protected onClick(event: MouseEvent): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TngBreadcrumbLinkComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TngBreadcrumbLinkComponent, "tng-breadcrumb-link", never, { "current": { "alias": "current"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "href": { "alias": "href"; "required": false; "isSignal": true; }; "rel": { "alias": "rel"; "required": false; "isSignal": true; }; "routerLink": { "alias": "routerLink"; "required": false; "isSignal": true; }; "target": { "alias": "target"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
9
12
|
}
|
|
13
|
+
export { TngBreadcrumbLinkComponent as TngBreadcrumbLink };
|
|
10
14
|
//# sourceMappingURL=tng-breadcrumb-link.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tng-breadcrumb-link.component.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/tailng-ui/components/src/lib/navigation/breadcrumb/tng-breadcrumb-link.component.ts"],"names":[],"mappings":"AAIA,qBAMa,0BAA0B;IACrC,SAAgB,OAAO,qEAAiD;IACxE,SAAgB,QAAQ,qEAAiD;IACzE,SAAgB,IAAI,qDAA8B;IAClD,SAAgB,GAAG,qDAA8B;IACjD,SAAgB,UAAU,oFAA6D;IACvF,SAAgB,MAAM,qDAA8B;IAEpD,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;
|
|
1
|
+
{"version":3,"file":"tng-breadcrumb-link.component.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/tailng-ui/components/src/lib/navigation/breadcrumb/tng-breadcrumb-link.component.ts"],"names":[],"mappings":";AAIA,qBAMa,0BAA0B;IACrC,SAAgB,OAAO,qEAAiD;IACxE,SAAgB,QAAQ,qEAAiD;IACzE,SAAgB,IAAI,qDAA8B;IAClD,SAAgB,GAAG,qDAA8B;IACjD,SAAgB,UAAU,oFAA6D;IACvF,SAAgB,MAAM,qDAA8B;IAEpD,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;yCAR/B,0BAA0B;2CAA1B,0BAA0B;CAgBtC;AACD,OAAO,EAAE,0BAA0B,IAAI,iBAAiB,EAAE,CAAC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
1
|
import { booleanAttribute, Component, input } from '@angular/core';
|
|
3
2
|
import { RouterLink } from '@angular/router';
|
|
4
3
|
import { TngBreadcrumbLink as TngBreadcrumbLinkPrimitive } from '@tailng-ui/primitives';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export class TngBreadcrumbLinkComponent {
|
|
6
|
+
current = input(false, { ...(ngDevMode ? { debugName: "current" } : {}), transform: booleanAttribute });
|
|
7
|
+
disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : {}), transform: booleanAttribute });
|
|
8
|
+
href = input(null, ...(ngDevMode ? [{ debugName: "href" }] : []));
|
|
9
|
+
rel = input(null, ...(ngDevMode ? [{ debugName: "rel" }] : []));
|
|
10
|
+
routerLink = input(null, ...(ngDevMode ? [{ debugName: "routerLink" }] : []));
|
|
11
|
+
target = input(null, ...(ngDevMode ? [{ debugName: "target" }] : []));
|
|
12
12
|
onClick(event) {
|
|
13
13
|
if (!this.disabled()) {
|
|
14
14
|
return;
|
|
@@ -16,14 +16,12 @@ let TngBreadcrumbLinkComponent = class TngBreadcrumbLinkComponent {
|
|
|
16
16
|
event.preventDefault();
|
|
17
17
|
event.stopImmediatePropagation();
|
|
18
18
|
}
|
|
19
|
-
};
|
|
20
|
-
TngBreadcrumbLinkComponent =
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
], TngBreadcrumbLinkComponent);
|
|
28
|
-
export { TngBreadcrumbLinkComponent };
|
|
19
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: TngBreadcrumbLinkComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
20
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.1.1", type: TngBreadcrumbLinkComponent, isStandalone: true, selector: "tng-breadcrumb-link", inputs: { current: { classPropertyName: "current", publicName: "current", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, href: { classPropertyName: "href", publicName: "href", isSignal: true, isRequired: false, transformFunction: null }, rel: { classPropertyName: "rel", publicName: "rel", isSignal: true, isRequired: false, transformFunction: null }, routerLink: { classPropertyName: "routerLink", publicName: "routerLink", isSignal: true, isRequired: false, transformFunction: null }, target: { classPropertyName: "target", publicName: "target", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<a\n tngBreadcrumbLink\n class=\"tng-breadcrumb-link\"\n [attr.aria-current]=\"current() ? 'page' : null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n [attr.href]=\"href()\"\n [attr.rel]=\"rel()\"\n [attr.tabindex]=\"disabled() ? '-1' : null\"\n [attr.target]=\"target()\"\n [routerLink]=\"routerLink()\"\n (click)=\"onClick($event)\"\n>\n <ng-content />\n</a>\n", styles: [":host {\n display: inline-flex;\n}\n\n.tng-breadcrumb-link {\n color: var(--tng-semantic-accent-brand);\n text-decoration: none;\n}\n\n.tng-breadcrumb-link:hover {\n text-decoration: underline;\n}\n\n.tng-breadcrumb-link[aria-disabled='true'] {\n color: var(--tng-semantic-foreground-secondary);\n cursor: default;\n pointer-events: none;\n text-decoration: none;\n}\n"], dependencies: [{ kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: TngBreadcrumbLinkPrimitive, selector: "[tngBreadcrumbLink]", exportAs: ["tngBreadcrumbLink"] }] });
|
|
21
|
+
}
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: TngBreadcrumbLinkComponent, decorators: [{
|
|
23
|
+
type: Component,
|
|
24
|
+
args: [{ selector: 'tng-breadcrumb-link', imports: [RouterLink, TngBreadcrumbLinkPrimitive], template: "<a\n tngBreadcrumbLink\n class=\"tng-breadcrumb-link\"\n [attr.aria-current]=\"current() ? 'page' : null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n [attr.href]=\"href()\"\n [attr.rel]=\"rel()\"\n [attr.tabindex]=\"disabled() ? '-1' : null\"\n [attr.target]=\"target()\"\n [routerLink]=\"routerLink()\"\n (click)=\"onClick($event)\"\n>\n <ng-content />\n</a>\n", styles: [":host {\n display: inline-flex;\n}\n\n.tng-breadcrumb-link {\n color: var(--tng-semantic-accent-brand);\n text-decoration: none;\n}\n\n.tng-breadcrumb-link:hover {\n text-decoration: underline;\n}\n\n.tng-breadcrumb-link[aria-disabled='true'] {\n color: var(--tng-semantic-foreground-secondary);\n cursor: default;\n pointer-events: none;\n text-decoration: none;\n}\n"] }]
|
|
25
|
+
}], propDecorators: { current: [{ type: i0.Input, args: [{ isSignal: true, alias: "current", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], href: [{ type: i0.Input, args: [{ isSignal: true, alias: "href", required: false }] }], rel: [{ type: i0.Input, args: [{ isSignal: true, alias: "rel", required: false }] }], routerLink: [{ type: i0.Input, args: [{ isSignal: true, alias: "routerLink", required: false }] }], target: [{ type: i0.Input, args: [{ isSignal: true, alias: "target", required: false }] }] } });
|
|
26
|
+
export { TngBreadcrumbLinkComponent as TngBreadcrumbLink };
|
|
29
27
|
//# sourceMappingURL=tng-breadcrumb-link.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tng-breadcrumb-link.component.js","sourceRoot":"","sources":["../../../../../../../../libs/tailng-ui/components/src/lib/navigation/breadcrumb/tng-breadcrumb-link.component.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tng-breadcrumb-link.component.js","sourceRoot":"","sources":["../../../../../../../../libs/tailng-ui/components/src/lib/navigation/breadcrumb/tng-breadcrumb-link.component.ts","../../../../../../../../libs/tailng-ui/components/src/lib/navigation/breadcrumb/tng-breadcrumb-link.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,iBAAiB,IAAI,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;;AAQxF,MAAM,OAAO,0BAA0B;IACrB,OAAO,GAAG,KAAK,CAAC,KAAK,oDAAI,SAAS,EAAE,gBAAgB,GAAG,CAAC;IACxD,QAAQ,GAAG,KAAK,CAAC,KAAK,qDAAI,SAAS,EAAE,gBAAgB,GAAG,CAAC;IACzD,IAAI,GAAG,KAAK,CAAgB,IAAI,gDAAC,CAAC;IAClC,GAAG,GAAG,KAAK,CAAgB,IAAI,+CAAC,CAAC;IACjC,UAAU,GAAG,KAAK,CAA+C,IAAI,sDAAC,CAAC;IACvE,MAAM,GAAG,KAAK,CAAgB,IAAI,kDAAC,CAAC;IAE1C,OAAO,CAAC,KAAiB;QACjC,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,CAAC;YACrB,OAAO;QACT,CAAC;QAED,KAAK,CAAC,cAAc,EAAE,CAAC;QACvB,KAAK,CAAC,wBAAwB,EAAE,CAAC;IACnC,CAAC;uGAfU,0BAA0B;2FAA1B,0BAA0B,m0BCVvC,mYAcA,kbDRY,UAAU,oOAAE,0BAA0B;;2FAIrC,0BAA0B;kBANtC,SAAS;+BACE,qBAAqB,WACtB,CAAC,UAAU,EAAE,0BAA0B,CAAC;;AAqBnD,OAAO,EAAE,0BAA0B,IAAI,iBAAiB,EAAE,CAAC","sourcesContent":["import { booleanAttribute, Component, input } from '@angular/core';\nimport { RouterLink } from '@angular/router';\nimport { TngBreadcrumbLink as TngBreadcrumbLinkPrimitive } from '@tailng-ui/primitives';\n\n@Component({\n selector: 'tng-breadcrumb-link',\n imports: [RouterLink, TngBreadcrumbLinkPrimitive],\n templateUrl: './tng-breadcrumb-link.component.html',\n styleUrl: './tng-breadcrumb-link.component.css',\n})\nexport class TngBreadcrumbLinkComponent {\n public readonly current = input(false, { transform: booleanAttribute });\n public readonly disabled = input(false, { transform: booleanAttribute });\n public readonly href = input<string | null>(null);\n public readonly rel = input<string | null>(null);\n public readonly routerLink = input<string | readonly (number | string)[] | null>(null);\n public readonly target = input<string | null>(null);\n\n protected onClick(event: MouseEvent): void {\n if (!this.disabled()) {\n return;\n }\n\n event.preventDefault();\n event.stopImmediatePropagation();\n }\n}\nexport { TngBreadcrumbLinkComponent as TngBreadcrumbLink };\n","<a\n tngBreadcrumbLink\n class=\"tng-breadcrumb-link\"\n [attr.aria-current]=\"current() ? 'page' : null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n [attr.href]=\"href()\"\n [attr.rel]=\"rel()\"\n [attr.tabindex]=\"disabled() ? '-1' : null\"\n [attr.target]=\"target()\"\n [routerLink]=\"routerLink()\"\n (click)=\"onClick($event)\"\n>\n <ng-content />\n</a>\n"]}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
1
2
|
export declare class TngBreadcrumbListComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TngBreadcrumbListComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TngBreadcrumbListComponent, "tng-breadcrumb-list", never, {}, {}, never, ["*"], true, never>;
|
|
2
5
|
}
|
|
6
|
+
export { TngBreadcrumbListComponent as TngBreadcrumbList };
|
|
3
7
|
//# sourceMappingURL=tng-breadcrumb-list.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tng-breadcrumb-list.component.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/tailng-ui/components/src/lib/navigation/breadcrumb/tng-breadcrumb-list.component.ts"],"names":[],"mappings":"AAGA,qBAMa,0BAA0B;CAAG"}
|
|
1
|
+
{"version":3,"file":"tng-breadcrumb-list.component.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/tailng-ui/components/src/lib/navigation/breadcrumb/tng-breadcrumb-list.component.ts"],"names":[],"mappings":";AAGA,qBAMa,0BAA0B;yCAA1B,0BAA0B;2CAA1B,0BAA0B;CAAG;AAC1C,OAAO,EAAE,0BAA0B,IAAI,iBAAiB,EAAE,CAAC"}
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
1
|
import { Component } from '@angular/core';
|
|
3
2
|
import { TngBreadcrumbList as TngBreadcrumbListPrimitive } from '@tailng-ui/primitives';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
export { TngBreadcrumbListComponent };
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export class TngBreadcrumbListComponent {
|
|
5
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: TngBreadcrumbListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.1", type: TngBreadcrumbListComponent, isStandalone: true, selector: "tng-breadcrumb-list", ngImport: i0, template: "<ol tngBreadcrumbList class=\"tng-breadcrumb-list\">\n <ng-content />\n</ol>\n", styles: [":host {\n display: contents;\n}\n\n.tng-breadcrumb-list {\n align-items: center;\n display: flex;\n flex-wrap: wrap;\n gap: 0.45rem;\n list-style: none;\n margin: 0;\n padding: 0;\n}\n"], dependencies: [{ kind: "directive", type: TngBreadcrumbListPrimitive, selector: "[tngBreadcrumbList]", exportAs: ["tngBreadcrumbList"] }] });
|
|
7
|
+
}
|
|
8
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: TngBreadcrumbListComponent, decorators: [{
|
|
9
|
+
type: Component,
|
|
10
|
+
args: [{ selector: 'tng-breadcrumb-list', imports: [TngBreadcrumbListPrimitive], template: "<ol tngBreadcrumbList class=\"tng-breadcrumb-list\">\n <ng-content />\n</ol>\n", styles: [":host {\n display: contents;\n}\n\n.tng-breadcrumb-list {\n align-items: center;\n display: flex;\n flex-wrap: wrap;\n gap: 0.45rem;\n list-style: none;\n margin: 0;\n padding: 0;\n}\n"] }]
|
|
11
|
+
}] });
|
|
12
|
+
export { TngBreadcrumbListComponent as TngBreadcrumbList };
|
|
15
13
|
//# sourceMappingURL=tng-breadcrumb-list.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tng-breadcrumb-list.component.js","sourceRoot":"","sources":["../../../../../../../../libs/tailng-ui/components/src/lib/navigation/breadcrumb/tng-breadcrumb-list.component.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tng-breadcrumb-list.component.js","sourceRoot":"","sources":["../../../../../../../../libs/tailng-ui/components/src/lib/navigation/breadcrumb/tng-breadcrumb-list.component.ts","../../../../../../../../libs/tailng-ui/components/src/lib/navigation/breadcrumb/tng-breadcrumb-list.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,iBAAiB,IAAI,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;;AAQxF,MAAM,OAAO,0BAA0B;uGAA1B,0BAA0B;2FAA1B,0BAA0B,+ECTvC,iFAGA,0PDEY,0BAA0B;;2FAIzB,0BAA0B;kBANtC,SAAS;+BACE,qBAAqB,WACtB,CAAC,0BAA0B,CAAC;;AAKvC,OAAO,EAAE,0BAA0B,IAAI,iBAAiB,EAAE,CAAC","sourcesContent":["import { Component } from '@angular/core';\nimport { TngBreadcrumbList as TngBreadcrumbListPrimitive } from '@tailng-ui/primitives';\n\n@Component({\n selector: 'tng-breadcrumb-list',\n imports: [TngBreadcrumbListPrimitive],\n templateUrl: './tng-breadcrumb-list.component.html',\n styleUrl: './tng-breadcrumb-list.component.css',\n})\nexport class TngBreadcrumbListComponent {}\nexport { TngBreadcrumbListComponent as TngBreadcrumbList };\n","<ol tngBreadcrumbList class=\"tng-breadcrumb-list\">\n <ng-content />\n</ol>\n"]}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class TngBreadcrumbSeparatorTemplateDirective {
|
|
3
4
|
readonly templateRef: TemplateRef<unknown>;
|
|
4
5
|
constructor(templateRef: TemplateRef<unknown>);
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TngBreadcrumbSeparatorTemplateDirective, never>;
|
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TngBreadcrumbSeparatorTemplateDirective, "ng-template[tngBreadcrumbSeparatorTemplate]", ["tngBreadcrumbSeparatorTemplate"], {}, {}, never, never, true, never>;
|
|
5
8
|
}
|
|
6
9
|
//# sourceMappingURL=tng-breadcrumb-separator-template.directive.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tng-breadcrumb-separator-template.directive.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/tailng-ui/components/src/lib/navigation/breadcrumb/tng-breadcrumb-separator-template.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,WAAW,EAAE,MAAM,eAAe,CAAC
|
|
1
|
+
{"version":3,"file":"tng-breadcrumb-separator-template.directive.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/tailng-ui/components/src/lib/navigation/breadcrumb/tng-breadcrumb-separator-template.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,WAAW,EAAE,MAAM,eAAe,CAAC;;AAEvD,qBAIa,uCAAuC;aACf,WAAW,EAAE,WAAW,CAAC,OAAO,CAAC;gBAAjC,WAAW,EAAE,WAAW,CAAC,OAAO,CAAC;yCADzD,uCAAuC;2CAAvC,uCAAuC;CAEnD"}
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
1
|
import { Directive } from '@angular/core';
|
|
3
|
-
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export class TngBreadcrumbSeparatorTemplateDirective {
|
|
4
4
|
templateRef;
|
|
5
5
|
constructor(templateRef) {
|
|
6
6
|
this.templateRef = templateRef;
|
|
7
7
|
}
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
],
|
|
15
|
-
|
|
8
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: TngBreadcrumbSeparatorTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
9
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1.1", type: TngBreadcrumbSeparatorTemplateDirective, isStandalone: true, selector: "ng-template[tngBreadcrumbSeparatorTemplate]", exportAs: ["tngBreadcrumbSeparatorTemplate"], ngImport: i0 });
|
|
10
|
+
}
|
|
11
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: TngBreadcrumbSeparatorTemplateDirective, decorators: [{
|
|
12
|
+
type: Directive,
|
|
13
|
+
args: [{
|
|
14
|
+
selector: 'ng-template[tngBreadcrumbSeparatorTemplate]',
|
|
15
|
+
exportAs: 'tngBreadcrumbSeparatorTemplate',
|
|
16
|
+
}]
|
|
17
|
+
}], ctorParameters: () => [{ type: i0.TemplateRef }] });
|
|
16
18
|
//# sourceMappingURL=tng-breadcrumb-separator-template.directive.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tng-breadcrumb-separator-template.directive.js","sourceRoot":"","sources":["../../../../../../../../libs/tailng-ui/components/src/lib/navigation/breadcrumb/tng-breadcrumb-separator-template.directive.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tng-breadcrumb-separator-template.directive.js","sourceRoot":"","sources":["../../../../../../../../libs/tailng-ui/components/src/lib/navigation/breadcrumb/tng-breadcrumb-separator-template.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAe,MAAM,eAAe,CAAC;;AAMvD,MAAM,OAAO,uCAAuC;IACf;IAAnC,YAAmC,WAAiC;QAAjC,gBAAW,GAAX,WAAW,CAAsB;IAAG,CAAC;uGAD7D,uCAAuC;2FAAvC,uCAAuC;;2FAAvC,uCAAuC;kBAJnD,SAAS;mBAAC;oBACT,QAAQ,EAAE,6CAA6C;oBACvD,QAAQ,EAAE,gCAAgC;iBAC3C","sourcesContent":["import { Directive, TemplateRef } from '@angular/core';\n\n@Directive({\n selector: 'ng-template[tngBreadcrumbSeparatorTemplate]',\n exportAs: 'tngBreadcrumbSeparatorTemplate',\n})\nexport class TngBreadcrumbSeparatorTemplateDirective {\n public constructor(public readonly templateRef: TemplateRef<unknown>) {}\n}\n"]}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { type TemplateRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class TngBreadcrumbSeparatorComponent {
|
|
3
4
|
readonly symbol: import("@angular/core").InputSignal<string>;
|
|
4
5
|
readonly template: import("@angular/core").InputSignal<TemplateRef<unknown> | null>;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TngBreadcrumbSeparatorComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TngBreadcrumbSeparatorComponent, "tng-breadcrumb-separator", never, { "symbol": { "alias": "symbol"; "required": false; "isSignal": true; }; "template": { "alias": "template"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
5
8
|
}
|
|
9
|
+
export { TngBreadcrumbSeparatorComponent as TngBreadcrumbSeparator };
|
|
6
10
|
//# sourceMappingURL=tng-breadcrumb-separator.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tng-breadcrumb-separator.component.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/tailng-ui/components/src/lib/navigation/breadcrumb/tng-breadcrumb-separator.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAoB,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC
|
|
1
|
+
{"version":3,"file":"tng-breadcrumb-separator.component.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/tailng-ui/components/src/lib/navigation/breadcrumb/tng-breadcrumb-separator.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAoB,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;;AAGnE,qBAMa,+BAA+B;IAC1C,SAAgB,MAAM,8CAAc;IACpC,SAAgB,QAAQ,mEAA4C;yCAFzD,+BAA+B;2CAA/B,+BAA+B;CAG3C;AACD,OAAO,EAAE,+BAA+B,IAAI,sBAAsB,EAAE,CAAC"}
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
1
|
import { NgTemplateOutlet } from '@angular/common';
|
|
3
2
|
import { Component, input } from '@angular/core';
|
|
4
3
|
import { TngBreadcrumbSeparator as TngBreadcrumbSeparatorPrimitive } from '@tailng-ui/primitives';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
export { TngBreadcrumbSeparatorComponent };
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export class TngBreadcrumbSeparatorComponent {
|
|
6
|
+
symbol = input('/', ...(ngDevMode ? [{ debugName: "symbol" }] : []));
|
|
7
|
+
template = input(null, ...(ngDevMode ? [{ debugName: "template" }] : []));
|
|
8
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: TngBreadcrumbSeparatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.1", type: TngBreadcrumbSeparatorComponent, isStandalone: true, selector: "tng-breadcrumb-separator", inputs: { symbol: { classPropertyName: "symbol", publicName: "symbol", isSignal: true, isRequired: false, transformFunction: null }, template: { classPropertyName: "template", publicName: "template", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<span tngBreadcrumbSeparator class=\"tng-breadcrumb-separator\" tabindex=\"-1\">\n @if (template(); as separatorTemplate) {\n <ng-container [ngTemplateOutlet]=\"separatorTemplate\" />\n } @else {\n {{ symbol() }}\n }\n</span>\n", styles: [":host {\n display: inline-flex;\n}\n\n.tng-breadcrumb-separator {\n color: var(--tng-semantic-foreground-secondary);\n display: inline-flex;\n opacity: 0.7;\n user-select: none;\n}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: TngBreadcrumbSeparatorPrimitive, selector: "[tngBreadcrumbSeparator]", exportAs: ["tngBreadcrumbSeparator"] }] });
|
|
10
|
+
}
|
|
11
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: TngBreadcrumbSeparatorComponent, decorators: [{
|
|
12
|
+
type: Component,
|
|
13
|
+
args: [{ selector: 'tng-breadcrumb-separator', imports: [NgTemplateOutlet, TngBreadcrumbSeparatorPrimitive], template: "<span tngBreadcrumbSeparator class=\"tng-breadcrumb-separator\" tabindex=\"-1\">\n @if (template(); as separatorTemplate) {\n <ng-container [ngTemplateOutlet]=\"separatorTemplate\" />\n } @else {\n {{ symbol() }}\n }\n</span>\n", styles: [":host {\n display: inline-flex;\n}\n\n.tng-breadcrumb-separator {\n color: var(--tng-semantic-foreground-secondary);\n display: inline-flex;\n opacity: 0.7;\n user-select: none;\n}\n"] }]
|
|
14
|
+
}], propDecorators: { symbol: [{ type: i0.Input, args: [{ isSignal: true, alias: "symbol", required: false }] }], template: [{ type: i0.Input, args: [{ isSignal: true, alias: "template", required: false }] }] } });
|
|
15
|
+
export { TngBreadcrumbSeparatorComponent as TngBreadcrumbSeparator };
|
|
18
16
|
//# sourceMappingURL=tng-breadcrumb-separator.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tng-breadcrumb-separator.component.js","sourceRoot":"","sources":["../../../../../../../../libs/tailng-ui/components/src/lib/navigation/breadcrumb/tng-breadcrumb-separator.component.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tng-breadcrumb-separator.component.js","sourceRoot":"","sources":["../../../../../../../../libs/tailng-ui/components/src/lib/navigation/breadcrumb/tng-breadcrumb-separator.component.ts","../../../../../../../../libs/tailng-ui/components/src/lib/navigation/breadcrumb/tng-breadcrumb-separator.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,KAAK,EAAoB,MAAM,eAAe,CAAC;AACnE,OAAO,EAAE,sBAAsB,IAAI,+BAA+B,EAAE,MAAM,uBAAuB,CAAC;;AAQlG,MAAM,OAAO,+BAA+B;IAC1B,MAAM,GAAG,KAAK,CAAC,GAAG,kDAAC,CAAC;IACpB,QAAQ,GAAG,KAAK,CAA8B,IAAI,oDAAC,CAAC;uGAFzD,+BAA+B;2FAA/B,+BAA+B,4VCV5C,8OAOA,qPDDY,gBAAgB,oJAAE,+BAA+B;;2FAIhD,+BAA+B;kBAN3C,SAAS;+BACE,0BAA0B,WAC3B,CAAC,gBAAgB,EAAE,+BAA+B,CAAC;;AAQ9D,OAAO,EAAE,+BAA+B,IAAI,sBAAsB,EAAE,CAAC","sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport { Component, input, type TemplateRef } from '@angular/core';\nimport { TngBreadcrumbSeparator as TngBreadcrumbSeparatorPrimitive } from '@tailng-ui/primitives';\n\n@Component({\n selector: 'tng-breadcrumb-separator',\n imports: [NgTemplateOutlet, TngBreadcrumbSeparatorPrimitive],\n templateUrl: './tng-breadcrumb-separator.component.html',\n styleUrl: './tng-breadcrumb-separator.component.css',\n})\nexport class TngBreadcrumbSeparatorComponent {\n public readonly symbol = input('/');\n public readonly template = input<TemplateRef<unknown> | null>(null);\n}\nexport { TngBreadcrumbSeparatorComponent as TngBreadcrumbSeparator };\n","<span tngBreadcrumbSeparator class=\"tng-breadcrumb-separator\" tabindex=\"-1\">\n @if (template(); as separatorTemplate) {\n <ng-container [ngTemplateOutlet]=\"separatorTemplate\" />\n } @else {\n {{ symbol() }}\n }\n</span>\n"]}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type AfterContentInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class TngBreadcrumbComponent implements AfterContentInit {
|
|
3
4
|
private readonly breadcrumbItems?;
|
|
4
5
|
private readonly separatorTemplate?;
|
|
@@ -19,5 +20,8 @@ export declare class TngBreadcrumbComponent implements AfterContentInit {
|
|
|
19
20
|
private resolveCurrentIndex;
|
|
20
21
|
private resolveDisplayModes;
|
|
21
22
|
private resolveVisibleIndices;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TngBreadcrumbComponent, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TngBreadcrumbComponent, "tng-breadcrumb", never, { "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "separator": { "alias": "separator"; "required": false; "isSignal": true; }; "maxItems": { "alias": "maxItems"; "required": false; "isSignal": true; }; "itemsBeforeCollapse": { "alias": "itemsBeforeCollapse"; "required": false; "isSignal": true; }; "itemsAfterCollapse": { "alias": "itemsAfterCollapse"; "required": false; "isSignal": true; }; "collapseLabel": { "alias": "collapseLabel"; "required": false; "isSignal": true; }; }, {}, ["separatorTemplate", "breadcrumbItems"], ["*"], true, never>;
|
|
22
25
|
}
|
|
26
|
+
export { TngBreadcrumbComponent as TngBreadcrumb };
|
|
23
27
|
//# sourceMappingURL=tng-breadcrumb.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tng-breadcrumb.component.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/tailng-ui/components/src/lib/navigation/breadcrumb/tng-breadcrumb.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,gBAAgB,EAEtB,MAAM,eAAe,CAAC
|
|
1
|
+
{"version":3,"file":"tng-breadcrumb.component.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/tailng-ui/components/src/lib/navigation/breadcrumb/tng-breadcrumb.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,gBAAgB,EAEtB,MAAM,eAAe,CAAC;;AAOvB,qBAMa,sBAAuB,YAAW,gBAAgB;IAE7D,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAwC;IAGzE,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAuB;IAE1D,SAAgB,SAAS,qDAAsC;IAC/D,SAAgB,SAAS,8CAAc;IACvC,SAAgB,QAAQ,qDAA8B;IACtD,SAAgB,mBAAmB,8CAAY;IAC/C,SAAgB,kBAAkB,8CAAY;IAC9C,SAAgB,aAAa,8CAAiB;IAE9C,SAAS,CAAC,QAAQ,CAAC,iBAAiB,yCAQjC;IAEH,OAAO,CAAC,sBAAsB,CAAsB;IACpD,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAsB;;IAatD,kBAAkB,IAAI,IAAI;IAa1B,WAAW,IAAI,IAAI;IAK1B,OAAO,CAAC,4BAA4B;IAgBpC,OAAO,CAAC,SAAS;IAqBjB,OAAO,CAAC,mBAAmB;IAoB3B,OAAO,CAAC,mBAAmB;IAuD3B,OAAO,CAAC,qBAAqB;yCAxKlB,sBAAsB;2CAAtB,sBAAsB;CAiLlC;AACD,OAAO,EAAE,sBAAsB,IAAI,aAAa,EAAE,CAAC"}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
1
|
import { Component, ContentChild, ContentChildren, computed, effect, input, TemplateRef, } from '@angular/core';
|
|
3
2
|
import { TngBreadcrumb as TngBreadcrumbPrimitive } from '@tailng-ui/primitives';
|
|
4
3
|
import { merge, Subscription } from 'rxjs';
|
|
5
4
|
import { TngBreadcrumbItemComponent } from './tng-breadcrumb-item.component';
|
|
6
5
|
import { TngBreadcrumbListComponent } from './tng-breadcrumb-list.component';
|
|
7
6
|
import { TngBreadcrumbSeparatorTemplateDirective } from './tng-breadcrumb-separator-template.directive';
|
|
8
|
-
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export class TngBreadcrumbComponent {
|
|
9
9
|
breadcrumbItems;
|
|
10
10
|
separatorTemplate;
|
|
11
|
-
ariaLabel = input('Breadcrumb');
|
|
12
|
-
separator = input('/');
|
|
13
|
-
maxItems = input(null);
|
|
14
|
-
itemsBeforeCollapse = input(1);
|
|
15
|
-
itemsAfterCollapse = input(2);
|
|
16
|
-
collapseLabel = input('More');
|
|
11
|
+
ariaLabel = input('Breadcrumb', ...(ngDevMode ? [{ debugName: "ariaLabel" }] : []));
|
|
12
|
+
separator = input('/', ...(ngDevMode ? [{ debugName: "separator" }] : []));
|
|
13
|
+
maxItems = input(null, ...(ngDevMode ? [{ debugName: "maxItems" }] : []));
|
|
14
|
+
itemsBeforeCollapse = input(1, ...(ngDevMode ? [{ debugName: "itemsBeforeCollapse" }] : []));
|
|
15
|
+
itemsAfterCollapse = input(2, ...(ngDevMode ? [{ debugName: "itemsAfterCollapse" }] : []));
|
|
16
|
+
collapseLabel = input('More', ...(ngDevMode ? [{ debugName: "collapseLabel" }] : []));
|
|
17
17
|
resolvedAriaLabel = computed(() => {
|
|
18
18
|
const ariaLabel = this.ariaLabel();
|
|
19
19
|
if (ariaLabel === null) {
|
|
@@ -21,7 +21,7 @@ let TngBreadcrumbComponent = class TngBreadcrumbComponent {
|
|
|
21
21
|
}
|
|
22
22
|
const trimmedAriaLabel = ariaLabel.trim();
|
|
23
23
|
return trimmedAriaLabel.length > 0 ? trimmedAriaLabel : 'Breadcrumb';
|
|
24
|
-
});
|
|
24
|
+
}, ...(ngDevMode ? [{ debugName: "resolvedAriaLabel" }] : []));
|
|
25
25
|
itemStateSubscriptions = Subscription.EMPTY;
|
|
26
26
|
queryListSubscriptions = new Subscription();
|
|
27
27
|
constructor() {
|
|
@@ -136,20 +136,18 @@ let TngBreadcrumbComponent = class TngBreadcrumbComponent {
|
|
|
136
136
|
}
|
|
137
137
|
return visibleIndices;
|
|
138
138
|
}
|
|
139
|
-
};
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
],
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
], TngBreadcrumbComponent);
|
|
154
|
-
export { TngBreadcrumbComponent };
|
|
139
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: TngBreadcrumbComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
140
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.1.1", type: TngBreadcrumbComponent, isStandalone: true, selector: "tng-breadcrumb", inputs: { ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, separator: { classPropertyName: "separator", publicName: "separator", isSignal: true, isRequired: false, transformFunction: null }, maxItems: { classPropertyName: "maxItems", publicName: "maxItems", isSignal: true, isRequired: false, transformFunction: null }, itemsBeforeCollapse: { classPropertyName: "itemsBeforeCollapse", publicName: "itemsBeforeCollapse", isSignal: true, isRequired: false, transformFunction: null }, itemsAfterCollapse: { classPropertyName: "itemsAfterCollapse", publicName: "itemsAfterCollapse", isSignal: true, isRequired: false, transformFunction: null }, collapseLabel: { classPropertyName: "collapseLabel", publicName: "collapseLabel", isSignal: true, isRequired: false, transformFunction: null } }, queries: [{ propertyName: "separatorTemplate", first: true, predicate: TngBreadcrumbSeparatorTemplateDirective, descendants: true, read: TemplateRef }, { propertyName: "breadcrumbItems", predicate: TngBreadcrumbItemComponent, descendants: true }], ngImport: i0, template: "<nav tngBreadcrumb class=\"tng-breadcrumb\" [attr.aria-label]=\"resolvedAriaLabel()\">\n <tng-breadcrumb-list>\n <ng-content />\n </tng-breadcrumb-list>\n</nav>\n", styles: [":host {\n display: block;\n}\n\n.tng-breadcrumb {\n color: var(--tng-semantic-foreground-secondary);\n}\n\n.tng-breadcrumb [aria-current='page'] {\n color: var(--tng-semantic-foreground-primary);\n font-weight: 500;\n}\n"], dependencies: [{ kind: "directive", type: TngBreadcrumbPrimitive, selector: "[tngBreadcrumb]", exportAs: ["tngBreadcrumb"] }, { kind: "component", type: TngBreadcrumbListComponent, selector: "tng-breadcrumb-list" }] });
|
|
141
|
+
}
|
|
142
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: TngBreadcrumbComponent, decorators: [{
|
|
143
|
+
type: Component,
|
|
144
|
+
args: [{ selector: 'tng-breadcrumb', imports: [TngBreadcrumbPrimitive, TngBreadcrumbListComponent], template: "<nav tngBreadcrumb class=\"tng-breadcrumb\" [attr.aria-label]=\"resolvedAriaLabel()\">\n <tng-breadcrumb-list>\n <ng-content />\n </tng-breadcrumb-list>\n</nav>\n", styles: [":host {\n display: block;\n}\n\n.tng-breadcrumb {\n color: var(--tng-semantic-foreground-secondary);\n}\n\n.tng-breadcrumb [aria-current='page'] {\n color: var(--tng-semantic-foreground-primary);\n font-weight: 500;\n}\n"] }]
|
|
145
|
+
}], ctorParameters: () => [], propDecorators: { breadcrumbItems: [{
|
|
146
|
+
type: ContentChildren,
|
|
147
|
+
args: [TngBreadcrumbItemComponent, { descendants: true }]
|
|
148
|
+
}], separatorTemplate: [{
|
|
149
|
+
type: ContentChild,
|
|
150
|
+
args: [TngBreadcrumbSeparatorTemplateDirective, { read: TemplateRef }]
|
|
151
|
+
}], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], separator: [{ type: i0.Input, args: [{ isSignal: true, alias: "separator", required: false }] }], maxItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxItems", required: false }] }], itemsBeforeCollapse: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemsBeforeCollapse", required: false }] }], itemsAfterCollapse: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemsAfterCollapse", required: false }] }], collapseLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapseLabel", required: false }] }] } });
|
|
152
|
+
export { TngBreadcrumbComponent as TngBreadcrumb };
|
|
155
153
|
//# sourceMappingURL=tng-breadcrumb.component.js.map
|