@konce-pt/angular 0.16.1 → 0.17.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.
@@ -3,7 +3,7 @@ import * as i0 from '@angular/core';
3
3
  import { signal, Injectable, input, inject, ElementRef, effect, isDevMode, ViewEncapsulation, ChangeDetectionStrategy, Component, booleanAttribute, computed, afterRenderEffect, DestroyRef, Directive, InjectionToken, makeEnvironmentProviders, provideEnvironmentInitializer, model, output, Injector, afterNextRender, linkedSignal, viewChild, provideAppInitializer, PLATFORM_ID, numberAttribute, untracked, contentChild, forwardRef, viewChildren, TemplateRef, contentChildren, ChangeDetectorRef } from '@angular/core';
4
4
  import { KPT_ICONS, toKptIconRecord, sanitizeSvgFragment, renderKptIconSvg } from '@konce-pt/icons';
5
5
  export { renderKptIconSvg } from '@konce-pt/icons';
6
- import { applyMotionConfig, resolveToggleMotion, playIndicatorMotion, loaderProgress, createLoader, loaderColor, loaderOnColor, setText, swapText, resolveEnterMotion, playShakeMotion, playInvalidMotion, playPopMotion, flowChangeOf, prepareFlowMotion, resolveCollapseMotion, stepperSchedule, stepperScheduleOptions, playStepperLight, preparePanelSwap, layoutMotionAllowed, resolveLayoutMotion, morphLayout, snapshotLayout, stopLayoutMotion, playLayoutMotion, morphKeyed, isVisibleInScroller, snapshotKeyed, stopKeyedMotion, playKeyedMotion, revealInScroller } from '@konce-pt/motion';
6
+ import { applyMotionConfig, resolveToggleMotion, playIndicatorMotion, loaderProgress, createLoader, loaderColor, loaderOnColor, setText, swapText, resolveEnterMotion, playShakeMotion, playInvalidMotion, playPopMotion, flowChangeOf, prepareFlowMotion, resolveCollapseMotion, playZoomOpen, playZoomClose, stopZoomMotion, stepperSchedule, stepperScheduleOptions, playStepperLight, preparePanelSwap, layoutMotionAllowed, resolveLayoutMotion, morphLayout, snapshotLayout, stopLayoutMotion, playLayoutMotion, morphKeyed, isVisibleInScroller, snapshotKeyed, stopKeyedMotion, playKeyedMotion, revealInScroller, revealThumb, playGallerySlide, trackStripEdges, attachDragScroll, stopGallerySlide, scrollStrip } from '@konce-pt/motion';
7
7
  import { CdkOverlayOrigin, CdkConnectedOverlay, OverlayContainer } from '@angular/cdk/overlay';
8
8
  import { KPT_MESSAGES_EN, KPT_MESSAGES_PL, deepMerge, translate, formatBytes, byteUnitOf, weekdayNames, monthNames } from '@konce-pt/i18n';
9
9
  export { KPT_MESSAGES_EN, KPT_MESSAGES_PL } from '@konce-pt/i18n';
@@ -1368,8 +1368,8 @@ function dropdownPositions(offset, options = {}) {
1368
1368
  }
1369
1369
 
1370
1370
  const _c0$Q = ["toggleBtn"];
1371
- const _c1$t = ["panel"];
1372
- const _c2$e = ["*"];
1371
+ const _c1$u = ["panel"];
1372
+ const _c2$g = ["*"];
1373
1373
  function KptSplitButton_ng_template_7_For_3_Conditional_0_Template(rf, ctx) { if (rf & 1) {
1374
1374
  i0.ɵɵelement(0, "div", 8);
1375
1375
  } }
@@ -1556,10 +1556,10 @@ class KptSplitButton {
1556
1556
  }
1557
1557
  static { this.ɵfac = function KptSplitButton_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || KptSplitButton)(); }; }
1558
1558
  static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: KptSplitButton, selectors: [["kpt-split-button"]], viewQuery: function KptSplitButton_Query(rf, ctx) { if (rf & 1) {
1559
- i0.ɵɵviewQuerySignal(ctx.toggleBtn, _c0$Q, 5)(ctx.panel, _c1$t, 5);
1559
+ i0.ɵɵviewQuerySignal(ctx.toggleBtn, _c0$Q, 5)(ctx.panel, _c1$u, 5);
1560
1560
  } if (rf & 2) {
1561
1561
  i0.ɵɵqueryAdvance(2);
1562
- } }, hostAttrs: [1, "kpt-split-button-host"], inputs: { variant: [1, "variant"], items: [1, "items"], disabled: [1, "disabled"] }, outputs: { primaryClick: "primaryClick", selected: "selected" }, ngContentSelectors: _c2$e, decls: 8, vars: 12, consts: [["toggleBtn", "", "origin", "cdkOverlayOrigin"], ["panel", ""], [1, "kpt-split-button"], ["type", "button", 1, "kpt-split-button__main", 3, "click", "disabled"], ["type", "button", "cdkOverlayOrigin", "", "aria-haspopup", "menu", 1, "kpt-split-button__toggle", 3, "click", "keydown", "disabled"], ["name", "chevron-down"], ["cdkConnectedOverlay", "", "cdkConnectedOverlayBackdropClass", "cdk-overlay-transparent-backdrop", 3, "backdropClick", "attach", "detach", "cdkConnectedOverlayOrigin", "cdkConnectedOverlayOpen", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPush", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayHasBackdrop"], ["role", "menu", "tabindex", "-1", 1, "kpt-split-button__panel", 3, "keydown", "id"], ["role", "separator", 1, "kpt-split-button__separator"], ["role", "presentation", 1, "kpt-split-button__header"], ["type", "button", "role", "menuitem", "tabindex", "-1", 1, "kpt-split-button__item", 3, "kpt-split-button__item--danger", "disabled"], ["size", "sm", 3, "src", "name", "icon"], [3, "name"], [1, "kpt-split-button__text"], [1, "kpt-split-button__label"], [1, "kpt-split-button__description"], ["type", "button", "role", "menuitem", "tabindex", "-1", 1, "kpt-split-button__item", 3, "click", "disabled"], [1, "kpt-split-button__badge", 3, "value", "variant"]], template: function KptSplitButton_Template(rf, ctx) { if (rf & 1) {
1562
+ } }, hostAttrs: [1, "kpt-split-button-host"], inputs: { variant: [1, "variant"], items: [1, "items"], disabled: [1, "disabled"] }, outputs: { primaryClick: "primaryClick", selected: "selected" }, ngContentSelectors: _c2$g, decls: 8, vars: 12, consts: [["toggleBtn", "", "origin", "cdkOverlayOrigin"], ["panel", ""], [1, "kpt-split-button"], ["type", "button", 1, "kpt-split-button__main", 3, "click", "disabled"], ["type", "button", "cdkOverlayOrigin", "", "aria-haspopup", "menu", 1, "kpt-split-button__toggle", 3, "click", "keydown", "disabled"], ["name", "chevron-down"], ["cdkConnectedOverlay", "", "cdkConnectedOverlayBackdropClass", "cdk-overlay-transparent-backdrop", 3, "backdropClick", "attach", "detach", "cdkConnectedOverlayOrigin", "cdkConnectedOverlayOpen", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPush", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayHasBackdrop"], ["role", "menu", "tabindex", "-1", 1, "kpt-split-button__panel", 3, "keydown", "id"], ["role", "separator", 1, "kpt-split-button__separator"], ["role", "presentation", 1, "kpt-split-button__header"], ["type", "button", "role", "menuitem", "tabindex", "-1", 1, "kpt-split-button__item", 3, "kpt-split-button__item--danger", "disabled"], ["size", "sm", 3, "src", "name", "icon"], [3, "name"], [1, "kpt-split-button__text"], [1, "kpt-split-button__label"], [1, "kpt-split-button__description"], ["type", "button", "role", "menuitem", "tabindex", "-1", 1, "kpt-split-button__item", 3, "click", "disabled"], [1, "kpt-split-button__badge", 3, "value", "variant"]], template: function KptSplitButton_Template(rf, ctx) { if (rf & 1) {
1563
1563
  i0.ɵɵprojectionDef();
1564
1564
  i0.ɵɵelementStart(0, "div", 2)(1, "button", 3);
1565
1565
  i0.ɵɵlistener("click", function KptSplitButton_Template_button_click_1_listener() { return ctx.primaryClick.emit(); });
@@ -1954,8 +1954,8 @@ class KptSpinner {
1954
1954
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(KptSpinner, { className: "KptSpinner", filePath: "lib/spinner/spinner.component.ts", lineNumber: 31 }); })();
1955
1955
 
1956
1956
  const _c0$O = ["stage"];
1957
- const _c1$s = ["content"];
1958
- const _c2$d = ["*"];
1957
+ const _c1$t = ["content"];
1958
+ const _c2$f = ["*"];
1959
1959
  function KptLoader_Conditional_6_Template(rf, ctx) { if (rf & 1) {
1960
1960
  i0.ɵɵdomElementStart(0, "span", 5);
1961
1961
  i0.ɵɵtext(1);
@@ -2075,10 +2075,10 @@ class KptLoader {
2075
2075
  }
2076
2076
  static { this.ɵfac = function KptLoader_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || KptLoader)(); }; }
2077
2077
  static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: KptLoader, selectors: [["kpt-loader"]], viewQuery: function KptLoader_Query(rf, ctx) { if (rf & 1) {
2078
- i0.ɵɵviewQuerySignal(ctx.stage, _c0$O, 5)(ctx.content, _c1$s, 5);
2078
+ i0.ɵɵviewQuerySignal(ctx.stage, _c0$O, 5)(ctx.content, _c1$t, 5);
2079
2079
  } if (rf & 2) {
2080
2080
  i0.ɵɵqueryAdvance(2);
2081
- } }, hostAttrs: [1, "kpt-loader-host"], inputs: { variant: [1, "variant"], status: [1, "status"], value: [1, "value"], min: [1, "min"], max: [1, "max"], size: [1, "size"], colors: [1, "colors"], successColor: [1, "successColor"], errorColor: [1, "errorColor"], speed: [1, "speed"], label: [1, "label"], successLabel: [1, "successLabel"], errorLabel: [1, "errorLabel"], announce: [1, "announce"] }, outputs: { settled: "settled" }, ngContentSelectors: _c2$d, decls: 7, vars: 11, consts: [["stage", ""], ["content", ""], [1, "kpt-loader"], [1, "kpt-loader__stage"], [1, "kpt-loader__content"], ["role", "status", 1, "kpt-loader__label"]], template: function KptLoader_Template(rf, ctx) { if (rf & 1) {
2081
+ } }, hostAttrs: [1, "kpt-loader-host"], inputs: { variant: [1, "variant"], status: [1, "status"], value: [1, "value"], min: [1, "min"], max: [1, "max"], size: [1, "size"], colors: [1, "colors"], successColor: [1, "successColor"], errorColor: [1, "errorColor"], speed: [1, "speed"], label: [1, "label"], successLabel: [1, "successLabel"], errorLabel: [1, "errorLabel"], announce: [1, "announce"] }, outputs: { settled: "settled" }, ngContentSelectors: _c2$f, decls: 7, vars: 11, consts: [["stage", ""], ["content", ""], [1, "kpt-loader"], [1, "kpt-loader__stage"], [1, "kpt-loader__content"], ["role", "status", 1, "kpt-loader__label"]], template: function KptLoader_Template(rf, ctx) { if (rf & 1) {
2082
2082
  i0.ɵɵprojectionDef();
2083
2083
  i0.ɵɵdomElementStart(0, "span", 2);
2084
2084
  i0.ɵɵdomElement(1, "span", 3, 0);
@@ -2103,8 +2103,8 @@ class KptLoader {
2103
2103
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(KptLoader, { className: "KptLoader", filePath: "lib/loader/loader.component.ts", lineNumber: 58 }); })();
2104
2104
 
2105
2105
  const _c0$N = ["line"];
2106
- const _c1$r = ["buttonText"];
2107
- const _c2$c = ["*"];
2106
+ const _c1$s = ["buttonText"];
2107
+ const _c2$e = ["*"];
2108
2108
  function KptUpdate_ProjectionFallback_3_Template(rf, ctx) { if (rf & 1) {
2109
2109
  i0.ɵɵelement(0, "kpt-icon", 10);
2110
2110
  } }
@@ -2270,10 +2270,10 @@ class KptUpdate {
2270
2270
  }
2271
2271
  static { this.ɵfac = function KptUpdate_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || KptUpdate)(); }; }
2272
2272
  static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: KptUpdate, selectors: [["kpt-update"]], viewQuery: function KptUpdate_Query(rf, ctx) { if (rf & 1) {
2273
- i0.ɵɵviewQuerySignal(ctx.line, _c0$N, 5)(ctx.button, _c1$r, 5);
2273
+ i0.ɵɵviewQuerySignal(ctx.line, _c0$N, 5)(ctx.button, _c1$s, 5);
2274
2274
  } if (rf & 2) {
2275
2275
  i0.ɵɵqueryAdvance(2);
2276
- } }, hostAttrs: [1, "kpt-update-host"], inputs: { name: [1, "name"], status: [1, "status"], loaded: [1, "loaded"], total: [1, "total"], size: [1, "size"], color: [1, "color"], showAction: [1, "showAction"], pendingText: [1, "pendingText"], downloadingText: [1, "downloadingText"], successText: [1, "successText"], errorText: [1, "errorText"], updateLabel: [1, "updateLabel"], cancelLabel: [1, "cancelLabel"], openLabel: [1, "openLabel"], retryLabel: [1, "retryLabel"] }, outputs: { action: "action" }, ngContentSelectors: _c2$c, decls: 13, vars: 15, consts: [["line", ""], ["buttonText", ""], [1, "kpt-update"], ["variant", "ring", 1, "kpt-update__ring", 3, "status", "value", "max", "size", "colors", "label", "announce"], [1, "kpt-update__icon"], [1, "kpt-update__meta"], [1, "kpt-update__name"], ["aria-hidden", "true", 1, "kpt-update__line", "kpt-update__swap"], ["variant", "tonal", "size", "sm", 1, "kpt-update__action"], ["role", "status", 1, "kpt-update__live"], ["name", "download"], ["variant", "tonal", "size", "sm", 1, "kpt-update__action", 3, "click"], [1, "kpt-update__swap"]], template: function KptUpdate_Template(rf, ctx) { if (rf & 1) {
2276
+ } }, hostAttrs: [1, "kpt-update-host"], inputs: { name: [1, "name"], status: [1, "status"], loaded: [1, "loaded"], total: [1, "total"], size: [1, "size"], color: [1, "color"], showAction: [1, "showAction"], pendingText: [1, "pendingText"], downloadingText: [1, "downloadingText"], successText: [1, "successText"], errorText: [1, "errorText"], updateLabel: [1, "updateLabel"], cancelLabel: [1, "cancelLabel"], openLabel: [1, "openLabel"], retryLabel: [1, "retryLabel"] }, outputs: { action: "action" }, ngContentSelectors: _c2$e, decls: 13, vars: 15, consts: [["line", ""], ["buttonText", ""], [1, "kpt-update"], ["variant", "ring", 1, "kpt-update__ring", 3, "status", "value", "max", "size", "colors", "label", "announce"], [1, "kpt-update__icon"], [1, "kpt-update__meta"], [1, "kpt-update__name"], ["aria-hidden", "true", 1, "kpt-update__line", "kpt-update__swap"], ["variant", "tonal", "size", "sm", 1, "kpt-update__action"], ["role", "status", 1, "kpt-update__live"], ["name", "download"], ["variant", "tonal", "size", "sm", 1, "kpt-update__action", 3, "click"], [1, "kpt-update__swap"]], template: function KptUpdate_Template(rf, ctx) { if (rf & 1) {
2277
2277
  i0.ɵɵprojectionDef();
2278
2278
  i0.ɵɵelementStart(0, "div", 2)(1, "kpt-loader", 3)(2, "span", 4);
2279
2279
  i0.ɵɵprojection(3, 0, null, KptUpdate_ProjectionFallback_3_Template, 1, 0);
@@ -2545,9 +2545,9 @@ class KptSkeleton {
2545
2545
  const KPT_FORM_FIELD_CONTROL = new InjectionToken('KPT_FORM_FIELD_CONTROL');
2546
2546
 
2547
2547
  const _c0$L = ["control"];
2548
- const _c1$q = ["*"];
2549
- const _c2$b = a0 => ({ text: a0 });
2550
- const _c3$4 = a0 => [a0];
2548
+ const _c1$r = ["*"];
2549
+ const _c2$d = a0 => ({ text: a0 });
2550
+ const _c3$6 = a0 => [a0];
2551
2551
  const _forTrack0$h = ($index, $item) => $item.text;
2552
2552
  function KptFormField_Conditional_2_Conditional_2_Template(rf, ctx) { if (rf & 1) {
2553
2553
  i0.ɵɵdomElementStart(0, "span", 6);
@@ -2726,7 +2726,7 @@ class KptFormField {
2726
2726
  i0.ɵɵqueryAdvance();
2727
2727
  } }, hostAttrs: [1, "kpt-form-field-host"], hostBindings: function KptFormField_HostBindings(rf, ctx) { if (rf & 1) {
2728
2728
  i0.ɵɵlistener("input", function KptFormField_input_HostBindingHandler() { return ctx.updateFilled(); })("change", function KptFormField_change_HostBindingHandler() { return ctx.updateFilled(); });
2729
- } }, inputs: { label: [1, "label"], hint: [1, "hint"], error: [1, "error"], required: [1, "required"], controlId: [1, "controlId"], labelType: [1, "labelType"], enterMotion: [1, "enterMotion"] }, features: [i0.ɵɵProvidersFeature([{ provide: KPT_FORM_FIELD, useExisting: forwardRef(() => KptFormField) }])], ngContentSelectors: _c1$q, decls: 9, vars: 16, consts: [["control", ""], [1, "kpt-form-field"], [1, "kpt-form-field__box"], [1, "kpt-form-field__label", 3, "id"], [1, "kpt-form-field__control"], [1, "kpt-form-field__message", "kpt-form-field__message--hint", 3, "id"], ["aria-hidden", "true", 1, "kpt-form-field__required"], ["role", "alert", 1, "kpt-form-field__message", "kpt-form-field__message--error", 3, "id"]], template: function KptFormField_Template(rf, ctx) { if (rf & 1) {
2729
+ } }, inputs: { label: [1, "label"], hint: [1, "hint"], error: [1, "error"], required: [1, "required"], controlId: [1, "controlId"], labelType: [1, "labelType"], enterMotion: [1, "enterMotion"] }, features: [i0.ɵɵProvidersFeature([{ provide: KPT_FORM_FIELD, useExisting: forwardRef(() => KptFormField) }])], ngContentSelectors: _c1$r, decls: 9, vars: 16, consts: [["control", ""], [1, "kpt-form-field"], [1, "kpt-form-field__box"], [1, "kpt-form-field__label", 3, "id"], [1, "kpt-form-field__control"], [1, "kpt-form-field__message", "kpt-form-field__message--hint", 3, "id"], ["aria-hidden", "true", 1, "kpt-form-field__required"], ["role", "alert", 1, "kpt-form-field__message", "kpt-form-field__message--error", 3, "id"]], template: function KptFormField_Template(rf, ctx) { if (rf & 1) {
2730
2730
  i0.ɵɵprojectionDef();
2731
2731
  i0.ɵɵdomElementStart(0, "div", 1)(1, "div", 2);
2732
2732
  i0.ɵɵconditionalCreate(2, KptFormField_Conditional_2_Template, 3, 4, "label", 3);
@@ -2745,7 +2745,7 @@ class KptFormField {
2745
2745
  i0.ɵɵadvance();
2746
2746
  i0.ɵɵconditional(ctx.label() ? 2 : -1);
2747
2747
  i0.ɵɵadvance(4);
2748
- i0.ɵɵrepeater(i0.ɵɵpureFunction1(14, _c3$4, i0.ɵɵpureFunction1(12, _c2$b, ctx.error())));
2748
+ i0.ɵɵrepeater(i0.ɵɵpureFunction1(14, _c3$6, i0.ɵɵpureFunction1(12, _c2$d, ctx.error())));
2749
2749
  i0.ɵɵadvance(2);
2750
2750
  i0.ɵɵconditional(!ctx.error() && ctx.hint() ? 8 : -1);
2751
2751
  } }, styles: ["@layer kpt.components{.kpt-form-field,.kpt-form-field__box{display:flex;flex-direction:column;gap:var(--%NS%kpt-space-1, .25rem)}.kpt-form-field__label{font-size:var(--%NS%kpt-font-size-sm, .875rem);font-weight:var(--%NS%kpt-font-weight-medium, 500);color:var(--%NS%kpt-form-field-label)}.kpt-form-field__required{color:var(--%NS%kpt-color-danger);margin-inline-start:.25rem}.kpt-form-field__message{font-size:var(--%NS%kpt-font-size-xs, .75rem);line-height:var(--%NS%kpt-font-line-height-normal, 1.5)}.kpt-form-field__message--hint{color:var(--%NS%kpt-form-field-hint)}.kpt-form-field__message--error{color:var(--%NS%kpt-form-field-error)}.kpt-form-field--float .kpt-form-field__box{position:relative;display:block}.kpt-form-field--float .kpt-form-field__label{position:absolute;top:50%;left:var(--%NS%kpt-space-3, .75rem);margin:0;max-width:calc(100% - 2 * var(--%NS%kpt-space-3, .75rem));overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1;transform:translateY(-50%);transform-origin:left center;pointer-events:none;font-weight:var(--%NS%kpt-font-weight-normal, 400);color:var(--%NS%kpt-form-field-placeholder);transition:transform var(--%NS%kpt-motion-duration-fast, .12s) var(--%NS%kpt-motion-easing-standard),color var(--%NS%kpt-motion-duration-fast, .12s) var(--%NS%kpt-motion-easing-standard)}.kpt-form-field--float .kpt-form-field__box:focus-within .kpt-form-field__label{color:var(--%NS%kpt-form-field-border-focus)}.kpt-form-field--float.kpt-form-field--invalid .kpt-form-field__box:is(:focus-within,.is-filled) .kpt-form-field__label,.kpt-form-field--float.kpt-form-field--invalid .kpt-form-field__box:focus-within .kpt-form-field__label{color:var(--%NS%kpt-form-field-border-error)}.kpt-form-field--over .kpt-form-field__box{margin-top:1.1rem}.kpt-form-field--over .kpt-form-field__box:is(:focus-within,.is-filled) .kpt-form-field__label{left:0;transform:translateY(calc(-50% - 1.87rem)) scale(.85)}.kpt-form-field--in .kpt-form-field__control :is(input,textarea){height:3.25rem;padding-top:1.15rem}.kpt-form-field--in .kpt-form-field__control .kpt-select{min-height:3.25rem;padding-top:1.15rem}.kpt-form-field--in .kpt-form-field__box:is(:focus-within,.is-filled) .kpt-form-field__label{transform:translateY(calc(-50% - .95rem)) scale(.85)}.kpt-form-field--on .kpt-form-field__box:is(:focus-within,.is-filled) .kpt-form-field__label{left:calc(var(--%NS%kpt-space-3, .75rem) - .25rem);padding-inline:.25rem;background:var(--%NS%kpt-form-field-bg);transform:translateY(calc(-50% - 1.25rem)) scale(.85)}.kpt-form-field[data-live][data-motion=spring] .kpt-form-field__message{transition:opacity var(--%NS%kpt-motion-duration-base, .2s) var(--%NS%kpt-motion-easing-standard),translate var(--%NS%kpt-motion-duration-slow, .32s) linear(0,.0884,.2807,.4973,.692,.8441,.9493,1.013,1.0446,1.0542,1.0506,1.0406,1.0288,1.018,1.0094,1.0034,.9996,.9977,.9971,.9972,.9977,.9984,.999,.9994,.9998,1,1.0001,1.0002,1.0002,1.0001,1),filter var(--%NS%kpt-motion-duration-base, .2s) var(--%NS%kpt-motion-easing-standard)}@starting-style{.kpt-form-field[data-live][data-motion=spring] .kpt-form-field__message{opacity:0;translate:0 -.35rem;filter:blur(3px)}}.kpt-form-field[data-live][data-motion=fade] .kpt-form-field__message{transition:opacity var(--%NS%kpt-motion-duration-base, .2s) var(--%NS%kpt-motion-easing-standard)}@starting-style{.kpt-form-field[data-live][data-motion=fade] .kpt-form-field__message{opacity:0}}.kpt-form-field--float[data-motion=spring] .kpt-form-field__label{transition:transform calc(var(--%NS%kpt-motion-duration-slow, .32s) * 1.1) linear(0,.0884,.2807,.4973,.692,.8441,.9493,1.013,1.0446,1.0542,1.0506,1.0406,1.0288,1.018,1.0094,1.0034,.9996,.9977,.9971,.9972,.9977,.9984,.999,.9994,.9998,1,1.0001,1.0002,1.0002,1.0001,1),color var(--%NS%kpt-motion-duration-fast, .12s) var(--%NS%kpt-motion-easing-standard)}.kpt-form-field--float[data-motion=none] .kpt-form-field__label{transition:none}@media(prefers-reduced-motion:reduce){.kpt-form-field--float .kpt-form-field__label,.kpt-form-field--float[data-motion] .kpt-form-field__label,.kpt-form-field[data-live][data-motion] .kpt-form-field__message{transition:none}}}\n"], encapsulation: 2 }); }
@@ -3132,12 +3132,26 @@ class KptSpeechButton {
3132
3132
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(KptSpeechButton, { className: "KptSpeechButton", filePath: "lib/speech/speech-button.component.ts", lineNumber: 103 }); })();
3133
3133
 
3134
3134
  function KptInput_Conditional_2_Template(rf, ctx) { if (rf & 1) {
3135
- i0.ɵɵelement(0, "kpt-speech-button", 2);
3135
+ const _r3 = i0.ɵɵgetCurrentView();
3136
+ i0.ɵɵelementStart(0, "button", 4);
3137
+ i0.ɵɵlistener("mousedown", function KptInput_Conditional_2_Template_button_mousedown_0_listener($event) { return $event.preventDefault(); })("click", function KptInput_Conditional_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r3); const ctx_r3 = i0.ɵɵnextContext(); const fieldEl_r2 = i0.ɵɵreference(1); return i0.ɵɵresetView(ctx_r3.clear(fieldEl_r2)); });
3138
+ i0.ɵɵelement(1, "kpt-icon", 5);
3139
+ i0.ɵɵelementEnd();
3136
3140
  } if (rf & 2) {
3137
- const ctx_r0 = i0.ɵɵnextContext();
3141
+ const ctx_r3 = i0.ɵɵnextContext();
3142
+ i0.ɵɵattribute("aria-label", ctx_r3.i18n.t("input.clear"));
3143
+ } }
3144
+ function KptInput_Conditional_3_Template(rf, ctx) { if (rf & 1) {
3145
+ i0.ɵɵelement(0, "kpt-speech-button", 3);
3146
+ } if (rf & 2) {
3147
+ const ctx_r3 = i0.ɵɵnextContext();
3138
3148
  const fieldEl_r2 = i0.ɵɵreference(1);
3139
- i0.ɵɵproperty("target", fieldEl_r2)("lang", ctx_r0.speechLang())("listeningColor", ctx_r0.speechColor())("mode", ctx_r0.speechMode())("continuous", ctx_r0.speechMode() !== "replace")("disabled", ctx_r0.disabled() || ctx_r0.readonly());
3149
+ i0.ɵɵproperty("target", fieldEl_r2)("lang", ctx_r3.speechLang())("listeningColor", ctx_r3.speechColor())("mode", ctx_r3.speechMode())("continuous", ctx_r3.speechMode() !== "replace")("disabled", ctx_r3.disabled() || ctx_r3.readonly());
3140
3150
  } }
3151
+ /** `clearable` bez wartości (`<kpt-input clearable />`) to `true`, a brak atrybutu - "zależnie od typu". */
3152
+ function optionalBoolean(value) {
3153
+ return value === null || value === undefined ? null : booleanAttribute(value);
3154
+ }
3141
3155
  /**
3142
3156
  * Pole tekstowe Koncept UI zintegrowane z Angular Signal Forms.
3143
3157
  * Implementuje `FormValueControl<string>` - wiąż je dyrektywą `FormField`:
@@ -3185,6 +3199,15 @@ class KptInput {
3185
3199
  /** Podpowiedź autouzupełniania dla przeglądarki i menedżera haseł (np. 'email', 'current-password'). */
3186
3200
  this.autocomplete = input(null, /* @ts-ignore */
3187
3201
  ...(ngDevMode ? [{ debugName: "autocomplete" }] : /* istanbul ignore next */ []));
3202
+ /**
3203
+ * Przycisk czyszczenia na końcu pola. Bez ustawienia - włączony tylko dla `type="search"`,
3204
+ * gdzie zastępuje systemowe "x" (ukryte zawsze, także przy `clearable="false"`).
3205
+ */
3206
+ this.clearable = input(null, { ...(ngDevMode ? { debugName: "clearable" } : /* istanbul ignore next */ {}), transform: optionalBoolean });
3207
+ this.i18n = inject(KptI18n);
3208
+ /** Przycisk widać, gdy jest co czyścić i wolno to zrobić. */
3209
+ this.showClear = computed(() => (this.clearable() ?? this.type() === 'search') && this.value() !== '' && !this.disabled() && !this.readonly(), /* @ts-ignore */
3210
+ ...(ngDevMode ? [{ debugName: "showClear" }] : /* istanbul ignore next */ []));
3188
3211
  // -- Dyktowanie --
3189
3212
  /** Mikrofon w polu (Web Speech API). Bez wsparcia przeglądarki się nie pokazuje. */
3190
3213
  this.speech = input(false, { ...(ngDevMode ? { debugName: "speech" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
@@ -3215,38 +3238,61 @@ class KptInput {
3215
3238
  onInput(event) {
3216
3239
  this.value.set(event.target.value);
3217
3240
  }
3241
+ /**
3242
+ * Czyści pole zdarzeniem `input`, a nie samym `value.set('')`: zdarzenie przechodzi przez
3243
+ * `onInput` (model, Signal Forms) i wypływa z hosta, więc widzi je też słuchacz `(input)`
3244
+ * postawiony na `kpt-input`.
3245
+ */
3246
+ clear(field) {
3247
+ field.value = '';
3248
+ field.dispatchEvent(new Event('input', { bubbles: true }));
3249
+ field.focus();
3250
+ }
3251
+ /** Escape czyści pełne pole i nie idzie dalej - pierwszy nie zamyka okna, w którym pole stoi. */
3252
+ onEscape(event, field) {
3253
+ if (!this.showClear())
3254
+ return;
3255
+ event.preventDefault();
3256
+ event.stopPropagation();
3257
+ this.clear(field);
3258
+ }
3218
3259
  static { this.ɵfac = function KptInput_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || KptInput)(); }; }
3219
3260
  static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: KptInput, selectors: [["kpt-input"]], viewQuery: function KptInput_Query(rf, ctx) { if (rf & 1) {
3220
3261
  i0.ɵɵviewQuerySignal(ctx.mic, KptSpeechButton, 5);
3221
3262
  } if (rf & 2) {
3222
3263
  i0.ɵɵqueryAdvance();
3223
- } }, hostAttrs: [1, "kpt-input-host"], hostVars: 2, hostBindings: function KptInput_HostBindings(rf, ctx) { if (rf & 2) {
3224
- i0.ɵɵattribute("data-speech", ctx.speechState())("id", null);
3225
- } }, inputs: { value: [1, "value"], disabled: [1, "disabled"], readonly: [1, "readonly"], required: [1, "required"], invalid: [1, "invalid"], errors: [1, "errors"], touched: [1, "touched"], type: [1, "type"], placeholder: [1, "placeholder"], id: [1, "id"], ariaLabel: [1, "ariaLabel"], autocomplete: [1, "autocomplete"], speech: [1, "speech"], speechLang: [1, "speechLang"], speechColor: [1, "speechColor"], speechMode: [1, "speechMode"] }, outputs: { value: "valueChange", touch: "touch" }, decls: 3, vars: 12, consts: [["fieldEl", ""], [1, "kpt-input__field", 3, "input", "blur", "id", "type", "value", "placeholder", "disabled", "readOnly"], ["size", "sm", "unsupported", "hide", 1, "kpt-input__speech", 3, "target", "lang", "listeningColor", "mode", "continuous", "disabled"]], template: function KptInput_Template(rf, ctx) { if (rf & 1) {
3264
+ } }, hostAttrs: [1, "kpt-input-host"], hostVars: 3, hostBindings: function KptInput_HostBindings(rf, ctx) { if (rf & 2) {
3265
+ i0.ɵɵattribute("data-speech", ctx.speechState())("data-clear", ctx.showClear() ? "" : null)("id", null);
3266
+ } }, inputs: { value: [1, "value"], disabled: [1, "disabled"], readonly: [1, "readonly"], required: [1, "required"], invalid: [1, "invalid"], errors: [1, "errors"], touched: [1, "touched"], type: [1, "type"], placeholder: [1, "placeholder"], id: [1, "id"], ariaLabel: [1, "ariaLabel"], autocomplete: [1, "autocomplete"], clearable: [1, "clearable"], speech: [1, "speech"], speechLang: [1, "speechLang"], speechColor: [1, "speechColor"], speechMode: [1, "speechMode"] }, outputs: { value: "valueChange", touch: "touch" }, decls: 4, vars: 13, consts: [["fieldEl", ""], [1, "kpt-input__field", 3, "input", "keydown.escape", "blur", "id", "type", "value", "placeholder", "disabled", "readOnly"], ["type", "button", "tabindex", "-1", 1, "kpt-input__clear"], ["size", "sm", "unsupported", "hide", 1, "kpt-input__speech", 3, "target", "lang", "listeningColor", "mode", "continuous", "disabled"], ["type", "button", "tabindex", "-1", 1, "kpt-input__clear", 3, "mousedown", "click"], ["name", "x"]], template: function KptInput_Template(rf, ctx) { if (rf & 1) {
3267
+ const _r1 = i0.ɵɵgetCurrentView();
3226
3268
  i0.ɵɵelementStart(0, "input", 1, 0);
3227
- i0.ɵɵlistener("input", function KptInput_Template_input_input_0_listener($event) { return ctx.onInput($event); })("blur", function KptInput_Template_input_blur_0_listener() { return ctx.touch.emit(); });
3269
+ i0.ɵɵlistener("input", function KptInput_Template_input_input_0_listener($event) { return ctx.onInput($event); })("keydown.escape", function KptInput_Template_input_keydown_escape_0_listener($event) { i0.ɵɵrestoreView(_r1); const fieldEl_r2 = i0.ɵɵreference(1); return i0.ɵɵresetView(ctx.onEscape($event, fieldEl_r2)); })("blur", function KptInput_Template_input_blur_0_listener() { return ctx.touch.emit(); });
3228
3270
  i0.ɵɵelementEnd();
3229
- i0.ɵɵconditionalCreate(2, KptInput_Conditional_2_Template, 1, 6, "kpt-speech-button", 2);
3271
+ i0.ɵɵconditionalCreate(2, KptInput_Conditional_2_Template, 2, 1, "button", 2);
3272
+ i0.ɵɵconditionalCreate(3, KptInput_Conditional_3_Template, 1, 6, "kpt-speech-button", 3);
3230
3273
  } if (rf & 2) {
3231
3274
  i0.ɵɵproperty("id", ctx.field.id())("type", ctx.type())("value", ctx.value())("placeholder", ctx.placeholder())("disabled", ctx.disabled())("readOnly", ctx.readonly());
3232
3275
  i0.ɵɵattribute("aria-required", ctx.required() ? "true" : null)("aria-label", ctx.ariaLabel())("autocomplete", ctx.autocomplete())("aria-invalid", ctx.showInvalid() ? "true" : null)("aria-describedby", ctx.field.describedBy());
3233
3276
  i0.ɵɵadvance(2);
3234
- i0.ɵɵconditional(ctx.speech() ? 2 : -1);
3235
- } }, dependencies: [KptSpeechButton], styles: ["@layer kpt.components{.kpt-input-host{display:block}.kpt-input__field{display:block;width:100%;box-sizing:border-box;height:2.5rem;padding-inline:var(--%NS%kpt-space-3, .75rem);border:var(--%NS%kpt-border-width-thin, 1px) solid var(--%NS%kpt-form-field-border);border-radius:var(--%NS%kpt-form-field-radius, .5rem);font-family:inherit;font-size:var(--%NS%kpt-font-size-sm, .875rem);color:var(--%NS%kpt-form-field-text);background-color:var(--%NS%kpt-form-field-bg);transition:border-color var(--%NS%kpt-motion-duration-fast, .12s) var(--%NS%kpt-motion-easing-standard),box-shadow var(--%NS%kpt-motion-duration-fast, .12s) var(--%NS%kpt-motion-easing-standard)}.kpt-input__field::placeholder{color:var(--%NS%kpt-form-field-placeholder)}.kpt-input__field:hover:not(:disabled):not([aria-invalid=true]){border-color:var(--%NS%kpt-form-field-border-hover)}.kpt-input__field:focus-visible{outline:none;border-color:var(--%NS%kpt-form-field-border-focus);box-shadow:0 0 0 2px color-mix(in oklch,var(--%NS%kpt-form-field-border-focus) 30%,transparent)}.kpt-input__field[aria-invalid=true]{border-color:var(--%NS%kpt-form-field-border-error)}.kpt-input__field[aria-invalid=true]:focus-visible{box-shadow:0 0 0 2px color-mix(in oklch,var(--%NS%kpt-form-field-border-error) 30%,transparent)}.kpt-input__field:disabled{cursor:not-allowed;opacity:.6;background-color:var(--%NS%kpt-color-surface-variant)}.kpt-input-host[data-speech]{position:relative}.kpt-input-host[data-speech] .kpt-input__field{padding-inline-end:2.5rem;transition-property:border-color,box-shadow,padding-inline-end}.kpt-input-host[data-speech=listening] .kpt-input__field{padding-inline-end:4.5rem}.kpt-input__speech{position:absolute;inset-block:0;inset-inline-end:var(--%NS%kpt-space-1, .25rem);gap:var(--%NS%kpt-space-1, .25rem)}}\n"], encapsulation: 2 }); }
3277
+ i0.ɵɵconditional(ctx.showClear() ? 2 : -1);
3278
+ i0.ɵɵadvance();
3279
+ i0.ɵɵconditional(ctx.speech() ? 3 : -1);
3280
+ } }, dependencies: [KptIcon, KptSpeechButton], styles: ["@layer kpt.components{.kpt-input-host{display:block}.kpt-input__field{display:block;width:100%;box-sizing:border-box;height:2.5rem;padding-inline:var(--%NS%kpt-space-3, .75rem);border:var(--%NS%kpt-border-width-thin, 1px) solid var(--%NS%kpt-form-field-border);border-radius:var(--%NS%kpt-form-field-radius, .5rem);font-family:inherit;font-size:var(--%NS%kpt-font-size-sm, .875rem);color:var(--%NS%kpt-form-field-text);background-color:var(--%NS%kpt-form-field-bg);transition:border-color var(--%NS%kpt-motion-duration-fast, .12s) var(--%NS%kpt-motion-easing-standard),box-shadow var(--%NS%kpt-motion-duration-fast, .12s) var(--%NS%kpt-motion-easing-standard)}.kpt-input__field::placeholder{color:var(--%NS%kpt-form-field-placeholder)}.kpt-input__field:hover:not(:disabled):not([aria-invalid=true]){border-color:var(--%NS%kpt-form-field-border-hover)}.kpt-input__field:focus-visible{outline:none;border-color:var(--%NS%kpt-form-field-border-focus);box-shadow:0 0 0 2px color-mix(in oklch,var(--%NS%kpt-form-field-border-focus) 30%,transparent)}.kpt-input__field[aria-invalid=true]{border-color:var(--%NS%kpt-form-field-border-error)}.kpt-input__field[aria-invalid=true]:focus-visible{box-shadow:0 0 0 2px color-mix(in oklch,var(--%NS%kpt-form-field-border-error) 30%,transparent)}.kpt-input__field:disabled{cursor:not-allowed;opacity:.6;background-color:var(--%NS%kpt-color-surface-variant)}.kpt-input-host[data-speech]{position:relative}.kpt-input-host[data-speech] .kpt-input__field{padding-inline-end:2.5rem;transition-property:border-color,box-shadow,padding-inline-end}.kpt-input-host[data-speech=listening] .kpt-input__field{padding-inline-end:4.5rem}.kpt-input__speech{position:absolute;inset-block:0;inset-inline-end:var(--%NS%kpt-space-1, .25rem);gap:var(--%NS%kpt-space-1, .25rem)}.kpt-input__field::-webkit-search-cancel-button{appearance:none;display:none}.kpt-input-host[data-clear]{position:relative;--%NS%_clear-end: var(--%NS%kpt-space-1, .25rem)}.kpt-input-host[data-clear][data-speech]{--%NS%_clear-end: 2.25rem}.kpt-input-host[data-clear][data-speech=listening]{--%NS%_clear-end: 4.25rem}.kpt-input-host[data-clear] .kpt-input__field{padding-inline-end:calc(var(--%NS%_clear-end) + 2rem);transition-property:border-color,box-shadow,padding-inline-end}.kpt-input__clear{position:absolute;inset-block:0;inset-inline-end:var(--%NS%_clear-end);display:inline-flex;align-items:center;justify-content:center;width:1.75rem;height:1.75rem;margin-block:auto;padding:0;border:0;border-radius:var(--%NS%kpt-radius-full, 9999px);background:transparent;color:var(--%NS%kpt-form-field-placeholder);font-size:1rem;cursor:pointer;transition:color var(--%NS%kpt-motion-duration-fast, .12s) var(--%NS%kpt-motion-easing-standard),background-color var(--%NS%kpt-motion-duration-fast, .12s) var(--%NS%kpt-motion-easing-standard),scale calc(var(--%NS%_press-t, .45s) * var(--%NS%kpt-motion-scale, 1)) var(--%NS%_press-e, linear(0, .0884, .2807, .4973, .692, .8441, .9493, 1.013, 1.0446, 1.0542, 1.0506, 1.0406, 1.0288, 1.018, 1.0094, 1.0034, .9996, .9977, .9971, .9972, .9977, .9984, .999, .9994, .9998, 1, 1.0001, 1.0002, 1.0002, 1.0001, 1))}.kpt-input__clear:active:not(:disabled):not([aria-disabled=true]){--%NS%_press-t: .08s;--%NS%_press-e: ease-out;scale:.9}@media(prefers-reduced-motion:reduce){.kpt-input__clear:active:not(:disabled):not([aria-disabled=true]){scale:none}}.kpt-input__clear:hover{color:var(--%NS%kpt-form-field-text);background:var(--%NS%kpt-color-surface-variant)}}\n"], encapsulation: 2 }); }
3236
3281
  }
3237
3282
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(KptInput, [{
3238
3283
  type: Component,
3239
- args: [{ selector: 'kpt-input', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [KptSpeechButton], host: {
3284
+ args: [{ selector: 'kpt-input', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [KptIcon, KptSpeechButton], host: {
3240
3285
  class: 'kpt-input-host',
3241
3286
  '[attr.data-speech]': 'speechState()',
3287
+ '[attr.data-clear]': "showClear() ? '' : null",
3242
3288
  // id należy wyłącznie do wewnętrznego <input> (powiązanie label[for]); host go nie nosi
3243
3289
  '[attr.id]': 'null',
3244
- }, template: "<input\n #fieldEl\n class=\"kpt-input__field\"\n [id]=\"field.id()\"\n [type]=\"type()\"\n [value]=\"value()\"\n [placeholder]=\"placeholder()\"\n [disabled]=\"disabled()\"\n [readOnly]=\"readonly()\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.aria-invalid]=\"showInvalid() ? 'true' : null\"\n [attr.aria-describedby]=\"field.describedBy()\"\n (input)=\"onInput($event)\"\n (blur)=\"touch.emit()\"\n/>\n@if (speech()) {\n <!-- Mikrofon w polu: tekst zatwierdzony wchodzi przez `(input)` jak wpisany, wi\u0119c model\n i Signal Forms dostaj\u0105 go bez osobnej \u015Bcie\u017Cki. Bez wsparcia przegl\u0105darki znika. -->\n <kpt-speech-button\n class=\"kpt-input__speech\"\n size=\"sm\"\n unsupported=\"hide\"\n [target]=\"fieldEl\"\n [lang]=\"speechLang()\"\n [listeningColor]=\"speechColor()\"\n [mode]=\"speechMode()\"\n [continuous]=\"speechMode() !== 'replace'\"\n [disabled]=\"disabled() || readonly()\"\n />\n}\n", styles: ["@layer kpt.components{.kpt-input-host{display:block}.kpt-input__field{display:block;width:100%;box-sizing:border-box;height:2.5rem;padding-inline:var(--kpt-space-3, .75rem);border:var(--kpt-border-width-thin, 1px) solid var(--kpt-form-field-border);border-radius:var(--kpt-form-field-radius, .5rem);font-family:inherit;font-size:var(--kpt-font-size-sm, .875rem);color:var(--kpt-form-field-text);background-color:var(--kpt-form-field-bg);transition:border-color var(--kpt-motion-duration-fast, .12s) var(--kpt-motion-easing-standard),box-shadow var(--kpt-motion-duration-fast, .12s) var(--kpt-motion-easing-standard)}.kpt-input__field::placeholder{color:var(--kpt-form-field-placeholder)}.kpt-input__field:hover:not(:disabled):not([aria-invalid=true]){border-color:var(--kpt-form-field-border-hover)}.kpt-input__field:focus-visible{outline:none;border-color:var(--kpt-form-field-border-focus);box-shadow:0 0 0 2px color-mix(in oklch,var(--kpt-form-field-border-focus) 30%,transparent)}.kpt-input__field[aria-invalid=true]{border-color:var(--kpt-form-field-border-error)}.kpt-input__field[aria-invalid=true]:focus-visible{box-shadow:0 0 0 2px color-mix(in oklch,var(--kpt-form-field-border-error) 30%,transparent)}.kpt-input__field:disabled{cursor:not-allowed;opacity:.6;background-color:var(--kpt-color-surface-variant)}.kpt-input-host[data-speech]{position:relative}.kpt-input-host[data-speech] .kpt-input__field{padding-inline-end:2.5rem;transition-property:border-color,box-shadow,padding-inline-end}.kpt-input-host[data-speech=listening] .kpt-input__field{padding-inline-end:4.5rem}.kpt-input__speech{position:absolute;inset-block:0;inset-inline-end:var(--kpt-space-1, .25rem);gap:var(--kpt-space-1, .25rem)}}\n"] }]
3245
- }], null, { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], errors: [{ type: i0.Input, args: [{ isSignal: true, alias: "errors", required: false }] }], touched: [{ type: i0.Input, args: [{ isSignal: true, alias: "touched", required: false }] }], touch: [{ type: i0.Output, args: ["touch"] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], autocomplete: [{ type: i0.Input, args: [{ isSignal: true, alias: "autocomplete", required: false }] }], speech: [{ type: i0.Input, args: [{ isSignal: true, alias: "speech", required: false }] }], speechLang: [{ type: i0.Input, args: [{ isSignal: true, alias: "speechLang", required: false }] }], speechColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "speechColor", required: false }] }], speechMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "speechMode", required: false }] }], mic: [{ type: i0.ViewChild, args: [i0.forwardRef(() => KptSpeechButton), { isSignal: true }] }] }); })();
3246
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(KptInput, { className: "KptInput", filePath: "lib/input/input.component.ts", lineNumber: 54 }); })();
3290
+ }, template: "<input\n #fieldEl\n class=\"kpt-input__field\"\n [id]=\"field.id()\"\n [type]=\"type()\"\n [value]=\"value()\"\n [placeholder]=\"placeholder()\"\n [disabled]=\"disabled()\"\n [readOnly]=\"readonly()\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.aria-invalid]=\"showInvalid() ? 'true' : null\"\n [attr.aria-describedby]=\"field.describedBy()\"\n (input)=\"onInput($event)\"\n (keydown.escape)=\"onEscape($event, fieldEl)\"\n (blur)=\"touch.emit()\"\n/>\n@if (showClear()) {\n <!-- Zamiast systemowego \"x\" pola `search`: ten sam w ka\u017Cdej przegl\u0105darce, z token\u00F3w i z etykiet\u0105\n z i18n. Poza kolejno\u015Bci\u0105 Tab (jak przyciski `kpt-input-number`) - z klawiatury czy\u015Bci Escape,\n a `mousedown` nie zabiera fokusu polu. -->\n <button\n type=\"button\"\n class=\"kpt-input__clear\"\n tabindex=\"-1\"\n [attr.aria-label]=\"i18n.t('input.clear')\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"clear(fieldEl)\"\n >\n <kpt-icon name=\"x\" />\n </button>\n}\n@if (speech()) {\n <!-- Mikrofon w polu: tekst zatwierdzony wchodzi przez `(input)` jak wpisany, wi\u0119c model\n i Signal Forms dostaj\u0105 go bez osobnej \u015Bcie\u017Cki. Bez wsparcia przegl\u0105darki znika. -->\n <kpt-speech-button\n class=\"kpt-input__speech\"\n size=\"sm\"\n unsupported=\"hide\"\n [target]=\"fieldEl\"\n [lang]=\"speechLang()\"\n [listeningColor]=\"speechColor()\"\n [mode]=\"speechMode()\"\n [continuous]=\"speechMode() !== 'replace'\"\n [disabled]=\"disabled() || readonly()\"\n />\n}\n", styles: ["@layer kpt.components{.kpt-input-host{display:block}.kpt-input__field{display:block;width:100%;box-sizing:border-box;height:2.5rem;padding-inline:var(--kpt-space-3, .75rem);border:var(--kpt-border-width-thin, 1px) solid var(--kpt-form-field-border);border-radius:var(--kpt-form-field-radius, .5rem);font-family:inherit;font-size:var(--kpt-font-size-sm, .875rem);color:var(--kpt-form-field-text);background-color:var(--kpt-form-field-bg);transition:border-color var(--kpt-motion-duration-fast, .12s) var(--kpt-motion-easing-standard),box-shadow var(--kpt-motion-duration-fast, .12s) var(--kpt-motion-easing-standard)}.kpt-input__field::placeholder{color:var(--kpt-form-field-placeholder)}.kpt-input__field:hover:not(:disabled):not([aria-invalid=true]){border-color:var(--kpt-form-field-border-hover)}.kpt-input__field:focus-visible{outline:none;border-color:var(--kpt-form-field-border-focus);box-shadow:0 0 0 2px color-mix(in oklch,var(--kpt-form-field-border-focus) 30%,transparent)}.kpt-input__field[aria-invalid=true]{border-color:var(--kpt-form-field-border-error)}.kpt-input__field[aria-invalid=true]:focus-visible{box-shadow:0 0 0 2px color-mix(in oklch,var(--kpt-form-field-border-error) 30%,transparent)}.kpt-input__field:disabled{cursor:not-allowed;opacity:.6;background-color:var(--kpt-color-surface-variant)}.kpt-input-host[data-speech]{position:relative}.kpt-input-host[data-speech] .kpt-input__field{padding-inline-end:2.5rem;transition-property:border-color,box-shadow,padding-inline-end}.kpt-input-host[data-speech=listening] .kpt-input__field{padding-inline-end:4.5rem}.kpt-input__speech{position:absolute;inset-block:0;inset-inline-end:var(--kpt-space-1, .25rem);gap:var(--kpt-space-1, .25rem)}.kpt-input__field::-webkit-search-cancel-button{appearance:none;display:none}.kpt-input-host[data-clear]{position:relative;--_clear-end: var(--kpt-space-1, .25rem)}.kpt-input-host[data-clear][data-speech]{--_clear-end: 2.25rem}.kpt-input-host[data-clear][data-speech=listening]{--_clear-end: 4.25rem}.kpt-input-host[data-clear] .kpt-input__field{padding-inline-end:calc(var(--_clear-end) + 2rem);transition-property:border-color,box-shadow,padding-inline-end}.kpt-input__clear{position:absolute;inset-block:0;inset-inline-end:var(--_clear-end);display:inline-flex;align-items:center;justify-content:center;width:1.75rem;height:1.75rem;margin-block:auto;padding:0;border:0;border-radius:var(--kpt-radius-full, 9999px);background:transparent;color:var(--kpt-form-field-placeholder);font-size:1rem;cursor:pointer;transition:color var(--kpt-motion-duration-fast, .12s) var(--kpt-motion-easing-standard),background-color var(--kpt-motion-duration-fast, .12s) var(--kpt-motion-easing-standard),scale calc(var(--_press-t, .45s) * var(--kpt-motion-scale, 1)) var(--_press-e, linear(0, .0884, .2807, .4973, .692, .8441, .9493, 1.013, 1.0446, 1.0542, 1.0506, 1.0406, 1.0288, 1.018, 1.0094, 1.0034, .9996, .9977, .9971, .9972, .9977, .9984, .999, .9994, .9998, 1, 1.0001, 1.0002, 1.0002, 1.0001, 1))}.kpt-input__clear:active:not(:disabled):not([aria-disabled=true]){--_press-t: .08s;--_press-e: ease-out;scale:.9}@media(prefers-reduced-motion:reduce){.kpt-input__clear:active:not(:disabled):not([aria-disabled=true]){scale:none}}.kpt-input__clear:hover{color:var(--kpt-form-field-text);background:var(--kpt-color-surface-variant)}}\n"] }]
3291
+ }], null, { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], errors: [{ type: i0.Input, args: [{ isSignal: true, alias: "errors", required: false }] }], touched: [{ type: i0.Input, args: [{ isSignal: true, alias: "touched", required: false }] }], touch: [{ type: i0.Output, args: ["touch"] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], autocomplete: [{ type: i0.Input, args: [{ isSignal: true, alias: "autocomplete", required: false }] }], clearable: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearable", required: false }] }], speech: [{ type: i0.Input, args: [{ isSignal: true, alias: "speech", required: false }] }], speechLang: [{ type: i0.Input, args: [{ isSignal: true, alias: "speechLang", required: false }] }], speechColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "speechColor", required: false }] }], speechMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "speechMode", required: false }] }], mic: [{ type: i0.ViewChild, args: [i0.forwardRef(() => KptSpeechButton), { isSignal: true }] }] }); })();
3292
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(KptInput, { className: "KptInput", filePath: "lib/input/input.component.ts", lineNumber: 63 }); })();
3247
3293
 
3248
3294
  const _c0$J = ["mark"];
3249
- const _c1$p = ["*"];
3295
+ const _c1$q = ["*"];
3250
3296
  function KptCheckbox_Conditional_9_Template(rf, ctx) { if (rf & 1) {
3251
3297
  i0.ɵɵdomElementStart(0, "span", 9);
3252
3298
  i0.ɵɵtext(1);
@@ -3344,7 +3390,7 @@ class KptCheckbox {
3344
3390
  i0.ɵɵqueryAdvance();
3345
3391
  } }, hostAttrs: [1, "kpt-checkbox-host"], hostVars: 1, hostBindings: function KptCheckbox_HostBindings(rf, ctx) { if (rf & 2) {
3346
3392
  i0.ɵɵattribute("id", null);
3347
- } }, inputs: { checked: [1, "checked"], indeterminate: [1, "indeterminate"], disabled: [1, "disabled"], required: [1, "required"], readonly: [1, "readonly"], id: [1, "id"], ariaLabel: [1, "ariaLabel"], invalid: [1, "invalid"], touched: [1, "touched"], label: [1, "label"], toggleMotion: [1, "toggleMotion"] }, outputs: { checked: "checkedChange", indeterminate: "indeterminateChange", touch: "touch" }, ngContentSelectors: _c1$p, decls: 11, vars: 13, consts: [["box", ""], ["mark", ""], [1, "kpt-checkbox"], ["type", "checkbox", 1, "kpt-checkbox__input", 3, "click", "change", "blur", "id", "checked", "indeterminate", "disabled"], ["aria-hidden", "true", 1, "kpt-checkbox__box"], ["viewBox", "0 0 16 16", 1, "kpt-checkbox__check"], ["d", "M13 4.5 6.5 11 3 7.5", "pathLength", "1"], ["viewBox", "0 0 16 16", 1, "kpt-checkbox__dash"], ["d", "M4 8h8"], [1, "kpt-checkbox__label"]], template: function KptCheckbox_Template(rf, ctx) { if (rf & 1) {
3393
+ } }, inputs: { checked: [1, "checked"], indeterminate: [1, "indeterminate"], disabled: [1, "disabled"], required: [1, "required"], readonly: [1, "readonly"], id: [1, "id"], ariaLabel: [1, "ariaLabel"], invalid: [1, "invalid"], touched: [1, "touched"], label: [1, "label"], toggleMotion: [1, "toggleMotion"] }, outputs: { checked: "checkedChange", indeterminate: "indeterminateChange", touch: "touch" }, ngContentSelectors: _c1$q, decls: 11, vars: 13, consts: [["box", ""], ["mark", ""], [1, "kpt-checkbox"], ["type", "checkbox", 1, "kpt-checkbox__input", 3, "click", "change", "blur", "id", "checked", "indeterminate", "disabled"], ["aria-hidden", "true", 1, "kpt-checkbox__box"], ["viewBox", "0 0 16 16", 1, "kpt-checkbox__check"], ["d", "M13 4.5 6.5 11 3 7.5", "pathLength", "1"], ["viewBox", "0 0 16 16", 1, "kpt-checkbox__dash"], ["d", "M4 8h8"], [1, "kpt-checkbox__label"]], template: function KptCheckbox_Template(rf, ctx) { if (rf & 1) {
3348
3394
  const _r1 = i0.ɵɵgetCurrentView();
3349
3395
  i0.ɵɵprojectionDef();
3350
3396
  i0.ɵɵdomElementStart(0, "label", 2)(1, "input", 3, 0);
@@ -3927,7 +3973,7 @@ function isTypeaheadKey(event) {
3927
3973
  }
3928
3974
 
3929
3975
  const _c0$H = ["triggerEl"];
3930
- const _c1$o = ["searchEl"];
3976
+ const _c1$p = ["searchEl"];
3931
3977
  const _forTrack0$e = ($index, $item) => $item.value;
3932
3978
  function KptSelect_Conditional_4_For_1_Conditional_2_Template(rf, ctx) { if (rf & 1) {
3933
3979
  const _r1 = i0.ɵɵgetCurrentView();
@@ -4312,7 +4358,7 @@ class KptSelect {
4312
4358
  }
4313
4359
  static { this.ɵfac = function KptSelect_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || KptSelect)(); }; }
4314
4360
  static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: KptSelect, selectors: [["kpt-select"]], viewQuery: function KptSelect_Query(rf, ctx) { if (rf & 1) {
4315
- i0.ɵɵviewQuerySignal(ctx.triggerEl, _c0$H, 5)(ctx.searchEl, _c1$o, 5);
4361
+ i0.ɵɵviewQuerySignal(ctx.triggerEl, _c0$H, 5)(ctx.searchEl, _c1$p, 5);
4316
4362
  } if (rf & 2) {
4317
4363
  i0.ɵɵqueryAdvance(2);
4318
4364
  } }, hostAttrs: [1, "kpt-select-host"], hostVars: 1, hostBindings: function KptSelect_HostBindings(rf, ctx) { if (rf & 2) {
@@ -10283,9 +10329,9 @@ function kptPasswordScore(value) {
10283
10329
  }
10284
10330
 
10285
10331
  const _c0$C = ["box"];
10286
- const _c1$n = () => [0, 1, 2, 3];
10287
- const _c2$a = a0 => ({ label: a0 });
10288
- const _c3$3 = a0 => [a0];
10332
+ const _c1$o = () => [0, 1, 2, 3];
10333
+ const _c2$c = a0 => ({ label: a0 });
10334
+ const _c3$5 = a0 => [a0];
10289
10335
  const _forTrack0$7 = ($index, $item) => $item.label;
10290
10336
  function KptPassword_Conditional_5_For_3_Template(rf, ctx) { if (rf & 1) {
10291
10337
  i0.ɵɵelement(0, "span", 9);
@@ -10315,9 +10361,9 @@ function KptPassword_Conditional_5_Template(rf, ctx) { if (rf & 1) {
10315
10361
  i0.ɵɵproperty("id", ctx_r1.meterId());
10316
10362
  i0.ɵɵattribute("data-score", ctx_r1.strength().score);
10317
10363
  i0.ɵɵadvance(2);
10318
- i0.ɵɵrepeater(i0.ɵɵpureFunction0(2, _c1$n));
10364
+ i0.ɵɵrepeater(i0.ɵɵpureFunction0(2, _c1$o));
10319
10365
  i0.ɵɵadvance(2);
10320
- i0.ɵɵrepeater(i0.ɵɵpureFunction1(5, _c3$3, i0.ɵɵpureFunction1(3, _c2$a, ctx_r1.strength().label)));
10366
+ i0.ɵɵrepeater(i0.ɵɵpureFunction1(5, _c3$5, i0.ɵɵpureFunction1(3, _c2$c, ctx_r1.strength().label)));
10321
10367
  } }
10322
10368
  /**
10323
10369
  * Pole hasła z przełącznikiem widoczności i opcjonalnym miernikiem siły. Signal Forms.
@@ -11620,7 +11666,7 @@ class KptKnob {
11620
11666
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(KptKnob, { className: "KptKnob", filePath: "lib/knob/knob.component.ts", lineNumber: 81 }); })();
11621
11667
 
11622
11668
  const _c0$A = ["*", [["", "kptCardFooter", ""]]];
11623
- const _c1$m = ["*", "[kptCardFooter]"];
11669
+ const _c1$n = ["*", "[kptCardFooter]"];
11624
11670
  function KptCard_Conditional_0_Template(rf, ctx) { if (rf & 1) {
11625
11671
  i0.ɵɵdomElementStart(0, "div", 0);
11626
11672
  i0.ɵɵtext(1);
@@ -11665,7 +11711,7 @@ class KptCard {
11665
11711
  static { this.ɵfac = function KptCard_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || KptCard)(); }; }
11666
11712
  static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: KptCard, selectors: [["kpt-card"]], hostAttrs: [1, "kpt-card"], hostVars: 1, hostBindings: function KptCard_HostBindings(rf, ctx) { if (rf & 2) {
11667
11713
  i0.ɵɵattribute("data-variant", ctx.variant());
11668
- } }, inputs: { variant: [1, "variant"], header: [1, "header"], headingLevel: [1, "headingLevel"], flush: [1, "flush"] }, ngContentSelectors: _c1$m, decls: 4, vars: 3, consts: [[1, "kpt-card__header"], [1, "kpt-card__body"]], template: function KptCard_Template(rf, ctx) { if (rf & 1) {
11714
+ } }, inputs: { variant: [1, "variant"], header: [1, "header"], headingLevel: [1, "headingLevel"], flush: [1, "flush"] }, ngContentSelectors: _c1$n, decls: 4, vars: 3, consts: [[1, "kpt-card__header"], [1, "kpt-card__body"]], template: function KptCard_Template(rf, ctx) { if (rf & 1) {
11669
11715
  i0.ɵɵprojectionDef(_c0$A);
11670
11716
  i0.ɵɵconditionalCreate(0, KptCard_Conditional_0_Template, 2, 3, "div", 0);
11671
11717
  i0.ɵɵdomElementStart(1, "div", 1);
@@ -11772,7 +11818,7 @@ class KptToolbar {
11772
11818
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(KptToolbar, { className: "KptToolbar", filePath: "lib/toolbar/toolbar.component.ts", lineNumber: 27 }); })();
11773
11819
 
11774
11820
  const _c0$y = ["*", [["", "kptSidenavFooter", ""]]];
11775
- const _c1$l = ["*", "[kptSidenavFooter]"];
11821
+ const _c1$m = ["*", "[kptSidenavFooter]"];
11776
11822
  /**
11777
11823
  * Panel boczny (sidenav) - stylowany kontener nawigacji, zwykle umieszczany w slocie
11778
11824
  * `kptShellSidenav` komponentu `kpt-app-shell`.
@@ -11792,7 +11838,7 @@ const _c1$l = ["*", "[kptSidenavFooter]"];
11792
11838
  */
11793
11839
  class KptSidenav {
11794
11840
  static { this.ɵfac = function KptSidenav_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || KptSidenav)(); }; }
11795
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: KptSidenav, selectors: [["kpt-sidenav"]], hostAttrs: [1, "kpt-sidenav"], ngContentSelectors: _c1$l, decls: 3, vars: 0, consts: [[1, "kpt-sidenav__scroll"]], template: function KptSidenav_Template(rf, ctx) { if (rf & 1) {
11841
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: KptSidenav, selectors: [["kpt-sidenav"]], hostAttrs: [1, "kpt-sidenav"], ngContentSelectors: _c1$m, decls: 3, vars: 0, consts: [[1, "kpt-sidenav__scroll"]], template: function KptSidenav_Template(rf, ctx) { if (rf & 1) {
11796
11842
  i0.ɵɵprojectionDef(_c0$y);
11797
11843
  i0.ɵɵdomElementStart(0, "div", 0);
11798
11844
  i0.ɵɵprojection(1);
@@ -11807,7 +11853,7 @@ class KptSidenav {
11807
11853
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(KptSidenav, { className: "KptSidenav", filePath: "lib/sidenav/sidenav.component.ts", lineNumber: 30 }); })();
11808
11854
 
11809
11855
  const _c0$x = [[["", "kptShellToolbar", ""]], [["", "kptShellSidenav", ""]], "*"];
11810
- const _c1$k = ["[kptShellToolbar]", "[kptShellSidenav]", "*"];
11856
+ const _c1$l = ["[kptShellToolbar]", "[kptShellSidenav]", "*"];
11811
11857
  /** Pierwszy element panelu, który przyjmie fokus po otwarciu nakładki. */
11812
11858
  const FOCUSABLE$1 = 'a[href], button:not(:disabled), input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex="-1"])';
11813
11859
  /**
@@ -11970,7 +12016,7 @@ class KptAppShell {
11970
12016
  } if (rf & 2) {
11971
12017
  i0.ɵɵattribute("data-sidenav-mode", ctx.sidenavMode())("data-sidenav-breakpoint", ctx.sidenavBreakpoint())("data-sidenav-rail", ctx.sidenavRailBreakpoint());
11972
12018
  i0.ɵɵclassProp("kpt-app-shell--nav-open", ctx.sidenavOpen())("kpt-app-shell--nav-compact-open", ctx.sidenavCompactOpen());
11973
- } }, inputs: { sidenavOpen: [1, "sidenavOpen"], sidenavCompactOpen: [1, "sidenavCompactOpen"], sidenavMode: [1, "sidenavMode"], sidenavBreakpoint: [1, "sidenavBreakpoint"], sidenavRailBreakpoint: [1, "sidenavRailBreakpoint"], sidenavLabel: [1, "sidenavLabel"] }, outputs: { sidenavOpen: "sidenavOpenChange", sidenavCompactOpen: "sidenavCompactOpenChange" }, ngContentSelectors: _c1$k, decls: 7, vars: 3, consts: [[1, "kpt-app-shell__body"], ["tabindex", "-1", 1, "kpt-app-shell__sidenav", 3, "id"], ["aria-hidden", "true", 1, "kpt-app-shell__scrim", 3, "click"], ["cdkScrollable", "", 1, "kpt-app-shell__content"]], template: function KptAppShell_Template(rf, ctx) { if (rf & 1) {
12019
+ } }, inputs: { sidenavOpen: [1, "sidenavOpen"], sidenavCompactOpen: [1, "sidenavCompactOpen"], sidenavMode: [1, "sidenavMode"], sidenavBreakpoint: [1, "sidenavBreakpoint"], sidenavRailBreakpoint: [1, "sidenavRailBreakpoint"], sidenavLabel: [1, "sidenavLabel"] }, outputs: { sidenavOpen: "sidenavOpenChange", sidenavCompactOpen: "sidenavCompactOpenChange" }, ngContentSelectors: _c1$l, decls: 7, vars: 3, consts: [[1, "kpt-app-shell__body"], ["tabindex", "-1", 1, "kpt-app-shell__sidenav", 3, "id"], ["aria-hidden", "true", 1, "kpt-app-shell__scrim", 3, "click"], ["cdkScrollable", "", 1, "kpt-app-shell__content"]], template: function KptAppShell_Template(rf, ctx) { if (rf & 1) {
11974
12020
  i0.ɵɵprojectionDef(_c0$x);
11975
12021
  i0.ɵɵprojection(0);
11976
12022
  i0.ɵɵelementStart(1, "div", 0)(2, "nav", 1);
@@ -12070,7 +12116,7 @@ class KptShellNavToggle {
12070
12116
  }], () => [], { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "kptShellNavToggle", required: false }] }] }); })();
12071
12117
 
12072
12118
  const _c0$w = ["canvas"];
12073
- const _c1$j = ["*"];
12119
+ const _c1$k = ["*"];
12074
12120
  /**
12075
12121
  * Dekoracyjna warstwa tła dla sekcji: komponent obejmuje treść i maluje pod nią animowany canvas.
12076
12122
  * Sięga się po niego tam, gdzie płaska powierzchnia wygląda na niedokończoną, a wideo albo duży
@@ -12417,7 +12463,7 @@ class KptBackdrop {
12417
12463
  } }, hostAttrs: [1, "kpt-backdrop-host"], hostVars: 6, hostBindings: function KptBackdrop_HostBindings(rf, ctx) { if (rf & 2) {
12418
12464
  i0.ɵɵattribute("data-effect", ctx.effect())("data-tone", ctx.ink().tone || null);
12419
12465
  i0.ɵɵstyleProp("background", ctx.surface())("color", ctx.ink().color || null);
12420
- } }, inputs: { effect: [1, "effect"], background: [1, "background"], speed: [1, "speed"], seed: [1, "seed"], paused: [1, "paused"], adaptive: [1, "adaptive"], color: [1, "color"], anchor: [1, "anchor"], cell: [1, "cell"], gap: [1, "gap"], density: [1, "density"], falloff: [1, "falloff"], colors: [1, "colors"], rotation: [1, "rotation"], band: [1, "band"], amplitude: [1, "amplitude"] }, ngContentSelectors: _c1$j, decls: 4, vars: 0, consts: [["canvas", ""], ["aria-hidden", "true", 1, "kpt-backdrop__canvas"], [1, "kpt-backdrop__content"]], template: function KptBackdrop_Template(rf, ctx) { if (rf & 1) {
12466
+ } }, inputs: { effect: [1, "effect"], background: [1, "background"], speed: [1, "speed"], seed: [1, "seed"], paused: [1, "paused"], adaptive: [1, "adaptive"], color: [1, "color"], anchor: [1, "anchor"], cell: [1, "cell"], gap: [1, "gap"], density: [1, "density"], falloff: [1, "falloff"], colors: [1, "colors"], rotation: [1, "rotation"], band: [1, "band"], amplitude: [1, "amplitude"] }, ngContentSelectors: _c1$k, decls: 4, vars: 0, consts: [["canvas", ""], ["aria-hidden", "true", 1, "kpt-backdrop__canvas"], [1, "kpt-backdrop__content"]], template: function KptBackdrop_Template(rf, ctx) { if (rf & 1) {
12421
12467
  i0.ɵɵprojectionDef();
12422
12468
  i0.ɵɵdomElement(0, "canvas", 1, 0);
12423
12469
  i0.ɵɵdomElementStart(2, "div", 2);
@@ -12571,10 +12617,10 @@ class KptAuthProviderDef {
12571
12617
  }], null, { kptAuthProvider: [{ type: i0.Input, args: [{ isSignal: true, alias: "kptAuthProvider", required: true }] }] }); })();
12572
12618
 
12573
12619
  const _c0$u = ["heading"];
12574
- const _c1$i = [[["", "kptAuthBrand", ""]], [["", "kptAuthFooter", ""]], [["", "kptAuthPromo", ""]], [["", "kptAuthFields", ""]], [["", "kptAuthSso", ""]]];
12575
- const _c2$9 = ["[kptAuthBrand]", "[kptAuthFooter]", "[kptAuthPromo]", "[kptAuthFields]", "[kptAuthSso]"];
12576
- const _c3$2 = a0 => ({ min: a0 });
12577
- const _c4$1 = a0 => ({ provider: a0 });
12620
+ const _c1$j = [[["", "kptAuthBrand", ""]], [["", "kptAuthFooter", ""]], [["", "kptAuthPromo", ""]], [["", "kptAuthFields", ""]], [["", "kptAuthSso", ""]]];
12621
+ const _c2$b = ["[kptAuthBrand]", "[kptAuthFooter]", "[kptAuthPromo]", "[kptAuthFields]", "[kptAuthSso]"];
12622
+ const _c3$4 = a0 => ({ min: a0 });
12623
+ const _c4$2 = a0 => ({ provider: a0 });
12578
12624
  const _forTrack0$5 = ($index, $item) => $item.id;
12579
12625
  function KptAuth_ng_template_0_Template(rf, ctx) { if (rf & 1) {
12580
12626
  i0.ɵɵprojection(0, 3);
@@ -12715,7 +12761,7 @@ function KptAuth_Case_16_Template(rf, ctx) { if (rf & 1) {
12715
12761
  i0.ɵɵproperty("formField", ctx_r0.signUpForm.email)("id", ctx_r0.ids.regEmail)("placeholder", ctx_r0.i18n.t("auth.emailPlaceholder"));
12716
12762
  i0.ɵɵcontrol();
12717
12763
  i0.ɵɵadvance();
12718
- i0.ɵɵproperty("label", ctx_r0.i18n.t("auth.password"))("error", ctx_r0.signUpPasswordError())("hint", ctx_r0.i18n.t("auth.passwordHint", i0.ɵɵpureFunction1(24, _c3$2, ctx_r0.minPassword)))("controlId", ctx_r0.ids.regPassword);
12764
+ i0.ɵɵproperty("label", ctx_r0.i18n.t("auth.password"))("error", ctx_r0.signUpPasswordError())("hint", ctx_r0.i18n.t("auth.passwordHint", i0.ɵɵpureFunction1(24, _c3$4, ctx_r0.minPassword)))("controlId", ctx_r0.ids.regPassword);
12719
12765
  i0.ɵɵadvance();
12720
12766
  i0.ɵɵproperty("formField", ctx_r0.signUpForm.password)("id", ctx_r0.ids.regPassword);
12721
12767
  i0.ɵɵcontrol();
@@ -12805,7 +12851,7 @@ function KptAuth_Conditional_18_Conditional_2_For_5_Conditional_1_Template(rf, c
12805
12851
  const provider_r9 = i0.ɵɵnextContext().$implicit;
12806
12852
  const ctx_r0 = i0.ɵɵnextContext(3);
12807
12853
  i0.ɵɵproperty("disabled", ctx_r0.busy());
12808
- i0.ɵɵattribute("aria-label", ctx_r0.i18n.t("auth.continueWith", i0.ɵɵpureFunction1(5, _c4$1, provider_r9.label)));
12854
+ i0.ɵɵattribute("aria-label", ctx_r0.i18n.t("auth.continueWith", i0.ɵɵpureFunction1(5, _c4$2, provider_r9.label)));
12809
12855
  i0.ɵɵadvance();
12810
12856
  i0.ɵɵconditional(provider_r9.iconUrl ? 1 : provider_r9.icon ? 2 : -1);
12811
12857
  i0.ɵɵadvance(3);
@@ -13158,8 +13204,8 @@ class KptAuth {
13158
13204
  } }, hostAttrs: [1, "kpt-auth-host"], hostVars: 4, hostBindings: function KptAuth_HostBindings(rf, ctx) { if (rf & 2) {
13159
13205
  i0.ɵɵattribute("data-layout", ctx.layout())("data-mode", ctx.mode());
13160
13206
  i0.ɵɵstyleProp("--%NS%kpt-anim-duration", (ctx.animated() ? ctx.animationDuration() : 0) + "ms");
13161
- } }, inputs: { mode: [1, "mode"], layout: [1, "layout"], providers: [1, "providers"], providerLayout: [1, "providerLayout"], showName: [1, "showName"], requireTerms: [1, "requireTerms"], showRemember: [1, "showRemember"], busy: [1, "busy"], error: [1, "error"], notice: [1, "notice"], promoTitle: [1, "promoTitle"], promoText: [1, "promoText"], animated: [1, "animated"], animationDuration: [1, "animationDuration"] }, outputs: { mode: "modeChange", signIn: "signIn", signUp: "signUp", resetPassword: "resetPassword", providerSelect: "providerSelect" }, ngContentSelectors: _c2$9, decls: 27, vars: 12, consts: [["fields", ""], ["heading", ""], [1, "kpt-auth"], [1, "kpt-auth__card"], [1, "kpt-auth__form-side"], [1, "kpt-auth__inner"], [1, "kpt-auth__brand"], ["tabindex", "-1", 1, "kpt-auth__title", 3, "id"], [1, "kpt-auth__subtitle"], ["variant", "danger"], ["variant", "success"], [1, "kpt-auth__form", 3, "formRoot"], [1, "kpt-auth__footer"], [1, "kpt-auth__promo"], [1, "kpt-auth__promo-inner"], [1, "kpt-auth__promo-title"], [1, "kpt-auth__promo-text"], ["variant", "outline", 1, "kpt-auth__promo-cta"], [1, "kpt-auth__form", 3, "submit", "formRoot"], ["required", "", 3, "label", "error", "controlId"], ["type", "email", "autocomplete", "email", 3, "formField", "id", "placeholder"], ["autocomplete", "current-password", 3, "formField", "id"], [3, "ngTemplateOutlet"], [1, "kpt-auth__row"], [3, "formField", "label"], ["type", "button", 1, "kpt-auth__link", 3, "click"], ["type", "submit", "fullWidth", "", 3, "loading"], ["required", "", 3, "label", "error", "hint", "controlId"], ["autocomplete", "new-password", "feedback", "", 3, "formField", "id"], ["autocomplete", "new-password", 3, "formField", "id"], [3, "error"], ["autocomplete", "name", 3, "formField", "id"], ["type", "button", 1, "kpt-auth__link", "kpt-auth__link--center", 3, "click"], [1, "kpt-auth__sso"], [1, "kpt-auth__switch"], ["role", "separator", 1, "kpt-auth__separator"], [1, "kpt-auth__separator-text"], [1, "kpt-auth__providers"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"], ["type", "button", 1, "kpt-auth__provider", 3, "disabled"], ["type", "button", 1, "kpt-auth__provider", 3, "click", "disabled"], ["alt", "", 1, "kpt-auth__provider-logo", 3, "src"], [1, "kpt-auth__provider-logo", 3, "name"], [1, "kpt-auth__provider-label"], [1, "kpt-auth__provider-desc"], ["variant", "outline", 1, "kpt-auth__promo-cta", 3, "click"]], template: function KptAuth_Template(rf, ctx) { if (rf & 1) {
13162
- i0.ɵɵprojectionDef(_c1$i);
13207
+ } }, inputs: { mode: [1, "mode"], layout: [1, "layout"], providers: [1, "providers"], providerLayout: [1, "providerLayout"], showName: [1, "showName"], requireTerms: [1, "requireTerms"], showRemember: [1, "showRemember"], busy: [1, "busy"], error: [1, "error"], notice: [1, "notice"], promoTitle: [1, "promoTitle"], promoText: [1, "promoText"], animated: [1, "animated"], animationDuration: [1, "animationDuration"] }, outputs: { mode: "modeChange", signIn: "signIn", signUp: "signUp", resetPassword: "resetPassword", providerSelect: "providerSelect" }, ngContentSelectors: _c2$b, decls: 27, vars: 12, consts: [["fields", ""], ["heading", ""], [1, "kpt-auth"], [1, "kpt-auth__card"], [1, "kpt-auth__form-side"], [1, "kpt-auth__inner"], [1, "kpt-auth__brand"], ["tabindex", "-1", 1, "kpt-auth__title", 3, "id"], [1, "kpt-auth__subtitle"], ["variant", "danger"], ["variant", "success"], [1, "kpt-auth__form", 3, "formRoot"], [1, "kpt-auth__footer"], [1, "kpt-auth__promo"], [1, "kpt-auth__promo-inner"], [1, "kpt-auth__promo-title"], [1, "kpt-auth__promo-text"], ["variant", "outline", 1, "kpt-auth__promo-cta"], [1, "kpt-auth__form", 3, "submit", "formRoot"], ["required", "", 3, "label", "error", "controlId"], ["type", "email", "autocomplete", "email", 3, "formField", "id", "placeholder"], ["autocomplete", "current-password", 3, "formField", "id"], [3, "ngTemplateOutlet"], [1, "kpt-auth__row"], [3, "formField", "label"], ["type", "button", 1, "kpt-auth__link", 3, "click"], ["type", "submit", "fullWidth", "", 3, "loading"], ["required", "", 3, "label", "error", "hint", "controlId"], ["autocomplete", "new-password", "feedback", "", 3, "formField", "id"], ["autocomplete", "new-password", 3, "formField", "id"], [3, "error"], ["autocomplete", "name", 3, "formField", "id"], ["type", "button", 1, "kpt-auth__link", "kpt-auth__link--center", 3, "click"], [1, "kpt-auth__sso"], [1, "kpt-auth__switch"], ["role", "separator", 1, "kpt-auth__separator"], [1, "kpt-auth__separator-text"], [1, "kpt-auth__providers"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"], ["type", "button", 1, "kpt-auth__provider", 3, "disabled"], ["type", "button", 1, "kpt-auth__provider", 3, "click", "disabled"], ["alt", "", 1, "kpt-auth__provider-logo", 3, "src"], [1, "kpt-auth__provider-logo", 3, "name"], [1, "kpt-auth__provider-label"], [1, "kpt-auth__provider-desc"], ["variant", "outline", 1, "kpt-auth__promo-cta", 3, "click"]], template: function KptAuth_Template(rf, ctx) { if (rf & 1) {
13208
+ i0.ɵɵprojectionDef(_c1$j);
13163
13209
  i0.ɵɵtemplate(0, KptAuth_ng_template_0_Template, 1, 0, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
13164
13210
  i0.ɵɵelementStart(2, "div", 2)(3, "div", 3)(4, "div", 4)(5, "div", 5)(6, "div", 6);
13165
13211
  i0.ɵɵprojection(7);
@@ -13242,7 +13288,7 @@ class KptAuth {
13242
13288
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(KptAuth, { className: "KptAuth", filePath: "lib/auth/auth.component.ts", lineNumber: 100 }); })();
13243
13289
 
13244
13290
  const _c0$t = [[["", "kptPanelActions", ""]], "*"];
13245
- const _c1$h = ["[kptPanelActions]", "*"];
13291
+ const _c1$i = ["[kptPanelActions]", "*"];
13246
13292
  function KptPanel_Conditional_6_Template(rf, ctx) { if (rf & 1) {
13247
13293
  const _r1 = i0.ɵɵgetCurrentView();
13248
13294
  i0.ɵɵelementStart(0, "button", 8);
@@ -13292,7 +13338,7 @@ class KptPanel {
13292
13338
  static { this.ɵfac = function KptPanel_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || KptPanel)(); }; }
13293
13339
  static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: KptPanel, selectors: [["kpt-panel"]], hostAttrs: [1, "kpt-panel-host"], hostVars: 2, hostBindings: function KptPanel_HostBindings(rf, ctx) { if (rf & 2) {
13294
13340
  i0.ɵɵstyleProp("--%NS%kpt-anim-duration", (ctx.animated() ? ctx.animationDuration() : 0) + "ms");
13295
- } }, inputs: { header: [1, "header"], toggleable: [1, "toggleable"], collapsed: [1, "collapsed"], animated: [1, "animated"], animationDuration: [1, "animationDuration"], collapseMotion: [1, "collapseMotion"] }, outputs: { collapsed: "collapsedChange" }, ngContentSelectors: _c1$h, decls: 11, vars: 8, consts: [[1, "kpt-panel"], [1, "kpt-panel__header"], [1, "kpt-panel__title"], [1, "kpt-panel__actions"], ["type", "button", 1, "kpt-panel__toggle"], [1, "kpt-panel__collapse", 3, "id"], [1, "kpt-panel__collapse-inner"], [1, "kpt-panel__body"], ["type", "button", 1, "kpt-panel__toggle", 3, "click"], ["name", "chevron-down", 1, "kpt-panel__chevron"]], template: function KptPanel_Template(rf, ctx) { if (rf & 1) {
13341
+ } }, inputs: { header: [1, "header"], toggleable: [1, "toggleable"], collapsed: [1, "collapsed"], animated: [1, "animated"], animationDuration: [1, "animationDuration"], collapseMotion: [1, "collapseMotion"] }, outputs: { collapsed: "collapsedChange" }, ngContentSelectors: _c1$i, decls: 11, vars: 8, consts: [[1, "kpt-panel"], [1, "kpt-panel__header"], [1, "kpt-panel__title"], [1, "kpt-panel__actions"], ["type", "button", 1, "kpt-panel__toggle"], [1, "kpt-panel__collapse", 3, "id"], [1, "kpt-panel__collapse-inner"], [1, "kpt-panel__body"], ["type", "button", 1, "kpt-panel__toggle", 3, "click"], ["name", "chevron-down", 1, "kpt-panel__chevron"]], template: function KptPanel_Template(rf, ctx) { if (rf & 1) {
13296
13342
  i0.ɵɵprojectionDef(_c0$t);
13297
13343
  i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "span", 2);
13298
13344
  i0.ɵɵtext(3);
@@ -13468,7 +13514,7 @@ class KptFieldset {
13468
13514
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(KptFieldset, { className: "KptFieldset", filePath: "lib/fieldset/fieldset.component.ts", lineNumber: 53 }); })();
13469
13515
 
13470
13516
  const _c0$r = [[["", "kptSplitStart", ""]], [["", "kptSplitEnd", ""]]];
13471
- const _c1$g = ["[kptSplitStart]", "[kptSplitEnd]"];
13517
+ const _c1$h = ["[kptSplitStart]", "[kptSplitEnd]"];
13472
13518
  let nextId$f = 0;
13473
13519
  /**
13474
13520
  * Splitter - dwa panele z przeciąganym uchwytem. Panele przez sloty `[kptSplitStart]` i `[kptSplitEnd]`.
@@ -13545,7 +13591,7 @@ class KptSplitter {
13545
13591
  this.startSize.set(Math.min(100 - min, Math.max(min, Math.round(pct))));
13546
13592
  }
13547
13593
  static { this.ɵfac = function KptSplitter_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || KptSplitter)(); }; }
13548
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: KptSplitter, selectors: [["kpt-splitter"]], hostAttrs: [1, "kpt-splitter-host"], inputs: { orientation: [1, "orientation"], startSize: [1, "startSize"], minSize: [1, "minSize"], ariaLabel: [1, "ariaLabel"] }, outputs: { startSize: "startSizeChange" }, ngContentSelectors: _c1$g, decls: 6, vars: 12, consts: [[1, "kpt-splitter"], [1, "kpt-splitter__pane", 3, "id"], ["role", "separator", "tabindex", "0", 1, "kpt-splitter__gutter", 3, "pointerdown", "keydown"], [1, "kpt-splitter__pane"]], template: function KptSplitter_Template(rf, ctx) { if (rf & 1) {
13594
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: KptSplitter, selectors: [["kpt-splitter"]], hostAttrs: [1, "kpt-splitter-host"], inputs: { orientation: [1, "orientation"], startSize: [1, "startSize"], minSize: [1, "minSize"], ariaLabel: [1, "ariaLabel"] }, outputs: { startSize: "startSizeChange" }, ngContentSelectors: _c1$h, decls: 6, vars: 12, consts: [[1, "kpt-splitter"], [1, "kpt-splitter__pane", 3, "id"], ["role", "separator", "tabindex", "0", 1, "kpt-splitter__gutter", 3, "pointerdown", "keydown"], [1, "kpt-splitter__pane"]], template: function KptSplitter_Template(rf, ctx) { if (rf & 1) {
13549
13595
  i0.ɵɵprojectionDef(_c0$r);
13550
13596
  i0.ɵɵdomElementStart(0, "div", 0)(1, "div", 1);
13551
13597
  i0.ɵɵprojection(2);
@@ -13693,22 +13739,24 @@ function kptLockScroll() {
13693
13739
  }
13694
13740
 
13695
13741
  const _c0$q = ["dlg"];
13696
- const _c1$f = ["trigger"];
13742
+ const _c1$g = ["trigger"];
13743
+ const _c2$a = ["full"];
13744
+ const _c3$3 = ["closeBtn"];
13697
13745
  function KptImage_Conditional_0_Template(rf, ctx) { if (rf & 1) {
13698
13746
  const _r1 = i0.ɵɵgetCurrentView();
13699
- i0.ɵɵelementStart(0, "button", 3, 0);
13747
+ i0.ɵɵelementStart(0, "button", 5, 0);
13700
13748
  i0.ɵɵlistener("click", function KptImage_Conditional_0_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.openPreview()); });
13701
- i0.ɵɵelement(2, "img", 4);
13702
- i0.ɵɵelementStart(3, "span", 5);
13703
- i0.ɵɵelement(4, "kpt-icon", 6);
13749
+ i0.ɵɵelement(2, "img", 6);
13750
+ i0.ɵɵelementStart(3, "span", 7);
13751
+ i0.ɵɵelement(4, "kpt-icon", 8);
13704
13752
  i0.ɵɵelementEnd()();
13705
- i0.ɵɵelementStart(5, "dialog", 7, 1);
13706
- i0.ɵɵlistener("close", function KptImage_Conditional_0_Template_dialog_close_5_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onClosed()); })("click", function KptImage_Conditional_0_Template_dialog_click_5_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onDialogClick($event)); });
13707
- i0.ɵɵelementStart(7, "button", 8);
13753
+ i0.ɵɵelementStart(5, "dialog", 9, 1);
13754
+ i0.ɵɵlistener("close", function KptImage_Conditional_0_Template_dialog_close_5_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onClosed()); })("cancel", function KptImage_Conditional_0_Template_dialog_cancel_5_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onCancel($event)); })("click", function KptImage_Conditional_0_Template_dialog_click_5_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onDialogClick($event)); });
13755
+ i0.ɵɵelementStart(7, "button", 10, 2);
13708
13756
  i0.ɵɵlistener("click", function KptImage_Conditional_0_Template_button_click_7_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.close()); });
13709
- i0.ɵɵelement(8, "kpt-icon", 9);
13757
+ i0.ɵɵelement(9, "kpt-icon", 11);
13710
13758
  i0.ɵɵelementEnd();
13711
- i0.ɵɵelement(9, "img", 10);
13759
+ i0.ɵɵelement(10, "img", 12, 3);
13712
13760
  i0.ɵɵelementEnd();
13713
13761
  } if (rf & 2) {
13714
13762
  const ctx_r1 = i0.ɵɵnextContext();
@@ -13720,12 +13768,12 @@ function KptImage_Conditional_0_Template(rf, ctx) { if (rf & 1) {
13720
13768
  i0.ɵɵattribute("aria-label", ctx_r1.alt() || ctx_r1.i18n.t("image.preview"));
13721
13769
  i0.ɵɵadvance(2);
13722
13770
  i0.ɵɵattribute("aria-label", ctx_r1.i18n.t("common.close"));
13723
- i0.ɵɵadvance(2);
13771
+ i0.ɵɵadvance(3);
13724
13772
  i0.ɵɵproperty("src", ctx_r1.src(), i0.ɵɵsanitizeUrl)("alt", ctx_r1.alt());
13725
13773
  } }
13726
13774
  function KptImage_Conditional_1_Template(rf, ctx) { if (rf & 1) {
13727
- i0.ɵɵelementStart(0, "div", 11);
13728
- i0.ɵɵelement(1, "img", 12);
13775
+ i0.ɵɵelementStart(0, "div", 13);
13776
+ i0.ɵɵelement(1, "img", 14);
13729
13777
  i0.ɵɵelementEnd();
13730
13778
  } if (rf & 2) {
13731
13779
  const ctx_r1 = i0.ɵɵnextContext();
@@ -13741,6 +13789,10 @@ function KptImage_Conditional_1_Template(rf, ctx) { if (rf & 1) {
13741
13789
  * stronę i górną warstwę, więc podgląd nie gubi się w przodku z `transform`. Na czas podglądu
13742
13790
  * blokujemy przewijanie dokumentu, a po zamknięciu fokus wraca na miniaturę.
13743
13791
  *
13792
+ * Ruch: zdjęcie wylatuje z miniatury i ląduje na środku na sprężynie, a przy zamknięciu (`x`,
13793
+ * `Escape`, tło) wraca do niej, zanim okno się zamknie. Rodzaj ruchu bierze z `enter`
13794
+ * w `provideKptMotion` (`spring` / `fade` / `none`); przy "ogranicz ruch" podgląd tylko się przenika.
13795
+ *
13744
13796
  * @example
13745
13797
  * <kpt-image src="/foto.jpg" alt="Zdjęcie" preview width="240px" />
13746
13798
  */
@@ -13760,7 +13812,15 @@ class KptImage {
13760
13812
  ...(ngDevMode ? [{ debugName: "dialog" }] : /* istanbul ignore next */ []));
13761
13813
  this.trigger = viewChild('trigger', /* @ts-ignore */
13762
13814
  ...(ngDevMode ? [{ debugName: "trigger" }] : /* istanbul ignore next */ []));
13763
- /** Wartość `overflow` dokumentu sprzed otwarcia - oddajemy ją po zamknięciu. */
13815
+ this.full = viewChild('full', /* @ts-ignore */
13816
+ ...(ngDevMode ? [{ debugName: "full" }] : /* istanbul ignore next */ []));
13817
+ this.closeBtn = viewChild('closeBtn', /* @ts-ignore */
13818
+ ...(ngDevMode ? [{ debugName: "closeBtn" }] : /* istanbul ignore next */ []));
13819
+ this.motionConfig = inject(KPT_MOTION_CONFIG, { optional: true });
13820
+ this.motion = computed(() => resolveEnterMotion(undefined, this.motionConfig), /* @ts-ignore */
13821
+ ...(ngDevMode ? [{ debugName: "motion" }] : /* istanbul ignore next */ []));
13822
+ /** Zegar zamknięcia: okno zamyka się dopiero, gdy zdjęcie wróci do miniatury. */
13823
+ this.closeTimer = null;
13764
13824
  /** Zdjęcie blokady przewijania strony (wspólny licznik z oknami i szufladami). */
13765
13825
  this.releaseScroll = null;
13766
13826
  /** Miniatura z `alt` mówi, co powiększa; bez niego - samą czynność. */
@@ -13775,6 +13835,10 @@ class KptImage {
13775
13835
  if (this.open() && !el.open) {
13776
13836
  el.showModal();
13777
13837
  this.releaseScroll ??= kptLockScroll();
13838
+ // Tuż po showModal(), przed malowaniem - pierwsza klatka stoi już na miniaturze.
13839
+ const els = this.zoomElements();
13840
+ if (els)
13841
+ playZoomOpen(els, this.motion());
13778
13842
  }
13779
13843
  else if (!this.open() && el.open) {
13780
13844
  el.close();
@@ -13782,17 +13846,41 @@ class KptImage {
13782
13846
  },
13783
13847
  });
13784
13848
  // Zniszczenie z otwartym podglądem nie przechodzi przez `close` - przewijanie musi wrócić i tak.
13785
- inject(DestroyRef).onDestroy(() => this.unlockScroll());
13849
+ inject(DestroyRef).onDestroy(() => {
13850
+ this.clearCloseTimer();
13851
+ this.unlockScroll();
13852
+ });
13786
13853
  }
13787
13854
  openPreview() {
13788
13855
  this.open.set(true);
13789
13856
  }
13857
+ /** Zamknięcie z `x`, `Escape` i tła: najpierw powrót zdjęcia do miniatury, potem okno. */
13790
13858
  close() {
13791
- this.open.set(false);
13859
+ if (this.closeTimer)
13860
+ return;
13861
+ const els = this.zoomElements();
13862
+ const ms = els ? playZoomClose(els, this.motion()) : 0;
13863
+ if (ms === 0) {
13864
+ this.open.set(false);
13865
+ return;
13866
+ }
13867
+ this.closeTimer = setTimeout(() => {
13868
+ this.closeTimer = null;
13869
+ this.open.set(false);
13870
+ }, ms);
13792
13871
  }
13793
- /** `close` przychodzi z każdej drogi: `x`, `Escape`, tło. */
13872
+ /** `Escape` zamknąłby okno od razu - przejmujemy je, żeby zdjęcie zdążyło wrócić. */
13873
+ onCancel(event) {
13874
+ event.preventDefault();
13875
+ this.close();
13876
+ }
13877
+ /** `close` przychodzi z każdej drogi (także wymuszonej przez przeglądarkę) - tu sprzątamy. */
13794
13878
  onClosed() {
13879
+ this.clearCloseTimer();
13795
13880
  this.open.set(false);
13881
+ const els = this.zoomElements();
13882
+ if (els)
13883
+ stopZoomMotion(els);
13796
13884
  this.unlockScroll();
13797
13885
  this.trigger()?.nativeElement.focus();
13798
13886
  }
@@ -13801,20 +13889,31 @@ class KptImage {
13801
13889
  if (event.target === event.currentTarget)
13802
13890
  this.close();
13803
13891
  }
13892
+ zoomElements() {
13893
+ const thumb = this.trigger()?.nativeElement;
13894
+ const image = this.full()?.nativeElement;
13895
+ const dialog = this.dialog()?.nativeElement;
13896
+ return thumb && image && dialog ? { thumb, image, dialog, close: this.closeBtn()?.nativeElement } : null;
13897
+ }
13898
+ clearCloseTimer() {
13899
+ if (this.closeTimer)
13900
+ clearTimeout(this.closeTimer);
13901
+ this.closeTimer = null;
13902
+ }
13804
13903
  unlockScroll() {
13805
13904
  this.releaseScroll?.();
13806
13905
  this.releaseScroll = null;
13807
13906
  }
13808
13907
  static { this.ɵfac = function KptImage_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || KptImage)(); }; }
13809
13908
  static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: KptImage, selectors: [["kpt-image"]], viewQuery: function KptImage_Query(rf, ctx) { if (rf & 1) {
13810
- i0.ɵɵviewQuerySignal(ctx.dialog, _c0$q, 5)(ctx.trigger, _c1$f, 5);
13909
+ i0.ɵɵviewQuerySignal(ctx.dialog, _c0$q, 5)(ctx.trigger, _c1$g, 5)(ctx.full, _c2$a, 5)(ctx.closeBtn, _c3$3, 5);
13811
13910
  } if (rf & 2) {
13812
- i0.ɵɵqueryAdvance(2);
13813
- } }, hostAttrs: [1, "kpt-image-host"], inputs: { src: [1, "src"], alt: [1, "alt"], width: [1, "width"], preview: [1, "preview"] }, decls: 2, vars: 1, consts: [["trigger", ""], ["dlg", ""], [1, "kpt-image", 3, "width"], ["type", "button", "aria-haspopup", "dialog", 1, "kpt-image", "kpt-image--preview", 3, "click"], ["alt", "", 1, "kpt-image__img", 3, "src"], ["aria-hidden", "true", 1, "kpt-image__mask"], ["name", "zoom-in"], [1, "kpt-image__overlay", 3, "close", "click"], ["type", "button", 1, "kpt-image__close", 3, "click"], ["name", "x"], ["loading", "lazy", 1, "kpt-image__full", 3, "src", "alt"], [1, "kpt-image"], [1, "kpt-image__img", 3, "src", "alt"]], template: function KptImage_Template(rf, ctx) { if (rf & 1) {
13814
- i0.ɵɵconditionalCreate(0, KptImage_Conditional_0_Template, 10, 8)(1, KptImage_Conditional_1_Template, 2, 4, "div", 2);
13911
+ i0.ɵɵqueryAdvance(4);
13912
+ } }, hostAttrs: [1, "kpt-image-host"], inputs: { src: [1, "src"], alt: [1, "alt"], width: [1, "width"], preview: [1, "preview"] }, decls: 2, vars: 1, consts: [["trigger", ""], ["dlg", ""], ["closeBtn", ""], ["full", ""], [1, "kpt-image", 3, "width"], ["type", "button", "aria-haspopup", "dialog", 1, "kpt-image", "kpt-image--preview", 3, "click"], ["alt", "", 1, "kpt-image__img", 3, "src"], ["aria-hidden", "true", 1, "kpt-image__mask"], ["name", "zoom-in"], [1, "kpt-image__overlay", 3, "close", "cancel", "click"], ["type", "button", 1, "kpt-image__close", 3, "click"], ["name", "x"], [1, "kpt-image__full", 3, "src", "alt"], [1, "kpt-image"], [1, "kpt-image__img", 3, "src", "alt"]], template: function KptImage_Template(rf, ctx) { if (rf & 1) {
13913
+ i0.ɵɵconditionalCreate(0, KptImage_Conditional_0_Template, 12, 8)(1, KptImage_Conditional_1_Template, 2, 4, "div", 4);
13815
13914
  } if (rf & 2) {
13816
13915
  i0.ɵɵconditional(ctx.preview() ? 0 : 1);
13817
- } }, dependencies: [KptIcon], styles: ["@layer kpt.components{.kpt-image-host{display:inline-block}.kpt-image{position:relative;display:inline-flex;overflow:hidden;border-radius:var(--%NS%kpt-radius-md, .5rem);line-height:0}.kpt-image__img{max-width:100%;height:auto;display:block}.kpt-image--preview{padding:0;border:0;background:none;font:inherit;color:inherit;cursor:zoom-in}.kpt-image__mask{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:1.25rem;background:var(--%NS%kpt-color-overlay-scrim);opacity:0;transition:opacity calc(.2s * var(--%NS%kpt-motion-scale, 1))}.kpt-image__mask .kpt-icon-host{width:2.5rem;height:2.5rem;border-radius:999px;background:var(--%NS%kpt-color-surface);color:var(--%NS%kpt-color-on-surface);box-shadow:var(--%NS%kpt-elevation-2)}.kpt-image--%NS%preview:hover .kpt-image__mask,.kpt-image--%NS%preview:focus-visible .kpt-image__mask{opacity:1}.kpt-image__overlay{box-sizing:border-box;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:var(--%NS%kpt-space-6, 1.5rem);border:0;background:transparent;cursor:zoom-out}.kpt-image__overlay[open]{display:flex;align-items:center;justify-content:center}.kpt-image__overlay::backdrop{background:var(--%NS%kpt-color-overlay-scrim)}.kpt-image__full{max-width:90vw;max-height:90vh;border-radius:var(--%NS%kpt-radius-md, .5rem);cursor:default}.kpt-image__close{position:absolute;inset-block-start:var(--%NS%kpt-space-4, 1rem);inset-inline-end:var(--%NS%kpt-space-4, 1rem);display:inline-flex;width:2.5rem;height:2.5rem;align-items:center;justify-content:center;border:0;border-radius:999px;background:var(--%NS%kpt-color-surface);color:var(--%NS%kpt-color-on-surface);box-shadow:var(--%NS%kpt-elevation-2);cursor:pointer}.kpt-image__close:hover{background:var(--%NS%kpt-color-muted)}}\n"], encapsulation: 2 }); }
13916
+ } }, dependencies: [KptIcon], styles: ["@layer kpt.components{.kpt-image-host{display:inline-block}.kpt-image{position:relative;display:inline-flex;overflow:hidden;border-radius:var(--%NS%kpt-radius-md, .5rem);line-height:0}.kpt-image__img{max-width:100%;height:auto;display:block}.kpt-image--preview{padding:0;border:0;background:none;font:inherit;color:inherit;cursor:zoom-in}.kpt-image__mask{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:1.25rem;background:var(--%NS%kpt-color-overlay-scrim);opacity:0;transition:opacity calc(.2s * var(--%NS%kpt-motion-scale, 1))}.kpt-image__mask .kpt-icon-host{width:2.5rem;height:2.5rem;border-radius:999px;background:var(--%NS%kpt-color-surface);color:var(--%NS%kpt-color-on-surface);box-shadow:var(--%NS%kpt-elevation-2)}.kpt-image--%NS%preview:hover .kpt-image__mask,.kpt-image--%NS%preview:focus-visible .kpt-image__mask{opacity:1}.kpt-image__overlay{box-sizing:border-box;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:var(--%NS%kpt-space-6, 1.5rem);border:0;background:transparent;cursor:zoom-out}.kpt-image__overlay[open]{display:flex;align-items:center;justify-content:center}.kpt-image__overlay::backdrop{background:var(--%NS%kpt-color-overlay-scrim)}.kpt-image__full{max-width:var(--%NS%kpt-image-preview-max-width, 90vw);max-height:var(--%NS%kpt-image-preview-max-height, 80vh);border-radius:var(--%NS%kpt-radius-md, .5rem);cursor:default}.kpt-image__close{position:absolute;inset-block-start:var(--%NS%kpt-space-4, 1rem);inset-inline-end:var(--%NS%kpt-space-4, 1rem);display:inline-flex;width:2.5rem;height:2.5rem;align-items:center;justify-content:center;border:0;border-radius:999px;background:var(--%NS%kpt-color-surface);color:var(--%NS%kpt-color-on-surface);box-shadow:var(--%NS%kpt-elevation-2);cursor:pointer}.kpt-image__close:hover{background:var(--%NS%kpt-color-muted)}}\n"], encapsulation: 2 }); }
13818
13917
  }
13819
13918
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(KptImage, [{
13820
13919
  type: Component,
@@ -13839,21 +13938,24 @@ class KptImage {
13839
13938
  class="kpt-image__overlay"
13840
13939
  [attr.aria-label]="alt() || i18n.t('image.preview')"
13841
13940
  (close)="onClosed()"
13941
+ (cancel)="onCancel($event)"
13842
13942
  (click)="onDialogClick($event)"
13843
13943
  >
13844
13944
  <!-- Treść stoi stale: zamknięty <dialog> jest ukryty, a showModal() musi zastać przycisk,
13845
13945
  żeby ustawić na nim fokus. -->
13846
- <button type="button" class="kpt-image__close" (click)="close()" [attr.aria-label]="i18n.t('common.close')"><kpt-icon name="x" /></button>
13847
- <img class="kpt-image__full" [src]="src()" [alt]="alt()" loading="lazy" />
13946
+ <button #closeBtn type="button" class="kpt-image__close" (click)="close()" [attr.aria-label]="i18n.t('common.close')"><kpt-icon name="x" /></button>
13947
+ <!-- Bez loading="lazy": to ten sam plik co miniatura, więc jest już pobrany, a leniwe
13948
+ ładowanie w zamkniętym oknie kazałoby lotowi czekać na dekodowanie. -->
13949
+ <img #full class="kpt-image__full" [src]="src()" [alt]="alt()" />
13848
13950
  </dialog>
13849
13951
  } @else {
13850
13952
  <div class="kpt-image" [style.width]="width()">
13851
13953
  <img class="kpt-image__img" [src]="src()" [alt]="alt()" />
13852
13954
  </div>
13853
13955
  }
13854
- `, host: { class: 'kpt-image-host' }, styles: ["@layer kpt.components{.kpt-image-host{display:inline-block}.kpt-image{position:relative;display:inline-flex;overflow:hidden;border-radius:var(--kpt-radius-md, .5rem);line-height:0}.kpt-image__img{max-width:100%;height:auto;display:block}.kpt-image--preview{padding:0;border:0;background:none;font:inherit;color:inherit;cursor:zoom-in}.kpt-image__mask{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:1.25rem;background:var(--kpt-color-overlay-scrim);opacity:0;transition:opacity calc(.2s * var(--kpt-motion-scale, 1))}.kpt-image__mask .kpt-icon-host{width:2.5rem;height:2.5rem;border-radius:999px;background:var(--kpt-color-surface);color:var(--kpt-color-on-surface);box-shadow:var(--kpt-elevation-2)}.kpt-image--preview:hover .kpt-image__mask,.kpt-image--preview:focus-visible .kpt-image__mask{opacity:1}.kpt-image__overlay{box-sizing:border-box;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:var(--kpt-space-6, 1.5rem);border:0;background:transparent;cursor:zoom-out}.kpt-image__overlay[open]{display:flex;align-items:center;justify-content:center}.kpt-image__overlay::backdrop{background:var(--kpt-color-overlay-scrim)}.kpt-image__full{max-width:90vw;max-height:90vh;border-radius:var(--kpt-radius-md, .5rem);cursor:default}.kpt-image__close{position:absolute;inset-block-start:var(--kpt-space-4, 1rem);inset-inline-end:var(--kpt-space-4, 1rem);display:inline-flex;width:2.5rem;height:2.5rem;align-items:center;justify-content:center;border:0;border-radius:999px;background:var(--kpt-color-surface);color:var(--kpt-color-on-surface);box-shadow:var(--kpt-elevation-2);cursor:pointer}.kpt-image__close:hover{background:var(--kpt-color-muted)}}\n"] }]
13855
- }], () => [], { src: [{ type: i0.Input, args: [{ isSignal: true, alias: "src", required: true }] }], alt: [{ type: i0.Input, args: [{ isSignal: true, alias: "alt", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], preview: [{ type: i0.Input, args: [{ isSignal: true, alias: "preview", required: false }] }], dialog: [{ type: i0.ViewChild, args: ['dlg', { isSignal: true }] }], trigger: [{ type: i0.ViewChild, args: ['trigger', { isSignal: true }] }] }); })();
13856
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(KptImage, { className: "KptImage", filePath: "lib/image/image.component.ts", lineNumber: 72 }); })();
13956
+ `, host: { class: 'kpt-image-host' }, styles: ["@layer kpt.components{.kpt-image-host{display:inline-block}.kpt-image{position:relative;display:inline-flex;overflow:hidden;border-radius:var(--kpt-radius-md, .5rem);line-height:0}.kpt-image__img{max-width:100%;height:auto;display:block}.kpt-image--preview{padding:0;border:0;background:none;font:inherit;color:inherit;cursor:zoom-in}.kpt-image__mask{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:1.25rem;background:var(--kpt-color-overlay-scrim);opacity:0;transition:opacity calc(.2s * var(--kpt-motion-scale, 1))}.kpt-image__mask .kpt-icon-host{width:2.5rem;height:2.5rem;border-radius:999px;background:var(--kpt-color-surface);color:var(--kpt-color-on-surface);box-shadow:var(--kpt-elevation-2)}.kpt-image--preview:hover .kpt-image__mask,.kpt-image--preview:focus-visible .kpt-image__mask{opacity:1}.kpt-image__overlay{box-sizing:border-box;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:var(--kpt-space-6, 1.5rem);border:0;background:transparent;cursor:zoom-out}.kpt-image__overlay[open]{display:flex;align-items:center;justify-content:center}.kpt-image__overlay::backdrop{background:var(--kpt-color-overlay-scrim)}.kpt-image__full{max-width:var(--kpt-image-preview-max-width, 90vw);max-height:var(--kpt-image-preview-max-height, 80vh);border-radius:var(--kpt-radius-md, .5rem);cursor:default}.kpt-image__close{position:absolute;inset-block-start:var(--kpt-space-4, 1rem);inset-inline-end:var(--kpt-space-4, 1rem);display:inline-flex;width:2.5rem;height:2.5rem;align-items:center;justify-content:center;border:0;border-radius:999px;background:var(--kpt-color-surface);color:var(--kpt-color-on-surface);box-shadow:var(--kpt-elevation-2);cursor:pointer}.kpt-image__close:hover{background:var(--kpt-color-muted)}}\n"] }]
13957
+ }], () => [], { src: [{ type: i0.Input, args: [{ isSignal: true, alias: "src", required: true }] }], alt: [{ type: i0.Input, args: [{ isSignal: true, alias: "alt", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], preview: [{ type: i0.Input, args: [{ isSignal: true, alias: "preview", required: false }] }], dialog: [{ type: i0.ViewChild, args: ['dlg', { isSignal: true }] }], trigger: [{ type: i0.ViewChild, args: ['trigger', { isSignal: true }] }], full: [{ type: i0.ViewChild, args: ['full', { isSignal: true }] }], closeBtn: [{ type: i0.ViewChild, args: ['closeBtn', { isSignal: true }] }] }); })();
13958
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(KptImage, { className: "KptImage", filePath: "lib/image/image.component.ts", lineNumber: 81 }); })();
13857
13959
 
13858
13960
  function KptMeterGroup_For_3_Template(rf, ctx) { if (rf & 1) {
13859
13961
  i0.ɵɵdomElement(0, "span", 4);
@@ -14178,30 +14280,87 @@ class KptEmpty {
14178
14280
  }], null, { icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], description: [{ type: i0.Input, args: [{ isSignal: true, alias: "description", required: false }] }], headingLevel: [{ type: i0.Input, args: [{ isSignal: true, alias: "headingLevel", required: false }] }] }); })();
14179
14281
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(KptEmpty, { className: "KptEmpty", filePath: "lib/empty/empty.component.ts", lineNumber: 32 }); })();
14180
14282
 
14283
+ /**
14284
+ * Czy klik to zwykła nawigacja w tej samej karcie: lewy przycisk, bez modyfikatorów, a odnośnik
14285
+ * nie ma `target` innego niż `_self`. `target` podaje wołający - w React `currentTarget`
14286
+ * zdarzenia natywnego to korzeń aplikacji, nie kliknięty odnośnik.
14287
+ */
14288
+ function kptIsPlainClick(event, target = '') {
14289
+ const modified = event.ctrlKey || event.metaKey || event.shiftKey || event.altKey;
14290
+ return event.button === 0 && !modified && (target === '' || target === '_self');
14291
+ }
14292
+
14181
14293
  const _c0$n = ["*"];
14182
14294
  function KptTab_ng_template_0_Template(rf, ctx) { if (rf & 1) {
14183
14295
  i0.ɵɵprojection(0);
14184
14296
  } }
14297
+ const ICON_TONES = new Set(['primary', 'success', 'warning', 'danger', 'info']);
14298
+ /**
14299
+ * Nazwa semantyczna idzie w `data-color` (barwa z tokenu, zmienia się z motywem), a każdy inny
14300
+ * napis - np. `var(--brand-accent)` - trafia wprost do `color`. Pusty napis to kolor tekstu zakładki.
14301
+ */
14302
+ function kptTabIconPaint(color) {
14303
+ if (!color)
14304
+ return { tone: null, css: null };
14305
+ return ICON_TONES.has(color) ? { tone: color, css: null } : { tone: null, css: color };
14306
+ }
14185
14307
  /**
14186
14308
  * Pojedyncza zakładka. Umieszczaj w `kpt-tabs`. Treść renderowana leniwie (gdy aktywna).
14187
14309
  *
14310
+ * Ikona może stać przed etykietą (`icon`), za nią (`iconEnd`) albo po obu stronach. Bez koloru
14311
+ * dziedziczy barwę tekstu zakładki (wyciszona, a na aktywnej - `primary`); `iconColor`
14312
+ * i `iconEndColor` dają jej własną.
14313
+ *
14188
14314
  * @example
14189
14315
  * <kpt-tab label="Ogólne">...treść...</kpt-tab>
14316
+ * <kpt-tab label="Testy" icon="circle-check" iconColor="success">...</kpt-tab>
14317
+ * <kpt-tab label="Dokumentacja" href="https://ui.konce.pt" target="_blank" iconEnd="external-link" />
14190
14318
  */
14191
14319
  class KptTab {
14192
14320
  constructor() {
14193
14321
  this.label = input.required(/* @ts-ignore */
14194
14322
  ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
14195
14323
  this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
14324
+ /** Ikona przed etykietą - nazwa z rejestru (`KptIconRegistry`). */
14325
+ this.icon = input(/* @ts-ignore */
14326
+ ...(ngDevMode ? [undefined, { debugName: "icon" }] : /* istanbul ignore next */ []));
14327
+ /** Ikona za etykietą - nazwa z rejestru (`KptIconRegistry`). */
14328
+ this.iconEnd = input(/* @ts-ignore */
14329
+ ...(ngDevMode ? [undefined, { debugName: "iconEnd" }] : /* istanbul ignore next */ []));
14330
+ /** Kolor ikony przed etykietą: nazwa semantyczna albo dowolna wartość CSS (`var(--brand)`). */
14331
+ this.iconColor = input(/* @ts-ignore */
14332
+ ...(ngDevMode ? [undefined, { debugName: "iconColor" }] : /* istanbul ignore next */ []));
14333
+ /** Kolor ikony za etykietą: nazwa semantyczna albo dowolna wartość CSS (`var(--brand)`). */
14334
+ this.iconEndColor = input(/* @ts-ignore */
14335
+ ...(ngDevMode ? [undefined, { debugName: "iconEndColor" }] : /* istanbul ignore next */ []));
14336
+ /**
14337
+ * Adres - zakładka staje się odnośnikiem do strony albo serwisu zewnętrznego. Nie ma panelu
14338
+ * (treść jest pomijana), nie liczy się do `activeIndex` i stoi za zakładkami, poza `tablist`.
14339
+ */
14340
+ this.href = input(/* @ts-ignore */
14341
+ ...(ngDevMode ? [undefined, { debugName: "href" }] : /* istanbul ignore next */ []));
14342
+ /** `target` odnośnika, np. `_blank`. */
14343
+ this.target = input(/* @ts-ignore */
14344
+ ...(ngDevMode ? [undefined, { debugName: "target" }] : /* istanbul ignore next */ []));
14345
+ /** `rel` odnośnika; przy `target="_blank"` domyślnie `noopener noreferrer`. */
14346
+ this.rel = input(/* @ts-ignore */
14347
+ ...(ngDevMode ? [undefined, { debugName: "rel" }] : /* istanbul ignore next */ []));
14196
14348
  this.content = viewChild.required(TemplateRef, /* @ts-ignore */
14197
14349
  ...(ngDevMode ? [{ debugName: "content" }] : /* istanbul ignore next */ []));
14350
+ this.iconPaint = computed(() => kptTabIconPaint(this.iconColor()), /* @ts-ignore */
14351
+ ...(ngDevMode ? [{ debugName: "iconPaint" }] : /* istanbul ignore next */ []));
14352
+ this.iconEndPaint = computed(() => kptTabIconPaint(this.iconEndColor()), /* @ts-ignore */
14353
+ ...(ngDevMode ? [{ debugName: "iconEndPaint" }] : /* istanbul ignore next */ []));
14354
+ /** `target="_blank"` bez `rel` to wektor na `window.opener` - dokładamy domyślne. */
14355
+ this.effectiveRel = computed(() => this.rel() ?? (this.target() === '_blank' ? 'noopener noreferrer' : null), /* @ts-ignore */
14356
+ ...(ngDevMode ? [{ debugName: "effectiveRel" }] : /* istanbul ignore next */ []));
14198
14357
  }
14199
14358
  static { this.ɵfac = function KptTab_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || KptTab)(); }; }
14200
14359
  static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: KptTab, selectors: [["kpt-tab"]], viewQuery: function KptTab_Query(rf, ctx) { if (rf & 1) {
14201
14360
  i0.ɵɵviewQuerySignal(ctx.content, TemplateRef, 5);
14202
14361
  } if (rf & 2) {
14203
14362
  i0.ɵɵqueryAdvance();
14204
- } }, inputs: { label: [1, "label"], disabled: [1, "disabled"] }, ngContentSelectors: _c0$n, decls: 1, vars: 0, template: function KptTab_Template(rf, ctx) { if (rf & 1) {
14363
+ } }, inputs: { label: [1, "label"], disabled: [1, "disabled"], icon: [1, "icon"], iconEnd: [1, "iconEnd"], iconColor: [1, "iconColor"], iconEndColor: [1, "iconEndColor"], href: [1, "href"], target: [1, "target"], rel: [1, "rel"] }, ngContentSelectors: _c0$n, decls: 1, vars: 0, template: function KptTab_Template(rf, ctx) { if (rf & 1) {
14205
14364
  i0.ɵɵprojectionDef();
14206
14365
  i0.ɵɵdomTemplate(0, KptTab_ng_template_0_Template, 1, 0, "ng-template");
14207
14366
  } }, encapsulation: 2 }); }
@@ -14213,36 +14372,108 @@ class KptTab {
14213
14372
  changeDetection: ChangeDetectionStrategy.OnPush,
14214
14373
  template: `<ng-template><ng-content /></ng-template>`,
14215
14374
  }]
14216
- }], null, { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], content: [{ type: i0.ViewChild, args: [i0.forwardRef(() => TemplateRef), { isSignal: true }] }] }); })();
14217
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(KptTab, { className: "KptTab", filePath: "lib/tabs/tab.component.ts", lineNumber: 14 }); })();
14375
+ }], null, { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], iconEnd: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconEnd", required: false }] }], iconColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconColor", required: false }] }], iconEndColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconEndColor", required: false }] }], href: [{ type: i0.Input, args: [{ isSignal: true, alias: "href", required: false }] }], target: [{ type: i0.Input, args: [{ isSignal: true, alias: "target", required: false }] }], rel: [{ type: i0.Input, args: [{ isSignal: true, alias: "rel", required: false }] }], content: [{ type: i0.ViewChild, args: [i0.forwardRef(() => TemplateRef), { isSignal: true }] }] }); })();
14376
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(KptTab, { className: "KptTab", filePath: "lib/tabs/tab.component.ts", lineNumber: 40 }); })();
14218
14377
 
14219
14378
  const _c0$m = ["tabBtn"];
14379
+ const _c1$f = a0 => ({ $implicit: a0 });
14220
14380
  function _forTrack0$4($index, $item) { /* @ts-ignore */
14221
14381
  return this.tabStop(); }
14222
- function KptTabs_For_2_Template(rf, ctx) { if (rf & 1) {
14223
- const _r1 = i0.ɵɵgetCurrentView();
14224
- i0.ɵɵelementStart(0, "button", 6, 0);
14225
- i0.ɵɵlistener("click", function KptTabs_For_2_Template_button_click_0_listener() { const ɵ$index_3_r2 = i0.ɵɵrestoreView(_r1).$index; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.select(ɵ$index_3_r2)); });
14226
- i0.ɵɵtext(2);
14382
+ function KptTabs_ng_template_0_Conditional_0_Template(rf, ctx) { if (rf & 1) {
14383
+ i0.ɵɵelement(0, "kpt-icon", 10);
14384
+ } if (rf & 2) {
14385
+ const tab_r1 = i0.ɵɵnextContext().$implicit;
14386
+ i0.ɵɵstyleProp("color", tab_r1.iconPaint().css);
14387
+ i0.ɵɵproperty("name", ctx);
14388
+ i0.ɵɵattribute("data-color", tab_r1.iconPaint().tone);
14389
+ } }
14390
+ function KptTabs_ng_template_0_Conditional_2_Template(rf, ctx) { if (rf & 1) {
14391
+ i0.ɵɵelement(0, "kpt-icon", 10);
14392
+ } if (rf & 2) {
14393
+ const tab_r1 = i0.ɵɵnextContext().$implicit;
14394
+ i0.ɵɵstyleProp("color", tab_r1.iconEndPaint().css);
14395
+ i0.ɵɵproperty("name", ctx);
14396
+ i0.ɵɵattribute("data-color", tab_r1.iconEndPaint().tone);
14397
+ } }
14398
+ function KptTabs_ng_template_0_Template(rf, ctx) { if (rf & 1) {
14399
+ i0.ɵɵconditionalCreate(0, KptTabs_ng_template_0_Conditional_0_Template, 1, 4, "kpt-icon", 9);
14400
+ i0.ɵɵtext(1);
14401
+ i0.ɵɵconditionalCreate(2, KptTabs_ng_template_0_Conditional_2_Template, 1, 4, "kpt-icon", 9);
14402
+ } if (rf & 2) {
14403
+ let tmp_3_0;
14404
+ let tmp_5_0;
14405
+ const tab_r1 = ctx.$implicit;
14406
+ i0.ɵɵconditional((tmp_3_0 = tab_r1.icon()) ? 0 : -1, tmp_3_0);
14407
+ i0.ɵɵadvance();
14408
+ i0.ɵɵtextInterpolate1(" ", tab_r1.label(), " ");
14409
+ i0.ɵɵadvance();
14410
+ i0.ɵɵconditional((tmp_5_0 = tab_r1.iconEnd()) ? 2 : -1, tmp_5_0);
14411
+ } }
14412
+ function KptTabs_For_5_Template(rf, ctx) { if (rf & 1) {
14413
+ const _r2 = i0.ɵɵgetCurrentView();
14414
+ i0.ɵɵelementStart(0, "button", 11, 1);
14415
+ i0.ɵɵlistener("click", function KptTabs_For_5_Template_button_click_0_listener() { const ɵ$index_14_r3 = i0.ɵɵrestoreView(_r2).$index; const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.select(ɵ$index_14_r3)); });
14416
+ i0.ɵɵelementContainer(2, 12);
14227
14417
  i0.ɵɵelementEnd();
14228
14418
  } if (rf & 2) {
14229
- const tab_r4 = ctx.$implicit;
14230
- const ɵ$index_3_r2 = ctx.$index;
14231
- const ctx_r2 = i0.ɵɵnextContext();
14232
- i0.ɵɵclassProp("is-active", ɵ$index_3_r2 === ctx_r2.tabStop());
14233
- i0.ɵɵproperty("id", ctx_r2.baseId + "-tab-" + ɵ$index_3_r2)("disabled", tab_r4.disabled());
14234
- i0.ɵɵattribute("aria-selected", ɵ$index_3_r2 === ctx_r2.tabStop())("aria-controls", ɵ$index_3_r2 === ctx_r2.tabStop() ? ctx_r2.baseId + "-panel" : null)("tabindex", ɵ$index_3_r2 === ctx_r2.tabStop() ? 0 : -1);
14419
+ const tab_r5 = ctx.$implicit;
14420
+ const ɵ$index_14_r3 = ctx.$index;
14421
+ const ctx_r3 = i0.ɵɵnextContext();
14422
+ const tabInner_r6 = i0.ɵɵreference(1);
14423
+ i0.ɵɵclassProp("is-active", ɵ$index_14_r3 === ctx_r3.tabStop());
14424
+ i0.ɵɵproperty("id", ctx_r3.baseId + "-tab-" + ɵ$index_14_r3)("disabled", tab_r5.disabled());
14425
+ i0.ɵɵattribute("aria-selected", ɵ$index_14_r3 === ctx_r3.tabStop())("aria-controls", ɵ$index_14_r3 === ctx_r3.tabStop() ? ctx_r3.baseId + "-panel" : null)("tabindex", ɵ$index_14_r3 === ctx_r3.tabStop() ? 0 : -1);
14235
14426
  i0.ɵɵadvance(2);
14236
- i0.ɵɵtextInterpolate(tab_r4.label());
14427
+ i0.ɵɵproperty("ngTemplateOutlet", tabInner_r6)("ngTemplateOutletContext", i0.ɵɵpureFunction1(9, _c1$f, tab_r5));
14237
14428
  } }
14238
- function KptTabs_For_6_Template(rf, ctx) { if (rf & 1) {
14239
- i0.ɵɵelementStart(0, "div", 5);
14240
- i0.ɵɵelementContainer(1, 7);
14429
+ function KptTabs_Conditional_7_For_2_Conditional_0_Template(rf, ctx) { if (rf & 1) {
14430
+ i0.ɵɵelementStart(0, "span", 13);
14431
+ i0.ɵɵelementContainer(1, 12);
14241
14432
  i0.ɵɵelementEnd();
14242
14433
  } if (rf & 2) {
14243
- const tab_r5 = ctx.$implicit;
14434
+ const link_r7 = i0.ɵɵnextContext().$implicit;
14435
+ i0.ɵɵnextContext(2);
14436
+ const tabInner_r6 = i0.ɵɵreference(1);
14437
+ i0.ɵɵadvance();
14438
+ i0.ɵɵproperty("ngTemplateOutlet", tabInner_r6)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c1$f, link_r7));
14439
+ } }
14440
+ function KptTabs_Conditional_7_For_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
14441
+ const _r8 = i0.ɵɵgetCurrentView();
14442
+ i0.ɵɵelementStart(0, "a", 15);
14443
+ i0.ɵɵlistener("click", function KptTabs_Conditional_7_For_2_Conditional_1_Template_a_click_0_listener($event) { i0.ɵɵrestoreView(_r8); const link_r7 = i0.ɵɵnextContext().$implicit; const ctx_r3 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r3.onLink($event, link_r7)); });
14444
+ i0.ɵɵelementContainer(1, 12);
14445
+ i0.ɵɵelementEnd();
14446
+ } if (rf & 2) {
14447
+ const link_r7 = i0.ɵɵnextContext().$implicit;
14448
+ i0.ɵɵnextContext(2);
14449
+ const tabInner_r6 = i0.ɵɵreference(1);
14450
+ i0.ɵɵattribute("href", link_r7.href(), i0.ɵɵsanitizeUrl)("target", link_r7.target())("rel", link_r7.effectiveRel());
14244
14451
  i0.ɵɵadvance();
14245
- i0.ɵɵproperty("ngTemplateOutlet", tab_r5.content());
14452
+ i0.ɵɵproperty("ngTemplateOutlet", tabInner_r6)("ngTemplateOutletContext", i0.ɵɵpureFunction1(5, _c1$f, link_r7));
14453
+ } }
14454
+ function KptTabs_Conditional_7_For_2_Template(rf, ctx) { if (rf & 1) {
14455
+ i0.ɵɵconditionalCreate(0, KptTabs_Conditional_7_For_2_Conditional_0_Template, 2, 4, "span", 13)(1, KptTabs_Conditional_7_For_2_Conditional_1_Template, 2, 7, "a", 14);
14456
+ } if (rf & 2) {
14457
+ const link_r7 = ctx.$implicit;
14458
+ i0.ɵɵconditional(link_r7.disabled() ? 0 : 1);
14459
+ } }
14460
+ function KptTabs_Conditional_7_Template(rf, ctx) { if (rf & 1) {
14461
+ i0.ɵɵelementStart(0, "div", 6);
14462
+ i0.ɵɵrepeaterCreate(1, KptTabs_Conditional_7_For_2_Template, 2, 1, null, null, i0.ɵɵrepeaterTrackByIndex);
14463
+ i0.ɵɵelementEnd();
14464
+ } if (rf & 2) {
14465
+ const ctx_r3 = i0.ɵɵnextContext();
14466
+ i0.ɵɵadvance();
14467
+ i0.ɵɵrepeater(ctx_r3.linkTabs());
14468
+ } }
14469
+ function KptTabs_For_10_Template(rf, ctx) { if (rf & 1) {
14470
+ i0.ɵɵelementStart(0, "div", 8);
14471
+ i0.ɵɵelementContainer(1, 16);
14472
+ i0.ɵɵelementEnd();
14473
+ } if (rf & 2) {
14474
+ const tab_r9 = ctx.$implicit;
14475
+ i0.ɵɵadvance();
14476
+ i0.ɵɵproperty("ngTemplateOutlet", tab_r9.content());
14246
14477
  } }
14247
14478
  let nextId$e = 0;
14248
14479
  /**
@@ -14250,23 +14481,36 @@ let nextId$e = 0;
14250
14481
  *
14251
14482
  * Klawiatura według wzorca WAI-ARIA "tabs": rząd zakładek to jeden przystanek Tab, strzałki
14252
14483
  * w lewo/prawo oraz `Home`/`End` przechodzą po zakładkach (z pominięciem wyłączonych) i od razu je
14253
- * aktywują, a kolejny `Tab` prowadzi do panelu.
14484
+ * aktywują, a kolejny `Tab` prowadzi do odnośników (jeśli są) i dalej do panelu.
14485
+ *
14486
+ * Zakładka z `href` jest odnośnikiem: stoi za zakładkami, poza `tablist`, nie ma panelu i nie
14487
+ * liczy się do `activeIndex`.
14254
14488
  *
14255
14489
  * @example
14256
14490
  * <kpt-tabs [(activeIndex)]="tab">
14257
14491
  * <kpt-tab label="Ogólne">...</kpt-tab>
14258
- * <kpt-tab label="Zaawansowane">...</kpt-tab>
14492
+ * <kpt-tab label="Zaawansowane" iconEnd="settings">...</kpt-tab>
14259
14493
  * </kpt-tabs>
14260
14494
  */
14261
14495
  class KptTabs {
14262
14496
  constructor() {
14263
14497
  this.tabs = contentChildren(KptTab, /* @ts-ignore */
14264
14498
  ...(ngDevMode ? [{ debugName: "tabs" }] : /* istanbul ignore next */ []));
14499
+ /** Indeks wśród zakładek z panelem - odnośniki (`href`) się nie liczą. */
14265
14500
  this.activeIndex = model(0, /* @ts-ignore */
14266
14501
  ...(ngDevMode ? [{ debugName: "activeIndex" }] : /* istanbul ignore next */ []));
14267
14502
  this.animated = input(true, { ...(ngDevMode ? { debugName: "animated" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
14268
14503
  this.animationDuration = input(500, /* @ts-ignore */
14269
14504
  ...(ngDevMode ? [{ debugName: "animationDuration" }] : /* istanbul ignore next */ []));
14505
+ /**
14506
+ * Zwykły klik w zakładkę-odnośnik bez `target`. Aplikacja z routerem woła
14507
+ * `event.preventDefault()` i nawiguje sama, bez przeładowania strony.
14508
+ */
14509
+ this.navigate = output();
14510
+ this.panelTabs = computed(() => this.tabs().filter((t) => !t.href()), /* @ts-ignore */
14511
+ ...(ngDevMode ? [{ debugName: "panelTabs" }] : /* istanbul ignore next */ []));
14512
+ this.linkTabs = computed(() => this.tabs().filter((t) => !!t.href()), /* @ts-ignore */
14513
+ ...(ngDevMode ? [{ debugName: "linkTabs" }] : /* istanbul ignore next */ []));
14270
14514
  this.tabBtns = viewChildren('tabBtn', /* @ts-ignore */
14271
14515
  ...(ngDevMode ? [{ debugName: "tabBtns" }] : /* istanbul ignore next */ []));
14272
14516
  this.inkX = signal(0, /* @ts-ignore */
@@ -14277,7 +14521,7 @@ class KptTabs {
14277
14521
  ...(ngDevMode ? [{ debugName: "direction" }] : /* istanbul ignore next */ []));
14278
14522
  this.baseId = `kpt-tabs-${(nextId$e += 1)}`;
14279
14523
  /** Disabled każdej zakładki - wejście dla nawigacji strzałkami. */
14280
- this.disabledMap = computed(() => this.tabs().map((t) => t.disabled()), /* @ts-ignore */
14524
+ this.disabledMap = computed(() => this.panelTabs().map((t) => t.disabled()), /* @ts-ignore */
14281
14525
  ...(ngDevMode ? [{ debugName: "disabledMap" }] : /* istanbul ignore next */ []));
14282
14526
  /**
14283
14527
  * Zakładka pokazywana i jedyna w kolejności Tab: aktywna, a gdy ta jest wyłączona - pierwsza
@@ -14285,7 +14529,7 @@ class KptTabs {
14285
14529
  */
14286
14530
  this.tabStop = computed(() => rovingStop(this.disabledMap(), this.activeIndex()), /* @ts-ignore */
14287
14531
  ...(ngDevMode ? [{ debugName: "tabStop" }] : /* istanbul ignore next */ []));
14288
- this.activeTab = computed(() => this.tabs()[this.tabStop()], /* @ts-ignore */
14532
+ this.activeTab = computed(() => this.panelTabs()[this.tabStop()], /* @ts-ignore */
14289
14533
  ...(ngDevMode ? [{ debugName: "activeTab" }] : /* istanbul ignore next */ []));
14290
14534
  this.activePanels = computed(() => {
14291
14535
  const tab = this.activeTab();
@@ -14323,8 +14567,13 @@ class KptTabs {
14323
14567
  this.select(next);
14324
14568
  btns[next]?.nativeElement.focus();
14325
14569
  }
14570
+ onLink(event, link) {
14571
+ const url = link.href();
14572
+ if (url && kptIsPlainClick(event, link.target() ?? ''))
14573
+ this.navigate.emit({ item: link, url, event });
14574
+ }
14326
14575
  select(index) {
14327
- if (this.tabs()[index]?.disabled())
14576
+ if (this.panelTabs()[index]?.disabled())
14328
14577
  return;
14329
14578
  this.direction.set(index >= this.tabStop() ? 1 : -1);
14330
14579
  this.activeIndex.set(index);
@@ -14340,48 +14589,96 @@ class KptTabs {
14340
14589
  i0.ɵɵqueryAdvance();
14341
14590
  } }, hostAttrs: [1, "kpt-tabs-host"], hostVars: 4, hostBindings: function KptTabs_HostBindings(rf, ctx) { if (rf & 2) {
14342
14591
  i0.ɵɵstyleProp("--%NS%kpt-anim-duration", (ctx.animated() ? ctx.animationDuration() : 0) + "ms")("--%NS%kpt-anim-dir", ctx.direction());
14343
- } }, inputs: { activeIndex: [1, "activeIndex"], animated: [1, "animated"], animationDuration: [1, "animationDuration"] }, outputs: { activeIndex: "activeIndexChange" }, decls: 7, vars: 6, consts: [["tabBtn", ""], ["role", "tablist", 1, "kpt-tabs__header", 3, "keydown"], ["type", "button", "role", "tab", 1, "kpt-tabs__tab", 3, "id", "is-active", "disabled"], [1, "kpt-tabs__ink"], ["role", "tabpanel", "tabindex", "0", 1, "kpt-tabs__body", 3, "id"], [1, "kpt-tabs__panel"], ["type", "button", "role", "tab", 1, "kpt-tabs__tab", 3, "click", "id", "disabled"], [3, "ngTemplateOutlet"]], template: function KptTabs_Template(rf, ctx) { if (rf & 1) {
14344
- i0.ɵɵelementStart(0, "div", 1);
14345
- i0.ɵɵlistener("keydown", function KptTabs_Template_div_keydown_0_listener($event) { return ctx.onKeydown($event); });
14346
- i0.ɵɵrepeaterCreate(1, KptTabs_For_2_Template, 3, 8, "button", 2, i0.ɵɵrepeaterTrackByIndex);
14347
- i0.ɵɵelement(3, "span", 3);
14592
+ } }, inputs: { activeIndex: [1, "activeIndex"], animated: [1, "animated"], animationDuration: [1, "animationDuration"] }, outputs: { activeIndex: "activeIndexChange", navigate: "navigate" }, decls: 11, vars: 7, consts: [["tabInner", ""], ["tabBtn", ""], [1, "kpt-tabs__header"], ["role", "tablist", 1, "kpt-tabs__list", 3, "keydown"], ["type", "button", "role", "tab", 1, "kpt-tabs__tab", 3, "id", "is-active", "disabled"], [1, "kpt-tabs__ink"], [1, "kpt-tabs__links"], ["role", "tabpanel", "tabindex", "0", 1, "kpt-tabs__body", 3, "id"], [1, "kpt-tabs__panel"], [1, "kpt-tabs__icon", 3, "name", "color"], [1, "kpt-tabs__icon", 3, "name"], ["type", "button", "role", "tab", 1, "kpt-tabs__tab", 3, "click", "id", "disabled"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"], ["role", "link", "aria-disabled", "true", 1, "kpt-tabs__tab", "kpt-tabs__link"], [1, "kpt-tabs__tab", "kpt-tabs__link"], [1, "kpt-tabs__tab", "kpt-tabs__link", 3, "click"], [3, "ngTemplateOutlet"]], template: function KptTabs_Template(rf, ctx) { if (rf & 1) {
14593
+ i0.ɵɵtemplate(0, KptTabs_ng_template_0_Template, 3, 3, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
14594
+ i0.ɵɵelementStart(2, "div", 2)(3, "div", 3);
14595
+ i0.ɵɵlistener("keydown", function KptTabs_Template_div_keydown_3_listener($event) { return ctx.onKeydown($event); });
14596
+ i0.ɵɵrepeaterCreate(4, KptTabs_For_5_Template, 3, 11, "button", 4, i0.ɵɵrepeaterTrackByIndex);
14597
+ i0.ɵɵelement(6, "span", 5);
14348
14598
  i0.ɵɵelementEnd();
14349
- i0.ɵɵelementStart(4, "div", 4);
14350
- i0.ɵɵrepeaterCreate(5, KptTabs_For_6_Template, 2, 1, "div", 5, _forTrack0$4, true);
14599
+ i0.ɵɵconditionalCreate(7, KptTabs_Conditional_7_Template, 3, 0, "div", 6);
14600
+ i0.ɵɵelementEnd();
14601
+ i0.ɵɵelementStart(8, "div", 7);
14602
+ i0.ɵɵrepeaterCreate(9, KptTabs_For_10_Template, 2, 1, "div", 8, _forTrack0$4, true);
14351
14603
  i0.ɵɵelementEnd();
14352
14604
  } if (rf & 2) {
14353
- i0.ɵɵadvance();
14354
- i0.ɵɵrepeater(ctx.tabs());
14605
+ i0.ɵɵadvance(4);
14606
+ i0.ɵɵrepeater(ctx.panelTabs());
14355
14607
  i0.ɵɵadvance(2);
14356
14608
  i0.ɵɵstyleProp("width", ctx.inkW(), "px")("transform", "translateX(" + ctx.inkX() + "px)");
14357
14609
  i0.ɵɵadvance();
14610
+ i0.ɵɵconditional(ctx.linkTabs().length ? 7 : -1);
14611
+ i0.ɵɵadvance();
14358
14612
  i0.ɵɵproperty("id", ctx.baseId + "-panel");
14359
14613
  i0.ɵɵattribute("aria-labelledby", ctx.baseId + "-tab-" + ctx.tabStop());
14360
14614
  i0.ɵɵadvance();
14361
14615
  i0.ɵɵrepeater(ctx.activePanels());
14362
- } }, dependencies: [NgTemplateOutlet], styles: ["@layer kpt.components{.kpt-tabs-host{display:block}.kpt-tabs__header{position:relative;display:flex;gap:.25rem;border-bottom:var(--%NS%kpt-border-width-thin, 1px) solid var(--%NS%kpt-color-border)}.kpt-tabs__tab{appearance:none;border:0;background:none;padding:.65rem 1rem;color:var(--%NS%kpt-color-on-surface-muted);font:inherit;font-size:var(--%NS%kpt-font-size-sm, .875rem);font-weight:var(--%NS%kpt-font-weight-medium, 500);cursor:pointer;transition:color var(--%NS%kpt-motion-duration-fast, .12s) var(--%NS%kpt-motion-easing-standard)}.kpt-tabs__tab:hover:not(:disabled):not(.is-active){color:var(--%NS%kpt-color-on-surface)}.kpt-tabs__tab.is-active{color:var(--%NS%kpt-color-primary)}.kpt-tabs__tab:disabled{opacity:.45;cursor:not-allowed}.kpt-tabs__ink{position:absolute;bottom:-1px;left:0;height:2px;background:var(--%NS%kpt-color-primary);pointer-events:none;transition:transform calc(var(--%NS%kpt-anim-duration, .5s) * var(--%NS%kpt-motion-scale, 1)) var(--%NS%kpt-motion-easing-standard),width calc(var(--%NS%kpt-anim-duration, .5s) * var(--%NS%kpt-motion-scale, 1)) var(--%NS%kpt-motion-easing-standard)}.kpt-tabs__body{padding-block:var(--%NS%kpt-space-4, 1rem);overflow-x:clip}@keyframes kpt-tabs-enter{0%{opacity:0;transform:translate(calc(var(--%NS%kpt-anim-dir, 1) * 1.5rem))}to{opacity:1;transform:none}}.kpt-tabs__panel{animation:kpt-tabs-enter calc(var(--%NS%kpt-anim-duration, .5s) * var(--%NS%kpt-motion-scale, 1)) var(--%NS%kpt-motion-easing-standard)}@media(prefers-reduced-motion:reduce){.kpt-tabs__panel{animation:none}.kpt-tabs__ink{transition:none}}}\n"], encapsulation: 2 }); }
14616
+ } }, dependencies: [NgTemplateOutlet, KptIcon], styles: ["@layer kpt.components{.kpt-tabs-host{display:block}.kpt-tabs__header{display:flex;gap:.25rem;border-bottom:var(--%NS%kpt-border-width-thin, 1px) solid var(--%NS%kpt-color-border)}.kpt-tabs__list,.kpt-tabs__links{display:flex;gap:.25rem}.kpt-tabs__list{position:relative}.kpt-tabs__tab{appearance:none;display:inline-flex;align-items:center;gap:var(--%NS%kpt-space-2, .5rem);border:0;background:none;padding:.65rem 1rem;color:var(--%NS%kpt-color-on-surface-muted);font:inherit;font-size:var(--%NS%kpt-font-size-sm, .875rem);font-weight:var(--%NS%kpt-font-weight-medium, 500);cursor:pointer;transition:color var(--%NS%kpt-motion-duration-fast, .12s) var(--%NS%kpt-motion-easing-standard)}.kpt-tabs__tab:hover:not(:disabled,[aria-disabled=true],.is-active){color:var(--%NS%kpt-color-on-surface)}.kpt-tabs__tab.is-active{color:var(--%NS%kpt-color-primary)}.kpt-tabs__tab:disabled{opacity:.45;cursor:not-allowed}.kpt-tabs__link{text-decoration:none}.kpt-tabs__link[aria-disabled=true]{opacity:.45;cursor:not-allowed}.kpt-tabs__icon{font-size:1.125em;color:var(--%NS%_icon-color, currentColor)}.kpt-tabs__icon[data-color=primary]{--%NS%_icon-color: var(--%NS%kpt-color-primary)}.kpt-tabs__icon[data-color=success]{--%NS%_icon-color: var(--%NS%kpt-color-success)}.kpt-tabs__icon[data-color=warning]{--%NS%_icon-color: var(--%NS%kpt-color-warning)}.kpt-tabs__icon[data-color=danger]{--%NS%_icon-color: var(--%NS%kpt-color-danger)}.kpt-tabs__icon[data-color=info]{--%NS%_icon-color: var(--%NS%kpt-color-info)}.kpt-tabs__ink{position:absolute;bottom:-1px;left:0;height:2px;background:var(--%NS%kpt-color-primary);pointer-events:none;transition:transform calc(var(--%NS%kpt-anim-duration, .5s) * var(--%NS%kpt-motion-scale, 1)) var(--%NS%kpt-motion-easing-standard),width calc(var(--%NS%kpt-anim-duration, .5s) * var(--%NS%kpt-motion-scale, 1)) var(--%NS%kpt-motion-easing-standard)}.kpt-tabs__body{padding-block:var(--%NS%kpt-space-4, 1rem);overflow-x:clip}@keyframes kpt-tabs-enter{0%{opacity:0;transform:translate(calc(var(--%NS%kpt-anim-dir, 1) * 1.5rem))}to{opacity:1;transform:none}}.kpt-tabs__panel{animation:kpt-tabs-enter calc(var(--%NS%kpt-anim-duration, .5s) * var(--%NS%kpt-motion-scale, 1)) var(--%NS%kpt-motion-easing-standard)}@media(prefers-reduced-motion:reduce){.kpt-tabs__panel{animation:none}.kpt-tabs__ink{transition:none}}}\n"], encapsulation: 2 }); }
14363
14617
  }
14364
14618
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(KptTabs, [{
14365
14619
  type: Component,
14366
- args: [{ selector: 'kpt-tabs', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [NgTemplateOutlet], template: `
14367
- <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -- fokus niosą pozycje (roving tabindex), kontener tylko deleguje strzałki -->
14368
- <div class="kpt-tabs__header" role="tablist" (keydown)="onKeydown($event)">
14369
- @for (tab of tabs(); track $index; let i = $index) {
14370
- <button
14371
- #tabBtn
14372
- type="button"
14373
- class="kpt-tabs__tab"
14374
- role="tab"
14375
- [id]="baseId + '-tab-' + i"
14376
- [class.is-active]="i === tabStop()"
14377
- [disabled]="tab.disabled()"
14378
- [attr.aria-selected]="i === tabStop()"
14379
- [attr.aria-controls]="i === tabStop() ? baseId + '-panel' : null"
14380
- [attr.tabindex]="i === tabStop() ? 0 : -1"
14381
- (click)="select(i)"
14382
- >{{ tab.label() }}</button>
14620
+ args: [{ selector: 'kpt-tabs', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [NgTemplateOutlet, KptIcon], template: `
14621
+ <ng-template #tabInner let-tab>
14622
+ @if (tab.icon(); as name) {
14623
+ <kpt-icon class="kpt-tabs__icon" [name]="name" [attr.data-color]="tab.iconPaint().tone" [style.color]="tab.iconPaint().css" />
14624
+ }
14625
+ {{ tab.label() }}
14626
+ @if (tab.iconEnd(); as name) {
14627
+ <kpt-icon class="kpt-tabs__icon" [name]="name" [attr.data-color]="tab.iconEndPaint().tone" [style.color]="tab.iconEndPaint().css" />
14628
+ }
14629
+ </ng-template>
14630
+
14631
+ <!--
14632
+ Odnośniki stoją za listą, nie w niej: \`tablist\` może zawierać wyłącznie zakładki, a odnośnik
14633
+ ogłoszony jako zakładka obiecywałby panel, którego nie ma.
14634
+ -->
14635
+ <div class="kpt-tabs__header">
14636
+ <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -- fokus niosą pozycje (roving tabindex), kontener tylko deleguje strzałki -->
14637
+ <div class="kpt-tabs__list" role="tablist" (keydown)="onKeydown($event)">
14638
+ @for (tab of panelTabs(); track $index; let i = $index) {
14639
+ <button
14640
+ #tabBtn
14641
+ type="button"
14642
+ class="kpt-tabs__tab"
14643
+ role="tab"
14644
+ [id]="baseId + '-tab-' + i"
14645
+ [class.is-active]="i === tabStop()"
14646
+ [disabled]="tab.disabled()"
14647
+ [attr.aria-selected]="i === tabStop()"
14648
+ [attr.aria-controls]="i === tabStop() ? baseId + '-panel' : null"
14649
+ [attr.tabindex]="i === tabStop() ? 0 : -1"
14650
+ (click)="select(i)"
14651
+ >
14652
+ <ng-container [ngTemplateOutlet]="tabInner" [ngTemplateOutletContext]="{ $implicit: tab }" />
14653
+ </button>
14654
+ }
14655
+ <span class="kpt-tabs__ink" [style.width.px]="inkW()" [style.transform]="'translateX(' + inkX() + 'px)'"></span>
14656
+ </div>
14657
+ @if (linkTabs().length) {
14658
+ <div class="kpt-tabs__links">
14659
+ @for (link of linkTabs(); track $index) {
14660
+ <!--
14661
+ Wyłączony odnośnik nie jest \`<a>\` - z \`href\` dałoby się go otworzyć klawiaturą albo
14662
+ środkowym przyciskiem, a \`<a>\` bez \`href\` i tak nie jest już odnośnikiem.
14663
+ -->
14664
+ @if (link.disabled()) {
14665
+ <span class="kpt-tabs__tab kpt-tabs__link" role="link" aria-disabled="true">
14666
+ <ng-container [ngTemplateOutlet]="tabInner" [ngTemplateOutletContext]="{ $implicit: link }" />
14667
+ </span>
14668
+ } @else {
14669
+ <a
14670
+ class="kpt-tabs__tab kpt-tabs__link"
14671
+ [attr.href]="link.href()"
14672
+ [attr.target]="link.target()"
14673
+ [attr.rel]="link.effectiveRel()"
14674
+ (click)="onLink($event, link)"
14675
+ >
14676
+ <ng-container [ngTemplateOutlet]="tabInner" [ngTemplateOutletContext]="{ $implicit: link }" />
14677
+ </a>
14678
+ }
14679
+ }
14680
+ </div>
14383
14681
  }
14384
- <span class="kpt-tabs__ink" [style.width.px]="inkW()" [style.transform]="'translateX(' + inkX() + 'px)'"></span>
14385
14682
  </div>
14386
14683
  <div
14387
14684
  class="kpt-tabs__body"
@@ -14398,9 +14695,9 @@ class KptTabs {
14398
14695
  'class': 'kpt-tabs-host',
14399
14696
  '[style.--kpt-anim-duration]': "(animated() ? animationDuration() : 0) + 'ms'",
14400
14697
  '[style.--kpt-anim-dir]': 'direction()',
14401
- }, styles: ["@layer kpt.components{.kpt-tabs-host{display:block}.kpt-tabs__header{position:relative;display:flex;gap:.25rem;border-bottom:var(--kpt-border-width-thin, 1px) solid var(--kpt-color-border)}.kpt-tabs__tab{appearance:none;border:0;background:none;padding:.65rem 1rem;color:var(--kpt-color-on-surface-muted);font:inherit;font-size:var(--kpt-font-size-sm, .875rem);font-weight:var(--kpt-font-weight-medium, 500);cursor:pointer;transition:color var(--kpt-motion-duration-fast, .12s) var(--kpt-motion-easing-standard)}.kpt-tabs__tab:hover:not(:disabled):not(.is-active){color:var(--kpt-color-on-surface)}.kpt-tabs__tab.is-active{color:var(--kpt-color-primary)}.kpt-tabs__tab:disabled{opacity:.45;cursor:not-allowed}.kpt-tabs__ink{position:absolute;bottom:-1px;left:0;height:2px;background:var(--kpt-color-primary);pointer-events:none;transition:transform calc(var(--kpt-anim-duration, .5s) * var(--kpt-motion-scale, 1)) var(--kpt-motion-easing-standard),width calc(var(--kpt-anim-duration, .5s) * var(--kpt-motion-scale, 1)) var(--kpt-motion-easing-standard)}.kpt-tabs__body{padding-block:var(--kpt-space-4, 1rem);overflow-x:clip}@keyframes kpt-tabs-enter{0%{opacity:0;transform:translate(calc(var(--kpt-anim-dir, 1) * 1.5rem))}to{opacity:1;transform:none}}.kpt-tabs__panel{animation:kpt-tabs-enter calc(var(--kpt-anim-duration, .5s) * var(--kpt-motion-scale, 1)) var(--kpt-motion-easing-standard)}@media(prefers-reduced-motion:reduce){.kpt-tabs__panel{animation:none}.kpt-tabs__ink{transition:none}}}\n"] }]
14402
- }], () => [], { tabs: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => KptTab), { isSignal: true }] }], activeIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeIndex", required: false }] }, { type: i0.Output, args: ["activeIndexChange"] }], animated: [{ type: i0.Input, args: [{ isSignal: true, alias: "animated", required: false }] }], animationDuration: [{ type: i0.Input, args: [{ isSignal: true, alias: "animationDuration", required: false }] }], tabBtns: [{ type: i0.ViewChildren, args: ['tabBtn', { isSignal: true }] }] }); })();
14403
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(KptTabs, { className: "KptTabs", filePath: "lib/tabs/tabs.component.ts", lineNumber: 81 }); })();
14698
+ }, styles: ["@layer kpt.components{.kpt-tabs-host{display:block}.kpt-tabs__header{display:flex;gap:.25rem;border-bottom:var(--kpt-border-width-thin, 1px) solid var(--kpt-color-border)}.kpt-tabs__list,.kpt-tabs__links{display:flex;gap:.25rem}.kpt-tabs__list{position:relative}.kpt-tabs__tab{appearance:none;display:inline-flex;align-items:center;gap:var(--kpt-space-2, .5rem);border:0;background:none;padding:.65rem 1rem;color:var(--kpt-color-on-surface-muted);font:inherit;font-size:var(--kpt-font-size-sm, .875rem);font-weight:var(--kpt-font-weight-medium, 500);cursor:pointer;transition:color var(--kpt-motion-duration-fast, .12s) var(--kpt-motion-easing-standard)}.kpt-tabs__tab:hover:not(:disabled,[aria-disabled=true],.is-active){color:var(--kpt-color-on-surface)}.kpt-tabs__tab.is-active{color:var(--kpt-color-primary)}.kpt-tabs__tab:disabled{opacity:.45;cursor:not-allowed}.kpt-tabs__link{text-decoration:none}.kpt-tabs__link[aria-disabled=true]{opacity:.45;cursor:not-allowed}.kpt-tabs__icon{font-size:1.125em;color:var(--_icon-color, currentColor)}.kpt-tabs__icon[data-color=primary]{--_icon-color: var(--kpt-color-primary)}.kpt-tabs__icon[data-color=success]{--_icon-color: var(--kpt-color-success)}.kpt-tabs__icon[data-color=warning]{--_icon-color: var(--kpt-color-warning)}.kpt-tabs__icon[data-color=danger]{--_icon-color: var(--kpt-color-danger)}.kpt-tabs__icon[data-color=info]{--_icon-color: var(--kpt-color-info)}.kpt-tabs__ink{position:absolute;bottom:-1px;left:0;height:2px;background:var(--kpt-color-primary);pointer-events:none;transition:transform calc(var(--kpt-anim-duration, .5s) * var(--kpt-motion-scale, 1)) var(--kpt-motion-easing-standard),width calc(var(--kpt-anim-duration, .5s) * var(--kpt-motion-scale, 1)) var(--kpt-motion-easing-standard)}.kpt-tabs__body{padding-block:var(--kpt-space-4, 1rem);overflow-x:clip}@keyframes kpt-tabs-enter{0%{opacity:0;transform:translate(calc(var(--kpt-anim-dir, 1) * 1.5rem))}to{opacity:1;transform:none}}.kpt-tabs__panel{animation:kpt-tabs-enter calc(var(--kpt-anim-duration, .5s) * var(--kpt-motion-scale, 1)) var(--kpt-motion-easing-standard)}@media(prefers-reduced-motion:reduce){.kpt-tabs__panel{animation:none}.kpt-tabs__ink{transition:none}}}\n"] }]
14699
+ }], () => [], { tabs: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => KptTab), { isSignal: true }] }], activeIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeIndex", required: false }] }, { type: i0.Output, args: ["activeIndexChange"] }], animated: [{ type: i0.Input, args: [{ isSignal: true, alias: "animated", required: false }] }], animationDuration: [{ type: i0.Input, args: [{ isSignal: true, alias: "animationDuration", required: false }] }], navigate: [{ type: i0.Output, args: ["navigate"] }], tabBtns: [{ type: i0.ViewChildren, args: ['tabBtn', { isSignal: true }] }] }); })();
14700
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(KptTabs, { className: "KptTabs", filePath: "lib/tabs/tabs.component.ts", lineNumber: 130 }); })();
14404
14701
 
14405
14702
  const _c0$l = ["*"];
14406
14703
  let nextId$d = 0;
@@ -14566,16 +14863,6 @@ class KptAccordion {
14566
14863
  }], null, { multi: [{ type: i0.Input, args: [{ isSignal: true, alias: "multi", required: false }] }], animated: [{ type: i0.Input, args: [{ isSignal: true, alias: "animated", required: false }] }], animationDuration: [{ type: i0.Input, args: [{ isSignal: true, alias: "animationDuration", required: false }] }], collapseMotion: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapseMotion", required: false }] }], panels: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => KptAccordionPanel), { isSignal: true }] }] }); })();
14567
14864
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(KptAccordion, { className: "KptAccordion", filePath: "lib/accordion/accordion.component.ts", lineNumber: 23 }); })();
14568
14865
 
14569
- /**
14570
- * Czy klik to zwykła nawigacja w tej samej karcie: lewy przycisk, bez modyfikatorów, a odnośnik
14571
- * nie ma `target` innego niż `_self`. `target` podaje wołający - w React `currentTarget`
14572
- * zdarzenia natywnego to korzeń aplikacji, nie kliknięty odnośnik.
14573
- */
14574
- function kptIsPlainClick(event, target = '') {
14575
- const modified = event.ctrlKey || event.metaKey || event.shiftKey || event.altKey;
14576
- return event.button === 0 && !modified && (target === '' || target === '_self');
14577
- }
14578
-
14579
14866
  const _forTrack0$3 = ($index, $item) => $item.url ?? $item.label;
14580
14867
  function KptBreadcrumb_For_3_Conditional_1_Template(rf, ctx) { if (rf & 1) {
14581
14868
  const _r1 = i0.ɵɵgetCurrentView();
@@ -15119,10 +15406,10 @@ class KptRowDetailDef {
15119
15406
 
15120
15407
  const _c0$h = ["scrollEl"];
15121
15408
  const _c1$e = ["theadEl"];
15122
- const _c2$8 = ["editorHost"];
15123
- const _c3$1 = [[["", "kptPaginatorActions", ""]]];
15124
- const _c4 = ["[kptPaginatorActions]"];
15125
- const _c5 = () => ({ $implicit: 1 });
15409
+ const _c2$9 = ["editorHost"];
15410
+ const _c3$2 = [[["", "kptPaginatorActions", ""]]];
15411
+ const _c4$1 = ["[kptPaginatorActions]"];
15412
+ const _c5$1 = () => ({ $implicit: 1 });
15126
15413
  const _c6 = a0 => ({ column: a0 });
15127
15414
  const _c7 = () => ({ $implicit: 2 });
15128
15415
  const _c8 = (a0, a1) => ({ $implicit: a0, rowIndex: a1 });
@@ -15224,7 +15511,7 @@ function KptDataTable_Conditional_8_Template(rf, ctx) { if (rf & 1) {
15224
15511
  } if (rf & 2) {
15225
15512
  i0.ɵɵnextContext();
15226
15513
  const filterRowTpl_r6 = i0.ɵɵreference(30);
15227
- i0.ɵɵproperty("ngTemplateOutlet", filterRowTpl_r6)("ngTemplateOutletContext", i0.ɵɵpureFunction0(2, _c5));
15514
+ i0.ɵɵproperty("ngTemplateOutlet", filterRowTpl_r6)("ngTemplateOutletContext", i0.ɵɵpureFunction0(2, _c5$1));
15228
15515
  } }
15229
15516
  function KptDataTable_Conditional_10_Template(rf, ctx) { if (rf & 1) {
15230
15517
  i0.ɵɵelement(0, "th", 25);
@@ -16857,13 +17144,13 @@ class KptDataTable {
16857
17144
  } if (rf & 2) {
16858
17145
  i0.ɵɵqueryAdvance(3);
16859
17146
  } }, viewQuery: function KptDataTable_Query(rf, ctx) { if (rf & 1) {
16860
- i0.ɵɵviewQuerySignal(ctx.scrollEl, _c0$h, 5)(ctx.theadEl, _c1$e, 5)(ctx.editorHost, _c2$8, 5)(ctx.filterMic, KptSpeechButton, 5);
17147
+ i0.ɵɵviewQuerySignal(ctx.scrollEl, _c0$h, 5)(ctx.theadEl, _c1$e, 5)(ctx.editorHost, _c2$9, 5)(ctx.filterMic, KptSpeechButton, 5);
16861
17148
  } if (rf & 2) {
16862
17149
  i0.ɵɵqueryAdvance(4);
16863
17150
  } }, hostAttrs: [1, "kpt-data-table"], hostVars: 2, hostBindings: function KptDataTable_HostBindings(rf, ctx) { if (rf & 2) {
16864
17151
  i0.ɵɵstyleProp("--%NS%kpt-thead-offset", ctx.theadOffset() + "px");
16865
- } }, inputs: { columns: [1, "columns"], data: [1, "data"], filterable: [1, "filterable"], filterSpeech: [1, "filterSpeech"], filterSpeechLang: [1, "filterSpeechLang"], filterSpeechColor: [1, "filterSpeechColor"], filterRowPosition: [1, "filterRowPosition"], pageSize: [1, "pageSize"], pageSizeOptions: [1, "pageSizeOptions"], selectable: [1, "selectable"], loading: [1, "loading"], ariaLabel: [1, "ariaLabel"], caption: [1, "caption"], clickableRows: [1, "clickableRows"], emptyMessage: [1, "emptyMessage"], rowKey: [1, "rowKey"], scrollHeight: [1, "scrollHeight"], virtualScroll: [1, "virtualScroll"], columnWidth: [1, "columnWidth"], rowHeight: [1, "rowHeight"], frozenSystemColumns: [1, "frozenSystemColumns"], reorderable: [1, "reorderable"], exportable: [1, "exportable"], exportFilename: [1, "exportFilename"], lazy: [1, "lazy"], totalRecords: [1, "totalRecords"], expandable: [1, "expandable"], multiExpand: [1, "multiExpand"], summaryLabel: [1, "summaryLabel"], summaryValues: [1, "summaryValues"], selection: [1, "selection"], expandedRows: [1, "expandedRows"], hiddenFields: [1, "hiddenFields"] }, outputs: { selection: "selectionChange", expandedRows: "expandedRowsChange", hiddenFields: "hiddenFieldsChange", rowClick: "rowClick", lazyLoad: "lazyLoad", cellEdit: "cellEdit" }, ngContentSelectors: _c4, decls: 32, vars: 24, consts: [["scrollEl", ""], ["theadEl", ""], ["rowTpl", ""], ["filterRowTpl", ""], ["filterEl", ""], ["editorHost", ""], [1, "kpt-data-table__toolbar"], [1, "kpt-data-table__scroll", 3, "scroll"], [1, "kpt-data-table__table"], [1, "kpt-data-table__caption"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"], [1, "kpt-data-table__expander", 3, "kpt-data-table__cell--frozen", "left"], [1, "kpt-data-table__checkbox", 3, "kpt-data-table__cell--frozen", "left"], ["aria-live", "polite", 1, "kpt-data-table__live"], ["hidden", ""], [1, "kpt-data-table__pager"], [1, "kpt-data-table__search"], ["variant", "outline", "size", "sm"], ["type", "search", 1, "kpt-data-table__filter", 3, "input", "value"], ["size", "sm", "unsupported", "hide", "mode", "replace", 1, "kpt-data-table__speech", 3, "continuous", "target", "lang", "listeningColor"], ["variant", "outline", "size", "sm", 3, "click"], [1, "kpt-data-table__caption-text"], [1, "kpt-data-table__col-expander"], [1, "kpt-data-table__col-checkbox"], [3, "width"], [1, "kpt-data-table__expander"], [1, "kpt-data-table__checkbox"], ["type", "checkbox", 3, "change", "checked", "indeterminate"], [3, "width", "left", "kpt-data-table__cell--frozen", "kpt-data-table__th--sortable", "kpt-data-table__th--draggable", "kpt-data-table__th--dragover"], ["aria-hidden", "true", 1, "kpt-data-table__hspacer"], [3, "dragstart", "dragover", "drop", "dragend"], ["type", "button", "aria-keyshortcuts", "ArrowLeft ArrowRight", 1, "kpt-data-table__grip"], ["type", "button", 1, "kpt-data-table__sort-btn"], ["type", "button", "aria-keyshortcuts", "ArrowLeft ArrowRight", 1, "kpt-data-table__grip", 3, "keydown"], ["name", "grip-vertical"], ["type", "button", 1, "kpt-data-table__sort-btn", 3, "click"], [1, "kpt-data-table__sort", 3, "name"], [1, "kpt-data-table__state"], ["aria-hidden", "true", 1, "kpt-data-table__spacer"], [1, "kpt-data-table__summary"], [1, "kpt-data-table__cell--frozen", 3, "left"], [1, "kpt-data-table__summary-label", 3, "kpt-data-table__cell--frozen", "left"], [1, "kpt-data-table__cell--frozen"], [1, "kpt-data-table__summary-label"], [3, "width", "left", "kpt-data-table__cell--frozen"], [3, "id"], [3, "click", "keydown"], [1, "kpt-data-table__detail-row"], ["type", "button", 1, "kpt-data-table__expander-btn", 3, "click"], ["name", "chevron-right"], [3, "click", "type", "checked"], [3, "left", "kpt-data-table__cell--frozen", "kpt-data-table__cell--editable"], [3, "click", "keydown.enter"], [1, "kpt-data-table__editor"], [1, "kpt-data-table__editor", 3, "click", "focusout"], [3, "value", "placeholder"], [3, "value", "min", "max", "step"], [3, "value", "open"], [3, "options", "placeholder", "value", "open"], ["multiple", "", "filter", "", 3, "options", "placeholder", "value", "open"], [3, "valueChange", "keydown.enter", "keydown.escape", "value", "placeholder"], [3, "valueChange", "keydown.enter", "keydown.escape", "value", "min", "max", "step"], [3, "valueChange", "openChange", "value", "open"], [3, "valueChange", "openChange", "options", "placeholder", "value", "open"], ["multiple", "", "filter", "", 3, "valueChange", "openChange", "options", "placeholder", "value", "open"], [1, "kpt-data-table__detail"], [1, "kpt-data-table__filter-row"], ["type", "search", 1, "kpt-data-table__fcell", 3, "value"], ["type", "text", "inputmode", "numeric", 1, "kpt-data-table__fcell", 3, "value"], ["filter", "", 3, "options", "multiple", "placeholder", "value"], [1, "kpt-data-table__frange"], [1, "kpt-data-table__fslider"], [3, "placeholder", "value"], ["type", "search", 1, "kpt-data-table__fcell", 3, "input", "click", "value"], ["type", "text", "inputmode", "numeric", 1, "kpt-data-table__fcell", 3, "input", "click", "value"], ["filter", "", 3, "valueChange", "options", "multiple", "placeholder", "value"], [1, "kpt-data-table__fslider", 3, "click"], ["range", "", "showValue", "", 3, "valueChange", "min", "max", "step", "value"], [3, "valueChange", "placeholder", "value"], [3, "pageIndexChange", "pageSizeChange", "length", "pageIndex", "pageSize", "pageSizeOptions"]], template: function KptDataTable_Template(rf, ctx) { if (rf & 1) {
16866
- i0.ɵɵprojectionDef(_c3$1);
17152
+ } }, inputs: { columns: [1, "columns"], data: [1, "data"], filterable: [1, "filterable"], filterSpeech: [1, "filterSpeech"], filterSpeechLang: [1, "filterSpeechLang"], filterSpeechColor: [1, "filterSpeechColor"], filterRowPosition: [1, "filterRowPosition"], pageSize: [1, "pageSize"], pageSizeOptions: [1, "pageSizeOptions"], selectable: [1, "selectable"], loading: [1, "loading"], ariaLabel: [1, "ariaLabel"], caption: [1, "caption"], clickableRows: [1, "clickableRows"], emptyMessage: [1, "emptyMessage"], rowKey: [1, "rowKey"], scrollHeight: [1, "scrollHeight"], virtualScroll: [1, "virtualScroll"], columnWidth: [1, "columnWidth"], rowHeight: [1, "rowHeight"], frozenSystemColumns: [1, "frozenSystemColumns"], reorderable: [1, "reorderable"], exportable: [1, "exportable"], exportFilename: [1, "exportFilename"], lazy: [1, "lazy"], totalRecords: [1, "totalRecords"], expandable: [1, "expandable"], multiExpand: [1, "multiExpand"], summaryLabel: [1, "summaryLabel"], summaryValues: [1, "summaryValues"], selection: [1, "selection"], expandedRows: [1, "expandedRows"], hiddenFields: [1, "hiddenFields"] }, outputs: { selection: "selectionChange", expandedRows: "expandedRowsChange", hiddenFields: "hiddenFieldsChange", rowClick: "rowClick", lazyLoad: "lazyLoad", cellEdit: "cellEdit" }, ngContentSelectors: _c4$1, decls: 32, vars: 24, consts: [["scrollEl", ""], ["theadEl", ""], ["rowTpl", ""], ["filterRowTpl", ""], ["filterEl", ""], ["editorHost", ""], [1, "kpt-data-table__toolbar"], [1, "kpt-data-table__scroll", 3, "scroll"], [1, "kpt-data-table__table"], [1, "kpt-data-table__caption"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"], [1, "kpt-data-table__expander", 3, "kpt-data-table__cell--frozen", "left"], [1, "kpt-data-table__checkbox", 3, "kpt-data-table__cell--frozen", "left"], ["aria-live", "polite", 1, "kpt-data-table__live"], ["hidden", ""], [1, "kpt-data-table__pager"], [1, "kpt-data-table__search"], ["variant", "outline", "size", "sm"], ["type", "search", 1, "kpt-data-table__filter", 3, "input", "value"], ["size", "sm", "unsupported", "hide", "mode", "replace", 1, "kpt-data-table__speech", 3, "continuous", "target", "lang", "listeningColor"], ["variant", "outline", "size", "sm", 3, "click"], [1, "kpt-data-table__caption-text"], [1, "kpt-data-table__col-expander"], [1, "kpt-data-table__col-checkbox"], [3, "width"], [1, "kpt-data-table__expander"], [1, "kpt-data-table__checkbox"], ["type", "checkbox", 3, "change", "checked", "indeterminate"], [3, "width", "left", "kpt-data-table__cell--frozen", "kpt-data-table__th--sortable", "kpt-data-table__th--draggable", "kpt-data-table__th--dragover"], ["aria-hidden", "true", 1, "kpt-data-table__hspacer"], [3, "dragstart", "dragover", "drop", "dragend"], ["type", "button", "aria-keyshortcuts", "ArrowLeft ArrowRight", 1, "kpt-data-table__grip"], ["type", "button", 1, "kpt-data-table__sort-btn"], ["type", "button", "aria-keyshortcuts", "ArrowLeft ArrowRight", 1, "kpt-data-table__grip", 3, "keydown"], ["name", "grip-vertical"], ["type", "button", 1, "kpt-data-table__sort-btn", 3, "click"], [1, "kpt-data-table__sort", 3, "name"], [1, "kpt-data-table__state"], ["aria-hidden", "true", 1, "kpt-data-table__spacer"], [1, "kpt-data-table__summary"], [1, "kpt-data-table__cell--frozen", 3, "left"], [1, "kpt-data-table__summary-label", 3, "kpt-data-table__cell--frozen", "left"], [1, "kpt-data-table__cell--frozen"], [1, "kpt-data-table__summary-label"], [3, "width", "left", "kpt-data-table__cell--frozen"], [3, "id"], [3, "click", "keydown"], [1, "kpt-data-table__detail-row"], ["type", "button", 1, "kpt-data-table__expander-btn", 3, "click"], ["name", "chevron-right"], [3, "click", "type", "checked"], [3, "left", "kpt-data-table__cell--frozen", "kpt-data-table__cell--editable"], [3, "click", "keydown.enter"], [1, "kpt-data-table__editor"], [1, "kpt-data-table__editor", 3, "click", "focusout"], [3, "value", "placeholder"], [3, "value", "min", "max", "step"], [3, "value", "open"], [3, "options", "placeholder", "value", "open"], ["multiple", "", "filter", "", 3, "options", "placeholder", "value", "open"], [3, "valueChange", "keydown.enter", "keydown.escape", "value", "placeholder"], [3, "valueChange", "keydown.enter", "keydown.escape", "value", "min", "max", "step"], [3, "valueChange", "openChange", "value", "open"], [3, "valueChange", "openChange", "options", "placeholder", "value", "open"], ["multiple", "", "filter", "", 3, "valueChange", "openChange", "options", "placeholder", "value", "open"], [1, "kpt-data-table__detail"], [1, "kpt-data-table__filter-row"], ["type", "search", 1, "kpt-data-table__fcell", 3, "value"], ["type", "text", "inputmode", "numeric", 1, "kpt-data-table__fcell", 3, "value"], ["filter", "", 3, "options", "multiple", "placeholder", "value"], [1, "kpt-data-table__frange"], [1, "kpt-data-table__fslider"], [3, "placeholder", "value"], ["type", "search", 1, "kpt-data-table__fcell", 3, "input", "click", "value"], ["type", "text", "inputmode", "numeric", 1, "kpt-data-table__fcell", 3, "input", "click", "value"], ["filter", "", 3, "valueChange", "options", "multiple", "placeholder", "value"], [1, "kpt-data-table__fslider", 3, "click"], ["range", "", "showValue", "", 3, "valueChange", "min", "max", "step", "value"], [3, "valueChange", "placeholder", "value"], [3, "pageIndexChange", "pageSizeChange", "length", "pageIndex", "pageSize", "pageSizeOptions"]], template: function KptDataTable_Template(rf, ctx) { if (rf & 1) {
17153
+ i0.ɵɵprojectionDef(_c3$2);
16867
17154
  i0.ɵɵconditionalCreate(0, KptDataTable_Conditional_0_Template, 3, 2, "div", 6);
16868
17155
  i0.ɵɵelementStart(1, "div", 7, 0);
16869
17156
  i0.ɵɵlistener("scroll", function KptDataTable_Template_div_scroll_1_listener($event) { return ctx.onScroll($event); });
@@ -17401,7 +17688,7 @@ class KptTimeline {
17401
17688
 
17402
17689
  const _c0$f = (a0, a1) => ({ index: a0, total: a1 });
17403
17690
  const _c1$c = (a0, a1) => ({ $implicit: a0, index: a1 });
17404
- const _c2$7 = a0 => ({ index: a0 });
17691
+ const _c2$8 = a0 => ({ index: a0 });
17405
17692
  function KptCarousel_For_4_Template(rf, ctx) { if (rf & 1) {
17406
17693
  i0.ɵɵelementStart(0, "div", 3);
17407
17694
  i0.ɵɵelementContainer(1, 10);
@@ -17423,7 +17710,7 @@ function KptCarousel_For_11_Template(rf, ctx) { if (rf & 1) {
17423
17710
  const ɵ$index_22_r5 = ctx.$index;
17424
17711
  const ctx_r2 = i0.ɵɵnextContext();
17425
17712
  i0.ɵɵclassProp("is-active", ɵ$index_22_r5 === ctx_r2.index());
17426
- i0.ɵɵattribute("aria-current", ɵ$index_22_r5 === ctx_r2.index() ? "true" : null)("aria-label", ctx_r2.i18n.t("carousel.slide", i0.ɵɵpureFunction1(4, _c2$7, ɵ$index_22_r5 + 1)));
17713
+ i0.ɵɵattribute("aria-current", ɵ$index_22_r5 === ctx_r2.index() ? "true" : null)("aria-label", ctx_r2.i18n.t("carousel.slide", i0.ɵɵpureFunction1(4, _c2$8, ɵ$index_22_r5 + 1)));
17427
17714
  } }
17428
17715
  /**
17429
17716
  * Karuzela slajdów. Dane przez `items`, szablon slajdu przez projekcję `<ng-template let-item>`.
@@ -17431,7 +17718,9 @@ function KptCarousel_For_11_Template(rf, ctx) { if (rf & 1) {
17431
17718
  * Semantyka według wzorca WAI-ARIA "carousel" (bez autoodtwarzania): region z
17432
17719
  * `aria-roledescription="karuzela"`, każdy slajd to grupa "Slajd 2 z 4", a slajdy poza widokiem są
17433
17720
  * `inert` - `Tab` i czytnik ich nie widzą. Zmiana slajdu jest ogłaszana uprzejmie (`aria-live`
17434
- * na torze). Strzałki na końcach dostają `aria-disabled` zamiast `disabled`, żeby nie zgubić fokusu.
17721
+ * na torze). Domyślnie strzałki zawijają: za ostatnim slajdem "dalej" wraca do pierwszego, przed
17722
+ * pierwszym "wstecz" - do ostatniego. Z `loop="false"` strzałki stają na końcach i dostają
17723
+ * `aria-disabled` zamiast `disabled`, żeby nie zgubić fokusu.
17435
17724
  *
17436
17725
  * @example
17437
17726
  * <kpt-carousel [items]="photos">
@@ -17454,29 +17743,49 @@ class KptCarousel {
17454
17743
  /** Nazwa regionu dla czytników ekranu, np. "Nowości"; domyślnie `carousel.label`. */
17455
17744
  this.label = input('', /* @ts-ignore */
17456
17745
  ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
17746
+ /**
17747
+ * Zawijanie strzałek: za ostatnim slajdem "dalej" wraca do pierwszego, przed pierwszym "wstecz" -
17748
+ * do ostatniego. `false` - strzałki stają na końcach (np. kroki, które mają początek i koniec).
17749
+ */
17750
+ this.loop = input(true, { ...(ngDevMode ? { debugName: "loop" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
17457
17751
  this.i18n = inject(KptI18n);
17458
17752
  this.slideTpl = contentChild.required(TemplateRef, /* @ts-ignore */
17459
17753
  ...(ngDevMode ? [{ debugName: "slideTpl" }] : /* istanbul ignore next */ []));
17460
- this.atStart = computed(() => this.index() <= 0, /* @ts-ignore */
17754
+ /** Koniec, na którym strzałka staje - tylko bez zawijania. */
17755
+ this.atStart = computed(() => !this.wraps() && this.index() <= 0, /* @ts-ignore */
17461
17756
  ...(ngDevMode ? [{ debugName: "atStart" }] : /* istanbul ignore next */ []));
17462
- this.atEnd = computed(() => this.index() >= this.items().length - 1, /* @ts-ignore */
17757
+ this.atEnd = computed(() => !this.wraps() && this.index() >= this.items().length - 1, /* @ts-ignore */
17463
17758
  ...(ngDevMode ? [{ debugName: "atEnd" }] : /* istanbul ignore next */ []));
17759
+ /** Zawijanie ma sens od dwóch slajdów - przy jednym strzałki zostają wyłączone. */
17760
+ this.wraps = computed(() => this.loop() && this.items().length > 1, /* @ts-ignore */
17761
+ ...(ngDevMode ? [{ debugName: "wraps" }] : /* istanbul ignore next */ []));
17464
17762
  }
17465
17763
  next() {
17466
- this.activeIndex.set(Math.min(this.index() + 1, this.items().length - 1));
17764
+ this.step(1);
17467
17765
  }
17468
17766
  prev() {
17469
- this.activeIndex.set(Math.max(this.index() - 1, 0));
17767
+ this.step(-1);
17470
17768
  }
17471
17769
  goTo(index) {
17472
17770
  this.activeIndex.set(index);
17473
17771
  }
17772
+ /** Krok o jeden slajd; poza końcem - zawinięcie albo zatrzymanie, zależnie od `loop`. */
17773
+ step(delta) {
17774
+ const count = this.items().length;
17775
+ if (count === 0)
17776
+ return;
17777
+ const target = this.index() + delta;
17778
+ if (target >= 0 && target < count)
17779
+ this.activeIndex.set(target);
17780
+ else if (this.wraps())
17781
+ this.activeIndex.set((target + count) % count);
17782
+ }
17474
17783
  static { this.ɵfac = function KptCarousel_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || KptCarousel)(); }; }
17475
17784
  static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: KptCarousel, selectors: [["kpt-carousel"]], contentQueries: function KptCarousel_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
17476
17785
  i0.ɵɵcontentQuerySignal(dirIndex, ctx.slideTpl, TemplateRef, 5);
17477
17786
  } if (rf & 2) {
17478
17787
  i0.ɵɵqueryAdvance();
17479
- } }, hostAttrs: [1, "kpt-carousel-host"], inputs: { items: [1, "items"], activeIndex: [1, "activeIndex"], label: [1, "label"] }, outputs: { activeIndex: "activeIndexChange" }, decls: 12, vars: 8, consts: [["role", "region", 1, "kpt-carousel"], [1, "kpt-carousel__viewport"], ["aria-live", "polite", 1, "kpt-carousel__track"], ["role", "group", 1, "kpt-carousel__slide"], ["type", "button", 1, "kpt-carousel__nav", "kpt-carousel__nav--prev", 3, "click"], ["name", "chevron-left"], ["type", "button", 1, "kpt-carousel__nav", "kpt-carousel__nav--next", 3, "click"], ["name", "chevron-right"], [1, "kpt-carousel__dots"], ["type", "button", 1, "kpt-carousel__dot", 3, "is-active"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"], ["type", "button", 1, "kpt-carousel__dot", 3, "click"]], template: function KptCarousel_Template(rf, ctx) { if (rf & 1) {
17788
+ } }, hostAttrs: [1, "kpt-carousel-host"], inputs: { items: [1, "items"], activeIndex: [1, "activeIndex"], label: [1, "label"], loop: [1, "loop"] }, outputs: { activeIndex: "activeIndexChange" }, decls: 12, vars: 8, consts: [["role", "region", 1, "kpt-carousel"], [1, "kpt-carousel__viewport"], ["aria-live", "polite", 1, "kpt-carousel__track"], ["role", "group", 1, "kpt-carousel__slide"], ["type", "button", 1, "kpt-carousel__nav", "kpt-carousel__nav--prev", 3, "click"], ["name", "chevron-left"], ["type", "button", 1, "kpt-carousel__nav", "kpt-carousel__nav--next", 3, "click"], ["name", "chevron-right"], [1, "kpt-carousel__dots"], ["type", "button", 1, "kpt-carousel__dot", 3, "is-active"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"], ["type", "button", 1, "kpt-carousel__dot", 3, "click"]], template: function KptCarousel_Template(rf, ctx) { if (rf & 1) {
17480
17789
  i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "div", 2);
17481
17790
  i0.ɵɵrepeaterCreate(3, KptCarousel_For_4_Template, 2, 12, "div", 3, i0.ɵɵrepeaterTrackByIndex);
17482
17791
  i0.ɵɵelementEnd()();
@@ -17503,7 +17812,7 @@ class KptCarousel {
17503
17812
  i0.ɵɵattribute("aria-disabled", ctx.atEnd() ? "true" : null)("aria-label", ctx.i18n.t("common.next"));
17504
17813
  i0.ɵɵadvance(3);
17505
17814
  i0.ɵɵrepeater(ctx.items());
17506
- } }, dependencies: [NgTemplateOutlet, KptIcon], styles: ["@layer kpt.components{.kpt-carousel-host{display:block}.kpt-carousel{--%NS%_kpt-carousel-dir: 1;position:relative;border-radius:var(--%NS%kpt-radius-lg, .75rem);overflow:hidden}.kpt-carousel__viewport{overflow:hidden}.kpt-carousel__track{display:flex;transition:transform var(--%NS%kpt-motion-duration-base, .2s) var(--%NS%kpt-motion-easing-emphasized)}.kpt-carousel__slide{flex:0 0 100%;min-width:0}.kpt-carousel__nav{position:absolute;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;width:2.25rem;height:2.25rem;border:0;border-radius:50%;background:color-mix(in oklch,var(--%NS%kpt-color-surface) 80%,transparent);color:var(--%NS%kpt-color-on-surface);box-shadow:var(--%NS%kpt-elevation-2);cursor:pointer}.kpt-carousel__nav--prev{inset-inline-start:.5rem}.kpt-carousel__nav--next{inset-inline-end:.5rem}.kpt-carousel__nav:hover:not([aria-disabled=true]){background:var(--%NS%kpt-color-surface)}.kpt-carousel__nav[aria-disabled=true]{opacity:.4;cursor:not-allowed}.kpt-carousel__dots{position:absolute;inset-block-end:.1rem;inset-inline:0;display:flex;justify-content:center}.kpt-carousel__dot{display:grid;place-items:center;width:1.5rem;height:1.5rem;padding:0;border:0;border-radius:50%;background:none;cursor:pointer}.kpt-carousel__dot:before{content:\"\";width:.5rem;height:.5rem;border-radius:50%;background:color-mix(in oklch,var(--%NS%kpt-color-on-surface) 40%,transparent)}.kpt-carousel__dot.is-active:before{background:var(--%NS%kpt-color-primary)}.kpt-carousel:dir(rtl){--%NS%_kpt-carousel-dir: -1}.kpt-carousel:dir(rtl) .kpt-carousel__nav .kpt-icon-host{transform:scaleX(-1)}@media(prefers-reduced-motion:reduce){.kpt-carousel__track{transition:none}}}\n"], encapsulation: 2 }); }
17815
+ } }, dependencies: [NgTemplateOutlet, KptIcon], styles: ["@layer kpt.components{.kpt-carousel-host{display:block}.kpt-carousel{--%NS%_kpt-carousel-dir: 1;position:relative;border-radius:var(--%NS%kpt-radius-lg, .75rem);overflow:hidden}.kpt-carousel__viewport{overflow:hidden;contain:inline-size}.kpt-carousel__track{display:flex;transition:transform var(--%NS%kpt-motion-duration-base, .2s) var(--%NS%kpt-motion-easing-emphasized)}.kpt-carousel__slide{flex:0 0 100%;min-width:0}.kpt-carousel__nav{position:absolute;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;width:2.25rem;height:2.25rem;border:0;border-radius:50%;background:color-mix(in oklch,var(--%NS%kpt-color-surface) 80%,transparent);color:var(--%NS%kpt-color-on-surface);box-shadow:var(--%NS%kpt-elevation-2);cursor:pointer}.kpt-carousel__nav--prev{inset-inline-start:.5rem}.kpt-carousel__nav--next{inset-inline-end:.5rem}.kpt-carousel__nav:hover:not([aria-disabled=true]){background:var(--%NS%kpt-color-surface)}.kpt-carousel__nav[aria-disabled=true]{opacity:.4;cursor:not-allowed}.kpt-carousel__dots{position:absolute;inset-block-end:.1rem;inset-inline:0;display:flex;justify-content:center}.kpt-carousel__dot{display:grid;place-items:center;width:1.5rem;height:1.5rem;padding:0;border:0;border-radius:50%;background:none;cursor:pointer}.kpt-carousel__dot:before{content:\"\";width:.5rem;height:.5rem;border-radius:50%;background:color-mix(in oklch,var(--%NS%kpt-color-on-surface) 40%,transparent)}.kpt-carousel__dot.is-active:before{background:var(--%NS%kpt-color-primary)}.kpt-carousel:dir(rtl){--%NS%_kpt-carousel-dir: -1}.kpt-carousel:dir(rtl) .kpt-carousel__nav .kpt-icon-host{transform:scaleX(-1)}@media(prefers-reduced-motion:reduce){.kpt-carousel__track{transition:none}}}\n"], encapsulation: 2 }); }
17507
17816
  }
17508
17817
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(KptCarousel, [{
17509
17818
  type: Component,
@@ -17567,13 +17876,13 @@ class KptCarousel {
17567
17876
  }
17568
17877
  </div>
17569
17878
  </div>
17570
- `, host: { class: 'kpt-carousel-host' }, styles: ["@layer kpt.components{.kpt-carousel-host{display:block}.kpt-carousel{--_kpt-carousel-dir: 1;position:relative;border-radius:var(--kpt-radius-lg, .75rem);overflow:hidden}.kpt-carousel__viewport{overflow:hidden}.kpt-carousel__track{display:flex;transition:transform var(--kpt-motion-duration-base, .2s) var(--kpt-motion-easing-emphasized)}.kpt-carousel__slide{flex:0 0 100%;min-width:0}.kpt-carousel__nav{position:absolute;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;width:2.25rem;height:2.25rem;border:0;border-radius:50%;background:color-mix(in oklch,var(--kpt-color-surface) 80%,transparent);color:var(--kpt-color-on-surface);box-shadow:var(--kpt-elevation-2);cursor:pointer}.kpt-carousel__nav--prev{inset-inline-start:.5rem}.kpt-carousel__nav--next{inset-inline-end:.5rem}.kpt-carousel__nav:hover:not([aria-disabled=true]){background:var(--kpt-color-surface)}.kpt-carousel__nav[aria-disabled=true]{opacity:.4;cursor:not-allowed}.kpt-carousel__dots{position:absolute;inset-block-end:.1rem;inset-inline:0;display:flex;justify-content:center}.kpt-carousel__dot{display:grid;place-items:center;width:1.5rem;height:1.5rem;padding:0;border:0;border-radius:50%;background:none;cursor:pointer}.kpt-carousel__dot:before{content:\"\";width:.5rem;height:.5rem;border-radius:50%;background:color-mix(in oklch,var(--kpt-color-on-surface) 40%,transparent)}.kpt-carousel__dot.is-active:before{background:var(--kpt-color-primary)}.kpt-carousel:dir(rtl){--_kpt-carousel-dir: -1}.kpt-carousel:dir(rtl) .kpt-carousel__nav .kpt-icon-host{transform:scaleX(-1)}@media(prefers-reduced-motion:reduce){.kpt-carousel__track{transition:none}}}\n"] }]
17571
- }], null, { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], activeIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeIndex", required: false }] }, { type: i0.Output, args: ["activeIndexChange"] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], slideTpl: [{ type: i0.ContentChild, args: [i0.forwardRef(() => TemplateRef), { isSignal: true }] }] }); })();
17572
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(KptCarousel, { className: "KptCarousel", filePath: "lib/carousel/carousel.component.ts", lineNumber: 88 }); })();
17879
+ `, host: { class: 'kpt-carousel-host' }, styles: ["@layer kpt.components{.kpt-carousel-host{display:block}.kpt-carousel{--_kpt-carousel-dir: 1;position:relative;border-radius:var(--kpt-radius-lg, .75rem);overflow:hidden}.kpt-carousel__viewport{overflow:hidden;contain:inline-size}.kpt-carousel__track{display:flex;transition:transform var(--kpt-motion-duration-base, .2s) var(--kpt-motion-easing-emphasized)}.kpt-carousel__slide{flex:0 0 100%;min-width:0}.kpt-carousel__nav{position:absolute;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;width:2.25rem;height:2.25rem;border:0;border-radius:50%;background:color-mix(in oklch,var(--kpt-color-surface) 80%,transparent);color:var(--kpt-color-on-surface);box-shadow:var(--kpt-elevation-2);cursor:pointer}.kpt-carousel__nav--prev{inset-inline-start:.5rem}.kpt-carousel__nav--next{inset-inline-end:.5rem}.kpt-carousel__nav:hover:not([aria-disabled=true]){background:var(--kpt-color-surface)}.kpt-carousel__nav[aria-disabled=true]{opacity:.4;cursor:not-allowed}.kpt-carousel__dots{position:absolute;inset-block-end:.1rem;inset-inline:0;display:flex;justify-content:center}.kpt-carousel__dot{display:grid;place-items:center;width:1.5rem;height:1.5rem;padding:0;border:0;border-radius:50%;background:none;cursor:pointer}.kpt-carousel__dot:before{content:\"\";width:.5rem;height:.5rem;border-radius:50%;background:color-mix(in oklch,var(--kpt-color-on-surface) 40%,transparent)}.kpt-carousel__dot.is-active:before{background:var(--kpt-color-primary)}.kpt-carousel:dir(rtl){--_kpt-carousel-dir: -1}.kpt-carousel:dir(rtl) .kpt-carousel__nav .kpt-icon-host{transform:scaleX(-1)}@media(prefers-reduced-motion:reduce){.kpt-carousel__track{transition:none}}}\n"] }]
17880
+ }], null, { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], activeIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeIndex", required: false }] }, { type: i0.Output, args: ["activeIndexChange"] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], loop: [{ type: i0.Input, args: [{ isSignal: true, alias: "loop", required: false }] }], slideTpl: [{ type: i0.ContentChild, args: [i0.forwardRef(() => TemplateRef), { isSignal: true }] }] }); })();
17881
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(KptCarousel, { className: "KptCarousel", filePath: "lib/carousel/carousel.component.ts", lineNumber: 101 }); })();
17573
17882
 
17574
17883
  const _c0$e = ["content"];
17575
17884
  const _c1$b = a0 => ({ count: a0 });
17576
- const _c2$6 = (a0, a1) => ({ $implicit: a0, index: a1 });
17885
+ const _c2$7 = (a0, a1) => ({ $implicit: a0, index: a1 });
17577
17886
  function KptDataView_Conditional_5_For_2_Template(rf, ctx) { if (rf & 1) {
17578
17887
  const _r1 = i0.ɵɵgetCurrentView();
17579
17888
  i0.ɵɵelementStart(0, "button", 7);
@@ -17608,7 +17917,7 @@ function KptDataView_For_14_Template(rf, ctx) { if (rf & 1) {
17608
17917
  const $index_r5 = ctx.$index;
17609
17918
  const ctx_r2 = i0.ɵɵnextContext();
17610
17919
  i0.ɵɵadvance(2);
17611
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.itemTpl())("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c2$6, item_r4, $index_r5));
17920
+ i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.itemTpl())("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c2$7, item_r4, $index_r5));
17612
17921
  } }
17613
17922
  function KptDataView_ForEmpty_15_Template(rf, ctx) { if (rf & 1) {
17614
17923
  i0.ɵɵelementStart(0, "div", 12);
@@ -17854,8 +18163,8 @@ function bodyOf(item) {
17854
18163
 
17855
18164
  const _c0$d = ["root"];
17856
18165
  const _c1$a = () => ({ side: "source" });
17857
- const _c2$5 = () => ({ side: "target" });
17858
- const _c3 = a0 => ({ $implicit: a0 });
18166
+ const _c2$6 = () => ({ side: "target" });
18167
+ const _c3$1 = a0 => ({ $implicit: a0 });
17859
18168
  function KptPickList_ng_template_17_For_5_Template(rf, ctx) { if (rf & 1) {
17860
18169
  const _r4 = i0.ɵɵgetCurrentView();
17861
18170
  i0.ɵɵelementStart(0, "li", 13);
@@ -17870,7 +18179,7 @@ function KptPickList_ng_template_17_For_5_Template(rf, ctx) { if (rf & 1) {
17870
18179
  i0.ɵɵclassProp("is-selected", ctx_r2.selectionOf(side_r2).has(item_r7))("is-dragging", ctx_r2.isDragging(side_r2, ɵ$index_41_r5))("kpt-pick-list__item--draggable", ctx_r2.dragdrop())("kpt-pick-list__item--dragover", ctx_r2.isOver(side_r2, ɵ$index_41_r5));
17871
18180
  i0.ɵɵattribute("aria-selected", ctx_r2.selectionOf(side_r2).has(item_r7))("tabindex", ɵ$index_41_r5 === ctx_r2.tabIndexOf(side_r2) ? 0 : -1)("draggable", ctx_r2.dragdrop() ? true : null);
17872
18181
  i0.ɵɵadvance();
17873
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.itemTpl())("ngTemplateOutletContext", i0.ɵɵpureFunction1(13, _c3, item_r7));
18182
+ i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.itemTpl())("ngTemplateOutletContext", i0.ɵɵpureFunction1(13, _c3$1, item_r7));
17874
18183
  } }
17875
18184
  function KptPickList_ng_template_17_Template(rf, ctx) { if (rf & 1) {
17876
18185
  const _r1 = i0.ɵɵgetCurrentView();
@@ -18270,7 +18579,7 @@ class KptPickList {
18270
18579
  i0.ɵɵadvance(2);
18271
18580
  i0.ɵɵattribute("aria-disabled", ctx.target().length ? null : "true")("aria-label", ctx.i18n.t("pickList.moveAllLeft"));
18272
18581
  i0.ɵɵadvance(3);
18273
- i0.ɵɵproperty("ngTemplateOutlet", col_r8)("ngTemplateOutletContext", i0.ɵɵpureFunction0(14, _c2$5));
18582
+ i0.ɵɵproperty("ngTemplateOutlet", col_r8)("ngTemplateOutletContext", i0.ɵɵpureFunction0(14, _c2$6));
18274
18583
  i0.ɵɵadvance(2);
18275
18584
  i0.ɵɵtextInterpolate(ctx.announcement());
18276
18585
  } }, dependencies: [NgTemplateOutlet, KptIcon], styles: ["@layer kpt.components{.kpt-pick-list-host{display:block}.kpt-pick-list{position:relative;display:flex;align-items:stretch;gap:var(--%NS%kpt-space-3, .75rem)}.kpt-pick-list__ghost{z-index:2;list-style:none;background:var(--%NS%kpt-color-surface-raised);box-shadow:0 4px 14px -6px var(--%NS%kpt-color-overlay-scrim)}.kpt-pick-list__item--waiting{visibility:hidden}.kpt-pick-list__item--moving{position:relative;z-index:1}::view-transition-group(.kpt-pick-list-morph){animation-duration:.5s;animation-timing-function:linear(0,.051,.168,.3112,.4557,.5876,.7,.7911,.8617,.9142,.9517,.9772,.9937,1.0035,1.0087,1.0108,1.011,1.0101,1.0086,1.007,1.0054,1.0041,1.0029,1.002,1.0013,1.0008,1.0004,1.0002,1,.9999,1)}::view-transition-image-pair(.kpt-pick-list-morph){overflow:clip;border-radius:var(--%NS%kpt-radius-sm, .25rem)}::view-transition-old(.kpt-pick-list-morph),::view-transition-new(.kpt-pick-list-morph){width:100%;height:100%;object-fit:none;object-position:0 0}.kpt-pick-list__col{flex:1;min-width:0;display:flex;flex-direction:column;border:var(--%NS%kpt-border-width-thin, 1px) solid var(--%NS%kpt-color-border);border-radius:var(--%NS%kpt-radius-md, .5rem);overflow:hidden}.kpt-pick-list__header{padding:var(--%NS%kpt-space-2, .5rem) var(--%NS%kpt-space-3, .75rem);background:var(--%NS%kpt-color-surface-variant);border-bottom:var(--%NS%kpt-border-width-thin, 1px) solid var(--%NS%kpt-color-border);font-weight:var(--%NS%kpt-font-weight-semibold, 600);font-size:var(--%NS%kpt-font-size-sm, .875rem)}.kpt-pick-list__items{list-style:none;margin:0;padding:var(--%NS%kpt-space-1, .25rem);min-height:8rem;max-height:14rem;overflow-y:auto;flex:1}.kpt-pick-list__items.is-dragover{background:var(--%NS%kpt-color-muted)}.kpt-pick-list__item{padding:var(--%NS%kpt-space-2, .5rem) var(--%NS%kpt-space-3, .75rem);border-radius:var(--%NS%kpt-radius-sm, .25rem);font-size:var(--%NS%kpt-font-size-sm, .875rem);cursor:pointer}.kpt-pick-list__item:hover{background:var(--%NS%kpt-color-muted)}.kpt-pick-list__item.is-selected{background:color-mix(in oklch,var(--%NS%kpt-color-primary) 16%,transparent);color:var(--%NS%kpt-color-primary)}.kpt-pick-list__item--draggable{cursor:grab;-webkit-user-select:none;user-select:none}.kpt-pick-list__item--%NS%draggable:active{cursor:grabbing}.kpt-pick-list__item--dragover{box-shadow:inset 0 2px 0 0 var(--%NS%kpt-color-primary)}.kpt-pick-list__item.is-dragging{opacity:.5}.kpt-pick-list__controls{display:flex;flex-direction:column;justify-content:center;gap:var(--%NS%kpt-space-2, .5rem)}.kpt-pick-list__controls button{display:inline-flex;align-items:center;justify-content:center;width:2.25rem;height:2.25rem;padding:0;border:var(--%NS%kpt-border-width-thin, 1px) solid var(--%NS%kpt-color-border);border-radius:var(--%NS%kpt-radius-md, .5rem);background:var(--%NS%kpt-color-surface-raised);color:var(--%NS%kpt-color-on-surface);cursor:pointer}.kpt-pick-list__controls button:hover:not([aria-disabled=true]){background:var(--%NS%kpt-color-muted)}.kpt-pick-list__controls button[aria-disabled=true]{opacity:.5;cursor:not-allowed}.kpt-pick-list__controls button .kpt-icon-host+.kpt-icon-host{margin-left:-.5rem}}\n"], encapsulation: 2 }); }
@@ -18682,36 +18991,53 @@ class KptOrderList {
18682
18991
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(KptOrderList, { className: "KptOrderList", filePath: "lib/order-list/order-list.component.ts", lineNumber: 104 }); })();
18683
18992
 
18684
18993
  const _c0$b = ["thumb"];
18685
- const _c1$8 = a0 => ({ index: a0 });
18686
- function KptGalleria_Conditional_4_Template(rf, ctx) { if (rf & 1) {
18687
- i0.ɵɵelement(0, "img", 5);
18994
+ const _c1$8 = ["stage"];
18995
+ const _c2$5 = ["image"];
18996
+ const _c3 = ["strip"];
18997
+ const _c4 = ["stripWrap"];
18998
+ const _c5 = a0 => ({ index: a0 });
18999
+ function KptGalleria_Conditional_5_Template(rf, ctx) { if (rf & 1) {
19000
+ i0.ɵɵelement(0, "img", 9, 1);
18688
19001
  } if (rf & 2) {
18689
19002
  const item_r1 = ctx;
18690
19003
  i0.ɵɵproperty("src", item_r1.src, i0.ɵɵsanitizeUrl)("alt", item_r1.alt || "");
18691
19004
  } }
18692
- function KptGalleria_Conditional_7_For_2_Template(rf, ctx) { if (rf & 1) {
18693
- const _r2 = i0.ɵɵgetCurrentView();
18694
- i0.ɵɵelementStart(0, "button", 11, 0);
18695
- i0.ɵɵlistener("click", function KptGalleria_Conditional_7_For_2_Template_button_click_0_listener() { const ɵ$index_19_r3 = i0.ɵɵrestoreView(_r2).$index; const ctx_r3 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r3.select(ɵ$index_19_r3)); });
18696
- i0.ɵɵelement(2, "img", 12);
19005
+ function KptGalleria_Conditional_8_For_7_Template(rf, ctx) { if (rf & 1) {
19006
+ const _r4 = i0.ɵɵgetCurrentView();
19007
+ i0.ɵɵelementStart(0, "button", 18, 4);
19008
+ i0.ɵɵlistener("click", function KptGalleria_Conditional_8_For_7_Template_button_click_0_listener() { const ɵ$index_25_r5 = i0.ɵɵrestoreView(_r4).$index; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.select(ɵ$index_25_r5)); });
19009
+ i0.ɵɵelement(2, "img", 19);
18697
19010
  i0.ɵɵelementEnd();
18698
19011
  } if (rf & 2) {
18699
- const item_r5 = ctx.$implicit;
18700
- const ɵ$index_19_r3 = ctx.$index;
18701
- const ctx_r3 = i0.ɵɵnextContext(2);
18702
- i0.ɵɵclassProp("is-active", ɵ$index_19_r3 === ctx_r3.index());
18703
- i0.ɵɵattribute("aria-current", ɵ$index_19_r3 === ctx_r3.index() ? "true" : null)("aria-label", item_r5.alt || ctx_r3.i18n.t("galleria.image", i0.ɵɵpureFunction1(5, _c1$8, ɵ$index_19_r3 + 1)));
19012
+ const item_r6 = ctx.$implicit;
19013
+ const ɵ$index_25_r5 = ctx.$index;
19014
+ const ctx_r2 = i0.ɵɵnextContext(2);
19015
+ i0.ɵɵclassProp("is-active", ɵ$index_25_r5 === ctx_r2.index());
19016
+ i0.ɵɵattribute("aria-current", ɵ$index_25_r5 === ctx_r2.index() ? "true" : null)("aria-label", item_r6.alt || ctx_r2.i18n.t("galleria.image", i0.ɵɵpureFunction1(5, _c5, ɵ$index_25_r5 + 1)));
18704
19017
  i0.ɵɵadvance(2);
18705
- i0.ɵɵproperty("src", item_r5.thumbnail || item_r5.src, i0.ɵɵsanitizeUrl);
19018
+ i0.ɵɵproperty("src", item_r6.thumbnail || item_r6.src, i0.ɵɵsanitizeUrl);
18706
19019
  } }
18707
- function KptGalleria_Conditional_7_Template(rf, ctx) { if (rf & 1) {
18708
- i0.ɵɵelementStart(0, "div", 8);
18709
- i0.ɵɵrepeaterCreate(1, KptGalleria_Conditional_7_For_2_Template, 3, 7, "button", 10, i0.ɵɵrepeaterTrackByIndex);
19020
+ function KptGalleria_Conditional_8_Template(rf, ctx) { if (rf & 1) {
19021
+ const _r2 = i0.ɵɵgetCurrentView();
19022
+ i0.ɵɵelementStart(0, "div", 12, 2)(2, "button", 14);
19023
+ i0.ɵɵlistener("click", function KptGalleria_Conditional_8_Template_button_click_2_listener() { i0.ɵɵrestoreView(_r2); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.scrollThumbs(-1)); });
19024
+ i0.ɵɵelement(3, "kpt-icon", 8);
18710
19025
  i0.ɵɵelementEnd();
19026
+ i0.ɵɵelementStart(4, "div", 15, 3);
19027
+ i0.ɵɵrepeaterCreate(6, KptGalleria_Conditional_8_For_7_Template, 3, 7, "button", 16, i0.ɵɵrepeaterTrackByIndex);
19028
+ i0.ɵɵelementEnd();
19029
+ i0.ɵɵelementStart(8, "button", 17);
19030
+ i0.ɵɵlistener("click", function KptGalleria_Conditional_8_Template_button_click_8_listener() { i0.ɵɵrestoreView(_r2); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.scrollThumbs(1)); });
19031
+ i0.ɵɵelement(9, "kpt-icon", 11);
19032
+ i0.ɵɵelementEnd()();
18711
19033
  } if (rf & 2) {
18712
- const ctx_r3 = i0.ɵɵnextContext();
18713
- i0.ɵɵadvance();
18714
- i0.ɵɵrepeater(ctx_r3.items());
19034
+ const ctx_r2 = i0.ɵɵnextContext();
19035
+ i0.ɵɵadvance(2);
19036
+ i0.ɵɵattribute("aria-label", ctx_r2.i18n.t("galleria.scrollBack"));
19037
+ i0.ɵɵadvance(4);
19038
+ i0.ɵɵrepeater(ctx_r2.items());
19039
+ i0.ɵɵadvance(2);
19040
+ i0.ɵɵattribute("aria-label", ctx_r2.i18n.t("galleria.scrollForward"));
18715
19041
  } }
18716
19042
  /** Klawisze przechodzące między obrazami: kierunek względem bieżącego albo skrajny indeks. */
18717
19043
  const NAV_KEYS = new Set(['ArrowLeft', 'ArrowRight', 'Home', 'End']);
@@ -18723,6 +19049,12 @@ const NAV_KEYS = new Set(['ArrowLeft', 'ArrowRight', 'Home', 'End']);
18723
19049
  * aktywną. Miniatura ma nazwę z `alt` obrazu i `aria-current` na aktywnej, a zmiana obrazu jest
18724
19050
  * ogłaszana uprzejmie ("Obraz 2 z 4: ...") - dopiero po działaniu użytkownika, nie przy starcie.
18725
19051
  *
19052
+ * Ruch: nowe zdjęcie wjeżdża w kierunku zmiany na sprężynie, a poprzednie cofa się wolniej
19053
+ * i przygasa (paralaksa); rodzaj z `enter` w `provideKptMotion`, przy "ogranicz ruch" - przenikanie.
19054
+ * Pasek miniatur nie ma paska przewijania: przewija się przeciąganiem (mysz, pióro, palec)
19055
+ * albo strzałkami paska, krawędzie gasną tam, gdzie jest coś dalej, a aktywna miniatura
19056
+ * zawsze wraca do widoku.
19057
+ *
18726
19058
  * @example
18727
19059
  * <kpt-galleria [items]="photos" [(activeIndex)]="idx" />
18728
19060
  */
@@ -18746,6 +19078,19 @@ class KptGalleria {
18746
19078
  this.host = inject(ElementRef);
18747
19079
  this.thumbs = viewChildren('thumb', /* @ts-ignore */
18748
19080
  ...(ngDevMode ? [{ debugName: "thumbs" }] : /* istanbul ignore next */ []));
19081
+ this.stage = viewChild('stage', /* @ts-ignore */
19082
+ ...(ngDevMode ? [{ debugName: "stage" }] : /* istanbul ignore next */ []));
19083
+ this.image = viewChild('image', /* @ts-ignore */
19084
+ ...(ngDevMode ? [{ debugName: "image" }] : /* istanbul ignore next */ []));
19085
+ this.strip = viewChild('strip', /* @ts-ignore */
19086
+ ...(ngDevMode ? [{ debugName: "strip" }] : /* istanbul ignore next */ []));
19087
+ this.stripWrap = viewChild('stripWrap', /* @ts-ignore */
19088
+ ...(ngDevMode ? [{ debugName: "stripWrap" }] : /* istanbul ignore next */ []));
19089
+ this.motionConfig = inject(KPT_MOTION_CONFIG, { optional: true });
19090
+ this.motion = computed(() => resolveEnterMotion(undefined, this.motionConfig), /* @ts-ignore */
19091
+ ...(ngDevMode ? [{ debugName: "motion" }] : /* istanbul ignore next */ []));
19092
+ /** Co było pokazane przy poprzednim renderze - z tego wynika kierunek i duch poprzedniego zdjęcia. */
19093
+ this.shown = null;
18749
19094
  /** Ogłoszenie dopiero po działaniu użytkownika - przy starcie region ma milczeć. */
18750
19095
  this.userMoved = signal(false, /* @ts-ignore */
18751
19096
  ...(ngDevMode ? [{ debugName: "userMoved" }] : /* istanbul ignore next */ []));
@@ -18757,6 +19102,55 @@ class KptGalleria {
18757
19102
  return alt ? `${position}: ${alt}` : position;
18758
19103
  }, /* @ts-ignore */
18759
19104
  ...(ngDevMode ? [{ debugName: "announcement" }] : /* istanbul ignore next */ []));
19105
+ // Zmiana zdjęcia: po renderze, gdy zdjęcie ma już nowy `src`. Pierwszy render i wymiana listy
19106
+ // bez zmiany indeksu nie grają ruchu - przesuw ilustruje przejście, nie ładowanie.
19107
+ afterRenderEffect(() => {
19108
+ const index = this.index();
19109
+ const src = this.current()?.src ?? '';
19110
+ const prev = this.shown;
19111
+ this.shown = { index, src };
19112
+ const strip = this.strip()?.nativeElement;
19113
+ const thumb = this.thumbs()[index]?.nativeElement;
19114
+ // Start na dalekim zdjęciu: pasek od razu pokazuje aktywną miniaturę, bez przewijania na oczach.
19115
+ if (!prev) {
19116
+ if (strip && thumb)
19117
+ revealThumb(strip, thumb, false);
19118
+ return;
19119
+ }
19120
+ if (prev.index === index)
19121
+ return;
19122
+ const stage = this.stage()?.nativeElement;
19123
+ const image = this.image()?.nativeElement;
19124
+ if (stage && image && prev.src && prev.src !== src) {
19125
+ playGallerySlide({ stage, image, previousSrc: prev.src, direction: index > prev.index ? 1 : -1, motion: this.motion() });
19126
+ }
19127
+ if (strip && thumb)
19128
+ revealThumb(strip, thumb);
19129
+ });
19130
+ // Pasek: krawędzie i przeciąganie - podpinane, gdy pasek istnieje, i odpinane razem z nim.
19131
+ afterRenderEffect((onCleanup) => {
19132
+ const strip = this.strip()?.nativeElement;
19133
+ const wrap = this.stripWrap()?.nativeElement;
19134
+ this.items();
19135
+ if (!strip || !wrap)
19136
+ return;
19137
+ const edges = trackStripEdges(strip, wrap);
19138
+ const detach = attachDragScroll(strip);
19139
+ onCleanup(() => {
19140
+ edges.dispose();
19141
+ detach();
19142
+ });
19143
+ });
19144
+ inject(DestroyRef).onDestroy(() => {
19145
+ const stage = this.stage()?.nativeElement;
19146
+ if (stage)
19147
+ stopGallerySlide(stage, this.image()?.nativeElement);
19148
+ });
19149
+ }
19150
+ scrollThumbs(direction) {
19151
+ const strip = this.strip()?.nativeElement;
19152
+ if (strip)
19153
+ scrollStrip(strip, direction);
18760
19154
  }
18761
19155
  next() {
18762
19156
  this.select(this.index() + 1);
@@ -18791,45 +19185,45 @@ class KptGalleria {
18791
19185
  }
18792
19186
  static { this.ɵfac = function KptGalleria_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || KptGalleria)(); }; }
18793
19187
  static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: KptGalleria, selectors: [["kpt-galleria"]], viewQuery: function KptGalleria_Query(rf, ctx) { if (rf & 1) {
18794
- i0.ɵɵviewQuerySignal(ctx.thumbs, _c0$b, 5);
19188
+ i0.ɵɵviewQuerySignal(ctx.thumbs, _c0$b, 5)(ctx.stage, _c1$8, 5)(ctx.image, _c2$5, 5)(ctx.strip, _c3, 5)(ctx.stripWrap, _c4, 5);
18795
19189
  } if (rf & 2) {
18796
- i0.ɵɵqueryAdvance();
18797
- } }, hostAttrs: [1, "kpt-galleria-host"], inputs: { items: [1, "items"], activeIndex: [1, "activeIndex"], showThumbnails: [1, "showThumbnails"] }, outputs: { activeIndex: "activeIndexChange" }, decls: 10, vars: 7, consts: [["thumb", ""], [1, "kpt-galleria", 3, "keydown"], [1, "kpt-galleria__stage"], ["type", "button", 1, "kpt-galleria__nav", "kpt-galleria__nav--prev", 3, "click"], ["name", "chevron-left"], [1, "kpt-galleria__image", 3, "src", "alt"], ["type", "button", 1, "kpt-galleria__nav", "kpt-galleria__nav--next", 3, "click"], ["name", "chevron-right"], [1, "kpt-galleria__thumbs"], ["aria-live", "polite", 1, "kpt-galleria__live"], ["type", "button", 1, "kpt-galleria__thumb", 3, "is-active"], ["type", "button", 1, "kpt-galleria__thumb", 3, "click"], ["alt", "", 3, "src"]], template: function KptGalleria_Template(rf, ctx) { if (rf & 1) {
18798
- i0.ɵɵelementStart(0, "div", 1);
19190
+ i0.ɵɵqueryAdvance(5);
19191
+ } }, hostAttrs: [1, "kpt-galleria-host"], inputs: { items: [1, "items"], activeIndex: [1, "activeIndex"], showThumbnails: [1, "showThumbnails"] }, outputs: { activeIndex: "activeIndexChange" }, decls: 11, vars: 7, consts: [["stage", ""], ["image", ""], ["stripWrap", ""], ["strip", ""], ["thumb", ""], [1, "kpt-galleria", 3, "keydown"], [1, "kpt-galleria__stage"], ["type", "button", 1, "kpt-galleria__nav", "kpt-galleria__nav--prev", 3, "click"], ["name", "chevron-left"], [1, "kpt-galleria__image", 3, "src", "alt"], ["type", "button", 1, "kpt-galleria__nav", "kpt-galleria__nav--next", 3, "click"], ["name", "chevron-right"], [1, "kpt-galleria__strip"], ["aria-live", "polite", 1, "kpt-galleria__live"], ["type", "button", "tabindex", "-1", 1, "kpt-galleria__scroll", "kpt-galleria__scroll--back", 3, "click"], [1, "kpt-galleria__thumbs"], ["type", "button", 1, "kpt-galleria__thumb", 3, "is-active"], ["type", "button", "tabindex", "-1", 1, "kpt-galleria__scroll", "kpt-galleria__scroll--forward", 3, "click"], ["type", "button", 1, "kpt-galleria__thumb", 3, "click"], ["alt", "", "draggable", "false", 3, "src"]], template: function KptGalleria_Template(rf, ctx) { if (rf & 1) {
19192
+ i0.ɵɵelementStart(0, "div", 5);
18799
19193
  i0.ɵɵlistener("keydown", function KptGalleria_Template_div_keydown_0_listener($event) { return ctx.onKeydown($event); });
18800
- i0.ɵɵelementStart(1, "div", 2)(2, "button", 3);
18801
- i0.ɵɵlistener("click", function KptGalleria_Template_button_click_2_listener() { return ctx.prev(); });
18802
- i0.ɵɵelement(3, "kpt-icon", 4);
19194
+ i0.ɵɵelementStart(1, "div", 6, 0)(3, "button", 7);
19195
+ i0.ɵɵlistener("click", function KptGalleria_Template_button_click_3_listener() { return ctx.prev(); });
19196
+ i0.ɵɵelement(4, "kpt-icon", 8);
18803
19197
  i0.ɵɵelementEnd();
18804
- i0.ɵɵconditionalCreate(4, KptGalleria_Conditional_4_Template, 1, 2, "img", 5);
18805
- i0.ɵɵelementStart(5, "button", 6);
18806
- i0.ɵɵlistener("click", function KptGalleria_Template_button_click_5_listener() { return ctx.next(); });
18807
- i0.ɵɵelement(6, "kpt-icon", 7);
19198
+ i0.ɵɵconditionalCreate(5, KptGalleria_Conditional_5_Template, 2, 2, "img", 9);
19199
+ i0.ɵɵelementStart(6, "button", 10);
19200
+ i0.ɵɵlistener("click", function KptGalleria_Template_button_click_6_listener() { return ctx.next(); });
19201
+ i0.ɵɵelement(7, "kpt-icon", 11);
18808
19202
  i0.ɵɵelementEnd()();
18809
- i0.ɵɵconditionalCreate(7, KptGalleria_Conditional_7_Template, 3, 0, "div", 8);
18810
- i0.ɵɵelementStart(8, "span", 9);
18811
- i0.ɵɵtext(9);
19203
+ i0.ɵɵconditionalCreate(8, KptGalleria_Conditional_8_Template, 10, 2, "div", 12);
19204
+ i0.ɵɵelementStart(9, "span", 13);
19205
+ i0.ɵɵtext(10);
18812
19206
  i0.ɵɵelementEnd()();
18813
19207
  } if (rf & 2) {
18814
- let tmp_2_0;
18815
- i0.ɵɵadvance(2);
19208
+ let tmp_3_0;
19209
+ i0.ɵɵadvance(3);
18816
19210
  i0.ɵɵattribute("aria-disabled", ctx.index() <= 0 ? "true" : null)("aria-label", ctx.i18n.t("common.previous"));
18817
19211
  i0.ɵɵadvance(2);
18818
- i0.ɵɵconditional((tmp_2_0 = ctx.current()) ? 4 : -1, tmp_2_0);
19212
+ i0.ɵɵconditional((tmp_3_0 = ctx.current()) ? 5 : -1, tmp_3_0);
18819
19213
  i0.ɵɵadvance();
18820
19214
  i0.ɵɵattribute("aria-disabled", ctx.index() >= ctx.items().length - 1 ? "true" : null)("aria-label", ctx.i18n.t("common.next"));
18821
19215
  i0.ɵɵadvance(2);
18822
- i0.ɵɵconditional(ctx.showThumbnails() ? 7 : -1);
19216
+ i0.ɵɵconditional(ctx.showThumbnails() ? 8 : -1);
18823
19217
  i0.ɵɵadvance(2);
18824
19218
  i0.ɵɵtextInterpolate(ctx.announcement());
18825
- } }, dependencies: [KptIcon], styles: ["@layer kpt.components{.kpt-galleria-host{display:block}.kpt-galleria__stage{position:relative;display:flex;align-items:center;justify-content:center;background:var(--%NS%kpt-color-muted);border-radius:var(--%NS%kpt-radius-md, .5rem);overflow:hidden}.kpt-galleria__image{max-width:100%;max-height:20rem;display:block}.kpt-galleria__nav{position:absolute;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;width:2.25rem;height:2.25rem;border:0;border-radius:999px;background:color-mix(in oklch,var(--%NS%kpt-color-surface) 85%,transparent);color:var(--%NS%kpt-color-on-surface);box-shadow:var(--%NS%kpt-elevation-2);cursor:pointer}.kpt-galleria__nav--prev{inset-inline-start:var(--%NS%kpt-space-2, .5rem)}.kpt-galleria__nav--next{inset-inline-end:var(--%NS%kpt-space-2, .5rem)}.kpt-galleria__nav:hover:not([aria-disabled=true]){background:var(--%NS%kpt-color-surface)}.kpt-galleria__nav[aria-disabled=true]{opacity:.4;cursor:default}.kpt-galleria__thumbs{display:flex;gap:var(--%NS%kpt-space-2, .5rem);margin-top:var(--%NS%kpt-space-2, .5rem);overflow-x:auto;padding-bottom:var(--%NS%kpt-space-1, .25rem)}.kpt-galleria__thumb{flex:none;width:4rem;height:3rem;padding:0;border:2px solid transparent;border-radius:var(--%NS%kpt-radius-sm, .25rem);overflow:hidden;background:none;cursor:pointer;opacity:.6;transition:opacity calc(.15s * var(--%NS%kpt-motion-scale, 1)),border-color calc(.15s * var(--%NS%kpt-motion-scale, 1))}.kpt-galleria__thumb img{width:100%;height:100%;object-fit:cover;display:block}.kpt-galleria__thumb:hover{opacity:1}.kpt-galleria__thumb.is-active{opacity:1;border-color:var(--%NS%kpt-color-primary)}.kpt-galleria:dir(rtl) .kpt-galleria__nav .kpt-icon-host{transform:scaleX(-1)}.kpt-galleria__live{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}}\n"], encapsulation: 2 }); }
19219
+ } }, dependencies: [KptIcon], styles: ["@layer kpt.components{.kpt-galleria-host{display:block}.kpt-galleria__stage{position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:var(--%NS%kpt-galleria-aspect-ratio, 16/9);background:var(--%NS%kpt-color-muted);border-radius:var(--%NS%kpt-radius-md, .5rem);overflow:hidden;isolation:isolate}.kpt-galleria__image{position:relative;z-index:1;display:block;width:100%;height:100%;object-fit:var(--%NS%kpt-galleria-fit, cover)}.kpt-galleria__ghost{position:absolute;inset:0;z-index:0;width:100%;height:100%;object-fit:var(--%NS%kpt-galleria-fit, cover);pointer-events:none}.kpt-galleria__nav{position:absolute;z-index:2;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;width:2.25rem;height:2.25rem;border:0;border-radius:999px;background:color-mix(in oklch,var(--%NS%kpt-color-surface) 85%,transparent);color:var(--%NS%kpt-color-on-surface);box-shadow:var(--%NS%kpt-elevation-2);cursor:pointer}.kpt-galleria__nav--prev{inset-inline-start:var(--%NS%kpt-space-2, .5rem)}.kpt-galleria__nav--next{inset-inline-end:var(--%NS%kpt-space-2, .5rem)}.kpt-galleria__nav:hover:not([aria-disabled=true]){background:var(--%NS%kpt-color-surface)}.kpt-galleria__nav[aria-disabled=true]{opacity:.4;cursor:default}.kpt-galleria__strip{--%NS%_fade-start: 0px;--%NS%_fade-end: 0px;position:relative;margin-top:var(--%NS%kpt-space-2, .5rem)}.kpt-galleria__strip[data-scroll-start]{--%NS%_fade-start: 2.5rem}.kpt-galleria__strip[data-scroll-end]{--%NS%_fade-end: 2.5rem}.kpt-galleria__thumbs{display:flex;gap:var(--%NS%kpt-space-2, .5rem);overflow-x:auto;contain:inline-size;padding-block:var(--%NS%kpt-space-1, .25rem);scrollbar-width:none;overscroll-behavior-x:contain;cursor:grab;-webkit-mask-image:linear-gradient(to right,transparent,var(--%NS%kpt-color-text) var(--%NS%_fade-start),var(--%NS%kpt-color-text) calc(100% - var(--%NS%_fade-end)),transparent);mask-image:linear-gradient(to right,transparent,var(--%NS%kpt-color-text) var(--%NS%_fade-start),var(--%NS%kpt-color-text) calc(100% - var(--%NS%_fade-end)),transparent)}.kpt-galleria__thumbs::-webkit-scrollbar{display:none}.kpt-galleria__thumbs.is-dragging{cursor:grabbing;-webkit-user-select:none;user-select:none}.kpt-galleria__thumbs.is-dragging .kpt-galleria__thumb{pointer-events:none}.kpt-galleria:dir(rtl) .kpt-galleria__thumbs{-webkit-mask-image:linear-gradient(to left,transparent,var(--%NS%kpt-color-text) var(--%NS%_fade-start),var(--%NS%kpt-color-text) calc(100% - var(--%NS%_fade-end)),transparent);mask-image:linear-gradient(to left,transparent,var(--%NS%kpt-color-text) var(--%NS%_fade-start),var(--%NS%kpt-color-text) calc(100% - var(--%NS%_fade-end)),transparent)}.kpt-galleria__thumb{flex:none;width:4rem;height:3rem;padding:0;border:2px solid transparent;border-radius:var(--%NS%kpt-radius-sm, .25rem);overflow:hidden;background:none;cursor:pointer;opacity:.6;transition:opacity calc(.15s * var(--%NS%kpt-motion-scale, 1)),border-color calc(.15s * var(--%NS%kpt-motion-scale, 1))}.kpt-galleria__thumb img{width:100%;height:100%;object-fit:cover;display:block;-webkit-user-drag:none}.kpt-galleria__thumb:hover{opacity:1}.kpt-galleria__thumb.is-active{opacity:1;border-color:var(--%NS%kpt-color-primary)}.kpt-galleria__scroll{position:absolute;z-index:1;top:50%;display:inline-flex;align-items:center;justify-content:center;width:1.75rem;height:1.75rem;padding:0;border:0;border-radius:999px;background:var(--%NS%kpt-color-surface);color:var(--%NS%kpt-color-on-surface);box-shadow:var(--%NS%kpt-elevation-2);cursor:pointer;opacity:0;pointer-events:none;translate:0 -50%;scale:.7;transition:opacity var(--%NS%kpt-motion-duration-base, .2s) var(--%NS%kpt-motion-easing-standard),scale var(--%NS%kpt-motion-duration-base, .2s) var(--%NS%kpt-motion-easing-standard)}.kpt-galleria__scroll--back{inset-inline-start:calc(var(--%NS%kpt-space-1, .25rem) * -1)}.kpt-galleria__scroll--forward{inset-inline-end:calc(var(--%NS%kpt-space-1, .25rem) * -1)}.kpt-galleria__scroll:hover{background:var(--%NS%kpt-color-muted)}.kpt-galleria__strip[data-scroll-start] .kpt-galleria__scroll--back,.kpt-galleria__strip[data-scroll-end] .kpt-galleria__scroll--forward{opacity:1;pointer-events:auto;scale:1}.kpt-galleria:dir(rtl) :is(.kpt-galleria__nav,.kpt-galleria__scroll) .kpt-icon-host{transform:scaleX(-1)}@media(prefers-reduced-motion:reduce){.kpt-galleria__scroll{transition:none}}.kpt-galleria__live{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}}\n"], encapsulation: 2 }); }
18826
19220
  }
18827
19221
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(KptGalleria, [{
18828
19222
  type: Component,
18829
19223
  args: [{ selector: 'kpt-galleria', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [KptIcon], template: `
18830
19224
  <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -- strzałki z przycisków galerii, delegacja -->
18831
19225
  <div class="kpt-galleria" (keydown)="onKeydown($event)">
18832
- <div class="kpt-galleria__stage">
19226
+ <div #stage class="kpt-galleria__stage">
18833
19227
  <button
18834
19228
  type="button"
18835
19229
  class="kpt-galleria__nav kpt-galleria__nav--prev"
@@ -18838,7 +19232,7 @@ class KptGalleria {
18838
19232
  [attr.aria-label]="i18n.t('common.previous')"
18839
19233
  ><kpt-icon name="chevron-left" /></button>
18840
19234
  @if (current(); as item) {
18841
- <img class="kpt-galleria__image" [src]="item.src" [alt]="item.alt || ''" />
19235
+ <img #image class="kpt-galleria__image" [src]="item.src" [alt]="item.alt || ''" />
18842
19236
  }
18843
19237
  <button
18844
19238
  type="button"
@@ -18850,28 +19244,34 @@ class KptGalleria {
18850
19244
  </div>
18851
19245
 
18852
19246
  @if (showThumbnails()) {
18853
- <div class="kpt-galleria__thumbs">
18854
- @for (item of items(); track $index; let i = $index) {
18855
- <button
18856
- #thumb
18857
- type="button"
18858
- class="kpt-galleria__thumb"
18859
- [class.is-active]="i === index()"
18860
- [attr.aria-current]="i === index() ? 'true' : null"
18861
- (click)="select(i)"
18862
- [attr.aria-label]="item.alt || i18n.t('galleria.image', { index: i + 1 })"
18863
- >
18864
- <img [src]="item.thumbnail || item.src" alt="" />
18865
- </button>
18866
- }
19247
+ <div #stripWrap class="kpt-galleria__strip">
19248
+ <!-- Strzałki paska są skrótem dla myszy: z klawiatury pasek prowadzą strzałki galerii, a aktywna
19249
+ miniatura sama wraca do widoku - stąd poza kolejnością Tab. -->
19250
+ <button type="button" class="kpt-galleria__scroll kpt-galleria__scroll--back" tabindex="-1" [attr.aria-label]="i18n.t('galleria.scrollBack')" (click)="scrollThumbs(-1)"><kpt-icon name="chevron-left" /></button>
19251
+ <div #strip class="kpt-galleria__thumbs">
19252
+ @for (item of items(); track $index; let i = $index) {
19253
+ <button
19254
+ #thumb
19255
+ type="button"
19256
+ class="kpt-galleria__thumb"
19257
+ [class.is-active]="i === index()"
19258
+ [attr.aria-current]="i === index() ? 'true' : null"
19259
+ (click)="select(i)"
19260
+ [attr.aria-label]="item.alt || i18n.t('galleria.image', { index: i + 1 })"
19261
+ >
19262
+ <img [src]="item.thumbnail || item.src" alt="" draggable="false" />
19263
+ </button>
19264
+ }
19265
+ </div>
19266
+ <button type="button" class="kpt-galleria__scroll kpt-galleria__scroll--forward" tabindex="-1" [attr.aria-label]="i18n.t('galleria.scrollForward')" (click)="scrollThumbs(1)"><kpt-icon name="chevron-right" /></button>
18867
19267
  </div>
18868
19268
  }
18869
19269
 
18870
19270
  <span class="kpt-galleria__live" aria-live="polite">{{ announcement() }}</span>
18871
19271
  </div>
18872
- `, host: { class: 'kpt-galleria-host' }, styles: ["@layer kpt.components{.kpt-galleria-host{display:block}.kpt-galleria__stage{position:relative;display:flex;align-items:center;justify-content:center;background:var(--kpt-color-muted);border-radius:var(--kpt-radius-md, .5rem);overflow:hidden}.kpt-galleria__image{max-width:100%;max-height:20rem;display:block}.kpt-galleria__nav{position:absolute;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;width:2.25rem;height:2.25rem;border:0;border-radius:999px;background:color-mix(in oklch,var(--kpt-color-surface) 85%,transparent);color:var(--kpt-color-on-surface);box-shadow:var(--kpt-elevation-2);cursor:pointer}.kpt-galleria__nav--prev{inset-inline-start:var(--kpt-space-2, .5rem)}.kpt-galleria__nav--next{inset-inline-end:var(--kpt-space-2, .5rem)}.kpt-galleria__nav:hover:not([aria-disabled=true]){background:var(--kpt-color-surface)}.kpt-galleria__nav[aria-disabled=true]{opacity:.4;cursor:default}.kpt-galleria__thumbs{display:flex;gap:var(--kpt-space-2, .5rem);margin-top:var(--kpt-space-2, .5rem);overflow-x:auto;padding-bottom:var(--kpt-space-1, .25rem)}.kpt-galleria__thumb{flex:none;width:4rem;height:3rem;padding:0;border:2px solid transparent;border-radius:var(--kpt-radius-sm, .25rem);overflow:hidden;background:none;cursor:pointer;opacity:.6;transition:opacity calc(.15s * var(--kpt-motion-scale, 1)),border-color calc(.15s * var(--kpt-motion-scale, 1))}.kpt-galleria__thumb img{width:100%;height:100%;object-fit:cover;display:block}.kpt-galleria__thumb:hover{opacity:1}.kpt-galleria__thumb.is-active{opacity:1;border-color:var(--kpt-color-primary)}.kpt-galleria:dir(rtl) .kpt-galleria__nav .kpt-icon-host{transform:scaleX(-1)}.kpt-galleria__live{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}}\n"] }]
18873
- }], null, { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], activeIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeIndex", required: false }] }, { type: i0.Output, args: ["activeIndexChange"] }], showThumbnails: [{ type: i0.Input, args: [{ isSignal: true, alias: "showThumbnails", required: false }] }], thumbs: [{ type: i0.ViewChildren, args: ['thumb', { isSignal: true }] }] }); })();
18874
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(KptGalleria, { className: "KptGalleria", filePath: "lib/galleria/galleria.component.ts", lineNumber: 89 }); })();
19272
+ `, host: { class: 'kpt-galleria-host' }, styles: ["@layer kpt.components{.kpt-galleria-host{display:block}.kpt-galleria__stage{position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:var(--kpt-galleria-aspect-ratio, 16/9);background:var(--kpt-color-muted);border-radius:var(--kpt-radius-md, .5rem);overflow:hidden;isolation:isolate}.kpt-galleria__image{position:relative;z-index:1;display:block;width:100%;height:100%;object-fit:var(--kpt-galleria-fit, cover)}.kpt-galleria__ghost{position:absolute;inset:0;z-index:0;width:100%;height:100%;object-fit:var(--kpt-galleria-fit, cover);pointer-events:none}.kpt-galleria__nav{position:absolute;z-index:2;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;width:2.25rem;height:2.25rem;border:0;border-radius:999px;background:color-mix(in oklch,var(--kpt-color-surface) 85%,transparent);color:var(--kpt-color-on-surface);box-shadow:var(--kpt-elevation-2);cursor:pointer}.kpt-galleria__nav--prev{inset-inline-start:var(--kpt-space-2, .5rem)}.kpt-galleria__nav--next{inset-inline-end:var(--kpt-space-2, .5rem)}.kpt-galleria__nav:hover:not([aria-disabled=true]){background:var(--kpt-color-surface)}.kpt-galleria__nav[aria-disabled=true]{opacity:.4;cursor:default}.kpt-galleria__strip{--_fade-start: 0px;--_fade-end: 0px;position:relative;margin-top:var(--kpt-space-2, .5rem)}.kpt-galleria__strip[data-scroll-start]{--_fade-start: 2.5rem}.kpt-galleria__strip[data-scroll-end]{--_fade-end: 2.5rem}.kpt-galleria__thumbs{display:flex;gap:var(--kpt-space-2, .5rem);overflow-x:auto;contain:inline-size;padding-block:var(--kpt-space-1, .25rem);scrollbar-width:none;overscroll-behavior-x:contain;cursor:grab;-webkit-mask-image:linear-gradient(to right,transparent,var(--kpt-color-text) var(--_fade-start),var(--kpt-color-text) calc(100% - var(--_fade-end)),transparent);mask-image:linear-gradient(to right,transparent,var(--kpt-color-text) var(--_fade-start),var(--kpt-color-text) calc(100% - var(--_fade-end)),transparent)}.kpt-galleria__thumbs::-webkit-scrollbar{display:none}.kpt-galleria__thumbs.is-dragging{cursor:grabbing;-webkit-user-select:none;user-select:none}.kpt-galleria__thumbs.is-dragging .kpt-galleria__thumb{pointer-events:none}.kpt-galleria:dir(rtl) .kpt-galleria__thumbs{-webkit-mask-image:linear-gradient(to left,transparent,var(--kpt-color-text) var(--_fade-start),var(--kpt-color-text) calc(100% - var(--_fade-end)),transparent);mask-image:linear-gradient(to left,transparent,var(--kpt-color-text) var(--_fade-start),var(--kpt-color-text) calc(100% - var(--_fade-end)),transparent)}.kpt-galleria__thumb{flex:none;width:4rem;height:3rem;padding:0;border:2px solid transparent;border-radius:var(--kpt-radius-sm, .25rem);overflow:hidden;background:none;cursor:pointer;opacity:.6;transition:opacity calc(.15s * var(--kpt-motion-scale, 1)),border-color calc(.15s * var(--kpt-motion-scale, 1))}.kpt-galleria__thumb img{width:100%;height:100%;object-fit:cover;display:block;-webkit-user-drag:none}.kpt-galleria__thumb:hover{opacity:1}.kpt-galleria__thumb.is-active{opacity:1;border-color:var(--kpt-color-primary)}.kpt-galleria__scroll{position:absolute;z-index:1;top:50%;display:inline-flex;align-items:center;justify-content:center;width:1.75rem;height:1.75rem;padding:0;border:0;border-radius:999px;background:var(--kpt-color-surface);color:var(--kpt-color-on-surface);box-shadow:var(--kpt-elevation-2);cursor:pointer;opacity:0;pointer-events:none;translate:0 -50%;scale:.7;transition:opacity var(--kpt-motion-duration-base, .2s) var(--kpt-motion-easing-standard),scale var(--kpt-motion-duration-base, .2s) var(--kpt-motion-easing-standard)}.kpt-galleria__scroll--back{inset-inline-start:calc(var(--kpt-space-1, .25rem) * -1)}.kpt-galleria__scroll--forward{inset-inline-end:calc(var(--kpt-space-1, .25rem) * -1)}.kpt-galleria__scroll:hover{background:var(--kpt-color-muted)}.kpt-galleria__strip[data-scroll-start] .kpt-galleria__scroll--back,.kpt-galleria__strip[data-scroll-end] .kpt-galleria__scroll--forward{opacity:1;pointer-events:auto;scale:1}.kpt-galleria:dir(rtl) :is(.kpt-galleria__nav,.kpt-galleria__scroll) .kpt-icon-host{transform:scaleX(-1)}@media(prefers-reduced-motion:reduce){.kpt-galleria__scroll{transition:none}}.kpt-galleria__live{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}}\n"] }]
19273
+ }], () => [], { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], activeIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeIndex", required: false }] }, { type: i0.Output, args: ["activeIndexChange"] }], showThumbnails: [{ type: i0.Input, args: [{ isSignal: true, alias: "showThumbnails", required: false }] }], thumbs: [{ type: i0.ViewChildren, args: ['thumb', { isSignal: true }] }], stage: [{ type: i0.ViewChild, args: ['stage', { isSignal: true }] }], image: [{ type: i0.ViewChild, args: ['image', { isSignal: true }] }], strip: [{ type: i0.ViewChild, args: ['strip', { isSignal: true }] }], stripWrap: [{ type: i0.ViewChild, args: ['stripWrap', { isSignal: true }] }] }); })();
19274
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(KptGalleria, { className: "KptGalleria", filePath: "lib/galleria/galleria.component.ts", lineNumber: 114 }); })();
18875
19275
 
18876
19276
  const _c0$a = ["dlg"];
18877
19277
  const _c1$7 = ["*", [["", "kptDialogFooter", ""]]];