@tailng-ui/primitives 0.12.0 → 0.13.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 +12 -6
- package/src/lib/feedback/empty/tng-empty.d.ts +11 -0
- package/src/lib/feedback/empty/tng-empty.d.ts.map +1 -1
- package/src/lib/feedback/empty/tng-empty.js +76 -66
- package/src/lib/feedback/empty/tng-empty.js.map +1 -1
- package/src/lib/feedback/progress-bar/tng-progress-bar.d.ts +5 -0
- package/src/lib/feedback/progress-bar/tng-progress-bar.d.ts.map +1 -1
- package/src/lib/feedback/progress-bar/tng-progress-bar.js +50 -54
- package/src/lib/feedback/progress-bar/tng-progress-bar.js.map +1 -1
- package/src/lib/feedback/progress-spinner/tng-progress-spinner.d.ts +3 -0
- package/src/lib/feedback/progress-spinner/tng-progress-spinner.d.ts.map +1 -1
- package/src/lib/feedback/progress-spinner/tng-progress-spinner.js +35 -41
- package/src/lib/feedback/progress-spinner/tng-progress-spinner.js.map +1 -1
- package/src/lib/feedback/skeleton/tng-skeleton.d.ts +3 -0
- package/src/lib/feedback/skeleton/tng-skeleton.d.ts.map +1 -1
- package/src/lib/feedback/skeleton/tng-skeleton.js +30 -32
- package/src/lib/feedback/skeleton/tng-skeleton.js.map +1 -1
- package/src/lib/feedback/toast/tng-toast.d.ts +5 -0
- package/src/lib/feedback/toast/tng-toast.d.ts.map +1 -1
- package/src/lib/feedback/toast/tng-toast.js +51 -49
- package/src/lib/feedback/toast/tng-toast.js.map +1 -1
- package/src/lib/form/_shared/id/tng-unique-id.service.d.ts +3 -0
- package/src/lib/form/_shared/id/tng-unique-id.service.d.ts.map +1 -1
- package/src/lib/form/_shared/id/tng-unique-id.service.js +9 -7
- package/src/lib/form/_shared/id/tng-unique-id.service.js.map +1 -1
- package/src/lib/form/_shared/select/tng-select.overlay.shared.d.ts +3 -0
- package/src/lib/form/_shared/select/tng-select.overlay.shared.d.ts.map +1 -1
- package/src/lib/form/_shared/select/tng-select.overlay.shared.js +22 -20
- package/src/lib/form/_shared/select/tng-select.overlay.shared.js.map +1 -1
- package/src/lib/form/_shared/select/tng-select.parts.shared.d.ts +9 -0
- package/src/lib/form/_shared/select/tng-select.parts.shared.d.ts.map +1 -1
- package/src/lib/form/_shared/select/tng-select.parts.shared.js +106 -98
- package/src/lib/form/_shared/select/tng-select.parts.shared.js.map +1 -1
- package/src/lib/form/autocomplete/tng-autocomplete.d.ts +3 -0
- package/src/lib/form/autocomplete/tng-autocomplete.d.ts.map +1 -1
- package/src/lib/form/autocomplete/tng-autocomplete.js +40 -38
- package/src/lib/form/autocomplete/tng-autocomplete.js.map +1 -1
- package/src/lib/form/autocomplete/tng-autocomplete.listbox.d.ts +6 -0
- package/src/lib/form/autocomplete/tng-autocomplete.listbox.d.ts.map +1 -1
- package/src/lib/form/autocomplete/tng-autocomplete.listbox.js +54 -46
- package/src/lib/form/autocomplete/tng-autocomplete.listbox.js.map +1 -1
- package/src/lib/form/autocomplete/tng-autocomplete.overlay.d.ts +3 -0
- package/src/lib/form/autocomplete/tng-autocomplete.overlay.d.ts.map +1 -1
- package/src/lib/form/autocomplete/tng-autocomplete.overlay.js +22 -20
- package/src/lib/form/autocomplete/tng-autocomplete.overlay.js.map +1 -1
- package/src/lib/form/autocomplete/tng-autocomplete.parts.d.ts +9 -0
- package/src/lib/form/autocomplete/tng-autocomplete.parts.d.ts.map +1 -1
- package/src/lib/form/autocomplete/tng-autocomplete.parts.js +109 -101
- package/src/lib/form/autocomplete/tng-autocomplete.parts.js.map +1 -1
- package/src/lib/form/button-toggle/tng-button-toggle.d.ts +5 -0
- package/src/lib/form/button-toggle/tng-button-toggle.d.ts.map +1 -1
- package/src/lib/form/button-toggle/tng-button-toggle.js +121 -155
- package/src/lib/form/button-toggle/tng-button-toggle.js.map +1 -1
- package/src/lib/form/checkbox/tng-checkbox.d.ts +3 -0
- package/src/lib/form/checkbox/tng-checkbox.d.ts.map +1 -1
- package/src/lib/form/checkbox/tng-checkbox.js +95 -107
- package/src/lib/form/checkbox/tng-checkbox.js.map +1 -1
- package/src/lib/form/chips/tng-chips.d.ts +7 -0
- package/src/lib/form/chips/tng-chips.d.ts.map +1 -1
- package/src/lib/form/chips/tng-chips.js +107 -115
- package/src/lib/form/chips/tng-chips.js.map +1 -1
- package/src/lib/form/combobox/tng-combobox.d.ts +3 -0
- package/src/lib/form/combobox/tng-combobox.d.ts.map +1 -1
- package/src/lib/form/combobox/tng-combobox.js +16 -14
- package/src/lib/form/combobox/tng-combobox.js.map +1 -1
- package/src/lib/form/input/tng-input.d.ts +9 -0
- package/src/lib/form/input/tng-input.d.ts.map +1 -1
- package/src/lib/form/input/tng-input.js +161 -141
- package/src/lib/form/input/tng-input.js.map +1 -1
- package/src/lib/form/input-otp/tng-input-otp.d.ts +3 -0
- package/src/lib/form/input-otp/tng-input-otp.d.ts.map +1 -1
- package/src/lib/form/input-otp/tng-input-otp.js +58 -70
- package/src/lib/form/input-otp/tng-input-otp.js.map +1 -1
- package/src/lib/form/label/tng-label.d.ts +3 -0
- package/src/lib/form/label/tng-label.d.ts.map +1 -1
- package/src/lib/form/label/tng-label.js +24 -26
- package/src/lib/form/label/tng-label.js.map +1 -1
- package/src/lib/form/listbox/listbox.directive.d.ts +3 -0
- package/src/lib/form/listbox/listbox.directive.d.ts.map +1 -1
- package/src/lib/form/listbox/listbox.directive.js +45 -43
- package/src/lib/form/listbox/listbox.directive.js.map +1 -1
- package/src/lib/form/listbox/option.directive.d.ts +3 -0
- package/src/lib/form/listbox/option.directive.d.ts.map +1 -1
- package/src/lib/form/listbox/option.directive.js +40 -38
- package/src/lib/form/listbox/option.directive.js.map +1 -1
- package/src/lib/form/multi-autocomplete/tng-multi-autocomplete.chip.d.ts +3 -0
- package/src/lib/form/multi-autocomplete/tng-multi-autocomplete.chip.d.ts.map +1 -1
- package/src/lib/form/multi-autocomplete/tng-multi-autocomplete.chip.js +23 -21
- package/src/lib/form/multi-autocomplete/tng-multi-autocomplete.chip.js.map +1 -1
- package/src/lib/form/multi-autocomplete/tng-multi-autocomplete.content.d.ts +3 -0
- package/src/lib/form/multi-autocomplete/tng-multi-autocomplete.content.d.ts.map +1 -1
- package/src/lib/form/multi-autocomplete/tng-multi-autocomplete.content.js +25 -23
- package/src/lib/form/multi-autocomplete/tng-multi-autocomplete.content.js.map +1 -1
- package/src/lib/form/multi-autocomplete/tng-multi-autocomplete.d.ts +3 -0
- package/src/lib/form/multi-autocomplete/tng-multi-autocomplete.d.ts.map +1 -1
- package/src/lib/form/multi-autocomplete/tng-multi-autocomplete.js +35 -33
- package/src/lib/form/multi-autocomplete/tng-multi-autocomplete.js.map +1 -1
- package/src/lib/form/multi-autocomplete/tng-multi-autocomplete.listbox.d.ts +6 -0
- package/src/lib/form/multi-autocomplete/tng-multi-autocomplete.listbox.d.ts.map +1 -1
- package/src/lib/form/multi-autocomplete/tng-multi-autocomplete.listbox.js +57 -46
- package/src/lib/form/multi-autocomplete/tng-multi-autocomplete.listbox.js.map +1 -1
- package/src/lib/form/multi-autocomplete/tng-multi-autocomplete.overlay.d.ts +3 -0
- package/src/lib/form/multi-autocomplete/tng-multi-autocomplete.overlay.d.ts.map +1 -1
- package/src/lib/form/multi-autocomplete/tng-multi-autocomplete.overlay.js +16 -14
- package/src/lib/form/multi-autocomplete/tng-multi-autocomplete.overlay.js.map +1 -1
- package/src/lib/form/multi-autocomplete/tng-multi-autocomplete.trigger.d.ts +3 -0
- package/src/lib/form/multi-autocomplete/tng-multi-autocomplete.trigger.d.ts.map +1 -1
- package/src/lib/form/multi-autocomplete/tng-multi-autocomplete.trigger.js +52 -50
- package/src/lib/form/multi-autocomplete/tng-multi-autocomplete.trigger.js.map +1 -1
- package/src/lib/form/multi-select/tng-multi-select.d.ts +3 -0
- package/src/lib/form/multi-select/tng-multi-select.d.ts.map +1 -1
- package/src/lib/form/multi-select/tng-multi-select.js +41 -36
- package/src/lib/form/multi-select/tng-multi-select.js.map +1 -1
- package/src/lib/form/multi-select/tng-multi-select.listbox.d.ts +6 -0
- package/src/lib/form/multi-select/tng-multi-select.listbox.d.ts.map +1 -1
- package/src/lib/form/multi-select/tng-multi-select.listbox.js +50 -45
- package/src/lib/form/multi-select/tng-multi-select.listbox.js.map +1 -1
- package/src/lib/form/multiselect/tng-multiselect.d.ts +3 -0
- package/src/lib/form/multiselect/tng-multiselect.d.ts.map +1 -1
- package/src/lib/form/multiselect/tng-multiselect.js +16 -14
- package/src/lib/form/multiselect/tng-multiselect.js.map +1 -1
- package/src/lib/form/radio/tng-radio.d.ts +3 -0
- package/src/lib/form/radio/tng-radio.d.ts.map +1 -1
- package/src/lib/form/radio/tng-radio.js +91 -101
- package/src/lib/form/radio/tng-radio.js.map +1 -1
- package/src/lib/form/select/tng-select.d.ts +3 -0
- package/src/lib/form/select/tng-select.d.ts.map +1 -1
- package/src/lib/form/select/tng-select.js +41 -36
- package/src/lib/form/select/tng-select.js.map +1 -1
- package/src/lib/form/select/tng-select.listbox.d.ts +6 -0
- package/src/lib/form/select/tng-select.listbox.d.ts.map +1 -1
- package/src/lib/form/select/tng-select.listbox.js +50 -45
- package/src/lib/form/select/tng-select.listbox.js.map +1 -1
- package/src/lib/form/slider/tng-slider.d.ts +3 -0
- package/src/lib/form/slider/tng-slider.d.ts.map +1 -1
- package/src/lib/form/slider/tng-slider.js +42 -50
- package/src/lib/form/slider/tng-slider.js.map +1 -1
- package/src/lib/form/switch/tng-switch.d.ts +3 -0
- package/src/lib/form/switch/tng-switch.d.ts.map +1 -1
- package/src/lib/form/switch/tng-switch.js +44 -48
- package/src/lib/form/switch/tng-switch.js.map +1 -1
- package/src/lib/form/textarea/tng-textarea.d.ts +4 -0
- package/src/lib/form/textarea/tng-textarea.d.ts.map +1 -1
- package/src/lib/form/textarea/tng-textarea.js +40 -41
- package/src/lib/form/textarea/tng-textarea.js.map +1 -1
- package/src/lib/form/toggle/tng-toggle.d.ts +3 -0
- package/src/lib/form/toggle/tng-toggle.d.ts.map +1 -1
- package/src/lib/form/toggle/tng-toggle.js +71 -75
- package/src/lib/form/toggle/tng-toggle.js.map +1 -1
- package/src/lib/form/toggle-group/tng-toggle-group.d.ts +3 -0
- package/src/lib/form/toggle-group/tng-toggle-group.d.ts.map +1 -1
- package/src/lib/form/toggle-group/tng-toggle-group.js +48 -50
- package/src/lib/form/toggle-group/tng-toggle-group.js.map +1 -1
- package/src/lib/layout/accordion/tng-accordion.d.ts +9 -0
- package/src/lib/layout/accordion/tng-accordion.d.ts.map +1 -1
- package/src/lib/layout/accordion/tng-accordion.js +143 -155
- package/src/lib/layout/accordion/tng-accordion.js.map +1 -1
- package/src/lib/layout/bottom-sheet/tng-bottom-sheet.d.ts +3 -0
- package/src/lib/layout/bottom-sheet/tng-bottom-sheet.d.ts.map +1 -1
- package/src/lib/layout/bottom-sheet/tng-bottom-sheet.js +16 -14
- package/src/lib/layout/bottom-sheet/tng-bottom-sheet.js.map +1 -1
- package/src/lib/layout/card/tng-card.d.ts +21 -0
- package/src/lib/layout/card/tng-card.d.ts.map +1 -1
- package/src/lib/layout/card/tng-card.js +151 -131
- package/src/lib/layout/card/tng-card.js.map +1 -1
- package/src/lib/layout/collapsible/tng-collapsible.d.ts +7 -0
- package/src/lib/layout/collapsible/tng-collapsible.d.ts.map +1 -1
- package/src/lib/layout/collapsible/tng-collapsible.js +82 -86
- package/src/lib/layout/collapsible/tng-collapsible.js.map +1 -1
- package/src/lib/layout/drawer/tng-drawer.d.ts +13 -0
- package/src/lib/layout/drawer/tng-drawer.d.ts.map +1 -1
- package/src/lib/layout/drawer/tng-drawer.js +217 -226
- package/src/lib/layout/drawer/tng-drawer.js.map +1 -1
- package/src/lib/layout/grid/tng-grid.d.ts +3 -0
- package/src/lib/layout/grid/tng-grid.d.ts.map +1 -1
- package/src/lib/layout/grid/tng-grid.js +16 -14
- package/src/lib/layout/grid/tng-grid.js.map +1 -1
- package/src/lib/layout/separator/tng-separator.d.ts +3 -0
- package/src/lib/layout/separator/tng-separator.d.ts.map +1 -1
- package/src/lib/layout/separator/tng-separator.js +30 -30
- package/src/lib/layout/separator/tng-separator.js.map +1 -1
- package/src/lib/layout/stepper/tng-stepper.d.ts +3 -0
- package/src/lib/layout/stepper/tng-stepper.d.ts.map +1 -1
- package/src/lib/layout/stepper/tng-stepper.js +16 -14
- package/src/lib/layout/stepper/tng-stepper.js.map +1 -1
- package/src/lib/layout/tree/__tests__/tng-tree.test-harness.d.ts +3 -0
- package/src/lib/layout/tree/__tests__/tng-tree.test-harness.d.ts.map +1 -1
- package/src/lib/layout/tree/__tests__/tng-tree.test-harness.js +54 -11
- package/src/lib/layout/tree/__tests__/tng-tree.test-harness.js.map +1 -1
- package/src/lib/layout/tree/tng-tree-group.d.ts +3 -0
- package/src/lib/layout/tree/tng-tree-group.d.ts.map +1 -1
- package/src/lib/layout/tree/tng-tree-group.js +19 -17
- package/src/lib/layout/tree/tng-tree-group.js.map +1 -1
- package/src/lib/layout/tree/tng-tree-indicator.d.ts +3 -0
- package/src/lib/layout/tree/tng-tree-indicator.d.ts.map +1 -1
- package/src/lib/layout/tree/tng-tree-indicator.js +22 -20
- package/src/lib/layout/tree/tng-tree-indicator.js.map +1 -1
- package/src/lib/layout/tree/tng-tree-item.d.ts +3 -0
- package/src/lib/layout/tree/tng-tree-item.d.ts.map +1 -1
- package/src/lib/layout/tree/tng-tree-item.js +47 -53
- package/src/lib/layout/tree/tng-tree-item.js.map +1 -1
- package/src/lib/layout/tree/tng-tree.d.ts +3 -0
- package/src/lib/layout/tree/tng-tree.d.ts.map +1 -1
- package/src/lib/layout/tree/tng-tree.js +39 -43
- package/src/lib/layout/tree/tng-tree.js.map +1 -1
- package/src/lib/navigation/breadcrumb/tng-breadcrumb.d.ts +11 -0
- package/src/lib/navigation/breadcrumb/tng-breadcrumb.d.ts.map +1 -1
- package/src/lib/navigation/breadcrumb/tng-breadcrumb.js +79 -69
- package/src/lib/navigation/breadcrumb/tng-breadcrumb.js.map +1 -1
- package/src/lib/navigation/context-menu/tng-context-menu.d.ts +5 -0
- package/src/lib/navigation/context-menu/tng-context-menu.d.ts.map +1 -1
- package/src/lib/navigation/context-menu/tng-context-menu.js +44 -42
- package/src/lib/navigation/context-menu/tng-context-menu.js.map +1 -1
- package/src/lib/navigation/dropdown-menu/tng-dropdown-menu.d.ts +3 -0
- package/src/lib/navigation/dropdown-menu/tng-dropdown-menu.d.ts.map +1 -1
- package/src/lib/navigation/dropdown-menu/tng-dropdown-menu.js +16 -14
- package/src/lib/navigation/dropdown-menu/tng-dropdown-menu.js.map +1 -1
- package/src/lib/navigation/menu/tng-menu.d.ts +13 -0
- package/src/lib/navigation/menu/tng-menu.d.ts.map +1 -1
- package/src/lib/navigation/menu/tng-menu.js +184 -186
- package/src/lib/navigation/menu/tng-menu.js.map +1 -1
- package/src/lib/navigation/menubar/tng-menubar.d.ts +5 -0
- package/src/lib/navigation/menubar/tng-menubar.d.ts.map +1 -1
- package/src/lib/navigation/menubar/tng-menubar.js +72 -70
- package/src/lib/navigation/menubar/tng-menubar.js.map +1 -1
- package/src/lib/navigation/navigation-menu/tng-navigation-menu.d.ts +3 -0
- package/src/lib/navigation/navigation-menu/tng-navigation-menu.d.ts.map +1 -1
- package/src/lib/navigation/navigation-menu/tng-navigation-menu.js +16 -14
- package/src/lib/navigation/navigation-menu/tng-navigation-menu.js.map +1 -1
- package/src/lib/navigation/tabs/tng-tabs.d.ts +13 -0
- package/src/lib/navigation/tabs/tng-tabs.d.ts.map +1 -1
- package/src/lib/navigation/tabs/tng-tabs.js +234 -258
- package/src/lib/navigation/tabs/tng-tabs.js.map +1 -1
- package/src/lib/navigation/toolbar/tng-toolbar.d.ts +3 -0
- package/src/lib/navigation/toolbar/tng-toolbar.d.ts.map +1 -1
- package/src/lib/navigation/toolbar/tng-toolbar.js +16 -14
- package/src/lib/navigation/toolbar/tng-toolbar.js.map +1 -1
- package/src/lib/overlay/dialog/tng-dialog.d.ts +19 -0
- package/src/lib/overlay/dialog/tng-dialog.d.ts.map +1 -1
- package/src/lib/overlay/dialog/tng-dialog.js +249 -255
- package/src/lib/overlay/dialog/tng-dialog.js.map +1 -1
- package/src/lib/overlay/popover/tng-popover.d.ts +9 -0
- package/src/lib/overlay/popover/tng-popover.d.ts.map +1 -1
- package/src/lib/overlay/popover/tng-popover.js +152 -170
- package/src/lib/overlay/popover/tng-popover.js.map +1 -1
- package/src/lib/overlay/tooltip/tng-tooltip.d.ts +7 -0
- package/src/lib/overlay/tooltip/tng-tooltip.d.ts.map +1 -1
- package/src/lib/overlay/tooltip/tng-tooltip.js +124 -130
- package/src/lib/overlay/tooltip/tng-tooltip.js.map +1 -1
- package/src/lib/utility/avatar/tng-avatar.d.ts +7 -0
- package/src/lib/utility/avatar/tng-avatar.d.ts.map +1 -1
- package/src/lib/utility/avatar/tng-avatar.js +46 -40
- package/src/lib/utility/avatar/tng-avatar.js.map +1 -1
- package/src/lib/utility/badge/tng-badge.d.ts +3 -0
- package/src/lib/utility/badge/tng-badge.d.ts.map +1 -1
- package/src/lib/utility/badge/tng-badge.js +26 -40
- package/src/lib/utility/badge/tng-badge.js.map +1 -1
- package/src/lib/utility/code-block/tng-code-block.d.ts +11 -0
- package/src/lib/utility/code-block/tng-code-block.d.ts.map +1 -1
- package/src/lib/utility/code-block/tng-code-block.js +76 -66
- package/src/lib/utility/code-block/tng-code-block.js.map +1 -1
- package/src/lib/utility/copy/tng-copy.d.ts +3 -0
- package/src/lib/utility/copy/tng-copy.d.ts.map +1 -1
- package/src/lib/utility/copy/tng-copy.js +44 -52
- package/src/lib/utility/copy/tng-copy.js.map +1 -1
- package/src/lib/utility/press/tng-press.d.ts +3 -0
- package/src/lib/utility/press/tng-press.d.ts.map +1 -1
- package/src/lib/utility/press/tng-press.js +55 -61
- package/src/lib/utility/press/tng-press.js.map +1 -1
- package/src/lib/utility/tag/tng-tag.d.ts +7 -0
- package/src/lib/utility/tag/tng-tag.d.ts.map +1 -1
- package/src/lib/utility/tag/tng-tag.js +94 -96
- package/src/lib/utility/tag/tng-tag.js.map +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
1
2
|
export type TngDrawerAutoBoolean = 'auto' | boolean;
|
|
2
3
|
export type TngDrawerDirection = 'ltr' | 'rtl' | 'auto';
|
|
3
4
|
export type TngDrawerMode = 'overlay' | 'push' | 'side';
|
|
@@ -41,6 +42,8 @@ export declare class TngDrawerContainer {
|
|
|
41
42
|
private syncBodyScrollLock;
|
|
42
43
|
private syncContentInertState;
|
|
43
44
|
private syncContentOffsets;
|
|
45
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TngDrawerContainer, never>;
|
|
46
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TngDrawerContainer, "[tngDrawerContainer]", ["tngDrawerContainer"], { "hasBackdrop": { "alias": "hasBackdrop"; "required": false; "isSignal": true; }; "closeOthersOnOpen": { "alias": "closeOthersOnOpen"; "required": false; "isSignal": true; }; "animate": { "alias": "animate"; "required": false; "isSignal": true; }; "lockScroll": { "alias": "lockScroll"; "required": false; "isSignal": true; }; "dir": { "alias": "dir"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
44
47
|
}
|
|
45
48
|
export declare class TngDrawer {
|
|
46
49
|
private readonly documentRef;
|
|
@@ -155,6 +158,8 @@ export declare class TngDrawer {
|
|
|
155
158
|
private handleTrappedTab;
|
|
156
159
|
private resetSwipeState;
|
|
157
160
|
private isScrollbarPointerDown;
|
|
161
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TngDrawer, never>;
|
|
162
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TngDrawer, "[tngDrawer]", ["tngDrawer"], { "openedInput": { "alias": "opened"; "required": false; "isSignal": true; }; "defaultOpened": { "alias": "defaultOpened"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "backdrop": { "alias": "backdrop"; "required": false; "isSignal": true; }; "closeOnOutsideClickInput": { "alias": "closeOnOutsideClick"; "required": false; "isSignal": true; }; "closeOnEscape": { "alias": "closeOnEscape"; "required": false; "isSignal": true; }; "restoreFocus": { "alias": "restoreFocus"; "required": false; "isSignal": true; }; "autoFocus": { "alias": "autoFocus"; "required": false; "isSignal": true; }; "trapFocus": { "alias": "trapFocus"; "required": false; "isSignal": true; }; "inertContent": { "alias": "inertContent"; "required": false; "isSignal": true; }; "allowBodyScrollInput": { "alias": "allowBodyScroll"; "required": false; "isSignal": true; }; "closeOnTab": { "alias": "closeOnTab"; "required": false; "isSignal": true; }; "role": { "alias": "role"; "required": false; "isSignal": true; }; "fixedInViewport": { "alias": "fixedInViewport"; "required": false; "isSignal": true; }; "fixedTopGap": { "alias": "fixedTopGap"; "required": false; "isSignal": true; }; "fixedBottomGap": { "alias": "fixedBottomGap"; "required": false; "isSignal": true; }; "swipeToClose": { "alias": "swipeToClose"; "required": false; "isSignal": true; }; }, { "openedChange": "openedChange"; "tngDrawerOpened": "tngDrawerOpened"; "tngDrawerClosed": "tngDrawerClosed"; "openStart": "openStart"; "closeStart": "closeStart"; "backdropClick": "backdropClick"; "positionChange": "positionChange"; }, never, never, true, never>;
|
|
158
163
|
}
|
|
159
164
|
export declare class TngDrawerContent {
|
|
160
165
|
private readonly hostRef;
|
|
@@ -166,12 +171,20 @@ export declare class TngDrawerContent {
|
|
|
166
171
|
protected get dataContainerMissing(): 'true' | null;
|
|
167
172
|
applyOffsets(leftOffset: number, rightOffset: number): void;
|
|
168
173
|
setInert(nextInert: boolean): void;
|
|
174
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TngDrawerContent, never>;
|
|
175
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TngDrawerContent, "[tngDrawerContent]", ["tngDrawerContent"], {}, {}, never, never, true, never>;
|
|
169
176
|
}
|
|
170
177
|
export declare class TngSidenavContainer extends TngDrawerContainer {
|
|
178
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TngSidenavContainer, never>;
|
|
179
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TngSidenavContainer, "[tngSidenavContainer]", ["tngSidenavContainer"], {}, {}, never, never, true, never>;
|
|
171
180
|
}
|
|
172
181
|
export declare class TngSidenav extends TngDrawer {
|
|
182
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TngSidenav, never>;
|
|
183
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TngSidenav, "[tngSidenav]", ["tngSidenav"], {}, {}, never, never, true, never>;
|
|
173
184
|
}
|
|
174
185
|
export declare class TngSidenavContent extends TngDrawerContent {
|
|
186
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TngSidenavContent, never>;
|
|
187
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TngSidenavContent, "[tngSidenavContent]", ["tngSidenavContent"], {}, {}, never, never, true, never>;
|
|
175
188
|
}
|
|
176
189
|
export {};
|
|
177
190
|
//# sourceMappingURL=tng-drawer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tng-drawer.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/tailng-ui/primitives/src/lib/layout/drawer/tng-drawer.ts"],"names":[],"mappings":"AA0BA,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,OAAO,CAAC;AACpD,MAAM,MAAM,kBAAkB,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,CAAC;AACxD,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;AACxD,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,KAAK,CAAC;AAChD,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,QAAQ,GAAG,eAAe,GAAG,QAAQ,CAAC;AACjF,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG,iBAAiB,GAAG,MAAM,CAAC;AACvE,KAAK,qBAAqB,GAAG,MAAM,GAAG,OAAO,CAAC;AAK9C,qBAKa,kBAAkB;IAC7B,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IAcvB,OAAO,CAAC,sBAAsB;IAQ9B,OAAO,CAAC,0BAA0B;IASlC,OAAO,CAAC,gBAAgB;IAIxB,OAAO,CAAC,yBAAyB;IA6BjC,OAAO,CAAC,qBAAqB;IA6B7B,OAAO,CAAC,gBAAgB;IAwBxB,OAAO,CAAC,eAAe;IAOvB,OAAO,CAAC,sBAAsB;yCAz0BnB,SAAS;2CAAT,SAAS;CA01BrB;AAED,qBAKa,gBAAgB;IAC3B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA+C;IACvE,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA8D;IAExF,QAAQ,IAAI,IAAI;IAIhB,WAAW,IAAI,IAAI;IAKnB,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAG,gBAAgB,CAAU;IAGxD,SAAS,KAAK,eAAe,IAAI,MAAM,GAAG,IAAI,CAE7C;IAGD,SAAS,KAAK,oBAAoB,IAAI,MAAM,GAAG,IAAI,CAElD;IAED,YAAY,CAAC,UAAU,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,IAAI;IAS3D,QAAQ,CAAC,SAAS,EAAE,OAAO,GAAG,IAAI;yCAlCvB,gBAAgB;2CAAhB,gBAAgB;CAuD5B;AAED,qBAWa,mBAAoB,SAAQ,kBAAkB;yCAA9C,mBAAmB;2CAAnB,mBAAmB;CAA8B;AAE9D,qBAWa,UAAW,SAAQ,SAAS;yCAA5B,UAAU;2CAAV,UAAU;CAAqB;AAE5C,qBAWa,iBAAkB,SAAQ,gBAAgB;yCAA1C,iBAAiB;2CAAjB,iBAAiB;CAA4B"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
1
|
import { DOCUMENT } from '@angular/common';
|
|
3
2
|
import { Directive, ElementRef, HostBinding, HostListener, forwardRef, inject, input, output, } from '@angular/core';
|
|
4
3
|
import { createScrollLockManager, createTngIdFactory } from '@tailng-ui/cdk';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
5
|
const createDrawerContainerId = createTngIdFactory('tng-drawer-container');
|
|
6
6
|
const createDrawerId = createTngIdFactory('tng-drawer');
|
|
7
7
|
const FOCUSABLE_SELECTOR = [
|
|
@@ -13,7 +13,7 @@ const FOCUSABLE_SELECTOR = [
|
|
|
13
13
|
'[tabindex]:not([tabindex="-1"])',
|
|
14
14
|
'[contenteditable="true"]',
|
|
15
15
|
].join(',');
|
|
16
|
-
|
|
16
|
+
export class TngDrawerContainer {
|
|
17
17
|
documentRef = inject(DOCUMENT, { optional: true });
|
|
18
18
|
hostRef = inject(ElementRef);
|
|
19
19
|
resolvedId = this.hostRef.nativeElement.getAttribute('id') ?? createDrawerContainerId();
|
|
@@ -33,17 +33,11 @@ let TngDrawerContainer = class TngDrawerContainer {
|
|
|
33
33
|
return Math.max(0, windowRef.innerWidth - rootWidth);
|
|
34
34
|
},
|
|
35
35
|
});
|
|
36
|
-
hasBackdrop = input('auto', { transform: normalizeAutoBooleanInput });
|
|
37
|
-
closeOthersOnOpen = input(true, {
|
|
38
|
-
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
transform: normalizeBooleanInput,
|
|
42
|
-
});
|
|
43
|
-
lockScroll = input('auto', { transform: normalizeAutoBooleanInput });
|
|
44
|
-
dir = input('auto', {
|
|
45
|
-
transform: normalizeDirectionInput,
|
|
46
|
-
});
|
|
36
|
+
hasBackdrop = input('auto', { ...(ngDevMode ? { debugName: "hasBackdrop" } : {}), transform: normalizeAutoBooleanInput });
|
|
37
|
+
closeOthersOnOpen = input(true, { ...(ngDevMode ? { debugName: "closeOthersOnOpen" } : {}), transform: normalizeBooleanInput });
|
|
38
|
+
animate = input(true, { ...(ngDevMode ? { debugName: "animate" } : {}), transform: normalizeBooleanInput });
|
|
39
|
+
lockScroll = input('auto', { ...(ngDevMode ? { debugName: "lockScroll" } : {}), transform: normalizeAutoBooleanInput });
|
|
40
|
+
dir = input('auto', { ...(ngDevMode ? { debugName: "dir" } : {}), transform: normalizeDirectionInput });
|
|
47
41
|
dataSlot = 'drawer-container';
|
|
48
42
|
id = this.resolvedId;
|
|
49
43
|
get dataContentCount() {
|
|
@@ -173,31 +167,33 @@ let TngDrawerContainer = class TngDrawerContainer {
|
|
|
173
167
|
content.applyOffsets(leftOffset, rightOffset);
|
|
174
168
|
}
|
|
175
169
|
}
|
|
176
|
-
};
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
],
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
]
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
],
|
|
199
|
-
|
|
200
|
-
|
|
170
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: TngDrawerContainer, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
171
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.1", type: TngDrawerContainer, isStandalone: true, selector: "[tngDrawerContainer]", inputs: { hasBackdrop: { classPropertyName: "hasBackdrop", publicName: "hasBackdrop", isSignal: true, isRequired: false, transformFunction: null }, closeOthersOnOpen: { classPropertyName: "closeOthersOnOpen", publicName: "closeOthersOnOpen", isSignal: true, isRequired: false, transformFunction: null }, animate: { classPropertyName: "animate", publicName: "animate", isSignal: true, isRequired: false, transformFunction: null }, lockScroll: { classPropertyName: "lockScroll", publicName: "lockScroll", isSignal: true, isRequired: false, transformFunction: null }, dir: { classPropertyName: "dir", publicName: "dir", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.data-slot": "this.dataSlot", "attr.id": "this.id", "attr.data-content-count": "this.dataContentCount", "attr.data-content-conflict": "this.dataContentConflict", "attr.data-direction": "this.dataDirection" } }, exportAs: ["tngDrawerContainer"], ngImport: i0 });
|
|
172
|
+
}
|
|
173
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: TngDrawerContainer, decorators: [{
|
|
174
|
+
type: Directive,
|
|
175
|
+
args: [{
|
|
176
|
+
selector: '[tngDrawerContainer]',
|
|
177
|
+
exportAs: 'tngDrawerContainer',
|
|
178
|
+
standalone: true,
|
|
179
|
+
}]
|
|
180
|
+
}], propDecorators: { hasBackdrop: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasBackdrop", required: false }] }], closeOthersOnOpen: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOthersOnOpen", required: false }] }], animate: [{ type: i0.Input, args: [{ isSignal: true, alias: "animate", required: false }] }], lockScroll: [{ type: i0.Input, args: [{ isSignal: true, alias: "lockScroll", required: false }] }], dir: [{ type: i0.Input, args: [{ isSignal: true, alias: "dir", required: false }] }], dataSlot: [{
|
|
181
|
+
type: HostBinding,
|
|
182
|
+
args: ['attr.data-slot']
|
|
183
|
+
}], id: [{
|
|
184
|
+
type: HostBinding,
|
|
185
|
+
args: ['attr.id']
|
|
186
|
+
}], dataContentCount: [{
|
|
187
|
+
type: HostBinding,
|
|
188
|
+
args: ['attr.data-content-count']
|
|
189
|
+
}], dataContentConflict: [{
|
|
190
|
+
type: HostBinding,
|
|
191
|
+
args: ['attr.data-content-conflict']
|
|
192
|
+
}], dataDirection: [{
|
|
193
|
+
type: HostBinding,
|
|
194
|
+
args: ['attr.data-direction']
|
|
195
|
+
}] } });
|
|
196
|
+
export class TngDrawer {
|
|
201
197
|
documentRef = inject(DOCUMENT, { optional: true });
|
|
202
198
|
hostRef = inject(ElementRef);
|
|
203
199
|
container = inject(TngDrawerContainer, { optional: true, host: true });
|
|
@@ -217,58 +213,28 @@ let TngDrawer = class TngDrawer {
|
|
|
217
213
|
swipeLastX = null;
|
|
218
214
|
swipeStartY = null;
|
|
219
215
|
swipeLastY = null;
|
|
220
|
-
openedInput = input(undefined, {
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
});
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
});
|
|
227
|
-
|
|
228
|
-
transform:
|
|
229
|
-
});
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
});
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
});
|
|
241
|
-
|
|
242
|
-
transform: normalizeBooleanInput,
|
|
243
|
-
});
|
|
244
|
-
restoreFocus = input(true, {
|
|
245
|
-
transform: normalizeBooleanInput,
|
|
246
|
-
});
|
|
247
|
-
autoFocus = input('drawer', { transform: normalizeAutoFocusInput });
|
|
248
|
-
trapFocus = input('auto', { transform: normalizeAutoBooleanInput });
|
|
249
|
-
inertContent = input('auto', { transform: normalizeAutoBooleanInput });
|
|
250
|
-
allowBodyScrollInput = input(undefined, {
|
|
251
|
-
alias: 'allowBodyScroll',
|
|
252
|
-
transform: normalizeOptionalBooleanInput,
|
|
253
|
-
});
|
|
254
|
-
closeOnTab = input(false, {
|
|
255
|
-
transform: normalizeBooleanInput,
|
|
256
|
-
});
|
|
257
|
-
role = input('navigation', {
|
|
258
|
-
transform: normalizeRoleInput,
|
|
259
|
-
});
|
|
260
|
-
fixedInViewport = input(false, {
|
|
261
|
-
transform: normalizeBooleanInput,
|
|
262
|
-
});
|
|
263
|
-
fixedTopGap = input(0, {
|
|
264
|
-
transform: normalizeNumberInput,
|
|
265
|
-
});
|
|
266
|
-
fixedBottomGap = input(0, {
|
|
267
|
-
transform: normalizeNumberInput,
|
|
268
|
-
});
|
|
269
|
-
swipeToClose = input(false, {
|
|
270
|
-
transform: normalizeBooleanInput,
|
|
271
|
-
});
|
|
216
|
+
openedInput = input(undefined, { ...(ngDevMode ? { debugName: "openedInput" } : {}), alias: 'opened',
|
|
217
|
+
transform: normalizeOptionalBooleanInput });
|
|
218
|
+
defaultOpened = input(false, { ...(ngDevMode ? { debugName: "defaultOpened" } : {}), transform: normalizeBooleanInput });
|
|
219
|
+
mode = input('overlay', { ...(ngDevMode ? { debugName: "mode" } : {}), transform: normalizeModeInput });
|
|
220
|
+
position = input('start', { ...(ngDevMode ? { debugName: "position" } : {}), transform: normalizePositionInput });
|
|
221
|
+
disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : {}), transform: normalizeBooleanInput });
|
|
222
|
+
backdrop = input('auto', { ...(ngDevMode ? { debugName: "backdrop" } : {}), transform: normalizeAutoBooleanInput });
|
|
223
|
+
closeOnOutsideClickInput = input(undefined, { ...(ngDevMode ? { debugName: "closeOnOutsideClickInput" } : {}), alias: 'closeOnOutsideClick',
|
|
224
|
+
transform: normalizeOptionalBooleanInput });
|
|
225
|
+
closeOnEscape = input(true, { ...(ngDevMode ? { debugName: "closeOnEscape" } : {}), transform: normalizeBooleanInput });
|
|
226
|
+
restoreFocus = input(true, { ...(ngDevMode ? { debugName: "restoreFocus" } : {}), transform: normalizeBooleanInput });
|
|
227
|
+
autoFocus = input('drawer', { ...(ngDevMode ? { debugName: "autoFocus" } : {}), transform: normalizeAutoFocusInput });
|
|
228
|
+
trapFocus = input('auto', { ...(ngDevMode ? { debugName: "trapFocus" } : {}), transform: normalizeAutoBooleanInput });
|
|
229
|
+
inertContent = input('auto', { ...(ngDevMode ? { debugName: "inertContent" } : {}), transform: normalizeAutoBooleanInput });
|
|
230
|
+
allowBodyScrollInput = input(undefined, { ...(ngDevMode ? { debugName: "allowBodyScrollInput" } : {}), alias: 'allowBodyScroll',
|
|
231
|
+
transform: normalizeOptionalBooleanInput });
|
|
232
|
+
closeOnTab = input(false, { ...(ngDevMode ? { debugName: "closeOnTab" } : {}), transform: normalizeBooleanInput });
|
|
233
|
+
role = input('navigation', { ...(ngDevMode ? { debugName: "role" } : {}), transform: normalizeRoleInput });
|
|
234
|
+
fixedInViewport = input(false, { ...(ngDevMode ? { debugName: "fixedInViewport" } : {}), transform: normalizeBooleanInput });
|
|
235
|
+
fixedTopGap = input(0, { ...(ngDevMode ? { debugName: "fixedTopGap" } : {}), transform: normalizeNumberInput });
|
|
236
|
+
fixedBottomGap = input(0, { ...(ngDevMode ? { debugName: "fixedBottomGap" } : {}), transform: normalizeNumberInput });
|
|
237
|
+
swipeToClose = input(false, { ...(ngDevMode ? { debugName: "swipeToClose" } : {}), transform: normalizeBooleanInput });
|
|
272
238
|
openedChange = output();
|
|
273
239
|
tngDrawerOpened = output();
|
|
274
240
|
tngDrawerClosed = output();
|
|
@@ -852,88 +818,90 @@ let TngDrawer = class TngDrawer {
|
|
|
852
818
|
const onHorizontalScrollbar = event.clientY >= viewportHeight && event.clientY > 0;
|
|
853
819
|
return onVerticalScrollbar || onHorizontalScrollbar;
|
|
854
820
|
}
|
|
855
|
-
};
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
],
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
]
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
]
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
],
|
|
935
|
-
|
|
936
|
-
|
|
821
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: TngDrawer, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
822
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.1", type: TngDrawer, isStandalone: true, selector: "[tngDrawer]", inputs: { openedInput: { classPropertyName: "openedInput", publicName: "opened", isSignal: true, isRequired: false, transformFunction: null }, defaultOpened: { classPropertyName: "defaultOpened", publicName: "defaultOpened", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, backdrop: { classPropertyName: "backdrop", publicName: "backdrop", isSignal: true, isRequired: false, transformFunction: null }, closeOnOutsideClickInput: { classPropertyName: "closeOnOutsideClickInput", publicName: "closeOnOutsideClick", isSignal: true, isRequired: false, transformFunction: null }, closeOnEscape: { classPropertyName: "closeOnEscape", publicName: "closeOnEscape", isSignal: true, isRequired: false, transformFunction: null }, restoreFocus: { classPropertyName: "restoreFocus", publicName: "restoreFocus", isSignal: true, isRequired: false, transformFunction: null }, autoFocus: { classPropertyName: "autoFocus", publicName: "autoFocus", isSignal: true, isRequired: false, transformFunction: null }, trapFocus: { classPropertyName: "trapFocus", publicName: "trapFocus", isSignal: true, isRequired: false, transformFunction: null }, inertContent: { classPropertyName: "inertContent", publicName: "inertContent", isSignal: true, isRequired: false, transformFunction: null }, allowBodyScrollInput: { classPropertyName: "allowBodyScrollInput", publicName: "allowBodyScroll", isSignal: true, isRequired: false, transformFunction: null }, closeOnTab: { classPropertyName: "closeOnTab", publicName: "closeOnTab", isSignal: true, isRequired: false, transformFunction: null }, role: { classPropertyName: "role", publicName: "role", isSignal: true, isRequired: false, transformFunction: null }, fixedInViewport: { classPropertyName: "fixedInViewport", publicName: "fixedInViewport", isSignal: true, isRequired: false, transformFunction: null }, fixedTopGap: { classPropertyName: "fixedTopGap", publicName: "fixedTopGap", isSignal: true, isRequired: false, transformFunction: null }, fixedBottomGap: { classPropertyName: "fixedBottomGap", publicName: "fixedBottomGap", isSignal: true, isRequired: false, transformFunction: null }, swipeToClose: { classPropertyName: "swipeToClose", publicName: "swipeToClose", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { openedChange: "openedChange", tngDrawerOpened: "tngDrawerOpened", tngDrawerClosed: "tngDrawerClosed", openStart: "openStart", closeStart: "closeStart", backdropClick: "backdropClick", positionChange: "positionChange" }, host: { listeners: { "transitionend": "onTransitionEnd($event)", "pointerdown": "onHostPointerDown($event)", "pointermove": "onHostPointerMove($event)", "pointerup": "onHostPointerUp()" }, properties: { "attr.data-slot": "this.dataSlot", "attr.id": "this.id", "attr.role": "this.roleAttr", "attr.tabindex": "this.tabIndexAttr", "attr.data-mode": "this.dataMode", "attr.data-state": "this.dataState", "attr.data-open": "this.dataOpen", "attr.data-position": "this.dataPosition", "attr.data-effective-position": "this.dataEffectivePosition", "attr.data-disabled": "this.dataDisabled", "attr.aria-disabled": "this.ariaDisabled", "attr.data-container-id": "this.dataContainerId", "attr.data-container-missing": "this.dataContainerMissing", "attr.hidden": "this.hiddenAttr", "attr.aria-modal": "this.ariaModal", "style.position": "this.positionStyle", "style.top": "this.topStyle", "style.bottom": "this.bottomStyle", "style.left": "this.leftStyle", "style.right": "this.rightStyle" } }, exportAs: ["tngDrawer"], ngImport: i0 });
|
|
823
|
+
}
|
|
824
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: TngDrawer, decorators: [{
|
|
825
|
+
type: Directive,
|
|
826
|
+
args: [{
|
|
827
|
+
selector: '[tngDrawer]',
|
|
828
|
+
exportAs: 'tngDrawer',
|
|
829
|
+
standalone: true,
|
|
830
|
+
}]
|
|
831
|
+
}], propDecorators: { openedInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "opened", required: false }] }], defaultOpened: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultOpened", required: false }] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], backdrop: [{ type: i0.Input, args: [{ isSignal: true, alias: "backdrop", required: false }] }], closeOnOutsideClickInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnOutsideClick", required: false }] }], closeOnEscape: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnEscape", required: false }] }], restoreFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "restoreFocus", required: false }] }], autoFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoFocus", required: false }] }], trapFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "trapFocus", required: false }] }], inertContent: [{ type: i0.Input, args: [{ isSignal: true, alias: "inertContent", required: false }] }], allowBodyScrollInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "allowBodyScroll", required: false }] }], closeOnTab: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnTab", required: false }] }], role: [{ type: i0.Input, args: [{ isSignal: true, alias: "role", required: false }] }], fixedInViewport: [{ type: i0.Input, args: [{ isSignal: true, alias: "fixedInViewport", required: false }] }], fixedTopGap: [{ type: i0.Input, args: [{ isSignal: true, alias: "fixedTopGap", required: false }] }], fixedBottomGap: [{ type: i0.Input, args: [{ isSignal: true, alias: "fixedBottomGap", required: false }] }], swipeToClose: [{ type: i0.Input, args: [{ isSignal: true, alias: "swipeToClose", required: false }] }], openedChange: [{ type: i0.Output, args: ["openedChange"] }], tngDrawerOpened: [{ type: i0.Output, args: ["tngDrawerOpened"] }], tngDrawerClosed: [{ type: i0.Output, args: ["tngDrawerClosed"] }], openStart: [{ type: i0.Output, args: ["openStart"] }], closeStart: [{ type: i0.Output, args: ["closeStart"] }], backdropClick: [{ type: i0.Output, args: ["backdropClick"] }], positionChange: [{ type: i0.Output, args: ["positionChange"] }], onTransitionEnd: [{
|
|
832
|
+
type: HostListener,
|
|
833
|
+
args: ['transitionend', ['$event']]
|
|
834
|
+
}], onHostPointerDown: [{
|
|
835
|
+
type: HostListener,
|
|
836
|
+
args: ['pointerdown', ['$event']]
|
|
837
|
+
}], onHostPointerMove: [{
|
|
838
|
+
type: HostListener,
|
|
839
|
+
args: ['pointermove', ['$event']]
|
|
840
|
+
}], onHostPointerUp: [{
|
|
841
|
+
type: HostListener,
|
|
842
|
+
args: ['pointerup']
|
|
843
|
+
}], dataSlot: [{
|
|
844
|
+
type: HostBinding,
|
|
845
|
+
args: ['attr.data-slot']
|
|
846
|
+
}], id: [{
|
|
847
|
+
type: HostBinding,
|
|
848
|
+
args: ['attr.id']
|
|
849
|
+
}], roleAttr: [{
|
|
850
|
+
type: HostBinding,
|
|
851
|
+
args: ['attr.role']
|
|
852
|
+
}], tabIndexAttr: [{
|
|
853
|
+
type: HostBinding,
|
|
854
|
+
args: ['attr.tabindex']
|
|
855
|
+
}], dataMode: [{
|
|
856
|
+
type: HostBinding,
|
|
857
|
+
args: ['attr.data-mode']
|
|
858
|
+
}], dataState: [{
|
|
859
|
+
type: HostBinding,
|
|
860
|
+
args: ['attr.data-state']
|
|
861
|
+
}], dataOpen: [{
|
|
862
|
+
type: HostBinding,
|
|
863
|
+
args: ['attr.data-open']
|
|
864
|
+
}], dataPosition: [{
|
|
865
|
+
type: HostBinding,
|
|
866
|
+
args: ['attr.data-position']
|
|
867
|
+
}], dataEffectivePosition: [{
|
|
868
|
+
type: HostBinding,
|
|
869
|
+
args: ['attr.data-effective-position']
|
|
870
|
+
}], dataDisabled: [{
|
|
871
|
+
type: HostBinding,
|
|
872
|
+
args: ['attr.data-disabled']
|
|
873
|
+
}], ariaDisabled: [{
|
|
874
|
+
type: HostBinding,
|
|
875
|
+
args: ['attr.aria-disabled']
|
|
876
|
+
}], dataContainerId: [{
|
|
877
|
+
type: HostBinding,
|
|
878
|
+
args: ['attr.data-container-id']
|
|
879
|
+
}], dataContainerMissing: [{
|
|
880
|
+
type: HostBinding,
|
|
881
|
+
args: ['attr.data-container-missing']
|
|
882
|
+
}], hiddenAttr: [{
|
|
883
|
+
type: HostBinding,
|
|
884
|
+
args: ['attr.hidden']
|
|
885
|
+
}], ariaModal: [{
|
|
886
|
+
type: HostBinding,
|
|
887
|
+
args: ['attr.aria-modal']
|
|
888
|
+
}], positionStyle: [{
|
|
889
|
+
type: HostBinding,
|
|
890
|
+
args: ['style.position']
|
|
891
|
+
}], topStyle: [{
|
|
892
|
+
type: HostBinding,
|
|
893
|
+
args: ['style.top']
|
|
894
|
+
}], bottomStyle: [{
|
|
895
|
+
type: HostBinding,
|
|
896
|
+
args: ['style.bottom']
|
|
897
|
+
}], leftStyle: [{
|
|
898
|
+
type: HostBinding,
|
|
899
|
+
args: ['style.left']
|
|
900
|
+
}], rightStyle: [{
|
|
901
|
+
type: HostBinding,
|
|
902
|
+
args: ['style.right']
|
|
903
|
+
}] } });
|
|
904
|
+
export class TngDrawerContent {
|
|
937
905
|
hostRef = inject(ElementRef);
|
|
938
906
|
container = inject(TngDrawerContainer, { optional: true, host: true });
|
|
939
907
|
ngOnInit() {
|
|
@@ -979,72 +947,95 @@ let TngDrawerContent = class TngDrawerContent {
|
|
|
979
947
|
// noop: inert is not writable in some environments.
|
|
980
948
|
}
|
|
981
949
|
}
|
|
982
|
-
};
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
],
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
]
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
],
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
};
|
|
1002
|
-
TngSidenavContainer
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
exportAs: 'tngSidenavContainer',
|
|
1006
|
-
standalone: true,
|
|
1007
|
-
providers: [
|
|
950
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: TngDrawerContent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
951
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1.1", type: TngDrawerContent, isStandalone: true, selector: "[tngDrawerContent]", host: { properties: { "attr.data-slot": "this.dataSlot", "attr.data-container-id": "this.dataContainerId", "attr.data-container-missing": "this.dataContainerMissing" } }, exportAs: ["tngDrawerContent"], ngImport: i0 });
|
|
952
|
+
}
|
|
953
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: TngDrawerContent, decorators: [{
|
|
954
|
+
type: Directive,
|
|
955
|
+
args: [{
|
|
956
|
+
selector: '[tngDrawerContent]',
|
|
957
|
+
exportAs: 'tngDrawerContent',
|
|
958
|
+
standalone: true,
|
|
959
|
+
}]
|
|
960
|
+
}], propDecorators: { dataSlot: [{
|
|
961
|
+
type: HostBinding,
|
|
962
|
+
args: ['attr.data-slot']
|
|
963
|
+
}], dataContainerId: [{
|
|
964
|
+
type: HostBinding,
|
|
965
|
+
args: ['attr.data-container-id']
|
|
966
|
+
}], dataContainerMissing: [{
|
|
967
|
+
type: HostBinding,
|
|
968
|
+
args: ['attr.data-container-missing']
|
|
969
|
+
}] } });
|
|
970
|
+
export class TngSidenavContainer extends TngDrawerContainer {
|
|
971
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: TngSidenavContainer, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
972
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1.1", type: TngSidenavContainer, isStandalone: true, selector: "[tngSidenavContainer]", providers: [
|
|
1008
973
|
{
|
|
1009
974
|
provide: TngDrawerContainer,
|
|
1010
975
|
useExisting: forwardRef(() => TngSidenavContainer),
|
|
1011
976
|
},
|
|
1012
|
-
],
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
977
|
+
], exportAs: ["tngSidenavContainer"], usesInheritance: true, ngImport: i0 });
|
|
978
|
+
}
|
|
979
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: TngSidenavContainer, decorators: [{
|
|
980
|
+
type: Directive,
|
|
981
|
+
args: [{
|
|
982
|
+
selector: '[tngSidenavContainer]',
|
|
983
|
+
exportAs: 'tngSidenavContainer',
|
|
984
|
+
standalone: true,
|
|
985
|
+
providers: [
|
|
986
|
+
{
|
|
987
|
+
provide: TngDrawerContainer,
|
|
988
|
+
useExisting: forwardRef(() => TngSidenavContainer),
|
|
989
|
+
},
|
|
990
|
+
],
|
|
991
|
+
}]
|
|
992
|
+
}] });
|
|
993
|
+
export class TngSidenav extends TngDrawer {
|
|
994
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: TngSidenav, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
995
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1.1", type: TngSidenav, isStandalone: true, selector: "[tngSidenav]", providers: [
|
|
1024
996
|
{
|
|
1025
997
|
provide: TngDrawer,
|
|
1026
998
|
useExisting: forwardRef(() => TngSidenav),
|
|
1027
999
|
},
|
|
1028
|
-
],
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1000
|
+
], exportAs: ["tngSidenav"], usesInheritance: true, ngImport: i0 });
|
|
1001
|
+
}
|
|
1002
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: TngSidenav, decorators: [{
|
|
1003
|
+
type: Directive,
|
|
1004
|
+
args: [{
|
|
1005
|
+
selector: '[tngSidenav]',
|
|
1006
|
+
exportAs: 'tngSidenav',
|
|
1007
|
+
standalone: true,
|
|
1008
|
+
providers: [
|
|
1009
|
+
{
|
|
1010
|
+
provide: TngDrawer,
|
|
1011
|
+
useExisting: forwardRef(() => TngSidenav),
|
|
1012
|
+
},
|
|
1013
|
+
],
|
|
1014
|
+
}]
|
|
1015
|
+
}] });
|
|
1016
|
+
export class TngSidenavContent extends TngDrawerContent {
|
|
1017
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: TngSidenavContent, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1018
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1.1", type: TngSidenavContent, isStandalone: true, selector: "[tngSidenavContent]", providers: [
|
|
1040
1019
|
{
|
|
1041
1020
|
provide: TngDrawerContent,
|
|
1042
1021
|
useExisting: forwardRef(() => TngSidenavContent),
|
|
1043
1022
|
},
|
|
1044
|
-
],
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1023
|
+
], exportAs: ["tngSidenavContent"], usesInheritance: true, ngImport: i0 });
|
|
1024
|
+
}
|
|
1025
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: TngSidenavContent, decorators: [{
|
|
1026
|
+
type: Directive,
|
|
1027
|
+
args: [{
|
|
1028
|
+
selector: '[tngSidenavContent]',
|
|
1029
|
+
exportAs: 'tngSidenavContent',
|
|
1030
|
+
standalone: true,
|
|
1031
|
+
providers: [
|
|
1032
|
+
{
|
|
1033
|
+
provide: TngDrawerContent,
|
|
1034
|
+
useExisting: forwardRef(() => TngSidenavContent),
|
|
1035
|
+
},
|
|
1036
|
+
],
|
|
1037
|
+
}]
|
|
1038
|
+
}] });
|
|
1048
1039
|
function normalizeBooleanInput(value) {
|
|
1049
1040
|
if (typeof value === 'boolean') {
|
|
1050
1041
|
return value;
|