@ngneers/controls 0.0.1-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/ngneers-controls-accordion.mjs +234 -0
- package/fesm2022/ngneers-controls-accordion.mjs.map +1 -0
- package/fesm2022/ngneers-controls-api-ng.mjs +959 -0
- package/fesm2022/ngneers-controls-api-ng.mjs.map +1 -0
- package/fesm2022/ngneers-controls-api-resize.mjs +712 -0
- package/fesm2022/ngneers-controls-api-resize.mjs.map +1 -0
- package/fesm2022/ngneers-controls-api.mjs +347 -0
- package/fesm2022/ngneers-controls-api.mjs.map +1 -0
- package/fesm2022/ngneers-controls-avatar.mjs +77 -0
- package/fesm2022/ngneers-controls-avatar.mjs.map +1 -0
- package/fesm2022/ngneers-controls-base.mjs +620 -0
- package/fesm2022/ngneers-controls-base.mjs.map +1 -0
- package/fesm2022/ngneers-controls-breadcrumb.mjs +100 -0
- package/fesm2022/ngneers-controls-breadcrumb.mjs.map +1 -0
- package/fesm2022/ngneers-controls-button-group.mjs +110 -0
- package/fesm2022/ngneers-controls-button-group.mjs.map +1 -0
- package/fesm2022/ngneers-controls-button.mjs +83 -0
- package/fesm2022/ngneers-controls-button.mjs.map +1 -0
- package/fesm2022/ngneers-controls-calendar-time-CJT5AFlA.mjs +74 -0
- package/fesm2022/ngneers-controls-calendar-time-CJT5AFlA.mjs.map +1 -0
- package/fesm2022/ngneers-controls-calendar.mjs +801 -0
- package/fesm2022/ngneers-controls-calendar.mjs.map +1 -0
- package/fesm2022/ngneers-controls-checkbox.mjs +63 -0
- package/fesm2022/ngneers-controls-checkbox.mjs.map +1 -0
- package/fesm2022/ngneers-controls-chip.mjs +55 -0
- package/fesm2022/ngneers-controls-chip.mjs.map +1 -0
- package/fesm2022/ngneers-controls-default-icons.mjs +82 -0
- package/fesm2022/ngneers-controls-default-icons.mjs.map +1 -0
- package/fesm2022/ngneers-controls-defer.mjs +72 -0
- package/fesm2022/ngneers-controls-defer.mjs.map +1 -0
- package/fesm2022/ngneers-controls-dialog.mjs +407 -0
- package/fesm2022/ngneers-controls-dialog.mjs.map +1 -0
- package/fesm2022/ngneers-controls-directives.mjs +498 -0
- package/fesm2022/ngneers-controls-directives.mjs.map +1 -0
- package/fesm2022/ngneers-controls-drawer.mjs +271 -0
- package/fesm2022/ngneers-controls-drawer.mjs.map +1 -0
- package/fesm2022/ngneers-controls-edit-inplace.mjs +127 -0
- package/fesm2022/ngneers-controls-edit-inplace.mjs.map +1 -0
- package/fesm2022/ngneers-controls-errors.mjs +329 -0
- package/fesm2022/ngneers-controls-errors.mjs.map +1 -0
- package/fesm2022/ngneers-controls-filter.mjs +708 -0
- package/fesm2022/ngneers-controls-filter.mjs.map +1 -0
- package/fesm2022/ngneers-controls-hint.mjs +153 -0
- package/fesm2022/ngneers-controls-hint.mjs.map +1 -0
- package/fesm2022/ngneers-controls-i18n-translations-de.mjs +170 -0
- package/fesm2022/ngneers-controls-i18n-translations-de.mjs.map +1 -0
- package/fesm2022/ngneers-controls-i18n-translations-en.mjs +170 -0
- package/fesm2022/ngneers-controls-i18n-translations-en.mjs.map +1 -0
- package/fesm2022/ngneers-controls-i18n.mjs +57 -0
- package/fesm2022/ngneers-controls-i18n.mjs.map +1 -0
- package/fesm2022/ngneers-controls-icon.mjs +195 -0
- package/fesm2022/ngneers-controls-icon.mjs.map +1 -0
- package/fesm2022/ngneers-controls-inplace.mjs +150 -0
- package/fesm2022/ngneers-controls-inplace.mjs.map +1 -0
- package/fesm2022/ngneers-controls-input-field.mjs +165 -0
- package/fesm2022/ngneers-controls-input-field.mjs.map +1 -0
- package/fesm2022/ngneers-controls-input.mjs +72 -0
- package/fesm2022/ngneers-controls-input.mjs.map +1 -0
- package/fesm2022/ngneers-controls-item-view.mjs +473 -0
- package/fesm2022/ngneers-controls-item-view.mjs.map +1 -0
- package/fesm2022/ngneers-controls-list-box.mjs +281 -0
- package/fesm2022/ngneers-controls-list-box.mjs.map +1 -0
- package/fesm2022/ngneers-controls-mask-input.mjs +888 -0
- package/fesm2022/ngneers-controls-mask-input.mjs.map +1 -0
- package/fesm2022/ngneers-controls-menu.mjs +371 -0
- package/fesm2022/ngneers-controls-menu.mjs.map +1 -0
- package/fesm2022/ngneers-controls-message.mjs +30 -0
- package/fesm2022/ngneers-controls-message.mjs.map +1 -0
- package/fesm2022/ngneers-controls-number-input.mjs +366 -0
- package/fesm2022/ngneers-controls-number-input.mjs.map +1 -0
- package/fesm2022/ngneers-controls-paginator.mjs +129 -0
- package/fesm2022/ngneers-controls-paginator.mjs.map +1 -0
- package/fesm2022/ngneers-controls-popover.mjs +215 -0
- package/fesm2022/ngneers-controls-popover.mjs.map +1 -0
- package/fesm2022/ngneers-controls-progress.mjs +98 -0
- package/fesm2022/ngneers-controls-progress.mjs.map +1 -0
- package/fesm2022/ngneers-controls-radio.mjs +152 -0
- package/fesm2022/ngneers-controls-radio.mjs.map +1 -0
- package/fesm2022/ngneers-controls-roving-focus.mjs +323 -0
- package/fesm2022/ngneers-controls-roving-focus.mjs.map +1 -0
- package/fesm2022/ngneers-controls-scroll-shadow.mjs +65 -0
- package/fesm2022/ngneers-controls-scroll-shadow.mjs.map +1 -0
- package/fesm2022/ngneers-controls-scroller.mjs +308 -0
- package/fesm2022/ngneers-controls-scroller.mjs.map +1 -0
- package/fesm2022/ngneers-controls-select-button.mjs +58 -0
- package/fesm2022/ngneers-controls-select-button.mjs.map +1 -0
- package/fesm2022/ngneers-controls-select.mjs +417 -0
- package/fesm2022/ngneers-controls-select.mjs.map +1 -0
- package/fesm2022/ngneers-controls-slider.mjs +167 -0
- package/fesm2022/ngneers-controls-slider.mjs.map +1 -0
- package/fesm2022/ngneers-controls-snackbar.mjs +414 -0
- package/fesm2022/ngneers-controls-snackbar.mjs.map +1 -0
- package/fesm2022/ngneers-controls-spin-buttons.mjs +126 -0
- package/fesm2022/ngneers-controls-spin-buttons.mjs.map +1 -0
- package/fesm2022/ngneers-controls-spinner.mjs +184 -0
- package/fesm2022/ngneers-controls-spinner.mjs.map +1 -0
- package/fesm2022/ngneers-controls-splitter.mjs +604 -0
- package/fesm2022/ngneers-controls-splitter.mjs.map +1 -0
- package/fesm2022/ngneers-controls-state.mjs +185 -0
- package/fesm2022/ngneers-controls-state.mjs.map +1 -0
- package/fesm2022/ngneers-controls-switch.mjs +39 -0
- package/fesm2022/ngneers-controls-switch.mjs.map +1 -0
- package/fesm2022/ngneers-controls-table.mjs +2634 -0
- package/fesm2022/ngneers-controls-table.mjs.map +1 -0
- package/fesm2022/ngneers-controls-tabs.mjs +336 -0
- package/fesm2022/ngneers-controls-tabs.mjs.map +1 -0
- package/fesm2022/ngneers-controls-tag.mjs +30 -0
- package/fesm2022/ngneers-controls-tag.mjs.map +1 -0
- package/fesm2022/ngneers-controls-toast.mjs +350 -0
- package/fesm2022/ngneers-controls-toast.mjs.map +1 -0
- package/fesm2022/ngneers-controls-toggle-button.mjs +70 -0
- package/fesm2022/ngneers-controls-toggle-button.mjs.map +1 -0
- package/fesm2022/ngneers-controls-tooltip.mjs +506 -0
- package/fesm2022/ngneers-controls-tooltip.mjs.map +1 -0
- package/fesm2022/ngneers-controls-tree.mjs +599 -0
- package/fesm2022/ngneers-controls-tree.mjs.map +1 -0
- package/fesm2022/ngneers-controls-upload.mjs +377 -0
- package/fesm2022/ngneers-controls-upload.mjs.map +1 -0
- package/fesm2022/ngneers-controls-utils-ng.mjs +411 -0
- package/fesm2022/ngneers-controls-utils-ng.mjs.map +1 -0
- package/fesm2022/ngneers-controls-utils.mjs +261 -0
- package/fesm2022/ngneers-controls-utils.mjs.map +1 -0
- package/fesm2022/ngneers-controls.mjs +6 -0
- package/fesm2022/ngneers-controls.mjs.map +1 -0
- package/package.json +302 -0
- package/types/ngneers-controls-accordion.d.ts +139 -0
- package/types/ngneers-controls-api-ng.d.ts +364 -0
- package/types/ngneers-controls-api-resize.d.ts +318 -0
- package/types/ngneers-controls-api.d.ts +145 -0
- package/types/ngneers-controls-avatar.d.ts +54 -0
- package/types/ngneers-controls-base.d.ts +277 -0
- package/types/ngneers-controls-breadcrumb.d.ts +272 -0
- package/types/ngneers-controls-button-group.d.ts +46 -0
- package/types/ngneers-controls-button.d.ts +48 -0
- package/types/ngneers-controls-calendar.d.ts +466 -0
- package/types/ngneers-controls-checkbox.d.ts +40 -0
- package/types/ngneers-controls-chip.d.ts +202 -0
- package/types/ngneers-controls-default-icons.d.ts +5 -0
- package/types/ngneers-controls-defer.d.ts +48 -0
- package/types/ngneers-controls-dialog.d.ts +399 -0
- package/types/ngneers-controls-directives.d.ts +171 -0
- package/types/ngneers-controls-drawer.d.ts +308 -0
- package/types/ngneers-controls-edit-inplace.d.ts +263 -0
- package/types/ngneers-controls-errors.d.ts +155 -0
- package/types/ngneers-controls-filter.d.ts +609 -0
- package/types/ngneers-controls-hint.d.ts +88 -0
- package/types/ngneers-controls-i18n-translations-de.d.ts +164 -0
- package/types/ngneers-controls-i18n-translations-en.d.ts +164 -0
- package/types/ngneers-controls-i18n.d.ts +186 -0
- package/types/ngneers-controls-icon.d.ts +68 -0
- package/types/ngneers-controls-inplace.d.ts +98 -0
- package/types/ngneers-controls-input-field.d.ts +248 -0
- package/types/ngneers-controls-input.d.ts +30 -0
- package/types/ngneers-controls-item-view.d.ts +215 -0
- package/types/ngneers-controls-list-box.d.ts +334 -0
- package/types/ngneers-controls-mask-input.d.ts +434 -0
- package/types/ngneers-controls-menu.d.ts +192 -0
- package/types/ngneers-controls-message.d.ts +21 -0
- package/types/ngneers-controls-number-input.d.ts +146 -0
- package/types/ngneers-controls-paginator.d.ts +255 -0
- package/types/ngneers-controls-popover.d.ts +116 -0
- package/types/ngneers-controls-progress.d.ts +49 -0
- package/types/ngneers-controls-radio.d.ts +91 -0
- package/types/ngneers-controls-roving-focus.d.ts +107 -0
- package/types/ngneers-controls-scroll-shadow.d.ts +25 -0
- package/types/ngneers-controls-scroller.d.ts +151 -0
- package/types/ngneers-controls-select-button.d.ts +51 -0
- package/types/ngneers-controls-select.d.ts +409 -0
- package/types/ngneers-controls-slider.d.ts +57 -0
- package/types/ngneers-controls-snackbar.d.ts +330 -0
- package/types/ngneers-controls-spin-buttons.d.ts +69 -0
- package/types/ngneers-controls-spinner.d.ts +117 -0
- package/types/ngneers-controls-splitter.d.ts +465 -0
- package/types/ngneers-controls-state.d.ts +102 -0
- package/types/ngneers-controls-switch.d.ts +18 -0
- package/types/ngneers-controls-table.d.ts +3127 -0
- package/types/ngneers-controls-tabs.d.ts +118 -0
- package/types/ngneers-controls-tag.d.ts +21 -0
- package/types/ngneers-controls-toast.d.ts +298 -0
- package/types/ngneers-controls-toggle-button.d.ts +48 -0
- package/types/ngneers-controls-tooltip.d.ts +189 -0
- package/types/ngneers-controls-tree.d.ts +409 -0
- package/types/ngneers-controls-upload.d.ts +347 -0
- package/types/ngneers-controls-utils-ng.d.ts +129 -0
- package/types/ngneers-controls-utils.d.ts +130 -0
- package/types/ngneers-controls.d.ts +2 -0
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
import { NgTemplateOutlet } from '@angular/common';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { viewChild, contentChild, input, computed, Directive, inject, output, model, booleanAttribute, signal, afterRenderEffect, effect, untracked, Component } from '@angular/core';
|
|
4
|
+
import { templateTypesFn, Platform, toPopoverCloseBy, NgnTemplate } from '@ngneers/controls/api/ng';
|
|
5
|
+
import { NgnBase, NgnPt, provideSelf } from '@ngneers/controls/base';
|
|
6
|
+
import { NgnButton } from '@ngneers/controls/button';
|
|
7
|
+
import { NgnDefer } from '@ngneers/controls/defer';
|
|
8
|
+
import { I18n } from '@ngneers/controls/i18n';
|
|
9
|
+
import { NgnIcon } from '@ngneers/controls/icon';
|
|
10
|
+
import { generateElementId, FocusTrap } from '@ngneers/controls/utils-ng';
|
|
11
|
+
import { drawerControlTemplate } from '@ngneers/controls-themes/templates/drawer';
|
|
12
|
+
|
|
13
|
+
class DrawerTemplates extends NgnBase {
|
|
14
|
+
// Header template
|
|
15
|
+
_defaultHeaderTemplate = viewChild.required('defaultHeaderTemplate');
|
|
16
|
+
_userHeaderTemplate = contentChild('header', /* @ts-ignore */
|
|
17
|
+
...(ngDevMode ? [{ debugName: "_userHeaderTemplate" }] : /* istanbul ignore next */ []));
|
|
18
|
+
/**
|
|
19
|
+
* Set a custom template for the header.
|
|
20
|
+
* Can also be set using an `<ng-template>` element with `#header` template reference variable.
|
|
21
|
+
*/
|
|
22
|
+
templateHeader = input(null, /* @ts-ignore */
|
|
23
|
+
...(ngDevMode ? [{ debugName: "templateHeader" }] : /* istanbul ignore next */ []));
|
|
24
|
+
headerTemplate = computed(() => this._userHeaderTemplate() ?? this.templateHeader() ?? this._defaultHeaderTemplate(), /* @ts-ignore */
|
|
25
|
+
...(ngDevMode ? [{ debugName: "headerTemplate" }] : /* istanbul ignore next */ []));
|
|
26
|
+
// Footer template
|
|
27
|
+
_userFooterTemplate = contentChild('footer', /* @ts-ignore */
|
|
28
|
+
...(ngDevMode ? [{ debugName: "_userFooterTemplate" }] : /* istanbul ignore next */ []));
|
|
29
|
+
/**
|
|
30
|
+
* Set a custom template for the footer.
|
|
31
|
+
* Can also be set using an `<ng-template>` element with `#footer` template reference variable.
|
|
32
|
+
*/
|
|
33
|
+
templateFooter = input(null, /* @ts-ignore */
|
|
34
|
+
...(ngDevMode ? [{ debugName: "templateFooter" }] : /* istanbul ignore next */ []));
|
|
35
|
+
footerTemplate = computed(() => this._userFooterTemplate() ?? this.templateFooter(), /* @ts-ignore */
|
|
36
|
+
...(ngDevMode ? [{ debugName: "footerTemplate" }] : /* istanbul ignore next */ []));
|
|
37
|
+
// Content template
|
|
38
|
+
_userContentTemplate = contentChild('content', /* @ts-ignore */
|
|
39
|
+
...(ngDevMode ? [{ debugName: "_userContentTemplate" }] : /* istanbul ignore next */ []));
|
|
40
|
+
/**
|
|
41
|
+
* Set a custom template for the content.
|
|
42
|
+
* Can also be set using an `<ng-template>` element with `#content` template reference variable.
|
|
43
|
+
*/
|
|
44
|
+
content = input(null, /* @ts-ignore */
|
|
45
|
+
...(ngDevMode ? [{ debugName: "content" }] : /* istanbul ignore next */ []));
|
|
46
|
+
contentTemplate = computed(() => this._userContentTemplate() ?? this.content(), /* @ts-ignore */
|
|
47
|
+
...(ngDevMode ? [{ debugName: "contentTemplate" }] : /* istanbul ignore next */ []));
|
|
48
|
+
/**
|
|
49
|
+
* Types for the drawer templates.
|
|
50
|
+
*/
|
|
51
|
+
templateTypes = templateTypesFn();
|
|
52
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: DrawerTemplates, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
53
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "22.0.5", type: DrawerTemplates, isStandalone: true, inputs: { templateHeader: { classPropertyName: "templateHeader", publicName: "templateHeader", isSignal: true, isRequired: false, transformFunction: null }, templateFooter: { classPropertyName: "templateFooter", publicName: "templateFooter", isSignal: true, isRequired: false, transformFunction: null }, content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: false, transformFunction: null } }, queries: [{ propertyName: "_userHeaderTemplate", first: true, predicate: ["header"], descendants: true, isSignal: true }, { propertyName: "_userFooterTemplate", first: true, predicate: ["footer"], descendants: true, isSignal: true }, { propertyName: "_userContentTemplate", first: true, predicate: ["content"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "_defaultHeaderTemplate", first: true, predicate: ["defaultHeaderTemplate"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0 });
|
|
54
|
+
}
|
|
55
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: DrawerTemplates, decorators: [{
|
|
56
|
+
type: Directive
|
|
57
|
+
}], propDecorators: { _defaultHeaderTemplate: [{ type: i0.ViewChild, args: ['defaultHeaderTemplate', { isSignal: true }] }], _userHeaderTemplate: [{ type: i0.ContentChild, args: ['header', { isSignal: true }] }], templateHeader: [{ type: i0.Input, args: [{ isSignal: true, alias: "templateHeader", required: false }] }], _userFooterTemplate: [{ type: i0.ContentChild, args: ['footer', { isSignal: true }] }], templateFooter: [{ type: i0.Input, args: [{ isSignal: true, alias: "templateFooter", required: false }] }], _userContentTemplate: [{ type: i0.ContentChild, args: ['content', { isSignal: true }] }], content: [{ type: i0.Input, args: [{ isSignal: true, alias: "content", required: false }] }] } });
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* @category control
|
|
61
|
+
*/
|
|
62
|
+
class NgnDrawer extends DrawerTemplates {
|
|
63
|
+
theme = this.injectThemeTemplate(drawerControlTemplate, {
|
|
64
|
+
root: true,
|
|
65
|
+
horizontal: () => this.horizontal(),
|
|
66
|
+
});
|
|
67
|
+
i18n = inject(I18n).translations;
|
|
68
|
+
headerId = generateElementId();
|
|
69
|
+
_focusTrap;
|
|
70
|
+
/**
|
|
71
|
+
* Emits when the drawer has fully closed.
|
|
72
|
+
*/
|
|
73
|
+
closed = output();
|
|
74
|
+
/**
|
|
75
|
+
* Shows or hides the drawer.
|
|
76
|
+
*
|
|
77
|
+
* You probably want to react to openChange events from outside to update your variable accordingly.
|
|
78
|
+
* @default false
|
|
79
|
+
*/
|
|
80
|
+
open = model(false, /* @ts-ignore */
|
|
81
|
+
...(ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []));
|
|
82
|
+
/**
|
|
83
|
+
* How the drawer closes depending on user interaction.
|
|
84
|
+
* @default 'any'
|
|
85
|
+
*/
|
|
86
|
+
closeBy = input('any', /* @ts-ignore */
|
|
87
|
+
...(ngDevMode ? [{ debugName: "closeBy" }] : /* istanbul ignore next */ []));
|
|
88
|
+
/**
|
|
89
|
+
* Whether the drawer is a modal or not.
|
|
90
|
+
* A modal drawer prevents interaction with the rest of the page while open.
|
|
91
|
+
* @default false
|
|
92
|
+
*/
|
|
93
|
+
modal = input(false, { ...(ngDevMode ? { debugName: "modal" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
94
|
+
/**
|
|
95
|
+
* Position of the drawer
|
|
96
|
+
* @default 'left'
|
|
97
|
+
*/
|
|
98
|
+
position = input('left', /* @ts-ignore */
|
|
99
|
+
...(ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []));
|
|
100
|
+
/**
|
|
101
|
+
* The width or height of the drawer depending on its position
|
|
102
|
+
* @default '300px'
|
|
103
|
+
*/
|
|
104
|
+
size = input('300px', /* @ts-ignore */
|
|
105
|
+
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
106
|
+
/**
|
|
107
|
+
* Header text of the drawer
|
|
108
|
+
*/
|
|
109
|
+
header = input(/* @ts-ignore */
|
|
110
|
+
...(ngDevMode ? [undefined, { debugName: "header" }] : /* istanbul ignore next */ []));
|
|
111
|
+
/**
|
|
112
|
+
* The icon to use for the close button in the default header template
|
|
113
|
+
*/
|
|
114
|
+
iconClose = input(/* @ts-ignore */
|
|
115
|
+
...(ngDevMode ? [undefined, { debugName: "iconClose" }] : /* istanbul ignore next */ []));
|
|
116
|
+
/**
|
|
117
|
+
* Lazy load the drawer content
|
|
118
|
+
* @default false
|
|
119
|
+
*/
|
|
120
|
+
lazy = input(false, { ...(ngDevMode ? { debugName: "lazy" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
121
|
+
/**
|
|
122
|
+
* Whether to cache the lazy loaded content
|
|
123
|
+
* @default false
|
|
124
|
+
*/
|
|
125
|
+
cache = input(false, { ...(ngDevMode ? { debugName: "cache" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
126
|
+
appliedPosition = computed(() => {
|
|
127
|
+
const position = this.position();
|
|
128
|
+
if (this.platform.windowSize().height < 600 || this.platform.windowSize().width < 600) {
|
|
129
|
+
return 'fullscreen';
|
|
130
|
+
}
|
|
131
|
+
return position;
|
|
132
|
+
}, /* @ts-ignore */
|
|
133
|
+
...(ngDevMode ? [{ debugName: "appliedPosition" }] : /* istanbul ignore next */ []));
|
|
134
|
+
platform = inject(Platform);
|
|
135
|
+
_togglingTriggeredByInput = false;
|
|
136
|
+
isFullyClosed = signal(true, /* @ts-ignore */
|
|
137
|
+
...(ngDevMode ? [{ debugName: "isFullyClosed" }] : /* istanbul ignore next */ []));
|
|
138
|
+
closeByPopover = computed(() => toPopoverCloseBy(this.closeBy()), /* @ts-ignore */
|
|
139
|
+
...(ngDevMode ? [{ debugName: "closeByPopover" }] : /* istanbul ignore next */ []));
|
|
140
|
+
horizontal = computed(() => this.position() === 'top' || this.position() === 'bottom', /* @ts-ignore */
|
|
141
|
+
...(ngDevMode ? [{ debugName: "horizontal" }] : /* istanbul ignore next */ []));
|
|
142
|
+
doClose = this.hide.bind(this);
|
|
143
|
+
constructor() {
|
|
144
|
+
super();
|
|
145
|
+
afterRenderEffect(() => {
|
|
146
|
+
if (this.open()) {
|
|
147
|
+
this._togglingTriggeredByInput = true;
|
|
148
|
+
this.show();
|
|
149
|
+
}
|
|
150
|
+
else {
|
|
151
|
+
this._togglingTriggeredByInput = true;
|
|
152
|
+
this.hide();
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
// Trap focus inside a modal drawer while it is open. The Popover API already
|
|
156
|
+
// handles Escape/light-dismiss; the trap adds focus-in, Tab wrapping, and
|
|
157
|
+
// focus restore on close that the popover does not provide. Runs as an
|
|
158
|
+
// afterRenderEffect so the (deferred) content has rendered before we move
|
|
159
|
+
// focus onto its first focusable child — a rAF can fire before zoneless CD.
|
|
160
|
+
afterRenderEffect(() => {
|
|
161
|
+
if (this.open() && this.modal()) {
|
|
162
|
+
(this._focusTrap ??= new FocusTrap(this.element.nativeElement)).activate();
|
|
163
|
+
}
|
|
164
|
+
else {
|
|
165
|
+
this._focusTrap?.deactivate();
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
effect(() => {
|
|
169
|
+
const position = this.appliedPosition();
|
|
170
|
+
if (position === 'fullscreen') {
|
|
171
|
+
this.element.nativeElement.style.top = '0';
|
|
172
|
+
this.element.nativeElement.style.bottom = '0';
|
|
173
|
+
this.element.nativeElement.style.left = '0';
|
|
174
|
+
this.element.nativeElement.style.right = '0';
|
|
175
|
+
this.element.nativeElement.style.width = '100%';
|
|
176
|
+
this.element.nativeElement.style.height = '100%';
|
|
177
|
+
return;
|
|
178
|
+
}
|
|
179
|
+
this.element.nativeElement.style.top = position !== 'bottom' ? '0' : 'unset';
|
|
180
|
+
this.element.nativeElement.style.bottom = position !== 'top' ? '0' : 'unset';
|
|
181
|
+
this.element.nativeElement.style.left = position !== 'right' ? '0' : 'unset';
|
|
182
|
+
this.element.nativeElement.style.right = position !== 'left' ? '0' : 'unset';
|
|
183
|
+
if (position === 'left' || position === 'right') {
|
|
184
|
+
this.element.nativeElement.style.width = this.size();
|
|
185
|
+
this.element.nativeElement.style.height = '100%';
|
|
186
|
+
}
|
|
187
|
+
else {
|
|
188
|
+
this.element.nativeElement.style.height = this.size();
|
|
189
|
+
this.element.nativeElement.style.width = '100%';
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* Opens the drawer. Alternatively, you can also set the `open` input to `true`.
|
|
195
|
+
*/
|
|
196
|
+
show() {
|
|
197
|
+
untracked(() => {
|
|
198
|
+
if (this.open() && !this._togglingTriggeredByInput) {
|
|
199
|
+
return;
|
|
200
|
+
}
|
|
201
|
+
this._togglingTriggeredByInput = false;
|
|
202
|
+
this.element.nativeElement.togglePopover(true);
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Closes the drawer. Alternatively, you can also set the `open` input to `false`.
|
|
207
|
+
*/
|
|
208
|
+
hide() {
|
|
209
|
+
untracked(() => {
|
|
210
|
+
if (!this.open() && !this._togglingTriggeredByInput) {
|
|
211
|
+
return;
|
|
212
|
+
}
|
|
213
|
+
this._togglingTriggeredByInput = false;
|
|
214
|
+
this.element.nativeElement.togglePopover(false);
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* Toggles the drawer open or closed. Alternatively, you can also set the `open` input accordingly.
|
|
219
|
+
*/
|
|
220
|
+
toggle() {
|
|
221
|
+
if (untracked(this.open)) {
|
|
222
|
+
this.hide();
|
|
223
|
+
}
|
|
224
|
+
else {
|
|
225
|
+
this.show();
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
onToggle(event) {
|
|
229
|
+
const evt = event;
|
|
230
|
+
if (evt.newState === 'closed') {
|
|
231
|
+
this.open.set(false);
|
|
232
|
+
requestAnimationFrame(() => {
|
|
233
|
+
const allAnimationsDone = Promise.all(this.element.nativeElement.getAnimations().map(x => x.finished));
|
|
234
|
+
allAnimationsDone
|
|
235
|
+
.then(() => {
|
|
236
|
+
this.isFullyClosed.set(true);
|
|
237
|
+
this.closed.emit();
|
|
238
|
+
})
|
|
239
|
+
.catch(() => {
|
|
240
|
+
// ignore cancelled animation
|
|
241
|
+
});
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
else {
|
|
245
|
+
this.open.set(true);
|
|
246
|
+
this.isFullyClosed.set(false);
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: NgnDrawer, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
250
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: NgnDrawer, isStandalone: true, selector: "ngn-drawer", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, closeBy: { classPropertyName: "closeBy", publicName: "closeBy", isSignal: true, isRequired: false, transformFunction: null }, modal: { classPropertyName: "modal", publicName: "modal", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, iconClose: { classPropertyName: "iconClose", publicName: "iconClose", isSignal: true, isRequired: false, transformFunction: null }, lazy: { classPropertyName: "lazy", publicName: "lazy", isSignal: true, isRequired: false, transformFunction: null }, cache: { classPropertyName: "cache", publicName: "cache", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { closed: "closed", open: "openChange" }, host: { listeners: { "toggle": "onToggle($event)" }, properties: { "attr.popover": "closeByPopover()", "attr.aria-modal": "modal() ? \"true\" : null", "attr.role": "modal() ? \"dialog\" : \"complementary\"", "attr.aria-labelledby": "header() ? headerId : null", "attr.data-position": "position()" } }, providers: [provideSelf(NgnDrawer)], usesInheritance: true, ngImport: i0, template: "<header [ptInt]=\"this\" [ptClass]=\"'header'\">\n <ng-container\n *ngTemplateOutlet=\"\n headerTemplate();\n context: { $implicit: { close: doClose, text: this.header(), headerId } }\n \"\n />\n</header>\n<ngn-defer\n [lazyContent]=\"contentTemplate()\"\n [open]=\"open() || !isFullyClosed()\"\n [lazy]=\"lazy()\"\n [cache]=\"cache()\"\n [ptInt]=\"this\"\n [ptClass]=\"'content'\"\n>\n <ng-content />\n</ngn-defer>\n@if (footerTemplate(); as footerTemplate) {\n <footer [ptInt]=\"this\" [ptClass]=\"'footer'\">\n <ng-container *ngTemplateOutlet=\"footerTemplate\" />\n </footer>\n}\n\n<ng-template #defaultHeaderTemplate [ngnTemplate]=\"templateTypes.header\" let-header>\n <div [ptInt]=\"this\" [ptClass]=\"'default-header'\">\n <span [id]=\"header.headerId\" [ptInt]=\"this\" [ptClass]=\"'default-header-text'\">{{\n header.text\n }}</span>\n <button\n ngnButton\n [kind]=\"'icon'\"\n [attr.aria-label]=\"i18n['drawer_close']()\"\n (click)=\"header.close()\"\n >\n <ngn-icon defaultIcon=\"drawer-close\" [icon]=\"iconClose()\" />\n </button>\n </div>\n</ng-template>\n", dependencies: [{ kind: "directive", type: NgnPt, selector: "[ptInt]", inputs: ["ptInt", "ptClass", "ptDep"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: NgnDefer, selector: "ngn-defer", inputs: ["lazyContent", "lazyContentContext", "open", "lazy", "cache", "hiddenOnClosed"] }, { kind: "directive", type: NgnButton, selector: "button[ngnButton], a[ngnButton]", inputs: ["ngnButtonInline"], exportAs: ["ngnButton"] }, { kind: "component", type: NgnIcon, selector: "ngn-icon", inputs: ["defaultIcon", "icon"] }, { kind: "directive", type: NgnTemplate, selector: "ng-template[ngnTemplate]", inputs: ["ngnTemplate"] }] });
|
|
251
|
+
}
|
|
252
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: NgnDrawer, decorators: [{
|
|
253
|
+
type: Component,
|
|
254
|
+
args: [{ selector: 'ngn-drawer', imports: [NgnPt, NgTemplateOutlet, NgnDefer, NgnButton, NgnIcon, NgnTemplate], providers: [provideSelf(NgnDrawer)], host: {
|
|
255
|
+
'[attr.popover]': 'closeByPopover()',
|
|
256
|
+
'(toggle)': 'onToggle($event)',
|
|
257
|
+
'[attr.aria-modal]': 'modal() ? "true" : null',
|
|
258
|
+
// A modal overlay is a dialog; a non-modal side panel is complementary
|
|
259
|
+
// landmark content. `aria-modal` is only coherent on the dialog role.
|
|
260
|
+
'[attr.role]': 'modal() ? "dialog" : "complementary"',
|
|
261
|
+
'[attr.aria-labelledby]': 'header() ? headerId : null',
|
|
262
|
+
'[attr.data-position]': 'position()',
|
|
263
|
+
}, template: "<header [ptInt]=\"this\" [ptClass]=\"'header'\">\n <ng-container\n *ngTemplateOutlet=\"\n headerTemplate();\n context: { $implicit: { close: doClose, text: this.header(), headerId } }\n \"\n />\n</header>\n<ngn-defer\n [lazyContent]=\"contentTemplate()\"\n [open]=\"open() || !isFullyClosed()\"\n [lazy]=\"lazy()\"\n [cache]=\"cache()\"\n [ptInt]=\"this\"\n [ptClass]=\"'content'\"\n>\n <ng-content />\n</ngn-defer>\n@if (footerTemplate(); as footerTemplate) {\n <footer [ptInt]=\"this\" [ptClass]=\"'footer'\">\n <ng-container *ngTemplateOutlet=\"footerTemplate\" />\n </footer>\n}\n\n<ng-template #defaultHeaderTemplate [ngnTemplate]=\"templateTypes.header\" let-header>\n <div [ptInt]=\"this\" [ptClass]=\"'default-header'\">\n <span [id]=\"header.headerId\" [ptInt]=\"this\" [ptClass]=\"'default-header-text'\">{{\n header.text\n }}</span>\n <button\n ngnButton\n [kind]=\"'icon'\"\n [attr.aria-label]=\"i18n['drawer_close']()\"\n (click)=\"header.close()\"\n >\n <ngn-icon defaultIcon=\"drawer-close\" [icon]=\"iconClose()\" />\n </button>\n </div>\n</ng-template>\n" }]
|
|
264
|
+
}], ctorParameters: () => [], propDecorators: { closed: [{ type: i0.Output, args: ["closed"] }], open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], closeBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeBy", required: false }] }], modal: [{ type: i0.Input, args: [{ isSignal: true, alias: "modal", required: false }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], header: [{ type: i0.Input, args: [{ isSignal: true, alias: "header", required: false }] }], iconClose: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconClose", required: false }] }], lazy: [{ type: i0.Input, args: [{ isSignal: true, alias: "lazy", required: false }] }], cache: [{ type: i0.Input, args: [{ isSignal: true, alias: "cache", required: false }] }] } });
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* Generated bundle index. Do not edit.
|
|
268
|
+
*/
|
|
269
|
+
|
|
270
|
+
export { NgnDrawer };
|
|
271
|
+
//# sourceMappingURL=ngneers-controls-drawer.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngneers-controls-drawer.mjs","sources":["../../src/drawer/drawer-templates.ts","../../src/drawer/drawer.ts","../../src/drawer/drawer.html","../../src/drawer/ngneers-controls-drawer.ts"],"sourcesContent":["import { computed, contentChild, Directive, input, TemplateRef, viewChild } from '@angular/core';\nimport { templateTypesFn } from '@ngneers/controls/api/ng';\nimport { NgnBase } from '@ngneers/controls/base';\n\nimport type { HeaderTemplateType } from './types';\n\n@Directive()\nexport abstract class DrawerTemplates extends NgnBase<'drawer'> {\n // Header template\n private readonly _defaultHeaderTemplate =\n viewChild.required<TemplateRef<typeof this.templateTypes.header>>('defaultHeaderTemplate');\n private readonly _userHeaderTemplate =\n contentChild<TemplateRef<typeof this.templateTypes.header>>('header');\n /**\n * Set a custom template for the header.\n * Can also be set using an `<ng-template>` element with `#header` template reference variable.\n */\n public readonly templateHeader = input<TemplateRef<typeof this.templateTypes.header> | null>(\n null\n );\n protected readonly headerTemplate = computed(\n () => this._userHeaderTemplate() ?? this.templateHeader() ?? this._defaultHeaderTemplate()\n );\n\n // Footer template\n private readonly _userFooterTemplate = contentChild<TemplateRef<unknown>>('footer');\n /**\n * Set a custom template for the footer.\n * Can also be set using an `<ng-template>` element with `#footer` template reference variable.\n */\n public readonly templateFooter = input<TemplateRef<unknown> | null>(null);\n protected readonly footerTemplate = computed(\n () => this._userFooterTemplate() ?? this.templateFooter()\n );\n\n // Content template\n private readonly _userContentTemplate = contentChild<TemplateRef<unknown>>('content');\n /**\n * Set a custom template for the content.\n * Can also be set using an `<ng-template>` element with `#content` template reference variable.\n */\n public readonly content = input<TemplateRef<unknown> | null>(null);\n protected readonly contentTemplate = computed(\n () => this._userContentTemplate() ?? this.content()\n );\n\n /**\n * Types for the drawer templates.\n */\n public readonly templateTypes = templateTypesFn<{\n /**\n * Type of the template variable for the header template.\n */\n header: HeaderTemplateType;\n }>();\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n afterRenderEffect,\n booleanAttribute,\n Component,\n computed,\n effect,\n inject,\n input,\n model,\n output,\n signal,\n untracked,\n} from '@angular/core';\nimport {\n NgnTemplate,\n type Openable,\n Platform,\n type PopoverCloseBy,\n toPopoverCloseBy,\n} from '@ngneers/controls/api/ng';\nimport { NgnPt, provideSelf } from '@ngneers/controls/base';\nimport { NgnButton } from '@ngneers/controls/button';\nimport { NgnDefer } from '@ngneers/controls/defer';\nimport { I18n } from '@ngneers/controls/i18n';\nimport { NgnIcon } from '@ngneers/controls/icon';\nimport { FocusTrap, generateElementId } from '@ngneers/controls/utils-ng';\nimport { drawerControlTemplate } from '@ngneers/controls-themes/templates/drawer';\n\nimport { DrawerTemplates } from './drawer-templates';\n\nimport type { IconType } from '@ngneers/controls-custom-types';\n\n/**\n * @category control\n */\n@Component({\n selector: 'ngn-drawer',\n templateUrl: './drawer.html',\n imports: [NgnPt, NgTemplateOutlet, NgnDefer, NgnButton, NgnIcon, NgnTemplate],\n providers: [provideSelf(NgnDrawer)],\n host: {\n '[attr.popover]': 'closeByPopover()',\n '(toggle)': 'onToggle($event)',\n '[attr.aria-modal]': 'modal() ? \"true\" : null',\n // A modal overlay is a dialog; a non-modal side panel is complementary\n // landmark content. `aria-modal` is only coherent on the dialog role.\n '[attr.role]': 'modal() ? \"dialog\" : \"complementary\"',\n '[attr.aria-labelledby]': 'header() ? headerId : null',\n '[attr.data-position]': 'position()',\n },\n})\nexport class NgnDrawer extends DrawerTemplates implements Openable {\n protected readonly theme = this.injectThemeTemplate(drawerControlTemplate, {\n root: true,\n horizontal: () => this.horizontal(),\n });\n protected readonly i18n = inject(I18n).translations;\n protected readonly headerId = generateElementId();\n private _focusTrap?: FocusTrap;\n\n /**\n * Emits when the drawer has fully closed.\n */\n public readonly closed = output();\n /**\n * Shows or hides the drawer.\n *\n * You probably want to react to openChange events from outside to update your variable accordingly.\n * @default false\n */\n public readonly open = model<boolean>(false);\n /**\n * How the drawer closes depending on user interaction.\n * @default 'any'\n */\n public readonly closeBy = input<PopoverCloseBy>('any');\n /**\n * Whether the drawer is a modal or not.\n * A modal drawer prevents interaction with the rest of the page while open.\n * @default false\n */\n public readonly modal = input(false, { transform: booleanAttribute });\n /**\n * Position of the drawer\n * @default 'left'\n */\n public readonly position = input<'top' | 'right' | 'bottom' | 'left' | 'fullscreen'>('left');\n /**\n * The width or height of the drawer depending on its position\n * @default '300px'\n */\n public readonly size = input<string>('300px');\n /**\n * Header text of the drawer\n */\n public readonly header = input<string>();\n /**\n * The icon to use for the close button in the default header template\n */\n public readonly iconClose = input<IconType>();\n /**\n * Lazy load the drawer content\n * @default false\n */\n public readonly lazy = input(false, { transform: booleanAttribute });\n /**\n * Whether to cache the lazy loaded content\n * @default false\n */\n public readonly cache = input(false, { transform: booleanAttribute });\n\n protected readonly appliedPosition = computed(() => {\n const position = this.position();\n if (this.platform.windowSize().height < 600 || this.platform.windowSize().width < 600) {\n return 'fullscreen';\n }\n return position;\n });\n\n private readonly platform = inject(Platform);\n private _togglingTriggeredByInput = false;\n protected readonly isFullyClosed = signal(true);\n protected readonly closeByPopover = computed(() => toPopoverCloseBy(this.closeBy()));\n protected readonly horizontal = computed(\n () => this.position() === 'top' || this.position() === 'bottom'\n );\n protected readonly doClose = this.hide.bind(this);\n\n constructor() {\n super();\n afterRenderEffect(() => {\n if (this.open()) {\n this._togglingTriggeredByInput = true;\n this.show();\n } else {\n this._togglingTriggeredByInput = true;\n this.hide();\n }\n });\n\n // Trap focus inside a modal drawer while it is open. The Popover API already\n // handles Escape/light-dismiss; the trap adds focus-in, Tab wrapping, and\n // focus restore on close that the popover does not provide. Runs as an\n // afterRenderEffect so the (deferred) content has rendered before we move\n // focus onto its first focusable child — a rAF can fire before zoneless CD.\n afterRenderEffect(() => {\n if (this.open() && this.modal()) {\n (this._focusTrap ??= new FocusTrap(this.element.nativeElement)).activate();\n } else {\n this._focusTrap?.deactivate();\n }\n });\n\n effect(() => {\n const position = this.appliedPosition();\n\n if (position === 'fullscreen') {\n this.element.nativeElement.style.top = '0';\n this.element.nativeElement.style.bottom = '0';\n this.element.nativeElement.style.left = '0';\n this.element.nativeElement.style.right = '0';\n this.element.nativeElement.style.width = '100%';\n this.element.nativeElement.style.height = '100%';\n return;\n }\n\n this.element.nativeElement.style.top = position !== 'bottom' ? '0' : 'unset';\n this.element.nativeElement.style.bottom = position !== 'top' ? '0' : 'unset';\n this.element.nativeElement.style.left = position !== 'right' ? '0' : 'unset';\n this.element.nativeElement.style.right = position !== 'left' ? '0' : 'unset';\n if (position === 'left' || position === 'right') {\n this.element.nativeElement.style.width = this.size();\n this.element.nativeElement.style.height = '100%';\n } else {\n this.element.nativeElement.style.height = this.size();\n this.element.nativeElement.style.width = '100%';\n }\n });\n }\n\n /**\n * Opens the drawer. Alternatively, you can also set the `open` input to `true`.\n */\n public show() {\n untracked(() => {\n if (this.open() && !this._togglingTriggeredByInput) {\n return;\n }\n this._togglingTriggeredByInput = false;\n this.element.nativeElement.togglePopover(true);\n });\n }\n\n /**\n * Closes the drawer. Alternatively, you can also set the `open` input to `false`.\n */\n public hide() {\n untracked(() => {\n if (!this.open() && !this._togglingTriggeredByInput) {\n return;\n }\n this._togglingTriggeredByInput = false;\n this.element.nativeElement.togglePopover(false);\n });\n }\n\n /**\n * Toggles the drawer open or closed. Alternatively, you can also set the `open` input accordingly.\n */\n public toggle() {\n if (untracked(this.open)) {\n this.hide();\n } else {\n this.show();\n }\n }\n\n protected onToggle(event: Event) {\n const evt = event as ToggleEvent;\n if (evt.newState === 'closed') {\n this.open.set(false);\n\n requestAnimationFrame(() => {\n const allAnimationsDone = Promise.all(\n this.element.nativeElement.getAnimations().map(x => x.finished)\n );\n allAnimationsDone\n .then(() => {\n this.isFullyClosed.set(true);\n this.closed.emit();\n })\n .catch(() => {\n // ignore cancelled animation\n });\n });\n } else {\n this.open.set(true);\n this.isFullyClosed.set(false);\n }\n }\n}\n","<header [ptInt]=\"this\" [ptClass]=\"'header'\">\n <ng-container\n *ngTemplateOutlet=\"\n headerTemplate();\n context: { $implicit: { close: doClose, text: this.header(), headerId } }\n \"\n />\n</header>\n<ngn-defer\n [lazyContent]=\"contentTemplate()\"\n [open]=\"open() || !isFullyClosed()\"\n [lazy]=\"lazy()\"\n [cache]=\"cache()\"\n [ptInt]=\"this\"\n [ptClass]=\"'content'\"\n>\n <ng-content />\n</ngn-defer>\n@if (footerTemplate(); as footerTemplate) {\n <footer [ptInt]=\"this\" [ptClass]=\"'footer'\">\n <ng-container *ngTemplateOutlet=\"footerTemplate\" />\n </footer>\n}\n\n<ng-template #defaultHeaderTemplate [ngnTemplate]=\"templateTypes.header\" let-header>\n <div [ptInt]=\"this\" [ptClass]=\"'default-header'\">\n <span [id]=\"header.headerId\" [ptInt]=\"this\" [ptClass]=\"'default-header-text'\">{{\n header.text\n }}</span>\n <button\n ngnButton\n [kind]=\"'icon'\"\n [attr.aria-label]=\"i18n['drawer_close']()\"\n (click)=\"header.close()\"\n >\n <ngn-icon defaultIcon=\"drawer-close\" [icon]=\"iconClose()\" />\n </button>\n </div>\n</ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;AAOM,MAAgB,eAAgB,SAAQ,OAAiB,CAAA;;AAE5C,IAAA,sBAAsB,GACrC,SAAS,CAAC,QAAQ,CAAgD,uBAAuB,CAAC;IAC3E,mBAAmB,GAClC,YAAY,CAAgD,QAAQ;4FAAC;AACvE;;;AAGG;IACa,cAAc,GAAG,KAAK,CACpC,IAAI;uFACL;AACkB,IAAA,cAAc,GAAG,QAAQ,CAC1C,MAAM,IAAI,CAAC,mBAAmB,EAAE,IAAI,IAAI,CAAC,cAAc,EAAE,IAAI,IAAI,CAAC,sBAAsB,EAAE;uFAC3F;;IAGgB,mBAAmB,GAAG,YAAY,CAAuB,QAAQ;4FAAC;AACnF;;;AAGG;IACa,cAAc,GAAG,KAAK,CAA8B,IAAI;uFAAC;AACtD,IAAA,cAAc,GAAG,QAAQ,CAC1C,MAAM,IAAI,CAAC,mBAAmB,EAAE,IAAI,IAAI,CAAC,cAAc,EAAE;uFAC1D;;IAGgB,oBAAo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AAgB,oJAAE,QAAQ,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,aAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,MAAA,EAAA,OAAA,EAAA,gBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,SAAS,EAAA,QAAA,EAAA,iCAAA,EAAA,MAAA,EAAA,CAAA,iBAAA,CAAA,EAAA,QAAA,EAAA,CAAA,WAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,OAAO,sFAAE,WAAW,EAAA,QAAA,EAAA,0BAAA,EAAA,MAAA,EAAA,CAAA,aAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;2FAajE,SAAS,EAAA,UAAA,EAAA,CAAA;kBAhBrB,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,YAAY,WAEb,CAAC,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,WAAW,CAAC,EAAA,SAAA,EAClE,CAAC,WAAW,CAAA,SAAA,CAAW,CAAC,EAAA,IAAA,EAC7B;AACJ,wBAAA,gBAAgB,EAAE,kBAAkB;AACpC,wBAAA,UAAU,EAAE,kBAAkB;AAC9B,wBAAA,mBAAmB,EAAE,yBAAyB;;;AAG9C,wBAAA,aAAa,EAAE,sCAAsC;AACrD,wBAAA,wBAAwB,EAAE,4BAA4B;AACtD,wBAAA,sBAAsB,EAAE,YAAY;AACrC,qBAAA,EAAA,QAAA,EAAA,8nCAAA,EAAA;;;AElDH;;AAEG;;;;"}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { viewChild, contentChild, input, computed, Directive, inject, model, booleanAttribute, Component } from '@angular/core';
|
|
3
|
+
import { templateTypesFn, NgnTemplate } from '@ngneers/controls/api/ng';
|
|
4
|
+
import { ValueControlBase, NgnPt, provideSelf } from '@ngneers/controls/base';
|
|
5
|
+
import { NgnButton } from '@ngneers/controls/button';
|
|
6
|
+
import { NgnAutofocus } from '@ngneers/controls/directives';
|
|
7
|
+
import { I18n } from '@ngneers/controls/i18n';
|
|
8
|
+
import { NgnIcon } from '@ngneers/controls/icon';
|
|
9
|
+
import { NgnInplace } from '@ngneers/controls/inplace';
|
|
10
|
+
import { NgnInput } from '@ngneers/controls/input';
|
|
11
|
+
import { NgnInputField } from '@ngneers/controls/input-field';
|
|
12
|
+
import { editInplaceControlTemplate } from '@ngneers/controls-themes/templates/edit-inplace';
|
|
13
|
+
|
|
14
|
+
class EditInplaceTemplates extends ValueControlBase {
|
|
15
|
+
// Display template
|
|
16
|
+
_defaultDisplayTemplate = viewChild.required('defaultDisplayTemplate');
|
|
17
|
+
_userDisplayTemplate = contentChild('display', /* @ts-ignore */
|
|
18
|
+
...(ngDevMode ? [{ debugName: "_userDisplayTemplate" }] : /* istanbul ignore next */ []));
|
|
19
|
+
/**
|
|
20
|
+
* Set a custom template for the display.
|
|
21
|
+
* Can also be set using an `<ng-template>` element with `#display` template reference variable.
|
|
22
|
+
*/
|
|
23
|
+
templateDisplay = input(null, /* @ts-ignore */
|
|
24
|
+
...(ngDevMode ? [{ debugName: "templateDisplay" }] : /* istanbul ignore next */ []));
|
|
25
|
+
displayTemplate = computed(() => this._userDisplayTemplate() ?? this.templateDisplay() ?? this._defaultDisplayTemplate(), /* @ts-ignore */
|
|
26
|
+
...(ngDevMode ? [{ debugName: "displayTemplate" }] : /* istanbul ignore next */ []));
|
|
27
|
+
// Edit template
|
|
28
|
+
_defaultEditTemplate = viewChild.required('defaultEditTemplate');
|
|
29
|
+
_userEditTemplate = contentChild('edit', /* @ts-ignore */
|
|
30
|
+
...(ngDevMode ? [{ debugName: "_userEditTemplate" }] : /* istanbul ignore next */ []));
|
|
31
|
+
/**
|
|
32
|
+
* Set a custom template for the edit view.
|
|
33
|
+
* Can also be set using an `<ng-template>` element with `#edit` template reference variable.
|
|
34
|
+
*/
|
|
35
|
+
templateEdit = input(null, /* @ts-ignore */
|
|
36
|
+
...(ngDevMode ? [{ debugName: "templateEdit" }] : /* istanbul ignore next */ []));
|
|
37
|
+
editTemplate = computed(() => this._userEditTemplate() ?? this.templateEdit() ?? this._defaultEditTemplate(), /* @ts-ignore */
|
|
38
|
+
...(ngDevMode ? [{ debugName: "editTemplate" }] : /* istanbul ignore next */ []));
|
|
39
|
+
/**
|
|
40
|
+
* Types for the edit-inplace templates.
|
|
41
|
+
*/
|
|
42
|
+
templateTypes = templateTypesFn();
|
|
43
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: EditInplaceTemplates, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
44
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "22.0.5", type: EditInplaceTemplates, isStandalone: true, inputs: { templateDisplay: { classPropertyName: "templateDisplay", publicName: "templateDisplay", isSignal: true, isRequired: false, transformFunction: null }, templateEdit: { classPropertyName: "templateEdit", publicName: "templateEdit", isSignal: true, isRequired: false, transformFunction: null } }, queries: [{ propertyName: "_userDisplayTemplate", first: true, predicate: ["display"], descendants: true, isSignal: true }, { propertyName: "_userEditTemplate", first: true, predicate: ["edit"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "_defaultDisplayTemplate", first: true, predicate: ["defaultDisplayTemplate"], descendants: true, isSignal: true }, { propertyName: "_defaultEditTemplate", first: true, predicate: ["defaultEditTemplate"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0 });
|
|
45
|
+
}
|
|
46
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: EditInplaceTemplates, decorators: [{
|
|
47
|
+
type: Directive
|
|
48
|
+
}], propDecorators: { _defaultDisplayTemplate: [{ type: i0.ViewChild, args: ['defaultDisplayTemplate', { isSignal: true }] }], _userDisplayTemplate: [{ type: i0.ContentChild, args: ['display', { isSignal: true }] }], templateDisplay: [{ type: i0.Input, args: [{ isSignal: true, alias: "templateDisplay", required: false }] }], _defaultEditTemplate: [{ type: i0.ViewChild, args: ['defaultEditTemplate', { isSignal: true }] }], _userEditTemplate: [{ type: i0.ContentChild, args: ['edit', { isSignal: true }] }], templateEdit: [{ type: i0.Input, args: [{ isSignal: true, alias: "templateEdit", required: false }] }] } });
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* @category control
|
|
52
|
+
*/
|
|
53
|
+
class NgnEditInplace extends EditInplaceTemplates {
|
|
54
|
+
theme = this.injectThemeTemplate(editInplaceControlTemplate, {
|
|
55
|
+
root: true,
|
|
56
|
+
invalid: this.invalid(),
|
|
57
|
+
readonly: this.readonly(),
|
|
58
|
+
disabled: this.disabled(),
|
|
59
|
+
});
|
|
60
|
+
i18n = inject(I18n).translations;
|
|
61
|
+
closeContent = this.switchToDisplay.bind(this);
|
|
62
|
+
/**
|
|
63
|
+
* Controls the visibility of the content.
|
|
64
|
+
*/
|
|
65
|
+
editVisible = model(false, /* @ts-ignore */
|
|
66
|
+
...(ngDevMode ? [{ debugName: "editVisible" }] : /* istanbul ignore next */ []));
|
|
67
|
+
/**
|
|
68
|
+
* Whether the content is loaded lazily.
|
|
69
|
+
* @default true
|
|
70
|
+
*/
|
|
71
|
+
lazy = input(true, { ...(ngDevMode ? { debugName: "lazy" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
72
|
+
/**
|
|
73
|
+
* Whether the content is cached when closed.
|
|
74
|
+
* @default false
|
|
75
|
+
*/
|
|
76
|
+
cache = input(false, { ...(ngDevMode ? { debugName: "cache" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
77
|
+
/**
|
|
78
|
+
* Switches to the edit view.
|
|
79
|
+
*/
|
|
80
|
+
switchToEdit() {
|
|
81
|
+
this.editVisible.set(true);
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Switches to the display view.
|
|
85
|
+
*/
|
|
86
|
+
switchToDisplay() {
|
|
87
|
+
this.editVisible.set(false);
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Toggles between the display and content views.
|
|
91
|
+
*/
|
|
92
|
+
toggle() {
|
|
93
|
+
this.editVisible.update(v => !v);
|
|
94
|
+
}
|
|
95
|
+
focusOut(event) {
|
|
96
|
+
if (!this.editVisible()) {
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
if (event.relatedTarget instanceof HTMLElement &&
|
|
100
|
+
this.element.nativeElement.contains(event.relatedTarget)) {
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
this.switchToDisplay();
|
|
104
|
+
}
|
|
105
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: NgnEditInplace, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
106
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: NgnEditInplace, isStandalone: true, selector: "ngn-edit-inplace", inputs: { editVisible: { classPropertyName: "editVisible", publicName: "editVisible", isSignal: true, isRequired: false, transformFunction: null }, lazy: { classPropertyName: "lazy", publicName: "lazy", isSignal: true, isRequired: false, transformFunction: null }, cache: { classPropertyName: "cache", publicName: "cache", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { editVisible: "editVisibleChange" }, providers: [provideSelf(NgnEditInplace)], usesInheritance: true, ngImport: i0, template: "<ngn-inplace\n [ptInt]=\"this\"\n [ptDep]=\"'inplace'\"\n [templateDisplay]=\"displayTemplate()\"\n [templateDisplayContext]=\"{ $implicit: { value: value() } }\"\n [templateContent]=\"editTemplate()\"\n [templateContentContext]=\"{\n $implicit: {\n value: value(),\n update: value.set.bind(value),\n close: editVisible.set.bind(editVisible, false),\n },\n }\"\n [contentVisible]=\"editVisible()\"\n (contentVisibleChange)=\"editVisible.set($event)\"\n [lazy]=\"lazy()\"\n [cache]=\"cache()\"\n [disabled]=\"disabled() || readonly()\"\n (contentVisibleChange)=\"!$event && touched.set(true)\"\n/>\n\n<ng-template #defaultDisplayTemplate [ngnTemplate]=\"templateTypes.display\" let-display>\n <div [ptInt]=\"this\" [ptClass]=\"'default-display'\">\n @if (!display.value) {\n <span [ptInt]=\"this\" [ptClass]=\"'default-fallback-display'\">{{\n i18n['editInplace_placeholder']()\n }}</span>\n } @else {\n <span>{{ display.value }}</span>\n <span [ptInt]=\"this\" [ptClass]=\"'sr-only'\">{{ i18n['editInplace_placeholder']() }}</span>\n }\n </div>\n</ng-template>\n\n<ng-template #defaultEditTemplate [ngnTemplate]=\"templateTypes.edit\" let-edit>\n <div [ptInt]=\"this\" [ptClass]=\"'default-edit'\">\n <ngn-input-field\n (focusout)=\"focusOut($event)\"\n [label]=\"label()\"\n [inputId]=\"inputId()\"\n [invalid]=\"invalid()\"\n [labelledBy]=\"labelledBy()\"\n >\n <input\n type=\"text\"\n ngnInput\n ngnAutofocus\n [value]=\"edit.value\"\n (valueChange)=\"edit.update($event ?? '')\"\n (keydown.enter)=\"edit.close()\"\n [ptInt]=\"this\"\n [ptClass]=\"'default-edit-input'\"\n (blur)=\"touched.set(true)\"\n />\n <button\n ngnButton\n type=\"button\"\n kind=\"icon\"\n [ngnButtonInline]=\"true\"\n (click)=\"edit.close()\"\n [ptInt]=\"this\"\n [ptClass]=\"'default-edit-close-button'\"\n [attr.aria-label]=\"i18n['editInplace_confirm']()\"\n >\n <ngn-icon defaultIcon=\"edit-confirm\" />\n </button>\n </ngn-input-field>\n </div>\n</ng-template>\n", dependencies: [{ kind: "directive", type: NgnPt, selector: "[ptInt]", inputs: ["ptInt", "ptClass", "ptDep"] }, { kind: "component", type: NgnInplace, selector: "ngn-inplace", inputs: ["contentVisible", "lazy", "cache", "disabled"], outputs: ["contentVisibleChange"] }, { kind: "directive", type: NgnTemplate, selector: "ng-template[ngnTemplate]", inputs: ["ngnTemplate"] }, { kind: "directive", type: NgnInput, selector: "input[ngnInput], textarea[ngnInput]", inputs: ["invalid", "value"], outputs: ["valueChange"], exportAs: ["ngnInput"] }, { kind: "directive", type: NgnAutofocus, selector: "[ngnAutofocus]", inputs: ["ngnAutofocus"] }, { kind: "directive", type: NgnButton, selector: "button[ngnButton], a[ngnButton]", inputs: ["ngnButtonInline"], exportAs: ["ngnButton"] }, { kind: "component", type: NgnIcon, selector: "ngn-icon", inputs: ["defaultIcon", "icon"] }, { kind: "component", type: NgnInputField, selector: "ngn-input-field", inputs: ["label", "labelledBy", "labelKind", "inputId", "showClearButton", "iconClearButton", "tabindex", "invalid", "readonly", "disabled"] }] });
|
|
107
|
+
}
|
|
108
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: NgnEditInplace, decorators: [{
|
|
109
|
+
type: Component,
|
|
110
|
+
args: [{ selector: 'ngn-edit-inplace', imports: [
|
|
111
|
+
NgnPt,
|
|
112
|
+
NgnInplace,
|
|
113
|
+
NgnTemplate,
|
|
114
|
+
NgnInput,
|
|
115
|
+
NgnAutofocus,
|
|
116
|
+
NgnButton,
|
|
117
|
+
NgnIcon,
|
|
118
|
+
NgnInputField,
|
|
119
|
+
], providers: [provideSelf(NgnEditInplace)], template: "<ngn-inplace\n [ptInt]=\"this\"\n [ptDep]=\"'inplace'\"\n [templateDisplay]=\"displayTemplate()\"\n [templateDisplayContext]=\"{ $implicit: { value: value() } }\"\n [templateContent]=\"editTemplate()\"\n [templateContentContext]=\"{\n $implicit: {\n value: value(),\n update: value.set.bind(value),\n close: editVisible.set.bind(editVisible, false),\n },\n }\"\n [contentVisible]=\"editVisible()\"\n (contentVisibleChange)=\"editVisible.set($event)\"\n [lazy]=\"lazy()\"\n [cache]=\"cache()\"\n [disabled]=\"disabled() || readonly()\"\n (contentVisibleChange)=\"!$event && touched.set(true)\"\n/>\n\n<ng-template #defaultDisplayTemplate [ngnTemplate]=\"templateTypes.display\" let-display>\n <div [ptInt]=\"this\" [ptClass]=\"'default-display'\">\n @if (!display.value) {\n <span [ptInt]=\"this\" [ptClass]=\"'default-fallback-display'\">{{\n i18n['editInplace_placeholder']()\n }}</span>\n } @else {\n <span>{{ display.value }}</span>\n <span [ptInt]=\"this\" [ptClass]=\"'sr-only'\">{{ i18n['editInplace_placeholder']() }}</span>\n }\n </div>\n</ng-template>\n\n<ng-template #defaultEditTemplate [ngnTemplate]=\"templateTypes.edit\" let-edit>\n <div [ptInt]=\"this\" [ptClass]=\"'default-edit'\">\n <ngn-input-field\n (focusout)=\"focusOut($event)\"\n [label]=\"label()\"\n [inputId]=\"inputId()\"\n [invalid]=\"invalid()\"\n [labelledBy]=\"labelledBy()\"\n >\n <input\n type=\"text\"\n ngnInput\n ngnAutofocus\n [value]=\"edit.value\"\n (valueChange)=\"edit.update($event ?? '')\"\n (keydown.enter)=\"edit.close()\"\n [ptInt]=\"this\"\n [ptClass]=\"'default-edit-input'\"\n (blur)=\"touched.set(true)\"\n />\n <button\n ngnButton\n type=\"button\"\n kind=\"icon\"\n [ngnButtonInline]=\"true\"\n (click)=\"edit.close()\"\n [ptInt]=\"this\"\n [ptClass]=\"'default-edit-close-button'\"\n [attr.aria-label]=\"i18n['editInplace_confirm']()\"\n >\n <ngn-icon defaultIcon=\"edit-confirm\" />\n </button>\n </ngn-input-field>\n </div>\n</ng-template>\n" }]
|
|
120
|
+
}], propDecorators: { editVisible: [{ type: i0.Input, args: [{ isSignal: true, alias: "editVisible", required: false }] }, { type: i0.Output, args: ["editVisibleChange"] }], lazy: [{ type: i0.Input, args: [{ isSignal: true, alias: "lazy", required: false }] }], cache: [{ type: i0.Input, args: [{ isSignal: true, alias: "cache", required: false }] }] } });
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Generated bundle index. Do not edit.
|
|
124
|
+
*/
|
|
125
|
+
|
|
126
|
+
export { NgnEditInplace };
|
|
127
|
+
//# sourceMappingURL=ngneers-controls-edit-inplace.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngneers-controls-edit-inplace.mjs","sources":["../../src/edit-inplace/edit-inplace-templates.ts","../../src/edit-inplace/edit-inplace.ts","../../src/edit-inplace/edit-inplace.html","../../src/edit-inplace/ngneers-controls-edit-inplace.ts"],"sourcesContent":["import { computed, contentChild, Directive, input, TemplateRef, viewChild } from '@angular/core';\nimport { templateTypesFn } from '@ngneers/controls/api/ng';\nimport { ValueControlBase } from '@ngneers/controls/base';\n\nimport type { DisplayTemplateType, EditTemplateType } from './types';\n\n@Directive()\nexport abstract class EditInplaceTemplates extends ValueControlBase<'editInplace', string> {\n // Display template\n private readonly _defaultDisplayTemplate =\n viewChild.required<TemplateRef<typeof this.templateTypes.display>>('defaultDisplayTemplate');\n private readonly _userDisplayTemplate =\n contentChild<TemplateRef<typeof this.templateTypes.display>>('display');\n /**\n * Set a custom template for the display.\n * Can also be set using an `<ng-template>` element with `#display` template reference variable.\n */\n public readonly templateDisplay = input<TemplateRef<typeof this.templateTypes.display> | null>(\n null\n );\n protected readonly displayTemplate = computed(\n () => this._userDisplayTemplate() ?? this.templateDisplay() ?? this._defaultDisplayTemplate()\n );\n\n // Edit template\n private readonly _defaultEditTemplate =\n viewChild.required<TemplateRef<typeof this.templateTypes.edit>>('defaultEditTemplate');\n private readonly _userEditTemplate =\n contentChild<TemplateRef<typeof this.templateTypes.edit>>('edit');\n /**\n * Set a custom template for the edit view.\n * Can also be set using an `<ng-template>` element with `#edit` template reference variable.\n */\n public readonly templateEdit = input<TemplateRef<typeof this.templateTypes.edit> | null>(null);\n protected readonly editTemplate = computed(\n () => this._userEditTemplate() ?? this.templateEdit() ?? this._defaultEditTemplate()\n );\n\n /**\n * Types for the edit-inplace templates.\n */\n public readonly templateTypes = templateTypesFn<{\n /**\n * Type of the template variable for the display template.\n */\n display: DisplayTemplateType;\n /**\n * Type of the template variable for the edit template.\n */\n edit: EditTemplateType;\n }>();\n}\n","import { booleanAttribute, Component, input, model, inject } from '@angular/core';\nimport { NgnTemplate } from '@ngneers/controls/api/ng';\nimport { NgnPt, provideSelf } from '@ngneers/controls/base';\nimport { NgnButton } from '@ngneers/controls/button';\nimport { NgnAutofocus } from '@ngneers/controls/directives';\nimport { I18n } from '@ngneers/controls/i18n';\nimport { NgnIcon } from '@ngneers/controls/icon';\nimport { NgnInplace } from '@ngneers/controls/inplace';\nimport { NgnInput } from '@ngneers/controls/input';\nimport { NgnInputField } from '@ngneers/controls/input-field';\nimport { editInplaceControlTemplate } from '@ngneers/controls-themes/templates/edit-inplace';\n\nimport { EditInplaceTemplates } from './edit-inplace-templates';\n\n/**\n * @category control\n */\n@Component({\n selector: 'ngn-edit-inplace',\n templateUrl: './edit-inplace.html',\n imports: [\n NgnPt,\n NgnInplace,\n NgnTemplate,\n NgnInput,\n NgnAutofocus,\n NgnButton,\n NgnIcon,\n NgnInputField,\n ],\n providers: [provideSelf(NgnEditInplace)],\n})\nexport class NgnEditInplace extends EditInplaceTemplates {\n protected readonly theme = this.injectThemeTemplate(editInplaceControlTemplate, {\n root: true,\n invalid: this.invalid(),\n readonly: this.readonly(),\n disabled: this.disabled(),\n });\n protected readonly i18n = inject(I18n).translations;\n\n protected readonly closeContent = this.switchToDisplay.bind(this);\n\n /**\n * Controls the visibility of the content.\n */\n public readonly editVisible = model<boolean>(false);\n /**\n * Whether the content is loaded lazily.\n * @default true\n */\n public readonly lazy = input(true, { transform: booleanAttribute });\n /**\n * Whether the content is cached when closed.\n * @default false\n */\n public readonly cache = input(false, { transform: booleanAttribute });\n\n /**\n * Switches to the edit view.\n */\n public switchToEdit() {\n this.editVisible.set(true);\n }\n\n /**\n * Switches to the display view.\n */\n public switchToDisplay() {\n this.editVisible.set(false);\n }\n\n /**\n * Toggles between the display and content views.\n */\n public toggle() {\n this.editVisible.update(v => !v);\n }\n\n protected focusOut(event: FocusEvent) {\n if (!this.editVisible()) {\n return;\n }\n if (\n event.relatedTarget instanceof HTMLElement &&\n this.element.nativeElement.contains(event.relatedTarget as HTMLElement)\n ) {\n return;\n }\n this.switchToDisplay();\n }\n}\n","<ngn-inplace\n [ptInt]=\"this\"\n [ptDep]=\"'inplace'\"\n [templateDisplay]=\"displayTemplate()\"\n [templateDisplayContext]=\"{ $implicit: { value: value() } }\"\n [templateContent]=\"editTemplate()\"\n [templateContentContext]=\"{\n $implicit: {\n value: value(),\n update: value.set.bind(value),\n close: editVisible.set.bind(editVisible, false),\n },\n }\"\n [contentVisible]=\"editVisible()\"\n (contentVisibleChange)=\"editVisible.set($event)\"\n [lazy]=\"lazy()\"\n [cache]=\"cache()\"\n [disabled]=\"disabled() || readonly()\"\n (contentVisibleChange)=\"!$event && touched.set(true)\"\n/>\n\n<ng-template #defaultDisplayTemplate [ngnTemplate]=\"templateTypes.display\" let-display>\n <div [ptInt]=\"this\" [ptClass]=\"'default-display'\">\n @if (!display.value) {\n <span [ptInt]=\"this\" [ptClass]=\"'default-fallback-display'\">{{\n i18n['editInplace_placeholder']()\n }}</span>\n } @else {\n <span>{{ display.value }}</span>\n <span [ptInt]=\"this\" [ptClass]=\"'sr-only'\">{{ i18n['editInplace_placeholder']() }}</span>\n }\n </div>\n</ng-template>\n\n<ng-template #defaultEditTemplate [ngnTemplate]=\"templateTypes.edit\" let-edit>\n <div [ptInt]=\"this\" [ptClass]=\"'default-edit'\">\n <ngn-input-field\n (focusout)=\"focusOut($event)\"\n [label]=\"label()\"\n [inputId]=\"inputId()\"\n [invalid]=\"invalid()\"\n [labelledBy]=\"labelledBy()\"\n >\n <input\n type=\"text\"\n ngnInput\n ngnAutofocus\n [value]=\"edit.value\"\n (valueChange)=\"edit.update($event ?? '')\"\n (keydown.enter)=\"edit.close()\"\n [ptInt]=\"this\"\n [ptClass]=\"'default-edit-input'\"\n (blur)=\"touched.set(true)\"\n />\n <button\n ngnButton\n type=\"button\"\n kind=\"icon\"\n [ngnButtonInline]=\"true\"\n (click)=\"edit.close()\"\n [ptInt]=\"this\"\n [ptClass]=\"'default-edit-close-button'\"\n [attr.aria-label]=\"i18n['editInplace_confirm']()\"\n >\n <ngn-icon defaultIcon=\"edit-confirm\" />\n </button>\n </ngn-input-field>\n </div>\n</ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;AAOM,MAAgB,oBAAqB,SAAQ,gBAAuC,CAAA;;AAEvE,IAAA,uBAAuB,GACtC,SAAS,CAAC,QAAQ,CAAiD,wBAAwB,CAAC;IAC7E,oBAAoB,GACnC,YAAY,CAAiD,SAAS;6FAAC;AACzE;;;AAGG;IACa,eAAe,GAAG,KAAK,CACrC,IAAI;wFACL;AACkB,IAAA,eAAe,GAAG,QAAQ,CAC3C,MAAM,IAAI,CAAC,oBAAoB,EAAE,IAAI,IAAI,CAAC,eAAe,EAAE,IAAI,IAAI,CAAC,uBAAuB,EAAE;wFAC9F;;AAGgB,IAAA,oBAAoB,GACnC,SAAS,CAAC,QAAQ,CAA8C,qBAAqB,CAAC;IACvE,iBAAiB,GAChC,YAAY,CAA8C,MAAM;0FAAC;AACnE;;;AAGG;IACa,YAAY,GAAG,KAAK,CAAqD,IAAI;qFAAC;AAC3E,IAAA,YAAY,GAAG,QAAQ,CACxC,MAAM,IAAI,CAAC,iBAAiB,EAAE,IAAI,IAAI,CAAC,YAAY,EAAE,IAAI,IAAI,CAAC,oBAAoB,EAAE;qFACrF;AAED;;AAEG;IACa,aAAa,GAAG,eAAe,EAS3C;uGA3CgB,oBAAoB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAApB,oBAAoB,EAAA,YAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,eAAA,EAAA,EAAA,iBAAA,EAAA,iBAAA,EAAA,UAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,YAAA,EAAA,EAAA,iBAAA,EAAA,cAAA,EAAA,UAAA,EAAA,cAAA,EAAA,QAAA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