@4sh/ui-kit 0.11.0 → 0.12.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/4sh-ui-kit-actions-ui-button-split.mjs +3 -3
- package/fesm2022/4sh-ui-kit-actions-ui-button.mjs +3 -3
- package/fesm2022/4sh-ui-kit-actions-ui-link.mjs +3 -3
- package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs +3 -3
- package/fesm2022/4sh-ui-kit-base-ui-icon.mjs +6 -6
- package/fesm2022/4sh-ui-kit-base-ui-image.mjs +6 -6
- package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs +3 -3
- package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs +3 -3
- package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs +3 -3
- package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs +118 -15
- package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-field.mjs +3 -3
- package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs +24 -11
- package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs +3 -3
- package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs +6 -6
- package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs +3 -3
- package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs +3 -3
- package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs +3 -3
- package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs +3 -3
- package/fesm2022/4sh-ui-kit-forms-ui-input.mjs +3 -3
- package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs +3 -3
- package/fesm2022/4sh-ui-kit-forms-ui-label.mjs +3 -3
- package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs +3 -3
- package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs +3 -3
- package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs +3 -3
- package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs +3 -3
- package/fesm2022/4sh-ui-kit-forms-ui-select.mjs +3 -3
- package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs +3 -3
- package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs +3 -3
- package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs +3 -3
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs +3 -3
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs +3 -3
- package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs +3 -3
- package/fesm2022/4sh-ui-kit-forms.mjs +6 -6
- package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs +12 -12
- package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs +3 -3
- package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs +3 -3
- package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs +3 -3
- package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs +3 -3
- package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs +3 -3
- package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs +9 -9
- package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs +3 -3
- package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs +4 -4
- package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs +3 -3
- package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs +3 -3
- package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs +3 -3
- package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs +3 -3
- package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs +3 -3
- package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs +17 -17
- package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs +6 -6
- package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs +12 -12
- package/fesm2022/4sh-ui-kit-layout-ui-card.mjs +15 -15
- package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs +3 -3
- package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs +3 -3
- package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs +3 -3
- package/fesm2022/4sh-ui-kit-motion.mjs +3 -3
- package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs +9 -9
- package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs +3 -3
- package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs +3 -3
- package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs +5 -5
- package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs +9 -9
- package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs +18 -18
- package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs +15 -15
- package/fesm2022/4sh-ui-kit-ripple.mjs +9 -9
- package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs +3 -3
- package/fesm2022/4sh-ui-kit-table-ui-table.mjs +33 -33
- package/fesm2022/4sh-ui-kit-theming.mjs +6 -6
- package/mcp/data/text-search-docs.json +6 -6
- package/mcp/data/ui-config.json +6 -6
- package/mcp/package.json +1 -1
- package/package.json +1 -1
- package/styles/component-vars.scss +2 -2
- package/styles/generated/_tokens-responsive.scss +27 -3
- package/styles.css +1 -1
- package/types/4sh-ui-kit-forms-ui-editor.d.ts +5 -1
- package/types/4sh-ui-kit-forms-ui-file-upload.d.ts +2 -1
- package/types/4sh-ui-kit-informative-ui-toast.d.ts +1 -1
- package/types/4sh-ui-kit-navigation-ui-menu.d.ts +1 -1
- package/types/4sh-ui-kit-ripple.d.ts +1 -1
- package/types/4sh-ui-kit-theming.d.ts +2 -2
|
@@ -419,10 +419,10 @@ class UiSpeedDial {
|
|
|
419
419
|
queueFocusTabStop() {
|
|
420
420
|
setTimeout(() => this.focusByKey(this.tabStopKey() ?? undefined));
|
|
421
421
|
}
|
|
422
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
423
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.
|
|
422
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiSpeedDial, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
423
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: UiSpeedDial, isStandalone: true, selector: "ui-speed-dial", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: true, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, direction: { classPropertyName: "direction", publicName: "direction", isSignal: true, isRequired: false, transformFunction: null }, radius: { classPropertyName: "radius", publicName: "radius", isSignal: true, isRequired: false, transformFunction: null }, level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: false, transformFunction: null }, itemLevel: { classPropertyName: "itemLevel", publicName: "itemLevel", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: true, isRequired: false, transformFunction: null }, hideIcon: { classPropertyName: "hideIcon", publicName: "hideIcon", isSignal: true, isRequired: false, transformFunction: null }, rotateAnimation: { classPropertyName: "rotateAnimation", publicName: "rotateAnimation", isSignal: true, isRequired: false, transformFunction: null }, mask: { classPropertyName: "mask", publicName: "mask", isSignal: true, isRequired: false, transformFunction: null }, hideOnClickOutside: { classPropertyName: "hideOnClickOutside", publicName: "hideOnClickOutside", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, showTooltips: { classPropertyName: "showTooltips", publicName: "showTooltips", isSignal: true, isRequired: false, transformFunction: null }, motion: { classPropertyName: "motion", publicName: "motion", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { visible: "visibleChange", triggerClick: "triggerClick", opened: "opened", closed: "closed", itemClick: "itemClick" }, viewQueries: [{ propertyName: "triggerEl", first: true, predicate: ["trigger"], descendants: true, isSignal: true }, { propertyName: "actionEls", predicate: ["actionBtn"], descendants: true, isSignal: true }], ngImport: i0, template: "<div [class]=\"hostClasses()\" [style.--_radius]=\"radiusOverride()\">\n @if (mask() && visible()) {\n <div\n class=\"ui-speed-dial-mask\"\n [uiMotion]=\"'fade'\"\n [motionDisabled]=\"!motion()\"\n #maskMotion=\"uiMotion\"\n [animate.enter]=\"maskMotion.enter()\"\n [animate.leave]=\"maskMotion.leave()\"\n (click)=\"onMaskClick()\"\n aria-hidden=\"true\"\n ></div>\n }\n\n <ui-button\n #trigger\n class=\"ui-speed-dial-trigger\"\n [class._rotate]=\"triggerIconRotates()\"\n rounded\n iconOnly\n [level]=\"level()\"\n [variant]=\"variant()\"\n [size]=\"size()\"\n [icon]=\"triggerIcon()\"\n [ariaLabel]=\"ariaLabel()\"\n [disabled]=\"disabled()\"\n [tabindex]=\"tabindex()\"\n [buttonProps]=\"triggerProps()\"\n (buttonClick)=\"onTriggerClick($event)\"\n (keydown)=\"onTriggerKeydown($event)\"\n />\n\n @if (visible()) {\n <!-- ARIA menu pattern: keyboard delegated to the role=\"menu\" container,\n focus lives on the items (roving tabindex), same as ui-menu. -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n class=\"ui-speed-dial-list\"\n [id]=\"uid\"\n role=\"menu\"\n [attr.aria-label]=\"ariaLabel() || null\"\n (keydown)=\"onListKeydown($event)\"\n >\n @for (node of nodes(); track node.key) {\n <ui-button\n #actionBtn\n class=\"ui-speed-dial-item\"\n [style.--_stagger-index]=\"node.index\"\n [style.transform]=\"type() !== 'linear' ? arcTransform()(node.index) : null\"\n [uiMotion]=\"itemMotionPreset()\"\n [motionDisabled]=\"!motion()\"\n #itemMotion=\"uiMotion\"\n [animate.enter]=\"itemMotion.enter()\"\n [animate.leave]=\"itemMotion.leave()\"\n rounded\n iconOnly\n [level]=\"itemLevel()\"\n [variant]=\"variant()\"\n size=\"small\"\n [icon]=\"node.item.icon\"\n [ariaLabel]=\"node.item.ariaLabel || node.item.label\"\n [disabled]=\"node.item.disabled\"\n [href]=\"node.item.url\"\n [routerLink]=\"node.item.routerLink\"\n [target]=\"node.item.target\"\n [tabindex]=\"node.key === tabStopKey() ? 0 : -1\"\n [buttonProps]=\"itemProps\"\n [uiTooltip]=\"showTooltips() ? node.item.ariaLabel || node.item.label : undefined\"\n [tooltipPosition]=\"tooltipPosition()\"\n (buttonClick)=\"onItemClick($event, node)\"\n (focus)=\"onEntryFocus(node.key)\"\n />\n }\n </div>\n }\n</div>\n", styles: [".ui-speed-dial{position:relative;display:inline-flex;z-index:var(--ui-speed-dial-z-index, 10);--_radius: var(--ui-speed-dial-radius, calc(2 * var(--size-components-default)))}.ui-speed-dial-mask{position:fixed;inset:0;background-color:var(--ui-speed-dial-mask-background, var(--primitives-black-50))}.ui-speed-dial-trigger{position:relative}.ui-speed-dial-trigger ::ng-deep .ui-button-icon{transition:rotate var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-speed-dial-trigger._rotate ::ng-deep .ui-button-icon{rotate:45deg}.ui-speed-dial-list{position:absolute;display:flex;gap:var(--ui-speed-dial-item-gap, var(--units-sm));margin:0;padding:0;list-style:none;pointer-events:none}.ui-speed-dial._up .ui-speed-dial-list{bottom:calc(100% + var(--ui-speed-dial-item-gap, var(--units-sm)));left:50%;flex-direction:column-reverse;translate:-50% 0}.ui-speed-dial._down .ui-speed-dial-list{top:calc(100% + var(--ui-speed-dial-item-gap, var(--units-sm)));left:50%;flex-direction:column;translate:-50% 0}.ui-speed-dial._left .ui-speed-dial-list{right:calc(100% + var(--ui-speed-dial-item-gap, var(--units-sm)));top:50%;flex-direction:row-reverse;translate:0 -50%}.ui-speed-dial._right .ui-speed-dial-list{left:calc(100% + var(--ui-speed-dial-item-gap, var(--units-sm)));top:50%;flex-direction:row;translate:0 -50%}.ui-speed-dial._circle .ui-speed-dial-list,.ui-speed-dial._semi-circle .ui-speed-dial-list,.ui-speed-dial._quarter-circle .ui-speed-dial-list{inset:0}.ui-speed-dial._circle .ui-speed-dial-item,.ui-speed-dial._semi-circle .ui-speed-dial-item,.ui-speed-dial._quarter-circle .ui-speed-dial-item{position:absolute;top:50%;left:50%}.ui-speed-dial-item{pointer-events:auto;--ui-motion-delay: calc(var(--_stagger-index, 0) * var(--ui-speed-dial-item-delay, var(--transition-fast)))}.ui-speed-dial-item[class*=-leave]{--ui-motion-delay: 0ms}\n"], dependencies: [{ kind: "component", type: UiButton, selector: "ui-button", inputs: ["label", "ariaLabel", "type", "level", "variant", "onColor", "size", "icon", "iconPos", "iconOnly", "loading", "loadingIcon", "expanded", "rounded", "disabled", "ripple", "tabindex", "buttonProps", "iconTemplate", "loadingIconTemplate", "href", "routerLink", "target", "rel"], outputs: ["buttonClick", "buttonFocus", "buttonBlur"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "directive", type: UiTooltip, selector: "[uiTooltip]", inputs: ["uiTooltip", "tooltipPosition", "fitContent", "tooltipEvent", "tooltipDisabled", "showDelay", "hideDelay", "escape", "tooltipStyleClass", "autoHide", "hideOnEscape", "life", "showOnEllipsis", "positionTop", "positionLeft", "tooltipContext"], outputs: ["tooltipShow", "tooltipHide"], exportAs: ["uiTooltip"] }, { kind: "directive", type: UiMotion, selector: "[uiMotion]", inputs: ["uiMotion", "motionDuration", "motionDelay", "motionEasing", "motionEnterEasing", "motionLeaveEasing", "motionDistance", "motionScale", "motionDisabled", "motionOnInsert"], exportAs: ["uiMotion"] }] }); }
|
|
424
424
|
}
|
|
425
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
425
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiSpeedDial, decorators: [{
|
|
426
426
|
type: Component,
|
|
427
427
|
args: [{ selector: 'ui-speed-dial', imports: [UiButton, NgTemplateOutlet, RouterLink, UiTooltip, UiMotion], template: "<div [class]=\"hostClasses()\" [style.--_radius]=\"radiusOverride()\">\n @if (mask() && visible()) {\n <div\n class=\"ui-speed-dial-mask\"\n [uiMotion]=\"'fade'\"\n [motionDisabled]=\"!motion()\"\n #maskMotion=\"uiMotion\"\n [animate.enter]=\"maskMotion.enter()\"\n [animate.leave]=\"maskMotion.leave()\"\n (click)=\"onMaskClick()\"\n aria-hidden=\"true\"\n ></div>\n }\n\n <ui-button\n #trigger\n class=\"ui-speed-dial-trigger\"\n [class._rotate]=\"triggerIconRotates()\"\n rounded\n iconOnly\n [level]=\"level()\"\n [variant]=\"variant()\"\n [size]=\"size()\"\n [icon]=\"triggerIcon()\"\n [ariaLabel]=\"ariaLabel()\"\n [disabled]=\"disabled()\"\n [tabindex]=\"tabindex()\"\n [buttonProps]=\"triggerProps()\"\n (buttonClick)=\"onTriggerClick($event)\"\n (keydown)=\"onTriggerKeydown($event)\"\n />\n\n @if (visible()) {\n <!-- ARIA menu pattern: keyboard delegated to the role=\"menu\" container,\n focus lives on the items (roving tabindex), same as ui-menu. -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n class=\"ui-speed-dial-list\"\n [id]=\"uid\"\n role=\"menu\"\n [attr.aria-label]=\"ariaLabel() || null\"\n (keydown)=\"onListKeydown($event)\"\n >\n @for (node of nodes(); track node.key) {\n <ui-button\n #actionBtn\n class=\"ui-speed-dial-item\"\n [style.--_stagger-index]=\"node.index\"\n [style.transform]=\"type() !== 'linear' ? arcTransform()(node.index) : null\"\n [uiMotion]=\"itemMotionPreset()\"\n [motionDisabled]=\"!motion()\"\n #itemMotion=\"uiMotion\"\n [animate.enter]=\"itemMotion.enter()\"\n [animate.leave]=\"itemMotion.leave()\"\n rounded\n iconOnly\n [level]=\"itemLevel()\"\n [variant]=\"variant()\"\n size=\"small\"\n [icon]=\"node.item.icon\"\n [ariaLabel]=\"node.item.ariaLabel || node.item.label\"\n [disabled]=\"node.item.disabled\"\n [href]=\"node.item.url\"\n [routerLink]=\"node.item.routerLink\"\n [target]=\"node.item.target\"\n [tabindex]=\"node.key === tabStopKey() ? 0 : -1\"\n [buttonProps]=\"itemProps\"\n [uiTooltip]=\"showTooltips() ? node.item.ariaLabel || node.item.label : undefined\"\n [tooltipPosition]=\"tooltipPosition()\"\n (buttonClick)=\"onItemClick($event, node)\"\n (focus)=\"onEntryFocus(node.key)\"\n />\n }\n </div>\n }\n</div>\n", styles: [".ui-speed-dial{position:relative;display:inline-flex;z-index:var(--ui-speed-dial-z-index, 10);--_radius: var(--ui-speed-dial-radius, calc(2 * var(--size-components-default)))}.ui-speed-dial-mask{position:fixed;inset:0;background-color:var(--ui-speed-dial-mask-background, var(--primitives-black-50))}.ui-speed-dial-trigger{position:relative}.ui-speed-dial-trigger ::ng-deep .ui-button-icon{transition:rotate var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-speed-dial-trigger._rotate ::ng-deep .ui-button-icon{rotate:45deg}.ui-speed-dial-list{position:absolute;display:flex;gap:var(--ui-speed-dial-item-gap, var(--units-sm));margin:0;padding:0;list-style:none;pointer-events:none}.ui-speed-dial._up .ui-speed-dial-list{bottom:calc(100% + var(--ui-speed-dial-item-gap, var(--units-sm)));left:50%;flex-direction:column-reverse;translate:-50% 0}.ui-speed-dial._down .ui-speed-dial-list{top:calc(100% + var(--ui-speed-dial-item-gap, var(--units-sm)));left:50%;flex-direction:column;translate:-50% 0}.ui-speed-dial._left .ui-speed-dial-list{right:calc(100% + var(--ui-speed-dial-item-gap, var(--units-sm)));top:50%;flex-direction:row-reverse;translate:0 -50%}.ui-speed-dial._right .ui-speed-dial-list{left:calc(100% + var(--ui-speed-dial-item-gap, var(--units-sm)));top:50%;flex-direction:row;translate:0 -50%}.ui-speed-dial._circle .ui-speed-dial-list,.ui-speed-dial._semi-circle .ui-speed-dial-list,.ui-speed-dial._quarter-circle .ui-speed-dial-list{inset:0}.ui-speed-dial._circle .ui-speed-dial-item,.ui-speed-dial._semi-circle .ui-speed-dial-item,.ui-speed-dial._quarter-circle .ui-speed-dial-item{position:absolute;top:50%;left:50%}.ui-speed-dial-item{pointer-events:auto;--ui-motion-delay: calc(var(--_stagger-index, 0) * var(--ui-speed-dial-item-delay, var(--transition-fast)))}.ui-speed-dial-item[class*=-leave]{--ui-motion-delay: 0ms}\n"] }]
|
|
428
428
|
}], ctorParameters: () => [], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: true }] }], visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: false }] }, { type: i0.Output, args: ["visibleChange"] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], direction: [{ type: i0.Input, args: [{ isSignal: true, alias: "direction", required: false }] }], radius: [{ type: i0.Input, args: [{ isSignal: true, alias: "radius", required: false }] }], level: [{ type: i0.Input, args: [{ isSignal: true, alias: "level", required: false }] }], itemLevel: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemLevel", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], hideIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideIcon", required: false }] }], rotateAnimation: [{ type: i0.Input, args: [{ isSignal: true, alias: "rotateAnimation", required: false }] }], mask: [{ type: i0.Input, args: [{ isSignal: true, alias: "mask", required: false }] }], hideOnClickOutside: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideOnClickOutside", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], showTooltips: [{ type: i0.Input, args: [{ isSignal: true, alias: "showTooltips", required: false }] }], motion: [{ type: i0.Input, args: [{ isSignal: true, alias: "motion", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }], tabindex: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabindex", required: false }] }], triggerClick: [{ type: i0.Output, args: ["triggerClick"] }], opened: [{ type: i0.Output, args: ["opened"] }], closed: [{ type: i0.Output, args: ["closed"] }], itemClick: [{ type: i0.Output, args: ["itemClick"] }], triggerEl: [{ type: i0.ViewChild, args: ['trigger', { isSignal: true }] }], actionEls: [{ type: i0.ViewChildren, args: ['actionBtn', { isSignal: true }] }] } });
|
|
@@ -45,10 +45,10 @@ class UiIconFamilyScope {
|
|
|
45
45
|
this.uiIconFamily = input(/* @ts-ignore */
|
|
46
46
|
...(ngDevMode ? [undefined, { debugName: "uiIconFamily" }] : /* istanbul ignore next */ []));
|
|
47
47
|
}
|
|
48
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
49
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.
|
|
48
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiIconFamilyScope, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
49
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.7", type: UiIconFamilyScope, isStandalone: true, selector: "[uiIconFamily]", inputs: { uiIconFamily: { classPropertyName: "uiIconFamily", publicName: "uiIconFamily", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
|
|
50
50
|
}
|
|
51
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
51
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiIconFamilyScope, decorators: [{
|
|
52
52
|
type: Directive,
|
|
53
53
|
args: [{
|
|
54
54
|
selector: '[uiIconFamily]',
|
|
@@ -118,10 +118,10 @@ class UiIcon {
|
|
|
118
118
|
}
|
|
119
119
|
});
|
|
120
120
|
}
|
|
121
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
122
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.
|
|
121
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiIcon, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
122
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.7", type: UiIcon, isStandalone: true, selector: "ui-icon", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, family: { classPropertyName: "family", publicName: "family", isSignal: true, isRequired: false, transformFunction: null }, decorative: { classPropertyName: "decorative", publicName: "decorative", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<i\n [class]=\"classes()\"\n [attr.aria-hidden]=\"decorative() ? 'true' : null\"\n [attr.role]=\"decorative() ? null : 'img'\"\n [attr.aria-label]=\"decorative() ? null : ariaLabel()\"\n >{{ content() }}</i\n>\n", styles: [":host{display:inline-flex;line-height:0}.ui-icon{display:inline-flex;align-items:center;justify-content:center;min-width:var(--ui-icon-min-size, 1em);min-height:var(--ui-icon-min-size, 1em);aspect-ratio:var(--ui-icon-aspect-ratio, 1);color:inherit;font-size:var(--ui-icon-size, var(--_scale))}.ui-icon._sm{--_scale: var(--ui-icon-size-sm, var(--size-typography-icon-sm))}.ui-icon._md{--_scale: var(--ui-icon-size-md, var(--size-typography-icon-md))}.ui-icon._default{--_scale: var(--ui-icon-size-default, var(--size-typography-icon-default))}.ui-icon._lg{--_scale: var(--ui-icon-size-lg, var(--size-typography-icon-lg))}.ui-icon._xl{--_scale: var(--ui-icon-size-xl, var(--size-typography-icon-xl))}\n"] }); }
|
|
123
123
|
}
|
|
124
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
124
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiIcon, decorators: [{
|
|
125
125
|
type: Component,
|
|
126
126
|
args: [{ selector: 'ui-icon', template: "<i\n [class]=\"classes()\"\n [attr.aria-hidden]=\"decorative() ? 'true' : null\"\n [attr.role]=\"decorative() ? null : 'img'\"\n [attr.aria-label]=\"decorative() ? null : ariaLabel()\"\n >{{ content() }}</i\n>\n", styles: [":host{display:inline-flex;line-height:0}.ui-icon{display:inline-flex;align-items:center;justify-content:center;min-width:var(--ui-icon-min-size, 1em);min-height:var(--ui-icon-min-size, 1em);aspect-ratio:var(--ui-icon-aspect-ratio, 1);color:inherit;font-size:var(--ui-icon-size, var(--_scale))}.ui-icon._sm{--_scale: var(--ui-icon-size-sm, var(--size-typography-icon-sm))}.ui-icon._md{--_scale: var(--ui-icon-size-md, var(--size-typography-icon-md))}.ui-icon._default{--_scale: var(--ui-icon-size-default, var(--size-typography-icon-default))}.ui-icon._lg{--_scale: var(--ui-icon-size-lg, var(--size-typography-icon-lg))}.ui-icon._xl{--_scale: var(--ui-icon-size-xl, var(--size-typography-icon-xl))}\n"] }]
|
|
127
127
|
}], ctorParameters: () => [], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: true }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], family: [{ type: i0.Input, args: [{ isSignal: true, alias: "family", required: false }] }], decorative: [{ type: i0.Input, args: [{ isSignal: true, alias: "decorative", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
|
|
@@ -198,10 +198,10 @@ class UiImagePreview {
|
|
|
198
198
|
this.panY.set(0);
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
202
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.
|
|
201
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiImagePreview, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
202
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: UiImagePreview, isStandalone: true, selector: "ui-image-preview", inputs: { src: { classPropertyName: "src", publicName: "src", isSignal: true, isRequired: true, transformFunction: null }, alt: { classPropertyName: "alt", publicName: "alt", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, zoomStep: { classPropertyName: "zoomStep", publicName: "zoomStep", isSignal: true, isRequired: false, transformFunction: null }, minZoom: { classPropertyName: "minZoom", publicName: "minZoom", isSignal: true, isRequired: false, transformFunction: null }, maxZoom: { classPropertyName: "maxZoom", publicName: "maxZoom", isSignal: true, isRequired: false, transformFunction: null }, downloadable: { classPropertyName: "downloadable", publicName: "downloadable", isSignal: true, isRequired: false, transformFunction: null }, downloadName: { classPropertyName: "downloadName", publicName: "downloadName", isSignal: true, isRequired: false, transformFunction: null }, dismissableMask: { classPropertyName: "dismissableMask", publicName: "dismissableMask", isSignal: true, isRequired: false, transformFunction: null }, zoomInAriaLabel: { classPropertyName: "zoomInAriaLabel", publicName: "zoomInAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, zoomOutAriaLabel: { classPropertyName: "zoomOutAriaLabel", publicName: "zoomOutAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, rotateLeftAriaLabel: { classPropertyName: "rotateLeftAriaLabel", publicName: "rotateLeftAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, rotateRightAriaLabel: { classPropertyName: "rotateRightAriaLabel", publicName: "rotateRightAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, resetAriaLabel: { classPropertyName: "resetAriaLabel", publicName: "resetAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, downloadAriaLabel: { classPropertyName: "downloadAriaLabel", publicName: "downloadAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, closeAriaLabel: { classPropertyName: "closeAriaLabel", publicName: "closeAriaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { closed: "closed" }, viewQueries: [{ propertyName: "stage", first: true, predicate: ["stage"], descendants: true, isSignal: true }], ngImport: i0, template: "<!-- The host is the mask; this is the dialog that owns the focus, the keyboard\n shortcuts and the aria wiring. -->\n<div\n class=\"ui-image-preview\"\n role=\"dialog\"\n aria-modal=\"true\"\n [attr.aria-label]=\"ariaLabel() || null\"\n tabindex=\"-1\"\n [cdkTrapFocus]=\"true\"\n [cdkTrapFocusAutoCapture]=\"true\"\n (keydown)=\"onKeydown($event)\"\n>\n <!-- Unavailable actions are `aria-disabled`, not `disabled`: a real `disabled`\n drops the focus to the body the moment the button that holds it hits a\n bound, and `Escape` then no longer reaches the dialog. The handlers clamp,\n so a press at the bound is a no-op. -->\n <div class=\"ui-image-preview-toolbar\">\n <button\n type=\"button\"\n class=\"ui-image-preview-action\"\n [attr.aria-label]=\"zoomOutAriaLabel() || null\"\n [attr.aria-disabled]=\"!canZoomOut() || null\"\n (click)=\"zoomOut()\"\n >\n <ui-icon name=\"magnifying-glass-minus\" size=\"sm\" />\n </button>\n\n <button\n type=\"button\"\n class=\"ui-image-preview-action\"\n [attr.aria-label]=\"zoomInAriaLabel() || null\"\n [attr.aria-disabled]=\"!canZoomIn() || null\"\n (click)=\"zoomIn()\"\n >\n <ui-icon name=\"magnifying-glass-plus\" size=\"sm\" />\n </button>\n\n <button\n type=\"button\"\n class=\"ui-image-preview-action\"\n [attr.aria-label]=\"rotateLeftAriaLabel() || null\"\n (click)=\"rotateLeft()\"\n >\n <ui-icon name=\"rotate-left\" size=\"sm\" />\n </button>\n\n <button\n type=\"button\"\n class=\"ui-image-preview-action\"\n [attr.aria-label]=\"rotateRightAriaLabel() || null\"\n (click)=\"rotateRight()\"\n >\n <ui-icon name=\"rotate-right\" size=\"sm\" />\n </button>\n\n <button\n type=\"button\"\n class=\"ui-image-preview-action\"\n [attr.aria-label]=\"resetAriaLabel() || null\"\n [attr.aria-disabled]=\"isPristine() || null\"\n (click)=\"reset()\"\n >\n <ui-icon name=\"arrows-rotate\" size=\"sm\" />\n </button>\n\n @if (downloadable()) {\n <a\n class=\"ui-image-preview-action\"\n [href]=\"src()\"\n [attr.download]=\"downloadName() || ''\"\n [attr.aria-label]=\"downloadAriaLabel() || null\"\n target=\"_blank\"\n rel=\"noopener\"\n >\n <ui-icon name=\"download\" size=\"sm\" />\n </a>\n }\n\n <button\n type=\"button\"\n class=\"ui-image-preview-action\"\n [attr.aria-label]=\"closeAriaLabel() || null\"\n (click)=\"close()\"\n >\n <ui-icon name=\"xmark\" size=\"sm\" />\n </button>\n </div>\n\n <!-- The stage is the dismiss-on-outside target: a press that lands on it, and\n not on the image, closes. Escape is its keyboard equivalent, which is why\n there is no key handler here. -->\n <div\n #stage\n class=\"ui-image-preview-stage\"\n (pointerdown)=\"onStagePointerDown($event)\"\n (wheel)=\"onWheel($event)\"\n >\n <img\n class=\"ui-image-preview-media\"\n [class._pannable]=\"canPan()\"\n [class._rotated]=\"isQuarterTurned()\"\n [src]=\"src()\"\n [alt]=\"alt()\"\n [style.transform]=\"transform()\"\n (pointerdown)=\"onPointerDown($event)\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerup)=\"onPointerUp($event)\"\n (pointercancel)=\"onPointerUp($event)\"\n draggable=\"false\"\n />\n </div>\n</div>\n", styles: [":host{position:fixed;inset:0;z-index:var(--ui-image-preview-z-index, 1100);display:block;background-color:var(--ui-image-preview-mask-background, var(--primitives-black-80))}.ui-image-preview{display:flex;flex-direction:column;gap:var(--ui-image-preview-gap, var(--units-md));box-sizing:border-box;width:100%;height:100%;padding:var(--ui-image-preview-padding, var(--units-lg));outline:none}.ui-image-preview-toolbar{flex:0 0 auto;display:flex;flex-wrap:wrap;align-self:center;justify-content:center;gap:var(--ui-image-preview-toolbar-gap, var(--units-2xs));padding:var(--ui-image-preview-toolbar-padding, var(--units-2xs));border-radius:var(--ui-image-preview-toolbar-radius, var(--radius-full));background-color:var(--ui-image-preview-toolbar-background, var(--primitives-black-50))}.ui-image-preview-action{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:var(--ui-image-preview-action-size, 2.25rem);height:var(--ui-image-preview-action-size, 2.25rem);padding:0;border:none;border-radius:var(--ui-image-preview-action-radius, var(--radius-full));background:transparent;color:var(--ui-image-preview-action-color, var(--primitives-white-base));line-height:0;text-decoration:none;cursor:pointer;transition:background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-image-preview-action:hover:not([aria-disabled]){background-color:var(--ui-image-preview-action-surface-hover, var(--primitives-white-20))}.ui-image-preview-action:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-image-preview-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-image-preview-action-focus-ring-color, var(--global-border-focus))}.ui-image-preview-action[aria-disabled=true]{opacity:var(--ui-image-preview-action-opacity-disabled, .4);cursor:not-allowed}@media(prefers-reduced-motion:reduce){.ui-image-preview-action{transition-duration:.01ms}}:root[data-motion=off] .ui-image-preview-action{transition-duration:.01ms}.ui-image-preview-stage{flex:1 1 auto;display:flex;align-items:center;justify-content:center;min-height:0;overflow:hidden;container-type:size}.ui-image-preview-media{max-width:var(--ui-image-preview-media-max-width, 100%);max-height:var(--ui-image-preview-media-max-height, 100%);box-shadow:var(--ui-image-preview-media-shadow, var(--shadow-default-lg));object-fit:contain;transform-origin:center;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-user-drag:none}.ui-image-preview-media._rotated{max-width:var(--ui-image-preview-media-max-width-rotated, 100cqh);max-height:var(--ui-image-preview-media-max-height-rotated, 100cqw)}.ui-image-preview-media._pannable{cursor:grab}.ui-image-preview-media._pannable:active{cursor:grabbing}\n"], dependencies: [{ kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i1.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }] }); }
|
|
203
203
|
}
|
|
204
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
204
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiImagePreview, decorators: [{
|
|
205
205
|
type: Component,
|
|
206
206
|
args: [{ selector: 'ui-image-preview', imports: [A11yModule, UiIcon], template: "<!-- The host is the mask; this is the dialog that owns the focus, the keyboard\n shortcuts and the aria wiring. -->\n<div\n class=\"ui-image-preview\"\n role=\"dialog\"\n aria-modal=\"true\"\n [attr.aria-label]=\"ariaLabel() || null\"\n tabindex=\"-1\"\n [cdkTrapFocus]=\"true\"\n [cdkTrapFocusAutoCapture]=\"true\"\n (keydown)=\"onKeydown($event)\"\n>\n <!-- Unavailable actions are `aria-disabled`, not `disabled`: a real `disabled`\n drops the focus to the body the moment the button that holds it hits a\n bound, and `Escape` then no longer reaches the dialog. The handlers clamp,\n so a press at the bound is a no-op. -->\n <div class=\"ui-image-preview-toolbar\">\n <button\n type=\"button\"\n class=\"ui-image-preview-action\"\n [attr.aria-label]=\"zoomOutAriaLabel() || null\"\n [attr.aria-disabled]=\"!canZoomOut() || null\"\n (click)=\"zoomOut()\"\n >\n <ui-icon name=\"magnifying-glass-minus\" size=\"sm\" />\n </button>\n\n <button\n type=\"button\"\n class=\"ui-image-preview-action\"\n [attr.aria-label]=\"zoomInAriaLabel() || null\"\n [attr.aria-disabled]=\"!canZoomIn() || null\"\n (click)=\"zoomIn()\"\n >\n <ui-icon name=\"magnifying-glass-plus\" size=\"sm\" />\n </button>\n\n <button\n type=\"button\"\n class=\"ui-image-preview-action\"\n [attr.aria-label]=\"rotateLeftAriaLabel() || null\"\n (click)=\"rotateLeft()\"\n >\n <ui-icon name=\"rotate-left\" size=\"sm\" />\n </button>\n\n <button\n type=\"button\"\n class=\"ui-image-preview-action\"\n [attr.aria-label]=\"rotateRightAriaLabel() || null\"\n (click)=\"rotateRight()\"\n >\n <ui-icon name=\"rotate-right\" size=\"sm\" />\n </button>\n\n <button\n type=\"button\"\n class=\"ui-image-preview-action\"\n [attr.aria-label]=\"resetAriaLabel() || null\"\n [attr.aria-disabled]=\"isPristine() || null\"\n (click)=\"reset()\"\n >\n <ui-icon name=\"arrows-rotate\" size=\"sm\" />\n </button>\n\n @if (downloadable()) {\n <a\n class=\"ui-image-preview-action\"\n [href]=\"src()\"\n [attr.download]=\"downloadName() || ''\"\n [attr.aria-label]=\"downloadAriaLabel() || null\"\n target=\"_blank\"\n rel=\"noopener\"\n >\n <ui-icon name=\"download\" size=\"sm\" />\n </a>\n }\n\n <button\n type=\"button\"\n class=\"ui-image-preview-action\"\n [attr.aria-label]=\"closeAriaLabel() || null\"\n (click)=\"close()\"\n >\n <ui-icon name=\"xmark\" size=\"sm\" />\n </button>\n </div>\n\n <!-- The stage is the dismiss-on-outside target: a press that lands on it, and\n not on the image, closes. Escape is its keyboard equivalent, which is why\n there is no key handler here. -->\n <div\n #stage\n class=\"ui-image-preview-stage\"\n (pointerdown)=\"onStagePointerDown($event)\"\n (wheel)=\"onWheel($event)\"\n >\n <img\n class=\"ui-image-preview-media\"\n [class._pannable]=\"canPan()\"\n [class._rotated]=\"isQuarterTurned()\"\n [src]=\"src()\"\n [alt]=\"alt()\"\n [style.transform]=\"transform()\"\n (pointerdown)=\"onPointerDown($event)\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerup)=\"onPointerUp($event)\"\n (pointercancel)=\"onPointerUp($event)\"\n draggable=\"false\"\n />\n </div>\n</div>\n", styles: [":host{position:fixed;inset:0;z-index:var(--ui-image-preview-z-index, 1100);display:block;background-color:var(--ui-image-preview-mask-background, var(--primitives-black-80))}.ui-image-preview{display:flex;flex-direction:column;gap:var(--ui-image-preview-gap, var(--units-md));box-sizing:border-box;width:100%;height:100%;padding:var(--ui-image-preview-padding, var(--units-lg));outline:none}.ui-image-preview-toolbar{flex:0 0 auto;display:flex;flex-wrap:wrap;align-self:center;justify-content:center;gap:var(--ui-image-preview-toolbar-gap, var(--units-2xs));padding:var(--ui-image-preview-toolbar-padding, var(--units-2xs));border-radius:var(--ui-image-preview-toolbar-radius, var(--radius-full));background-color:var(--ui-image-preview-toolbar-background, var(--primitives-black-50))}.ui-image-preview-action{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:var(--ui-image-preview-action-size, 2.25rem);height:var(--ui-image-preview-action-size, 2.25rem);padding:0;border:none;border-radius:var(--ui-image-preview-action-radius, var(--radius-full));background:transparent;color:var(--ui-image-preview-action-color, var(--primitives-white-base));line-height:0;text-decoration:none;cursor:pointer;transition:background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-image-preview-action:hover:not([aria-disabled]){background-color:var(--ui-image-preview-action-surface-hover, var(--primitives-white-20))}.ui-image-preview-action:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-image-preview-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-image-preview-action-focus-ring-color, var(--global-border-focus))}.ui-image-preview-action[aria-disabled=true]{opacity:var(--ui-image-preview-action-opacity-disabled, .4);cursor:not-allowed}@media(prefers-reduced-motion:reduce){.ui-image-preview-action{transition-duration:.01ms}}:root[data-motion=off] .ui-image-preview-action{transition-duration:.01ms}.ui-image-preview-stage{flex:1 1 auto;display:flex;align-items:center;justify-content:center;min-height:0;overflow:hidden;container-type:size}.ui-image-preview-media{max-width:var(--ui-image-preview-media-max-width, 100%);max-height:var(--ui-image-preview-media-max-height, 100%);box-shadow:var(--ui-image-preview-media-shadow, var(--shadow-default-lg));object-fit:contain;transform-origin:center;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-user-drag:none}.ui-image-preview-media._rotated{max-width:var(--ui-image-preview-media-max-width-rotated, 100cqh);max-height:var(--ui-image-preview-media-max-height-rotated, 100cqw)}.ui-image-preview-media._pannable{cursor:grab}.ui-image-preview-media._pannable:active{cursor:grabbing}\n"] }]
|
|
207
207
|
}], ctorParameters: () => [], propDecorators: { src: [{ type: i0.Input, args: [{ isSignal: true, alias: "src", required: true }] }], alt: [{ type: i0.Input, args: [{ isSignal: true, alias: "alt", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], zoomStep: [{ type: i0.Input, args: [{ isSignal: true, alias: "zoomStep", required: false }] }], minZoom: [{ type: i0.Input, args: [{ isSignal: true, alias: "minZoom", required: false }] }], maxZoom: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxZoom", required: false }] }], downloadable: [{ type: i0.Input, args: [{ isSignal: true, alias: "downloadable", required: false }] }], downloadName: [{ type: i0.Input, args: [{ isSignal: true, alias: "downloadName", required: false }] }], dismissableMask: [{ type: i0.Input, args: [{ isSignal: true, alias: "dismissableMask", required: false }] }], zoomInAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "zoomInAriaLabel", required: false }] }], zoomOutAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "zoomOutAriaLabel", required: false }] }], rotateLeftAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "rotateLeftAriaLabel", required: false }] }], rotateRightAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "rotateRightAriaLabel", required: false }] }], resetAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "resetAriaLabel", required: false }] }], downloadAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "downloadAriaLabel", required: false }] }], closeAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeAriaLabel", required: false }] }], closed: [{ type: i0.Output, args: ["closed"] }], stage: [{ type: i0.ViewChild, args: ['stage', { isSignal: true }] }] } });
|
|
@@ -606,10 +606,10 @@ class UiImage {
|
|
|
606
606
|
}
|
|
607
607
|
return '';
|
|
608
608
|
}
|
|
609
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
610
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: UiImage, isStandalone: true, selector: "ui-image", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, src: { classPropertyName: "src", publicName: "src", isSignal: true, isRequired: false, transformFunction: null }, fallback: { classPropertyName: "fallback", publicName: "fallback", isSignal: true, isRequired: false, transformFunction: null }, priority: { classPropertyName: "priority", publicName: "priority", isSignal: true, isRequired: false, transformFunction: null }, fill: { classPropertyName: "fill", publicName: "fill", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, widthUnit: { classPropertyName: "widthUnit", publicName: "widthUnit", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, heightUnit: { classPropertyName: "heightUnit", publicName: "heightUnit", isSignal: true, isRequired: false, transformFunction: null }, alt: { classPropertyName: "alt", publicName: "alt", isSignal: true, isRequired: false, transformFunction: null }, secured: { classPropertyName: "secured", publicName: "secured", isSignal: true, isRequired: false, transformFunction: null }, withCredentials: { classPropertyName: "withCredentials", publicName: "withCredentials", isSignal: true, isRequired: false, transformFunction: null }, loadingLabel: { classPropertyName: "loadingLabel", publicName: "loadingLabel", isSignal: true, isRequired: false, transformFunction: null }, loadingAriaLabel: { classPropertyName: "loadingAriaLabel", publicName: "loadingAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, preview: { classPropertyName: "preview", publicName: "preview", isSignal: true, isRequired: false, transformFunction: null }, previewVisible: { classPropertyName: "previewVisible", publicName: "previewVisible", isSignal: true, isRequired: false, transformFunction: null }, previewAriaLabel: { classPropertyName: "previewAriaLabel", publicName: "previewAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, previewDialogAriaLabel: { classPropertyName: "previewDialogAriaLabel", publicName: "previewDialogAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, zoomStep: { classPropertyName: "zoomStep", publicName: "zoomStep", isSignal: true, isRequired: false, transformFunction: null }, minZoom: { classPropertyName: "minZoom", publicName: "minZoom", isSignal: true, isRequired: false, transformFunction: null }, maxZoom: { classPropertyName: "maxZoom", publicName: "maxZoom", isSignal: true, isRequired: false, transformFunction: null }, downloadable: { classPropertyName: "downloadable", publicName: "downloadable", isSignal: true, isRequired: false, transformFunction: null }, downloadName: { classPropertyName: "downloadName", publicName: "downloadName", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { previewVisible: "previewVisibleChange", loadFailed: "loadFailed" }, queries: [{ propertyName: "previewIndicator", first: true, predicate: ["previewIndicator"], descendants: true, isSignal: true }], ngImport: i0, template: "<!-- The media is written once and rendered either bare, or inside the preview\n trigger \u2014 a `<button>` cannot wrap three `@else if` branches otherwise. -->\n<ng-template #media>\n @if (securedLoading()) {\n <div\n class=\"ui-image-placeholder _loading\"\n [style.width]=\"cssWidth()\"\n [style.height]=\"cssHeight()\"\n >\n <ui-spinner size=\"small\" [label]=\"loadingLabel()\" [ariaLabel]=\"loadingAriaLabel()\" />\n </div>\n } @else if (showPlaceholder()) {\n <div\n class=\"ui-image-placeholder\"\n [style.width]=\"cssWidth()\"\n [style.height]=\"cssHeight()\"\n [attr.role]=\"alt() ? 'img' : null\"\n [attr.aria-label]=\"alt() || null\"\n [attr.aria-hidden]=\"alt() ? null : true\"\n >\n <ui-icon name=\"image\" />\n </div>\n } @else if (isInlineSvg() && !primaryFailed()) {\n <!--\n EXCEPTION JUSTIFI\u00C9E (FSHSP-177) : le SVG local est inlin\u00E9 pour h\u00E9riter du CSS\n (currentColor, th\u00E8me) \u2014 un <img> ne le permet pas. La valeur est assainie par\n sanitizeInlineSvg() puis pass\u00E9e \u00E0 bypassSecurityTrustHtml() dans ui-image.ts.\n Registre : docs/SECURITY-PRACTICES.md.\n Une paire disable/enable et non un disable-next-line : un commentaire HTML ne\n peut pas se glisser \u00E0 l'int\u00E9rieur d'une balise ouvrante.\n -->\n <!-- eslint-disable no-restricted-syntax -->\n <div\n class=\"ui-image-svg\"\n [style.width]=\"cssWidth()\"\n [style.height]=\"cssHeight()\"\n [innerHTML]=\"svgContent()\"\n ></div>\n <!-- eslint-enable no-restricted-syntax -->\n } @else if (isRawSrc()) {\n <!-- `blob:` / `data:` : NgOptimizedImage refuses both, a plain <img> shows them. -->\n <img\n class=\"ui-image\"\n [src]=\"displayedSrc()!\"\n [alt]=\"alt() || ''\"\n [style.width]=\"!fill() ? cssWidth() : null\"\n [style.height]=\"!fill() ? cssHeight() : null\"\n [attr.loading]=\"priority() ? null : 'lazy'\"\n [attr.fetchpriority]=\"priority() ? 'high' : null\"\n (error)=\"onImgError()\"\n />\n } @else {\n <img\n class=\"ui-image\"\n [ngSrc]=\"displayedSrc()!\"\n [alt]=\"alt() || ''\"\n [width]=\"!fill() ? width() : null\"\n [height]=\"!fill() ? (height() ? height() : width()) : null\"\n [fill]=\"fill()\"\n [priority]=\"priority()\"\n (error)=\"onImgError()\"\n />\n }\n</ng-template>\n\n@if (canPreview()) {\n <button\n type=\"button\"\n class=\"ui-image-trigger\"\n aria-haspopup=\"dialog\"\n [attr.aria-label]=\"previewAriaLabel() || null\"\n (click)=\"previewVisible.set(true)\"\n >\n <ng-container [ngTemplateOutlet]=\"media\" />\n\n <!-- Decorative: the affordance is already carried by the button's role and\n its accessible name. -->\n <span class=\"ui-image-indicator\" aria-hidden=\"true\">\n @if (previewIndicator(); as indicator) {\n <ng-container [ngTemplateOutlet]=\"indicator\" />\n } @else {\n <ui-icon name=\"magnifying-glass-plus\" />\n }\n </span>\n </button>\n} @else {\n <ng-container [ngTemplateOutlet]=\"media\" />\n}\n\n@if (previewVisible()) {\n <ui-image-preview\n [src]=\"displayedSrc()!\"\n [alt]=\"alt() || ''\"\n [ariaLabel]=\"previewDialogAriaLabel()\"\n [zoomStep]=\"zoomStep()\"\n [minZoom]=\"minZoom()\"\n [maxZoom]=\"maxZoom()\"\n [downloadable]=\"downloadable()\"\n [downloadName]=\"downloadName()\"\n (closed)=\"previewVisible.set(false)\"\n [uiMotion]=\"'fade'\"\n #previewMotion=\"uiMotion\"\n [animate.enter]=\"previewMotion.enter()\"\n [animate.leave]=\"previewMotion.leave()\"\n />\n}\n", styles: ["@charset \"UTF-8\";:host{display:flex;align-items:center;justify-content:center}.ui-image{object-fit:var(--ui-image-object-fit, contain)}.ui-image-svg{display:flex;width:100%}.ui-image-svg ::ng-deep svg{width:100%;height:100%}.ui-image-placeholder{display:flex;align-items:center;justify-content:center;min-width:var(--ui-image-placeholder-min-width, var(--units-xl));min-height:var(--ui-image-placeholder-min-height, var(--units-xl));border-radius:var(--ui-image-placeholder-radius, var(--radius-default));background:var(--ui-image-placeholder-surface, var(--global-background-muted));color:var(--ui-image-placeholder-color, var(--global-text-muted))}.ui-image-trigger{position:relative;display:inline-flex;padding:0;border:none;border-radius:var(--ui-image-trigger-radius, 0);background:none;line-height:0;cursor:pointer}.ui-image-trigger:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-image-trigger-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-image-trigger-focus-ring-color, var(--global-border-focus))}.ui-image-trigger:hover .ui-image-indicator,.ui-image-trigger:focus-visible .ui-image-indicator{opacity:1}.ui-image-indicator{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;border-radius:inherit;background:var(--ui-image-indicator-background, var(--primitives-black-50));color:var(--ui-image-indicator-color, var(--primitives-white-base));font-size:var(--ui-image-indicator-font-size, var(--size-typography-text-lg));line-height:1;opacity:0;transition:opacity var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}@media(prefers-reduced-motion:reduce){.ui-image-indicator{transition-duration:.01ms}}:root[data-motion=off] .ui-image-indicator{transition-duration:.01ms}\n"], dependencies: [{ kind: "directive", type: NgOptimizedImage, selector: "img[ngSrc]", inputs: ["ngSrc", "ngSrcset", "sizes", "width", "height", "decoding", "loading", "priority", "loaderParams", "disableOptimizedSrcset", "fill", "placeholder", "placeholderConfig", "src", "srcset"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }, { kind: "component", type: UiSpinner, selector: "ui-spinner", inputs: ["size", "orientation", "label", "ariaLabel", "spinnerTemplate", "image", "imageAlt", "icon", "strokeWidth", "fill", "animationDuration", "delay"] }, { kind: "directive", type: UiMotion, selector: "[uiMotion]", inputs: ["uiMotion", "motionDuration", "motionDelay", "motionEasing", "motionEnterEasing", "motionLeaveEasing", "motionDistance", "motionScale", "motionDisabled", "motionOnInsert"], exportAs: ["uiMotion"] }, { kind: "component", type: UiImagePreview, selector: "ui-image-preview", inputs: ["src", "alt", "ariaLabel", "zoomStep", "minZoom", "maxZoom", "downloadable", "downloadName", "dismissableMask", "zoomInAriaLabel", "zoomOutAriaLabel", "rotateLeftAriaLabel", "rotateRightAriaLabel", "resetAriaLabel", "downloadAriaLabel", "closeAriaLabel"], outputs: ["closed"] }] }); }
|
|
609
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiImage, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
610
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: UiImage, isStandalone: true, selector: "ui-image", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, src: { classPropertyName: "src", publicName: "src", isSignal: true, isRequired: false, transformFunction: null }, fallback: { classPropertyName: "fallback", publicName: "fallback", isSignal: true, isRequired: false, transformFunction: null }, priority: { classPropertyName: "priority", publicName: "priority", isSignal: true, isRequired: false, transformFunction: null }, fill: { classPropertyName: "fill", publicName: "fill", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, widthUnit: { classPropertyName: "widthUnit", publicName: "widthUnit", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, heightUnit: { classPropertyName: "heightUnit", publicName: "heightUnit", isSignal: true, isRequired: false, transformFunction: null }, alt: { classPropertyName: "alt", publicName: "alt", isSignal: true, isRequired: false, transformFunction: null }, secured: { classPropertyName: "secured", publicName: "secured", isSignal: true, isRequired: false, transformFunction: null }, withCredentials: { classPropertyName: "withCredentials", publicName: "withCredentials", isSignal: true, isRequired: false, transformFunction: null }, loadingLabel: { classPropertyName: "loadingLabel", publicName: "loadingLabel", isSignal: true, isRequired: false, transformFunction: null }, loadingAriaLabel: { classPropertyName: "loadingAriaLabel", publicName: "loadingAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, preview: { classPropertyName: "preview", publicName: "preview", isSignal: true, isRequired: false, transformFunction: null }, previewVisible: { classPropertyName: "previewVisible", publicName: "previewVisible", isSignal: true, isRequired: false, transformFunction: null }, previewAriaLabel: { classPropertyName: "previewAriaLabel", publicName: "previewAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, previewDialogAriaLabel: { classPropertyName: "previewDialogAriaLabel", publicName: "previewDialogAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, zoomStep: { classPropertyName: "zoomStep", publicName: "zoomStep", isSignal: true, isRequired: false, transformFunction: null }, minZoom: { classPropertyName: "minZoom", publicName: "minZoom", isSignal: true, isRequired: false, transformFunction: null }, maxZoom: { classPropertyName: "maxZoom", publicName: "maxZoom", isSignal: true, isRequired: false, transformFunction: null }, downloadable: { classPropertyName: "downloadable", publicName: "downloadable", isSignal: true, isRequired: false, transformFunction: null }, downloadName: { classPropertyName: "downloadName", publicName: "downloadName", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { previewVisible: "previewVisibleChange", loadFailed: "loadFailed" }, queries: [{ propertyName: "previewIndicator", first: true, predicate: ["previewIndicator"], descendants: true, isSignal: true }], ngImport: i0, template: "<!-- The media is written once and rendered either bare, or inside the preview\n trigger \u2014 a `<button>` cannot wrap three `@else if` branches otherwise. -->\n<ng-template #media>\n @if (securedLoading()) {\n <div\n class=\"ui-image-placeholder _loading\"\n [style.width]=\"cssWidth()\"\n [style.height]=\"cssHeight()\"\n >\n <ui-spinner size=\"small\" [label]=\"loadingLabel()\" [ariaLabel]=\"loadingAriaLabel()\" />\n </div>\n } @else if (showPlaceholder()) {\n <div\n class=\"ui-image-placeholder\"\n [style.width]=\"cssWidth()\"\n [style.height]=\"cssHeight()\"\n [attr.role]=\"alt() ? 'img' : null\"\n [attr.aria-label]=\"alt() || null\"\n [attr.aria-hidden]=\"alt() ? null : true\"\n >\n <ui-icon name=\"image\" />\n </div>\n } @else if (isInlineSvg() && !primaryFailed()) {\n <!--\n EXCEPTION JUSTIFI\u00C9E (FSHSP-177) : le SVG local est inlin\u00E9 pour h\u00E9riter du CSS\n (currentColor, th\u00E8me) \u2014 un <img> ne le permet pas. La valeur est assainie par\n sanitizeInlineSvg() puis pass\u00E9e \u00E0 bypassSecurityTrustHtml() dans ui-image.ts.\n Registre : docs/SECURITY-PRACTICES.md.\n Une paire disable/enable et non un disable-next-line : un commentaire HTML ne\n peut pas se glisser \u00E0 l'int\u00E9rieur d'une balise ouvrante.\n -->\n <!-- eslint-disable no-restricted-syntax -->\n <div\n class=\"ui-image-svg\"\n [style.width]=\"cssWidth()\"\n [style.height]=\"cssHeight()\"\n [innerHTML]=\"svgContent()\"\n ></div>\n <!-- eslint-enable no-restricted-syntax -->\n } @else if (isRawSrc()) {\n <!-- `blob:` / `data:` : NgOptimizedImage refuses both, a plain <img> shows them. -->\n <img\n class=\"ui-image\"\n [src]=\"displayedSrc()!\"\n [alt]=\"alt() || ''\"\n [style.width]=\"!fill() ? cssWidth() : null\"\n [style.height]=\"!fill() ? cssHeight() : null\"\n [attr.loading]=\"priority() ? null : 'lazy'\"\n [attr.fetchpriority]=\"priority() ? 'high' : null\"\n (error)=\"onImgError()\"\n />\n } @else {\n <img\n class=\"ui-image\"\n [ngSrc]=\"displayedSrc()!\"\n [alt]=\"alt() || ''\"\n [width]=\"!fill() ? width() : null\"\n [height]=\"!fill() ? (height() ? height() : width()) : null\"\n [fill]=\"fill()\"\n [priority]=\"priority()\"\n (error)=\"onImgError()\"\n />\n }\n</ng-template>\n\n@if (canPreview()) {\n <button\n type=\"button\"\n class=\"ui-image-trigger\"\n aria-haspopup=\"dialog\"\n [attr.aria-label]=\"previewAriaLabel() || null\"\n (click)=\"previewVisible.set(true)\"\n >\n <ng-container [ngTemplateOutlet]=\"media\" />\n\n <!-- Decorative: the affordance is already carried by the button's role and\n its accessible name. -->\n <span class=\"ui-image-indicator\" aria-hidden=\"true\">\n @if (previewIndicator(); as indicator) {\n <ng-container [ngTemplateOutlet]=\"indicator\" />\n } @else {\n <ui-icon name=\"magnifying-glass-plus\" />\n }\n </span>\n </button>\n} @else {\n <ng-container [ngTemplateOutlet]=\"media\" />\n}\n\n@if (previewVisible()) {\n <ui-image-preview\n [src]=\"displayedSrc()!\"\n [alt]=\"alt() || ''\"\n [ariaLabel]=\"previewDialogAriaLabel()\"\n [zoomStep]=\"zoomStep()\"\n [minZoom]=\"minZoom()\"\n [maxZoom]=\"maxZoom()\"\n [downloadable]=\"downloadable()\"\n [downloadName]=\"downloadName()\"\n (closed)=\"previewVisible.set(false)\"\n [uiMotion]=\"'fade'\"\n #previewMotion=\"uiMotion\"\n [animate.enter]=\"previewMotion.enter()\"\n [animate.leave]=\"previewMotion.leave()\"\n />\n}\n", styles: ["@charset \"UTF-8\";:host{display:flex;align-items:center;justify-content:center}.ui-image{object-fit:var(--ui-image-object-fit, contain)}.ui-image-svg{display:flex;width:100%}.ui-image-svg ::ng-deep svg{width:100%;height:100%}.ui-image-placeholder{display:flex;align-items:center;justify-content:center;min-width:var(--ui-image-placeholder-min-width, var(--units-xl));min-height:var(--ui-image-placeholder-min-height, var(--units-xl));border-radius:var(--ui-image-placeholder-radius, var(--radius-default));background:var(--ui-image-placeholder-surface, var(--global-background-muted));color:var(--ui-image-placeholder-color, var(--global-text-muted))}.ui-image-trigger{position:relative;display:inline-flex;padding:0;border:none;border-radius:var(--ui-image-trigger-radius, 0);background:none;line-height:0;cursor:pointer}.ui-image-trigger:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-image-trigger-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-image-trigger-focus-ring-color, var(--global-border-focus))}.ui-image-trigger:hover .ui-image-indicator,.ui-image-trigger:focus-visible .ui-image-indicator{opacity:1}.ui-image-indicator{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;border-radius:inherit;background:var(--ui-image-indicator-background, var(--primitives-black-50));color:var(--ui-image-indicator-color, var(--primitives-white-base));font-size:var(--ui-image-indicator-font-size, var(--size-typography-text-lg));line-height:1;opacity:0;transition:opacity var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}@media(prefers-reduced-motion:reduce){.ui-image-indicator{transition-duration:.01ms}}:root[data-motion=off] .ui-image-indicator{transition-duration:.01ms}\n"], dependencies: [{ kind: "directive", type: NgOptimizedImage, selector: "img[ngSrc]", inputs: ["ngSrc", "ngSrcset", "sizes", "width", "height", "decoding", "loading", "priority", "loaderParams", "disableOptimizedSrcset", "fill", "placeholder", "placeholderConfig", "src", "srcset"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }, { kind: "component", type: UiSpinner, selector: "ui-spinner", inputs: ["size", "orientation", "label", "ariaLabel", "spinnerTemplate", "image", "imageAlt", "icon", "strokeWidth", "fill", "animationDuration", "delay"] }, { kind: "directive", type: UiMotion, selector: "[uiMotion]", inputs: ["uiMotion", "motionDuration", "motionDelay", "motionEasing", "motionEnterEasing", "motionLeaveEasing", "motionDistance", "motionScale", "motionDisabled", "motionOnInsert"], exportAs: ["uiMotion"] }, { kind: "component", type: UiImagePreview, selector: "ui-image-preview", inputs: ["src", "alt", "ariaLabel", "zoomStep", "minZoom", "maxZoom", "downloadable", "downloadName", "dismissableMask", "zoomInAriaLabel", "zoomOutAriaLabel", "rotateLeftAriaLabel", "rotateRightAriaLabel", "resetAriaLabel", "downloadAriaLabel", "closeAriaLabel"], outputs: ["closed"] }] }); }
|
|
611
611
|
}
|
|
612
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
612
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiImage, decorators: [{
|
|
613
613
|
type: Component,
|
|
614
614
|
args: [{ selector: 'ui-image', imports: [NgOptimizedImage, NgTemplateOutlet, UiIcon, UiSpinner, UiMotion, UiImagePreview], template: "<!-- The media is written once and rendered either bare, or inside the preview\n trigger \u2014 a `<button>` cannot wrap three `@else if` branches otherwise. -->\n<ng-template #media>\n @if (securedLoading()) {\n <div\n class=\"ui-image-placeholder _loading\"\n [style.width]=\"cssWidth()\"\n [style.height]=\"cssHeight()\"\n >\n <ui-spinner size=\"small\" [label]=\"loadingLabel()\" [ariaLabel]=\"loadingAriaLabel()\" />\n </div>\n } @else if (showPlaceholder()) {\n <div\n class=\"ui-image-placeholder\"\n [style.width]=\"cssWidth()\"\n [style.height]=\"cssHeight()\"\n [attr.role]=\"alt() ? 'img' : null\"\n [attr.aria-label]=\"alt() || null\"\n [attr.aria-hidden]=\"alt() ? null : true\"\n >\n <ui-icon name=\"image\" />\n </div>\n } @else if (isInlineSvg() && !primaryFailed()) {\n <!--\n EXCEPTION JUSTIFI\u00C9E (FSHSP-177) : le SVG local est inlin\u00E9 pour h\u00E9riter du CSS\n (currentColor, th\u00E8me) \u2014 un <img> ne le permet pas. La valeur est assainie par\n sanitizeInlineSvg() puis pass\u00E9e \u00E0 bypassSecurityTrustHtml() dans ui-image.ts.\n Registre : docs/SECURITY-PRACTICES.md.\n Une paire disable/enable et non un disable-next-line : un commentaire HTML ne\n peut pas se glisser \u00E0 l'int\u00E9rieur d'une balise ouvrante.\n -->\n <!-- eslint-disable no-restricted-syntax -->\n <div\n class=\"ui-image-svg\"\n [style.width]=\"cssWidth()\"\n [style.height]=\"cssHeight()\"\n [innerHTML]=\"svgContent()\"\n ></div>\n <!-- eslint-enable no-restricted-syntax -->\n } @else if (isRawSrc()) {\n <!-- `blob:` / `data:` : NgOptimizedImage refuses both, a plain <img> shows them. -->\n <img\n class=\"ui-image\"\n [src]=\"displayedSrc()!\"\n [alt]=\"alt() || ''\"\n [style.width]=\"!fill() ? cssWidth() : null\"\n [style.height]=\"!fill() ? cssHeight() : null\"\n [attr.loading]=\"priority() ? null : 'lazy'\"\n [attr.fetchpriority]=\"priority() ? 'high' : null\"\n (error)=\"onImgError()\"\n />\n } @else {\n <img\n class=\"ui-image\"\n [ngSrc]=\"displayedSrc()!\"\n [alt]=\"alt() || ''\"\n [width]=\"!fill() ? width() : null\"\n [height]=\"!fill() ? (height() ? height() : width()) : null\"\n [fill]=\"fill()\"\n [priority]=\"priority()\"\n (error)=\"onImgError()\"\n />\n }\n</ng-template>\n\n@if (canPreview()) {\n <button\n type=\"button\"\n class=\"ui-image-trigger\"\n aria-haspopup=\"dialog\"\n [attr.aria-label]=\"previewAriaLabel() || null\"\n (click)=\"previewVisible.set(true)\"\n >\n <ng-container [ngTemplateOutlet]=\"media\" />\n\n <!-- Decorative: the affordance is already carried by the button's role and\n its accessible name. -->\n <span class=\"ui-image-indicator\" aria-hidden=\"true\">\n @if (previewIndicator(); as indicator) {\n <ng-container [ngTemplateOutlet]=\"indicator\" />\n } @else {\n <ui-icon name=\"magnifying-glass-plus\" />\n }\n </span>\n </button>\n} @else {\n <ng-container [ngTemplateOutlet]=\"media\" />\n}\n\n@if (previewVisible()) {\n <ui-image-preview\n [src]=\"displayedSrc()!\"\n [alt]=\"alt() || ''\"\n [ariaLabel]=\"previewDialogAriaLabel()\"\n [zoomStep]=\"zoomStep()\"\n [minZoom]=\"minZoom()\"\n [maxZoom]=\"maxZoom()\"\n [downloadable]=\"downloadable()\"\n [downloadName]=\"downloadName()\"\n (closed)=\"previewVisible.set(false)\"\n [uiMotion]=\"'fade'\"\n #previewMotion=\"uiMotion\"\n [animate.enter]=\"previewMotion.enter()\"\n [animate.leave]=\"previewMotion.leave()\"\n />\n}\n", styles: ["@charset \"UTF-8\";:host{display:flex;align-items:center;justify-content:center}.ui-image{object-fit:var(--ui-image-object-fit, contain)}.ui-image-svg{display:flex;width:100%}.ui-image-svg ::ng-deep svg{width:100%;height:100%}.ui-image-placeholder{display:flex;align-items:center;justify-content:center;min-width:var(--ui-image-placeholder-min-width, var(--units-xl));min-height:var(--ui-image-placeholder-min-height, var(--units-xl));border-radius:var(--ui-image-placeholder-radius, var(--radius-default));background:var(--ui-image-placeholder-surface, var(--global-background-muted));color:var(--ui-image-placeholder-color, var(--global-text-muted))}.ui-image-trigger{position:relative;display:inline-flex;padding:0;border:none;border-radius:var(--ui-image-trigger-radius, 0);background:none;line-height:0;cursor:pointer}.ui-image-trigger:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-image-trigger-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-image-trigger-focus-ring-color, var(--global-border-focus))}.ui-image-trigger:hover .ui-image-indicator,.ui-image-trigger:focus-visible .ui-image-indicator{opacity:1}.ui-image-indicator{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;border-radius:inherit;background:var(--ui-image-indicator-background, var(--primitives-black-50));color:var(--ui-image-indicator-color, var(--primitives-white-base));font-size:var(--ui-image-indicator-font-size, var(--size-typography-text-lg));line-height:1;opacity:0;transition:opacity var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}@media(prefers-reduced-motion:reduce){.ui-image-indicator{transition-duration:.01ms}}:root[data-motion=off] .ui-image-indicator{transition-duration:.01ms}\n"] }]
|
|
615
615
|
}], ctorParameters: () => [], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], src: [{ type: i0.Input, args: [{ isSignal: true, alias: "src", required: false }] }], fallback: [{ type: i0.Input, args: [{ isSignal: true, alias: "fallback", required: false }] }], priority: [{ type: i0.Input, args: [{ isSignal: true, alias: "priority", required: false }] }], fill: [{ type: i0.Input, args: [{ isSignal: true, alias: "fill", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], widthUnit: [{ type: i0.Input, args: [{ isSignal: true, alias: "widthUnit", required: false }] }], height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], heightUnit: [{ type: i0.Input, args: [{ isSignal: true, alias: "heightUnit", required: false }] }], alt: [{ type: i0.Input, args: [{ isSignal: true, alias: "alt", required: false }] }], secured: [{ type: i0.Input, args: [{ isSignal: true, alias: "secured", required: false }] }], withCredentials: [{ type: i0.Input, args: [{ isSignal: true, alias: "withCredentials", required: false }] }], loadingLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadingLabel", required: false }] }], loadingAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadingAriaLabel", required: false }] }], preview: [{ type: i0.Input, args: [{ isSignal: true, alias: "preview", required: false }] }], previewVisible: [{ type: i0.Input, args: [{ isSignal: true, alias: "previewVisible", required: false }] }, { type: i0.Output, args: ["previewVisibleChange"] }], previewAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "previewAriaLabel", required: false }] }], previewDialogAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "previewDialogAriaLabel", required: false }] }], zoomStep: [{ type: i0.Input, args: [{ isSignal: true, alias: "zoomStep", required: false }] }], minZoom: [{ type: i0.Input, args: [{ isSignal: true, alias: "minZoom", required: false }] }], maxZoom: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxZoom", required: false }] }], downloadable: [{ type: i0.Input, args: [{ isSignal: true, alias: "downloadable", required: false }] }], downloadName: [{ type: i0.Input, args: [{ isSignal: true, alias: "downloadName", required: false }] }], loadFailed: [{ type: i0.Output, args: ["loadFailed"] }], previewIndicator: [{ type: i0.ContentChild, args: ['previewIndicator', { isSignal: true }] }] } });
|
|
@@ -921,12 +921,12 @@ class UiAutocomplete extends BaseFormField {
|
|
|
921
921
|
normalize(text) {
|
|
922
922
|
return text.toLowerCase().normalize('NFD').replace(/[̀-ͯ]/g, '');
|
|
923
923
|
}
|
|
924
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
925
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.
|
|
924
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiAutocomplete, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
925
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: UiAutocomplete, isStandalone: true, selector: "ui-autocomplete", inputs: { suggestions: { classPropertyName: "suggestions", publicName: "suggestions", isSignal: true, isRequired: false, transformFunction: null }, optionLabel: { classPropertyName: "optionLabel", publicName: "optionLabel", isSignal: true, isRequired: false, transformFunction: null }, optionValue: { classPropertyName: "optionValue", publicName: "optionValue", isSignal: true, isRequired: false, transformFunction: null }, optionDisabled: { classPropertyName: "optionDisabled", publicName: "optionDisabled", isSignal: true, isRequired: false, transformFunction: null }, dataKey: { classPropertyName: "dataKey", publicName: "dataKey", isSignal: true, isRequired: false, transformFunction: null }, group: { classPropertyName: "group", publicName: "group", isSignal: true, isRequired: false, transformFunction: null }, optionGroupLabel: { classPropertyName: "optionGroupLabel", publicName: "optionGroupLabel", isSignal: true, isRequired: false, transformFunction: null }, optionGroupChildren: { classPropertyName: "optionGroupChildren", publicName: "optionGroupChildren", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, minLength: { classPropertyName: "minLength", publicName: "minLength", isSignal: true, isRequired: false, transformFunction: null }, delay: { classPropertyName: "delay", publicName: "delay", isSignal: true, isRequired: false, transformFunction: null }, completeOnFocus: { classPropertyName: "completeOnFocus", publicName: "completeOnFocus", isSignal: true, isRequired: false, transformFunction: null }, dropdown: { classPropertyName: "dropdown", publicName: "dropdown", isSignal: true, isRequired: false, transformFunction: null }, dropdownMode: { classPropertyName: "dropdownMode", publicName: "dropdownMode", isSignal: true, isRequired: false, transformFunction: null }, dropdownAriaLabel: { classPropertyName: "dropdownAriaLabel", publicName: "dropdownAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, dropdownIcon: { classPropertyName: "dropdownIcon", publicName: "dropdownIcon", isSignal: true, isRequired: false, transformFunction: null }, forceSelection: { classPropertyName: "forceSelection", publicName: "forceSelection", isSignal: true, isRequired: false, transformFunction: null }, ripple: { classPropertyName: "ripple", publicName: "ripple", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, unique: { classPropertyName: "unique", publicName: "unique", isSignal: true, isRequired: false, transformFunction: null }, maxSelectedLabels: { classPropertyName: "maxSelectedLabels", publicName: "maxSelectedLabels", isSignal: true, isRequired: false, transformFunction: null }, overflowLabel: { classPropertyName: "overflowLabel", publicName: "overflowLabel", isSignal: true, isRequired: false, transformFunction: null }, removeTagLabel: { classPropertyName: "removeTagLabel", publicName: "removeTagLabel", isSignal: true, isRequired: false, transformFunction: null }, showClear: { classPropertyName: "showClear", publicName: "showClear", isSignal: true, isRequired: false, transformFunction: null }, clearAriaLabel: { classPropertyName: "clearAriaLabel", publicName: "clearAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, showEmptyMessage: { classPropertyName: "showEmptyMessage", publicName: "showEmptyMessage", isSignal: true, isRequired: false, transformFunction: null }, autoOptionFocus: { classPropertyName: "autoOptionFocus", publicName: "autoOptionFocus", isSignal: true, isRequired: false, transformFunction: null }, selectOnFocus: { classPropertyName: "selectOnFocus", publicName: "selectOnFocus", isSignal: true, isRequired: false, transformFunction: null }, focusOnHover: { classPropertyName: "focusOnHover", publicName: "focusOnHover", isSignal: true, isRequired: false, transformFunction: null }, virtualScroll: { classPropertyName: "virtualScroll", publicName: "virtualScroll", isSignal: true, isRequired: false, transformFunction: null }, virtualScrollItemSize: { classPropertyName: "virtualScrollItemSize", publicName: "virtualScrollItemSize", isSignal: true, isRequired: false, transformFunction: null }, lazy: { classPropertyName: "lazy", publicName: "lazy", isSignal: true, isRequired: false, transformFunction: null }, scrollHeight: { classPropertyName: "scrollHeight", publicName: "scrollHeight", isSignal: true, isRequired: false, transformFunction: null }, autoFlip: { classPropertyName: "autoFlip", publicName: "autoFlip", isSignal: true, isRequired: false, transformFunction: null }, panelStyleClass: { classPropertyName: "panelStyleClass", publicName: "panelStyleClass", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { completeMethod: "completeMethod", valueChange: "valueChange", optionSelect: "optionSelect", optionUnselect: "optionUnselect", opened: "opened", closed: "closed", cleared: "cleared", dropdownClick: "dropdownClick", lazyLoad: "lazyLoad", inputFocus: "inputFocus", inputBlur: "inputBlur" }, providers: [
|
|
926
926
|
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiAutocomplete), multi: true },
|
|
927
927
|
], queries: [{ propertyName: "itemTemplate", first: true, predicate: ["item"], descendants: true, isSignal: true }, { propertyName: "selectedItemTemplate", first: true, predicate: ["selectedItem"], descendants: true, isSignal: true }, { propertyName: "groupTemplate", first: true, predicate: ["group"], descendants: true, isSignal: true }, { propertyName: "headerTemplate", first: true, predicate: ["header"], descendants: true, isSignal: true }, { propertyName: "footerTemplate", first: true, predicate: ["footer"], descendants: true, isSignal: true }, { propertyName: "emptyTemplate", first: true, predicate: ["empty"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "containerEl", first: true, predicate: ["container"], descendants: true, isSignal: true }, { propertyName: "inputEl", first: true, predicate: ["inputEl"], descendants: true, isSignal: true }, { propertyName: "panelEl", first: true, predicate: ["panel"], descendants: true, isSignal: true }, { propertyName: "viewport", first: true, predicate: CdkVirtualScrollViewport, descendants: true, isSignal: true }, { propertyName: "tagEls", predicate: ["tagEl"], descendants: true, read: ElementRef, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<!-- One rendered row: group header or suggestion (shared by the plain and virtual lists). -->\n<ng-template #rowTpl let-row>\n @if (row.kind === 'group') {\n <li class=\"ui-autocomplete-group\" role=\"presentation\" [class._small]=\"size() === 'small'\">\n @if (groupTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: row.original, group: row.original }\"\n />\n } @else {\n {{ row.label }}\n }\n </li>\n } @else {\n <!-- ARIA combobox/listbox pattern: keyboard and focus are handled by\n the input role=\"combobox\" (roving via aria-activedescendant). -->\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -->\n <li\n class=\"ui-autocomplete-option\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n role=\"option\"\n [attr.id]=\"row.id\"\n [class._small]=\"size() === 'small'\"\n [class._selected]=\"row.selected\"\n [class._focused]=\"row.index === focusedIndex()\"\n [class._disabled]=\"row.entry.disabled\"\n [attr.aria-selected]=\"row.selected\"\n [attr.aria-disabled]=\"row.entry.disabled || null\"\n [attr.aria-setsize]=\"optionCount()\"\n [attr.aria-posinset]=\"row.index + 1\"\n (mousedown)=\"onOptionMousedown($event)\"\n (click)=\"onOptionClick(row, $event)\"\n (mouseenter)=\"onOptionMouseEnter(row)\"\n >\n @if (itemTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: row.entry.original,\n option: row.entry.original,\n selected: row.selected,\n index: row.index,\n }\"\n />\n } @else {\n <span class=\"ui-autocomplete-option-label\">{{ row.entry.label }}</span>\n }\n </li>\n }\n</ng-template>\n\n<!-- Suggestions panel (CDK overlay). -->\n<ng-template #panelTpl>\n <div\n #panel\n class=\"ui-autocomplete-panel\"\n [class]=\"panelStyleClass()\"\n [class._small]=\"size() === 'small'\"\n [style.width.px]=\"overlayWidth()\"\n [uiMotion]=\"'slide-down'\"\n #panelMotion=\"uiMotion\"\n motionOnInsert\n >\n @if (headerTemplate(); as tpl) {\n <div class=\"ui-autocomplete-header\">\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n </div>\n }\n\n @if (virtualScroll()) {\n <cdk-virtual-scroll-viewport\n class=\"ui-autocomplete-viewport\"\n [itemSize]=\"virtualScrollItemSize()\"\n [style.height]=\"viewportHeight()\"\n >\n <ul\n class=\"ui-autocomplete-list\"\n role=\"listbox\"\n [attr.aria-multiselectable]=\"multiple() ? 'true' : null\"\n [attr.id]=\"listboxId()\"\n [attr.aria-label]=\"label() || ariaLabel() || null\"\n >\n <ng-container *cdkVirtualFor=\"let row of visibleRows(); trackBy: trackRow\">\n <ng-container\n [ngTemplateOutlet]=\"rowTpl\"\n [ngTemplateOutletContext]=\"{ $implicit: row }\"\n />\n </ng-container>\n @if (showEmpty()) {\n <ng-container [ngTemplateOutlet]=\"emptyTpl\" />\n }\n </ul>\n </cdk-virtual-scroll-viewport>\n } @else {\n <div\n class=\"ui-autocomplete-scroller\"\n [class._small]=\"size() === 'small'\"\n [style.max-height]=\"scrollHeight() || null\"\n >\n <ul\n class=\"ui-autocomplete-list\"\n role=\"listbox\"\n [attr.aria-multiselectable]=\"multiple() ? 'true' : null\"\n [attr.id]=\"listboxId()\"\n [attr.aria-label]=\"label() || ariaLabel() || null\"\n >\n @for (row of visibleRows(); track row.key) {\n <ng-container\n [ngTemplateOutlet]=\"rowTpl\"\n [ngTemplateOutletContext]=\"{ $implicit: row }\"\n />\n }\n @if (showEmpty()) {\n <ng-container [ngTemplateOutlet]=\"emptyTpl\" />\n }\n </ul>\n </div>\n }\n\n @if (footerTemplate(); as tpl) {\n <div class=\"ui-autocomplete-footer\">\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n </div>\n }\n </div>\n</ng-template>\n\n<!-- Empty state row. -->\n<ng-template #emptyTpl>\n <li class=\"ui-autocomplete-empty\" role=\"presentation\">\n @if (emptyTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n {{ emptyMessage() }}\n }\n </li>\n</ng-template>\n\n<!-- Trigger: composed field around a native combobox input. -->\n<div #container class=\"ui-autocomplete\">\n <ui-field\n [label]=\"label()\"\n [for]=\"resolvedId()\"\n [required]=\"required()\"\n [size]=\"size()\"\n [level]=\"effectiveLevel()\"\n [floatLabel]=\"floatLabel()\"\n [filled]=\"isFilled()\"\n [disabled]=\"isDisabled()\"\n [readonly]=\"readonly()\"\n [message]=\"displayMessage()\"\n [messageId]=\"messageId()\"\n [showMessageIcon]=\"showMessageIcon()\"\n [messageIcon]=\"messageIcon()\"\n [autoHeight]=\"multiple()\"\n >\n <div class=\"ui-autocomplete-control\" (mousedown)=\"onBoxMousedown($event)\">\n @if (multiple()) {\n @if (selectedItemTemplate(); as tpl) {\n @for (ctx of selectedItemContexts(); track $index) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"ctx\" />\n }\n } @else {\n <!-- The listbox wraps ONLY the option tags: it may contain neither the combobox input\n nor the informative overflow chip. `display: contents` keeps the tags flowing in\n the box exactly as before. -->\n <div\n class=\"ui-autocomplete-tags\"\n role=\"listbox\"\n aria-orientation=\"horizontal\"\n [attr.aria-label]=\"ariaLabelledBy() ? null : ariaLabel() || label() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n >\n @for (tag of visibleTagRows(); track $index) {\n <ui-chip\n #tagEl\n class=\"ui-autocomplete-tag\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n role=\"option\"\n aria-selected=\"true\"\n [attr.aria-label]=\"tag.label\"\n [label]=\"tag.label\"\n size=\"small\"\n [disabled]=\"isDisabled()\"\n [removable]=\"canRemove()\"\n [removeTabindex]=\"-1\"\n [removeAriaLabel]=\"tag.removeAriaLabel\"\n [attr.aria-setsize]=\"tagRows().length\"\n [attr.aria-posinset]=\"tag.index + 1\"\n [attr.tabindex]=\"isDisabled() ? null : focusedTag() === tag.index ? 0 : -1\"\n (keydown)=\"onTagKeydown($event, tag.index)\"\n (focus)=\"focusedTag.set(tag.index)\"\n (remove)=\"removeAt(tag.index)\"\n />\n }\n </div>\n }\n @if (overflowCount() > 0) {\n <!-- Collapsed remainder (`maxSelectedLabels`): informative only, not removable. -->\n <ui-chip\n class=\"ui-autocomplete-tag _overflow\"\n role=\"presentation\"\n [label]=\"overflowText()\"\n size=\"small\"\n [disabled]=\"isDisabled()\"\n />\n }\n }\n\n <input\n #inputEl\n type=\"text\"\n class=\"ui-autocomplete-input\"\n [class._small]=\"size() === 'small'\"\n role=\"combobox\"\n autocomplete=\"off\"\n aria-haspopup=\"listbox\"\n aria-autocomplete=\"list\"\n [id]=\"resolvedId()\"\n [value]=\"inputText()\"\n [placeholder]=\"effectivePlaceholder()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [attr.name]=\"name() || null\"\n [attr.tabindex]=\"tabindex()\"\n [attr.aria-expanded]=\"panelOpen()\"\n [attr.aria-controls]=\"panelOpen() ? listboxId() : null\"\n [attr.aria-activedescendant]=\"activeDescendant()\"\n [attr.aria-label]=\"label() ? null : ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-describedby]=\"displayMessage() ? messageId() : null\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-invalid]=\"effectiveLevel() === 'error' ? 'true' : null\"\n (input)=\"onInput($event)\"\n (keydown)=\"onInputKeydown($event)\"\n (focus)=\"onInputFocus($event)\"\n (blur)=\"onInputBlur($event)\"\n />\n </div>\n\n @if (showClearButton()) {\n <button\n uiFieldSuffix\n type=\"button\"\n class=\"ui-autocomplete-clear\"\n [attr.aria-label]=\"clearAriaLabel()\"\n (click)=\"onClearClick($event)\"\n >\n <ui-icon name=\"xmark\" [size]=\"iconSize()\" />\n </button>\n }\n\n @if (loading()) {\n <ui-spinner\n uiFieldSuffix\n class=\"ui-autocomplete-loading\"\n size=\"small\"\n orientation=\"horizontal\"\n ariaLabel=\"Recherche en cours\"\n />\n } @else if (dropdown()) {\n <button\n uiFieldSuffix\n type=\"button\"\n class=\"ui-autocomplete-dropdown\"\n [class._open]=\"panelOpen()\"\n [disabled]=\"isDisabled()\"\n tabindex=\"-1\"\n aria-haspopup=\"listbox\"\n [attr.aria-expanded]=\"panelOpen()\"\n [attr.aria-controls]=\"panelOpen() ? listboxId() : null\"\n [attr.aria-label]=\"dropdownAriaLabel()\"\n (click)=\"onDropdownClick($event)\"\n >\n <ui-icon [name]=\"dropdownIcon()\" [size]=\"iconSize()\" />\n </button>\n }\n </ui-field>\n</div>\n\n<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"overlayOrigin()!\"\n [cdkConnectedOverlayOpen]=\"panelOpen()\"\n [cdkConnectedOverlayPositions]=\"overlayPositions()\"\n [cdkConnectedOverlayHasBackdrop]=\"true\"\n cdkConnectedOverlayBackdropClass=\"cdk-overlay-transparent-backdrop\"\n (backdropClick)=\"close(false)\"\n (overlayOutsideClick)=\"close(false)\"\n (detach)=\"close(false)\"\n>\n <ng-container [ngTemplateOutlet]=\"panelTpl\" />\n</ng-template>\n", styles: [".ui-autocomplete{display:block;--ui-field-box-cursor: text}.ui-autocomplete-control{display:flex;align-items:center;align-self:stretch;flex:1 1 auto;flex-wrap:wrap;gap:var(--ui-autocomplete-tag-gap, var(--units-xs));min-width:0}.ui-autocomplete-control:first-child{padding-inline-start:var(--ui-form-field-padding-x, var(--units-md))}.ui-autocomplete-control:last-child{padding-inline-end:var(--ui-form-field-padding-x, var(--units-md))}.ui-autocomplete-control{padding-block-start:calc(0px + var(--_field-inset-block-start, 0px))}.ui-autocomplete-tags{display:contents}.ui-autocomplete-tag{display:inline-flex;align-items:center;max-width:100%;border-radius:var(--ui-autocomplete-tag-radius, var(--radius-full));transition:box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-autocomplete-tag:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-autocomplete-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) rgb(from var(--ui-autocomplete-tag-focus-ring-color, var(--form-high-stroke-focused)) r g b/50%)}.ui-autocomplete-input{flex:1 1 auto;align-self:stretch;min-width:0;margin:0;padding:0;border:none;border-radius:inherit;background:transparent;outline:none;font-family:var(--ui-form-field-font-family, var(--fontfamily-base));font-size:var(--size-typography-text-default);color:var(--ui-form-field-color, var(--form-high-content-default))}.ui-autocomplete-input::placeholder{color:var(--ui-form-field-placeholder-color, var(--form-low-content-default));opacity:1}.ui-autocomplete-input:disabled{cursor:not-allowed;color:var(--ui-form-field-color-disabled, var(--form-high-content-disabled))}.ui-autocomplete-input{flex:1 1 var(--ui-autocomplete-input-min-width, 5rem);min-width:var(--ui-autocomplete-input-min-width, 5rem);width:auto}.ui-autocomplete-input._small{font-size:var(--ui-autocomplete-font-size-small, var(--size-typography-text-md))}.ui-autocomplete-clear{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:var(--ui-autocomplete-clear-size, var(--size-components-2xs));height:var(--ui-autocomplete-clear-size, var(--size-components-2xs));flex-shrink:0;margin:0;padding:0;border:none;border-radius:var(--ui-autocomplete-clear-radius, var(--radius-full));background:none;color:var(--ui-autocomplete-clear-color, var(--form-low-content-default));cursor:pointer;transition:color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-autocomplete-clear:first-child{margin-inline-start:var(--ui-form-field-padding-x, var(--units-md))}.ui-autocomplete-clear:last-child{margin-inline-end:var(--ui-form-field-padding-x, var(--units-md))}.ui-autocomplete-clear:hover:not(:disabled){color:var(--ui-autocomplete-clear-color-hover, var(--form-high-content-hover))}.ui-autocomplete-clear:focus-visible{outline:none;color:var(--ui-autocomplete-clear-color-focus, var(--form-high-content-focused));box-shadow:0 0 0 var(--ui-autocomplete-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) rgb(from var(--ui-autocomplete-clear-focus-ring-color, var(--form-high-stroke-focused)) r g b/50%)}.ui-autocomplete-clear:disabled{cursor:not-allowed;color:var(--ui-autocomplete-clear-color-disabled, var(--form-high-content-disabled))}.ui-autocomplete-dropdown{flex-shrink:0;color:var(--ui-form-field-affix-color, var(--form-low-content-default))}.ui-autocomplete-dropdown:first-child{margin-inline-start:var(--ui-form-field-padding-x, var(--units-md))}.ui-autocomplete-dropdown:last-child{margin-inline-end:var(--ui-form-field-padding-x, var(--units-md))}.ui-autocomplete-dropdown._disabled{color:var(--ui-form-field-affix-color-disabled, var(--form-high-content-disabled))}.ui-autocomplete-dropdown{transition:rotate var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms);margin:0;padding:0;border:none;background:none;color:var(--ui-autocomplete-dropdown-color, var(--form-low-content-default));cursor:pointer}.ui-autocomplete-dropdown:hover:not(:disabled){color:var(--ui-autocomplete-dropdown-color-hover, var(--form-high-content-hover))}.ui-autocomplete-dropdown._open{rotate:180deg}.ui-autocomplete-dropdown:disabled{cursor:not-allowed;color:var(--ui-autocomplete-dropdown-color-disabled, var(--form-high-content-disabled))}.ui-autocomplete-loading{flex-shrink:0}.ui-autocomplete-loading:first-child{margin-inline-start:var(--ui-form-field-padding-x, var(--units-md))}.ui-autocomplete-loading:last-child{margin-inline-end:var(--ui-form-field-padding-x, var(--units-md))}.ui-autocomplete-panel{border:var(--ui-control-stroke-width, var(--stroke-default)) solid var(--ui-overlay-stroke, var(--ui-autocomplete-panel-stroke, var(--form-high-stroke-default)));border-radius:var(--ui-overlay-radius, var(--ui-overlay-panel-radius, var(--radius-default)));background-color:var(--ui-overlay-surface, var(--ui-autocomplete-panel-surface, var(--form-high-surface-default)));box-shadow:var(--ui-overlay-shadow, var(--ui-overlay-panel-shadow, var(--shadow-default-md)));font-family:var(--ui-overlay-panel-font-family, var(--fontfamily-base));display:flex;flex-direction:column;gap:var(--ui-autocomplete-panel-gap, var(--units-xs));box-sizing:border-box;max-width:var(--ui-autocomplete-panel-max-width, calc(100vw - var(--units-lg)));padding:var(--ui-autocomplete-panel-padding, var(--units-xs))}.ui-autocomplete-panel .ui-autocomplete-header,.ui-autocomplete-panel .ui-autocomplete-footer{padding:var(--ui-autocomplete-header-padding-y, var(--units-xs)) var(--ui-autocomplete-header-padding-x, var(--units-sm));font-family:var(--ui-autocomplete-font-family, var(--fontfamily-base));font-size:var(--ui-autocomplete-group-font-size, var(--size-typography-text-md));color:var(--ui-autocomplete-header-color, var(--form-high-content-default))}.ui-autocomplete-panel .ui-autocomplete-scroller{overflow:auto;max-height:var(--ui-autocomplete-scroller-max-height, 19.5rem)}.ui-autocomplete-panel .ui-autocomplete-scroller._small{max-height:var(--ui-autocomplete-scroller-max-height-small, 16rem)}.ui-autocomplete-panel .ui-autocomplete-viewport{width:100%}.ui-autocomplete-panel .ui-autocomplete-list{display:flex;flex-direction:column;gap:var(--ui-autocomplete-panel-gap, var(--units-xs));margin:0;padding:0;list-style:none}.ui-autocomplete-panel .ui-autocomplete-viewport .ui-autocomplete-list{gap:0}.ui-autocomplete-panel .ui-autocomplete-viewport .ui-autocomplete-group{height:var(--ui-autocomplete-option-height, 2.5rem)}.ui-autocomplete-panel .ui-autocomplete-viewport .ui-autocomplete-group._small{height:var(--ui-autocomplete-option-height-small, 2rem)}.ui-autocomplete-panel .ui-autocomplete-option{display:flex;align-items:center;gap:var(--ui-autocomplete-option-gap, var(--units-sm));box-sizing:border-box;height:var(--ui-autocomplete-option-height, 2.5rem);flex-shrink:0;padding:0 var(--ui-autocomplete-option-padding-x, var(--units-default));border-radius:var(--ui-autocomplete-option-radius, var(--radius-sm));font-family:var(--ui-autocomplete-font-family, var(--fontfamily-base));font-size:var(--ui-autocomplete-font-size, var(--size-typography-text-default));color:var(--ui-autocomplete-option-color, var(--form-high-content-default));cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-autocomplete-panel .ui-autocomplete-option._small{height:var(--ui-autocomplete-option-height-small, 2rem);padding:0 var(--ui-autocomplete-option-padding-x-small, var(--units-md));font-size:var(--ui-autocomplete-font-size-small, var(--size-typography-text-md))}.ui-autocomplete-panel .ui-autocomplete-option._focused,.ui-autocomplete-panel .ui-autocomplete-option:hover:not(._disabled){background-color:var(--ui-autocomplete-option-surface-hover, var(--global-background-default-hover))}.ui-autocomplete-panel .ui-autocomplete-option._selected{background-color:var(--ui-autocomplete-option-surface-selected, var(--form-high-surface-hover));color:var(--ui-autocomplete-option-color-selected, var(--form-high-content-checked))}.ui-autocomplete-panel .ui-autocomplete-option._disabled{color:var(--ui-autocomplete-option-color-disabled, var(--form-high-content-disabled));cursor:not-allowed}.ui-autocomplete-panel .ui-autocomplete-option-label{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ui-autocomplete-panel .ui-autocomplete-group{display:flex;align-items:center;box-sizing:border-box;height:var(--ui-autocomplete-group-height, 2rem);flex-shrink:0;padding:0 var(--ui-autocomplete-option-padding-x, var(--units-default));font-family:var(--ui-autocomplete-font-family, var(--fontfamily-base));font-size:var(--ui-autocomplete-group-font-size, var(--size-typography-text-md));font-weight:var(--ui-autocomplete-weight, var(--weight-bold));color:var(--ui-autocomplete-group-color, var(--form-low-content-default))}.ui-autocomplete-panel .ui-autocomplete-group._small{height:var(--ui-autocomplete-group-height-small, 1.5rem);padding:0 var(--ui-autocomplete-option-padding-x-small, var(--units-md));font-size:var(--ui-autocomplete-group-font-size-small, var(--size-typography-text-sm))}.ui-autocomplete-panel .ui-autocomplete-empty{display:flex;align-items:center;box-sizing:border-box;min-height:var(--ui-autocomplete-option-height, 2.5rem);padding:0 var(--ui-autocomplete-option-padding-x, var(--units-default));font-family:var(--ui-autocomplete-font-family, var(--fontfamily-base));font-size:var(--ui-autocomplete-font-size, var(--size-typography-text-default));color:var(--ui-autocomplete-empty-color, var(--form-low-content-default))}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: OverlayModule }, { kind: "directive", type: i1.CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush", "cdkConnectedOverlayDisposeOnNavigation", "cdkConnectedOverlayUsePopover", "cdkConnectedOverlayMatchWidth", "cdkConnectedOverlay"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "directive", type: i1.ɵɵCdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { kind: "directive", type: i1.ɵɵCdkVirtualForOf, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: ["cdkVirtualForOf", "cdkVirtualForTrackBy", "cdkVirtualForTemplate", "cdkVirtualForTemplateCacheSize"] }, { kind: "component", type: i1.ɵɵCdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }, { kind: "ngmodule", type: ScrollingModule }, { kind: "component", type: UiField, selector: "ui-field", inputs: ["label", "for", "required", "size", "level", "floatLabel", "filled", "disabled", "readonly", "multiline", "autoHeight", "message", "messageId", "showMessageIcon", "messageIcon", "hasFooter", "hasPrefix"] }, { kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }, { kind: "component", type: UiSpinner, selector: "ui-spinner", inputs: ["size", "orientation", "label", "ariaLabel", "spinnerTemplate", "image", "imageAlt", "icon", "strokeWidth", "fill", "animationDuration", "delay"] }, { kind: "component", type: UiChip, selector: "ui-chip", inputs: ["label", "level", "subLevel", "size", "icon", "image", "alt", "rounded", "removable", "removeIcon", "disabled", "selectable", "selected", "selectedIcon", "ariaLabel", "ariaLabelledBy", "removeAriaLabel", "removeTabindex"], outputs: ["selectedChange", "remove", "chipClick", "imageError"] }, { kind: "directive", type: UiMotion, selector: "[uiMotion]", inputs: ["uiMotion", "motionDuration", "motionDelay", "motionEasing", "motionEnterEasing", "motionLeaveEasing", "motionDistance", "motionScale", "motionDisabled", "motionOnInsert"], exportAs: ["uiMotion"] }] }); }
|
|
928
928
|
}
|
|
929
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
929
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiAutocomplete, decorators: [{
|
|
930
930
|
type: Component,
|
|
931
931
|
args: [{ selector: 'ui-autocomplete', imports: [
|
|
932
932
|
NgTemplateOutlet,
|
|
@@ -94,12 +94,12 @@ class UiCheckbox extends BaseFieldControl {
|
|
|
94
94
|
this.emitTouch();
|
|
95
95
|
this.checkboxBlur.emit(event);
|
|
96
96
|
}
|
|
97
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
98
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.
|
|
97
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiCheckbox, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
98
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: UiCheckbox, isStandalone: true, selector: "ui-checkbox", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, trueValue: { classPropertyName: "trueValue", publicName: "trueValue", isSignal: true, isRequired: false, transformFunction: null }, falseValue: { classPropertyName: "falseValue", publicName: "falseValue", isSignal: true, isRequired: false, transformFunction: null }, indeterminate: { classPropertyName: "indeterminate", publicName: "indeterminate", isSignal: true, isRequired: false, transformFunction: null }, checkIcon: { classPropertyName: "checkIcon", publicName: "checkIcon", isSignal: true, isRequired: false, transformFunction: null }, indeterminateIcon: { classPropertyName: "indeterminateIcon", publicName: "indeterminateIcon", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { checkboxChange: "checkboxChange", checkboxFocus: "checkboxFocus", checkboxBlur: "checkboxBlur" }, providers: [
|
|
99
99
|
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiCheckbox), multi: true },
|
|
100
100
|
], viewQueries: [{ propertyName: "inputEl", first: true, predicate: ["inputEl"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<label [class]=\"classes()\">\n <span class=\"ui-checkbox-control\">\n <input\n #inputEl\n type=\"checkbox\"\n class=\"ui-checkbox-input\"\n [id]=\"resolvedId()\"\n [checked]=\"checked()\"\n [disabled]=\"isDisabled()\"\n [required]=\"required()\"\n [attr.name]=\"name() || null\"\n [attr.tabindex]=\"tabindex()\"\n [attr.aria-label]=\"label() ? null : ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-invalid]=\"isInvalid() ? 'true' : null\"\n (change)=\"onNativeChange()\"\n (focus)=\"checkboxFocus.emit($event)\"\n (blur)=\"onBlur($event)\"\n />\n <span class=\"ui-checkbox-box\" aria-hidden=\"true\">\n <ui-icon\n class=\"ui-checkbox-icon\"\n [name]=\"indeterminate() ? indeterminateIcon() : checkIcon()\"\n size=\"md\"\n />\n </span>\n </span>\n\n @if (label()) {\n <span class=\"ui-checkbox-label\">\n <span class=\"ui-checkbox-text\">{{ label() }}</span>\n @if (required()) {\n <span class=\"ui-checkbox-required\" aria-hidden=\"true\">*</span>\n }\n </span>\n }\n</label>\n", styles: [".ui-checkbox{display:inline-flex;align-items:center;gap:var(--ui-checkbox-gap, var(--ui-form-control-gap, var(--units-sm)));cursor:pointer;--_surface: var(--ui-form-control-surface, var(--form-high-surface-default));--_stroke: var(--ui-form-control-stroke, var(--form-high-stroke-default));--_content: var(--ui-form-control-marker-color, var(--form-high-content-checked))}.ui-checkbox:hover:not(._disabled):not(._readonly){--_surface: var(--ui-form-control-surface-hover, var(--form-high-surface-hover));--_stroke: var(--ui-form-control-stroke-hover, var(--form-high-stroke-hover));--ui-label-color: var(--form-high-content-hover)}.ui-checkbox._checked:not(._disabled),.ui-checkbox._indeterminate:not(._disabled){--_surface: var(--ui-form-control-surface-checked, var(--form-high-surface-checked));--_stroke: var(--ui-form-control-stroke-checked, var(--form-high-stroke-checked))}.ui-checkbox:has(.ui-checkbox-input:focus-visible){--_stroke: var(--ui-form-control-stroke-focus, var(--form-high-stroke-focused));--_focus-ring: rgb(from var(--ui-form-control-stroke-focus, var(--form-high-stroke-focused)) r g b / 50%)}.ui-checkbox._disabled{--_surface: var(--ui-form-control-surface-disabled, var(--form-high-surface-disabled));--_stroke: var(--ui-form-control-stroke-disabled, var(--form-high-stroke-disabled));--_content: var(--ui-form-control-marker-color-disabled, var(--form-high-content-disabled))}.ui-checkbox._invalid{--_surface: var(--ui-form-control-surface, var(--form-error-surface-default));--_stroke: var(--ui-form-control-stroke, var(--form-error-stroke-default));--_content: var(--ui-form-control-marker-color, var(--form-error-content-checked))}.ui-checkbox._invalid:hover:not(._disabled):not(._readonly){--_surface: var(--ui-form-control-surface-hover, var(--form-error-surface-hover));--_stroke: var(--ui-form-control-stroke-hover, var(--form-error-stroke-hover));--ui-label-color: var(--form-error-content-hover)}.ui-checkbox._invalid._checked:not(._disabled),.ui-checkbox._invalid._indeterminate:not(._disabled){--_surface: var(--ui-form-control-surface-checked, var(--form-error-surface-checked));--_stroke: var(--ui-form-control-stroke-checked, var(--form-error-stroke-checked))}.ui-checkbox._invalid:has(.ui-checkbox-input:focus-visible){--_stroke: var(--ui-form-control-stroke-focus, var(--form-error-stroke-focused));--_focus-ring: rgb(from var(--ui-form-control-stroke-focus, var(--form-error-stroke-focused)) r g b / 50%)}.ui-checkbox._invalid._disabled{--_surface: var(--ui-form-control-surface-disabled, var(--form-error-surface-disabled));--_stroke: var(--ui-form-control-stroke-disabled, var(--form-error-stroke-disabled));--_content: var(--ui-form-control-marker-color-disabled, var(--form-error-content-disabled))}.ui-checkbox-control{position:relative;display:inline-flex;width:var(--ui-checkbox-box-size, var(--ui-form-control-size, var(--size-components-2xs)));height:var(--ui-checkbox-box-size, var(--ui-form-control-size, var(--size-components-2xs)));flex-shrink:0}.ui-checkbox-input{position:absolute;inset:0;z-index:1;width:100%;height:100%;margin:0;opacity:0;cursor:inherit}.ui-checkbox-box{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%;background-color:var(--_surface);border:var(--ui-checkbox-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) solid var(--_stroke);border-radius:var(--ui-checkbox-box-radius, var(--radius-xs));transition:background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),border-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-checkbox:has(.ui-checkbox-input:focus-visible) .ui-checkbox-box{box-shadow:0 0 0 var(--ui-checkbox-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--_focus-ring)}.ui-checkbox-icon{--ui-icon-size: var(--ui-checkbox-icon-size, var(--ui-icon-size-md, var(--size-typography-icon-md)));color:var(--_content);opacity:0;transform:scale(.6);transition:opacity var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),transform var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-checkbox._checked .ui-checkbox-icon,.ui-checkbox._indeterminate .ui-checkbox-icon{opacity:1;transform:scale(1)}.ui-checkbox-label{display:inline-flex;align-items:center;gap:var(--ui-checkbox-label-gap, var(--units-2xs));font-family:var(--ui-checkbox-font-family, var(--fontfamily-base));font-size:var(--ui-checkbox-font-size, var(--size-typography-text-default));color:var(--ui-label-color, var(--form-high-content-default));cursor:inherit;-webkit-user-select:none;user-select:none;transition:color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-checkbox-required{color:var(--ui-checkbox-required-color, var(--informative-errorlow-content-default))}.ui-checkbox._disabled{cursor:not-allowed}.ui-checkbox._disabled .ui-checkbox-label{color:var(--ui-label-color-disabled, var(--form-high-content-disabled))}.ui-checkbox._readonly{cursor:default}\n"], dependencies: [{ kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }] }); }
|
|
101
101
|
}
|
|
102
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
102
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiCheckbox, decorators: [{
|
|
103
103
|
type: Component,
|
|
104
104
|
args: [{ selector: 'ui-checkbox', imports: [UiIcon], providers: [
|
|
105
105
|
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiCheckbox), multi: true },
|