@fundamental-ngx/core 0.66.1-rc.8 → 0.66.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/fundamental-ngx-core-card.mjs +55 -3
- package/fesm2022/fundamental-ngx-core-card.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-combobox.mjs +5 -2
- package/fesm2022/fundamental-ngx-core-combobox.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-date-picker.mjs +1 -1
- package/fesm2022/fundamental-ngx-core-date-picker.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-datetime-picker.mjs +1 -1
- package/fesm2022/fundamental-ngx-core-datetime-picker.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-datetime.mjs +4 -2
- package/fesm2022/fundamental-ngx-core-datetime.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-dialog.mjs +71 -19
- package/fesm2022/fundamental-ngx-core-dialog.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-form.mjs +932 -69
- package/fesm2022/fundamental-ngx-core-form.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-input-group.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-input-group.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-menu.mjs +1 -1
- package/fesm2022/fundamental-ngx-core-menu.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-message-box.mjs +2 -10
- package/fesm2022/fundamental-ngx-core-message-box.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-message-strip.mjs +2 -3
- package/fesm2022/fundamental-ngx-core-message-strip.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-multi-combobox.mjs +3 -3
- package/fesm2022/fundamental-ngx-core-multi-combobox.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-multi-input.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-multi-input.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-pagination.mjs +1 -1
- package/fesm2022/fundamental-ngx-core-pagination.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-popover.mjs +22 -6
- package/fesm2022/fundamental-ngx-core-popover.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-product-switch.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-product-switch.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-radio.mjs +47 -2
- package/fesm2022/fundamental-ngx-core-radio.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-select.mjs +1 -1
- package/fesm2022/fundamental-ngx-core-select.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-settings.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-settings.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-shellbar.mjs +732 -113
- package/fesm2022/fundamental-ngx-core-shellbar.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-text.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-text.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-time-picker.mjs +3 -4
- package/fesm2022/fundamental-ngx-core-time-picker.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-token.mjs +14 -18
- package/fesm2022/fundamental-ngx-core-token.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-tooltip.mjs +903 -0
- package/fesm2022/fundamental-ngx-core-tooltip.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-core-upload-collection.mjs +1 -1
- package/fesm2022/fundamental-ngx-core-upload-collection.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-user-menu.mjs +21 -8
- package/fesm2022/fundamental-ngx-core-user-menu.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core.mjs +1 -0
- package/fesm2022/fundamental-ngx-core.mjs.map +1 -1
- package/package.json +7 -3
- package/schematics/package.json +1 -1
- package/types/fundamental-ngx-core-card.d.ts +34 -1
- package/types/fundamental-ngx-core-dialog.d.ts +33 -5
- package/types/fundamental-ngx-core-form.d.ts +261 -34
- package/types/fundamental-ngx-core-popover.d.ts +6 -0
- package/types/fundamental-ngx-core-radio.d.ts +8 -0
- package/types/fundamental-ngx-core-shellbar.d.ts +259 -75
- package/types/fundamental-ngx-core-token.d.ts +2 -0
- package/types/fundamental-ngx-core-tooltip.d.ts +456 -0
- package/types/fundamental-ngx-core-user-menu.d.ts +4 -0
- package/types/fundamental-ngx-core.d.ts +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fundamental-ngx-core-tooltip.mjs","sources":["../../../../libs/core/tooltip/tooltip-coordinator.service.ts","../../../../libs/core/tooltip/tooltip.config.ts","../../../../libs/core/tooltip/tooltip.directive.ts","../../../../libs/core/tooltip/fundamental-ngx-core-tooltip.ts"],"sourcesContent":["import { ESCAPE } from '@angular/cdk/keycodes';\nimport { isPlatformBrowser } from '@angular/common';\nimport { DestroyRef, DOCUMENT, inject, PLATFORM_ID, Service } from '@angular/core';\nimport { KeyUtil } from '@fundamental-ngx/cdk/utils';\n\n/**\n * @hidden\n * Minimal contract the coordinator needs from a tooltip instance.\n * The coordinator only decides *when* a tooltip is shown or hidden; the tooltip decides *how* (overlay rendering).\n */\nexport interface TooltipHandle {\n /** Whether the tooltip overlay is currently open. Can become `false` on its own, e.g. after an outside click. */\n isOpen(): boolean;\n /** Opens the tooltip overlay right away, without any delay. */\n open(): void;\n /** Closes the tooltip overlay right away, without any delay. */\n close(): void;\n}\n\n/**\n * Application-wide service that decides when tooltips are shown and hidden.\n *\n * - Guarantees that at most one tooltip is visible at any time.\n * - Owns the show, hide and sequence delay timers, so timing is consistent across all tooltips.\n * - Listens globally for `Escape`, window blur and tab switching to dismiss the open tooltip.\n *\n * Tooltips request showing and hiding through `show()` and `hide()`; they never open their overlay on their own.\n */\n@Service()\nexport class TooltipCoordinator {\n /**\n * @hidden\n * Tooltip that was opened last. Its overlay may already be closed (e.g. by an outside click),\n * so check `isOpen()` before treating it as visible.\n */\n private _active: TooltipHandle | null = null;\n\n /** @hidden Tooltip waiting for its show delay to elapse. Only one tooltip can be pending at a time. */\n private _pending: TooltipHandle | null = null;\n\n /** @hidden Timer that opens the pending tooltip once its show or sequence delay elapses. */\n private _showTimer: ReturnType<typeof setTimeout> | null = null;\n\n /** @hidden Timer that closes the active tooltip once its hide delay elapses. */\n private _hideTimer: ReturnType<typeof setTimeout> | null = null;\n\n /**\n * @hidden\n * `true` only during the task in which the browser window or tab was activated again.\n * Lets tooltips ignore the focus event the browser then fires on the previously focused element.\n */\n private _windowRefocused = false;\n\n /** @hidden Whether the `Escape` listener is currently attached to the document. */\n private _listeningToKeydown = false;\n\n /** @hidden Document the global listeners are attached to. */\n private readonly _document = inject(DOCUMENT);\n\n /** @hidden Browser window, or `null` on the server, where no global listeners are attached. */\n private readonly _window = isPlatformBrowser(inject(PLATFORM_ID)) ? this._document.defaultView : null;\n\n /** @hidden Stable reference to the `Escape` handler, so the same listener can be added and removed. */\n private readonly _keydownListener = this._onKeydown.bind(this);\n\n /**\n * @hidden\n * Registers the window `blur`, window `focus` and `visibilitychange` listeners for the whole application\n * (browser only) and removes them when the root injector is destroyed. These events are rare, so they\n * are always listened to. The frequent `keydown` event is only listened to while a tooltip needs it,\n * see `_syncKeydownListener()`.\n */\n constructor() {\n const win = this._window;\n if (!win) {\n return;\n }\n\n const onWindowBlur = (): void => this._dismiss();\n const onWindowFocus = (): void => this._onWindowFocus();\n const onVisibilityChange = (): void => {\n if (this._document.visibilityState === 'hidden') {\n this._dismiss();\n }\n };\n\n this._document.addEventListener('visibilitychange', onVisibilityChange);\n win.addEventListener('blur', onWindowBlur);\n win.addEventListener('focus', onWindowFocus);\n\n inject(DestroyRef).onDestroy(() => {\n this._clearShowTimer();\n this._clearHideTimer();\n this._document.removeEventListener('keydown', this._keydownListener, true);\n this._document.removeEventListener('visibilitychange', onVisibilityChange);\n win.removeEventListener('blur', onWindowBlur);\n win.removeEventListener('focus', onWindowFocus);\n });\n }\n\n /**\n * Requests to show a tooltip.\n *\n * - If the tooltip is already visible, it stays open and a scheduled hide is cancelled.\n * - If the tooltip is already waiting for its delay, the running timer is kept.\n * - If another tooltip is visible, that one closes immediately and this one opens after\n * `sequenceDelay` (or `delay`, if shorter), so moving between elements feels faster.\n * - A `delay` of `0` or less opens the tooltip immediately (keyboard shortcut, long-press, `show()`).\n *\n * @param tooltip Tooltip to show.\n * @param delay Delay in ms before showing when no other tooltip is visible.\n * @param sequenceDelay Delay in ms before showing when another tooltip is visible.\n */\n show(tooltip: TooltipHandle, delay: number, sequenceDelay = delay): void {\n if (this._active === tooltip && tooltip.isOpen()) {\n this._clearHideTimer();\n return;\n }\n if (this._pending === tooltip && delay > 0) {\n return;\n }\n\n this._clearShowTimer();\n\n if (this._active?.isOpen()) {\n this._hideActive();\n delay = Math.min(delay, sequenceDelay);\n }\n\n if (delay <= 0) {\n this._open(tooltip);\n return;\n }\n\n this._pending = tooltip;\n this._syncKeydownListener();\n this._showTimer = setTimeout(() => {\n this._showTimer = null;\n this._pending = null;\n this._open(tooltip);\n }, delay);\n }\n\n /**\n * Requests to hide a tooltip.\n *\n * - Cancels the tooltip's pending show, so it does not appear after the pointer or focus has already left.\n * - If the tooltip is visible, closes it after `delay`, or immediately when `delay` is `0` or less.\n * - Does nothing for a tooltip that is neither pending nor visible.\n *\n * @param tooltip Tooltip to hide.\n * @param delay Delay in ms before hiding.\n */\n hide(tooltip: TooltipHandle, delay: number): void {\n if (this._pending === tooltip) {\n this._clearShowTimer();\n }\n if (this._active !== tooltip) {\n return;\n }\n\n this._clearHideTimer();\n\n if (delay <= 0) {\n this._hideActive();\n return;\n }\n\n this._hideTimer = setTimeout(() => {\n this._hideTimer = null;\n this._hideActive();\n }, delay);\n }\n\n /**\n * Cancels a scheduled hide and keeps the tooltip open.\n * Used when the pointer moves from the host onto the tooltip, so its text can be read or selected.\n *\n * @param tooltip Tooltip to keep open.\n */\n cancelHide(tooltip: TooltipHandle): void {\n if (this._active === tooltip) {\n this._clearHideTimer();\n }\n }\n\n /**\n * Removes every reference to the tooltip: cancels its pending show and scheduled hide and\n * forgets it as the active tooltip. The overlay is not touched, because it is disposed together\n * with the tooltip. Must be called when the tooltip is destroyed.\n *\n * @param tooltip Tooltip being destroyed.\n */\n unregister(tooltip: TooltipHandle): void {\n if (this._pending === tooltip) {\n this._clearShowTimer();\n }\n if (this._active === tooltip) {\n this._clearHideTimer();\n this._active = null;\n this._syncKeydownListener();\n }\n }\n\n /**\n * Whether the current focus event was caused by the browser restoring focus after the window\n * or tab was activated again. Tooltips skip showing on such focus events, because the user did\n * not interact with the page.\n */\n isWindowRefocus(): boolean {\n return this._windowRefocused;\n }\n\n /**\n * @hidden\n * Makes the tooltip the active one and opens it.\n * Closes any other visible tooltip first to keep the single-tooltip guarantee.\n */\n private _open(tooltip: TooltipHandle): void {\n if (this._active !== tooltip) {\n this._hideActive();\n }\n this._active = tooltip;\n this._syncKeydownListener();\n tooltip.open();\n }\n\n /**\n * @hidden\n * Closes the active tooltip immediately and cancels its scheduled hide.\n * `_active` is reset before `close()` runs, so re-entrant calls see a consistent state.\n */\n private _hideActive(): void {\n this._clearHideTimer();\n const active = this._active;\n this._active = null;\n this._syncKeydownListener();\n active?.close();\n }\n\n /**\n * @hidden\n * Global `Escape` handler. Always cancels a pending show. If a tooltip is visible, closes it and\n * stops the event, so the first `Escape` only closes the tooltip and not, for example, the surrounding\n * dialog. If no tooltip is visible, the event passes through untouched.\n */\n private _onKeydown(event: KeyboardEvent): void {\n if (!KeyUtil.isKeyCode(event, ESCAPE)) {\n return;\n }\n\n this._clearShowTimer();\n\n if (this._active?.isOpen()) {\n event.stopPropagation();\n this._hideActive();\n }\n }\n\n /**\n * @hidden\n * Closes the active tooltip and cancels a pending show.\n * Called when the window loses focus or the page becomes hidden (tab switch, minimised window).\n */\n private _dismiss(): void {\n this._clearShowTimer();\n this._hideActive();\n }\n\n /**\n * @hidden\n * Marks the current task as a window re-activation (see `isWindowRefocus()`).\n * The flag is reset in the next task.\n */\n private _onWindowFocus(): void {\n // The element focus event follows the window focus event within the same task.\n this._windowRefocused = true;\n setTimeout(() => (this._windowRefocused = false));\n }\n\n /** @hidden Cancels the pending show and forgets the pending tooltip. */\n private _clearShowTimer(): void {\n if (this._showTimer !== null) {\n clearTimeout(this._showTimer);\n this._showTimer = null;\n }\n this._pending = null;\n this._syncKeydownListener();\n }\n\n /** @hidden Cancels the scheduled hide of the active tooltip. */\n private _clearHideTimer(): void {\n if (this._hideTimer !== null) {\n clearTimeout(this._hideTimer);\n this._hideTimer = null;\n }\n }\n\n /**\n * @hidden\n * Attaches the `Escape` listener while a tooltip is open or pending and removes it otherwise,\n * so key presses do not reach this service (or trigger change detection) when no tooltip is involved.\n * The listener uses the capture phase, so an open tooltip consumes `Escape` before the host\n * (e.g. a dialog) sees it.\n */\n private _syncKeydownListener(): void {\n const needed = !!this._window && (this._active !== null || this._pending !== null);\n if (needed === this._listeningToKeydown) {\n return;\n }\n\n this._listeningToKeydown = needed;\n if (needed) {\n this._document.addEventListener('keydown', this._keydownListener, true);\n } else {\n this._document.removeEventListener('keydown', this._keydownListener, true);\n }\n }\n}\n","import { InjectionToken } from '@angular/core';\n\nexport interface TooltipConfig {\n /** Delay in ms before the tooltip is shown on hover or keyboard focus. */\n showDelay: number;\n /** Delay in ms before the tooltip is hidden when the pointer or focus leaves. */\n hideDelay: number;\n /** Delay in ms before the next tooltip is shown while another one is already open. */\n sequenceDelay: number;\n}\n\nexport const DEFAULT_TOOLTIP_CONFIG: TooltipConfig = {\n showDelay: 500,\n hideDelay: 500,\n sequenceDelay: 200\n};\n\n/**\n * Overrides the global tooltip timing. Missing values fall back to `DEFAULT_TOOLTIP_CONFIG`.\n * ```ts\n * providers: [{ provide: TOOLTIP_CONFIG, useValue: { showDelay: 300 } }]\n * ```\n */\nexport const TOOLTIP_CONFIG = new InjectionToken<Partial<TooltipConfig>>('FdTooltipConfig', {\n factory: () => ({})\n});\n","import { InputModalityDetector } from '@angular/cdk/a11y';\nimport { ENTER } from '@angular/cdk/keycodes';\nimport {\n afterRenderEffect,\n ApplicationRef,\n booleanAttribute,\n computed,\n DestroyRef,\n Directive,\n DOCUMENT,\n effect,\n ElementRef,\n EmbeddedViewRef,\n inject,\n input,\n Renderer2,\n RendererStyleFlags2,\n TemplateRef,\n untracked\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { KeyUtil, RtlService } from '@fundamental-ngx/cdk/utils';\nimport { buildPopoverConfig, PopoverService } from '@fundamental-ngx/core/popover';\nimport { Placement, PopoverPosition } from '@fundamental-ngx/core/shared';\nimport { TooltipCoordinator, TooltipHandle } from './tooltip-coordinator.service';\nimport { DEFAULT_TOOLTIP_CONFIG, TOOLTIP_CONFIG } from './tooltip.config';\n\n/** Side of the host element the tooltip is shown on. */\nexport type TooltipPlacement = 'top' | 'bottom' | 'left' | 'right';\n\n/** Alignment along the chosen side: `start`/`end` align with the host's edge, `middle` centres the tooltip. */\nexport type TooltipAlignment = 'start' | 'middle' | 'end';\n\n/** How the tooltip is opened: on hover and keyboard focus, or by clicking the host. */\nexport type TooltipTrigger = 'hover' | 'click';\n\n/** Modifier class that applies the tooltip styling (dark surface, small font, max width) to the popover body. */\nconst TOOLTIP_BODY_CLASS = 'fd-popover__body--tooltip';\n\n/** How long in ms a touch has to be held before it counts as a long-press. */\nconst LONG_PRESS_DURATION = 500;\n\n/** Side the tooltip flips to when the preferred side does not fit into the viewport. */\nconst OPPOSITE_PLACEMENT: Record<TooltipPlacement, TooltipPlacement> = {\n top: 'bottom',\n bottom: 'top',\n left: 'right',\n right: 'left'\n};\n\n/** Counter used to generate unique tooltip ids. */\nlet tooltipUniqueId = 0;\n\n/** Maps side and alignment to the popover `Placement` format, e.g. `top` + `start` → `top-start`. */\nconst toPlacement = (side: TooltipPlacement, alignment: TooltipAlignment): Placement =>\n alignment === 'middle' ? side : `${side}-${alignment}`;\n\n/** Normalises text for comparison: collapses whitespace, trims and lowercases. */\nconst normalizeText = (value: string): string => value.replace(/\\s+/g, ' ').trim().toLowerCase();\n\n/**\n * Normalises a keyboard shortcut for comparison so the human-readable form in the tooltip text\n * (e.g. `Ctrl+S`) and the `aria-keyshortcuts` form (e.g. `Control+S`) compare equal. Lowercases,\n * unifies common aliases (`ctrl`→`control`, `cmd`/`command`→`meta`, `opt`/`option`→`alt`,\n * `esc`→`escape`) and collapses `+`/`-`/whitespace separators to a single `+`.\n */\nconst normalizeShortcut = (value: string): string =>\n value\n .toLowerCase()\n .replace(/\\bctrl\\b/g, 'control')\n .replace(/\\b(cmd|command)\\b/g, 'meta')\n .replace(/\\b(opt|option)\\b/g, 'alt')\n .replace(/\\besc\\b/g, 'escape')\n .replace(/[\\s+-]+/g, '+')\n .replace(/^\\+|\\+$/g, '');\n\n/**\n * Whether `parenthetical` (the inner text of a trailing `(...)` in the tooltip text) spells out one\n * of the shortcut chords in `shortcuts` (an `aria-keyshortcuts` value, which may list several chords\n * separated by spaces). Comparison is tolerant of separator and casing differences.\n */\nconst isShortcutNotation = (parenthetical: string, shortcuts: string): boolean => {\n const candidate = normalizeShortcut(parenthetical);\n return !!candidate && shortcuts.split(/\\s+/).some((chord) => normalizeShortcut(chord) === candidate);\n};\n\n/**\n * Shows a short tooltip for the host element.\n *\n * By default, the tooltip opens after a delay on mouse hover or keyboard focus, and immediately on touch\n * long-press or `Ctrl+Alt+I` (Windows/Linux) / `Ctrl+Option+I` (Mac). It closes when the pointer or focus leaves, on `Escape`, when the host is\n * activated, on outside click, and when the window loses focus. With `fdTooltipTrigger=\"click\"` it is\n * toggled by clicking the host instead.\n *\n * The overlay is rendered by `PopoverService` (positioning, flipping, arrow), while `TooltipCoordinator`\n * decides when to show and hide, so only one tooltip is visible at a time. The host's DOM is never\n * changed; only ARIA attributes are added.\n *\n * The text is assembled by the caller, e.g. `Label - Description (Shortcut)`. A template can be passed\n * instead of text for formatted, non-interactive content.\n *\n * ```html\n * <button fd-button glyph=\"save\" aria-label=\"Save\" fdTooltip=\"Save (Ctrl+S)\" fdTooltipKeyShortcuts=\"Control+S\"></button>\n * ```\n */\n@Directive({\n selector: '[fdTooltip]',\n exportAs: 'fdTooltip',\n providers: [PopoverService]\n})\nexport class TooltipDirective {\n /**\n * Content of the tooltip: text already assembled by the caller, e.g. `Save (Ctrl+S)`, or a template\n * for formatted text. Templates must not contain interactive elements; use a popover for those.\n * An empty or whitespace-only text disables the tooltip, the same as `fdTooltipDisabled`.\n */\n readonly fdTooltip = input<string | TemplateRef<unknown> | null | undefined>('');\n\n /**\n * Side of the host element the tooltip is shown on.\n * When there is not enough room, the tooltip flips to the opposite side automatically.\n */\n readonly fdTooltipPlacement = input<TooltipPlacement>('bottom');\n\n /** Alignment along the chosen side: `start`/`end` align with the host's edge, `middle` centres the tooltip. */\n readonly fdTooltipAlignment = input<TooltipAlignment>('middle');\n\n /**\n * How the tooltip is opened:\n * - `hover` (default): after a delay on mouse hover or keyboard focus, immediately on touch long-press.\n * - `click`: toggled immediately by clicking, tapping or activating the host with the keyboard. It stays\n * open until it is toggled again, `Escape` is pressed, the user clicks elsewhere or focus moves away.\n * Use it only on hosts without their own action, e.g. an information button next to a label.\n *\n * `Ctrl+Alt+I` (Windows/Linux) / `Ctrl+Option+I` (Mac) toggles the tooltip in both modes.\n */\n readonly fdTooltipTrigger = input<TooltipTrigger>('hover');\n\n /**\n * Disables the tooltip. A disabled tooltip never shows and adds no ARIA attributes or event listeners,\n * so the host behaves exactly as without the directive. Use it, for example, to enable the tooltip\n * only while the host text is truncated.\n */\n readonly fdTooltipDisabled = input(false, { transform: booleanAttribute });\n\n /**\n * Delay in ms before the tooltip shows on hover or keyboard focus.\n * When `null`, `TOOLTIP_CONFIG.showDelay` (500 ms by default) is used.\n */\n readonly fdTooltipShowDelay = input<number | null>(null);\n\n /**\n * Delay in ms before the tooltip hides after the pointer or focus leaves the host or the tooltip.\n * When `null`, `TOOLTIP_CONFIG.hideDelay` (500 ms by default) is used.\n */\n readonly fdTooltipHideDelay = input<number | null>(null);\n\n /**\n * Keyboard shortcut of the host action in `aria-keyshortcuts` format, e.g. `Control+S`.\n * It is set as `aria-keyshortcuts` on the host, and for text content a trailing parenthesised\n * shortcut that matches this value, e.g. ` (Ctrl+S)`, is removed from the screen reader\n * description so it is not announced twice. A trailing parenthetical that is not the shortcut\n * (e.g. ` (3 copies)`) is left intact.\n */\n readonly fdTooltipKeyShortcuts = input<string | null>(null);\n\n /**\n * Additional CSS class(es) for the tooltip body, e.g. to customise its styling.\n * The tooltip is rendered in an overlay, so the styles must not be encapsulated in a component.\n */\n readonly fdTooltipBodyClass = input<string | null>(null);\n\n /**\n * Unique id of the rendered tooltip container (`role=\"tooltip\"`).\n * The hidden screen reader description uses `<tooltipId>-description`.\n */\n readonly tooltipId = `fd-tooltip-${++tooltipUniqueId}`;\n\n /** @hidden Host element reference, passed to `PopoverService` as the overlay origin. */\n private readonly _elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n /** @hidden Host element, used for event listeners and ARIA attributes. */\n private readonly _host = this._elementRef.nativeElement;\n\n /** @hidden Per-instance popover service that renders, positions and disposes the tooltip overlay. */\n private readonly _popoverService = inject(PopoverService);\n\n /** @hidden Application-wide service that decides when this tooltip shows or hides. */\n private readonly _coordinator = inject(TooltipCoordinator);\n\n /**\n * @hidden\n * What the coordinator uses to open and close this tooltip's overlay without delay.\n * Kept in a private object so these delay-free operations are not part of the directive's public API.\n */\n private readonly _handle: TooltipHandle = {\n isOpen: () => this._popoverService.isOpen(),\n open: () => this._popoverService.open(),\n close: () => {\n this._removeBodyListeners();\n if (this._popoverService.isOpen()) {\n this._popoverService.close(false);\n }\n }\n };\n\n /**\n * @hidden\n * Tracks whether the last user input was keyboard, mouse or touch,\n * so focus only shows the tooltip when it came from the keyboard.\n */\n private readonly _inputModality = inject(InputModalityDetector);\n\n /** @hidden Text direction, used to mirror left/right placements in RTL. */\n private readonly _rtlService = inject(RtlService, { optional: true });\n\n /** @hidden Used for all DOM writes and event listeners. */\n private readonly _renderer = inject(Renderer2);\n\n /** @hidden Used to append and look up the hidden description element. */\n private readonly _document = inject(DOCUMENT);\n\n /** @hidden Keeps the template rendered into the hidden description element up to date. */\n private readonly _appRef = inject(ApplicationRef);\n\n /** @hidden Effective timing: the defaults overridden by the provided `TOOLTIP_CONFIG`. */\n private readonly _config = { ...DEFAULT_TOOLTIP_CONFIG, ...inject(TOOLTIP_CONFIG) };\n\n /** @hidden Id of the hidden description element referenced by the host's `aria-describedby`. */\n private readonly _descriptionId = `${this.tooltipId}-description`;\n\n /** @hidden Text content, or an empty string when a template is used. */\n private readonly _text = computed(() => {\n const content = this.fdTooltip();\n return typeof content === 'string' ? content.trim() : '';\n });\n\n /** @hidden Template content, or `null` when text is used. */\n private readonly _template = computed(() => {\n const content = this.fdTooltip();\n return content instanceof TemplateRef ? content : null;\n });\n\n /**\n * @hidden\n * Whether the tooltip is active: not disabled and has a template or non-empty text.\n * Drives the host listeners, the ARIA attributes and the popover `disabled` state.\n */\n private readonly _enabled = computed(() => !this.fdTooltipDisabled() && (!!this._text() || !!this._template()));\n\n /**\n * @hidden\n * Text announced by screen readers for text content. Equals the tooltip text, except that the trailing\n * `(shortcut)` is removed when `fdTooltipKeyShortcuts` is set, because the shortcut is announced via\n * `aria-keyshortcuts`. Template content is announced as rendered.\n */\n private readonly _description = computed(() => {\n const text = this._text();\n const shortcuts = this.fdTooltipKeyShortcuts();\n if (!shortcuts) {\n return text;\n }\n // Only strip the trailing parenthetical when it actually spells out the configured shortcut\n // (e.g. \"Save (Ctrl+S)\" with fdTooltipKeyShortcuts=\"Control+S\"), so the shortcut is not\n // announced twice. A non-shortcut qualifier like \"Print (3 copies)\" is left intact.\n const match = text.match(/\\s*\\(([^()]*)\\)$/);\n return match && isShortcutNotation(match[1], shortcuts) ? text.slice(0, match.index).trimEnd() : text;\n });\n\n /**\n * @hidden\n * Overlay positions passed to the popover: the preferred placement first and the opposite side second,\n * so the overlay flips to the opposite side when the preferred one does not fit.\n */\n private readonly _positions = computed(() => {\n const direction = this._rtlService?.rtl() ? 'rtl' : 'ltr';\n const placement = this.fdTooltipPlacement();\n const alignment = this.fdTooltipAlignment();\n return [placement, OPPOSITE_PLACEMENT[placement]].map((side) =>\n PopoverPosition.getCdkPlacement(toPlacement(side, alignment), direction)\n );\n });\n\n /**\n * @hidden\n * Popover configuration for the tooltip overlay. Triggers are empty because this directive and the\n * coordinator handle all events and timing; the popover only renders. `Escape` is handled by the\n * coordinator, outside clicks by the popover.\n */\n private readonly _popoverConfig = buildPopoverConfig({\n cdkPositions: this._positions,\n triggers: () => [],\n noArrow: () => false,\n closeOnEscapeKey: () => false,\n closeOnOutsideClick: () => true,\n disableScrollbar: () => true,\n additionalBodyClass: () => [TOOLTIP_BODY_CLASS, this.fdTooltipBodyClass()].filter(Boolean).join(' '),\n bodyRole: () => 'tooltip',\n bodyId: () => this.tooltipId,\n disabled: () => !this._enabled()\n });\n\n /**\n * @hidden\n * Hidden element in `document.body` that holds the screen reader description.\n * `null` while the tooltip is disabled or has no content.\n */\n private _descriptionElement: HTMLElement | null = null;\n\n /** @hidden Template content rendered into the hidden description element. */\n private _descriptionView: EmbeddedViewRef<unknown> | null = null;\n\n /** @hidden Whether this directive set `aria-keyshortcuts`, so it only removes an attribute it owns. */\n private _keyShortcutsApplied = false;\n\n /** @hidden Cleanup functions for the pointer listeners on the open tooltip overlay. */\n private _bodyListeners: (() => void)[] = [];\n\n /** @hidden Timer that detects a touch long-press. */\n private _longPressTimer: ReturnType<typeof setTimeout> | null = null;\n\n /** @hidden Whether `PopoverService.initialise()` was called; later changes use `refreshConfiguration()`. */\n private _initialised = false;\n\n /**\n * @hidden\n * Wires the directive up reactively:\n * 1. Keeps the popover configuration in sync with the inputs.\n * 2. Keeps the overlay content in sync with `fdTooltip`.\n * 3. Attaches the host listeners only while the tooltip is enabled; disabling it removes them and closes the tooltip.\n * 4. After each render, updates the ARIA attributes and the hidden description element.\n * 5. Attaches hover listeners to the overlay each time it opens, so the tooltip stays open while hovered.\n * 6. On destroy, unregisters from the coordinator and removes everything added to the DOM.\n */\n constructor() {\n effect(() => {\n const config = this._popoverConfig();\n untracked(() => {\n if (this._initialised) {\n this._popoverService.refreshConfiguration(config);\n } else {\n this._popoverService.initialise(this._elementRef, config);\n this._initialised = true;\n }\n });\n });\n\n effect(() => {\n const text = this._text();\n const template = this._template();\n untracked(() => this._popoverService.updateContent(template ? null : text, template));\n });\n\n effect((onCleanup) => {\n const trigger = this.fdTooltipTrigger();\n if (!this._enabled()) {\n return;\n }\n const listeners = untracked(() => this._listenToHost(trigger));\n onCleanup(() =>\n untracked(() => {\n listeners.forEach((unlisten) => unlisten());\n this._clearLongPress();\n this._coordinator.hide(this._handle, 0);\n })\n );\n });\n\n afterRenderEffect(() => {\n const enabled = this._enabled();\n const description = this._description();\n const template = this._template();\n const keyShortcuts = this.fdTooltipKeyShortcuts();\n this._updateAria(enabled ? description : '', enabled ? template : null, enabled ? keyShortcuts : null);\n });\n\n this._popoverService._onLoad.pipe(takeUntilDestroyed()).subscribe(({ nativeElement }) => {\n this._setHostSize(nativeElement);\n this._listenToBody(nativeElement);\n });\n\n inject(DestroyRef).onDestroy(() => {\n this._coordinator.unregister(this._handle);\n this._removeBodyListeners();\n this._updateAria('', null, null);\n });\n }\n\n /**\n * Shows the tooltip immediately, without the show delay, and closes any other open tooltip.\n * Does nothing while the tooltip is disabled or has no content.\n * Accessible from templates via `#ref=\"fdTooltip\"`.\n */\n show(): void {\n if (this._enabled()) {\n this._requestShow(0);\n }\n }\n\n /** Hides the tooltip immediately and cancels a pending show. */\n hide(): void {\n this._coordinator.hide(this._handle, 0);\n }\n\n /**\n * @hidden\n * Asks the coordinator to show this tooltip after `delay`. Refreshes `aria-describedby` first,\n * because the host's accessible name may have changed since the last render.\n */\n private _requestShow(delay: number): void {\n this._syncDescribedBy();\n this._coordinator.show(this._handle, delay, this._config.sequenceDelay);\n }\n\n /** @hidden Effective show delay: the `fdTooltipShowDelay` input, or the configured default. */\n private _showDelay(): number {\n return this.fdTooltipShowDelay() ?? this._config.showDelay;\n }\n\n /** @hidden Effective hide delay: the `fdTooltipHideDelay` input, or the configured default. */\n private _hideDelay(): number {\n return this.fdTooltipHideDelay() ?? this._config.hideDelay;\n }\n\n /**\n * @hidden\n * Attaches the host listeners for the given trigger and returns their cleanup functions.\n * Both triggers listen to `keydown` for `Ctrl+Alt+I` (Windows/Linux) / `Ctrl+Option+I` (Mac).\n *\n * `click` trigger:\n * - `click`: toggles the tooltip immediately.\n * - `focusout`: hides the tooltip when focus moves to another element.\n *\n * `hover` trigger:\n * - `pointerenter` / `pointerleave` (mouse and pen only): show / hide with delay.\n * - `focusin` / `focusout`: show on keyboard focus, hide when focus leaves the host.\n * - `click` and `Enter`: hide immediately, because the host action was triggered.\n * - `touchstart` / `touchmove` / `touchend` / `touchcancel`: detect a long-press.\n */\n private _listenToHost(trigger: TooltipTrigger): (() => void)[] {\n const host = this._host;\n const keydown = this._renderer.listen(host, 'keydown', (event: KeyboardEvent) =>\n this._onKeydown(event, trigger)\n );\n\n if (trigger === 'click') {\n return [\n keydown,\n this._renderer.listen(host, 'click', () => this._toggle()),\n this._renderer.listen(host, 'focusout', (event: FocusEvent) => {\n const target = event.relatedTarget as Node | null;\n // Clicking the tooltip text moves focus nowhere, so the tooltip stays open for text selection.\n if (target && !host.contains(target)) {\n this.hide();\n }\n })\n ];\n }\n\n const stopLongPress = (): void => this._clearLongPress();\n\n return [\n keydown,\n this._renderer.listen(host, 'pointerenter', (event: PointerEvent) => {\n if (event.pointerType !== 'touch') {\n this._requestShow(this._showDelay());\n }\n }),\n this._renderer.listen(host, 'pointerleave', (event: PointerEvent) => {\n if (event.pointerType !== 'touch') {\n this._coordinator.hide(this._handle, this._hideDelay());\n }\n }),\n this._renderer.listen(host, 'focusin', (event: FocusEvent) => this._onFocusIn(event)),\n this._renderer.listen(host, 'focusout', (event: FocusEvent) => {\n if (!host.contains(event.relatedTarget as Node | null)) {\n this._coordinator.hide(this._handle, this._hideDelay());\n }\n }),\n this._renderer.listen(host, 'click', () => this.hide()),\n this._renderer.listen(host, 'touchstart', () => this._startLongPress(), { passive: true }),\n this._renderer.listen(host, 'touchmove', stopLongPress, { passive: true }),\n this._renderer.listen(host, 'touchend', stopLongPress),\n this._renderer.listen(host, 'touchcancel', stopLongPress)\n ];\n }\n\n /**\n * @hidden\n * Shows the tooltip when the host receives keyboard focus. Ignores focus moving between elements\n * inside the host, focus caused by a mouse click or touch, and focus restored by the browser when\n * the window is activated again.\n */\n private _onFocusIn(event: FocusEvent): void {\n if (this._host.contains(event.relatedTarget as Node | null)) {\n return;\n }\n if (this._coordinator.isWindowRefocus() || this._inputModality.mostRecentModality !== 'keyboard') {\n return;\n }\n this._requestShow(this._showDelay());\n }\n\n /**\n * @hidden\n * Handles keyboard input on the host: `Ctrl+Alt+I` (Windows/Linux) / `Ctrl+Option+I` (Mac) toggles the tooltip without delay. With the `hover`\n * trigger, `Enter` hides the tooltip because it triggers the host action; with the `click` trigger,\n * `Enter` already toggles it through the resulting `click` event.\n */\n private _onKeydown(event: KeyboardEvent, trigger: TooltipTrigger): void {\n if (event.ctrlKey && event.altKey && event.code === 'KeyI') {\n event.preventDefault();\n this._toggle();\n return;\n }\n if (trigger === 'hover' && KeyUtil.isKeyCode(event, ENTER)) {\n this.hide();\n }\n }\n\n /** @hidden Shows the tooltip immediately if it is hidden, hides it otherwise. */\n private _toggle(): void {\n if (this._popoverService.isOpen()) {\n this.hide();\n } else {\n this.show();\n }\n }\n\n /**\n * @hidden\n * Starts the long-press detection on touch. When the touch is held for `LONG_PRESS_DURATION`,\n * the tooltip shows immediately. Skipped on links so the native link context menu keeps working.\n */\n private _startLongPress(): void {\n this._clearLongPress();\n if (this._host.matches('a[href]')) {\n return;\n }\n this._longPressTimer = setTimeout(() => {\n this._longPressTimer = null;\n this._requestShow(0);\n }, LONG_PRESS_DURATION);\n }\n\n /** @hidden Cancels the long-press detection, e.g. when the touch ends early or moves. */\n private _clearLongPress(): void {\n if (this._longPressTimer !== null) {\n clearTimeout(this._longPressTimer);\n this._longPressTimer = null;\n }\n }\n\n /**\n * @hidden\n * Passes the host size to the tooltip styles, so that with `start`/`end` alignment\n * the arrow points at the centre of the host instead of a fixed icon-button offset.\n */\n private _setHostSize(body: HTMLElement): void {\n const { width, height } = this._host.getBoundingClientRect();\n this._renderer.setStyle(body, '--fdTooltip_Host_Width', `${width}px`, RendererStyleFlags2.DashCase);\n this._renderer.setStyle(body, '--fdTooltip_Host_Height', `${height}px`, RendererStyleFlags2.DashCase);\n }\n\n /**\n * @hidden\n * Attaches pointer listeners to the opened overlay, so the tooltip stays open while hovered\n * (e.g. to select its text) and hides after the hide delay when the pointer leaves it.\n * Not used with the `click` trigger, where the pointer position does not close the tooltip.\n */\n private _listenToBody(body: HTMLElement): void {\n this._removeBodyListeners();\n if (this.fdTooltipTrigger() === 'click') {\n return;\n }\n this._bodyListeners = [\n this._renderer.listen(body, 'pointerenter', () => this._coordinator.cancelHide(this._handle)),\n this._renderer.listen(body, 'pointerleave', () => this._coordinator.hide(this._handle, this._hideDelay()))\n ];\n }\n\n /** @hidden Removes the pointer listeners from the overlay. */\n private _removeBodyListeners(): void {\n this._bodyListeners.forEach((unlisten) => unlisten());\n this._bodyListeners = [];\n }\n\n /**\n * @hidden\n * Applies the ARIA state to the host:\n * - fills the hidden description element with the text or the rendered template, or removes it,\n * - adds or removes this tooltip's id in `aria-describedby`,\n * - sets or removes `aria-keyshortcuts`.\n * Empty text, no template and `null` shortcuts remove everything this directive added.\n */\n private _updateAria(text: string, template: TemplateRef<unknown> | null, keyShortcuts: string | null): void {\n this._descriptionView?.destroy();\n this._descriptionView = null;\n\n if (text || template) {\n this._descriptionElement ??= this._createDescriptionElement();\n this._descriptionElement.textContent = template ? '' : text;\n if (template) {\n this._renderDescriptionTemplate(this._descriptionElement, template);\n }\n } else if (this._descriptionElement) {\n this._renderer.removeChild(this._document.body, this._descriptionElement);\n this._descriptionElement = null;\n }\n\n this._syncDescribedBy();\n\n if (keyShortcuts) {\n this._renderer.setAttribute(this._host, 'aria-keyshortcuts', keyShortcuts);\n } else if (this._keyShortcutsApplied) {\n this._renderer.removeAttribute(this._host, 'aria-keyshortcuts');\n }\n this._keyShortcutsApplied = !!keyShortcuts;\n }\n\n /**\n * @hidden\n * Renders the template into the hidden description element, so screen readers announce the same\n * content as shown in the tooltip. The view is attached to the application, so it stays up to date.\n */\n private _renderDescriptionTemplate(element: HTMLElement, template: TemplateRef<unknown>): void {\n const view = template.createEmbeddedView(null);\n this._appRef.attachView(view);\n view.detectChanges();\n view.rootNodes.forEach((node) => this._renderer.appendChild(element, node));\n this._descriptionView = view;\n }\n\n /**\n * @hidden\n * Creates the hidden description element in `document.body`. It lives outside the host so the host's\n * DOM and accessible name stay untouched; hidden content is still announced when referenced by\n * `aria-describedby`.\n */\n private _createDescriptionElement(): HTMLElement {\n const element: HTMLElement = this._renderer.createElement('span');\n this._renderer.setAttribute(element, 'id', this._descriptionId);\n this._renderer.setAttribute(element, 'hidden', '');\n this._renderer.appendChild(this._document.body, element);\n return element;\n }\n\n /**\n * @hidden\n * Adds this tooltip's description id to the host's `aria-describedby` only when the description\n * differs from the host's accessible name, so screen readers do not announce the same text twice.\n * Ids added by others are always kept.\n */\n private _syncDescribedBy(): void {\n const ids = (this._host.getAttribute('aria-describedby') ?? '')\n .split(/\\s+/)\n .filter((id) => id && id !== this._descriptionId);\n const description = this._descriptionElement?.textContent ?? '';\n\n if (description && normalizeText(description) !== normalizeText(this._accessibleName())) {\n ids.push(this._descriptionId);\n }\n\n if (ids.length) {\n this._renderer.setAttribute(this._host, 'aria-describedby', ids.join(' '));\n } else {\n this._renderer.removeAttribute(this._host, 'aria-describedby');\n }\n }\n\n /**\n * @hidden\n * Approximates the host's accessible name for the duplicate-announcement check, using the first\n * available source: `aria-labelledby`, `aria-label`, associated `<label>` elements, text content.\n */\n private _accessibleName(): string {\n const host = this._host;\n const labelledBy = host.getAttribute('aria-labelledby');\n if (labelledBy) {\n return labelledBy\n .split(/\\s+/)\n .map((id) => this._document.getElementById(id)?.textContent ?? '')\n .join(' ');\n }\n\n const ariaLabel = host.getAttribute('aria-label');\n if (ariaLabel) {\n return ariaLabel;\n }\n\n const labels = (host as Partial<HTMLInputElement>).labels;\n if (labels?.length) {\n return Array.from(labels, (label) => label.textContent ?? '').join(' ');\n }\n\n return host.textContent ?? '';\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAmBA;;;;;;;;AAQG;MAEU,kBAAkB,CAAA;AAoC3B;;;;;;AAMG;AACH,IAAA,WAAA,GAAA;AA1CA;;;;AAIG;QACK,IAAA,CAAA,OAAO,GAAyB,IAAI;;QAGpC,IAAA,CAAA,QAAQ,GAAyB,IAAI;;QAGrC,IAAA,CAAA,UAAU,GAAyC,IAAI;;QAGvD,IAAA,CAAA,UAAU,GAAyC,IAAI;AAE/D;;;;AAIG;QACK,IAAA,CAAA,gBAAgB,GAAG,KAAK;;QAGxB,IAAA,CAAA,mBAAmB,GAAG,KAAK;;AAGlB,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC;;QAG5B,IAAA,CAAA,OAAO,GAAG,iBAAiB,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI;;QAGpF,IAAA,CAAA,gBAAgB,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC;AAU1D,QAAA,MAAM,GAAG,GAAG,IAAI,CAAC,OAAO;QACxB,IAAI,CAAC,GAAG,EAAE;YACN;QACJ;QAEA,MAAM,YAAY,GAAG,MAAY,IAAI,CAAC,QAAQ,EAAE;QAChD,MAAM,aAAa,GAAG,MAAY,IAAI,CAAC,cAAc,EAAE;QACvD,MAAM,kBAAkB,GAAG,MAAW;YAClC,IAAI,IAAI,CAAC,SAAS,CAAC,eAAe,KAAK,QAAQ,EAAE;gBAC7C,IAAI,CAAC,QAAQ,EAAE;YACnB;AACJ,QAAA,C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ACvB,oBAAA,QAAQ,EAAE,WAAW;oBACrB,SAAS,EAAE,CAAC,cAAc;AAC7B,iBAAA;;;AC7GD;;AAEG;;;;"}
|
|
@@ -120,7 +120,7 @@ class UploadCollectionFormItemComponent {
|
|
|
120
120
|
this.onTouched = fn;
|
|
121
121
|
}
|
|
122
122
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: UploadCollectionFormItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
123
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: UploadCollectionFormItemComponent, isStandalone: true, selector: "fd-upload-collection-form-item", inputs: { _editMode: "_editMode" }, outputs: { fileNameChanged: "fileNameChanged" }, host: { classAttribute: "fd-upload-collection__form-item" }, ngImport: i0, template: "@if (_editMode) {\n <input\n fd-form-control\n required\n [style.pointer-events]=\"'all'\"\n class=\"fd-input\"\n type=\"text\"\n [attr.placeholder]=\"('coreUploadCollection.formItemPlaceholder' | fdTranslate)()\"\n [(ngModel)]=\"fileName\"\n [state]=\"!fileName ? 'error' : null\"\n (click)=\"$event.stopPropagation()\"\n />\n}\n@if (_editMode) {\n <span class=\"fd-upload-collection__extension\">.{{ _extension }}</span>\n}\n", dependencies: [{ kind: "component", type: FormControlComponent, selector: "input[fd-form-control], textarea[fd-form-control]", inputs: ["state", "type", "class", "ariaLabel", "ariaLabelledBy"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "pipe", type: FdTranslatePipe, name: "fdTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
123
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: UploadCollectionFormItemComponent, isStandalone: true, selector: "fd-upload-collection-form-item", inputs: { _editMode: "_editMode" }, outputs: { fileNameChanged: "fileNameChanged" }, host: { classAttribute: "fd-upload-collection__form-item" }, ngImport: i0, template: "@if (_editMode) {\n <input\n fd-form-control\n required\n [style.pointer-events]=\"'all'\"\n class=\"fd-input\"\n type=\"text\"\n [attr.placeholder]=\"('coreUploadCollection.formItemPlaceholder' | fdTranslate)()\"\n [(ngModel)]=\"fileName\"\n [state]=\"!fileName ? 'error' : null\"\n (click)=\"$event.stopPropagation()\"\n />\n}\n@if (_editMode) {\n <span class=\"fd-upload-collection__extension\">.{{ _extension }}</span>\n}\n", dependencies: [{ kind: "component", type: FormControlComponent, selector: "input[fd-form-control], textarea[fd-form-control]", inputs: ["state", "type", "class", "ariaLabel", "ariaLabelledBy", "aria-label", "aria-labelledby", "min", "max", "step", "largeStep", "valuePrecision", "stepMode", "validationMode", "textAlign", "useGrouping", "locale", "decimalSeparator"], outputs: ["ariaLabelledByChange", "validationChange"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "pipe", type: FdTranslatePipe, name: "fdTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
124
124
|
}
|
|
125
125
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: UploadCollectionFormItemComponent, decorators: [{
|
|
126
126
|
type: Component,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fundamental-ngx-core-upload-collection.mjs","sources":["../../../../libs/core/upload-collection/upload-collection-button-group/upload-collection-button-group.component.ts","../../../../libs/core/upload-collection/upload-collection-button-group/upload-collection-button-group.component.html","../../../../libs/core/upload-collection/upload-collection-form-item/upload-collection-form-item.component.ts","../../../../libs/core/upload-collection/upload-collection-form-item/upload-collection-form-item.component.html","../../../../libs/core/upload-collection/upload-collection-simple.directives.ts","../../../../libs/core/upload-collection/upload-collection-item.directive.ts","../../../../libs/core/upload-collection/upload-collection.component.ts","../../../../libs/core/upload-collection/upload-collection.module.ts","../../../../libs/core/upload-collection/fundamental-ngx-core-upload-collection.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n EventEmitter,\n Input,\n Output,\n ViewChild,\n ViewEncapsulation\n} from '@angular/core';\nimport { ButtonComponent } from '@fundamental-ngx/core/button';\nimport { FdTranslatePipe } from '@fundamental-ngx/i18n';\n\n@Component({\n selector: 'fd-upload-collection-button-group',\n host: { class: 'fd-upload-collection__button-group' },\n templateUrl: './upload-collection-button-group.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [ButtonComponent, FdTranslatePipe]\n})\nexport class UploadCollectionButtonGroupComponent {\n /** Event emitted when the user clicks the edit button. */\n @Output()\n readonly editClicked = new EventEmitter<boolean>();\n\n /** Event emitted when the user clicks the OK button to conform a file name change. */\n @Output()\n readonly okClicked = new EventEmitter<any>();\n\n /** Event emitted when the user clicks the delete button. */\n @Output()\n readonly deleteClicked = new EventEmitter<any>();\n\n /** Whether or not to allow file name editing. Default is true. */\n @Input()\n allowFileNameEdit = true;\n\n /** Whether or not to show the delete button. Default is true. */\n @Input()\n allowFileDeletion = true;\n\n /** Whether or not to disable the file name edit button. Default is false. */\n @Input()\n disableFileNameEdit = false;\n\n /** Whether or not to disable the delete button. Default is false. */\n @Input()\n disableFileDeletion = false;\n\n /** @hidden */\n @ViewChild('okButton')\n _okButton: ButtonComponent;\n\n /** @hidden */\n _editMode = false;\n\n /** @hidden */\n _editButtonClicked(event?: MouseEvent): void {\n if (event) {\n event.stopPropagation();\n }\n this.editClicked.emit(true);\n this._editMode = true;\n }\n\n /** @hidden */\n _deleteButtonClicked(event?: MouseEvent): void {\n if (event) {\n event.stopPropagation();\n }\n this.deleteClicked.emit();\n }\n\n /** @hidden */\n _okButtonClicked(event?: MouseEvent): void {\n if (event) {\n event.stopPropagation();\n }\n this.okClicked.emit();\n }\n\n /** @hidden */\n _cancelButtonClicked(event?: MouseEvent): void {\n if (event) {\n event.stopPropagation();\n }\n this.editClicked.emit(false);\n this._editMode = false;\n }\n}\n","@if (!_editMode && allowFileNameEdit) {\n <button\n [disabled]=\"disableFileNameEdit\"\n (click)=\"_editButtonClicked($event)\"\n fd-button\n fdType=\"transparent\"\n glyph=\"edit\"\n [ariaLabel]=\"('coreUploadCollection.menuEditAriaLabel' | fdTranslate)()\"\n ></button>\n}\n@if (!_editMode && allowFileDeletion) {\n <button\n [disabled]=\"disableFileDeletion\"\n (click)=\"_deleteButtonClicked($event)\"\n fd-button\n fdType=\"transparent\"\n glyph=\"decline\"\n [ariaLabel]=\"('coreUploadCollection.menuDeleteAriaLabel' | fdTranslate)()\"\n ></button>\n}\n<button\n #okButton\n [style.display]=\"_editMode ? 'inline-flex' : 'none'\"\n (click)=\"_okButtonClicked($event)\"\n fd-button\n fdType=\"transparent\"\n [ariaLabel]=\"('coreUploadCollection.menuOkAriaLabel' | fdTranslate)()\"\n>\n {{ ('coreUploadCollection.menuOkText' | fdTranslate)() }}\n</button>\n@if (_editMode) {\n <button\n (click)=\"_cancelButtonClicked($event)\"\n fd-button\n fdType=\"transparent\"\n [ariaLabel]=\"('coreUploadCollection.menuCancelAriaLabel' | fdTranslate)()\"\n >\n {{ ('coreUploadCollection.menuCancelText' | fdTranslate)() }}\n </button>\n}\n","import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output, ViewEncapsulation } from '@angular/core';\nimport { ControlValueAccessor, FormsModule } from '@angular/forms';\nimport { FormControlComponent } from '@fundamental-ngx/core/form';\nimport { FdTranslatePipe } from '@fundamental-ngx/i18n';\n\n@Component({\n selector: 'fd-upload-collection-form-item',\n host: { class: 'fd-upload-collection__form-item' },\n templateUrl: './upload-collection-form-item.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [FormControlComponent, FormsModule, FdTranslatePipe]\n})\nexport class UploadCollectionFormItemComponent implements ControlValueAccessor {\n /** @hidden */\n @Input()\n _editMode = false;\n\n /** Event emitted when the dragged file exits the dropzone. */\n @Output()\n readonly fileNameChanged = new EventEmitter<string>();\n\n /** @hidden */\n _fileNameValue: string;\n\n /** @hidden */\n _extension: string;\n\n /** Value of the text input. */\n set fileName(value) {\n this._fileNameValue = value;\n this.onChange(value);\n this.onTouched();\n this.fileNameChanged.emit(value);\n }\n get fileName(): string {\n return this._fileNameValue;\n }\n\n /** @hidden */\n onChange: (value: string) => void = () => {};\n\n /** @hidden */\n onTouched = (): void => {};\n\n /** @hidden */\n writeValue(value: string): void {\n this.fileName = value;\n }\n\n /** @hidden */\n registerOnChange(fn: (value: string) => void): void {\n this.onChange = fn;\n }\n\n /** @hidden */\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n}\n","@if (_editMode) {\n <input\n fd-form-control\n required\n [style.pointer-events]=\"'all'\"\n class=\"fd-input\"\n type=\"text\"\n [attr.placeholder]=\"('coreUploadCollection.formItemPlaceholder' | fdTranslate)()\"\n [(ngModel)]=\"fileName\"\n [state]=\"!fileName ? 'error' : null\"\n (click)=\"$event.stopPropagation()\"\n />\n}\n@if (_editMode) {\n <span class=\"fd-upload-collection__extension\">.{{ _extension }}</span>\n}\n","import {\n ContentChildren,\n Directive,\n ElementRef,\n HostBinding,\n Inject,\n OnInit,\n Optional,\n QueryList,\n inject\n} from '@angular/core';\nimport { ObjectMarkerComponent } from '@fundamental-ngx/core/object-marker';\nimport { FD_OBJECT_STATUS_COMPONENT, ObjectStatusComponent } from '@fundamental-ngx/core/object-status';\n\n@Directive({\n // eslint-disable-next-line @angular-eslint/directive-selector\n selector: '[fd-upload-collection-thumbnail]',\n host: { class: 'fd-upload-collection__thumbnail' },\n standalone: true\n})\nexport class UploadCollectionThumbnailDirective {}\n\n@Directive({\n // eslint-disable-next-line @angular-eslint/directive-selector\n selector: '[fd-upload-collection-title]',\n host: { class: 'fd-upload-collection__title' },\n standalone: true\n})\nexport class UploadCollectionTitleDirective {\n /** @hidden */\n readonly elRef = inject(ElementRef);\n}\n\n@Directive({\n // eslint-disable-next-line @angular-eslint/directive-selector\n selector: '[fd-upload-collection-description]',\n host: { class: 'fd-upload-collection__description' },\n standalone: true\n})\nexport class UploadCollectionDescriptionDirective {}\n\n@Directive({\n // eslint-disable-next-line @angular-eslint/directive-selector\n selector: '[fd-upload-collection-text-separator], fd-upload-collection-text-separator',\n host: { class: 'fd-upload-collection__text-separator' },\n standalone: true\n})\nexport class UploadCollectionTextSeparatorDirective {}\n\n@Directive({\n // eslint-disable-next-line @angular-eslint/directive-selector\n selector: '[fd-upload-collection-status-group]',\n host: { class: 'fd-upload-collection__status-group' },\n standalone: true\n})\nexport class UploadCollectionStatusGroupDirective {}\n\n@Directive({\n // eslint-disable-next-line @angular-eslint/directive-selector\n selector: '[fd-upload-collection-status-item]',\n host: { class: 'fd-upload-collection__status-group-item' },\n standalone: true\n})\nexport class UploadCollectionStatusItemDirective implements OnInit {\n /** @hidden */\n constructor(@Optional() @Inject(FD_OBJECT_STATUS_COMPONENT) private _objectStatus: ObjectStatusComponent) {}\n\n /** @hidden */\n ngOnInit(): void {\n if (this._objectStatus) {\n this._objectStatus._textClass += ' fd-upload-collection__status-group-item-text';\n }\n }\n}\n\n@Directive({\n // eslint-disable-next-line @angular-eslint/directive-selector\n selector: '[fd-upload-collection-title-container]',\n standalone: true\n})\nexport class UploadCollectionTitleContainerDirective {\n /** @hidden */\n @ContentChildren(ObjectMarkerComponent)\n _objectMarkerComponents: QueryList<ObjectMarkerComponent>;\n\n /** Whether or not this is in edit mode. */\n @HostBinding('class.fd-upload-collection__title-container')\n applyContainerClass = true;\n}\n","import {\n AfterContentInit,\n AfterViewInit,\n ContentChild,\n Directive,\n ElementRef,\n EventEmitter,\n HostListener,\n Input,\n OnDestroy,\n Output,\n inject\n} from '@angular/core';\nimport { HasElementRef } from '@fundamental-ngx/cdk/utils';\nimport { LINK_CLASS_NAME } from '@fundamental-ngx/core/link';\nimport { Subscription } from 'rxjs';\nimport { UploadCollectionButtonGroupComponent } from './upload-collection-button-group/upload-collection-button-group.component';\nimport { UploadCollectionFormItemComponent } from './upload-collection-form-item/upload-collection-form-item.component';\nimport {\n UploadCollectionTitleContainerDirective,\n UploadCollectionTitleDirective\n} from './upload-collection-simple.directives';\n\n@Directive({\n // eslint-disable-next-line @angular-eslint/directive-selector\n selector: '[fd-upload-collection-item]',\n host: { class: 'fd-upload-collection__item' },\n standalone: true\n})\nexport class UploadCollectionItemDirective implements AfterContentInit, OnDestroy, AfterViewInit, HasElementRef {\n /** The name of the file, not including the type extension. */\n @Input()\n fileName: string;\n\n /** The file type extension. */\n @Input()\n extension: string;\n\n /** @hidden */\n @ContentChild(UploadCollectionFormItemComponent)\n _formItemComponent: UploadCollectionFormItemComponent;\n\n /** @hidden */\n @ContentChild(UploadCollectionTitleDirective)\n _titleDirective: UploadCollectionTitleDirective;\n\n /** @hidden */\n @ContentChild(UploadCollectionButtonGroupComponent)\n _buttonGroupComponent: UploadCollectionButtonGroupComponent;\n\n /** @hidden */\n @ContentChild(UploadCollectionTitleContainerDirective)\n _titleContainerDirective: UploadCollectionTitleContainerDirective;\n\n /** Event emitted when the user changes a file name. */\n @Output()\n readonly fileNameChanged = new EventEmitter<any>();\n\n /** Event emitted when presses the delete button. */\n @Output()\n readonly deleteClicked = new EventEmitter<any>();\n\n /** @hidden */\n fileNameFull: string;\n\n /** @hidden */\n titleWidth: number;\n\n /** @hidden used to compare to the current width to know whether to collapse or expand title */\n previousContainerWidth: number;\n\n /** @hidden */\n containerWidth: number;\n\n /** @hidden */\n readonly elementRef = inject(ElementRef);\n\n /** @hidden */\n private _subscriptions = new Subscription();\n\n /** @hidden */\n @HostListener('window:resize', [])\n onResize(): void {\n if (!this.elementRef.nativeElement.parentElement) {\n return;\n }\n this.titleWidth = this.getTitleWidth();\n this.containerWidth = this.getContainerWidth();\n\n // if first load and no previous container width, or if container boundary is resized to smaller than before\n if (!this.previousContainerWidth || this.containerWidth < this.previousContainerWidth) {\n // and the title extends past the container, 1.05x padding to prevent jaggy resizing.\n if (this.titleWidth * 1.05 >= this.containerWidth) {\n const host = this._titleDirective.elRef.nativeElement as HTMLElement;\n const span = host.querySelector('span.' + LINK_CLASS_NAME.linkContent);\n const currentText = span?.textContent ?? this.fileNameFull;\n this.resizeFileTitle(currentText);\n }\n } else if (this.previousContainerWidth && this.containerWidth > this.previousContainerWidth) {\n // Looks to expand file title if container width is resized to greater than before\n // reset file title to initial\n this._setTitleText(this.fileNameFull);\n this.resizeFileTitle(this.fileNameFull);\n }\n\n this.previousContainerWidth = this.containerWidth;\n }\n\n /** @hidden */\n ngAfterContentInit(): void {\n this.fileNameFull = this.fileName + '.' + this.extension;\n this._titleDirective.elRef.nativeElement.tabIndex = '0';\n this._setTitleText(this.fileNameFull);\n this._handleDeleteClickedSubscription();\n this._handleOkClickedSubscription();\n this._handleEditClickedSubscription();\n this._handleFormItemInputChangedSubscription();\n }\n\n /** @hidden */\n ngAfterViewInit(): void {\n // Process resize after all the children views is initialized\n setTimeout(() => this.onResize());\n }\n\n /** @hidden */\n ngOnDestroy(): void {\n this._subscriptions.unsubscribe();\n }\n\n /** @hidden */\n private _handleOkClickedSubscription(): void {\n this._subscriptions.add(\n this._buttonGroupComponent.okClicked.subscribe(() => {\n if (this._formItemComponent.fileName && this._formItemComponent.fileName !== '') {\n this.fileName = this._formItemComponent.fileName;\n this._titleDirective.elRef.nativeElement.style.display = 'inline-block';\n this.fileNameFull = this.fileName + '.' + this.extension;\n this._setTitleText(this.fileNameFull);\n this.resizeFileTitle(this.fileNameFull);\n this._formItemComponent._editMode = false;\n this._buttonGroupComponent._editMode = false;\n this.fileNameChanged.emit(this);\n }\n })\n );\n }\n\n /** @hidden */\n private _handleEditClickedSubscription(): void {\n this._subscriptions.add(\n this._buttonGroupComponent.editClicked.subscribe((event) => {\n this._formItemComponent._editMode = event;\n if (this._titleContainerDirective) {\n this._titleContainerDirective.applyContainerClass = !event;\n }\n const styles: CSSStyleDeclaration[] = [];\n styles.push((this._titleDirective.elRef.nativeElement as HTMLElement).style);\n this._titleContainerDirective?._objectMarkerComponents?.forEach((objectMarker) => {\n styles.push(objectMarker.elementRef.nativeElement.style);\n });\n event\n ? styles.forEach((style) => (style.display = 'none'))\n : styles.forEach((style) => (style.display = 'inline-block'));\n if (event) {\n this._formItemComponent._extension = this.extension;\n this._formItemComponent.fileName = this.fileName;\n }\n })\n );\n }\n\n /** @hidden */\n private _handleDeleteClickedSubscription(): void {\n this._subscriptions.add(\n this._buttonGroupComponent.deleteClicked.subscribe(() => {\n this.deleteClicked.emit(this);\n })\n );\n }\n\n /** @hidden */\n private _handleFormItemInputChangedSubscription(): void {\n this._subscriptions.add(\n this._formItemComponent.fileNameChanged.subscribe((event) => {\n this._buttonGroupComponent._okButton.setDisabled(event === '');\n })\n );\n }\n\n /** @hidden */\n private getTitleWidth(): number {\n return this._titleDirective.elRef.nativeElement.getBoundingClientRect().width;\n }\n\n /** @hidden */\n private getContainerWidth(): number {\n return this._titleDirective.elRef.nativeElement.parentElement.getBoundingClientRect().width;\n }\n\n /** @hidden */\n private _setTitleText(text: string): void {\n const host = this._titleDirective.elRef.nativeElement as HTMLElement;\n let span = host.querySelector<HTMLSpanElement>('span.' + LINK_CLASS_NAME.linkContent);\n if (!span) {\n host.textContent = '';\n span = document.createElement('span');\n span.className = LINK_CLASS_NAME.linkContent;\n host.appendChild(span);\n }\n span.textContent = text;\n }\n\n /**\n * @hidden\n *\n * truncates the string by cutting out excess length in the middle and replacing with '...'\n */\n private truncateTitle(str: string): string {\n const cutLength = Math.floor(str.length * 0.8);\n\n if (str.length > cutLength) {\n const stringLeftIndex = Math.floor(cutLength / 2);\n const stringRightIndex = str.length - stringLeftIndex + 3;\n return str.substring(0, stringLeftIndex) + '...' + str.substring(stringRightIndex, str.length);\n }\n return str;\n }\n\n /**\n * @hidden\n *\n * determines if file title needs to be truncated given container constraint.\n */\n private resizeFileTitle(titleStr: string): void {\n let curTitle = titleStr;\n this.containerWidth = this.getContainerWidth();\n this.titleWidth = this.getTitleWidth();\n\n // repeatedly truncate the title until it fits inside container\n while (this.titleWidth * 1.05 >= this.containerWidth) {\n const truncatedTitleStr = this.truncateTitle(curTitle);\n this._setTitleText(truncatedTitleStr);\n curTitle = truncatedTitleStr;\n this.titleWidth = this.getTitleWidth();\n this.containerWidth = this.getContainerWidth();\n }\n }\n}\n","import { ChangeDetectionStrategy, Component, HostBinding, Input, ViewEncapsulation } from '@angular/core';\nimport { ListComponent } from '@fundamental-ngx/core/list';\n\n@Component({\n selector: 'fd-upload-collection',\n host: { class: 'fd-upload-collection' },\n styleUrl: './upload-collection.component.scss',\n template: `<ul fd-list [byline]=\"true\" [selection]=\"selection\">\n <ng-content></ng-content>\n </ul>`,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [ListComponent]\n})\nexport class UploadCollectionComponent {\n /** Whether or not this is the small upload collection. */\n @Input()\n @HostBinding('class.fd-upload-collection--sm')\n small = false;\n\n /** Whether or not this upload collection supports selection. */\n @Input()\n selection = false;\n}\n","import { NgModule } from '@angular/core';\nimport { UploadCollectionButtonGroupComponent } from './upload-collection-button-group/upload-collection-button-group.component';\nimport { UploadCollectionFormItemComponent } from './upload-collection-form-item/upload-collection-form-item.component';\nimport { UploadCollectionItemDirective } from './upload-collection-item.directive';\nimport {\n UploadCollectionDescriptionDirective,\n UploadCollectionStatusGroupDirective,\n UploadCollectionStatusItemDirective,\n UploadCollectionTextSeparatorDirective,\n UploadCollectionThumbnailDirective,\n UploadCollectionTitleContainerDirective,\n UploadCollectionTitleDirective\n} from './upload-collection-simple.directives';\nimport { UploadCollectionComponent } from './upload-collection.component';\n\n/**\n * @deprecated\n * Use direct imports of components and directives.\n */\n@NgModule({\n imports: [\n UploadCollectionComponent,\n UploadCollectionItemDirective,\n UploadCollectionThumbnailDirective,\n UploadCollectionTitleDirective,\n UploadCollectionDescriptionDirective,\n UploadCollectionTextSeparatorDirective,\n UploadCollectionStatusGroupDirective,\n UploadCollectionStatusItemDirective,\n UploadCollectionButtonGroupComponent,\n UploadCollectionFormItemComponent,\n UploadCollectionTitleContainerDirective\n ],\n exports: [\n UploadCollectionComponent,\n UploadCollectionItemDirective,\n UploadCollectionThumbnailDirective,\n UploadCollectionTitleDirective,\n UploadCollectionDescriptionDirective,\n UploadCollectionTextSeparatorDirective,\n UploadCollectionStatusGroupDirective,\n UploadCollectionStatusItemDirective,\n UploadCollectionButtonGroupComponent,\n UploadCollectionFormItemComponent,\n UploadCollectionTitleContainerDirective\n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A6B;wBAC7B,kCAAkC;wBAClC,8BAA8B;wBAC9B,oCAAoC;wBACpC,sCAAsC;wBACtC,oCAAoC;wBACpC,mCAAmC;wBACnC,oCAAoC;wBACpC,iCAAiC;wBACjC;AACH;AACJ,iBAAA;;;AC9CD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"fundamental-ngx-core-upload-collection.mjs","sources":["../../../../libs/core/upload-collection/upload-collection-button-group/upload-collection-button-group.component.ts","../../../../libs/core/upload-collection/upload-collection-button-group/upload-collection-button-group.component.html","../../../../libs/core/upload-collection/upload-collection-form-item/upload-collection-form-item.component.ts","../../../../libs/core/upload-collection/upload-collection-form-item/upload-collection-form-item.component.html","../../../../libs/core/upload-collection/upload-collection-simple.directives.ts","../../../../libs/core/upload-collection/upload-collection-item.directive.ts","../../../../libs/core/upload-collection/upload-collection.component.ts","../../../../libs/core/upload-collection/upload-collection.module.ts","../../../../libs/core/upload-collection/fundamental-ngx-core-upload-collection.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n EventEmitter,\n Input,\n Output,\n ViewChild,\n ViewEncapsulation\n} from '@angular/core';\nimport { ButtonComponent } from '@fundamental-ngx/core/button';\nimport { FdTranslatePipe } from '@fundamental-ngx/i18n';\n\n@Component({\n selector: 'fd-upload-collection-button-group',\n host: { class: 'fd-upload-collection__button-group' },\n templateUrl: './upload-collection-button-group.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [ButtonComponent, FdTranslatePipe]\n})\nexport class UploadCollectionButtonGroupComponent {\n /** Event emitted when the user clicks the edit button. */\n @Output()\n readonly editClicked = new EventEmitter<boolean>();\n\n /** Event emitted when the user clicks the OK button to conform a file name change. */\n @Output()\n readonly okClicked = new EventEmitter<any>();\n\n /** Event emitted when the user clicks the delete button. */\n @Output()\n readonly deleteClicked = new EventEmitter<any>();\n\n /** Whether or not to allow file name editing. Default is true. */\n @Input()\n allowFileNameEdit = true;\n\n /** Whether or not to show the delete button. Default is true. */\n @Input()\n allowFileDeletion = true;\n\n /** Whether or not to disable the file name edit button. Default is false. */\n @Input()\n disableFileNameEdit = false;\n\n /** Whether or not to disable the delete button. Default is false. */\n @Input()\n disableFileDeletion = false;\n\n /** @hidden */\n @ViewChild('okButton')\n _okButton: ButtonComponent;\n\n /** @hidden */\n _editMode = false;\n\n /** @hidden */\n _editButtonClicked(event?: MouseEvent): void {\n if (event) {\n event.stopPropagation();\n }\n this.editClicked.emit(true);\n this._editMode = true;\n }\n\n /** @hidden */\n _deleteButtonClicked(event?: MouseEvent): void {\n if (event) {\n event.stopPropagation();\n }\n this.deleteClicked.emit();\n }\n\n /** @hidden */\n _okButtonClicked(event?: MouseEvent): void {\n if (event) {\n event.stopPropagation();\n }\n this.okClicked.emit();\n }\n\n /** @hidden */\n _cancelButtonClicked(event?: MouseEvent): void {\n if (event) {\n event.stopPropagation();\n }\n this.editClicked.emit(false);\n this._editMode = false;\n }\n}\n","@if (!_editMode && allowFileNameEdit) {\n <button\n [disabled]=\"disableFileNameEdit\"\n (click)=\"_editButtonClicked($event)\"\n fd-button\n fdType=\"transparent\"\n glyph=\"edit\"\n [ariaLabel]=\"('coreUploadCollection.menuEditAriaLabel' | fdTranslate)()\"\n ></button>\n}\n@if (!_editMode && allowFileDeletion) {\n <button\n [disabled]=\"disableFileDeletion\"\n (click)=\"_deleteButtonClicked($event)\"\n fd-button\n fdType=\"transparent\"\n glyph=\"decline\"\n [ariaLabel]=\"('coreUploadCollection.menuDeleteAriaLabel' | fdTranslate)()\"\n ></button>\n}\n<button\n #okButton\n [style.display]=\"_editMode ? 'inline-flex' : 'none'\"\n (click)=\"_okButtonClicked($event)\"\n fd-button\n fdType=\"transparent\"\n [ariaLabel]=\"('coreUploadCollection.menuOkAriaLabel' | fdTranslate)()\"\n>\n {{ ('coreUploadCollection.menuOkText' | fdTranslate)() }}\n</button>\n@if (_editMode) {\n <button\n (click)=\"_cancelButtonClicked($event)\"\n fd-button\n fdType=\"transparent\"\n [ariaLabel]=\"('coreUploadCollection.menuCancelAriaLabel' | fdTranslate)()\"\n >\n {{ ('coreUploadCollection.menuCancelText' | fdTranslate)() }}\n </button>\n}\n","import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output, ViewEncapsulation } from '@angular/core';\nimport { ControlValueAccessor, FormsModule } from '@angular/forms';\nimport { FormControlComponent } from '@fundamental-ngx/core/form';\nimport { FdTranslatePipe } from '@fundamental-ngx/i18n';\n\n@Component({\n selector: 'fd-upload-collection-form-item',\n host: { class: 'fd-upload-collection__form-item' },\n templateUrl: './upload-collection-form-item.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [FormControlComponent, FormsModule, FdTranslatePipe]\n})\nexport class UploadCollectionFormItemComponent implements ControlValueAccessor {\n /** @hidden */\n @Input()\n _editMode = false;\n\n /** Event emitted when the dragged file exits the dropzone. */\n @Output()\n readonly fileNameChanged = new EventEmitter<string>();\n\n /** @hidden */\n _fileNameValue: string;\n\n /** @hidden */\n _extension: string;\n\n /** Value of the text input. */\n set fileName(value) {\n this._fileNameValue = value;\n this.onChange(value);\n this.onTouched();\n this.fileNameChanged.emit(value);\n }\n get fileName(): string {\n return this._fileNameValue;\n }\n\n /** @hidden */\n onChange: (value: string) => void = () => {};\n\n /** @hidden */\n onTouched = (): void => {};\n\n /** @hidden */\n writeValue(value: string): void {\n this.fileName = value;\n }\n\n /** @hidden */\n registerOnChange(fn: (value: string) => void): void {\n this.onChange = fn;\n }\n\n /** @hidden */\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n}\n","@if (_editMode) {\n <input\n fd-form-control\n required\n [style.pointer-events]=\"'all'\"\n class=\"fd-input\"\n type=\"text\"\n [attr.placeholder]=\"('coreUploadCollection.formItemPlaceholder' | fdTranslate)()\"\n [(ngModel)]=\"fileName\"\n [state]=\"!fileName ? 'error' : null\"\n (click)=\"$event.stopPropagation()\"\n />\n}\n@if (_editMode) {\n <span class=\"fd-upload-collection__extension\">.{{ _extension }}</span>\n}\n","import {\n ContentChildren,\n Directive,\n ElementRef,\n HostBinding,\n Inject,\n OnInit,\n Optional,\n QueryList,\n inject\n} from '@angular/core';\nimport { ObjectMarkerComponent } from '@fundamental-ngx/core/object-marker';\nimport { FD_OBJECT_STATUS_COMPONENT, ObjectStatusComponent } from '@fundamental-ngx/core/object-status';\n\n@Directive({\n // eslint-disable-next-line @angular-eslint/directive-selector\n selector: '[fd-upload-collection-thumbnail]',\n host: { class: 'fd-upload-collection__thumbnail' },\n standalone: true\n})\nexport class UploadCollectionThumbnailDirective {}\n\n@Directive({\n // eslint-disable-next-line @angular-eslint/directive-selector\n selector: '[fd-upload-collection-title]',\n host: { class: 'fd-upload-collection__title' },\n standalone: true\n})\nexport class UploadCollectionTitleDirective {\n /** @hidden */\n readonly elRef = inject(ElementRef);\n}\n\n@Directive({\n // eslint-disable-next-line @angular-eslint/directive-selector\n selector: '[fd-upload-collection-description]',\n host: { class: 'fd-upload-collection__description' },\n standalone: true\n})\nexport class UploadCollectionDescriptionDirective {}\n\n@Directive({\n // eslint-disable-next-line @angular-eslint/directive-selector\n selector: '[fd-upload-collection-text-separator], fd-upload-collection-text-separator',\n host: { class: 'fd-upload-collection__text-separator' },\n standalone: true\n})\nexport class UploadCollectionTextSeparatorDirective {}\n\n@Directive({\n // eslint-disable-next-line @angular-eslint/directive-selector\n selector: '[fd-upload-collection-status-group]',\n host: { class: 'fd-upload-collection__status-group' },\n standalone: true\n})\nexport class UploadCollectionStatusGroupDirective {}\n\n@Directive({\n // eslint-disable-next-line @angular-eslint/directive-selector\n selector: '[fd-upload-collection-status-item]',\n host: { class: 'fd-upload-collection__status-group-item' },\n standalone: true\n})\nexport class UploadCollectionStatusItemDirective implements OnInit {\n /** @hidden */\n constructor(@Optional() @Inject(FD_OBJECT_STATUS_COMPONENT) private _objectStatus: ObjectStatusComponent) {}\n\n /** @hidden */\n ngOnInit(): void {\n if (this._objectStatus) {\n this._objectStatus._textClass += ' fd-upload-collection__status-group-item-text';\n }\n }\n}\n\n@Directive({\n // eslint-disable-next-line @angular-eslint/directive-selector\n selector: '[fd-upload-collection-title-container]',\n standalone: true\n})\nexport class UploadCollectionTitleContainerDirective {\n /** @hidden */\n @ContentChildren(ObjectMarkerComponent)\n _objectMarkerComponents: QueryList<ObjectMarkerComponent>;\n\n /** Whether or not this is in edit mode. */\n @HostBinding('class.fd-upload-collection__title-container')\n applyContainerClass = true;\n}\n","import {\n AfterContentInit,\n AfterViewInit,\n ContentChild,\n Directive,\n ElementRef,\n EventEmitter,\n HostListener,\n Input,\n OnDestroy,\n Output,\n inject\n} from '@angular/core';\nimport { HasElementRef } from '@fundamental-ngx/cdk/utils';\nimport { LINK_CLASS_NAME } from '@fundamental-ngx/core/link';\nimport { Subscription } from 'rxjs';\nimport { UploadCollectionButtonGroupComponent } from './upload-collection-button-group/upload-collection-button-group.component';\nimport { UploadCollectionFormItemComponent } from './upload-collection-form-item/upload-collection-form-item.component';\nimport {\n UploadCollectionTitleContainerDirective,\n UploadCollectionTitleDirective\n} from './upload-collection-simple.directives';\n\n@Directive({\n // eslint-disable-next-line @angular-eslint/directive-selector\n selector: '[fd-upload-collection-item]',\n host: { class: 'fd-upload-collection__item' },\n standalone: true\n})\nexport class UploadCollectionItemDirective implements AfterContentInit, OnDestroy, AfterViewInit, HasElementRef {\n /** The name of the file, not including the type extension. */\n @Input()\n fileName: string;\n\n /** The file type extension. */\n @Input()\n extension: string;\n\n /** @hidden */\n @ContentChild(UploadCollectionFormItemComponent)\n _formItemComponent: UploadCollectionFormItemComponent;\n\n /** @hidden */\n @ContentChild(UploadCollectionTitleDirective)\n _titleDirective: UploadCollectionTitleDirective;\n\n /** @hidden */\n @ContentChild(UploadCollectionButtonGroupComponent)\n _buttonGroupComponent: UploadCollectionButtonGroupComponent;\n\n /** @hidden */\n @ContentChild(UploadCollectionTitleContainerDirective)\n _titleContainerDirective: UploadCollectionTitleContainerDirective;\n\n /** Event emitted when the user changes a file name. */\n @Output()\n readonly fileNameChanged = new EventEmitter<any>();\n\n /** Event emitted when presses the delete button. */\n @Output()\n readonly deleteClicked = new EventEmitter<any>();\n\n /** @hidden */\n fileNameFull: string;\n\n /** @hidden */\n titleWidth: number;\n\n /** @hidden used to compare to the current width to know whether to collapse or expand title */\n previousContainerWidth: number;\n\n /** @hidden */\n containerWidth: number;\n\n /** @hidden */\n readonly elementRef = inject(ElementRef);\n\n /** @hidden */\n private _subscriptions = new Subscription();\n\n /** @hidden */\n @HostListener('window:resize', [])\n onResize(): void {\n if (!this.elementRef.nativeElement.parentElement) {\n return;\n }\n this.titleWidth = this.getTitleWidth();\n this.containerWidth = this.getContainerWidth();\n\n // if first load and no previous container width, or if container boundary is resized to smaller than before\n if (!this.previousContainerWidth || this.containerWidth < this.previousContainerWidth) {\n // and the title extends past the container, 1.05x padding to prevent jaggy resizing.\n if (this.titleWidth * 1.05 >= this.containerWidth) {\n const host = this._titleDirective.elRef.nativeElement as HTMLElement;\n const span = host.querySelector('span.' + LINK_CLASS_NAME.linkContent);\n const currentText = span?.textContent ?? this.fileNameFull;\n this.resizeFileTitle(currentText);\n }\n } else if (this.previousContainerWidth && this.containerWidth > this.previousContainerWidth) {\n // Looks to expand file title if container width is resized to greater than before\n // reset file title to initial\n this._setTitleText(this.fileNameFull);\n this.resizeFileTitle(this.fileNameFull);\n }\n\n this.previousContainerWidth = this.containerWidth;\n }\n\n /** @hidden */\n ngAfterContentInit(): void {\n this.fileNameFull = this.fileName + '.' + this.extension;\n this._titleDirective.elRef.nativeElement.tabIndex = '0';\n this._setTitleText(this.fileNameFull);\n this._handleDeleteClickedSubscription();\n this._handleOkClickedSubscription();\n this._handleEditClickedSubscription();\n this._handleFormItemInputChangedSubscription();\n }\n\n /** @hidden */\n ngAfterViewInit(): void {\n // Process resize after all the children views is initialized\n setTimeout(() => this.onResize());\n }\n\n /** @hidden */\n ngOnDestroy(): void {\n this._subscriptions.unsubscribe();\n }\n\n /** @hidden */\n private _handleOkClickedSubscription(): void {\n this._subscriptions.add(\n this._buttonGroupComponent.okClicked.subscribe(() => {\n if (this._formItemComponent.fileName && this._formItemComponent.fileName !== '') {\n this.fileName = this._formItemComponent.fileName;\n this._titleDirective.elRef.nativeElement.style.display = 'inline-block';\n this.fileNameFull = this.fileName + '.' + this.extension;\n this._setTitleText(this.fileNameFull);\n this.resizeFileTitle(this.fileNameFull);\n this._formItemComponent._editMode = false;\n this._buttonGroupComponent._editMode = false;\n this.fileNameChanged.emit(this);\n }\n })\n );\n }\n\n /** @hidden */\n private _handleEditClickedSubscription(): void {\n this._subscriptions.add(\n this._buttonGroupComponent.editClicked.subscribe((event) => {\n this._formItemComponent._editMode = event;\n if (this._titleContainerDirective) {\n this._titleContainerDirective.applyContainerClass = !event;\n }\n const styles: CSSStyleDeclaration[] = [];\n styles.push((this._titleDirective.elRef.nativeElement as HTMLElement).style);\n this._titleContainerDirective?._objectMarkerComponents?.forEach((objectMarker) => {\n styles.push(objectMarker.elementRef.nativeElement.style);\n });\n event\n ? styles.forEach((style) => (style.display = 'none'))\n : styles.forEach((style) => (style.display = 'inline-block'));\n if (event) {\n this._formItemComponent._extension = this.extension;\n this._formItemComponent.fileName = this.fileName;\n }\n })\n );\n }\n\n /** @hidden */\n private _handleDeleteClickedSubscription(): void {\n this._subscriptions.add(\n this._buttonGroupComponent.deleteClicked.subscribe(() => {\n this.deleteClicked.emit(this);\n })\n );\n }\n\n /** @hidden */\n private _handleFormItemInputChangedSubscription(): void {\n this._subscriptions.add(\n this._formItemComponent.fileNameChanged.subscribe((event) => {\n this._buttonGroupComponent._okButton.setDisabled(event === '');\n })\n );\n }\n\n /** @hidden */\n private getTitleWidth(): number {\n return this._titleDirective.elRef.nativeElement.getBoundingClientRect().width;\n }\n\n /** @hidden */\n private getContainerWidth(): number {\n return this._titleDirective.elRef.nativeElement.parentElement.getBoundingClientRect().width;\n }\n\n /** @hidden */\n private _setTitleText(text: string): void {\n const host = this._titleDirective.elRef.nativeElement as HTMLElement;\n let span = host.querySelector<HTMLSpanElement>('span.' + LINK_CLASS_NAME.linkContent);\n if (!span) {\n host.textContent = '';\n span = document.createElement('span');\n span.className = LINK_CLASS_NAME.linkContent;\n host.appendChild(span);\n }\n span.textContent = text;\n }\n\n /**\n * @hidden\n *\n * truncates the string by cutting out excess length in the middle and replacing with '...'\n */\n private truncateTitle(str: string): string {\n const cutLength = Math.floor(str.length * 0.8);\n\n if (str.length > cutLength) {\n const stringLeftIndex = Math.floor(cutLength / 2);\n const stringRightIndex = str.length - stringLeftIndex + 3;\n return str.substring(0, stringLeftIndex) + '...' + str.substring(stringRightIndex, str.length);\n }\n return str;\n }\n\n /**\n * @hidden\n *\n * determines if file title needs to be truncated given container constraint.\n */\n private resizeFileTitle(titleStr: string): void {\n let curTitle = titleStr;\n this.containerWidth = this.getContainerWidth();\n this.titleWidth = this.getTitleWidth();\n\n // repeatedly truncate the title until it fits inside container\n while (this.titleWidth * 1.05 >= this.containerWidth) {\n const truncatedTitleStr = this.truncateTitle(curTitle);\n this._setTitleText(truncatedTitleStr);\n curTitle = truncatedTitleStr;\n this.titleWidth = this.getTitleWidth();\n this.containerWidth = this.getContainerWidth();\n }\n }\n}\n","import { ChangeDetectionStrategy, Component, HostBinding, Input, ViewEncapsulation } from '@angular/core';\nimport { ListComponent } from '@fundamental-ngx/core/list';\n\n@Component({\n selector: 'fd-upload-collection',\n host: { class: 'fd-upload-collection' },\n styleUrl: './upload-collection.component.scss',\n template: `<ul fd-list [byline]=\"true\" [selection]=\"selection\">\n <ng-content></ng-content>\n </ul>`,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [ListComponent]\n})\nexport class UploadCollectionComponent {\n /** Whether or not this is the small upload collection. */\n @Input()\n @HostBinding('class.fd-upload-collection--sm')\n small = false;\n\n /** Whether or not this upload collection supports selection. */\n @Input()\n selection = false;\n}\n","import { NgModule } from '@angular/core';\nimport { UploadCollectionButtonGroupComponent } from './upload-collection-button-group/upload-collection-button-group.component';\nimport { UploadCollectionFormItemComponent } from './upload-collection-form-item/upload-collection-form-item.component';\nimport { UploadCollectionItemDirective } from './upload-collection-item.directive';\nimport {\n UploadCollectionDescriptionDirective,\n UploadCollectionStatusGroupDirective,\n UploadCollectionStatusItemDirective,\n UploadCollectionTextSeparatorDirective,\n UploadCollectionThumbnailDirective,\n UploadCollectionTitleContainerDirective,\n UploadCollectionTitleDirective\n} from './upload-collection-simple.directives';\nimport { UploadCollectionComponent } from './upload-collection.component';\n\n/**\n * @deprecated\n * Use direct imports of components and directives.\n */\n@NgModule({\n imports: [\n UploadCollectionComponent,\n UploadCollectionItemDirective,\n UploadCollectionThumbnailDirective,\n UploadCollectionTitleDirective,\n UploadCollectionDescriptionDirective,\n UploadCollectionTextSeparatorDirective,\n UploadCollectionStatusGroupDirective,\n UploadCollectionStatusItemDirective,\n UploadCollectionButtonGroupComponent,\n UploadCollectionFormItemComponent,\n UploadCollectionTitleContainerDirective\n ],\n exports: [\n UploadCollectionComponent,\n UploadCollectionItemDirective,\n UploadCollectionThumbnailDirective,\n UploadCollectionTitleDirective,\n UploadCollectionDescriptionDirective,\n UploadCollectionTextSeparatorDirective,\n UploadCollectionStatusGroupDirective,\n UploadCollectionStatusItemDirective,\n UploadCollectionButtonGroupComponent,\n UploadCollectionFormItemComponent,\n UploadCollectionTitleContainerDirective\n ]\n})\nexport class UploadCollectionModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;MAoBa,oCAAoC,CAAA;AARjD,IAAA,WAAA,GAAA;;AAWa,QAAA,IAAA,CAAA,WAAW,GAAG,IAAI,YAAY,EAAW;;AAIzC,QAAA,IAAA,CAAA,SAAS,GAAG,IAAI,YAAY,EAAO;;AAInC,QAAA,IAAA,CAAA,aAAa,GAAG,IAAI,YAAY,EAAO;;QAIhD,IAAA,CAAA,iBAAiB,GAAG,IAAI;;QAIxB,IAAA,CAAA,iBA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