@konce-pt/angular 0.16.1 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +114 -0
- package/README.md +28 -23
- package/charts/src/lib/llms.txt +10 -0
- package/fesm2022/konce-pt-angular-charts.mjs +24 -15
- package/fesm2022/konce-pt-angular-charts.mjs.map +1 -1
- package/fesm2022/konce-pt-angular.mjs +1101 -595
- package/fesm2022/konce-pt-angular.mjs.map +1 -1
- package/package.json +14 -14
- package/src/lib/carousel/llms.txt +7 -1
- package/src/lib/data-table/llms.txt +5 -2
- package/src/lib/galleria/llms.txt +23 -0
- package/src/lib/image/llms.txt +15 -0
- package/src/lib/input/llms.txt +20 -0
- package/src/lib/popover/llms.txt +2 -0
- package/src/lib/tabs/llms.txt +36 -2
- package/types/konce-pt-angular-charts.d.ts.map +1 -1
- package/types/konce-pt-angular.d.ts +157 -25
- package/types/konce-pt-angular.d.ts.map +1 -1
|
@@ -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';
|
|
@@ -16,7 +16,7 @@ import { CdkScrollable } from '@angular/cdk/scrolling';
|
|
|
16
16
|
import { KPT_SIGNAL_GRID_CELL, KPT_SIGNAL_GRID_GAP, KPT_SIGNAL_GRID_DENSITY, KPT_SIGNAL_GRID_FALLOFF, KPT_WAVE_ROTATION, KPT_WAVE_BAND, KPT_WAVE_AMPLITUDE, KPT_BACKDROP_MAX_STEP, resolveBackdropColors, adaptBackdropValue, readBackdropSurface, readBackdropInk, createBackdropRenderer, KPT_BACKDROP_MAX_DPR, observeBackdropTheme, readBackdropLead } from '@konce-pt/backdrop';
|
|
17
17
|
export { KPT_SIGNAL_GRID_CELL, KPT_SIGNAL_GRID_DENSITY, KPT_SIGNAL_GRID_FALLOFF, KPT_SIGNAL_GRID_GAP, KPT_WAVE_AMPLITUDE, KPT_WAVE_BAND, KPT_WAVE_RESOLUTION, KPT_WAVE_ROTATION, buildSignalGrid, createBackdropRenderer, mixOklch, readCssColor, resolveWave, shiftHue, signalGridAlpha, signalGridDensity, waveIntensity, waveRamp } from '@konce-pt/backdrop';
|
|
18
18
|
import { form, required, email, minLength, validateTree, submit, FormField, FormRoot } from '@angular/forms/signals';
|
|
19
|
-
import { virtualRange, createGlobalFilter, sortRows, aggregate, cssLengthToPx, columnOffsets, virtualColumnRange, buildCsv, isEmptyFilterValue, matchesColumnFilter, toText } from '@konce-pt/table';
|
|
19
|
+
import { virtualRange, createGlobalFilter, sortRows, aggregate, cssLengthToPx, columnOffsets, virtualColumnRange, groupHeaderCells, buildCsv, isEmptyFilterValue, matchesColumnFilter, toText } from '@konce-pt/table';
|
|
20
20
|
import { FocusTrapFactory } from '@angular/cdk/a11y';
|
|
21
21
|
|
|
22
22
|
/**
|
|
@@ -1368,8 +1368,8 @@ function dropdownPositions(offset, options = {}) {
|
|
|
1368
1368
|
}
|
|
1369
1369
|
|
|
1370
1370
|
const _c0$Q = ["toggleBtn"];
|
|
1371
|
-
const _c1$
|
|
1372
|
-
const _c2$
|
|
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$
|
|
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$
|
|
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$
|
|
1958
|
-
const _c2$
|
|
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$
|
|
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$
|
|
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$
|
|
2107
|
-
const _c2$
|
|
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$
|
|
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$
|
|
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$
|
|
2549
|
-
const _c2$
|
|
2550
|
-
const _c3$
|
|
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$
|
|
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$
|
|
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 }); }
|
|
@@ -3131,13 +3131,32 @@ class KptSpeechButton {
|
|
|
3131
3131
|
}], () => [], { target: [{ type: i0.Input, args: [{ isSignal: true, alias: "target", required: false }] }], lang: [{ type: i0.Input, args: [{ isSignal: true, alias: "lang", required: false }] }], continuous: [{ type: i0.Input, args: [{ isSignal: true, alias: "continuous", required: false }] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], interim: [{ type: i0.Input, args: [{ isSignal: true, alias: "interim", required: false }] }], capitalize: [{ type: i0.Input, args: [{ isSignal: true, alias: "capitalize", required: false }] }], wave: [{ type: i0.Input, args: [{ isSignal: true, alias: "wave", required: false }] }], wavePosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "wavePosition", required: false }] }], bars: [{ type: i0.Input, args: [{ isSignal: true, alias: "bars", required: false }] }], silenceMs: [{ type: i0.Input, args: [{ isSignal: true, alias: "silenceMs", required: false }] }], maxDuration: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxDuration", required: false }] }], processLocally: [{ type: i0.Input, args: [{ isSignal: true, alias: "processLocally", required: false }] }], unsupported: [{ type: i0.Input, args: [{ isSignal: true, alias: "unsupported", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], listeningColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "listeningColor", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], tabIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabIndex", required: false }] }], started: [{ type: i0.Output, args: ["started"] }], finished: [{ type: i0.Output, args: ["finished"] }], result: [{ type: i0.Output, args: ["result"] }], failed: [{ type: i0.Output, args: ["failed"] }] }); })();
|
|
3132
3132
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(KptSpeechButton, { className: "KptSpeechButton", filePath: "lib/speech/speech-button.component.ts", lineNumber: 103 }); })();
|
|
3133
3133
|
|
|
3134
|
-
function
|
|
3135
|
-
i0.ɵɵelement(0, "kpt-
|
|
3134
|
+
function KptInput_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
3135
|
+
i0.ɵɵelement(0, "kpt-icon", 1);
|
|
3136
3136
|
} if (rf & 2) {
|
|
3137
|
-
|
|
3138
|
-
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());
|
|
3137
|
+
i0.ɵɵproperty("name", ctx);
|
|
3140
3138
|
} }
|
|
3139
|
+
function KptInput_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
3140
|
+
const _r3 = i0.ɵɵgetCurrentView();
|
|
3141
|
+
i0.ɵɵelementStart(0, "button", 5);
|
|
3142
|
+
i0.ɵɵlistener("mousedown", function KptInput_Conditional_3_Template_button_mousedown_0_listener($event) { return $event.preventDefault(); })("click", function KptInput_Conditional_3_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r3); const ctx_r3 = i0.ɵɵnextContext(); const fieldEl_r2 = i0.ɵɵreference(2); return i0.ɵɵresetView(ctx_r3.clear(fieldEl_r2)); });
|
|
3143
|
+
i0.ɵɵelement(1, "kpt-icon", 6);
|
|
3144
|
+
i0.ɵɵelementEnd();
|
|
3145
|
+
} if (rf & 2) {
|
|
3146
|
+
const ctx_r3 = i0.ɵɵnextContext();
|
|
3147
|
+
i0.ɵɵattribute("aria-label", ctx_r3.i18n.t("input.clear"));
|
|
3148
|
+
} }
|
|
3149
|
+
function KptInput_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
3150
|
+
i0.ɵɵelement(0, "kpt-speech-button", 4);
|
|
3151
|
+
} if (rf & 2) {
|
|
3152
|
+
const ctx_r3 = i0.ɵɵnextContext();
|
|
3153
|
+
const fieldEl_r2 = i0.ɵɵreference(2);
|
|
3154
|
+
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());
|
|
3155
|
+
} }
|
|
3156
|
+
/** `clearable` bez wartości (`<kpt-input clearable />`) to `true`, a brak atrybutu - "zależnie od typu". */
|
|
3157
|
+
function optionalBoolean(value) {
|
|
3158
|
+
return value === null || value === undefined ? null : booleanAttribute(value);
|
|
3159
|
+
}
|
|
3141
3160
|
/**
|
|
3142
3161
|
* Pole tekstowe Koncept UI zintegrowane z Angular Signal Forms.
|
|
3143
3162
|
* Implementuje `FormValueControl<string>` - wiąż je dyrektywą `FormField`:
|
|
@@ -3185,6 +3204,21 @@ class KptInput {
|
|
|
3185
3204
|
/** Podpowiedź autouzupełniania dla przeglądarki i menedżera haseł (np. 'email', 'current-password'). */
|
|
3186
3205
|
this.autocomplete = input(null, /* @ts-ignore */
|
|
3187
3206
|
...(ngDevMode ? [{ debugName: "autocomplete" }] : /* istanbul ignore next */ []));
|
|
3207
|
+
/**
|
|
3208
|
+
* Ikona z rejestru na początku pola (`search`, `mail`...). Dekoracyjna - nazwę pola daje etykieta
|
|
3209
|
+
* albo `ariaLabel`, więc ikona nie trafia do drzewa dostępności.
|
|
3210
|
+
*/
|
|
3211
|
+
this.icon = input(null, /* @ts-ignore */
|
|
3212
|
+
...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
3213
|
+
/**
|
|
3214
|
+
* Przycisk czyszczenia na końcu pola. Bez ustawienia - włączony tylko dla `type="search"`,
|
|
3215
|
+
* gdzie zastępuje systemowe "x" (ukryte zawsze, także przy `clearable="false"`).
|
|
3216
|
+
*/
|
|
3217
|
+
this.clearable = input(null, { ...(ngDevMode ? { debugName: "clearable" } : /* istanbul ignore next */ {}), transform: optionalBoolean });
|
|
3218
|
+
this.i18n = inject(KptI18n);
|
|
3219
|
+
/** Przycisk widać, gdy jest co czyścić i wolno to zrobić. */
|
|
3220
|
+
this.showClear = computed(() => (this.clearable() ?? this.type() === 'search') && this.value() !== '' && !this.disabled() && !this.readonly(), /* @ts-ignore */
|
|
3221
|
+
...(ngDevMode ? [{ debugName: "showClear" }] : /* istanbul ignore next */ []));
|
|
3188
3222
|
// -- Dyktowanie --
|
|
3189
3223
|
/** Mikrofon w polu (Web Speech API). Bez wsparcia przeglądarki się nie pokazuje. */
|
|
3190
3224
|
this.speech = input(false, { ...(ngDevMode ? { debugName: "speech" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
@@ -3215,38 +3249,66 @@ class KptInput {
|
|
|
3215
3249
|
onInput(event) {
|
|
3216
3250
|
this.value.set(event.target.value);
|
|
3217
3251
|
}
|
|
3252
|
+
/**
|
|
3253
|
+
* Czyści pole zdarzeniem `input`, a nie samym `value.set('')`: zdarzenie przechodzi przez
|
|
3254
|
+
* `onInput` (model, Signal Forms) i wypływa z hosta, więc widzi je też słuchacz `(input)`
|
|
3255
|
+
* postawiony na `kpt-input`.
|
|
3256
|
+
*/
|
|
3257
|
+
clear(field) {
|
|
3258
|
+
field.value = '';
|
|
3259
|
+
field.dispatchEvent(new Event('input', { bubbles: true }));
|
|
3260
|
+
field.focus();
|
|
3261
|
+
}
|
|
3262
|
+
/** Escape czyści pełne pole i nie idzie dalej - pierwszy nie zamyka okna, w którym pole stoi. */
|
|
3263
|
+
onEscape(event, field) {
|
|
3264
|
+
if (!this.showClear())
|
|
3265
|
+
return;
|
|
3266
|
+
event.preventDefault();
|
|
3267
|
+
event.stopPropagation();
|
|
3268
|
+
this.clear(field);
|
|
3269
|
+
}
|
|
3218
3270
|
static { this.ɵfac = function KptInput_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || KptInput)(); }; }
|
|
3219
3271
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: KptInput, selectors: [["kpt-input"]], viewQuery: function KptInput_Query(rf, ctx) { if (rf & 1) {
|
|
3220
3272
|
i0.ɵɵviewQuerySignal(ctx.mic, KptSpeechButton, 5);
|
|
3221
3273
|
} if (rf & 2) {
|
|
3222
3274
|
i0.ɵɵqueryAdvance();
|
|
3223
|
-
} }, hostAttrs: [1, "kpt-input-host"], hostVars:
|
|
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:
|
|
3226
|
-
i0.ɵɵ
|
|
3227
|
-
i0.ɵɵ
|
|
3275
|
+
} }, hostAttrs: [1, "kpt-input-host"], hostVars: 4, hostBindings: function KptInput_HostBindings(rf, ctx) { if (rf & 2) {
|
|
3276
|
+
i0.ɵɵattribute("data-speech", ctx.speechState())("data-clear", ctx.showClear() ? "" : null)("data-icon", ctx.icon() ? "" : null)("id", null);
|
|
3277
|
+
} }, 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"], icon: [1, "icon"], clearable: [1, "clearable"], speech: [1, "speech"], speechLang: [1, "speechLang"], speechColor: [1, "speechColor"], speechMode: [1, "speechMode"] }, outputs: { value: "valueChange", touch: "touch" }, decls: 5, vars: 14, consts: [["fieldEl", ""], [1, "kpt-input__icon", 3, "name"], [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) {
|
|
3278
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
3279
|
+
i0.ɵɵconditionalCreate(0, KptInput_Conditional_0_Template, 1, 1, "kpt-icon", 1);
|
|
3280
|
+
i0.ɵɵelementStart(1, "input", 2, 0);
|
|
3281
|
+
i0.ɵɵlistener("input", function KptInput_Template_input_input_1_listener($event) { return ctx.onInput($event); })("keydown.escape", function KptInput_Template_input_keydown_escape_1_listener($event) { i0.ɵɵrestoreView(_r1); const fieldEl_r2 = i0.ɵɵreference(2); return i0.ɵɵresetView(ctx.onEscape($event, fieldEl_r2)); })("blur", function KptInput_Template_input_blur_1_listener() { return ctx.touch.emit(); });
|
|
3228
3282
|
i0.ɵɵelementEnd();
|
|
3229
|
-
i0.ɵɵconditionalCreate(
|
|
3283
|
+
i0.ɵɵconditionalCreate(3, KptInput_Conditional_3_Template, 2, 1, "button", 3);
|
|
3284
|
+
i0.ɵɵconditionalCreate(4, KptInput_Conditional_4_Template, 1, 6, "kpt-speech-button", 4);
|
|
3230
3285
|
} if (rf & 2) {
|
|
3286
|
+
let tmp_1_0;
|
|
3287
|
+
i0.ɵɵconditional((tmp_1_0 = ctx.icon()) ? 0 : -1, tmp_1_0);
|
|
3288
|
+
i0.ɵɵadvance();
|
|
3231
3289
|
i0.ɵɵproperty("id", ctx.field.id())("type", ctx.type())("value", ctx.value())("placeholder", ctx.placeholder())("disabled", ctx.disabled())("readOnly", ctx.readonly());
|
|
3232
3290
|
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
3291
|
i0.ɵɵadvance(2);
|
|
3234
|
-
i0.ɵɵconditional(ctx.
|
|
3235
|
-
|
|
3292
|
+
i0.ɵɵconditional(ctx.showClear() ? 3 : -1);
|
|
3293
|
+
i0.ɵɵadvance();
|
|
3294
|
+
i0.ɵɵconditional(ctx.speech() ? 4 : -1);
|
|
3295
|
+
} }, 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-icon]{position:relative}.kpt-input-host[data-icon] .kpt-input__field{padding-inline-start:calc(var(--%NS%kpt-space-3, .75rem) * 2 + 1rem)}.kpt-input__icon{position:absolute;z-index:1;inset-block:0;inset-inline-start:var(--%NS%kpt-space-3, .75rem);display:flex;height:1rem;margin-block:auto;color:var(--%NS%kpt-form-field-placeholder);font-size:1rem;pointer-events:none}.kpt-input-host[data-icon]:has(.kpt-input__field:disabled) .kpt-input__icon{opacity:.6}.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
3296
|
}
|
|
3237
3297
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(KptInput, [{
|
|
3238
3298
|
type: Component,
|
|
3239
|
-
args: [{ selector: 'kpt-input', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [KptSpeechButton], host: {
|
|
3299
|
+
args: [{ selector: 'kpt-input', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [KptIcon, KptSpeechButton], host: {
|
|
3240
3300
|
class: 'kpt-input-host',
|
|
3241
3301
|
'[attr.data-speech]': 'speechState()',
|
|
3302
|
+
'[attr.data-clear]': "showClear() ? '' : null",
|
|
3303
|
+
'[attr.data-icon]': "icon() ? '' : null",
|
|
3242
3304
|
// id należy wyłącznie do wewnętrznego <input> (powiązanie label[for]); host go nie nosi
|
|
3243
3305
|
'[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:
|
|
3306
|
+
}, template: "@if (icon(); as name) {\n <kpt-icon class=\"kpt-input__icon\" [name]=\"name\" />\n}\n<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-icon]{position:relative}.kpt-input-host[data-icon] .kpt-input__field{padding-inline-start:calc(var(--kpt-space-3, .75rem) * 2 + 1rem)}.kpt-input__icon{position:absolute;z-index:1;inset-block:0;inset-inline-start:var(--kpt-space-3, .75rem);display:flex;height:1rem;margin-block:auto;color:var(--kpt-form-field-placeholder);font-size:1rem;pointer-events:none}.kpt-input-host[data-icon]:has(.kpt-input__field:disabled) .kpt-input__icon{opacity:.6}.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"] }]
|
|
3307
|
+
}], 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 }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", 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 }] }] }); })();
|
|
3308
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(KptInput, { className: "KptInput", filePath: "lib/input/input.component.ts", lineNumber: 64 }); })();
|
|
3247
3309
|
|
|
3248
3310
|
const _c0$J = ["mark"];
|
|
3249
|
-
const _c1$
|
|
3311
|
+
const _c1$q = ["*"];
|
|
3250
3312
|
function KptCheckbox_Conditional_9_Template(rf, ctx) { if (rf & 1) {
|
|
3251
3313
|
i0.ɵɵdomElementStart(0, "span", 9);
|
|
3252
3314
|
i0.ɵɵtext(1);
|
|
@@ -3344,7 +3406,7 @@ class KptCheckbox {
|
|
|
3344
3406
|
i0.ɵɵqueryAdvance();
|
|
3345
3407
|
} }, hostAttrs: [1, "kpt-checkbox-host"], hostVars: 1, hostBindings: function KptCheckbox_HostBindings(rf, ctx) { if (rf & 2) {
|
|
3346
3408
|
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$
|
|
3409
|
+
} }, 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
3410
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
3349
3411
|
i0.ɵɵprojectionDef();
|
|
3350
3412
|
i0.ɵɵdomElementStart(0, "label", 2)(1, "input", 3, 0);
|
|
@@ -3927,7 +3989,7 @@ function isTypeaheadKey(event) {
|
|
|
3927
3989
|
}
|
|
3928
3990
|
|
|
3929
3991
|
const _c0$H = ["triggerEl"];
|
|
3930
|
-
const _c1$
|
|
3992
|
+
const _c1$p = ["searchEl"];
|
|
3931
3993
|
const _forTrack0$e = ($index, $item) => $item.value;
|
|
3932
3994
|
function KptSelect_Conditional_4_For_1_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
3933
3995
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
@@ -4312,7 +4374,7 @@ class KptSelect {
|
|
|
4312
4374
|
}
|
|
4313
4375
|
static { this.ɵfac = function KptSelect_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || KptSelect)(); }; }
|
|
4314
4376
|
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$
|
|
4377
|
+
i0.ɵɵviewQuerySignal(ctx.triggerEl, _c0$H, 5)(ctx.searchEl, _c1$p, 5);
|
|
4316
4378
|
} if (rf & 2) {
|
|
4317
4379
|
i0.ɵɵqueryAdvance(2);
|
|
4318
4380
|
} }, hostAttrs: [1, "kpt-select-host"], hostVars: 1, hostBindings: function KptSelect_HostBindings(rf, ctx) { if (rf & 2) {
|
|
@@ -10283,9 +10345,9 @@ function kptPasswordScore(value) {
|
|
|
10283
10345
|
}
|
|
10284
10346
|
|
|
10285
10347
|
const _c0$C = ["box"];
|
|
10286
|
-
const _c1$
|
|
10287
|
-
const _c2$
|
|
10288
|
-
const _c3$
|
|
10348
|
+
const _c1$o = () => [0, 1, 2, 3];
|
|
10349
|
+
const _c2$c = a0 => ({ label: a0 });
|
|
10350
|
+
const _c3$5 = a0 => [a0];
|
|
10289
10351
|
const _forTrack0$7 = ($index, $item) => $item.label;
|
|
10290
10352
|
function KptPassword_Conditional_5_For_3_Template(rf, ctx) { if (rf & 1) {
|
|
10291
10353
|
i0.ɵɵelement(0, "span", 9);
|
|
@@ -10315,9 +10377,9 @@ function KptPassword_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
10315
10377
|
i0.ɵɵproperty("id", ctx_r1.meterId());
|
|
10316
10378
|
i0.ɵɵattribute("data-score", ctx_r1.strength().score);
|
|
10317
10379
|
i0.ɵɵadvance(2);
|
|
10318
|
-
i0.ɵɵrepeater(i0.ɵɵpureFunction0(2, _c1$
|
|
10380
|
+
i0.ɵɵrepeater(i0.ɵɵpureFunction0(2, _c1$o));
|
|
10319
10381
|
i0.ɵɵadvance(2);
|
|
10320
|
-
i0.ɵɵrepeater(i0.ɵɵpureFunction1(5, _c3$
|
|
10382
|
+
i0.ɵɵrepeater(i0.ɵɵpureFunction1(5, _c3$5, i0.ɵɵpureFunction1(3, _c2$c, ctx_r1.strength().label)));
|
|
10321
10383
|
} }
|
|
10322
10384
|
/**
|
|
10323
10385
|
* Pole hasła z przełącznikiem widoczności i opcjonalnym miernikiem siły. Signal Forms.
|
|
@@ -11620,7 +11682,7 @@ class KptKnob {
|
|
|
11620
11682
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(KptKnob, { className: "KptKnob", filePath: "lib/knob/knob.component.ts", lineNumber: 81 }); })();
|
|
11621
11683
|
|
|
11622
11684
|
const _c0$A = ["*", [["", "kptCardFooter", ""]]];
|
|
11623
|
-
const _c1$
|
|
11685
|
+
const _c1$n = ["*", "[kptCardFooter]"];
|
|
11624
11686
|
function KptCard_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
11625
11687
|
i0.ɵɵdomElementStart(0, "div", 0);
|
|
11626
11688
|
i0.ɵɵtext(1);
|
|
@@ -11665,7 +11727,7 @@ class KptCard {
|
|
|
11665
11727
|
static { this.ɵfac = function KptCard_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || KptCard)(); }; }
|
|
11666
11728
|
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
11729
|
i0.ɵɵattribute("data-variant", ctx.variant());
|
|
11668
|
-
} }, inputs: { variant: [1, "variant"], header: [1, "header"], headingLevel: [1, "headingLevel"], flush: [1, "flush"] }, ngContentSelectors: _c1$
|
|
11730
|
+
} }, 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
11731
|
i0.ɵɵprojectionDef(_c0$A);
|
|
11670
11732
|
i0.ɵɵconditionalCreate(0, KptCard_Conditional_0_Template, 2, 3, "div", 0);
|
|
11671
11733
|
i0.ɵɵdomElementStart(1, "div", 1);
|
|
@@ -11772,7 +11834,7 @@ class KptToolbar {
|
|
|
11772
11834
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(KptToolbar, { className: "KptToolbar", filePath: "lib/toolbar/toolbar.component.ts", lineNumber: 27 }); })();
|
|
11773
11835
|
|
|
11774
11836
|
const _c0$y = ["*", [["", "kptSidenavFooter", ""]]];
|
|
11775
|
-
const _c1$
|
|
11837
|
+
const _c1$m = ["*", "[kptSidenavFooter]"];
|
|
11776
11838
|
/**
|
|
11777
11839
|
* Panel boczny (sidenav) - stylowany kontener nawigacji, zwykle umieszczany w slocie
|
|
11778
11840
|
* `kptShellSidenav` komponentu `kpt-app-shell`.
|
|
@@ -11792,7 +11854,7 @@ const _c1$l = ["*", "[kptSidenavFooter]"];
|
|
|
11792
11854
|
*/
|
|
11793
11855
|
class KptSidenav {
|
|
11794
11856
|
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$
|
|
11857
|
+
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
11858
|
i0.ɵɵprojectionDef(_c0$y);
|
|
11797
11859
|
i0.ɵɵdomElementStart(0, "div", 0);
|
|
11798
11860
|
i0.ɵɵprojection(1);
|
|
@@ -11807,7 +11869,7 @@ class KptSidenav {
|
|
|
11807
11869
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(KptSidenav, { className: "KptSidenav", filePath: "lib/sidenav/sidenav.component.ts", lineNumber: 30 }); })();
|
|
11808
11870
|
|
|
11809
11871
|
const _c0$x = [[["", "kptShellToolbar", ""]], [["", "kptShellSidenav", ""]], "*"];
|
|
11810
|
-
const _c1$
|
|
11872
|
+
const _c1$l = ["[kptShellToolbar]", "[kptShellSidenav]", "*"];
|
|
11811
11873
|
/** Pierwszy element panelu, który przyjmie fokus po otwarciu nakładki. */
|
|
11812
11874
|
const FOCUSABLE$1 = 'a[href], button:not(:disabled), input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex="-1"])';
|
|
11813
11875
|
/**
|
|
@@ -11970,7 +12032,7 @@ class KptAppShell {
|
|
|
11970
12032
|
} if (rf & 2) {
|
|
11971
12033
|
i0.ɵɵattribute("data-sidenav-mode", ctx.sidenavMode())("data-sidenav-breakpoint", ctx.sidenavBreakpoint())("data-sidenav-rail", ctx.sidenavRailBreakpoint());
|
|
11972
12034
|
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$
|
|
12035
|
+
} }, 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
12036
|
i0.ɵɵprojectionDef(_c0$x);
|
|
11975
12037
|
i0.ɵɵprojection(0);
|
|
11976
12038
|
i0.ɵɵelementStart(1, "div", 0)(2, "nav", 1);
|
|
@@ -12070,7 +12132,7 @@ class KptShellNavToggle {
|
|
|
12070
12132
|
}], () => [], { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "kptShellNavToggle", required: false }] }] }); })();
|
|
12071
12133
|
|
|
12072
12134
|
const _c0$w = ["canvas"];
|
|
12073
|
-
const _c1$
|
|
12135
|
+
const _c1$k = ["*"];
|
|
12074
12136
|
/**
|
|
12075
12137
|
* Dekoracyjna warstwa tła dla sekcji: komponent obejmuje treść i maluje pod nią animowany canvas.
|
|
12076
12138
|
* Sięga się po niego tam, gdzie płaska powierzchnia wygląda na niedokończoną, a wideo albo duży
|
|
@@ -12417,7 +12479,7 @@ class KptBackdrop {
|
|
|
12417
12479
|
} }, hostAttrs: [1, "kpt-backdrop-host"], hostVars: 6, hostBindings: function KptBackdrop_HostBindings(rf, ctx) { if (rf & 2) {
|
|
12418
12480
|
i0.ɵɵattribute("data-effect", ctx.effect())("data-tone", ctx.ink().tone || null);
|
|
12419
12481
|
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$
|
|
12482
|
+
} }, 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
12483
|
i0.ɵɵprojectionDef();
|
|
12422
12484
|
i0.ɵɵdomElement(0, "canvas", 1, 0);
|
|
12423
12485
|
i0.ɵɵdomElementStart(2, "div", 2);
|
|
@@ -12571,10 +12633,10 @@ class KptAuthProviderDef {
|
|
|
12571
12633
|
}], null, { kptAuthProvider: [{ type: i0.Input, args: [{ isSignal: true, alias: "kptAuthProvider", required: true }] }] }); })();
|
|
12572
12634
|
|
|
12573
12635
|
const _c0$u = ["heading"];
|
|
12574
|
-
const _c1$
|
|
12575
|
-
const _c2$
|
|
12576
|
-
const _c3$
|
|
12577
|
-
const _c4$
|
|
12636
|
+
const _c1$j = [[["", "kptAuthBrand", ""]], [["", "kptAuthFooter", ""]], [["", "kptAuthPromo", ""]], [["", "kptAuthFields", ""]], [["", "kptAuthSso", ""]]];
|
|
12637
|
+
const _c2$b = ["[kptAuthBrand]", "[kptAuthFooter]", "[kptAuthPromo]", "[kptAuthFields]", "[kptAuthSso]"];
|
|
12638
|
+
const _c3$4 = a0 => ({ min: a0 });
|
|
12639
|
+
const _c4$2 = a0 => ({ provider: a0 });
|
|
12578
12640
|
const _forTrack0$5 = ($index, $item) => $item.id;
|
|
12579
12641
|
function KptAuth_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
12580
12642
|
i0.ɵɵprojection(0, 3);
|
|
@@ -12715,7 +12777,7 @@ function KptAuth_Case_16_Template(rf, ctx) { if (rf & 1) {
|
|
|
12715
12777
|
i0.ɵɵproperty("formField", ctx_r0.signUpForm.email)("id", ctx_r0.ids.regEmail)("placeholder", ctx_r0.i18n.t("auth.emailPlaceholder"));
|
|
12716
12778
|
i0.ɵɵcontrol();
|
|
12717
12779
|
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$
|
|
12780
|
+
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
12781
|
i0.ɵɵadvance();
|
|
12720
12782
|
i0.ɵɵproperty("formField", ctx_r0.signUpForm.password)("id", ctx_r0.ids.regPassword);
|
|
12721
12783
|
i0.ɵɵcontrol();
|
|
@@ -12805,7 +12867,7 @@ function KptAuth_Conditional_18_Conditional_2_For_5_Conditional_1_Template(rf, c
|
|
|
12805
12867
|
const provider_r9 = i0.ɵɵnextContext().$implicit;
|
|
12806
12868
|
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
12807
12869
|
i0.ɵɵproperty("disabled", ctx_r0.busy());
|
|
12808
|
-
i0.ɵɵattribute("aria-label", ctx_r0.i18n.t("auth.continueWith", i0.ɵɵpureFunction1(5, _c4$
|
|
12870
|
+
i0.ɵɵattribute("aria-label", ctx_r0.i18n.t("auth.continueWith", i0.ɵɵpureFunction1(5, _c4$2, provider_r9.label)));
|
|
12809
12871
|
i0.ɵɵadvance();
|
|
12810
12872
|
i0.ɵɵconditional(provider_r9.iconUrl ? 1 : provider_r9.icon ? 2 : -1);
|
|
12811
12873
|
i0.ɵɵadvance(3);
|
|
@@ -13158,8 +13220,8 @@ class KptAuth {
|
|
|
13158
13220
|
} }, hostAttrs: [1, "kpt-auth-host"], hostVars: 4, hostBindings: function KptAuth_HostBindings(rf, ctx) { if (rf & 2) {
|
|
13159
13221
|
i0.ɵɵattribute("data-layout", ctx.layout())("data-mode", ctx.mode());
|
|
13160
13222
|
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$
|
|
13162
|
-
i0.ɵɵprojectionDef(_c1$
|
|
13223
|
+
} }, 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) {
|
|
13224
|
+
i0.ɵɵprojectionDef(_c1$j);
|
|
13163
13225
|
i0.ɵɵtemplate(0, KptAuth_ng_template_0_Template, 1, 0, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
13164
13226
|
i0.ɵɵelementStart(2, "div", 2)(3, "div", 3)(4, "div", 4)(5, "div", 5)(6, "div", 6);
|
|
13165
13227
|
i0.ɵɵprojection(7);
|
|
@@ -13242,7 +13304,7 @@ class KptAuth {
|
|
|
13242
13304
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(KptAuth, { className: "KptAuth", filePath: "lib/auth/auth.component.ts", lineNumber: 100 }); })();
|
|
13243
13305
|
|
|
13244
13306
|
const _c0$t = [[["", "kptPanelActions", ""]], "*"];
|
|
13245
|
-
const _c1$
|
|
13307
|
+
const _c1$i = ["[kptPanelActions]", "*"];
|
|
13246
13308
|
function KptPanel_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
13247
13309
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
13248
13310
|
i0.ɵɵelementStart(0, "button", 8);
|
|
@@ -13292,7 +13354,7 @@ class KptPanel {
|
|
|
13292
13354
|
static { this.ɵfac = function KptPanel_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || KptPanel)(); }; }
|
|
13293
13355
|
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
13356
|
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$
|
|
13357
|
+
} }, 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
13358
|
i0.ɵɵprojectionDef(_c0$t);
|
|
13297
13359
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "span", 2);
|
|
13298
13360
|
i0.ɵɵtext(3);
|
|
@@ -13468,7 +13530,7 @@ class KptFieldset {
|
|
|
13468
13530
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(KptFieldset, { className: "KptFieldset", filePath: "lib/fieldset/fieldset.component.ts", lineNumber: 53 }); })();
|
|
13469
13531
|
|
|
13470
13532
|
const _c0$r = [[["", "kptSplitStart", ""]], [["", "kptSplitEnd", ""]]];
|
|
13471
|
-
const _c1$
|
|
13533
|
+
const _c1$h = ["[kptSplitStart]", "[kptSplitEnd]"];
|
|
13472
13534
|
let nextId$f = 0;
|
|
13473
13535
|
/**
|
|
13474
13536
|
* Splitter - dwa panele z przeciąganym uchwytem. Panele przez sloty `[kptSplitStart]` i `[kptSplitEnd]`.
|
|
@@ -13545,7 +13607,7 @@ class KptSplitter {
|
|
|
13545
13607
|
this.startSize.set(Math.min(100 - min, Math.max(min, Math.round(pct))));
|
|
13546
13608
|
}
|
|
13547
13609
|
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$
|
|
13610
|
+
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
13611
|
i0.ɵɵprojectionDef(_c0$r);
|
|
13550
13612
|
i0.ɵɵdomElementStart(0, "div", 0)(1, "div", 1);
|
|
13551
13613
|
i0.ɵɵprojection(2);
|
|
@@ -13693,22 +13755,24 @@ function kptLockScroll() {
|
|
|
13693
13755
|
}
|
|
13694
13756
|
|
|
13695
13757
|
const _c0$q = ["dlg"];
|
|
13696
|
-
const _c1$
|
|
13758
|
+
const _c1$g = ["trigger"];
|
|
13759
|
+
const _c2$a = ["full"];
|
|
13760
|
+
const _c3$3 = ["closeBtn"];
|
|
13697
13761
|
function KptImage_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
13698
13762
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
13699
|
-
i0.ɵɵelementStart(0, "button",
|
|
13763
|
+
i0.ɵɵelementStart(0, "button", 5, 0);
|
|
13700
13764
|
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",
|
|
13702
|
-
i0.ɵɵelementStart(3, "span",
|
|
13703
|
-
i0.ɵɵelement(4, "kpt-icon",
|
|
13765
|
+
i0.ɵɵelement(2, "img", 6);
|
|
13766
|
+
i0.ɵɵelementStart(3, "span", 7);
|
|
13767
|
+
i0.ɵɵelement(4, "kpt-icon", 8);
|
|
13704
13768
|
i0.ɵɵelementEnd()();
|
|
13705
|
-
i0.ɵɵelementStart(5, "dialog",
|
|
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",
|
|
13769
|
+
i0.ɵɵelementStart(5, "dialog", 9, 1);
|
|
13770
|
+
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)); });
|
|
13771
|
+
i0.ɵɵelementStart(7, "button", 10, 2);
|
|
13708
13772
|
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(
|
|
13773
|
+
i0.ɵɵelement(9, "kpt-icon", 11);
|
|
13710
13774
|
i0.ɵɵelementEnd();
|
|
13711
|
-
i0.ɵɵelement(
|
|
13775
|
+
i0.ɵɵelement(10, "img", 12, 3);
|
|
13712
13776
|
i0.ɵɵelementEnd();
|
|
13713
13777
|
} if (rf & 2) {
|
|
13714
13778
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -13720,12 +13784,12 @@ function KptImage_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
13720
13784
|
i0.ɵɵattribute("aria-label", ctx_r1.alt() || ctx_r1.i18n.t("image.preview"));
|
|
13721
13785
|
i0.ɵɵadvance(2);
|
|
13722
13786
|
i0.ɵɵattribute("aria-label", ctx_r1.i18n.t("common.close"));
|
|
13723
|
-
i0.ɵɵadvance(
|
|
13787
|
+
i0.ɵɵadvance(3);
|
|
13724
13788
|
i0.ɵɵproperty("src", ctx_r1.src(), i0.ɵɵsanitizeUrl)("alt", ctx_r1.alt());
|
|
13725
13789
|
} }
|
|
13726
13790
|
function KptImage_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
13727
|
-
i0.ɵɵelementStart(0, "div",
|
|
13728
|
-
i0.ɵɵelement(1, "img",
|
|
13791
|
+
i0.ɵɵelementStart(0, "div", 13);
|
|
13792
|
+
i0.ɵɵelement(1, "img", 14);
|
|
13729
13793
|
i0.ɵɵelementEnd();
|
|
13730
13794
|
} if (rf & 2) {
|
|
13731
13795
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -13741,6 +13805,10 @@ function KptImage_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
13741
13805
|
* stronę i górną warstwę, więc podgląd nie gubi się w przodku z `transform`. Na czas podglądu
|
|
13742
13806
|
* blokujemy przewijanie dokumentu, a po zamknięciu fokus wraca na miniaturę.
|
|
13743
13807
|
*
|
|
13808
|
+
* Ruch: zdjęcie wylatuje z miniatury i ląduje na środku na sprężynie, a przy zamknięciu (`x`,
|
|
13809
|
+
* `Escape`, tło) wraca do niej, zanim okno się zamknie. Rodzaj ruchu bierze z `enter`
|
|
13810
|
+
* w `provideKptMotion` (`spring` / `fade` / `none`); przy "ogranicz ruch" podgląd tylko się przenika.
|
|
13811
|
+
*
|
|
13744
13812
|
* @example
|
|
13745
13813
|
* <kpt-image src="/foto.jpg" alt="Zdjęcie" preview width="240px" />
|
|
13746
13814
|
*/
|
|
@@ -13760,7 +13828,15 @@ class KptImage {
|
|
|
13760
13828
|
...(ngDevMode ? [{ debugName: "dialog" }] : /* istanbul ignore next */ []));
|
|
13761
13829
|
this.trigger = viewChild('trigger', /* @ts-ignore */
|
|
13762
13830
|
...(ngDevMode ? [{ debugName: "trigger" }] : /* istanbul ignore next */ []));
|
|
13763
|
-
|
|
13831
|
+
this.full = viewChild('full', /* @ts-ignore */
|
|
13832
|
+
...(ngDevMode ? [{ debugName: "full" }] : /* istanbul ignore next */ []));
|
|
13833
|
+
this.closeBtn = viewChild('closeBtn', /* @ts-ignore */
|
|
13834
|
+
...(ngDevMode ? [{ debugName: "closeBtn" }] : /* istanbul ignore next */ []));
|
|
13835
|
+
this.motionConfig = inject(KPT_MOTION_CONFIG, { optional: true });
|
|
13836
|
+
this.motion = computed(() => resolveEnterMotion(undefined, this.motionConfig), /* @ts-ignore */
|
|
13837
|
+
...(ngDevMode ? [{ debugName: "motion" }] : /* istanbul ignore next */ []));
|
|
13838
|
+
/** Zegar zamknięcia: okno zamyka się dopiero, gdy zdjęcie wróci do miniatury. */
|
|
13839
|
+
this.closeTimer = null;
|
|
13764
13840
|
/** Zdjęcie blokady przewijania strony (wspólny licznik z oknami i szufladami). */
|
|
13765
13841
|
this.releaseScroll = null;
|
|
13766
13842
|
/** Miniatura z `alt` mówi, co powiększa; bez niego - samą czynność. */
|
|
@@ -13775,6 +13851,10 @@ class KptImage {
|
|
|
13775
13851
|
if (this.open() && !el.open) {
|
|
13776
13852
|
el.showModal();
|
|
13777
13853
|
this.releaseScroll ??= kptLockScroll();
|
|
13854
|
+
// Tuż po showModal(), przed malowaniem - pierwsza klatka stoi już na miniaturze.
|
|
13855
|
+
const els = this.zoomElements();
|
|
13856
|
+
if (els)
|
|
13857
|
+
playZoomOpen(els, this.motion());
|
|
13778
13858
|
}
|
|
13779
13859
|
else if (!this.open() && el.open) {
|
|
13780
13860
|
el.close();
|
|
@@ -13782,17 +13862,41 @@ class KptImage {
|
|
|
13782
13862
|
},
|
|
13783
13863
|
});
|
|
13784
13864
|
// Zniszczenie z otwartym podglądem nie przechodzi przez `close` - przewijanie musi wrócić i tak.
|
|
13785
|
-
inject(DestroyRef).onDestroy(() =>
|
|
13865
|
+
inject(DestroyRef).onDestroy(() => {
|
|
13866
|
+
this.clearCloseTimer();
|
|
13867
|
+
this.unlockScroll();
|
|
13868
|
+
});
|
|
13786
13869
|
}
|
|
13787
13870
|
openPreview() {
|
|
13788
13871
|
this.open.set(true);
|
|
13789
13872
|
}
|
|
13873
|
+
/** Zamknięcie z `x`, `Escape` i tła: najpierw powrót zdjęcia do miniatury, potem okno. */
|
|
13790
13874
|
close() {
|
|
13791
|
-
this.
|
|
13875
|
+
if (this.closeTimer)
|
|
13876
|
+
return;
|
|
13877
|
+
const els = this.zoomElements();
|
|
13878
|
+
const ms = els ? playZoomClose(els, this.motion()) : 0;
|
|
13879
|
+
if (ms === 0) {
|
|
13880
|
+
this.open.set(false);
|
|
13881
|
+
return;
|
|
13882
|
+
}
|
|
13883
|
+
this.closeTimer = setTimeout(() => {
|
|
13884
|
+
this.closeTimer = null;
|
|
13885
|
+
this.open.set(false);
|
|
13886
|
+
}, ms);
|
|
13792
13887
|
}
|
|
13793
|
-
/** `
|
|
13888
|
+
/** `Escape` zamknąłby okno od razu - przejmujemy je, żeby zdjęcie zdążyło wrócić. */
|
|
13889
|
+
onCancel(event) {
|
|
13890
|
+
event.preventDefault();
|
|
13891
|
+
this.close();
|
|
13892
|
+
}
|
|
13893
|
+
/** `close` przychodzi z każdej drogi (także wymuszonej przez przeglądarkę) - tu sprzątamy. */
|
|
13794
13894
|
onClosed() {
|
|
13895
|
+
this.clearCloseTimer();
|
|
13795
13896
|
this.open.set(false);
|
|
13897
|
+
const els = this.zoomElements();
|
|
13898
|
+
if (els)
|
|
13899
|
+
stopZoomMotion(els);
|
|
13796
13900
|
this.unlockScroll();
|
|
13797
13901
|
this.trigger()?.nativeElement.focus();
|
|
13798
13902
|
}
|
|
@@ -13801,20 +13905,31 @@ class KptImage {
|
|
|
13801
13905
|
if (event.target === event.currentTarget)
|
|
13802
13906
|
this.close();
|
|
13803
13907
|
}
|
|
13908
|
+
zoomElements() {
|
|
13909
|
+
const thumb = this.trigger()?.nativeElement;
|
|
13910
|
+
const image = this.full()?.nativeElement;
|
|
13911
|
+
const dialog = this.dialog()?.nativeElement;
|
|
13912
|
+
return thumb && image && dialog ? { thumb, image, dialog, close: this.closeBtn()?.nativeElement } : null;
|
|
13913
|
+
}
|
|
13914
|
+
clearCloseTimer() {
|
|
13915
|
+
if (this.closeTimer)
|
|
13916
|
+
clearTimeout(this.closeTimer);
|
|
13917
|
+
this.closeTimer = null;
|
|
13918
|
+
}
|
|
13804
13919
|
unlockScroll() {
|
|
13805
13920
|
this.releaseScroll?.();
|
|
13806
13921
|
this.releaseScroll = null;
|
|
13807
13922
|
}
|
|
13808
13923
|
static { this.ɵfac = function KptImage_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || KptImage)(); }; }
|
|
13809
13924
|
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$
|
|
13925
|
+
i0.ɵɵviewQuerySignal(ctx.dialog, _c0$q, 5)(ctx.trigger, _c1$g, 5)(ctx.full, _c2$a, 5)(ctx.closeBtn, _c3$3, 5);
|
|
13811
13926
|
} if (rf & 2) {
|
|
13812
|
-
i0.ɵɵqueryAdvance(
|
|
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"], [
|
|
13814
|
-
i0.ɵɵconditionalCreate(0, KptImage_Conditional_0_Template,
|
|
13927
|
+
i0.ɵɵqueryAdvance(4);
|
|
13928
|
+
} }, 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) {
|
|
13929
|
+
i0.ɵɵconditionalCreate(0, KptImage_Conditional_0_Template, 12, 8)(1, KptImage_Conditional_1_Template, 2, 4, "div", 4);
|
|
13815
13930
|
} if (rf & 2) {
|
|
13816
13931
|
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:
|
|
13932
|
+
} }, 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
13933
|
}
|
|
13819
13934
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(KptImage, [{
|
|
13820
13935
|
type: Component,
|
|
@@ -13839,21 +13954,24 @@ class KptImage {
|
|
|
13839
13954
|
class="kpt-image__overlay"
|
|
13840
13955
|
[attr.aria-label]="alt() || i18n.t('image.preview')"
|
|
13841
13956
|
(close)="onClosed()"
|
|
13957
|
+
(cancel)="onCancel($event)"
|
|
13842
13958
|
(click)="onDialogClick($event)"
|
|
13843
13959
|
>
|
|
13844
13960
|
<!-- Treść stoi stale: zamknięty <dialog> jest ukryty, a showModal() musi zastać przycisk,
|
|
13845
13961
|
ż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
|
-
|
|
13962
|
+
<button #closeBtn type="button" class="kpt-image__close" (click)="close()" [attr.aria-label]="i18n.t('common.close')"><kpt-icon name="x" /></button>
|
|
13963
|
+
<!-- Bez loading="lazy": to ten sam plik co miniatura, więc jest już pobrany, a leniwe
|
|
13964
|
+
ładowanie w zamkniętym oknie kazałoby lotowi czekać na dekodowanie. -->
|
|
13965
|
+
<img #full class="kpt-image__full" [src]="src()" [alt]="alt()" />
|
|
13848
13966
|
</dialog>
|
|
13849
13967
|
} @else {
|
|
13850
13968
|
<div class="kpt-image" [style.width]="width()">
|
|
13851
13969
|
<img class="kpt-image__img" [src]="src()" [alt]="alt()" />
|
|
13852
13970
|
</div>
|
|
13853
13971
|
}
|
|
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:
|
|
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:
|
|
13972
|
+
`, 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"] }]
|
|
13973
|
+
}], () => [], { 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 }] }] }); })();
|
|
13974
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(KptImage, { className: "KptImage", filePath: "lib/image/image.component.ts", lineNumber: 81 }); })();
|
|
13857
13975
|
|
|
13858
13976
|
function KptMeterGroup_For_3_Template(rf, ctx) { if (rf & 1) {
|
|
13859
13977
|
i0.ɵɵdomElement(0, "span", 4);
|
|
@@ -14178,30 +14296,87 @@ class KptEmpty {
|
|
|
14178
14296
|
}], 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
14297
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(KptEmpty, { className: "KptEmpty", filePath: "lib/empty/empty.component.ts", lineNumber: 32 }); })();
|
|
14180
14298
|
|
|
14299
|
+
/**
|
|
14300
|
+
* Czy klik to zwykła nawigacja w tej samej karcie: lewy przycisk, bez modyfikatorów, a odnośnik
|
|
14301
|
+
* nie ma `target` innego niż `_self`. `target` podaje wołający - w React `currentTarget`
|
|
14302
|
+
* zdarzenia natywnego to korzeń aplikacji, nie kliknięty odnośnik.
|
|
14303
|
+
*/
|
|
14304
|
+
function kptIsPlainClick(event, target = '') {
|
|
14305
|
+
const modified = event.ctrlKey || event.metaKey || event.shiftKey || event.altKey;
|
|
14306
|
+
return event.button === 0 && !modified && (target === '' || target === '_self');
|
|
14307
|
+
}
|
|
14308
|
+
|
|
14181
14309
|
const _c0$n = ["*"];
|
|
14182
14310
|
function KptTab_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
14183
14311
|
i0.ɵɵprojection(0);
|
|
14184
14312
|
} }
|
|
14313
|
+
const ICON_TONES = new Set(['primary', 'success', 'warning', 'danger', 'info']);
|
|
14314
|
+
/**
|
|
14315
|
+
* Nazwa semantyczna idzie w `data-color` (barwa z tokenu, zmienia się z motywem), a każdy inny
|
|
14316
|
+
* napis - np. `var(--brand-accent)` - trafia wprost do `color`. Pusty napis to kolor tekstu zakładki.
|
|
14317
|
+
*/
|
|
14318
|
+
function kptTabIconPaint(color) {
|
|
14319
|
+
if (!color)
|
|
14320
|
+
return { tone: null, css: null };
|
|
14321
|
+
return ICON_TONES.has(color) ? { tone: color, css: null } : { tone: null, css: color };
|
|
14322
|
+
}
|
|
14185
14323
|
/**
|
|
14186
14324
|
* Pojedyncza zakładka. Umieszczaj w `kpt-tabs`. Treść renderowana leniwie (gdy aktywna).
|
|
14187
14325
|
*
|
|
14326
|
+
* Ikona może stać przed etykietą (`icon`), za nią (`iconEnd`) albo po obu stronach. Bez koloru
|
|
14327
|
+
* dziedziczy barwę tekstu zakładki (wyciszona, a na aktywnej - `primary`); `iconColor`
|
|
14328
|
+
* i `iconEndColor` dają jej własną.
|
|
14329
|
+
*
|
|
14188
14330
|
* @example
|
|
14189
14331
|
* <kpt-tab label="Ogólne">...treść...</kpt-tab>
|
|
14332
|
+
* <kpt-tab label="Testy" icon="circle-check" iconColor="success">...</kpt-tab>
|
|
14333
|
+
* <kpt-tab label="Dokumentacja" href="https://ui.konce.pt" target="_blank" iconEnd="external-link" />
|
|
14190
14334
|
*/
|
|
14191
14335
|
class KptTab {
|
|
14192
14336
|
constructor() {
|
|
14193
14337
|
this.label = input.required(/* @ts-ignore */
|
|
14194
14338
|
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
14195
14339
|
this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
14340
|
+
/** Ikona przed etykietą - nazwa z rejestru (`KptIconRegistry`). */
|
|
14341
|
+
this.icon = input(/* @ts-ignore */
|
|
14342
|
+
...(ngDevMode ? [undefined, { debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
14343
|
+
/** Ikona za etykietą - nazwa z rejestru (`KptIconRegistry`). */
|
|
14344
|
+
this.iconEnd = input(/* @ts-ignore */
|
|
14345
|
+
...(ngDevMode ? [undefined, { debugName: "iconEnd" }] : /* istanbul ignore next */ []));
|
|
14346
|
+
/** Kolor ikony przed etykietą: nazwa semantyczna albo dowolna wartość CSS (`var(--brand)`). */
|
|
14347
|
+
this.iconColor = input(/* @ts-ignore */
|
|
14348
|
+
...(ngDevMode ? [undefined, { debugName: "iconColor" }] : /* istanbul ignore next */ []));
|
|
14349
|
+
/** Kolor ikony za etykietą: nazwa semantyczna albo dowolna wartość CSS (`var(--brand)`). */
|
|
14350
|
+
this.iconEndColor = input(/* @ts-ignore */
|
|
14351
|
+
...(ngDevMode ? [undefined, { debugName: "iconEndColor" }] : /* istanbul ignore next */ []));
|
|
14352
|
+
/**
|
|
14353
|
+
* Adres - zakładka staje się odnośnikiem do strony albo serwisu zewnętrznego. Nie ma panelu
|
|
14354
|
+
* (treść jest pomijana), nie liczy się do `activeIndex` i stoi za zakładkami, poza `tablist`.
|
|
14355
|
+
*/
|
|
14356
|
+
this.href = input(/* @ts-ignore */
|
|
14357
|
+
...(ngDevMode ? [undefined, { debugName: "href" }] : /* istanbul ignore next */ []));
|
|
14358
|
+
/** `target` odnośnika, np. `_blank`. */
|
|
14359
|
+
this.target = input(/* @ts-ignore */
|
|
14360
|
+
...(ngDevMode ? [undefined, { debugName: "target" }] : /* istanbul ignore next */ []));
|
|
14361
|
+
/** `rel` odnośnika; przy `target="_blank"` domyślnie `noopener noreferrer`. */
|
|
14362
|
+
this.rel = input(/* @ts-ignore */
|
|
14363
|
+
...(ngDevMode ? [undefined, { debugName: "rel" }] : /* istanbul ignore next */ []));
|
|
14196
14364
|
this.content = viewChild.required(TemplateRef, /* @ts-ignore */
|
|
14197
14365
|
...(ngDevMode ? [{ debugName: "content" }] : /* istanbul ignore next */ []));
|
|
14366
|
+
this.iconPaint = computed(() => kptTabIconPaint(this.iconColor()), /* @ts-ignore */
|
|
14367
|
+
...(ngDevMode ? [{ debugName: "iconPaint" }] : /* istanbul ignore next */ []));
|
|
14368
|
+
this.iconEndPaint = computed(() => kptTabIconPaint(this.iconEndColor()), /* @ts-ignore */
|
|
14369
|
+
...(ngDevMode ? [{ debugName: "iconEndPaint" }] : /* istanbul ignore next */ []));
|
|
14370
|
+
/** `target="_blank"` bez `rel` to wektor na `window.opener` - dokładamy domyślne. */
|
|
14371
|
+
this.effectiveRel = computed(() => this.rel() ?? (this.target() === '_blank' ? 'noopener noreferrer' : null), /* @ts-ignore */
|
|
14372
|
+
...(ngDevMode ? [{ debugName: "effectiveRel" }] : /* istanbul ignore next */ []));
|
|
14198
14373
|
}
|
|
14199
14374
|
static { this.ɵfac = function KptTab_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || KptTab)(); }; }
|
|
14200
14375
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: KptTab, selectors: [["kpt-tab"]], viewQuery: function KptTab_Query(rf, ctx) { if (rf & 1) {
|
|
14201
14376
|
i0.ɵɵviewQuerySignal(ctx.content, TemplateRef, 5);
|
|
14202
14377
|
} if (rf & 2) {
|
|
14203
14378
|
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) {
|
|
14379
|
+
} }, 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
14380
|
i0.ɵɵprojectionDef();
|
|
14206
14381
|
i0.ɵɵdomTemplate(0, KptTab_ng_template_0_Template, 1, 0, "ng-template");
|
|
14207
14382
|
} }, encapsulation: 2 }); }
|
|
@@ -14213,36 +14388,108 @@ class KptTab {
|
|
|
14213
14388
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
14214
14389
|
template: `<ng-template><ng-content /></ng-template>`,
|
|
14215
14390
|
}]
|
|
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:
|
|
14391
|
+
}], 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 }] }] }); })();
|
|
14392
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(KptTab, { className: "KptTab", filePath: "lib/tabs/tab.component.ts", lineNumber: 40 }); })();
|
|
14218
14393
|
|
|
14219
14394
|
const _c0$m = ["tabBtn"];
|
|
14395
|
+
const _c1$f = a0 => ({ $implicit: a0 });
|
|
14220
14396
|
function _forTrack0$4($index, $item) { /* @ts-ignore */
|
|
14221
14397
|
return this.tabStop(); }
|
|
14222
|
-
function
|
|
14223
|
-
|
|
14224
|
-
|
|
14225
|
-
|
|
14226
|
-
i0.ɵɵ
|
|
14398
|
+
function KptTabs_ng_template_0_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
14399
|
+
i0.ɵɵelement(0, "kpt-icon", 10);
|
|
14400
|
+
} if (rf & 2) {
|
|
14401
|
+
const tab_r1 = i0.ɵɵnextContext().$implicit;
|
|
14402
|
+
i0.ɵɵstyleProp("color", tab_r1.iconPaint().css);
|
|
14403
|
+
i0.ɵɵproperty("name", ctx);
|
|
14404
|
+
i0.ɵɵattribute("data-color", tab_r1.iconPaint().tone);
|
|
14405
|
+
} }
|
|
14406
|
+
function KptTabs_ng_template_0_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
14407
|
+
i0.ɵɵelement(0, "kpt-icon", 10);
|
|
14408
|
+
} if (rf & 2) {
|
|
14409
|
+
const tab_r1 = i0.ɵɵnextContext().$implicit;
|
|
14410
|
+
i0.ɵɵstyleProp("color", tab_r1.iconEndPaint().css);
|
|
14411
|
+
i0.ɵɵproperty("name", ctx);
|
|
14412
|
+
i0.ɵɵattribute("data-color", tab_r1.iconEndPaint().tone);
|
|
14413
|
+
} }
|
|
14414
|
+
function KptTabs_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
14415
|
+
i0.ɵɵconditionalCreate(0, KptTabs_ng_template_0_Conditional_0_Template, 1, 4, "kpt-icon", 9);
|
|
14416
|
+
i0.ɵɵtext(1);
|
|
14417
|
+
i0.ɵɵconditionalCreate(2, KptTabs_ng_template_0_Conditional_2_Template, 1, 4, "kpt-icon", 9);
|
|
14418
|
+
} if (rf & 2) {
|
|
14419
|
+
let tmp_3_0;
|
|
14420
|
+
let tmp_5_0;
|
|
14421
|
+
const tab_r1 = ctx.$implicit;
|
|
14422
|
+
i0.ɵɵconditional((tmp_3_0 = tab_r1.icon()) ? 0 : -1, tmp_3_0);
|
|
14423
|
+
i0.ɵɵadvance();
|
|
14424
|
+
i0.ɵɵtextInterpolate1(" ", tab_r1.label(), " ");
|
|
14425
|
+
i0.ɵɵadvance();
|
|
14426
|
+
i0.ɵɵconditional((tmp_5_0 = tab_r1.iconEnd()) ? 2 : -1, tmp_5_0);
|
|
14427
|
+
} }
|
|
14428
|
+
function KptTabs_For_5_Template(rf, ctx) { if (rf & 1) {
|
|
14429
|
+
const _r2 = i0.ɵɵgetCurrentView();
|
|
14430
|
+
i0.ɵɵelementStart(0, "button", 11, 1);
|
|
14431
|
+
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)); });
|
|
14432
|
+
i0.ɵɵelementContainer(2, 12);
|
|
14227
14433
|
i0.ɵɵelementEnd();
|
|
14228
14434
|
} if (rf & 2) {
|
|
14229
|
-
const
|
|
14230
|
-
const ɵ$
|
|
14231
|
-
const
|
|
14232
|
-
|
|
14233
|
-
i0.ɵɵ
|
|
14234
|
-
i0.ɵɵ
|
|
14435
|
+
const tab_r5 = ctx.$implicit;
|
|
14436
|
+
const ɵ$index_14_r3 = ctx.$index;
|
|
14437
|
+
const ctx_r3 = i0.ɵɵnextContext();
|
|
14438
|
+
const tabInner_r6 = i0.ɵɵreference(1);
|
|
14439
|
+
i0.ɵɵclassProp("is-active", ɵ$index_14_r3 === ctx_r3.tabStop());
|
|
14440
|
+
i0.ɵɵproperty("id", ctx_r3.baseId + "-tab-" + ɵ$index_14_r3)("disabled", tab_r5.disabled());
|
|
14441
|
+
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
14442
|
i0.ɵɵadvance(2);
|
|
14236
|
-
i0.ɵɵ
|
|
14443
|
+
i0.ɵɵproperty("ngTemplateOutlet", tabInner_r6)("ngTemplateOutletContext", i0.ɵɵpureFunction1(9, _c1$f, tab_r5));
|
|
14237
14444
|
} }
|
|
14238
|
-
function
|
|
14239
|
-
i0.ɵɵelementStart(0, "
|
|
14240
|
-
i0.ɵɵelementContainer(1,
|
|
14445
|
+
function KptTabs_Conditional_7_For_2_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
14446
|
+
i0.ɵɵelementStart(0, "span", 13);
|
|
14447
|
+
i0.ɵɵelementContainer(1, 12);
|
|
14241
14448
|
i0.ɵɵelementEnd();
|
|
14242
14449
|
} if (rf & 2) {
|
|
14243
|
-
const
|
|
14450
|
+
const link_r7 = i0.ɵɵnextContext().$implicit;
|
|
14451
|
+
i0.ɵɵnextContext(2);
|
|
14452
|
+
const tabInner_r6 = i0.ɵɵreference(1);
|
|
14453
|
+
i0.ɵɵadvance();
|
|
14454
|
+
i0.ɵɵproperty("ngTemplateOutlet", tabInner_r6)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c1$f, link_r7));
|
|
14455
|
+
} }
|
|
14456
|
+
function KptTabs_Conditional_7_For_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
14457
|
+
const _r8 = i0.ɵɵgetCurrentView();
|
|
14458
|
+
i0.ɵɵelementStart(0, "a", 15);
|
|
14459
|
+
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)); });
|
|
14460
|
+
i0.ɵɵelementContainer(1, 12);
|
|
14461
|
+
i0.ɵɵelementEnd();
|
|
14462
|
+
} if (rf & 2) {
|
|
14463
|
+
const link_r7 = i0.ɵɵnextContext().$implicit;
|
|
14464
|
+
i0.ɵɵnextContext(2);
|
|
14465
|
+
const tabInner_r6 = i0.ɵɵreference(1);
|
|
14466
|
+
i0.ɵɵattribute("href", link_r7.href(), i0.ɵɵsanitizeUrl)("target", link_r7.target())("rel", link_r7.effectiveRel());
|
|
14244
14467
|
i0.ɵɵadvance();
|
|
14245
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
14468
|
+
i0.ɵɵproperty("ngTemplateOutlet", tabInner_r6)("ngTemplateOutletContext", i0.ɵɵpureFunction1(5, _c1$f, link_r7));
|
|
14469
|
+
} }
|
|
14470
|
+
function KptTabs_Conditional_7_For_2_Template(rf, ctx) { if (rf & 1) {
|
|
14471
|
+
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);
|
|
14472
|
+
} if (rf & 2) {
|
|
14473
|
+
const link_r7 = ctx.$implicit;
|
|
14474
|
+
i0.ɵɵconditional(link_r7.disabled() ? 0 : 1);
|
|
14475
|
+
} }
|
|
14476
|
+
function KptTabs_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
14477
|
+
i0.ɵɵelementStart(0, "div", 6);
|
|
14478
|
+
i0.ɵɵrepeaterCreate(1, KptTabs_Conditional_7_For_2_Template, 2, 1, null, null, i0.ɵɵrepeaterTrackByIndex);
|
|
14479
|
+
i0.ɵɵelementEnd();
|
|
14480
|
+
} if (rf & 2) {
|
|
14481
|
+
const ctx_r3 = i0.ɵɵnextContext();
|
|
14482
|
+
i0.ɵɵadvance();
|
|
14483
|
+
i0.ɵɵrepeater(ctx_r3.linkTabs());
|
|
14484
|
+
} }
|
|
14485
|
+
function KptTabs_For_10_Template(rf, ctx) { if (rf & 1) {
|
|
14486
|
+
i0.ɵɵelementStart(0, "div", 8);
|
|
14487
|
+
i0.ɵɵelementContainer(1, 16);
|
|
14488
|
+
i0.ɵɵelementEnd();
|
|
14489
|
+
} if (rf & 2) {
|
|
14490
|
+
const tab_r9 = ctx.$implicit;
|
|
14491
|
+
i0.ɵɵadvance();
|
|
14492
|
+
i0.ɵɵproperty("ngTemplateOutlet", tab_r9.content());
|
|
14246
14493
|
} }
|
|
14247
14494
|
let nextId$e = 0;
|
|
14248
14495
|
/**
|
|
@@ -14250,23 +14497,36 @@ let nextId$e = 0;
|
|
|
14250
14497
|
*
|
|
14251
14498
|
* Klawiatura według wzorca WAI-ARIA "tabs": rząd zakładek to jeden przystanek Tab, strzałki
|
|
14252
14499
|
* 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.
|
|
14500
|
+
* aktywują, a kolejny `Tab` prowadzi do odnośników (jeśli są) i dalej do panelu.
|
|
14501
|
+
*
|
|
14502
|
+
* Zakładka z `href` jest odnośnikiem: stoi za zakładkami, poza `tablist`, nie ma panelu i nie
|
|
14503
|
+
* liczy się do `activeIndex`.
|
|
14254
14504
|
*
|
|
14255
14505
|
* @example
|
|
14256
14506
|
* <kpt-tabs [(activeIndex)]="tab">
|
|
14257
14507
|
* <kpt-tab label="Ogólne">...</kpt-tab>
|
|
14258
|
-
* <kpt-tab label="Zaawansowane">...</kpt-tab>
|
|
14508
|
+
* <kpt-tab label="Zaawansowane" iconEnd="settings">...</kpt-tab>
|
|
14259
14509
|
* </kpt-tabs>
|
|
14260
14510
|
*/
|
|
14261
14511
|
class KptTabs {
|
|
14262
14512
|
constructor() {
|
|
14263
14513
|
this.tabs = contentChildren(KptTab, /* @ts-ignore */
|
|
14264
14514
|
...(ngDevMode ? [{ debugName: "tabs" }] : /* istanbul ignore next */ []));
|
|
14515
|
+
/** Indeks wśród zakładek z panelem - odnośniki (`href`) się nie liczą. */
|
|
14265
14516
|
this.activeIndex = model(0, /* @ts-ignore */
|
|
14266
14517
|
...(ngDevMode ? [{ debugName: "activeIndex" }] : /* istanbul ignore next */ []));
|
|
14267
14518
|
this.animated = input(true, { ...(ngDevMode ? { debugName: "animated" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
14268
14519
|
this.animationDuration = input(500, /* @ts-ignore */
|
|
14269
14520
|
...(ngDevMode ? [{ debugName: "animationDuration" }] : /* istanbul ignore next */ []));
|
|
14521
|
+
/**
|
|
14522
|
+
* Zwykły klik w zakładkę-odnośnik bez `target`. Aplikacja z routerem woła
|
|
14523
|
+
* `event.preventDefault()` i nawiguje sama, bez przeładowania strony.
|
|
14524
|
+
*/
|
|
14525
|
+
this.navigate = output();
|
|
14526
|
+
this.panelTabs = computed(() => this.tabs().filter((t) => !t.href()), /* @ts-ignore */
|
|
14527
|
+
...(ngDevMode ? [{ debugName: "panelTabs" }] : /* istanbul ignore next */ []));
|
|
14528
|
+
this.linkTabs = computed(() => this.tabs().filter((t) => !!t.href()), /* @ts-ignore */
|
|
14529
|
+
...(ngDevMode ? [{ debugName: "linkTabs" }] : /* istanbul ignore next */ []));
|
|
14270
14530
|
this.tabBtns = viewChildren('tabBtn', /* @ts-ignore */
|
|
14271
14531
|
...(ngDevMode ? [{ debugName: "tabBtns" }] : /* istanbul ignore next */ []));
|
|
14272
14532
|
this.inkX = signal(0, /* @ts-ignore */
|
|
@@ -14277,7 +14537,7 @@ class KptTabs {
|
|
|
14277
14537
|
...(ngDevMode ? [{ debugName: "direction" }] : /* istanbul ignore next */ []));
|
|
14278
14538
|
this.baseId = `kpt-tabs-${(nextId$e += 1)}`;
|
|
14279
14539
|
/** Disabled każdej zakładki - wejście dla nawigacji strzałkami. */
|
|
14280
|
-
this.disabledMap = computed(() => this.
|
|
14540
|
+
this.disabledMap = computed(() => this.panelTabs().map((t) => t.disabled()), /* @ts-ignore */
|
|
14281
14541
|
...(ngDevMode ? [{ debugName: "disabledMap" }] : /* istanbul ignore next */ []));
|
|
14282
14542
|
/**
|
|
14283
14543
|
* Zakładka pokazywana i jedyna w kolejności Tab: aktywna, a gdy ta jest wyłączona - pierwsza
|
|
@@ -14285,7 +14545,7 @@ class KptTabs {
|
|
|
14285
14545
|
*/
|
|
14286
14546
|
this.tabStop = computed(() => rovingStop(this.disabledMap(), this.activeIndex()), /* @ts-ignore */
|
|
14287
14547
|
...(ngDevMode ? [{ debugName: "tabStop" }] : /* istanbul ignore next */ []));
|
|
14288
|
-
this.activeTab = computed(() => this.
|
|
14548
|
+
this.activeTab = computed(() => this.panelTabs()[this.tabStop()], /* @ts-ignore */
|
|
14289
14549
|
...(ngDevMode ? [{ debugName: "activeTab" }] : /* istanbul ignore next */ []));
|
|
14290
14550
|
this.activePanels = computed(() => {
|
|
14291
14551
|
const tab = this.activeTab();
|
|
@@ -14323,8 +14583,13 @@ class KptTabs {
|
|
|
14323
14583
|
this.select(next);
|
|
14324
14584
|
btns[next]?.nativeElement.focus();
|
|
14325
14585
|
}
|
|
14586
|
+
onLink(event, link) {
|
|
14587
|
+
const url = link.href();
|
|
14588
|
+
if (url && kptIsPlainClick(event, link.target() ?? ''))
|
|
14589
|
+
this.navigate.emit({ item: link, url, event });
|
|
14590
|
+
}
|
|
14326
14591
|
select(index) {
|
|
14327
|
-
if (this.
|
|
14592
|
+
if (this.panelTabs()[index]?.disabled())
|
|
14328
14593
|
return;
|
|
14329
14594
|
this.direction.set(index >= this.tabStop() ? 1 : -1);
|
|
14330
14595
|
this.activeIndex.set(index);
|
|
@@ -14340,48 +14605,96 @@ class KptTabs {
|
|
|
14340
14605
|
i0.ɵɵqueryAdvance();
|
|
14341
14606
|
} }, hostAttrs: [1, "kpt-tabs-host"], hostVars: 4, hostBindings: function KptTabs_HostBindings(rf, ctx) { if (rf & 2) {
|
|
14342
14607
|
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:
|
|
14344
|
-
i0.ɵɵ
|
|
14345
|
-
i0.ɵɵ
|
|
14346
|
-
i0.ɵɵ
|
|
14347
|
-
i0.ɵɵ
|
|
14608
|
+
} }, 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) {
|
|
14609
|
+
i0.ɵɵtemplate(0, KptTabs_ng_template_0_Template, 3, 3, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
14610
|
+
i0.ɵɵelementStart(2, "div", 2)(3, "div", 3);
|
|
14611
|
+
i0.ɵɵlistener("keydown", function KptTabs_Template_div_keydown_3_listener($event) { return ctx.onKeydown($event); });
|
|
14612
|
+
i0.ɵɵrepeaterCreate(4, KptTabs_For_5_Template, 3, 11, "button", 4, i0.ɵɵrepeaterTrackByIndex);
|
|
14613
|
+
i0.ɵɵelement(6, "span", 5);
|
|
14348
14614
|
i0.ɵɵelementEnd();
|
|
14349
|
-
i0.ɵɵ
|
|
14350
|
-
i0.ɵɵ
|
|
14615
|
+
i0.ɵɵconditionalCreate(7, KptTabs_Conditional_7_Template, 3, 0, "div", 6);
|
|
14616
|
+
i0.ɵɵelementEnd();
|
|
14617
|
+
i0.ɵɵelementStart(8, "div", 7);
|
|
14618
|
+
i0.ɵɵrepeaterCreate(9, KptTabs_For_10_Template, 2, 1, "div", 8, _forTrack0$4, true);
|
|
14351
14619
|
i0.ɵɵelementEnd();
|
|
14352
14620
|
} if (rf & 2) {
|
|
14353
|
-
i0.ɵɵadvance();
|
|
14354
|
-
i0.ɵɵrepeater(ctx.
|
|
14621
|
+
i0.ɵɵadvance(4);
|
|
14622
|
+
i0.ɵɵrepeater(ctx.panelTabs());
|
|
14355
14623
|
i0.ɵɵadvance(2);
|
|
14356
14624
|
i0.ɵɵstyleProp("width", ctx.inkW(), "px")("transform", "translateX(" + ctx.inkX() + "px)");
|
|
14357
14625
|
i0.ɵɵadvance();
|
|
14626
|
+
i0.ɵɵconditional(ctx.linkTabs().length ? 7 : -1);
|
|
14627
|
+
i0.ɵɵadvance();
|
|
14358
14628
|
i0.ɵɵproperty("id", ctx.baseId + "-panel");
|
|
14359
14629
|
i0.ɵɵattribute("aria-labelledby", ctx.baseId + "-tab-" + ctx.tabStop());
|
|
14360
14630
|
i0.ɵɵadvance();
|
|
14361
14631
|
i0.ɵɵrepeater(ctx.activePanels());
|
|
14362
|
-
} }, dependencies: [NgTemplateOutlet], styles: ["@layer kpt.components{.kpt-tabs-host{display:block}.kpt-tabs__header{
|
|
14632
|
+
} }, 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
14633
|
}
|
|
14364
14634
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(KptTabs, [{
|
|
14365
14635
|
type: Component,
|
|
14366
|
-
args: [{ selector: 'kpt-tabs', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [NgTemplateOutlet], template: `
|
|
14367
|
-
|
|
14368
|
-
|
|
14369
|
-
|
|
14370
|
-
|
|
14371
|
-
|
|
14372
|
-
|
|
14373
|
-
|
|
14374
|
-
|
|
14375
|
-
|
|
14376
|
-
|
|
14377
|
-
|
|
14378
|
-
|
|
14379
|
-
|
|
14380
|
-
|
|
14381
|
-
|
|
14382
|
-
|
|
14636
|
+
args: [{ selector: 'kpt-tabs', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [NgTemplateOutlet, KptIcon], template: `
|
|
14637
|
+
<ng-template #tabInner let-tab>
|
|
14638
|
+
@if (tab.icon(); as name) {
|
|
14639
|
+
<kpt-icon class="kpt-tabs__icon" [name]="name" [attr.data-color]="tab.iconPaint().tone" [style.color]="tab.iconPaint().css" />
|
|
14640
|
+
}
|
|
14641
|
+
{{ tab.label() }}
|
|
14642
|
+
@if (tab.iconEnd(); as name) {
|
|
14643
|
+
<kpt-icon class="kpt-tabs__icon" [name]="name" [attr.data-color]="tab.iconEndPaint().tone" [style.color]="tab.iconEndPaint().css" />
|
|
14644
|
+
}
|
|
14645
|
+
</ng-template>
|
|
14646
|
+
|
|
14647
|
+
<!--
|
|
14648
|
+
Odnośniki stoją za listą, nie w niej: \`tablist\` może zawierać wyłącznie zakładki, a odnośnik
|
|
14649
|
+
ogłoszony jako zakładka obiecywałby panel, którego nie ma.
|
|
14650
|
+
-->
|
|
14651
|
+
<div class="kpt-tabs__header">
|
|
14652
|
+
<!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -- fokus niosą pozycje (roving tabindex), kontener tylko deleguje strzałki -->
|
|
14653
|
+
<div class="kpt-tabs__list" role="tablist" (keydown)="onKeydown($event)">
|
|
14654
|
+
@for (tab of panelTabs(); track $index; let i = $index) {
|
|
14655
|
+
<button
|
|
14656
|
+
#tabBtn
|
|
14657
|
+
type="button"
|
|
14658
|
+
class="kpt-tabs__tab"
|
|
14659
|
+
role="tab"
|
|
14660
|
+
[id]="baseId + '-tab-' + i"
|
|
14661
|
+
[class.is-active]="i === tabStop()"
|
|
14662
|
+
[disabled]="tab.disabled()"
|
|
14663
|
+
[attr.aria-selected]="i === tabStop()"
|
|
14664
|
+
[attr.aria-controls]="i === tabStop() ? baseId + '-panel' : null"
|
|
14665
|
+
[attr.tabindex]="i === tabStop() ? 0 : -1"
|
|
14666
|
+
(click)="select(i)"
|
|
14667
|
+
>
|
|
14668
|
+
<ng-container [ngTemplateOutlet]="tabInner" [ngTemplateOutletContext]="{ $implicit: tab }" />
|
|
14669
|
+
</button>
|
|
14670
|
+
}
|
|
14671
|
+
<span class="kpt-tabs__ink" [style.width.px]="inkW()" [style.transform]="'translateX(' + inkX() + 'px)'"></span>
|
|
14672
|
+
</div>
|
|
14673
|
+
@if (linkTabs().length) {
|
|
14674
|
+
<div class="kpt-tabs__links">
|
|
14675
|
+
@for (link of linkTabs(); track $index) {
|
|
14676
|
+
<!--
|
|
14677
|
+
Wyłączony odnośnik nie jest \`<a>\` - z \`href\` dałoby się go otworzyć klawiaturą albo
|
|
14678
|
+
środkowym przyciskiem, a \`<a>\` bez \`href\` i tak nie jest już odnośnikiem.
|
|
14679
|
+
-->
|
|
14680
|
+
@if (link.disabled()) {
|
|
14681
|
+
<span class="kpt-tabs__tab kpt-tabs__link" role="link" aria-disabled="true">
|
|
14682
|
+
<ng-container [ngTemplateOutlet]="tabInner" [ngTemplateOutletContext]="{ $implicit: link }" />
|
|
14683
|
+
</span>
|
|
14684
|
+
} @else {
|
|
14685
|
+
<a
|
|
14686
|
+
class="kpt-tabs__tab kpt-tabs__link"
|
|
14687
|
+
[attr.href]="link.href()"
|
|
14688
|
+
[attr.target]="link.target()"
|
|
14689
|
+
[attr.rel]="link.effectiveRel()"
|
|
14690
|
+
(click)="onLink($event, link)"
|
|
14691
|
+
>
|
|
14692
|
+
<ng-container [ngTemplateOutlet]="tabInner" [ngTemplateOutletContext]="{ $implicit: link }" />
|
|
14693
|
+
</a>
|
|
14694
|
+
}
|
|
14695
|
+
}
|
|
14696
|
+
</div>
|
|
14383
14697
|
}
|
|
14384
|
-
<span class="kpt-tabs__ink" [style.width.px]="inkW()" [style.transform]="'translateX(' + inkX() + 'px)'"></span>
|
|
14385
14698
|
</div>
|
|
14386
14699
|
<div
|
|
14387
14700
|
class="kpt-tabs__body"
|
|
@@ -14398,9 +14711,9 @@ class KptTabs {
|
|
|
14398
14711
|
'class': 'kpt-tabs-host',
|
|
14399
14712
|
'[style.--kpt-anim-duration]': "(animated() ? animationDuration() : 0) + 'ms'",
|
|
14400
14713
|
'[style.--kpt-anim-dir]': 'direction()',
|
|
14401
|
-
}, styles: ["@layer kpt.components{.kpt-tabs-host{display:block}.kpt-tabs__header{
|
|
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:
|
|
14714
|
+
}, 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"] }]
|
|
14715
|
+
}], () => [], { 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 }] }] }); })();
|
|
14716
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(KptTabs, { className: "KptTabs", filePath: "lib/tabs/tabs.component.ts", lineNumber: 130 }); })();
|
|
14404
14717
|
|
|
14405
14718
|
const _c0$l = ["*"];
|
|
14406
14719
|
let nextId$d = 0;
|
|
@@ -14566,16 +14879,6 @@ class KptAccordion {
|
|
|
14566
14879
|
}], 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
14880
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(KptAccordion, { className: "KptAccordion", filePath: "lib/accordion/accordion.component.ts", lineNumber: 23 }); })();
|
|
14568
14881
|
|
|
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
14882
|
const _forTrack0$3 = ($index, $item) => $item.url ?? $item.label;
|
|
14580
14883
|
function KptBreadcrumb_For_3_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
14581
14884
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
@@ -15119,25 +15422,23 @@ class KptRowDetailDef {
|
|
|
15119
15422
|
|
|
15120
15423
|
const _c0$h = ["scrollEl"];
|
|
15121
15424
|
const _c1$e = ["theadEl"];
|
|
15122
|
-
const _c2$
|
|
15123
|
-
const _c3$
|
|
15124
|
-
const _c4 = ["[kptPaginatorActions]"];
|
|
15125
|
-
const _c5 =
|
|
15425
|
+
const _c2$9 = ["editorHost"];
|
|
15426
|
+
const _c3$2 = [[["", "kptPaginatorActions", ""]]];
|
|
15427
|
+
const _c4$1 = ["[kptPaginatorActions]"];
|
|
15428
|
+
const _c5$1 = a0 => ({ $implicit: a0 });
|
|
15126
15429
|
const _c6 = a0 => ({ column: a0 });
|
|
15127
|
-
const _c7 = () => ({ $implicit:
|
|
15128
|
-
const _c8 =
|
|
15129
|
-
const _c9 = a0 => ({ $implicit: a0,
|
|
15130
|
-
const _c10 = (
|
|
15131
|
-
const _c11 = () =>
|
|
15132
|
-
const _c12 = (
|
|
15133
|
-
const _c13 = a0 => ({ $implicit: a0 });
|
|
15134
|
-
const _c14 = () => ({ start: "", end: "" });
|
|
15430
|
+
const _c7 = (a0, a1) => ({ $implicit: a0, rowIndex: a1 });
|
|
15431
|
+
const _c8 = a0 => ({ $implicit: a0, rowIndex: null });
|
|
15432
|
+
const _c9 = (a0, a1, a2, a3) => ({ $implicit: a0, row: a1, commit: a2, cancel: a3 });
|
|
15433
|
+
const _c10 = () => [];
|
|
15434
|
+
const _c11 = (a0, a1) => ({ $implicit: a0, value: a1 });
|
|
15435
|
+
const _c12 = () => ({ start: "", end: "" });
|
|
15135
15436
|
const _forTrack0$1 = ($index, $item) => $item.key;
|
|
15136
15437
|
const _forTrack1$1 = ($index, $item) => $item.field;
|
|
15137
15438
|
function _forTrack2($index, $item) { /* @ts-ignore */
|
|
15138
15439
|
return this.trackRow($item); }
|
|
15139
15440
|
function KptDataTable_Conditional_0_Conditional_1_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
15140
|
-
i0.ɵɵelement(0, "kpt-speech-button",
|
|
15441
|
+
i0.ɵɵelement(0, "kpt-speech-button", 20);
|
|
15141
15442
|
} if (rf & 2) {
|
|
15142
15443
|
i0.ɵɵnextContext();
|
|
15143
15444
|
const filterEl_r3 = i0.ɵɵreference(2);
|
|
@@ -15146,10 +15447,10 @@ function KptDataTable_Conditional_0_Conditional_1_Conditional_3_Template(rf, ctx
|
|
|
15146
15447
|
} }
|
|
15147
15448
|
function KptDataTable_Conditional_0_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
15148
15449
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
15149
|
-
i0.ɵɵelementStart(0, "div",
|
|
15450
|
+
i0.ɵɵelementStart(0, "div", 17)(1, "input", 19, 4);
|
|
15150
15451
|
i0.ɵɵlistener("input", function KptDataTable_Conditional_0_Conditional_1_Template_input_input_1_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onFilter($event)); });
|
|
15151
15452
|
i0.ɵɵelementEnd();
|
|
15152
|
-
i0.ɵɵconditionalCreate(3, KptDataTable_Conditional_0_Conditional_1_Conditional_3_Template, 1, 4, "kpt-speech-button",
|
|
15453
|
+
i0.ɵɵconditionalCreate(3, KptDataTable_Conditional_0_Conditional_1_Conditional_3_Template, 1, 4, "kpt-speech-button", 20);
|
|
15153
15454
|
i0.ɵɵelementEnd();
|
|
15154
15455
|
} if (rf & 2) {
|
|
15155
15456
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
@@ -15162,7 +15463,7 @@ function KptDataTable_Conditional_0_Conditional_1_Template(rf, ctx) { if (rf & 1
|
|
|
15162
15463
|
} }
|
|
15163
15464
|
function KptDataTable_Conditional_0_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
15164
15465
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
15165
|
-
i0.ɵɵelementStart(0, "kpt-button",
|
|
15466
|
+
i0.ɵɵelementStart(0, "kpt-button", 21);
|
|
15166
15467
|
i0.ɵɵlistener("click", function KptDataTable_Conditional_0_Conditional_2_Template_kpt_button_click_0_listener() { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.exportCsv()); });
|
|
15167
15468
|
i0.ɵɵtext(1);
|
|
15168
15469
|
i0.ɵɵelementEnd();
|
|
@@ -15173,8 +15474,8 @@ function KptDataTable_Conditional_0_Conditional_2_Template(rf, ctx) { if (rf & 1
|
|
|
15173
15474
|
} }
|
|
15174
15475
|
function KptDataTable_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
15175
15476
|
i0.ɵɵelementStart(0, "div", 6);
|
|
15176
|
-
i0.ɵɵconditionalCreate(1, KptDataTable_Conditional_0_Conditional_1_Template, 4, 5, "div",
|
|
15177
|
-
i0.ɵɵconditionalCreate(2, KptDataTable_Conditional_0_Conditional_2_Template, 2, 1, "kpt-button",
|
|
15477
|
+
i0.ɵɵconditionalCreate(1, KptDataTable_Conditional_0_Conditional_1_Template, 4, 5, "div", 17);
|
|
15478
|
+
i0.ɵɵconditionalCreate(2, KptDataTable_Conditional_0_Conditional_2_Template, 2, 1, "kpt-button", 18);
|
|
15178
15479
|
i0.ɵɵelementEnd();
|
|
15179
15480
|
} if (rf & 2) {
|
|
15180
15481
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -15184,7 +15485,7 @@ function KptDataTable_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
15184
15485
|
i0.ɵɵconditional(ctx_r1.exportable() ? 2 : -1);
|
|
15185
15486
|
} }
|
|
15186
15487
|
function KptDataTable_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
15187
|
-
i0.ɵɵelementStart(0, "caption", 9)(1, "span",
|
|
15488
|
+
i0.ɵɵelementStart(0, "caption", 9)(1, "span", 22);
|
|
15188
15489
|
i0.ɵɵtext(2);
|
|
15189
15490
|
i0.ɵɵelementEnd()();
|
|
15190
15491
|
} if (rf & 2) {
|
|
@@ -15193,10 +15494,10 @@ function KptDataTable_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
15193
15494
|
i0.ɵɵtextInterpolate(ctx_r1.caption());
|
|
15194
15495
|
} }
|
|
15195
15496
|
function KptDataTable_Conditional_5_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
15196
|
-
i0.ɵɵelement(0, "col",
|
|
15497
|
+
i0.ɵɵelement(0, "col", 23);
|
|
15197
15498
|
} }
|
|
15198
15499
|
function KptDataTable_Conditional_5_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
15199
|
-
i0.ɵɵelement(0, "col",
|
|
15500
|
+
i0.ɵɵelement(0, "col", 24);
|
|
15200
15501
|
} }
|
|
15201
15502
|
function KptDataTable_Conditional_5_For_4_Template(rf, ctx) { if (rf & 1) {
|
|
15202
15503
|
i0.ɵɵelement(0, "col");
|
|
@@ -15206,9 +15507,9 @@ function KptDataTable_Conditional_5_For_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
15206
15507
|
} }
|
|
15207
15508
|
function KptDataTable_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
15208
15509
|
i0.ɵɵelementStart(0, "colgroup");
|
|
15209
|
-
i0.ɵɵconditionalCreate(1, KptDataTable_Conditional_5_Conditional_1_Template, 1, 0, "col",
|
|
15210
|
-
i0.ɵɵconditionalCreate(2, KptDataTable_Conditional_5_Conditional_2_Template, 1, 0, "col",
|
|
15211
|
-
i0.ɵɵrepeaterCreate(3, KptDataTable_Conditional_5_For_4_Template, 1, 2, "col",
|
|
15510
|
+
i0.ɵɵconditionalCreate(1, KptDataTable_Conditional_5_Conditional_1_Template, 1, 0, "col", 23);
|
|
15511
|
+
i0.ɵɵconditionalCreate(2, KptDataTable_Conditional_5_Conditional_2_Template, 1, 0, "col", 24);
|
|
15512
|
+
i0.ɵɵrepeaterCreate(3, KptDataTable_Conditional_5_For_4_Template, 1, 2, "col", 25, _forTrack0$1);
|
|
15212
15513
|
i0.ɵɵelementEnd();
|
|
15213
15514
|
} if (rf & 2) {
|
|
15214
15515
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -15219,24 +15520,78 @@ function KptDataTable_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
15219
15520
|
i0.ɵɵadvance();
|
|
15220
15521
|
i0.ɵɵrepeater(ctx_r1.slots());
|
|
15221
15522
|
} }
|
|
15523
|
+
function KptDataTable_Conditional_8_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
15524
|
+
i0.ɵɵelement(0, "th", 26);
|
|
15525
|
+
} if (rf & 2) {
|
|
15526
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
15527
|
+
i0.ɵɵstyleProp("left", ctx_r1.expanderStickyLeft(), "px");
|
|
15528
|
+
i0.ɵɵclassProp("kpt-data-table__cell--frozen", ctx_r1.hasFrozen());
|
|
15529
|
+
} }
|
|
15530
|
+
function KptDataTable_Conditional_8_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
15531
|
+
i0.ɵɵelement(0, "th", 27);
|
|
15532
|
+
} if (rf & 2) {
|
|
15533
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
15534
|
+
i0.ɵɵstyleProp("left", ctx_r1.checkboxStickyLeft(), "px");
|
|
15535
|
+
i0.ɵɵclassProp("kpt-data-table__cell--frozen", ctx_r1.hasFrozen());
|
|
15536
|
+
} }
|
|
15537
|
+
function KptDataTable_Conditional_8_For_4_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
15538
|
+
i0.ɵɵelement(0, "td", 28);
|
|
15539
|
+
} if (rf & 2) {
|
|
15540
|
+
const cell_r6 = i0.ɵɵnextContext().$implicit;
|
|
15541
|
+
i0.ɵɵattribute("colspan", cell_r6.span);
|
|
15542
|
+
} }
|
|
15543
|
+
function KptDataTable_Conditional_8_For_4_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
15544
|
+
i0.ɵɵelementStart(0, "th", 30);
|
|
15545
|
+
i0.ɵɵtext(1);
|
|
15546
|
+
i0.ɵɵelementEnd();
|
|
15547
|
+
} if (rf & 2) {
|
|
15548
|
+
const cell_r6 = i0.ɵɵnextContext().$implicit;
|
|
15549
|
+
i0.ɵɵstyleProp("left", cell_r6.left, "px");
|
|
15550
|
+
i0.ɵɵclassProp("kpt-data-table__group--empty", !cell_r6.header)("kpt-data-table__cell--frozen", cell_r6.frozen);
|
|
15551
|
+
i0.ɵɵattribute("colspan", cell_r6.span > 1 ? cell_r6.span : null)("scope", cell_r6.header ? "colgroup" : null);
|
|
15552
|
+
i0.ɵɵadvance();
|
|
15553
|
+
i0.ɵɵtextInterpolate1(" ", cell_r6.header, " ");
|
|
15554
|
+
} }
|
|
15555
|
+
function KptDataTable_Conditional_8_For_4_Template(rf, ctx) { if (rf & 1) {
|
|
15556
|
+
i0.ɵɵconditionalCreate(0, KptDataTable_Conditional_8_For_4_Conditional_0_Template, 1, 1, "td", 28)(1, KptDataTable_Conditional_8_For_4_Conditional_1_Template, 2, 9, "th", 29);
|
|
15557
|
+
} if (rf & 2) {
|
|
15558
|
+
const cell_r6 = ctx.$implicit;
|
|
15559
|
+
i0.ɵɵconditional(cell_r6.spacer ? 0 : 1);
|
|
15560
|
+
} }
|
|
15222
15561
|
function KptDataTable_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
15223
|
-
i0.ɵɵ
|
|
15562
|
+
i0.ɵɵelementStart(0, "tr", 10);
|
|
15563
|
+
i0.ɵɵconditionalCreate(1, KptDataTable_Conditional_8_Conditional_1_Template, 1, 4, "th", 12);
|
|
15564
|
+
i0.ɵɵconditionalCreate(2, KptDataTable_Conditional_8_Conditional_2_Template, 1, 4, "th", 13);
|
|
15565
|
+
i0.ɵɵrepeaterCreate(3, KptDataTable_Conditional_8_For_4_Template, 2, 1, null, null, _forTrack0$1);
|
|
15566
|
+
i0.ɵɵelementEnd();
|
|
15224
15567
|
} if (rf & 2) {
|
|
15225
|
-
i0.ɵɵnextContext();
|
|
15226
|
-
|
|
15227
|
-
i0.ɵɵ
|
|
15568
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
15569
|
+
i0.ɵɵattribute("aria-rowindex", ctx_r1.virtualScroll() ? 1 : null);
|
|
15570
|
+
i0.ɵɵadvance();
|
|
15571
|
+
i0.ɵɵconditional(ctx_r1.hasRowDetail() ? 1 : -1);
|
|
15572
|
+
i0.ɵɵadvance();
|
|
15573
|
+
i0.ɵɵconditional(ctx_r1.selectable() !== "none" ? 2 : -1);
|
|
15574
|
+
i0.ɵɵadvance();
|
|
15575
|
+
i0.ɵɵrepeater(ctx_r1.groupCells());
|
|
15576
|
+
} }
|
|
15577
|
+
function KptDataTable_Conditional_9_Template(rf, ctx) { if (rf & 1) {
|
|
15578
|
+
i0.ɵɵelementContainer(0, 11);
|
|
15579
|
+
} if (rf & 2) {
|
|
15580
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
15581
|
+
const filterRowTpl_r7 = i0.ɵɵreference(31);
|
|
15582
|
+
i0.ɵɵproperty("ngTemplateOutlet", filterRowTpl_r7)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c5$1, ctx_r1.groupRows() + 1));
|
|
15228
15583
|
} }
|
|
15229
|
-
function
|
|
15230
|
-
i0.ɵɵelement(0, "th",
|
|
15584
|
+
function KptDataTable_Conditional_11_Template(rf, ctx) { if (rf & 1) {
|
|
15585
|
+
i0.ɵɵelement(0, "th", 26);
|
|
15231
15586
|
} if (rf & 2) {
|
|
15232
15587
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
15233
15588
|
i0.ɵɵstyleProp("left", ctx_r1.expanderStickyLeft(), "px");
|
|
15234
15589
|
i0.ɵɵclassProp("kpt-data-table__cell--frozen", ctx_r1.hasFrozen());
|
|
15235
15590
|
} }
|
|
15236
|
-
function
|
|
15237
|
-
const
|
|
15238
|
-
i0.ɵɵelementStart(0, "th",
|
|
15239
|
-
i0.ɵɵlistener("change", function
|
|
15591
|
+
function KptDataTable_Conditional_12_Template(rf, ctx) { if (rf & 1) {
|
|
15592
|
+
const _r8 = i0.ɵɵgetCurrentView();
|
|
15593
|
+
i0.ɵɵelementStart(0, "th", 27)(1, "input", 31);
|
|
15594
|
+
i0.ɵɵlistener("change", function KptDataTable_Conditional_12_Template_input_change_1_listener() { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.toggleAllOnPage()); });
|
|
15240
15595
|
i0.ɵɵelementEnd()();
|
|
15241
15596
|
} if (rf & 2) {
|
|
15242
15597
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -15246,88 +15601,88 @@ function KptDataTable_Conditional_11_Template(rf, ctx) { if (rf & 1) {
|
|
|
15246
15601
|
i0.ɵɵproperty("checked", ctx_r1.pageAllSelected())("indeterminate", ctx_r1.pageSomeSelected());
|
|
15247
15602
|
i0.ɵɵattribute("aria-label", ctx_r1.i18n.t("dataTable.selectAll"));
|
|
15248
15603
|
} }
|
|
15249
|
-
function
|
|
15250
|
-
i0.ɵɵelement(0, "th",
|
|
15604
|
+
function KptDataTable_Conditional_13_Template(rf, ctx) { if (rf & 1) {
|
|
15605
|
+
i0.ɵɵelement(0, "th", 27);
|
|
15251
15606
|
} if (rf & 2) {
|
|
15252
15607
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
15253
15608
|
i0.ɵɵstyleProp("left", ctx_r1.checkboxStickyLeft(), "px");
|
|
15254
15609
|
i0.ɵɵclassProp("kpt-data-table__cell--frozen", ctx_r1.hasFrozen());
|
|
15255
15610
|
} }
|
|
15256
|
-
function
|
|
15257
|
-
const
|
|
15258
|
-
i0.ɵɵelementStart(0, "button",
|
|
15259
|
-
i0.ɵɵlistener("keydown", function
|
|
15260
|
-
i0.ɵɵelement(1, "kpt-icon",
|
|
15611
|
+
function KptDataTable_For_15_Conditional_0_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
15612
|
+
const _r11 = i0.ɵɵgetCurrentView();
|
|
15613
|
+
i0.ɵɵelementStart(0, "button", 36);
|
|
15614
|
+
i0.ɵɵlistener("keydown", function KptDataTable_For_15_Conditional_0_Conditional_1_Template_button_keydown_0_listener($event) { i0.ɵɵrestoreView(_r11); const m_r10 = i0.ɵɵnextContext(); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onGripKeydown(m_r10.col.field, $event)); });
|
|
15615
|
+
i0.ɵɵelement(1, "kpt-icon", 37);
|
|
15261
15616
|
i0.ɵɵelementEnd();
|
|
15262
15617
|
} if (rf & 2) {
|
|
15263
|
-
const
|
|
15618
|
+
const m_r10 = i0.ɵɵnextContext();
|
|
15264
15619
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
15265
|
-
i0.ɵɵattribute("aria-label", ctx_r1.i18n.t("dataTable.moveColumn", i0.ɵɵpureFunction1(1, _c6,
|
|
15620
|
+
i0.ɵɵattribute("aria-label", ctx_r1.i18n.t("dataTable.moveColumn", i0.ɵɵpureFunction1(1, _c6, m_r10.col.header)));
|
|
15266
15621
|
} }
|
|
15267
|
-
function
|
|
15268
|
-
const
|
|
15269
|
-
i0.ɵɵelementStart(0, "button",
|
|
15270
|
-
i0.ɵɵlistener("click", function
|
|
15622
|
+
function KptDataTable_For_15_Conditional_0_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
15623
|
+
const _r12 = i0.ɵɵgetCurrentView();
|
|
15624
|
+
i0.ɵɵelementStart(0, "button", 38);
|
|
15625
|
+
i0.ɵɵlistener("click", function KptDataTable_For_15_Conditional_0_Conditional_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r12); const m_r10 = i0.ɵɵnextContext(); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.toggleSort(m_r10.col)); });
|
|
15271
15626
|
i0.ɵɵelementStart(1, "span");
|
|
15272
15627
|
i0.ɵɵtext(2);
|
|
15273
15628
|
i0.ɵɵelementEnd();
|
|
15274
|
-
i0.ɵɵelement(3, "kpt-icon",
|
|
15629
|
+
i0.ɵɵelement(3, "kpt-icon", 39);
|
|
15275
15630
|
i0.ɵɵelementEnd();
|
|
15276
15631
|
} if (rf & 2) {
|
|
15277
|
-
const
|
|
15632
|
+
const m_r10 = i0.ɵɵnextContext();
|
|
15278
15633
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
15279
15634
|
i0.ɵɵadvance(2);
|
|
15280
|
-
i0.ɵɵtextInterpolate(
|
|
15635
|
+
i0.ɵɵtextInterpolate(m_r10.col.header);
|
|
15281
15636
|
i0.ɵɵadvance();
|
|
15282
|
-
i0.ɵɵclassProp("kpt-data-table__sort--active", ctx_r1.ariaSort(
|
|
15283
|
-
i0.ɵɵproperty("name", ctx_r1.sortIconName(
|
|
15637
|
+
i0.ɵɵclassProp("kpt-data-table__sort--active", ctx_r1.ariaSort(m_r10.col) !== "none");
|
|
15638
|
+
i0.ɵɵproperty("name", ctx_r1.sortIconName(m_r10.col));
|
|
15284
15639
|
} }
|
|
15285
|
-
function
|
|
15640
|
+
function KptDataTable_For_15_Conditional_0_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
15286
15641
|
i0.ɵɵelementStart(0, "span");
|
|
15287
15642
|
i0.ɵɵtext(1);
|
|
15288
15643
|
i0.ɵɵelementEnd();
|
|
15289
15644
|
} if (rf & 2) {
|
|
15290
|
-
const
|
|
15645
|
+
const m_r10 = i0.ɵɵnextContext();
|
|
15291
15646
|
i0.ɵɵadvance();
|
|
15292
|
-
i0.ɵɵtextInterpolate(
|
|
15647
|
+
i0.ɵɵtextInterpolate(m_r10.col.header);
|
|
15293
15648
|
} }
|
|
15294
|
-
function
|
|
15295
|
-
const
|
|
15296
|
-
i0.ɵɵelementStart(0, "th",
|
|
15297
|
-
i0.ɵɵlistener("dragstart", function
|
|
15298
|
-
i0.ɵɵconditionalCreate(1,
|
|
15299
|
-
i0.ɵɵconditionalCreate(2,
|
|
15649
|
+
function KptDataTable_For_15_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
15650
|
+
const _r9 = i0.ɵɵgetCurrentView();
|
|
15651
|
+
i0.ɵɵelementStart(0, "th", 33);
|
|
15652
|
+
i0.ɵɵlistener("dragstart", function KptDataTable_For_15_Conditional_0_Template_th_dragstart_0_listener($event) { const m_r10 = i0.ɵɵrestoreView(_r9); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onColDragStart(m_r10.col.field, $event)); })("dragover", function KptDataTable_For_15_Conditional_0_Template_th_dragover_0_listener($event) { const m_r10 = i0.ɵɵrestoreView(_r9); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.reorderable() ? ctx_r1.onColDragOver(m_r10.col.field, $event) : null); })("drop", function KptDataTable_For_15_Conditional_0_Template_th_drop_0_listener($event) { const m_r10 = i0.ɵɵrestoreView(_r9); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.reorderable() ? ctx_r1.onColDrop(m_r10.col.field, $event) : null); })("dragend", function KptDataTable_For_15_Conditional_0_Template_th_dragend_0_listener() { i0.ɵɵrestoreView(_r9); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onColDragEnd()); });
|
|
15653
|
+
i0.ɵɵconditionalCreate(1, KptDataTable_For_15_Conditional_0_Conditional_1_Template, 2, 3, "button", 34);
|
|
15654
|
+
i0.ɵɵconditionalCreate(2, KptDataTable_For_15_Conditional_0_Conditional_2_Template, 4, 4, "button", 35)(3, KptDataTable_For_15_Conditional_0_Conditional_3_Template, 2, 1, "span");
|
|
15300
15655
|
i0.ɵɵelementEnd();
|
|
15301
15656
|
} if (rf & 2) {
|
|
15302
|
-
const
|
|
15657
|
+
const m_r10 = ctx;
|
|
15303
15658
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
15304
|
-
i0.ɵɵstyleProp("width", ctx_r1.virtualScroll() ? null :
|
|
15305
|
-
i0.ɵɵclassProp("kpt-data-table__cell--frozen",
|
|
15306
|
-
i0.ɵɵattribute("draggable", ctx_r1.isColDraggable(
|
|
15659
|
+
i0.ɵɵstyleProp("width", ctx_r1.virtualScroll() ? null : m_r10.col.width)("left", m_r10.left, "px");
|
|
15660
|
+
i0.ɵɵclassProp("kpt-data-table__cell--frozen", m_r10.frozen)("kpt-data-table__th--sortable", m_r10.col.sortable)("kpt-data-table__th--draggable", ctx_r1.isColDraggable(m_r10.col))("kpt-data-table__th--dragover", ctx_r1.dragField() !== null && ctx_r1.dragField() !== m_r10.col.field && !m_r10.col.frozen);
|
|
15661
|
+
i0.ɵɵattribute("draggable", ctx_r1.isColDraggable(m_r10.col) ? true : null)("data-align", m_r10.align)("aria-colindex", ctx_r1.colIndex(m_r10))("data-field", m_r10.col.field)("aria-sort", m_r10.col.sortable ? ctx_r1.ariaSort(m_r10.col) : null);
|
|
15307
15662
|
i0.ɵɵadvance();
|
|
15308
|
-
i0.ɵɵconditional(ctx_r1.isColDraggable(
|
|
15663
|
+
i0.ɵɵconditional(ctx_r1.isColDraggable(m_r10.col) ? 1 : -1);
|
|
15309
15664
|
i0.ɵɵadvance();
|
|
15310
|
-
i0.ɵɵconditional(
|
|
15665
|
+
i0.ɵɵconditional(m_r10.col.sortable ? 2 : 3);
|
|
15311
15666
|
} }
|
|
15312
|
-
function
|
|
15313
|
-
i0.ɵɵelement(0, "td",
|
|
15667
|
+
function KptDataTable_For_15_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
15668
|
+
i0.ɵɵelement(0, "td", 28);
|
|
15314
15669
|
} }
|
|
15315
|
-
function
|
|
15316
|
-
i0.ɵɵconditionalCreate(0,
|
|
15670
|
+
function KptDataTable_For_15_Template(rf, ctx) { if (rf & 1) {
|
|
15671
|
+
i0.ɵɵconditionalCreate(0, KptDataTable_For_15_Conditional_0_Template, 4, 19, "th", 32)(1, KptDataTable_For_15_Conditional_1_Template, 1, 0, "td", 28);
|
|
15317
15672
|
} if (rf & 2) {
|
|
15318
15673
|
let tmp_14_0;
|
|
15319
|
-
const
|
|
15320
|
-
i0.ɵɵconditional((tmp_14_0 =
|
|
15674
|
+
const slot_r13 = ctx.$implicit;
|
|
15675
|
+
i0.ɵɵconditional((tmp_14_0 = slot_r13.meta) ? 0 : 1, tmp_14_0);
|
|
15321
15676
|
} }
|
|
15322
|
-
function
|
|
15323
|
-
i0.ɵɵelementContainer(0,
|
|
15677
|
+
function KptDataTable_Conditional_16_Template(rf, ctx) { if (rf & 1) {
|
|
15678
|
+
i0.ɵɵelementContainer(0, 11);
|
|
15324
15679
|
} if (rf & 2) {
|
|
15325
|
-
i0.ɵɵnextContext();
|
|
15326
|
-
const
|
|
15327
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
15680
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
15681
|
+
const filterRowTpl_r7 = i0.ɵɵreference(31);
|
|
15682
|
+
i0.ɵɵproperty("ngTemplateOutlet", filterRowTpl_r7)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c5$1, ctx_r1.groupRows() + 2));
|
|
15328
15683
|
} }
|
|
15329
|
-
function
|
|
15330
|
-
i0.ɵɵelementStart(0, "tr")(1, "td",
|
|
15684
|
+
function KptDataTable_Conditional_18_Template(rf, ctx) { if (rf & 1) {
|
|
15685
|
+
i0.ɵɵelementStart(0, "tr")(1, "td", 40);
|
|
15331
15686
|
i0.ɵɵtext(2);
|
|
15332
15687
|
i0.ɵɵelementEnd()();
|
|
15333
15688
|
} if (rf & 2) {
|
|
@@ -15337,8 +15692,8 @@ function KptDataTable_Conditional_17_Template(rf, ctx) { if (rf & 1) {
|
|
|
15337
15692
|
i0.ɵɵadvance();
|
|
15338
15693
|
i0.ɵɵtextInterpolate(ctx_r1.i18n.t("dataTable.loading"));
|
|
15339
15694
|
} }
|
|
15340
|
-
function
|
|
15341
|
-
i0.ɵɵelementStart(0, "tr")(1, "td",
|
|
15695
|
+
function KptDataTable_Conditional_19_Template(rf, ctx) { if (rf & 1) {
|
|
15696
|
+
i0.ɵɵelementStart(0, "tr")(1, "td", 40);
|
|
15342
15697
|
i0.ɵɵtext(2);
|
|
15343
15698
|
i0.ɵɵelementEnd()();
|
|
15344
15699
|
} if (rf & 2) {
|
|
@@ -15348,8 +15703,8 @@ function KptDataTable_Conditional_18_Template(rf, ctx) { if (rf & 1) {
|
|
|
15348
15703
|
i0.ɵɵadvance();
|
|
15349
15704
|
i0.ɵɵtextInterpolate(ctx_r1.emptyText());
|
|
15350
15705
|
} }
|
|
15351
|
-
function
|
|
15352
|
-
i0.ɵɵelementStart(0, "tr",
|
|
15706
|
+
function KptDataTable_Conditional_20_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
15707
|
+
i0.ɵɵelementStart(0, "tr", 41);
|
|
15353
15708
|
i0.ɵɵelement(1, "td");
|
|
15354
15709
|
i0.ɵɵelementEnd();
|
|
15355
15710
|
} if (rf & 2) {
|
|
@@ -15358,17 +15713,17 @@ function KptDataTable_Conditional_19_Conditional_0_Template(rf, ctx) { if (rf &
|
|
|
15358
15713
|
i0.ɵɵstyleProp("height", ctx_r1.topPad(), "px");
|
|
15359
15714
|
i0.ɵɵattribute("colspan", ctx_r1.colspan());
|
|
15360
15715
|
} }
|
|
15361
|
-
function
|
|
15362
|
-
i0.ɵɵelementContainer(0,
|
|
15716
|
+
function KptDataTable_Conditional_20_For_2_Template(rf, ctx) { if (rf & 1) {
|
|
15717
|
+
i0.ɵɵelementContainer(0, 11);
|
|
15363
15718
|
} if (rf & 2) {
|
|
15364
|
-
const
|
|
15365
|
-
const ɵ$
|
|
15719
|
+
const row_r14 = ctx.$implicit;
|
|
15720
|
+
const ɵ$index_120_r15 = ctx.$index;
|
|
15366
15721
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
15367
|
-
const
|
|
15368
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
15722
|
+
const rowTpl_r16 = i0.ɵɵreference(29);
|
|
15723
|
+
i0.ɵɵproperty("ngTemplateOutlet", rowTpl_r16)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c7, row_r14, ctx_r1.headerRowCount() + ctx_r1.virtualStart() + ɵ$index_120_r15 + 1));
|
|
15369
15724
|
} }
|
|
15370
|
-
function
|
|
15371
|
-
i0.ɵɵelementStart(0, "tr",
|
|
15725
|
+
function KptDataTable_Conditional_20_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
15726
|
+
i0.ɵɵelementStart(0, "tr", 41);
|
|
15372
15727
|
i0.ɵɵelement(1, "td");
|
|
15373
15728
|
i0.ɵɵelementEnd();
|
|
15374
15729
|
} if (rf & 2) {
|
|
@@ -15377,10 +15732,10 @@ function KptDataTable_Conditional_19_Conditional_3_Template(rf, ctx) { if (rf &
|
|
|
15377
15732
|
i0.ɵɵstyleProp("height", ctx_r1.bottomPad(), "px");
|
|
15378
15733
|
i0.ɵɵattribute("colspan", ctx_r1.colspan());
|
|
15379
15734
|
} }
|
|
15380
|
-
function
|
|
15381
|
-
i0.ɵɵconditionalCreate(0,
|
|
15382
|
-
i0.ɵɵrepeaterCreate(1,
|
|
15383
|
-
i0.ɵɵconditionalCreate(3,
|
|
15735
|
+
function KptDataTable_Conditional_20_Template(rf, ctx) { if (rf & 1) {
|
|
15736
|
+
i0.ɵɵconditionalCreate(0, KptDataTable_Conditional_20_Conditional_0_Template, 2, 3, "tr", 41);
|
|
15737
|
+
i0.ɵɵrepeaterCreate(1, KptDataTable_Conditional_20_For_2_Template, 1, 5, "ng-container", 11, _forTrack2, true);
|
|
15738
|
+
i0.ɵɵconditionalCreate(3, KptDataTable_Conditional_20_Conditional_3_Template, 2, 3, "tr", 41);
|
|
15384
15739
|
} if (rf & 2) {
|
|
15385
15740
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
15386
15741
|
i0.ɵɵconditional(ctx_r1.topPad() > 0 ? 0 : -1);
|
|
@@ -15389,287 +15744,287 @@ function KptDataTable_Conditional_19_Template(rf, ctx) { if (rf & 1) {
|
|
|
15389
15744
|
i0.ɵɵadvance(2);
|
|
15390
15745
|
i0.ɵɵconditional(ctx_r1.bottomPad() > 0 ? 3 : -1);
|
|
15391
15746
|
} }
|
|
15392
|
-
function
|
|
15393
|
-
i0.ɵɵelementContainer(0,
|
|
15747
|
+
function KptDataTable_Conditional_21_For_1_Template(rf, ctx) { if (rf & 1) {
|
|
15748
|
+
i0.ɵɵelementContainer(0, 11);
|
|
15394
15749
|
} if (rf & 2) {
|
|
15395
|
-
const
|
|
15750
|
+
const row_r17 = ctx.$implicit;
|
|
15396
15751
|
i0.ɵɵnextContext(2);
|
|
15397
|
-
const
|
|
15398
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
15752
|
+
const rowTpl_r16 = i0.ɵɵreference(29);
|
|
15753
|
+
i0.ɵɵproperty("ngTemplateOutlet", rowTpl_r16)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c8, row_r17));
|
|
15399
15754
|
} }
|
|
15400
|
-
function
|
|
15401
|
-
i0.ɵɵrepeaterCreate(0,
|
|
15755
|
+
function KptDataTable_Conditional_21_Template(rf, ctx) { if (rf & 1) {
|
|
15756
|
+
i0.ɵɵrepeaterCreate(0, KptDataTable_Conditional_21_For_1_Template, 1, 4, "ng-container", 11, _forTrack2, true);
|
|
15402
15757
|
} if (rf & 2) {
|
|
15403
15758
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
15404
15759
|
i0.ɵɵrepeater(ctx_r1.paged());
|
|
15405
15760
|
} }
|
|
15406
|
-
function
|
|
15407
|
-
i0.ɵɵelement(0, "td",
|
|
15761
|
+
function KptDataTable_Conditional_22_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
15762
|
+
i0.ɵɵelement(0, "td", 45);
|
|
15408
15763
|
} if (rf & 2) {
|
|
15409
15764
|
i0.ɵɵnextContext();
|
|
15410
|
-
const
|
|
15765
|
+
const summary_r18 = i0.ɵɵreadContextLet(0);
|
|
15411
15766
|
i0.ɵɵstyleProp("left", 0, "px");
|
|
15412
|
-
i0.ɵɵattribute("colspan",
|
|
15767
|
+
i0.ɵɵattribute("colspan", summary_r18.systemSpan);
|
|
15413
15768
|
} }
|
|
15414
|
-
function
|
|
15415
|
-
i0.ɵɵelementStart(0, "th",
|
|
15769
|
+
function KptDataTable_Conditional_22_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
15770
|
+
i0.ɵɵelementStart(0, "th", 46);
|
|
15416
15771
|
i0.ɵɵtext(1);
|
|
15417
15772
|
i0.ɵɵelementEnd();
|
|
15418
15773
|
} if (rf & 2) {
|
|
15419
15774
|
i0.ɵɵnextContext();
|
|
15420
|
-
const
|
|
15775
|
+
const summary_r18 = i0.ɵɵreadContextLet(0);
|
|
15421
15776
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
15422
|
-
i0.ɵɵstyleProp("left",
|
|
15423
|
-
i0.ɵɵclassProp("kpt-data-table__cell--frozen",
|
|
15424
|
-
i0.ɵɵattribute("colspan",
|
|
15777
|
+
i0.ɵɵstyleProp("left", summary_r18.labelSticky ? 0 : null, "px");
|
|
15778
|
+
i0.ɵɵclassProp("kpt-data-table__cell--frozen", summary_r18.labelSticky);
|
|
15779
|
+
i0.ɵɵattribute("colspan", summary_r18.labelSpan);
|
|
15425
15780
|
i0.ɵɵadvance();
|
|
15426
15781
|
i0.ɵɵtextInterpolate1(" ", ctx_r1.summaryLabelText(), " ");
|
|
15427
15782
|
} }
|
|
15428
|
-
function
|
|
15783
|
+
function KptDataTable_Conditional_22_For_6_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
15429
15784
|
i0.ɵɵelementStart(0, "td");
|
|
15430
15785
|
i0.ɵɵtext(1);
|
|
15431
15786
|
i0.ɵɵelementEnd();
|
|
15432
15787
|
} if (rf & 2) {
|
|
15433
|
-
const
|
|
15788
|
+
const m_r19 = ctx;
|
|
15434
15789
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
15435
|
-
i0.ɵɵstyleProp("width", ctx_r1.virtualScroll() ? null :
|
|
15436
|
-
i0.ɵɵclassProp("kpt-data-table__cell--frozen",
|
|
15437
|
-
i0.ɵɵattribute("data-align",
|
|
15790
|
+
i0.ɵɵstyleProp("width", ctx_r1.virtualScroll() ? null : m_r19.col.width)("left", m_r19.left, "px");
|
|
15791
|
+
i0.ɵɵclassProp("kpt-data-table__cell--frozen", m_r19.frozen);
|
|
15792
|
+
i0.ɵɵattribute("data-align", m_r19.col.align ?? "end")("aria-colindex", ctx_r1.colIndex(m_r19));
|
|
15438
15793
|
i0.ɵɵadvance();
|
|
15439
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r1.summaryText(
|
|
15794
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.summaryText(m_r19.col.field), " ");
|
|
15440
15795
|
} }
|
|
15441
|
-
function
|
|
15442
|
-
i0.ɵɵelement(0, "td",
|
|
15796
|
+
function KptDataTable_Conditional_22_For_6_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
15797
|
+
i0.ɵɵelement(0, "td", 28);
|
|
15443
15798
|
} }
|
|
15444
|
-
function
|
|
15445
|
-
i0.ɵɵconditionalCreate(0,
|
|
15799
|
+
function KptDataTable_Conditional_22_For_6_Template(rf, ctx) { if (rf & 1) {
|
|
15800
|
+
i0.ɵɵconditionalCreate(0, KptDataTable_Conditional_22_For_6_Conditional_0_Template, 2, 9, "td", 47)(1, KptDataTable_Conditional_22_For_6_Conditional_1_Template, 1, 0, "td", 28);
|
|
15446
15801
|
} if (rf & 2) {
|
|
15447
15802
|
let tmp_16_0;
|
|
15448
|
-
const
|
|
15449
|
-
i0.ɵɵconditional((tmp_16_0 =
|
|
15803
|
+
const slot_r20 = ctx.$implicit;
|
|
15804
|
+
i0.ɵɵconditional((tmp_16_0 = slot_r20.meta) ? 0 : 1, tmp_16_0);
|
|
15450
15805
|
} }
|
|
15451
|
-
function
|
|
15806
|
+
function KptDataTable_Conditional_22_Template(rf, ctx) { if (rf & 1) {
|
|
15452
15807
|
i0.ɵɵdeclareLet(0);
|
|
15453
|
-
i0.ɵɵelementStart(1, "tfoot")(2, "tr",
|
|
15454
|
-
i0.ɵɵconditionalCreate(3,
|
|
15455
|
-
i0.ɵɵconditionalCreate(4,
|
|
15456
|
-
i0.ɵɵrepeaterCreate(5,
|
|
15808
|
+
i0.ɵɵelementStart(1, "tfoot")(2, "tr", 42);
|
|
15809
|
+
i0.ɵɵconditionalCreate(3, KptDataTable_Conditional_22_Conditional_3_Template, 1, 3, "td", 43);
|
|
15810
|
+
i0.ɵɵconditionalCreate(4, KptDataTable_Conditional_22_Conditional_4_Template, 2, 6, "th", 44);
|
|
15811
|
+
i0.ɵɵrepeaterCreate(5, KptDataTable_Conditional_22_For_6_Template, 2, 1, null, null, _forTrack0$1);
|
|
15457
15812
|
i0.ɵɵelementEnd()();
|
|
15458
15813
|
} if (rf & 2) {
|
|
15459
15814
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
15460
|
-
const
|
|
15815
|
+
const summary_r21 = i0.ɵɵstoreLet(ctx_r1.summarySlots());
|
|
15461
15816
|
i0.ɵɵadvance(2);
|
|
15462
15817
|
i0.ɵɵattribute("aria-rowindex", ctx_r1.ariaRowCount());
|
|
15463
15818
|
i0.ɵɵadvance();
|
|
15464
|
-
i0.ɵɵconditional(
|
|
15819
|
+
i0.ɵɵconditional(summary_r21.systemSpan > 0 ? 3 : -1);
|
|
15465
15820
|
i0.ɵɵadvance();
|
|
15466
|
-
i0.ɵɵconditional(
|
|
15821
|
+
i0.ɵɵconditional(summary_r21.labelSpan > 0 ? 4 : -1);
|
|
15467
15822
|
i0.ɵɵadvance();
|
|
15468
|
-
i0.ɵɵrepeater(
|
|
15823
|
+
i0.ɵɵrepeater(summary_r21.slots);
|
|
15469
15824
|
} }
|
|
15470
|
-
function
|
|
15471
|
-
i0.ɵɵelementStart(0, "span",
|
|
15825
|
+
function KptDataTable_For_27_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
15826
|
+
i0.ɵɵelementStart(0, "span", 48);
|
|
15472
15827
|
i0.ɵɵtext(1);
|
|
15473
15828
|
i0.ɵɵelementEnd();
|
|
15474
15829
|
} if (rf & 2) {
|
|
15475
|
-
const
|
|
15476
|
-
const
|
|
15477
|
-
const ɵ$
|
|
15830
|
+
const ctx_r21 = i0.ɵɵnextContext();
|
|
15831
|
+
const col_r23 = ctx_r21.$implicit;
|
|
15832
|
+
const ɵ$index_158_r24 = ctx_r21.$index;
|
|
15478
15833
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
15479
|
-
i0.ɵɵproperty("id", ctx_r1.editHintId(ɵ$
|
|
15834
|
+
i0.ɵɵproperty("id", ctx_r1.editHintId(ɵ$index_158_r24));
|
|
15480
15835
|
i0.ɵɵadvance();
|
|
15481
|
-
i0.ɵɵtextInterpolate(ctx_r1.i18n.t("dataTable.editCell", i0.ɵɵpureFunction1(2, _c6,
|
|
15836
|
+
i0.ɵɵtextInterpolate(ctx_r1.i18n.t("dataTable.editCell", i0.ɵɵpureFunction1(2, _c6, col_r23.header)));
|
|
15482
15837
|
} }
|
|
15483
|
-
function
|
|
15484
|
-
i0.ɵɵconditionalCreate(0,
|
|
15838
|
+
function KptDataTable_For_27_Template(rf, ctx) { if (rf & 1) {
|
|
15839
|
+
i0.ɵɵconditionalCreate(0, KptDataTable_For_27_Conditional_0_Template, 2, 4, "span", 48);
|
|
15485
15840
|
} if (rf & 2) {
|
|
15486
|
-
const
|
|
15841
|
+
const col_r23 = ctx.$implicit;
|
|
15487
15842
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
15488
|
-
i0.ɵɵconditional(ctx_r1.isEditable(
|
|
15843
|
+
i0.ɵɵconditional(ctx_r1.isEditable(col_r23) ? 0 : -1);
|
|
15489
15844
|
} }
|
|
15490
|
-
function
|
|
15491
|
-
const
|
|
15492
|
-
i0.ɵɵelementStart(0, "td",
|
|
15493
|
-
i0.ɵɵlistener("click", function
|
|
15494
|
-
i0.ɵɵelement(2, "kpt-icon",
|
|
15845
|
+
function KptDataTable_ng_template_28_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
15846
|
+
const _r27 = i0.ɵɵgetCurrentView();
|
|
15847
|
+
i0.ɵɵelementStart(0, "td", 26)(1, "button", 51);
|
|
15848
|
+
i0.ɵɵlistener("click", function KptDataTable_ng_template_28_Conditional_2_Template_button_click_1_listener($event) { i0.ɵɵrestoreView(_r27); const row_r26 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(); $event.stopPropagation(); return i0.ɵɵresetView(ctx_r1.toggleExpand(row_r26)); });
|
|
15849
|
+
i0.ɵɵelement(2, "kpt-icon", 52);
|
|
15495
15850
|
i0.ɵɵelementEnd()();
|
|
15496
15851
|
} if (rf & 2) {
|
|
15497
|
-
const
|
|
15852
|
+
const row_r26 = i0.ɵɵnextContext().$implicit;
|
|
15498
15853
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
15499
15854
|
i0.ɵɵstyleProp("left", ctx_r1.expanderStickyLeft(), "px");
|
|
15500
15855
|
i0.ɵɵclassProp("kpt-data-table__cell--frozen", ctx_r1.hasFrozen());
|
|
15501
15856
|
i0.ɵɵadvance();
|
|
15502
|
-
i0.ɵɵclassProp("kpt-data-table__expander-btn--open", ctx_r1.isExpanded(
|
|
15503
|
-
i0.ɵɵattribute("aria-expanded", ctx_r1.isExpanded(
|
|
15857
|
+
i0.ɵɵclassProp("kpt-data-table__expander-btn--open", ctx_r1.isExpanded(row_r26));
|
|
15858
|
+
i0.ɵɵattribute("aria-expanded", ctx_r1.isExpanded(row_r26))("aria-label", ctx_r1.i18n.t("dataTable.expandRow"));
|
|
15504
15859
|
} }
|
|
15505
|
-
function
|
|
15506
|
-
const
|
|
15507
|
-
i0.ɵɵelementStart(0, "td",
|
|
15508
|
-
i0.ɵɵlistener("click", function
|
|
15860
|
+
function KptDataTable_ng_template_28_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
15861
|
+
const _r28 = i0.ɵɵgetCurrentView();
|
|
15862
|
+
i0.ɵɵelementStart(0, "td", 27)(1, "input", 53);
|
|
15863
|
+
i0.ɵɵlistener("click", function KptDataTable_ng_template_28_Conditional_3_Template_input_click_1_listener($event) { i0.ɵɵrestoreView(_r28); const row_r26 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(); $event.stopPropagation(); return i0.ɵɵresetView(ctx_r1.toggleRow(row_r26)); });
|
|
15509
15864
|
i0.ɵɵelementEnd()();
|
|
15510
15865
|
} if (rf & 2) {
|
|
15511
15866
|
i0.ɵɵnextContext();
|
|
15512
|
-
const
|
|
15867
|
+
const selected_r29 = i0.ɵɵreadContextLet(0);
|
|
15513
15868
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
15514
15869
|
i0.ɵɵstyleProp("left", ctx_r1.checkboxStickyLeft(), "px");
|
|
15515
15870
|
i0.ɵɵclassProp("kpt-data-table__cell--frozen", ctx_r1.hasFrozen());
|
|
15516
15871
|
i0.ɵɵadvance();
|
|
15517
|
-
i0.ɵɵproperty("type", ctx_r1.selectable() === "single" ? "radio" : "checkbox")("checked",
|
|
15872
|
+
i0.ɵɵproperty("type", ctx_r1.selectable() === "single" ? "radio" : "checkbox")("checked", selected_r29);
|
|
15518
15873
|
i0.ɵɵattribute("name", ctx_r1.selectable() === "single" ? ctx_r1.radioName : null)("aria-label", ctx_r1.i18n.t("dataTable.selectRow"));
|
|
15519
15874
|
} }
|
|
15520
|
-
function
|
|
15521
|
-
i0.ɵɵelementContainer(0,
|
|
15875
|
+
function KptDataTable_ng_template_28_For_5_Conditional_0_Conditional_2_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
15876
|
+
i0.ɵɵelementContainer(0, 11);
|
|
15522
15877
|
} if (rf & 2) {
|
|
15523
|
-
const
|
|
15878
|
+
const row_r26 = i0.ɵɵnextContext(4).$implicit;
|
|
15524
15879
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
15525
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx)("ngTemplateOutletContext", i0.ɵɵpureFunction4(2,
|
|
15880
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx)("ngTemplateOutletContext", i0.ɵɵpureFunction4(2, _c9, ctx_r1.editingValue(), row_r26, ctx_r1.commitEditValue, ctx_r1.cancelEdit));
|
|
15526
15881
|
} }
|
|
15527
|
-
function
|
|
15528
|
-
const
|
|
15529
|
-
i0.ɵɵelementStart(0, "kpt-input",
|
|
15530
|
-
i0.ɵɵlistener("valueChange", function
|
|
15882
|
+
function KptDataTable_ng_template_28_For_5_Conditional_0_Conditional_2_Conditional_3_Case_0_Template(rf, ctx) { if (rf & 1) {
|
|
15883
|
+
const _r34 = i0.ɵɵgetCurrentView();
|
|
15884
|
+
i0.ɵɵelementStart(0, "kpt-input", 63);
|
|
15885
|
+
i0.ɵɵlistener("valueChange", function KptDataTable_ng_template_28_For_5_Conditional_0_Conditional_2_Conditional_3_Case_0_Template_kpt_input_valueChange_0_listener($event) { i0.ɵɵrestoreView(_r34); const ctx_r1 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r1.editingValue.set($event)); })("keydown.enter", function KptDataTable_ng_template_28_For_5_Conditional_0_Conditional_2_Conditional_3_Case_0_Template_kpt_input_keydown_enter_0_listener() { i0.ɵɵrestoreView(_r34); const ctx_r1 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r1.commitEdit()); })("keydown.escape", function KptDataTable_ng_template_28_For_5_Conditional_0_Conditional_2_Conditional_3_Case_0_Template_kpt_input_keydown_escape_0_listener() { i0.ɵɵrestoreView(_r34); const ctx_r1 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r1.cancelEdit()); });
|
|
15531
15886
|
i0.ɵɵelementEnd();
|
|
15532
15887
|
} if (rf & 2) {
|
|
15533
|
-
const
|
|
15888
|
+
const m_r31 = i0.ɵɵnextContext(3);
|
|
15534
15889
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
15535
|
-
i0.ɵɵproperty("value", ctx_r1.editingValue() ?? "")("placeholder",
|
|
15890
|
+
i0.ɵɵproperty("value", ctx_r1.editingValue() ?? "")("placeholder", m_r31.col.edit.placeholder ?? "");
|
|
15536
15891
|
} }
|
|
15537
|
-
function
|
|
15538
|
-
const
|
|
15539
|
-
i0.ɵɵelementStart(0, "kpt-input-number",
|
|
15540
|
-
i0.ɵɵlistener("valueChange", function
|
|
15892
|
+
function KptDataTable_ng_template_28_For_5_Conditional_0_Conditional_2_Conditional_3_Case_1_Template(rf, ctx) { if (rf & 1) {
|
|
15893
|
+
const _r35 = i0.ɵɵgetCurrentView();
|
|
15894
|
+
i0.ɵɵelementStart(0, "kpt-input-number", 64);
|
|
15895
|
+
i0.ɵɵlistener("valueChange", function KptDataTable_ng_template_28_For_5_Conditional_0_Conditional_2_Conditional_3_Case_1_Template_kpt_input_number_valueChange_0_listener($event) { i0.ɵɵrestoreView(_r35); const ctx_r1 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r1.editingValue.set($event)); })("keydown.enter", function KptDataTable_ng_template_28_For_5_Conditional_0_Conditional_2_Conditional_3_Case_1_Template_kpt_input_number_keydown_enter_0_listener() { i0.ɵɵrestoreView(_r35); const ctx_r1 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r1.commitEdit()); })("keydown.escape", function KptDataTable_ng_template_28_For_5_Conditional_0_Conditional_2_Conditional_3_Case_1_Template_kpt_input_number_keydown_escape_0_listener() { i0.ɵɵrestoreView(_r35); const ctx_r1 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r1.cancelEdit()); });
|
|
15541
15896
|
i0.ɵɵelementEnd();
|
|
15542
15897
|
} if (rf & 2) {
|
|
15543
|
-
const
|
|
15898
|
+
const m_r31 = i0.ɵɵnextContext(3);
|
|
15544
15899
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
15545
|
-
i0.ɵɵproperty("value", ctx_r1.editingValue())("min",
|
|
15900
|
+
i0.ɵɵproperty("value", ctx_r1.editingValue())("min", m_r31.col.edit.min)("max", m_r31.col.edit.max)("step", m_r31.col.edit.step ?? 1);
|
|
15546
15901
|
} }
|
|
15547
|
-
function
|
|
15548
|
-
const
|
|
15549
|
-
i0.ɵɵelementStart(0, "kpt-datepicker",
|
|
15550
|
-
i0.ɵɵlistener("valueChange", function
|
|
15902
|
+
function KptDataTable_ng_template_28_For_5_Conditional_0_Conditional_2_Conditional_3_Case_2_Template(rf, ctx) { if (rf & 1) {
|
|
15903
|
+
const _r36 = i0.ɵɵgetCurrentView();
|
|
15904
|
+
i0.ɵɵelementStart(0, "kpt-datepicker", 65);
|
|
15905
|
+
i0.ɵɵlistener("valueChange", function KptDataTable_ng_template_28_For_5_Conditional_0_Conditional_2_Conditional_3_Case_2_Template_kpt_datepicker_valueChange_0_listener($event) { i0.ɵɵrestoreView(_r36); const ctx_r1 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r1.editingValue.set($event)); })("openChange", function KptDataTable_ng_template_28_For_5_Conditional_0_Conditional_2_Conditional_3_Case_2_Template_kpt_datepicker_openChange_0_listener($event) { i0.ɵɵrestoreView(_r36); const ctx_r1 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r1.onEditorPanelToggle($event)); });
|
|
15551
15906
|
i0.ɵɵelementEnd();
|
|
15552
15907
|
} if (rf & 2) {
|
|
15553
15908
|
const ctx_r1 = i0.ɵɵnextContext(6);
|
|
15554
15909
|
i0.ɵɵproperty("value", ctx_r1.editingValue() ?? "")("open", ctx_r1.editorPanelOpen());
|
|
15555
15910
|
} }
|
|
15556
|
-
function
|
|
15557
|
-
const
|
|
15558
|
-
i0.ɵɵelementStart(0, "kpt-select",
|
|
15559
|
-
i0.ɵɵlistener("valueChange", function
|
|
15911
|
+
function KptDataTable_ng_template_28_For_5_Conditional_0_Conditional_2_Conditional_3_Case_3_Template(rf, ctx) { if (rf & 1) {
|
|
15912
|
+
const _r37 = i0.ɵɵgetCurrentView();
|
|
15913
|
+
i0.ɵɵelementStart(0, "kpt-select", 66);
|
|
15914
|
+
i0.ɵɵlistener("valueChange", function KptDataTable_ng_template_28_For_5_Conditional_0_Conditional_2_Conditional_3_Case_3_Template_kpt_select_valueChange_0_listener($event) { i0.ɵɵrestoreView(_r37); const ctx_r1 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r1.editingValue.set($event)); })("openChange", function KptDataTable_ng_template_28_For_5_Conditional_0_Conditional_2_Conditional_3_Case_3_Template_kpt_select_openChange_0_listener($event) { i0.ɵɵrestoreView(_r37); const ctx_r1 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r1.onEditorPanelToggle($event)); });
|
|
15560
15915
|
i0.ɵɵelementEnd();
|
|
15561
15916
|
} if (rf & 2) {
|
|
15562
|
-
const
|
|
15917
|
+
const m_r31 = i0.ɵɵnextContext(3);
|
|
15563
15918
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
15564
|
-
i0.ɵɵproperty("options",
|
|
15919
|
+
i0.ɵɵproperty("options", m_r31.col.edit.options ?? i0.ɵɵpureFunction0(4, _c10))("placeholder", m_r31.col.edit.placeholder ?? "")("value", ctx_r1.editingValue())("open", ctx_r1.editorPanelOpen());
|
|
15565
15920
|
} }
|
|
15566
|
-
function
|
|
15567
|
-
const
|
|
15568
|
-
i0.ɵɵelementStart(0, "kpt-select",
|
|
15569
|
-
i0.ɵɵlistener("valueChange", function
|
|
15921
|
+
function KptDataTable_ng_template_28_For_5_Conditional_0_Conditional_2_Conditional_3_Case_4_Template(rf, ctx) { if (rf & 1) {
|
|
15922
|
+
const _r38 = i0.ɵɵgetCurrentView();
|
|
15923
|
+
i0.ɵɵelementStart(0, "kpt-select", 67);
|
|
15924
|
+
i0.ɵɵlistener("valueChange", function KptDataTable_ng_template_28_For_5_Conditional_0_Conditional_2_Conditional_3_Case_4_Template_kpt_select_valueChange_0_listener($event) { i0.ɵɵrestoreView(_r38); const ctx_r1 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r1.editingValue.set($event)); })("openChange", function KptDataTable_ng_template_28_For_5_Conditional_0_Conditional_2_Conditional_3_Case_4_Template_kpt_select_openChange_0_listener($event) { i0.ɵɵrestoreView(_r38); const ctx_r1 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r1.onEditorPanelToggle($event)); });
|
|
15570
15925
|
i0.ɵɵelementEnd();
|
|
15571
15926
|
} if (rf & 2) {
|
|
15572
|
-
const
|
|
15927
|
+
const m_r31 = i0.ɵɵnextContext(3);
|
|
15573
15928
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
15574
|
-
i0.ɵɵproperty("options",
|
|
15929
|
+
i0.ɵɵproperty("options", m_r31.col.edit.options ?? i0.ɵɵpureFunction0(4, _c10))("placeholder", m_r31.col.edit.placeholder ?? "")("value", ctx_r1.editingValue())("open", ctx_r1.editorPanelOpen());
|
|
15575
15930
|
} }
|
|
15576
|
-
function
|
|
15577
|
-
i0.ɵɵconditionalCreate(0,
|
|
15931
|
+
function KptDataTable_ng_template_28_For_5_Conditional_0_Conditional_2_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
15932
|
+
i0.ɵɵconditionalCreate(0, KptDataTable_ng_template_28_For_5_Conditional_0_Conditional_2_Conditional_3_Case_0_Template, 1, 2, "kpt-input", 58)(1, KptDataTable_ng_template_28_For_5_Conditional_0_Conditional_2_Conditional_3_Case_1_Template, 1, 4, "kpt-input-number", 59)(2, KptDataTable_ng_template_28_For_5_Conditional_0_Conditional_2_Conditional_3_Case_2_Template, 1, 2, "kpt-datepicker", 60)(3, KptDataTable_ng_template_28_For_5_Conditional_0_Conditional_2_Conditional_3_Case_3_Template, 1, 5, "kpt-select", 61)(4, KptDataTable_ng_template_28_For_5_Conditional_0_Conditional_2_Conditional_3_Case_4_Template, 1, 5, "kpt-select", 62);
|
|
15578
15933
|
} if (rf & 2) {
|
|
15579
15934
|
let tmp_25_0;
|
|
15580
|
-
const
|
|
15581
|
-
i0.ɵɵconditional((tmp_25_0 =
|
|
15935
|
+
const m_r31 = i0.ɵɵnextContext(2);
|
|
15936
|
+
i0.ɵɵconditional((tmp_25_0 = m_r31.col.edit?.type) === "text" ? 0 : tmp_25_0 === "number" ? 1 : tmp_25_0 === "date" ? 2 : tmp_25_0 === "select" ? 3 : tmp_25_0 === "multiselect" ? 4 : -1);
|
|
15582
15937
|
} }
|
|
15583
|
-
function
|
|
15584
|
-
const
|
|
15585
|
-
i0.ɵɵelementStart(0, "div",
|
|
15586
|
-
i0.ɵɵlistener("click", function
|
|
15587
|
-
i0.ɵɵconditionalCreate(2,
|
|
15938
|
+
function KptDataTable_ng_template_28_For_5_Conditional_0_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
15939
|
+
const _r33 = i0.ɵɵgetCurrentView();
|
|
15940
|
+
i0.ɵɵelementStart(0, "div", 57, 5);
|
|
15941
|
+
i0.ɵɵlistener("click", function KptDataTable_ng_template_28_For_5_Conditional_0_Conditional_2_Template_div_click_0_listener($event) { return $event.stopPropagation(); })("focusout", function KptDataTable_ng_template_28_For_5_Conditional_0_Conditional_2_Template_div_focusout_0_listener($event) { i0.ɵɵrestoreView(_r33); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.onEditorFocusOut($event)); });
|
|
15942
|
+
i0.ɵɵconditionalCreate(2, KptDataTable_ng_template_28_For_5_Conditional_0_Conditional_2_Conditional_2_Template, 1, 7, "ng-container", 11)(3, KptDataTable_ng_template_28_For_5_Conditional_0_Conditional_2_Conditional_3_Template, 5, 1);
|
|
15588
15943
|
i0.ɵɵelementEnd();
|
|
15589
15944
|
} if (rf & 2) {
|
|
15590
15945
|
let tmp_24_0;
|
|
15591
|
-
const
|
|
15946
|
+
const m_r31 = i0.ɵɵnextContext();
|
|
15592
15947
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
15593
15948
|
i0.ɵɵadvance(2);
|
|
15594
|
-
i0.ɵɵconditional((tmp_24_0 = ctx_r1.cellEditTemplate(
|
|
15949
|
+
i0.ɵɵconditional((tmp_24_0 = ctx_r1.cellEditTemplate(m_r31.col.field)) ? 2 : 3, tmp_24_0);
|
|
15595
15950
|
} }
|
|
15596
|
-
function
|
|
15597
|
-
i0.ɵɵelementContainer(0,
|
|
15951
|
+
function KptDataTable_ng_template_28_For_5_Conditional_0_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
15952
|
+
i0.ɵɵelementContainer(0, 11);
|
|
15598
15953
|
} if (rf & 2) {
|
|
15599
|
-
const
|
|
15600
|
-
const
|
|
15954
|
+
const m_r31 = i0.ɵɵnextContext();
|
|
15955
|
+
const row_r26 = i0.ɵɵnextContext(2).$implicit;
|
|
15601
15956
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
15602
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
15957
|
+
i0.ɵɵproperty("ngTemplateOutlet", m_r31.cellTpl)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c11, row_r26, ctx_r1.getValue(row_r26, m_r31.col.field)));
|
|
15603
15958
|
} }
|
|
15604
|
-
function
|
|
15959
|
+
function KptDataTable_ng_template_28_For_5_Conditional_0_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
15605
15960
|
i0.ɵɵtext(0);
|
|
15606
15961
|
} if (rf & 2) {
|
|
15607
|
-
const
|
|
15608
|
-
const
|
|
15962
|
+
const m_r31 = i0.ɵɵnextContext();
|
|
15963
|
+
const row_r26 = i0.ɵɵnextContext(2).$implicit;
|
|
15609
15964
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
15610
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r1.getValue(
|
|
15965
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.getValue(row_r26, m_r31.col.field), " ");
|
|
15611
15966
|
} }
|
|
15612
|
-
function
|
|
15613
|
-
const
|
|
15967
|
+
function KptDataTable_ng_template_28_For_5_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
15968
|
+
const _r30 = i0.ɵɵgetCurrentView();
|
|
15614
15969
|
i0.ɵɵdeclareLet(0);
|
|
15615
|
-
i0.ɵɵelementStart(1, "td",
|
|
15616
|
-
i0.ɵɵlistener("click", function
|
|
15617
|
-
i0.ɵɵconditionalCreate(2,
|
|
15970
|
+
i0.ɵɵelementStart(1, "td", 55);
|
|
15971
|
+
i0.ɵɵlistener("click", function KptDataTable_ng_template_28_For_5_Conditional_0_Template_td_click_1_listener($event) { const m_r31 = i0.ɵɵrestoreView(_r30); const row_r26 = i0.ɵɵnextContext(2).$implicit; const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(m_r31.editable ? ctx_r1.startEdit(row_r26, m_r31.col, $event) : null); })("keydown.enter", function KptDataTable_ng_template_28_For_5_Conditional_0_Template_td_keydown_enter_1_listener($event) { const m_r31 = i0.ɵɵrestoreView(_r30); const editTarget_r32 = i0.ɵɵreadContextLet(0); const row_r26 = i0.ɵɵnextContext(2).$implicit; const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(editTarget_r32 ? ctx_r1.startEdit(row_r26, m_r31.col, $event) : null); });
|
|
15972
|
+
i0.ɵɵconditionalCreate(2, KptDataTable_ng_template_28_For_5_Conditional_0_Conditional_2_Template, 4, 1, "div", 56)(3, KptDataTable_ng_template_28_For_5_Conditional_0_Conditional_3_Template, 1, 5, "ng-container", 11)(4, KptDataTable_ng_template_28_For_5_Conditional_0_Conditional_4_Template, 1, 1);
|
|
15618
15973
|
i0.ɵɵelementEnd();
|
|
15619
15974
|
} if (rf & 2) {
|
|
15620
|
-
const
|
|
15621
|
-
const
|
|
15975
|
+
const m_r31 = ctx;
|
|
15976
|
+
const row_r26 = i0.ɵɵnextContext(2).$implicit;
|
|
15622
15977
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
15623
|
-
const
|
|
15624
|
-
const
|
|
15978
|
+
const editing_r39 = m_r31.editable && ctx_r1.editingCell() !== null && ctx_r1.isEditingCell(row_r26, m_r31.col.field);
|
|
15979
|
+
const editTarget_r40 = i0.ɵɵstoreLet(m_r31.editable && !editing_r39);
|
|
15625
15980
|
i0.ɵɵadvance();
|
|
15626
|
-
i0.ɵɵstyleProp("left",
|
|
15627
|
-
i0.ɵɵclassProp("kpt-data-table__cell--frozen",
|
|
15628
|
-
i0.ɵɵattribute("data-align",
|
|
15981
|
+
i0.ɵɵstyleProp("left", m_r31.left, "px");
|
|
15982
|
+
i0.ɵɵclassProp("kpt-data-table__cell--frozen", m_r31.frozen)("kpt-data-table__cell--editable", editTarget_r40);
|
|
15983
|
+
i0.ɵɵattribute("data-align", m_r31.align)("aria-colindex", ctx_r1.colIndex(m_r31))("tabindex", editTarget_r40 ? 0 : null)("aria-describedby", editTarget_r40 ? ctx_r1.editHintId(m_r31.index) : null);
|
|
15629
15984
|
i0.ɵɵadvance();
|
|
15630
|
-
i0.ɵɵconditional(
|
|
15985
|
+
i0.ɵɵconditional(editing_r39 ? 2 : m_r31.cellTpl ? 3 : 4);
|
|
15631
15986
|
} }
|
|
15632
|
-
function
|
|
15633
|
-
i0.ɵɵelement(0, "td",
|
|
15987
|
+
function KptDataTable_ng_template_28_For_5_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
15988
|
+
i0.ɵɵelement(0, "td", 28);
|
|
15634
15989
|
} }
|
|
15635
|
-
function
|
|
15636
|
-
i0.ɵɵconditionalCreate(0,
|
|
15990
|
+
function KptDataTable_ng_template_28_For_5_Template(rf, ctx) { if (rf & 1) {
|
|
15991
|
+
i0.ɵɵconditionalCreate(0, KptDataTable_ng_template_28_For_5_Conditional_0_Template, 5, 12, "td", 54)(1, KptDataTable_ng_template_28_For_5_Conditional_1_Template, 1, 0, "td", 28);
|
|
15637
15992
|
} if (rf & 2) {
|
|
15638
15993
|
let tmp_18_0;
|
|
15639
|
-
const
|
|
15640
|
-
i0.ɵɵconditional((tmp_18_0 =
|
|
15994
|
+
const slot_r41 = ctx.$implicit;
|
|
15995
|
+
i0.ɵɵconditional((tmp_18_0 = slot_r41.meta) ? 0 : 1, tmp_18_0);
|
|
15641
15996
|
} }
|
|
15642
|
-
function
|
|
15643
|
-
i0.ɵɵelementStart(0, "tr",
|
|
15644
|
-
i0.ɵɵelementContainer(2,
|
|
15997
|
+
function KptDataTable_ng_template_28_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
15998
|
+
i0.ɵɵelementStart(0, "tr", 50)(1, "td", 68);
|
|
15999
|
+
i0.ɵɵelementContainer(2, 11);
|
|
15645
16000
|
i0.ɵɵelementEnd()();
|
|
15646
16001
|
} if (rf & 2) {
|
|
15647
|
-
const
|
|
16002
|
+
const row_r26 = i0.ɵɵnextContext().$implicit;
|
|
15648
16003
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
15649
16004
|
i0.ɵɵadvance();
|
|
15650
16005
|
i0.ɵɵattribute("colspan", ctx_r1.colspan());
|
|
15651
16006
|
i0.ɵɵadvance();
|
|
15652
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.rowDetailTpl())("ngTemplateOutletContext", i0.ɵɵpureFunction1(3,
|
|
16007
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.rowDetailTpl())("ngTemplateOutletContext", i0.ɵɵpureFunction1(3, _c5$1, row_r26));
|
|
15653
16008
|
} }
|
|
15654
|
-
function
|
|
15655
|
-
const
|
|
16009
|
+
function KptDataTable_ng_template_28_Template(rf, ctx) { if (rf & 1) {
|
|
16010
|
+
const _r25 = i0.ɵɵgetCurrentView();
|
|
15656
16011
|
i0.ɵɵdeclareLet(0);
|
|
15657
|
-
i0.ɵɵelementStart(1, "tr",
|
|
15658
|
-
i0.ɵɵlistener("click", function
|
|
15659
|
-
i0.ɵɵconditionalCreate(2,
|
|
15660
|
-
i0.ɵɵconditionalCreate(3,
|
|
15661
|
-
i0.ɵɵrepeaterCreate(4,
|
|
16012
|
+
i0.ɵɵelementStart(1, "tr", 49);
|
|
16013
|
+
i0.ɵɵlistener("click", function KptDataTable_ng_template_28_Template_tr_click_1_listener() { const row_r26 = i0.ɵɵrestoreView(_r25).$implicit; const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onRowClick(row_r26)); })("keydown", function KptDataTable_ng_template_28_Template_tr_keydown_1_listener($event) { const row_r26 = i0.ɵɵrestoreView(_r25).$implicit; const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.clickableRows() ? ctx_r1.onRowKeydown(row_r26, $event) : null); });
|
|
16014
|
+
i0.ɵɵconditionalCreate(2, KptDataTable_ng_template_28_Conditional_2_Template, 3, 8, "td", 12);
|
|
16015
|
+
i0.ɵɵconditionalCreate(3, KptDataTable_ng_template_28_Conditional_3_Template, 2, 8, "td", 13);
|
|
16016
|
+
i0.ɵɵrepeaterCreate(4, KptDataTable_ng_template_28_For_5_Template, 2, 1, null, null, _forTrack0$1);
|
|
15662
16017
|
i0.ɵɵelementEnd();
|
|
15663
|
-
i0.ɵɵconditionalCreate(6,
|
|
16018
|
+
i0.ɵɵconditionalCreate(6, KptDataTable_ng_template_28_Conditional_6_Template, 3, 5, "tr", 50);
|
|
15664
16019
|
} if (rf & 2) {
|
|
15665
|
-
const
|
|
15666
|
-
const
|
|
16020
|
+
const row_r26 = ctx.$implicit;
|
|
16021
|
+
const rowIndex_r42 = ctx.rowIndex;
|
|
15667
16022
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
15668
|
-
const
|
|
16023
|
+
const selected_r43 = i0.ɵɵstoreLet(ctx_r1.isSelected(row_r26));
|
|
15669
16024
|
i0.ɵɵadvance();
|
|
15670
16025
|
i0.ɵɵstyleProp("height", ctx_r1.virtualScroll() ? ctx_r1.rowHeight() : null, "px");
|
|
15671
|
-
i0.ɵɵclassProp("kpt-data-table__row--selected",
|
|
15672
|
-
i0.ɵɵattribute("aria-rowindex",
|
|
16026
|
+
i0.ɵɵclassProp("kpt-data-table__row--selected", selected_r43)("kpt-data-table__row--expanded", ctx_r1.hasRowDetail() && ctx_r1.isExpanded(row_r26))("kpt-data-table__row--clickable", ctx_r1.clickableRows());
|
|
16027
|
+
i0.ɵɵattribute("aria-rowindex", rowIndex_r42)("tabindex", ctx_r1.clickableRows() ? 0 : null);
|
|
15673
16028
|
i0.ɵɵadvance();
|
|
15674
16029
|
i0.ɵɵconditional(ctx_r1.hasRowDetail() ? 2 : -1);
|
|
15675
16030
|
i0.ɵɵadvance();
|
|
@@ -15677,129 +16032,129 @@ function KptDataTable_ng_template_27_Template(rf, ctx) { if (rf & 1) {
|
|
|
15677
16032
|
i0.ɵɵadvance();
|
|
15678
16033
|
i0.ɵɵrepeater(ctx_r1.slots());
|
|
15679
16034
|
i0.ɵɵadvance(2);
|
|
15680
|
-
i0.ɵɵconditional(ctx_r1.hasRowDetail() && ctx_r1.isExpanded(
|
|
16035
|
+
i0.ɵɵconditional(ctx_r1.hasRowDetail() && ctx_r1.isExpanded(row_r26) && !ctx_r1.virtualScroll() ? 6 : -1);
|
|
15681
16036
|
} }
|
|
15682
|
-
function
|
|
15683
|
-
i0.ɵɵelement(0, "th",
|
|
16037
|
+
function KptDataTable_ng_template_30_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
16038
|
+
i0.ɵɵelement(0, "th", 26);
|
|
15684
16039
|
} if (rf & 2) {
|
|
15685
16040
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
15686
16041
|
i0.ɵɵstyleProp("left", ctx_r1.expanderStickyLeft(), "px");
|
|
15687
16042
|
i0.ɵɵclassProp("kpt-data-table__cell--frozen", ctx_r1.hasFrozen());
|
|
15688
16043
|
} }
|
|
15689
|
-
function
|
|
15690
|
-
i0.ɵɵelement(0, "th",
|
|
16044
|
+
function KptDataTable_ng_template_30_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
16045
|
+
i0.ɵɵelement(0, "th", 27);
|
|
15691
16046
|
} if (rf & 2) {
|
|
15692
16047
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
15693
16048
|
i0.ɵɵstyleProp("left", ctx_r1.checkboxStickyLeft(), "px");
|
|
15694
16049
|
i0.ɵɵclassProp("kpt-data-table__cell--frozen", ctx_r1.hasFrozen());
|
|
15695
16050
|
} }
|
|
15696
|
-
function
|
|
15697
|
-
const
|
|
15698
|
-
i0.ɵɵelementStart(0, "input",
|
|
15699
|
-
i0.ɵɵlistener("input", function
|
|
16051
|
+
function KptDataTable_ng_template_30_For_4_Conditional_0_Case_1_Template(rf, ctx) { if (rf & 1) {
|
|
16052
|
+
const _r44 = i0.ɵɵgetCurrentView();
|
|
16053
|
+
i0.ɵɵelementStart(0, "input", 76);
|
|
16054
|
+
i0.ɵɵlistener("input", function KptDataTable_ng_template_30_For_4_Conditional_0_Case_1_Template_input_input_0_listener($event) { i0.ɵɵrestoreView(_r44); const m_r45 = i0.ɵɵnextContext(); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.setColumnFilter(m_r45.col.field, $event.target.value)); })("click", function KptDataTable_ng_template_30_For_4_Conditional_0_Case_1_Template_input_click_0_listener($event) { return $event.stopPropagation(); });
|
|
15700
16055
|
i0.ɵɵelementEnd();
|
|
15701
16056
|
} if (rf & 2) {
|
|
15702
|
-
const
|
|
16057
|
+
const m_r45 = i0.ɵɵnextContext();
|
|
15703
16058
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
15704
|
-
i0.ɵɵproperty("value", ctx_r1.columnFilters()[
|
|
15705
|
-
i0.ɵɵattribute("placeholder",
|
|
16059
|
+
i0.ɵɵproperty("value", ctx_r1.columnFilters()[m_r45.col.field] || "");
|
|
16060
|
+
i0.ɵɵattribute("placeholder", m_r45.col.filter.placeholder || "")("aria-label", ctx_r1.i18n.t("dataTable.filter", i0.ɵɵpureFunction1(3, _c6, m_r45.col.header)));
|
|
15706
16061
|
} }
|
|
15707
|
-
function
|
|
15708
|
-
const
|
|
15709
|
-
i0.ɵɵelementStart(0, "input",
|
|
15710
|
-
i0.ɵɵlistener("input", function
|
|
16062
|
+
function KptDataTable_ng_template_30_For_4_Conditional_0_Case_2_Template(rf, ctx) { if (rf & 1) {
|
|
16063
|
+
const _r46 = i0.ɵɵgetCurrentView();
|
|
16064
|
+
i0.ɵɵelementStart(0, "input", 77);
|
|
16065
|
+
i0.ɵɵlistener("input", function KptDataTable_ng_template_30_For_4_Conditional_0_Case_2_Template_input_input_0_listener($event) { i0.ɵɵrestoreView(_r46); const m_r45 = i0.ɵɵnextContext(); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.onNumberFilter(m_r45.col.field, $event)); })("click", function KptDataTable_ng_template_30_For_4_Conditional_0_Case_2_Template_input_click_0_listener($event) { return $event.stopPropagation(); });
|
|
15711
16066
|
i0.ɵɵelementEnd();
|
|
15712
16067
|
} if (rf & 2) {
|
|
15713
|
-
const
|
|
16068
|
+
const m_r45 = i0.ɵɵnextContext();
|
|
15714
16069
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
15715
|
-
i0.ɵɵproperty("value", ctx_r1.columnFilters()[
|
|
15716
|
-
i0.ɵɵattribute("placeholder",
|
|
16070
|
+
i0.ɵɵproperty("value", ctx_r1.columnFilters()[m_r45.col.field] || "");
|
|
16071
|
+
i0.ɵɵattribute("placeholder", m_r45.col.filter.placeholder || "")("aria-label", ctx_r1.i18n.t("dataTable.filter", i0.ɵɵpureFunction1(3, _c6, m_r45.col.header)));
|
|
15717
16072
|
} }
|
|
15718
|
-
function
|
|
15719
|
-
const
|
|
15720
|
-
i0.ɵɵelementStart(0, "kpt-select",
|
|
15721
|
-
i0.ɵɵlistener("valueChange", function
|
|
16073
|
+
function KptDataTable_ng_template_30_For_4_Conditional_0_Case_3_Template(rf, ctx) { if (rf & 1) {
|
|
16074
|
+
const _r47 = i0.ɵɵgetCurrentView();
|
|
16075
|
+
i0.ɵɵelementStart(0, "kpt-select", 78);
|
|
16076
|
+
i0.ɵɵlistener("valueChange", function KptDataTable_ng_template_30_For_4_Conditional_0_Case_3_Template_kpt_select_valueChange_0_listener($event) { i0.ɵɵrestoreView(_r47); const m_r45 = i0.ɵɵnextContext(); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.setColumnFilter(m_r45.col.field, $event)); });
|
|
15722
16077
|
i0.ɵɵelementEnd();
|
|
15723
16078
|
} if (rf & 2) {
|
|
15724
|
-
const
|
|
16079
|
+
const m_r45 = i0.ɵɵnextContext();
|
|
15725
16080
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
15726
|
-
i0.ɵɵproperty("options",
|
|
16081
|
+
i0.ɵɵproperty("options", m_r45.col.filter.options || i0.ɵɵpureFunction0(4, _c10))("multiple", !!m_r45.col.filter.multiple)("placeholder", m_r45.col.filter.placeholder || ctx_r1.i18n.t("dataTable.all"))("value", ctx_r1.columnFilters()[m_r45.col.field] ?? null);
|
|
15727
16082
|
} }
|
|
15728
|
-
function
|
|
15729
|
-
const
|
|
15730
|
-
i0.ɵɵelementStart(0, "div",
|
|
15731
|
-
i0.ɵɵlistener("input", function
|
|
16083
|
+
function KptDataTable_ng_template_30_For_4_Conditional_0_Case_4_Template(rf, ctx) { if (rf & 1) {
|
|
16084
|
+
const _r48 = i0.ɵɵgetCurrentView();
|
|
16085
|
+
i0.ɵɵelementStart(0, "div", 73)(1, "input", 77);
|
|
16086
|
+
i0.ɵɵlistener("input", function KptDataTable_ng_template_30_For_4_Conditional_0_Case_4_Template_input_input_1_listener($event) { i0.ɵɵrestoreView(_r48); const m_r45 = i0.ɵɵnextContext(); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.setRangeFilter(m_r45.col.field, "min", $event)); })("click", function KptDataTable_ng_template_30_For_4_Conditional_0_Case_4_Template_input_click_1_listener($event) { return $event.stopPropagation(); });
|
|
15732
16087
|
i0.ɵɵelementEnd();
|
|
15733
|
-
i0.ɵɵelementStart(2, "input",
|
|
15734
|
-
i0.ɵɵlistener("input", function
|
|
16088
|
+
i0.ɵɵelementStart(2, "input", 77);
|
|
16089
|
+
i0.ɵɵlistener("input", function KptDataTable_ng_template_30_For_4_Conditional_0_Case_4_Template_input_input_2_listener($event) { i0.ɵɵrestoreView(_r48); const m_r45 = i0.ɵɵnextContext(); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.setRangeFilter(m_r45.col.field, "max", $event)); })("click", function KptDataTable_ng_template_30_For_4_Conditional_0_Case_4_Template_input_click_2_listener($event) { return $event.stopPropagation(); });
|
|
15735
16090
|
i0.ɵɵelementEnd()();
|
|
15736
16091
|
} if (rf & 2) {
|
|
15737
|
-
const
|
|
16092
|
+
const m_r45 = i0.ɵɵnextContext();
|
|
15738
16093
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
15739
16094
|
i0.ɵɵadvance();
|
|
15740
|
-
i0.ɵɵproperty("value", ctx_r1.rangeVal(
|
|
15741
|
-
i0.ɵɵattribute("placeholder", ctx_r1.i18n.t("dataTable.min"))("aria-label", ctx_r1.i18n.t("dataTable.filterMin", i0.ɵɵpureFunction1(6, _c6,
|
|
16095
|
+
i0.ɵɵproperty("value", ctx_r1.rangeVal(m_r45.col.field).min);
|
|
16096
|
+
i0.ɵɵattribute("placeholder", ctx_r1.i18n.t("dataTable.min"))("aria-label", ctx_r1.i18n.t("dataTable.filterMin", i0.ɵɵpureFunction1(6, _c6, m_r45.col.header)));
|
|
15742
16097
|
i0.ɵɵadvance();
|
|
15743
|
-
i0.ɵɵproperty("value", ctx_r1.rangeVal(
|
|
15744
|
-
i0.ɵɵattribute("placeholder", ctx_r1.i18n.t("dataTable.max"))("aria-label", ctx_r1.i18n.t("dataTable.filterMax", i0.ɵɵpureFunction1(8, _c6,
|
|
16098
|
+
i0.ɵɵproperty("value", ctx_r1.rangeVal(m_r45.col.field).max);
|
|
16099
|
+
i0.ɵɵattribute("placeholder", ctx_r1.i18n.t("dataTable.max"))("aria-label", ctx_r1.i18n.t("dataTable.filterMax", i0.ɵɵpureFunction1(8, _c6, m_r45.col.header)));
|
|
15745
16100
|
} }
|
|
15746
|
-
function
|
|
15747
|
-
const
|
|
15748
|
-
i0.ɵɵelementStart(0, "div",
|
|
15749
|
-
i0.ɵɵlistener("click", function
|
|
15750
|
-
i0.ɵɵelementStart(1, "kpt-slider",
|
|
15751
|
-
i0.ɵɵlistener("valueChange", function
|
|
16101
|
+
function KptDataTable_ng_template_30_For_4_Conditional_0_Case_5_Template(rf, ctx) { if (rf & 1) {
|
|
16102
|
+
const _r49 = i0.ɵɵgetCurrentView();
|
|
16103
|
+
i0.ɵɵelementStart(0, "div", 79);
|
|
16104
|
+
i0.ɵɵlistener("click", function KptDataTable_ng_template_30_For_4_Conditional_0_Case_5_Template_div_click_0_listener($event) { return $event.stopPropagation(); });
|
|
16105
|
+
i0.ɵɵelementStart(1, "kpt-slider", 80);
|
|
16106
|
+
i0.ɵɵlistener("valueChange", function KptDataTable_ng_template_30_For_4_Conditional_0_Case_5_Template_kpt_slider_valueChange_1_listener($event) { i0.ɵɵrestoreView(_r49); const m_r45 = i0.ɵɵnextContext(); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.setColumnFilter(m_r45.col.field, $event)); });
|
|
15752
16107
|
i0.ɵɵelementEnd()();
|
|
15753
16108
|
} if (rf & 2) {
|
|
15754
|
-
const
|
|
16109
|
+
const m_r45 = i0.ɵɵnextContext();
|
|
15755
16110
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
15756
16111
|
i0.ɵɵadvance();
|
|
15757
|
-
i0.ɵɵproperty("min",
|
|
16112
|
+
i0.ɵɵproperty("min", m_r45.col.filter.min ?? 0)("max", m_r45.col.filter.max ?? 100)("step", m_r45.col.filter.step ?? 1)("value", ctx_r1.sliderVal(m_r45.col));
|
|
15758
16113
|
} }
|
|
15759
|
-
function
|
|
15760
|
-
const
|
|
15761
|
-
i0.ɵɵelementStart(0, "kpt-date-range",
|
|
15762
|
-
i0.ɵɵlistener("valueChange", function
|
|
16114
|
+
function KptDataTable_ng_template_30_For_4_Conditional_0_Case_6_Template(rf, ctx) { if (rf & 1) {
|
|
16115
|
+
const _r50 = i0.ɵɵgetCurrentView();
|
|
16116
|
+
i0.ɵɵelementStart(0, "kpt-date-range", 81);
|
|
16117
|
+
i0.ɵɵlistener("valueChange", function KptDataTable_ng_template_30_For_4_Conditional_0_Case_6_Template_kpt_date_range_valueChange_0_listener($event) { i0.ɵɵrestoreView(_r50); const m_r45 = i0.ɵɵnextContext(); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.setColumnFilter(m_r45.col.field, $event)); });
|
|
15763
16118
|
i0.ɵɵelementEnd();
|
|
15764
16119
|
} if (rf & 2) {
|
|
15765
|
-
const
|
|
16120
|
+
const m_r45 = i0.ɵɵnextContext();
|
|
15766
16121
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
15767
|
-
i0.ɵɵproperty("placeholder",
|
|
16122
|
+
i0.ɵɵproperty("placeholder", m_r45.col.filter.placeholder || ctx_r1.i18n.t("dataTable.dateRange"))("value", ctx_r1.columnFilters()[m_r45.col.field] || i0.ɵɵpureFunction0(2, _c12));
|
|
15768
16123
|
} }
|
|
15769
|
-
function
|
|
16124
|
+
function KptDataTable_ng_template_30_For_4_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
15770
16125
|
i0.ɵɵelementStart(0, "th");
|
|
15771
|
-
i0.ɵɵconditionalCreate(1,
|
|
16126
|
+
i0.ɵɵconditionalCreate(1, KptDataTable_ng_template_30_For_4_Conditional_0_Case_1_Template, 1, 5, "input", 70)(2, KptDataTable_ng_template_30_For_4_Conditional_0_Case_2_Template, 1, 5, "input", 71)(3, KptDataTable_ng_template_30_For_4_Conditional_0_Case_3_Template, 1, 5, "kpt-select", 72)(4, KptDataTable_ng_template_30_For_4_Conditional_0_Case_4_Template, 3, 10, "div", 73)(5, KptDataTable_ng_template_30_For_4_Conditional_0_Case_5_Template, 2, 4, "div", 74)(6, KptDataTable_ng_template_30_For_4_Conditional_0_Case_6_Template, 1, 3, "kpt-date-range", 75);
|
|
15772
16127
|
i0.ɵɵelementEnd();
|
|
15773
16128
|
} if (rf & 2) {
|
|
15774
16129
|
let tmp_23_0;
|
|
15775
|
-
const
|
|
16130
|
+
const m_r45 = ctx;
|
|
15776
16131
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
15777
|
-
i0.ɵɵstyleProp("width", ctx_r1.virtualScroll() ? null :
|
|
15778
|
-
i0.ɵɵclassProp("kpt-data-table__cell--frozen",
|
|
15779
|
-
i0.ɵɵattribute("data-align",
|
|
16132
|
+
i0.ɵɵstyleProp("width", ctx_r1.virtualScroll() ? null : m_r45.col.width)("left", m_r45.left, "px");
|
|
16133
|
+
i0.ɵɵclassProp("kpt-data-table__cell--frozen", m_r45.frozen);
|
|
16134
|
+
i0.ɵɵattribute("data-align", m_r45.align)("aria-colindex", ctx_r1.colIndex(m_r45));
|
|
15780
16135
|
i0.ɵɵadvance();
|
|
15781
|
-
i0.ɵɵconditional((tmp_23_0 =
|
|
16136
|
+
i0.ɵɵconditional((tmp_23_0 = m_r45.col.filter?.type) === "text" ? 1 : tmp_23_0 === "number" ? 2 : tmp_23_0 === "select" ? 3 : tmp_23_0 === "numberRange" ? 4 : tmp_23_0 === "slider" ? 5 : tmp_23_0 === "dateRange" ? 6 : -1);
|
|
15782
16137
|
} }
|
|
15783
|
-
function
|
|
15784
|
-
i0.ɵɵelement(0, "td",
|
|
16138
|
+
function KptDataTable_ng_template_30_For_4_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
16139
|
+
i0.ɵɵelement(0, "td", 28);
|
|
15785
16140
|
} }
|
|
15786
|
-
function
|
|
15787
|
-
i0.ɵɵconditionalCreate(0,
|
|
16141
|
+
function KptDataTable_ng_template_30_For_4_Template(rf, ctx) { if (rf & 1) {
|
|
16142
|
+
i0.ɵɵconditionalCreate(0, KptDataTable_ng_template_30_For_4_Conditional_0_Template, 7, 9, "th", 47)(1, KptDataTable_ng_template_30_For_4_Conditional_1_Template, 1, 0, "td", 28);
|
|
15788
16143
|
} if (rf & 2) {
|
|
15789
16144
|
let tmp_16_0;
|
|
15790
|
-
const
|
|
15791
|
-
i0.ɵɵconditional((tmp_16_0 =
|
|
16145
|
+
const slot_r51 = ctx.$implicit;
|
|
16146
|
+
i0.ɵɵconditional((tmp_16_0 = slot_r51.meta) ? 0 : 1, tmp_16_0);
|
|
15792
16147
|
} }
|
|
15793
|
-
function
|
|
15794
|
-
i0.ɵɵelementStart(0, "tr",
|
|
15795
|
-
i0.ɵɵconditionalCreate(1,
|
|
15796
|
-
i0.ɵɵconditionalCreate(2,
|
|
15797
|
-
i0.ɵɵrepeaterCreate(3,
|
|
16148
|
+
function KptDataTable_ng_template_30_Template(rf, ctx) { if (rf & 1) {
|
|
16149
|
+
i0.ɵɵelementStart(0, "tr", 69);
|
|
16150
|
+
i0.ɵɵconditionalCreate(1, KptDataTable_ng_template_30_Conditional_1_Template, 1, 4, "th", 12);
|
|
16151
|
+
i0.ɵɵconditionalCreate(2, KptDataTable_ng_template_30_Conditional_2_Template, 1, 4, "th", 13);
|
|
16152
|
+
i0.ɵɵrepeaterCreate(3, KptDataTable_ng_template_30_For_4_Template, 2, 1, null, null, _forTrack0$1);
|
|
15798
16153
|
i0.ɵɵelementEnd();
|
|
15799
16154
|
} if (rf & 2) {
|
|
15800
|
-
const
|
|
16155
|
+
const rowIndex_r52 = ctx.$implicit;
|
|
15801
16156
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
15802
|
-
i0.ɵɵattribute("aria-rowindex", ctx_r1.virtualScroll() ?
|
|
16157
|
+
i0.ɵɵattribute("aria-rowindex", ctx_r1.virtualScroll() ? rowIndex_r52 : null);
|
|
15803
16158
|
i0.ɵɵadvance();
|
|
15804
16159
|
i0.ɵɵconditional(ctx_r1.hasRowDetail() ? 1 : -1);
|
|
15805
16160
|
i0.ɵɵadvance();
|
|
@@ -15807,12 +16162,12 @@ function KptDataTable_ng_template_29_Template(rf, ctx) { if (rf & 1) {
|
|
|
15807
16162
|
i0.ɵɵadvance();
|
|
15808
16163
|
i0.ɵɵrepeater(ctx_r1.slots());
|
|
15809
16164
|
} }
|
|
15810
|
-
function
|
|
15811
|
-
const
|
|
15812
|
-
i0.ɵɵelementStart(0, "div",
|
|
16165
|
+
function KptDataTable_Conditional_32_Template(rf, ctx) { if (rf & 1) {
|
|
16166
|
+
const _r53 = i0.ɵɵgetCurrentView();
|
|
16167
|
+
i0.ɵɵelementStart(0, "div", 16);
|
|
15813
16168
|
i0.ɵɵprojection(1);
|
|
15814
|
-
i0.ɵɵelementStart(2, "kpt-paginator",
|
|
15815
|
-
i0.ɵɵlistener("pageIndexChange", function
|
|
16169
|
+
i0.ɵɵelementStart(2, "kpt-paginator", 82);
|
|
16170
|
+
i0.ɵɵlistener("pageIndexChange", function KptDataTable_Conditional_32_Template_kpt_paginator_pageIndexChange_2_listener($event) { i0.ɵɵrestoreView(_r53); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.pageIndex.set($event)); })("pageSizeChange", function KptDataTable_Conditional_32_Template_kpt_paginator_pageSizeChange_2_listener($event) { i0.ɵɵrestoreView(_r53); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.pageSizeState.set($event)); });
|
|
15816
16171
|
i0.ɵɵelementEnd()();
|
|
15817
16172
|
} if (rf & 2) {
|
|
15818
16173
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -15955,6 +16310,13 @@ class KptDataTable {
|
|
|
15955
16310
|
* Z kolumnami `frozen` kolumny systemowe kleją się zawsze, niezależnie od tego wejścia.
|
|
15956
16311
|
*/
|
|
15957
16312
|
this.frozenSystemColumns = input(false, { ...(ngDevMode ? { debugName: "frozenSystemColumns" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
16313
|
+
/**
|
|
16314
|
+
* Nagłówki grupowane: wiersz nad etykietami, w którym sąsiednie kolumny grupy dzielą komórkę
|
|
16315
|
+
* (`[{ header: 'Makroskładniki', fields: ['carbs', 'protein', 'fat'] }]`). Liczony z kolumn
|
|
16316
|
+
* widocznych, w bieżącej kolejności - ukryta albo przestawiona kolumna wypada z grupy sama.
|
|
16317
|
+
*/
|
|
16318
|
+
this.columnGroups = input([], /* @ts-ignore */
|
|
16319
|
+
...(ngDevMode ? [{ debugName: "columnGroups" }] : /* istanbul ignore next */ []));
|
|
15958
16320
|
/** Umożliwia przestawianie kolumn metodą przeciągnij-i-upuść. */
|
|
15959
16321
|
this.reorderable = input(false, { ...(ngDevMode ? { debugName: "reorderable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
15960
16322
|
/** Pokazuje przycisk eksportu do CSV. */
|
|
@@ -16039,6 +16401,9 @@ class KptDataTable {
|
|
|
16039
16401
|
...(ngDevMode ? [{ debugName: "theadEl" }] : /* istanbul ignore next */ []));
|
|
16040
16402
|
this.theadOffset = signal(0, /* @ts-ignore */
|
|
16041
16403
|
...(ngDevMode ? [{ debugName: "theadOffset" }] : /* istanbul ignore next */ []));
|
|
16404
|
+
/** Offset sticky trzeciego wiersza nagłówka (grupy + etykiety + filtry) = wysokość dwóch pierwszych. */
|
|
16405
|
+
this.theadOffset2 = signal(0, /* @ts-ignore */
|
|
16406
|
+
...(ngDevMode ? [{ debugName: "theadOffset2" }] : /* istanbul ignore next */ []));
|
|
16042
16407
|
// -- Edycja inline komórek --
|
|
16043
16408
|
this.editingCell = signal(null, /* @ts-ignore */
|
|
16044
16409
|
...(ngDevMode ? [{ debugName: "editingCell" }] : /* istanbul ignore next */ []));
|
|
@@ -16342,8 +16707,28 @@ class KptDataTable {
|
|
|
16342
16707
|
return pinnedWidth + offsets[offsets.length - 1];
|
|
16343
16708
|
}, /* @ts-ignore */
|
|
16344
16709
|
...(ngDevMode ? [{ debugName: "tableWidth" }] : /* istanbul ignore next */ []));
|
|
16345
|
-
/**
|
|
16346
|
-
|
|
16710
|
+
/**
|
|
16711
|
+
* Wiersz grup nad etykietami: komórki nad pozycjami `slots()`. Komórka przykleja się do lewej,
|
|
16712
|
+
* gdy wszystkie jej kolumny są zamrożone - inaczej przewija się z nimi. Pusta lista = bez wiersza.
|
|
16713
|
+
*/
|
|
16714
|
+
this.groupCells = computed(() => {
|
|
16715
|
+
const groups = this.columnGroups();
|
|
16716
|
+
if (!groups.length)
|
|
16717
|
+
return [];
|
|
16718
|
+
const slots = this.slots();
|
|
16719
|
+
return groupHeaderCells(slots.map((s) => s.meta?.col.field ?? null), groups).map((cell) => {
|
|
16720
|
+
const metas = slots.slice(cell.start, cell.start + cell.span).map((s) => s.meta);
|
|
16721
|
+
const spacer = metas.some((m) => m === null);
|
|
16722
|
+
const frozen = !spacer && metas.every((m) => m?.frozen);
|
|
16723
|
+
return { ...cell, key: slots[cell.start]?.key ?? String(cell.start), spacer, frozen, left: frozen ? (metas[0]?.left ?? null) : null };
|
|
16724
|
+
});
|
|
16725
|
+
}, /* @ts-ignore */
|
|
16726
|
+
...(ngDevMode ? [{ debugName: "groupCells" }] : /* istanbul ignore next */ []));
|
|
16727
|
+
/** Wiersz grup jest pierwszym wierszem nagłówka - przesuwa `aria-rowindex` pozostałych. */
|
|
16728
|
+
this.groupRows = computed(() => (this.groupCells().length ? 1 : 0), /* @ts-ignore */
|
|
16729
|
+
...(ngDevMode ? [{ debugName: "groupRows" }] : /* istanbul ignore next */ []));
|
|
16730
|
+
/** Liczba wierszy nagłówka (grupy, etykiety, ewentualnie filtry) - przesunięcie `aria-rowindex`. */
|
|
16731
|
+
this.headerRowCount = computed(() => this.groupRows() + (this.hasColumnFilters() ? 2 : 1), /* @ts-ignore */
|
|
16347
16732
|
...(ngDevMode ? [{ debugName: "headerRowCount" }] : /* istanbul ignore next */ []));
|
|
16348
16733
|
/** `aria-rowcount`/`aria-colcount` - tylko w trybie wirtualnym, gdzie DOM nie pokazuje całości. */
|
|
16349
16734
|
this.ariaRowCount = computed(() => this.virtualScroll() ? this.headerRowCount() + this.sorted().length + (this.hasSummary() ? 1 : 0) : null, /* @ts-ignore */
|
|
@@ -16491,16 +16876,20 @@ class KptDataTable {
|
|
|
16491
16876
|
this.measuredWidths.set(next);
|
|
16492
16877
|
},
|
|
16493
16878
|
});
|
|
16494
|
-
// Zmierz wysokość
|
|
16879
|
+
// Zmierz wysokość wierszy nagłówka -> offsety sticky drugiego i trzeciego wiersza.
|
|
16495
16880
|
afterRenderEffect(() => {
|
|
16496
16881
|
this.filterRowPosition();
|
|
16497
16882
|
this.hasColumnFilters();
|
|
16498
16883
|
this.visibleOrderedColumns();
|
|
16499
|
-
|
|
16884
|
+
this.groupRows();
|
|
16885
|
+
const rows = this.theadEl()?.nativeElement?.rows;
|
|
16500
16886
|
// Dokładna wysokość, nie `offsetHeight`: ten zaokrągla (46,5 -> 47) i przy skali ekranu innej
|
|
16501
16887
|
// niż 100% między wierszami nagłówka zostawała szpara, przez którą prześwitywały wiersze.
|
|
16502
|
-
|
|
16503
|
-
|
|
16888
|
+
const h1 = rows?.[0]?.getBoundingClientRect().height ?? 0;
|
|
16889
|
+
const h2 = rows?.[1]?.getBoundingClientRect().height ?? 0;
|
|
16890
|
+
if (rows?.[0])
|
|
16891
|
+
this.theadOffset.set(h1);
|
|
16892
|
+
this.theadOffset2.set(h1 + h2);
|
|
16504
16893
|
});
|
|
16505
16894
|
// Wejście w edycję komórki -> przenieś fokus na jej edytor.
|
|
16506
16895
|
afterRenderEffect(() => {
|
|
@@ -16857,13 +17246,13 @@ class KptDataTable {
|
|
|
16857
17246
|
} if (rf & 2) {
|
|
16858
17247
|
i0.ɵɵqueryAdvance(3);
|
|
16859
17248
|
} }, 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$
|
|
17249
|
+
i0.ɵɵviewQuerySignal(ctx.scrollEl, _c0$h, 5)(ctx.theadEl, _c1$e, 5)(ctx.editorHost, _c2$9, 5)(ctx.filterMic, KptSpeechButton, 5);
|
|
16861
17250
|
} if (rf & 2) {
|
|
16862
17251
|
i0.ɵɵqueryAdvance(4);
|
|
16863
|
-
} }, hostAttrs: [1, "kpt-data-table"], hostVars:
|
|
16864
|
-
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:
|
|
16866
|
-
i0.ɵɵprojectionDef(_c3$
|
|
17252
|
+
} }, hostAttrs: [1, "kpt-data-table"], hostVars: 4, hostBindings: function KptDataTable_HostBindings(rf, ctx) { if (rf & 2) {
|
|
17253
|
+
i0.ɵɵstyleProp("--%NS%kpt-thead-offset", ctx.theadOffset() + "px")("--%NS%kpt-thead-offset-2", ctx.theadOffset2() + "px");
|
|
17254
|
+
} }, 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"], columnGroups: [1, "columnGroups"], 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: 33, vars: 25, 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"], [1, "kpt-data-table__group-row"], [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"], ["aria-hidden", "true", 1, "kpt-data-table__hspacer"], [1, "kpt-data-table__group", 3, "kpt-data-table__group--empty", "kpt-data-table__cell--frozen", "left"], [1, "kpt-data-table__group"], ["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"], [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) {
|
|
17255
|
+
i0.ɵɵprojectionDef(_c3$2);
|
|
16867
17256
|
i0.ɵɵconditionalCreate(0, KptDataTable_Conditional_0_Template, 3, 2, "div", 6);
|
|
16868
17257
|
i0.ɵɵelementStart(1, "div", 7, 0);
|
|
16869
17258
|
i0.ɵɵlistener("scroll", function KptDataTable_Template_div_scroll_1_listener($event) { return ctx.onScroll($event); });
|
|
@@ -16871,27 +17260,28 @@ class KptDataTable {
|
|
|
16871
17260
|
i0.ɵɵconditionalCreate(4, KptDataTable_Conditional_4_Template, 3, 1, "caption", 9);
|
|
16872
17261
|
i0.ɵɵconditionalCreate(5, KptDataTable_Conditional_5_Template, 5, 2, "colgroup");
|
|
16873
17262
|
i0.ɵɵelementStart(6, "thead", null, 1);
|
|
16874
|
-
i0.ɵɵconditionalCreate(8, KptDataTable_Conditional_8_Template,
|
|
16875
|
-
i0.ɵɵ
|
|
16876
|
-
i0.ɵɵ
|
|
16877
|
-
i0.ɵɵconditionalCreate(11, KptDataTable_Conditional_11_Template,
|
|
16878
|
-
i0.ɵɵ
|
|
17263
|
+
i0.ɵɵconditionalCreate(8, KptDataTable_Conditional_8_Template, 5, 3, "tr", 10);
|
|
17264
|
+
i0.ɵɵconditionalCreate(9, KptDataTable_Conditional_9_Template, 1, 4, "ng-container", 11);
|
|
17265
|
+
i0.ɵɵelementStart(10, "tr");
|
|
17266
|
+
i0.ɵɵconditionalCreate(11, KptDataTable_Conditional_11_Template, 1, 4, "th", 12);
|
|
17267
|
+
i0.ɵɵconditionalCreate(12, KptDataTable_Conditional_12_Template, 2, 7, "th", 13)(13, KptDataTable_Conditional_13_Template, 1, 4, "th", 13);
|
|
17268
|
+
i0.ɵɵrepeaterCreate(14, KptDataTable_For_15_Template, 2, 1, null, null, _forTrack0$1);
|
|
16879
17269
|
i0.ɵɵelementEnd();
|
|
16880
|
-
i0.ɵɵconditionalCreate(
|
|
17270
|
+
i0.ɵɵconditionalCreate(16, KptDataTable_Conditional_16_Template, 1, 4, "ng-container", 11);
|
|
16881
17271
|
i0.ɵɵelementEnd();
|
|
16882
|
-
i0.ɵɵelementStart(
|
|
16883
|
-
i0.ɵɵconditionalCreate(
|
|
17272
|
+
i0.ɵɵelementStart(17, "tbody");
|
|
17273
|
+
i0.ɵɵconditionalCreate(18, KptDataTable_Conditional_18_Template, 3, 2, "tr")(19, KptDataTable_Conditional_19_Template, 3, 2, "tr")(20, KptDataTable_Conditional_20_Template, 4, 2)(21, KptDataTable_Conditional_21_Template, 2, 0);
|
|
16884
17274
|
i0.ɵɵelementEnd();
|
|
16885
|
-
i0.ɵɵconditionalCreate(
|
|
17275
|
+
i0.ɵɵconditionalCreate(22, KptDataTable_Conditional_22_Template, 7, 4, "tfoot");
|
|
16886
17276
|
i0.ɵɵelementEnd()();
|
|
16887
|
-
i0.ɵɵelementStart(
|
|
16888
|
-
i0.ɵɵtext(
|
|
17277
|
+
i0.ɵɵelementStart(23, "div", 14);
|
|
17278
|
+
i0.ɵɵtext(24);
|
|
16889
17279
|
i0.ɵɵelementEnd();
|
|
16890
|
-
i0.ɵɵelementStart(
|
|
16891
|
-
i0.ɵɵrepeaterCreate(
|
|
17280
|
+
i0.ɵɵelementStart(25, "div", 15);
|
|
17281
|
+
i0.ɵɵrepeaterCreate(26, KptDataTable_For_27_Template, 1, 1, null, null, _forTrack1$1);
|
|
16892
17282
|
i0.ɵɵelementEnd();
|
|
16893
|
-
i0.ɵɵtemplate(
|
|
16894
|
-
i0.ɵɵconditionalCreate(
|
|
17283
|
+
i0.ɵɵtemplate(28, KptDataTable_ng_template_28_Template, 7, 14, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor)(30, KptDataTable_ng_template_30_Template, 5, 3, "ng-template", null, 3, i0.ɵɵtemplateRefExtractor);
|
|
17284
|
+
i0.ɵɵconditionalCreate(32, KptDataTable_Conditional_32_Template, 3, 4, "div", 16);
|
|
16895
17285
|
} if (rf & 2) {
|
|
16896
17286
|
i0.ɵɵconditional(ctx.filterable() || ctx.exportable() ? 0 : -1);
|
|
16897
17287
|
i0.ɵɵadvance();
|
|
@@ -16905,27 +17295,29 @@ class KptDataTable {
|
|
|
16905
17295
|
i0.ɵɵadvance();
|
|
16906
17296
|
i0.ɵɵconditional(ctx.virtualScroll() ? 5 : -1);
|
|
16907
17297
|
i0.ɵɵadvance(3);
|
|
16908
|
-
i0.ɵɵconditional(ctx.
|
|
17298
|
+
i0.ɵɵconditional(ctx.groupCells().length ? 8 : -1);
|
|
17299
|
+
i0.ɵɵadvance();
|
|
17300
|
+
i0.ɵɵconditional(ctx.hasColumnFilters() && ctx.filterRowPosition() === "top" ? 9 : -1);
|
|
16909
17301
|
i0.ɵɵadvance();
|
|
16910
|
-
i0.ɵɵattribute("aria-rowindex", ctx.virtualScroll() ? ctx.hasColumnFilters() && ctx.filterRowPosition() === "top" ? 2 : 1 : null);
|
|
17302
|
+
i0.ɵɵattribute("aria-rowindex", ctx.virtualScroll() ? ctx.groupRows() + (ctx.hasColumnFilters() && ctx.filterRowPosition() === "top" ? 2 : 1) : null);
|
|
16911
17303
|
i0.ɵɵadvance();
|
|
16912
|
-
i0.ɵɵconditional(ctx.hasRowDetail() ?
|
|
17304
|
+
i0.ɵɵconditional(ctx.hasRowDetail() ? 11 : -1);
|
|
16913
17305
|
i0.ɵɵadvance();
|
|
16914
|
-
i0.ɵɵconditional(ctx.selectable() === "multiple" ?
|
|
17306
|
+
i0.ɵɵconditional(ctx.selectable() === "multiple" ? 12 : ctx.selectable() === "single" ? 13 : -1);
|
|
16915
17307
|
i0.ɵɵadvance(2);
|
|
16916
17308
|
i0.ɵɵrepeater(ctx.slots());
|
|
16917
17309
|
i0.ɵɵadvance(2);
|
|
16918
|
-
i0.ɵɵconditional(ctx.hasColumnFilters() && ctx.filterRowPosition() === "bottom" ?
|
|
17310
|
+
i0.ɵɵconditional(ctx.hasColumnFilters() && ctx.filterRowPosition() === "bottom" ? 16 : -1);
|
|
16919
17311
|
i0.ɵɵadvance(2);
|
|
16920
|
-
i0.ɵɵconditional(ctx.loading() ?
|
|
17312
|
+
i0.ɵɵconditional(ctx.loading() ? 18 : ctx.displayCount() === 0 ? 19 : ctx.virtualScroll() ? 20 : 21);
|
|
16921
17313
|
i0.ɵɵadvance(4);
|
|
16922
|
-
i0.ɵɵconditional(ctx.hasSummary() && !ctx.loading() && ctx.displayCount() > 0 ?
|
|
17314
|
+
i0.ɵɵconditional(ctx.hasSummary() && !ctx.loading() && ctx.displayCount() > 0 ? 22 : -1);
|
|
16923
17315
|
i0.ɵɵadvance(2);
|
|
16924
17316
|
i0.ɵɵtextInterpolate(ctx.moveAnnouncement());
|
|
16925
17317
|
i0.ɵɵadvance(2);
|
|
16926
17318
|
i0.ɵɵrepeater(ctx.visibleOrderedColumns());
|
|
16927
17319
|
i0.ɵɵadvance(6);
|
|
16928
|
-
i0.ɵɵconditional(ctx.pageSize() > 0 && !ctx.virtualScroll() ?
|
|
17320
|
+
i0.ɵɵconditional(ctx.pageSize() > 0 && !ctx.virtualScroll() ? 32 : -1);
|
|
16929
17321
|
} }, dependencies: [NgTemplateOutlet,
|
|
16930
17322
|
KptButton,
|
|
16931
17323
|
KptIcon,
|
|
@@ -16936,7 +17328,7 @@ class KptDataTable {
|
|
|
16936
17328
|
KptInput,
|
|
16937
17329
|
KptInputNumber,
|
|
16938
17330
|
KptDatepicker,
|
|
16939
|
-
KptSpeechButton], styles: ["@layer kpt.components{.kpt-data-table{display:flex;flex-direction:column;background:var(--%NS%kpt-table-bg);color:var(--%NS%kpt-table-fg);border:var(--%NS%kpt-border-width-thin, 1px) solid var(--%NS%kpt-table-border);border-radius:var(--%NS%kpt-table-radius, .75rem);overflow:hidden;flex-grow:1}.kpt-data-table__toolbar{display:flex;align-items:center;justify-content:space-between;gap:var(--%NS%kpt-space-3, .75rem);padding:var(--%NS%kpt-space-3, .75rem);border-bottom:var(--%NS%kpt-border-width-thin, 1px) solid var(--%NS%kpt-table-border)}.kpt-data-table__filter{width:100%;max-width:20rem;height:2.25rem;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);background:var(--%NS%kpt-form-field-bg);color:var(--%NS%kpt-form-field-text)}.kpt-data-table__filter: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-data-table__search{position:relative;width:100%;max-width:20rem}.kpt-data-table__search[data-speech] .kpt-data-table__filter{padding-inline-end:2.5rem}.kpt-data-table__search[data-speech=listening] .kpt-data-table__filter{padding-inline-end:4.5rem}.kpt-data-table__speech{position:absolute;inset-block:0;inset-inline-end:var(--%NS%kpt-space-1, .25rem);gap:var(--%NS%kpt-space-1, .25rem)}.kpt-data-table__scroll{overflow:auto}.kpt-data-table__pager{display:flex;align-items:center;gap:var(--%NS%kpt-space-2, .5rem)}.kpt-data-table__pager [kptPaginatorActions]{margin-inline-start:.5rem}.kpt-data-table__pager .kpt-paginator{flex:1 1 auto;min-width:0}.kpt-data-table__table{width:100%;border-collapse:separate;border-spacing:0;font-size:var(--%NS%kpt-font-size-sm, .875rem)}.kpt-data-table__table--frozen{width:max-content;min-width:100%}.kpt-data-table__table th,.kpt-data-table__table td{padding:var(--%NS%kpt-table-cell-padding, .75rem);text-align:start;border-bottom:var(--%NS%kpt-border-width-thin, 1px) solid var(--%NS%kpt-table-border)}.kpt-data-table__table th[data-align=center],.kpt-data-table__table td[data-align=center]{text-align:center}.kpt-data-table__table th[data-align=end],.kpt-data-table__table td[data-align=end]{text-align:end}.kpt-data-table__table thead th{position:sticky;top:0;z-index:1;background:var(--%NS%kpt-table-header-bg);color:var(--%NS%kpt-table-header-fg);font-weight:var(--%NS%kpt-font-weight-semibold, 600);white-space:nowrap;-webkit-user-select:none;user-select:none}.kpt-data-table__table thead tr:nth-child(2) th{top:var(--%NS%kpt-thead-offset, 0px)}.kpt-data-table__table tfoot th,.kpt-data-table__table tfoot td{position:sticky;bottom:0;z-index:1;background:var(--%NS%kpt-table-summary-bg, var(--%NS%kpt-table-header-bg));color:var(--%NS%kpt-table-header-fg);font-weight:var(--%NS%kpt-font-weight-semibold, 600);white-space:nowrap;border-bottom:0;border-top:var(--%NS%kpt-border-width-thin, 1px) solid var(--%NS%kpt-table-border)}.kpt-data-table__filter-row{--%NS%_filter-h: 2rem}.kpt-data-table__filter-row th{height:calc(var(--%NS%_filter-h) + 2 * var(--%NS%kpt-space-2, .5rem) + var(--%NS%kpt-border-width-thin, 1px));padding:var(--%NS%kpt-space-2, .5rem);font-weight:var(--%NS%kpt-font-weight-normal, 400);cursor:auto}.kpt-data-table__filter-row .kpt-select{min-height:var(--%NS%_filter-h);padding-block:0}.kpt-data-table__filter-row .kpt-date-range{height:var(--%NS%_filter-h)}.kpt-data-table__fcell{width:100%;height:var(--%NS%_filter-h);box-sizing:border-box;font-size:var(--%NS%kpt-font-size-sm, .875rem);padding-inline:var(--%NS%kpt-space-2, .5rem);border:var(--%NS%kpt-border-width-thin, 1px) solid var(--%NS%kpt-form-field-border);border-radius:var(--%NS%kpt-form-field-radius, .5rem);background:var(--%NS%kpt-form-field-bg);color:var(--%NS%kpt-form-field-text);font-family:inherit}.kpt-data-table__fcell: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-data-table__filter-row .kpt-select-host,.kpt-data-table__filter-row .kpt-date-range-host{display:block;width:100%;font-weight:var(--%NS%kpt-font-weight-normal, 400)}.kpt-data-table__frange{display:flex;gap:var(--%NS%kpt-space-2, .5rem)}.kpt-data-table__frange .kpt-data-table__fcell{min-width:0}.kpt-data-table__fslider .kpt-slider-host{width:100%}.kpt-data-table__fslider .kpt-slider__value{min-width:auto;font-size:var(--%NS%kpt-font-size-xs, .75rem);color:var(--%NS%kpt-color-on-surface-muted)}.kpt-data-table__th--%NS%sortable:hover{color:var(--%NS%kpt-color-on-surface)}.kpt-data-table__sort-btn{display:inline-flex;align-items:center;padding:0;border:0;background:none;font:inherit;color:inherit;text-align:inherit;cursor:pointer;border-radius:var(--%NS%kpt-radius-sm, .25rem)}.kpt-data-table__sort-btn:focus-visible{outline:var(--%NS%kpt-border-width-medium, 2px) solid var(--%NS%kpt-color-focus-ring);outline-offset:2px}.kpt-data-table__caption{caption-side:top;padding:var(--%NS%kpt-space-3, .75rem) var(--%NS%kpt-table-cell-padding, .75rem) var(--%NS%kpt-space-2, .5rem);text-align:start;font-weight:var(--%NS%kpt-font-weight-semibold, 600);color:var(--%NS%kpt-color-on-surface)}.kpt-data-table__caption-text{position:sticky;inset-inline-start:var(--%NS%kpt-table-cell-padding, .75rem)}.kpt-data-table__live{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.kpt-data-table__cell--editable{cursor:pointer}.kpt-data-table__cell--%NS%editable:hover{background:var(--%NS%kpt-table-row-hover)}.kpt-data-table__cell--%NS%editable:focus-visible{outline:var(--%NS%kpt-border-width-medium, 2px) solid var(--%NS%kpt-color-focus-ring);outline-offset:-2px}.kpt-data-table__editor{display:block;min-width:8rem}.kpt-data-table__editor .kpt-input-number-host{max-width:6.5rem}.kpt-data-table__editor .kpt-input-number__btn{width:1.75rem}.kpt-data-table__sort{margin-inline-start:.35em;opacity:.35}.kpt-data-table__sort--active{opacity:1}.kpt-data-table__th--draggable{cursor:grab}.kpt-data-table__th--%NS%draggable:active{cursor:grabbing}.kpt-data-table__th--dragover{box-shadow:inset 2px 0 0 0 var(--%NS%kpt-color-primary)}.kpt-data-table__grip{display:inline-flex;align-items:center;margin-inline-end:.4em;padding:0;border:0;background:none;color:inherit;opacity:.45;cursor:inherit;border-radius:var(--%NS%kpt-radius-sm, .25rem)}.kpt-data-table__grip:hover,.kpt-data-table__grip:focus-visible{opacity:1}.kpt-data-table__grip:focus-visible{outline:var(--%NS%kpt-border-width-medium, 2px) solid var(--%NS%kpt-color-focus-ring);outline-offset:1px}.kpt-data-table__checkbox{width:1px;white-space:nowrap;text-align:center}.kpt-data-table__checkbox input[type=checkbox],.kpt-data-table__checkbox input[type=radio]{appearance:none;-webkit-appearance:none;position:relative;display:inline-block;width:1.15rem;height:1.15rem;margin:0;vertical-align:middle;cursor:pointer;border:var(--%NS%kpt-border-width-medium, 2px) solid var(--%NS%kpt-form-field-border);border-radius:var(--%NS%kpt-radius-sm, .25rem);background:var(--%NS%kpt-form-field-bg);transition:background-color var(--%NS%kpt-motion-duration-fast, .12s) var(--%NS%kpt-motion-easing-standard),border-color var(--%NS%kpt-motion-duration-fast, .12s) var(--%NS%kpt-motion-easing-standard)}.kpt-data-table__checkbox input[type=checkbox]:after,.kpt-data-table__checkbox input[type=radio]:after{content:\"\";position:absolute;inset:0;opacity:0;background-color:var(--%NS%kpt-color-on-primary);transition:opacity var(--%NS%kpt-motion-duration-fast, .12s) var(--%NS%kpt-motion-easing-standard);-webkit-mask:no-repeat center/.85rem;mask:no-repeat center/.85rem}.kpt-data-table__checkbox input[type=checkbox]:checked,.kpt-data-table__checkbox input[type=checkbox]:indeterminate,.kpt-data-table__checkbox input[type=radio]:checked,.kpt-data-table__checkbox input[type=radio]:indeterminate{background:var(--%NS%kpt-color-primary);border-color:var(--%NS%kpt-color-primary)}.kpt-data-table__checkbox input[type=checkbox]:checked:after,.kpt-data-table__checkbox input[type=radio]:checked:after{opacity:1;-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M13 4.5 6.5 11 3 7.5' fill='none' stroke='%23000' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M13 4.5 6.5 11 3 7.5' fill='none' stroke='%23000' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\")}.kpt-data-table__checkbox input[type=checkbox]:indeterminate:after,.kpt-data-table__checkbox input[type=radio]:indeterminate:after{opacity:1;-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8h9' fill='none' stroke='%23000' stroke-width='2.25' stroke-linecap='round'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8h9' fill='none' stroke='%23000' stroke-width='2.25' stroke-linecap='round'/%3E%3C/svg%3E\")}.kpt-data-table__checkbox input[type=checkbox]:focus-visible,.kpt-data-table__checkbox input[type=radio]:focus-visible{outline:var(--%NS%kpt-border-width-medium, 2px) solid var(--%NS%kpt-color-focus-ring);outline-offset:2px}.kpt-data-table__checkbox input[type=radio]{border-radius:50%}.kpt-data-table__checkbox input[type=radio]:checked:after{-webkit-mask-image:none;mask-image:none;inset:25%;border-radius:50%}.kpt-data-table__expander{width:2.5rem;min-width:2.5rem;text-align:center;white-space:nowrap}.kpt-data-table__expander-btn{display:inline-flex;align-items:center;justify-content:center;width:1.75rem;height:1.75rem;padding:0;border:none;border-radius:var(--%NS%kpt-radius-sm, .25rem);background:transparent;color:var(--%NS%kpt-color-on-surface-muted);cursor:pointer;transition:background-color 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-data-table__expander-btn .kpt-icon-host{display:inline-flex;transition:transform var(--%NS%kpt-motion-duration-fast, .12s) var(--%NS%kpt-motion-easing-standard)}.kpt-data-table__expander-btn:hover{background:var(--%NS%kpt-table-row-hover);color:var(--%NS%kpt-color-on-surface)}.kpt-data-table__expander-btn:focus-visible{outline:var(--%NS%kpt-border-width-medium, 2px) solid var(--%NS%kpt-color-focus-ring);outline-offset:2px}.kpt-data-table__expander-btn--open{color:var(--%NS%kpt-color-primary)}.kpt-data-table__expander-btn--open .kpt-icon-host{transform:rotate(90deg)}.kpt-data-table__detail-row>.kpt-data-table__detail{padding:var(--%NS%kpt-space-4, 1rem);background:var(--%NS%kpt-table-detail-bg, var(--%NS%kpt-color-surface-variant, var(--%NS%kpt-table-row-hover)));border-bottom:var(--%NS%kpt-border-width-thin, 1px) solid var(--%NS%kpt-table-border);box-shadow:inset 3px 0 0 0 var(--%NS%kpt-color-primary)}.kpt-data-table tbody tr{transition:background-color var(--%NS%kpt-motion-duration-fast, .12s) var(--%NS%kpt-motion-easing-standard)}.kpt-data-table tbody tr:hover{background:var(--%NS%kpt-table-row-hover)}.kpt-data-table tbody tr.kpt-data-table__detail-row:hover{background:transparent}.kpt-data-table__row--selected{background:var(--%NS%kpt-table-row-selected)!important}.kpt-data-table__row--clickable{cursor:pointer}.kpt-data-table__row--%NS%clickable:focus-visible{outline:var(--%NS%kpt-border-width-medium, 2px) solid var(--%NS%kpt-color-focus-ring);outline-offset:-2px}.kpt-data-table__row--expanded{background:var(--%NS%kpt-table-row-hover)}.kpt-data-table__table--frozen .kpt-data-table__checkbox{width:3rem;min-width:3rem}.kpt-data-table__table--frozen .kpt-data-table__expander{width:2.5rem;min-width:2.5rem}.kpt-data-table__cell--frozen{position:sticky;z-index:1;background:var(--%NS%kpt-table-bg);box-shadow:inset calc(-1 * var(--%NS%kpt-border-width-thin, 1px)) 0 0 var(--%NS%kpt-table-border)}.kpt-data-table thead th.kpt-data-table__cell--frozen{z-index:3;background:var(--%NS%kpt-table-header-bg)}.kpt-data-table tfoot th.kpt-data-table__cell--frozen,.kpt-data-table tfoot td.kpt-data-table__cell--frozen{z-index:3;background:var(--%NS%kpt-table-summary-bg, var(--%NS%kpt-table-header-bg))}.kpt-data-table tbody tr:hover .kpt-data-table__cell--frozen{background:var(--%NS%kpt-table-row-hover)}.kpt-data-table__row--selected.kpt-data-table__row--selected .kpt-data-table__cell--frozen,.kpt-data-table tbody tr.kpt-data-table__row--selected .kpt-data-table__cell--frozen{background:var(--%NS%kpt-table-row-selected)}.kpt-data-table__state{padding:var(--%NS%kpt-space-8, 2rem)!important;text-align:center!important;color:var(--%NS%kpt-color-on-surface-muted)}.kpt-data-table__table--virtual td{padding-block:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.kpt-data-table__spacer td{padding:0!important;border:0!important}.kpt-data-table__table--virtual{table-layout:fixed;min-width:100%}.kpt-data-table__table--virtual th{overflow:hidden;text-overflow:ellipsis}.kpt-data-table__col-expander{width:2.5rem}.kpt-data-table__col-checkbox{width:3rem}.kpt-data-table__hspacer{padding:0!important}.kpt-data-table thead .kpt-data-table__hspacer{position:sticky;top:0;background:var(--%NS%kpt-table-header-bg)}.kpt-data-table thead tr:nth-child(2) .kpt-data-table__hspacer{top:var(--%NS%kpt-thead-offset, 0px)}.kpt-data-table tbody tr:last-child td{border-bottom:0}}\n"], encapsulation: 2 }); }
|
|
17331
|
+
KptSpeechButton], styles: ["@layer kpt.components{.kpt-data-table{display:flex;flex-direction:column;background:var(--%NS%kpt-table-bg);color:var(--%NS%kpt-table-fg);border:var(--%NS%kpt-border-width-thin, 1px) solid var(--%NS%kpt-table-border);border-radius:var(--%NS%kpt-table-radius, .75rem);overflow:hidden;flex-grow:1}.kpt-data-table__toolbar{display:flex;align-items:center;justify-content:space-between;gap:var(--%NS%kpt-space-3, .75rem);padding:var(--%NS%kpt-space-3, .75rem);border-bottom:var(--%NS%kpt-border-width-thin, 1px) solid var(--%NS%kpt-table-border)}.kpt-data-table__filter{width:100%;max-width:20rem;height:2.25rem;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);background:var(--%NS%kpt-form-field-bg);color:var(--%NS%kpt-form-field-text)}.kpt-data-table__filter: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-data-table__search{position:relative;width:100%;max-width:20rem}.kpt-data-table__search[data-speech] .kpt-data-table__filter{padding-inline-end:2.5rem}.kpt-data-table__search[data-speech=listening] .kpt-data-table__filter{padding-inline-end:4.5rem}.kpt-data-table__speech{position:absolute;inset-block:0;inset-inline-end:var(--%NS%kpt-space-1, .25rem);gap:var(--%NS%kpt-space-1, .25rem)}.kpt-data-table__scroll{overflow:auto}.kpt-data-table__pager{display:flex;align-items:center;gap:var(--%NS%kpt-space-2, .5rem)}.kpt-data-table__pager [kptPaginatorActions]{margin-inline-start:.5rem}.kpt-data-table__pager .kpt-paginator{flex:1 1 auto;min-width:0}.kpt-data-table__table{width:100%;border-collapse:separate;border-spacing:0;font-size:var(--%NS%kpt-font-size-sm, .875rem)}.kpt-data-table__table--frozen{width:max-content;min-width:100%}.kpt-data-table__table th,.kpt-data-table__table td{padding:var(--%NS%kpt-table-cell-padding, .75rem);text-align:start;border-bottom:var(--%NS%kpt-border-width-thin, 1px) solid var(--%NS%kpt-table-border)}.kpt-data-table__table th[data-align=center],.kpt-data-table__table td[data-align=center]{text-align:center}.kpt-data-table__table th[data-align=end],.kpt-data-table__table td[data-align=end]{text-align:end}.kpt-data-table__table thead th{position:sticky;top:0;z-index:1;background:var(--%NS%kpt-table-header-bg);color:var(--%NS%kpt-table-header-fg);font-weight:var(--%NS%kpt-font-weight-semibold, 600);white-space:nowrap;-webkit-user-select:none;user-select:none}.kpt-data-table__table thead tr:nth-child(2) th{top:var(--%NS%kpt-thead-offset, 0px)}.kpt-data-table__table thead tr:nth-child(3) th{top:var(--%NS%kpt-thead-offset-2, 0px)}.kpt-data-table__table tfoot th,.kpt-data-table__table tfoot td{position:sticky;bottom:0;z-index:1;background:var(--%NS%kpt-table-summary-bg, var(--%NS%kpt-table-header-bg));color:var(--%NS%kpt-table-header-fg);font-weight:var(--%NS%kpt-font-weight-semibold, 600);white-space:nowrap;border-bottom:0;border-top:var(--%NS%kpt-border-width-thin, 1px) solid var(--%NS%kpt-table-border)}.kpt-data-table__filter-row{--%NS%_filter-h: 2rem}.kpt-data-table__filter-row th{height:calc(var(--%NS%_filter-h) + 2 * var(--%NS%kpt-space-2, .5rem) + var(--%NS%kpt-border-width-thin, 1px));padding:var(--%NS%kpt-space-2, .5rem);font-weight:var(--%NS%kpt-font-weight-normal, 400);cursor:auto}.kpt-data-table__filter-row .kpt-select{min-height:var(--%NS%_filter-h);padding-block:0}.kpt-data-table__filter-row .kpt-date-range{height:var(--%NS%_filter-h)}.kpt-data-table__fcell{width:100%;height:var(--%NS%_filter-h);box-sizing:border-box;font-size:var(--%NS%kpt-font-size-sm, .875rem);padding-inline:var(--%NS%kpt-space-2, .5rem);border:var(--%NS%kpt-border-width-thin, 1px) solid var(--%NS%kpt-form-field-border);border-radius:var(--%NS%kpt-form-field-radius, .5rem);background:var(--%NS%kpt-form-field-bg);color:var(--%NS%kpt-form-field-text);font-family:inherit}.kpt-data-table__fcell: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-data-table__filter-row .kpt-select-host,.kpt-data-table__filter-row .kpt-date-range-host{display:block;width:100%;font-weight:var(--%NS%kpt-font-weight-normal, 400)}.kpt-data-table__frange{display:flex;gap:var(--%NS%kpt-space-2, .5rem)}.kpt-data-table__frange .kpt-data-table__fcell{min-width:0}.kpt-data-table__fslider .kpt-slider-host{width:100%}.kpt-data-table__fslider .kpt-slider__value{min-width:auto;font-size:var(--%NS%kpt-font-size-xs, .75rem);color:var(--%NS%kpt-color-on-surface-muted)}.kpt-data-table__th--%NS%sortable:hover{color:var(--%NS%kpt-color-on-surface)}.kpt-data-table__sort-btn{display:inline-flex;align-items:center;padding:0;border:0;background:none;font:inherit;color:inherit;text-align:inherit;cursor:pointer;border-radius:var(--%NS%kpt-radius-sm, .25rem)}.kpt-data-table__sort-btn:focus-visible{outline:var(--%NS%kpt-border-width-medium, 2px) solid var(--%NS%kpt-color-focus-ring);outline-offset:2px}.kpt-data-table__caption{caption-side:top;padding:var(--%NS%kpt-space-3, .75rem) var(--%NS%kpt-table-cell-padding, .75rem) var(--%NS%kpt-space-2, .5rem);text-align:start;font-weight:var(--%NS%kpt-font-weight-semibold, 600);color:var(--%NS%kpt-color-on-surface)}.kpt-data-table__caption-text{position:sticky;inset-inline-start:var(--%NS%kpt-table-cell-padding, .75rem)}.kpt-data-table__live{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.kpt-data-table__cell--editable{cursor:pointer}.kpt-data-table__cell--%NS%editable:hover{background:var(--%NS%kpt-table-row-hover)}.kpt-data-table__cell--%NS%editable:focus-visible{outline:var(--%NS%kpt-border-width-medium, 2px) solid var(--%NS%kpt-color-focus-ring);outline-offset:-2px}.kpt-data-table__editor{display:block;min-width:8rem}.kpt-data-table__editor .kpt-input-number-host{max-width:6.5rem}.kpt-data-table__editor .kpt-input-number__btn{width:1.75rem}.kpt-data-table__sort{margin-inline-start:.35em;opacity:.35}.kpt-data-table__sort--active{opacity:1}.kpt-data-table__th--draggable{cursor:grab}.kpt-data-table__th--%NS%draggable:active{cursor:grabbing}.kpt-data-table__th--dragover{box-shadow:inset 2px 0 0 0 var(--%NS%kpt-color-primary)}.kpt-data-table__grip{display:inline-flex;align-items:center;margin-inline-end:.4em;padding:0;border:0;background:none;color:inherit;opacity:.45;cursor:inherit;border-radius:var(--%NS%kpt-radius-sm, .25rem)}.kpt-data-table__grip:hover,.kpt-data-table__grip:focus-visible{opacity:1}.kpt-data-table__grip:focus-visible{outline:var(--%NS%kpt-border-width-medium, 2px) solid var(--%NS%kpt-color-focus-ring);outline-offset:1px}.kpt-data-table__checkbox{width:1px;white-space:nowrap;text-align:center}.kpt-data-table__checkbox input[type=checkbox],.kpt-data-table__checkbox input[type=radio]{appearance:none;-webkit-appearance:none;position:relative;display:inline-block;width:1.15rem;height:1.15rem;margin:0;vertical-align:middle;cursor:pointer;border:var(--%NS%kpt-border-width-medium, 2px) solid var(--%NS%kpt-form-field-border);border-radius:var(--%NS%kpt-radius-sm, .25rem);background:var(--%NS%kpt-form-field-bg);transition:background-color var(--%NS%kpt-motion-duration-fast, .12s) var(--%NS%kpt-motion-easing-standard),border-color var(--%NS%kpt-motion-duration-fast, .12s) var(--%NS%kpt-motion-easing-standard)}.kpt-data-table__checkbox input[type=checkbox]:after,.kpt-data-table__checkbox input[type=radio]:after{content:\"\";position:absolute;inset:0;opacity:0;background-color:var(--%NS%kpt-color-on-primary);transition:opacity var(--%NS%kpt-motion-duration-fast, .12s) var(--%NS%kpt-motion-easing-standard);-webkit-mask:no-repeat center/.85rem;mask:no-repeat center/.85rem}.kpt-data-table__checkbox input[type=checkbox]:checked,.kpt-data-table__checkbox input[type=checkbox]:indeterminate,.kpt-data-table__checkbox input[type=radio]:checked,.kpt-data-table__checkbox input[type=radio]:indeterminate{background:var(--%NS%kpt-color-primary);border-color:var(--%NS%kpt-color-primary)}.kpt-data-table__checkbox input[type=checkbox]:checked:after,.kpt-data-table__checkbox input[type=radio]:checked:after{opacity:1;-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M13 4.5 6.5 11 3 7.5' fill='none' stroke='%23000' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M13 4.5 6.5 11 3 7.5' fill='none' stroke='%23000' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\")}.kpt-data-table__checkbox input[type=checkbox]:indeterminate:after,.kpt-data-table__checkbox input[type=radio]:indeterminate:after{opacity:1;-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8h9' fill='none' stroke='%23000' stroke-width='2.25' stroke-linecap='round'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8h9' fill='none' stroke='%23000' stroke-width='2.25' stroke-linecap='round'/%3E%3C/svg%3E\")}.kpt-data-table__checkbox input[type=checkbox]:focus-visible,.kpt-data-table__checkbox input[type=radio]:focus-visible{outline:var(--%NS%kpt-border-width-medium, 2px) solid var(--%NS%kpt-color-focus-ring);outline-offset:2px}.kpt-data-table__checkbox input[type=radio]{border-radius:50%}.kpt-data-table__checkbox input[type=radio]:checked:after{-webkit-mask-image:none;mask-image:none;inset:25%;border-radius:50%}.kpt-data-table__expander{width:2.5rem;min-width:2.5rem;text-align:center;white-space:nowrap}.kpt-data-table__expander-btn{display:inline-flex;align-items:center;justify-content:center;width:1.75rem;height:1.75rem;padding:0;border:none;border-radius:var(--%NS%kpt-radius-sm, .25rem);background:transparent;color:var(--%NS%kpt-color-on-surface-muted);cursor:pointer;transition:background-color 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-data-table__expander-btn .kpt-icon-host{display:inline-flex;transition:transform var(--%NS%kpt-motion-duration-fast, .12s) var(--%NS%kpt-motion-easing-standard)}.kpt-data-table__expander-btn:hover{background:var(--%NS%kpt-table-row-hover);color:var(--%NS%kpt-color-on-surface)}.kpt-data-table__expander-btn:focus-visible{outline:var(--%NS%kpt-border-width-medium, 2px) solid var(--%NS%kpt-color-focus-ring);outline-offset:2px}.kpt-data-table__expander-btn--open{color:var(--%NS%kpt-color-primary)}.kpt-data-table__expander-btn--open .kpt-icon-host{transform:rotate(90deg)}.kpt-data-table__detail-row>.kpt-data-table__detail{padding:var(--%NS%kpt-space-4, 1rem);background:var(--%NS%kpt-table-detail-bg, var(--%NS%kpt-color-surface-variant, var(--%NS%kpt-table-row-hover)));border-bottom:var(--%NS%kpt-border-width-thin, 1px) solid var(--%NS%kpt-table-border);box-shadow:inset 3px 0 0 0 var(--%NS%kpt-color-primary)}.kpt-data-table tbody tr{transition:background-color var(--%NS%kpt-motion-duration-fast, .12s) var(--%NS%kpt-motion-easing-standard)}.kpt-data-table tbody tr:hover{background:var(--%NS%kpt-table-row-hover)}.kpt-data-table tbody tr.kpt-data-table__detail-row:hover{background:transparent}.kpt-data-table__row--selected{background:var(--%NS%kpt-table-row-selected)!important}.kpt-data-table__row--clickable{cursor:pointer}.kpt-data-table__row--%NS%clickable:focus-visible{outline:var(--%NS%kpt-border-width-medium, 2px) solid var(--%NS%kpt-color-focus-ring);outline-offset:-2px}.kpt-data-table__row--expanded{background:var(--%NS%kpt-table-row-hover)}.kpt-data-table__table--frozen .kpt-data-table__checkbox{width:3rem;min-width:3rem}.kpt-data-table__table--frozen .kpt-data-table__expander{width:2.5rem;min-width:2.5rem}.kpt-data-table__cell--frozen{position:sticky;z-index:1;background:var(--%NS%kpt-table-bg);box-shadow:inset calc(-1 * var(--%NS%kpt-border-width-thin, 1px)) 0 0 var(--%NS%kpt-table-border)}.kpt-data-table thead th.kpt-data-table__cell--frozen{z-index:3;background:var(--%NS%kpt-table-header-bg)}.kpt-data-table tfoot th.kpt-data-table__cell--frozen,.kpt-data-table tfoot td.kpt-data-table__cell--frozen{z-index:3;background:var(--%NS%kpt-table-summary-bg, var(--%NS%kpt-table-header-bg))}.kpt-data-table tbody tr:hover .kpt-data-table__cell--frozen{background:var(--%NS%kpt-table-row-hover)}.kpt-data-table__row--selected.kpt-data-table__row--selected .kpt-data-table__cell--frozen,.kpt-data-table tbody tr.kpt-data-table__row--selected .kpt-data-table__cell--frozen{background:var(--%NS%kpt-table-row-selected)}.kpt-data-table__state{padding:var(--%NS%kpt-space-8, 2rem)!important;text-align:center!important;color:var(--%NS%kpt-color-on-surface-muted)}.kpt-data-table__table--virtual td{padding-block:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.kpt-data-table__spacer td{padding:0!important;border:0!important}.kpt-data-table__table--virtual{table-layout:fixed;min-width:100%}.kpt-data-table__table--virtual th{overflow:hidden;text-overflow:ellipsis}.kpt-data-table__col-expander{width:2.5rem}.kpt-data-table__col-checkbox{width:3rem}.kpt-data-table__hspacer{padding:0!important}.kpt-data-table thead .kpt-data-table__hspacer{position:sticky;top:0;background:var(--%NS%kpt-table-header-bg)}.kpt-data-table thead tr:nth-child(2) .kpt-data-table__hspacer{top:var(--%NS%kpt-thead-offset, 0px)}.kpt-data-table thead tr:nth-child(3) .kpt-data-table__hspacer{top:var(--%NS%kpt-thead-offset-2, 0px)}.kpt-data-table__group{padding-block:var(--%NS%kpt-space-2, .5rem)!important;text-align:center!important;font-size:var(--%NS%kpt-font-size-xs, .75rem);letter-spacing:.02em;color:var(--%NS%kpt-color-on-surface-muted);box-shadow:inset 0 calc(-1 * var(--%NS%kpt-border-width-thick, 2px)) 0 var(--%NS%kpt-color-border)}.kpt-data-table__group--empty{box-shadow:none}.kpt-data-table tbody tr:last-child td{border-bottom:0}}\n"], encapsulation: 2 }); }
|
|
16940
17332
|
}
|
|
16941
17333
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(KptDataTable, [{
|
|
16942
17334
|
type: Component,
|
|
@@ -16955,9 +17347,10 @@ class KptDataTable {
|
|
|
16955
17347
|
], host: {
|
|
16956
17348
|
'class': 'kpt-data-table',
|
|
16957
17349
|
'[style.--kpt-thead-offset]': "theadOffset() + 'px'",
|
|
16958
|
-
}, template: "@if (filterable() || exportable()) {\r\n <div class=\"kpt-data-table__toolbar\">\r\n @if (filterable()) {\r\n <div class=\"kpt-data-table__search\" [attr.data-speech]=\"filterSpeechState()\">\r\n <input\r\n #filterEl\r\n class=\"kpt-data-table__filter\"\r\n type=\"search\"\r\n [attr.placeholder]=\"i18n.t('dataTable.search')\"\r\n [attr.aria-label]=\"i18n.t('dataTable.search')\"\r\n [value]=\"filterInput()\"\r\n (input)=\"onFilter($event)\"\r\n />\r\n @if (filterSpeech()) {\r\n <!-- Filtr g\u0142osem: pole czy\u015Bci si\u0119 po klikni\u0119ciu, a podyktowana fraza wchodzi przez (input)\r\n jak wpisana - z tym samym op\u00F3\u017Anieniem dla du\u017Cych danych. -->\r\n <kpt-speech-button\r\n class=\"kpt-data-table__speech\"\r\n size=\"sm\"\r\n unsupported=\"hide\"\r\n mode=\"replace\"\r\n [continuous]=\"false\"\r\n [target]=\"filterEl\"\r\n [lang]=\"filterSpeechLang()\"\r\n [listeningColor]=\"filterSpeechColor()\"\r\n />\r\n }\r\n </div>\r\n }\r\n @if (exportable()) {\r\n <kpt-button variant=\"outline\" size=\"sm\" (click)=\"exportCsv()\">{{ i18n.t('dataTable.exportCsv') }}</kpt-button>\r\n }\r\n </div>\r\n}\r\n\r\n<div class=\"kpt-data-table__scroll\" #scrollEl [style.max-height]=\"scrollHeight()\" (scroll)=\"onScroll($event)\">\r\n <table\r\n class=\"kpt-data-table__table\"\r\n [class.kpt-data-table__table--frozen]=\"hasFrozen()\"\r\n [class.kpt-data-table__table--virtual]=\"virtualScroll()\"\r\n [style.width.px]=\"tableWidth()\"\r\n [attr.aria-label]=\"ariaLabel()\"\r\n [attr.aria-busy]=\"loading() ? 'true' : null\"\r\n [attr.aria-rowcount]=\"ariaRowCount()\"\r\n [attr.aria-colcount]=\"ariaColCount()\"\r\n >\r\n @if (caption()) {\r\n <caption class=\"kpt-data-table__caption\"><span class=\"kpt-data-table__caption-text\">{{ caption() }}</span></caption>\r\n }\r\n @if (virtualScroll()) {\r\n <!-- `table-layout: fixed` bierze szeroko\u015Bci st\u0105d - okno kolumn nie przelicza uk\u0142adu tabeli. -->\r\n <colgroup>\r\n @if (hasRowDetail()) {\r\n <col class=\"kpt-data-table__col-expander\" />\r\n }\r\n @if (selectable() !== 'none') {\r\n <col class=\"kpt-data-table__col-checkbox\" />\r\n }\r\n @for (slot of slots(); track slot.key) {\r\n <col [style.width.px]=\"slot.width\" />\r\n }\r\n </colgroup>\r\n }\r\n <thead #theadEl>\r\n @if (hasColumnFilters() && filterRowPosition() === 'top') {\r\n <ng-container [ngTemplateOutlet]=\"filterRowTpl\" [ngTemplateOutletContext]=\"{ $implicit: 1 }\" />\r\n }\r\n <tr [attr.aria-rowindex]=\"virtualScroll() ? (hasColumnFilters() && filterRowPosition() === 'top' ? 2 : 1) : null\">\r\n @if (hasRowDetail()) {\r\n <th class=\"kpt-data-table__expander\" [class.kpt-data-table__cell--frozen]=\"hasFrozen()\" [style.left.px]=\"expanderStickyLeft()\"></th>\r\n }\r\n @if (selectable() === 'multiple') {\r\n <th class=\"kpt-data-table__checkbox\" [class.kpt-data-table__cell--frozen]=\"hasFrozen()\" [style.left.px]=\"checkboxStickyLeft()\">\r\n <input\r\n type=\"checkbox\"\r\n [checked]=\"pageAllSelected()\"\r\n [indeterminate]=\"pageSomeSelected()\"\r\n (change)=\"toggleAllOnPage()\"\r\n [attr.aria-label]=\"i18n.t('dataTable.selectAll')\"\r\n />\r\n </th>\r\n } @else if (selectable() === 'single') {\r\n <th class=\"kpt-data-table__checkbox\" [class.kpt-data-table__cell--frozen]=\"hasFrozen()\" [style.left.px]=\"checkboxStickyLeft()\"></th>\r\n }\r\n @for (slot of slots(); track slot.key) {\r\n @if (slot.meta; as m) {\r\n <th\r\n [attr.draggable]=\"isColDraggable(m.col) ? true : null\"\r\n [style.width]=\"virtualScroll() ? null : m.col.width\"\r\n [style.left.px]=\"m.left\"\r\n [attr.data-align]=\"m.align\"\r\n [attr.aria-colindex]=\"colIndex(m)\"\r\n [class.kpt-data-table__cell--frozen]=\"m.frozen\"\r\n [class.kpt-data-table__th--sortable]=\"m.col.sortable\"\r\n [class.kpt-data-table__th--draggable]=\"isColDraggable(m.col)\"\r\n [class.kpt-data-table__th--dragover]=\"dragField() !== null && dragField() !== m.col.field && !m.col.frozen\"\r\n [attr.data-field]=\"m.col.field\"\r\n [attr.aria-sort]=\"m.col.sortable ? ariaSort(m.col) : null\"\r\n (dragstart)=\"onColDragStart(m.col.field, $event)\"\r\n (dragover)=\"reorderable() ? onColDragOver(m.col.field, $event) : null\"\r\n (drop)=\"reorderable() ? onColDrop(m.col.field, $event) : null\"\r\n (dragend)=\"onColDragEnd()\"\r\n >\r\n @if (isColDraggable(m.col)) {\r\n <!--\r\n Uchwyt to przycisk: strza\u0142ki <- -> przestawiaj\u0105 kolumn\u0119 bez myszy (WCAG 2.1.1),\r\n a przeci\u0105ganie nadal dzia\u0142a na ca\u0142ym nag\u0142\u00F3wku.\r\n -->\r\n <button\r\n type=\"button\"\r\n class=\"kpt-data-table__grip\"\r\n [attr.aria-label]=\"i18n.t('dataTable.moveColumn', { column: m.col.header })\"\r\n aria-keyshortcuts=\"ArrowLeft ArrowRight\"\r\n (keydown)=\"onGripKeydown(m.col.field, $event)\"\r\n >\r\n <kpt-icon name=\"grip-vertical\" />\r\n </button>\r\n }\r\n @if (m.col.sortable) {\r\n <!-- APG \"Sortable Table\": przycisk w nag\u0142\u00F3wku, aria-sort na <th>. -->\r\n <button type=\"button\" class=\"kpt-data-table__sort-btn\" (click)=\"toggleSort(m.col)\">\r\n <span>{{ m.col.header }}</span>\r\n <kpt-icon\r\n class=\"kpt-data-table__sort\"\r\n [class.kpt-data-table__sort--active]=\"ariaSort(m.col) !== 'none'\"\r\n [name]=\"sortIconName(m.col)\"\r\n />\r\n </button>\r\n } @else {\r\n <span>{{ m.col.header }}</span>\r\n }\r\n </th>\r\n } @else {\r\n <td class=\"kpt-data-table__hspacer\" aria-hidden=\"true\"></td>\r\n }\r\n }\r\n </tr>\r\n @if (hasColumnFilters() && filterRowPosition() === 'bottom') {\r\n <ng-container [ngTemplateOutlet]=\"filterRowTpl\" [ngTemplateOutletContext]=\"{ $implicit: 2 }\" />\r\n }\r\n </thead>\r\n <tbody>\r\n @if (loading()) {\r\n <tr><td class=\"kpt-data-table__state\" [attr.colspan]=\"colspan()\">{{ i18n.t('dataTable.loading') }}</td></tr>\r\n } @else if (displayCount() === 0) {\r\n <tr><td class=\"kpt-data-table__state\" [attr.colspan]=\"colspan()\">{{ emptyText() }}</td></tr>\r\n } @else if (virtualScroll()) {\r\n @if (topPad() > 0) {\r\n <tr class=\"kpt-data-table__spacer\" aria-hidden=\"true\"><td [attr.colspan]=\"colspan()\" [style.height.px]=\"topPad()\"></td></tr>\r\n }\r\n @for (row of virtualRows(); track trackRow(row); let i = $index) {\r\n <ng-container\r\n [ngTemplateOutlet]=\"rowTpl\"\r\n [ngTemplateOutletContext]=\"{ $implicit: row, rowIndex: headerRowCount() + virtualStart() + i + 1 }\"\r\n />\r\n }\r\n @if (bottomPad() > 0) {\r\n <tr class=\"kpt-data-table__spacer\" aria-hidden=\"true\"><td [attr.colspan]=\"colspan()\" [style.height.px]=\"bottomPad()\"></td></tr>\r\n }\r\n } @else {\r\n @for (row of paged(); track trackRow(row)) {\r\n <ng-container [ngTemplateOutlet]=\"rowTpl\" [ngTemplateOutletContext]=\"{ $implicit: row, rowIndex: null }\" />\r\n }\r\n }\r\n </tbody>\r\n @if (hasSummary() && !loading() && displayCount() > 0) {\r\n @let summary = summarySlots();\r\n <tfoot>\r\n <tr class=\"kpt-data-table__summary\" [attr.aria-rowindex]=\"ariaRowCount()\">\r\n @if (summary.systemSpan > 0) {\r\n <td class=\"kpt-data-table__cell--frozen\" [attr.colspan]=\"summary.systemSpan\" [style.left.px]=\"0\"></td>\r\n }\r\n @if (summary.labelSpan > 0) {\r\n <th\r\n class=\"kpt-data-table__summary-label\"\r\n [attr.colspan]=\"summary.labelSpan\"\r\n [class.kpt-data-table__cell--frozen]=\"summary.labelSticky\"\r\n [style.left.px]=\"summary.labelSticky ? 0 : null\"\r\n >\r\n {{ summaryLabelText() }}\r\n </th>\r\n }\r\n @for (slot of summary.slots; track slot.key) {\r\n @if (slot.meta; as m) {\r\n <td\r\n [attr.data-align]=\"m.col.align ?? 'end'\"\r\n [style.width]=\"virtualScroll() ? null : m.col.width\"\r\n [style.left.px]=\"m.left\"\r\n [attr.aria-colindex]=\"colIndex(m)\"\r\n [class.kpt-data-table__cell--frozen]=\"m.frozen\"\r\n >\r\n {{ summaryText(m.col.field) }}\r\n </td>\r\n } @else {\r\n <td class=\"kpt-data-table__hspacer\" aria-hidden=\"true\"></td>\r\n }\r\n }\r\n </tr>\r\n </tfoot>\r\n }\r\n </table>\r\n</div>\r\n\r\n<div class=\"kpt-data-table__live\" aria-live=\"polite\">{{ moveAnnouncement() }}</div>\r\n<!-- Opisy kom\u00F3rek edytowalnych: nazw\u0105 kom\u00F3rki zostaje jej warto\u015B\u0107, `aria-describedby` dodaje \"Edytuj: ...\". -->\r\n<div hidden>\r\n @for (col of visibleOrderedColumns(); track col.field; let i = $index) {\r\n @if (isEditable(col)) {\r\n <span [id]=\"editHintId(i)\">{{ i18n.t('dataTable.editCell', { column: col.header }) }}</span>\r\n }\r\n }\r\n</div>\r\n\r\n<ng-template #rowTpl let-row let-rowIndex=\"rowIndex\">\r\n @let selected = isSelected(row);\r\n <tr\r\n [class.kpt-data-table__row--selected]=\"selected\"\r\n [class.kpt-data-table__row--expanded]=\"hasRowDetail() && isExpanded(row)\"\r\n [class.kpt-data-table__row--clickable]=\"clickableRows()\"\r\n [style.height.px]=\"virtualScroll() ? rowHeight() : null\"\r\n [attr.aria-rowindex]=\"rowIndex\"\r\n [attr.tabindex]=\"clickableRows() ? 0 : null\"\r\n (click)=\"onRowClick(row)\"\r\n (keydown)=\"clickableRows() ? onRowKeydown(row, $event) : null\"\r\n >\r\n @if (hasRowDetail()) {\r\n <td class=\"kpt-data-table__expander\" [class.kpt-data-table__cell--frozen]=\"hasFrozen()\" [style.left.px]=\"expanderStickyLeft()\">\r\n <button\r\n type=\"button\"\r\n class=\"kpt-data-table__expander-btn\"\r\n [class.kpt-data-table__expander-btn--open]=\"isExpanded(row)\"\r\n [attr.aria-expanded]=\"isExpanded(row)\"\r\n [attr.aria-label]=\"i18n.t('dataTable.expandRow')\"\r\n (click)=\"$event.stopPropagation(); toggleExpand(row)\"\r\n >\r\n <kpt-icon name=\"chevron-right\" />\r\n </button>\r\n </td>\r\n }\r\n @if (selectable() !== 'none') {\r\n <td class=\"kpt-data-table__checkbox\" [class.kpt-data-table__cell--frozen]=\"hasFrozen()\" [style.left.px]=\"checkboxStickyLeft()\">\r\n <!-- Wyb\u00F3r jednego wiersza to radio (czytnik og\u0142asza \"1 z N\"); klik w zaznaczone odznacza, jak dot\u0105d. -->\r\n <input\r\n [type]=\"selectable() === 'single' ? 'radio' : 'checkbox'\"\r\n [attr.name]=\"selectable() === 'single' ? radioName : null\"\r\n [checked]=\"selected\"\r\n (click)=\"$event.stopPropagation(); toggleRow(row)\"\r\n [attr.aria-label]=\"i18n.t('dataTable.selectRow')\"\r\n />\r\n </td>\r\n }\r\n @for (slot of slots(); track slot.key) {\r\n @if (slot.meta; as m) {\r\n <!-- Edytor sprawdzamy tylko, gdy jakakolwiek kom\u00F3rka jest w edycji - reszta to odczyt gotowych cech kolumny. -->\r\n @let editing = m.editable && editingCell() !== null && isEditingCell(row, m.col.field);\r\n @let editTarget = m.editable && !editing;\r\n <td\r\n [attr.data-align]=\"m.align\"\r\n [style.left.px]=\"m.left\"\r\n [attr.aria-colindex]=\"colIndex(m)\"\r\n [class.kpt-data-table__cell--frozen]=\"m.frozen\"\r\n [class.kpt-data-table__cell--editable]=\"editTarget\"\r\n [attr.tabindex]=\"editTarget ? 0 : null\"\r\n [attr.aria-describedby]=\"editTarget ? editHintId(m.index) : null\"\r\n (click)=\"m.editable ? startEdit(row, m.col, $event) : null\"\r\n (keydown.enter)=\"editTarget ? startEdit(row, m.col, $event) : null\"\r\n >\r\n @if (editing) {\r\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- stopPropagation: klik w edytorze/filtrze nie sortuje ani nie zaznacza wiersza - to nie akcja -->\r\n <div\r\n class=\"kpt-data-table__editor\"\r\n #editorHost\r\n (click)=\"$event.stopPropagation()\"\r\n (focusout)=\"onEditorFocusOut($event)\"\r\n >\r\n @if (cellEditTemplate(m.col.field); as etpl) {\r\n <ng-container\r\n [ngTemplateOutlet]=\"etpl\"\r\n [ngTemplateOutletContext]=\"{ $implicit: editingValue(), row, commit: commitEditValue, cancel: cancelEdit }\"\r\n />\r\n } @else {\r\n @switch (m.col.edit?.type) {\r\n @case ('text') {\r\n <kpt-input\r\n [value]=\"$any(editingValue()) ?? ''\"\r\n [placeholder]=\"m.col.edit.placeholder ?? ''\"\r\n (valueChange)=\"editingValue.set($event)\"\r\n (keydown.enter)=\"commitEdit()\"\r\n (keydown.escape)=\"cancelEdit()\"\r\n />\r\n }\r\n @case ('number') {\r\n <kpt-input-number\r\n [value]=\"$any(editingValue())\"\r\n [min]=\"m.col.edit.min\"\r\n [max]=\"m.col.edit.max\"\r\n [step]=\"m.col.edit.step ?? 1\"\r\n (valueChange)=\"editingValue.set($event)\"\r\n (keydown.enter)=\"commitEdit()\"\r\n (keydown.escape)=\"cancelEdit()\"\r\n />\r\n }\r\n @case ('date') {\r\n <kpt-datepicker\r\n [value]=\"$any(editingValue()) ?? ''\"\r\n (valueChange)=\"editingValue.set($event)\"\r\n [open]=\"editorPanelOpen()\"\r\n (openChange)=\"onEditorPanelToggle($event)\"\r\n />\r\n }\r\n @case ('select') {\r\n <kpt-select\r\n [options]=\"m.col.edit.options ?? []\"\r\n [placeholder]=\"m.col.edit.placeholder ?? ''\"\r\n [value]=\"editingValue()\"\r\n (valueChange)=\"editingValue.set($event)\"\r\n [open]=\"editorPanelOpen()\"\r\n (openChange)=\"onEditorPanelToggle($event)\"\r\n />\r\n }\r\n @case ('multiselect') {\r\n <kpt-select\r\n multiple\r\n filter\r\n [options]=\"m.col.edit.options ?? []\"\r\n [placeholder]=\"m.col.edit.placeholder ?? ''\"\r\n [value]=\"editingValue()\"\r\n (valueChange)=\"editingValue.set($event)\"\r\n [open]=\"editorPanelOpen()\"\r\n (openChange)=\"onEditorPanelToggle($event)\"\r\n />\r\n }\r\n }\r\n }\r\n </div>\r\n } @else if (m.cellTpl) {\r\n <ng-container\r\n [ngTemplateOutlet]=\"m.cellTpl\"\r\n [ngTemplateOutletContext]=\"{ $implicit: row, value: getValue(row, m.col.field) }\"\r\n />\r\n } @else {\r\n {{ getValue(row, m.col.field) }}\r\n }\r\n </td>\r\n } @else {\r\n <td class=\"kpt-data-table__hspacer\" aria-hidden=\"true\"></td>\r\n }\r\n }\r\n </tr>\r\n @if (hasRowDetail() && isExpanded(row) && !virtualScroll()) {\r\n <tr class=\"kpt-data-table__detail-row\">\r\n <td class=\"kpt-data-table__detail\" [attr.colspan]=\"colspan()\">\r\n <ng-container [ngTemplateOutlet]=\"rowDetailTpl()\" [ngTemplateOutletContext]=\"{ $implicit: row }\" />\r\n </td>\r\n </tr>\r\n }\r\n</ng-template>\r\n\r\n<ng-template #filterRowTpl let-rowIndex>\r\n <tr class=\"kpt-data-table__filter-row\" [attr.aria-rowindex]=\"virtualScroll() ? rowIndex : null\">\r\n @if (hasRowDetail()) {\r\n <th class=\"kpt-data-table__expander\" [class.kpt-data-table__cell--frozen]=\"hasFrozen()\" [style.left.px]=\"expanderStickyLeft()\"></th>\r\n }\r\n @if (selectable() !== 'none') {\r\n <th class=\"kpt-data-table__checkbox\" [class.kpt-data-table__cell--frozen]=\"hasFrozen()\" [style.left.px]=\"checkboxStickyLeft()\"></th>\r\n }\r\n @for (slot of slots(); track slot.key) {\r\n @if (slot.meta; as m) {\r\n <th\r\n [style.width]=\"virtualScroll() ? null : m.col.width\"\r\n [style.left.px]=\"m.left\"\r\n [attr.data-align]=\"m.align\"\r\n [attr.aria-colindex]=\"colIndex(m)\"\r\n [class.kpt-data-table__cell--frozen]=\"m.frozen\"\r\n >\r\n @switch (m.col.filter?.type) {\r\n @case ('text') {\r\n <input\r\n class=\"kpt-data-table__fcell\"\r\n type=\"search\"\r\n [attr.placeholder]=\"m.col.filter.placeholder || ''\"\r\n [attr.aria-label]=\"i18n.t('dataTable.filter', { column: m.col.header })\"\r\n [value]=\"$any(columnFilters()[m.col.field]) || ''\"\r\n (input)=\"setColumnFilter(m.col.field, $any($event.target).value)\"\r\n (click)=\"$event.stopPropagation()\"\r\n />\r\n }\r\n @case ('number') {\r\n <input\r\n class=\"kpt-data-table__fcell\"\r\n type=\"text\"\r\n inputmode=\"numeric\"\r\n [attr.placeholder]=\"m.col.filter.placeholder || ''\"\r\n [attr.aria-label]=\"i18n.t('dataTable.filter', { column: m.col.header })\"\r\n [value]=\"$any(columnFilters()[m.col.field]) || ''\"\r\n (input)=\"onNumberFilter(m.col.field, $event)\"\r\n (click)=\"$event.stopPropagation()\"\r\n />\r\n }\r\n @case ('select') {\r\n <kpt-select\r\n [options]=\"m.col.filter.options || []\"\r\n [multiple]=\"!!m.col.filter.multiple\"\r\n filter\r\n [placeholder]=\"m.col.filter.placeholder || i18n.t('dataTable.all')\"\r\n [value]=\"columnFilters()[m.col.field] ?? null\"\r\n (valueChange)=\"setColumnFilter(m.col.field, $event)\"\r\n />\r\n }\r\n @case ('numberRange') {\r\n <div class=\"kpt-data-table__frange\">\r\n <input\r\n class=\"kpt-data-table__fcell\"\r\n type=\"text\"\r\n inputmode=\"numeric\"\r\n [attr.placeholder]=\"i18n.t('dataTable.min')\"\r\n [attr.aria-label]=\"i18n.t('dataTable.filterMin', { column: m.col.header })\"\r\n [value]=\"rangeVal(m.col.field).min\"\r\n (input)=\"setRangeFilter(m.col.field, 'min', $event)\"\r\n (click)=\"$event.stopPropagation()\"\r\n />\r\n <input\r\n class=\"kpt-data-table__fcell\"\r\n type=\"text\"\r\n inputmode=\"numeric\"\r\n [attr.placeholder]=\"i18n.t('dataTable.max')\"\r\n [attr.aria-label]=\"i18n.t('dataTable.filterMax', { column: m.col.header })\"\r\n [value]=\"rangeVal(m.col.field).max\"\r\n (input)=\"setRangeFilter(m.col.field, 'max', $event)\"\r\n (click)=\"$event.stopPropagation()\"\r\n />\r\n </div>\r\n }\r\n @case ('slider') {\r\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- stopPropagation: klik w edytorze/filtrze nie sortuje ani nie zaznacza wiersza - to nie akcja -->\r\n <div class=\"kpt-data-table__fslider\" (click)=\"$event.stopPropagation()\">\r\n <kpt-slider\r\n range\r\n [min]=\"m.col.filter.min ?? 0\"\r\n [max]=\"m.col.filter.max ?? 100\"\r\n [step]=\"m.col.filter.step ?? 1\"\r\n [value]=\"sliderVal(m.col)\"\r\n (valueChange)=\"setColumnFilter(m.col.field, $event)\"\r\n showValue\r\n />\r\n </div>\r\n }\r\n @case ('dateRange') {\r\n <kpt-date-range\r\n [placeholder]=\"m.col.filter.placeholder || i18n.t('dataTable.dateRange')\"\r\n [value]=\"$any(columnFilters()[m.col.field]) || { start: '', end: '' }\"\r\n (valueChange)=\"setColumnFilter(m.col.field, $event)\"\r\n />\r\n }\r\n }\r\n </th>\r\n } @else {\r\n <td class=\"kpt-data-table__hspacer\" aria-hidden=\"true\"></td>\r\n }\r\n }\r\n </tr>\r\n</ng-template>\r\n\r\n@if (pageSize() > 0 && !virtualScroll()) {\r\n <div class=\"kpt-data-table__pager\">\r\n <ng-content select=\"[kptPaginatorActions]\" />\r\n <kpt-paginator\r\n [length]=\"filteredCount()\"\r\n [pageIndex]=\"pageIndex()\"\r\n [pageSize]=\"pageSizeState()\"\r\n [pageSizeOptions]=\"pageSizeOptions()\"\r\n (pageIndexChange)=\"pageIndex.set($event)\"\r\n (pageSizeChange)=\"pageSizeState.set($event)\"\r\n />\r\n </div>\r\n}\r\n", styles: ["@layer kpt.components{.kpt-data-table{display:flex;flex-direction:column;background:var(--kpt-table-bg);color:var(--kpt-table-fg);border:var(--kpt-border-width-thin, 1px) solid var(--kpt-table-border);border-radius:var(--kpt-table-radius, .75rem);overflow:hidden;flex-grow:1}.kpt-data-table__toolbar{display:flex;align-items:center;justify-content:space-between;gap:var(--kpt-space-3, .75rem);padding:var(--kpt-space-3, .75rem);border-bottom:var(--kpt-border-width-thin, 1px) solid var(--kpt-table-border)}.kpt-data-table__filter{width:100%;max-width:20rem;height:2.25rem;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);background:var(--kpt-form-field-bg);color:var(--kpt-form-field-text)}.kpt-data-table__filter: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-data-table__search{position:relative;width:100%;max-width:20rem}.kpt-data-table__search[data-speech] .kpt-data-table__filter{padding-inline-end:2.5rem}.kpt-data-table__search[data-speech=listening] .kpt-data-table__filter{padding-inline-end:4.5rem}.kpt-data-table__speech{position:absolute;inset-block:0;inset-inline-end:var(--kpt-space-1, .25rem);gap:var(--kpt-space-1, .25rem)}.kpt-data-table__scroll{overflow:auto}.kpt-data-table__pager{display:flex;align-items:center;gap:var(--kpt-space-2, .5rem)}.kpt-data-table__pager [kptPaginatorActions]{margin-inline-start:.5rem}.kpt-data-table__pager .kpt-paginator{flex:1 1 auto;min-width:0}.kpt-data-table__table{width:100%;border-collapse:separate;border-spacing:0;font-size:var(--kpt-font-size-sm, .875rem)}.kpt-data-table__table--frozen{width:max-content;min-width:100%}.kpt-data-table__table th,.kpt-data-table__table td{padding:var(--kpt-table-cell-padding, .75rem);text-align:start;border-bottom:var(--kpt-border-width-thin, 1px) solid var(--kpt-table-border)}.kpt-data-table__table th[data-align=center],.kpt-data-table__table td[data-align=center]{text-align:center}.kpt-data-table__table th[data-align=end],.kpt-data-table__table td[data-align=end]{text-align:end}.kpt-data-table__table thead th{position:sticky;top:0;z-index:1;background:var(--kpt-table-header-bg);color:var(--kpt-table-header-fg);font-weight:var(--kpt-font-weight-semibold, 600);white-space:nowrap;-webkit-user-select:none;user-select:none}.kpt-data-table__table thead tr:nth-child(2) th{top:var(--kpt-thead-offset, 0px)}.kpt-data-table__table tfoot th,.kpt-data-table__table tfoot td{position:sticky;bottom:0;z-index:1;background:var(--kpt-table-summary-bg, var(--kpt-table-header-bg));color:var(--kpt-table-header-fg);font-weight:var(--kpt-font-weight-semibold, 600);white-space:nowrap;border-bottom:0;border-top:var(--kpt-border-width-thin, 1px) solid var(--kpt-table-border)}.kpt-data-table__filter-row{--_filter-h: 2rem}.kpt-data-table__filter-row th{height:calc(var(--_filter-h) + 2 * var(--kpt-space-2, .5rem) + var(--kpt-border-width-thin, 1px));padding:var(--kpt-space-2, .5rem);font-weight:var(--kpt-font-weight-normal, 400);cursor:auto}.kpt-data-table__filter-row .kpt-select{min-height:var(--_filter-h);padding-block:0}.kpt-data-table__filter-row .kpt-date-range{height:var(--_filter-h)}.kpt-data-table__fcell{width:100%;height:var(--_filter-h);box-sizing:border-box;font-size:var(--kpt-font-size-sm, .875rem);padding-inline:var(--kpt-space-2, .5rem);border:var(--kpt-border-width-thin, 1px) solid var(--kpt-form-field-border);border-radius:var(--kpt-form-field-radius, .5rem);background:var(--kpt-form-field-bg);color:var(--kpt-form-field-text);font-family:inherit}.kpt-data-table__fcell: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-data-table__filter-row .kpt-select-host,.kpt-data-table__filter-row .kpt-date-range-host{display:block;width:100%;font-weight:var(--kpt-font-weight-normal, 400)}.kpt-data-table__frange{display:flex;gap:var(--kpt-space-2, .5rem)}.kpt-data-table__frange .kpt-data-table__fcell{min-width:0}.kpt-data-table__fslider .kpt-slider-host{width:100%}.kpt-data-table__fslider .kpt-slider__value{min-width:auto;font-size:var(--kpt-font-size-xs, .75rem);color:var(--kpt-color-on-surface-muted)}.kpt-data-table__th--sortable:hover{color:var(--kpt-color-on-surface)}.kpt-data-table__sort-btn{display:inline-flex;align-items:center;padding:0;border:0;background:none;font:inherit;color:inherit;text-align:inherit;cursor:pointer;border-radius:var(--kpt-radius-sm, .25rem)}.kpt-data-table__sort-btn:focus-visible{outline:var(--kpt-border-width-medium, 2px) solid var(--kpt-color-focus-ring);outline-offset:2px}.kpt-data-table__caption{caption-side:top;padding:var(--kpt-space-3, .75rem) var(--kpt-table-cell-padding, .75rem) var(--kpt-space-2, .5rem);text-align:start;font-weight:var(--kpt-font-weight-semibold, 600);color:var(--kpt-color-on-surface)}.kpt-data-table__caption-text{position:sticky;inset-inline-start:var(--kpt-table-cell-padding, .75rem)}.kpt-data-table__live{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.kpt-data-table__cell--editable{cursor:pointer}.kpt-data-table__cell--editable:hover{background:var(--kpt-table-row-hover)}.kpt-data-table__cell--editable:focus-visible{outline:var(--kpt-border-width-medium, 2px) solid var(--kpt-color-focus-ring);outline-offset:-2px}.kpt-data-table__editor{display:block;min-width:8rem}.kpt-data-table__editor .kpt-input-number-host{max-width:6.5rem}.kpt-data-table__editor .kpt-input-number__btn{width:1.75rem}.kpt-data-table__sort{margin-inline-start:.35em;opacity:.35}.kpt-data-table__sort--active{opacity:1}.kpt-data-table__th--draggable{cursor:grab}.kpt-data-table__th--draggable:active{cursor:grabbing}.kpt-data-table__th--dragover{box-shadow:inset 2px 0 0 0 var(--kpt-color-primary)}.kpt-data-table__grip{display:inline-flex;align-items:center;margin-inline-end:.4em;padding:0;border:0;background:none;color:inherit;opacity:.45;cursor:inherit;border-radius:var(--kpt-radius-sm, .25rem)}.kpt-data-table__grip:hover,.kpt-data-table__grip:focus-visible{opacity:1}.kpt-data-table__grip:focus-visible{outline:var(--kpt-border-width-medium, 2px) solid var(--kpt-color-focus-ring);outline-offset:1px}.kpt-data-table__checkbox{width:1px;white-space:nowrap;text-align:center}.kpt-data-table__checkbox input[type=checkbox],.kpt-data-table__checkbox input[type=radio]{appearance:none;-webkit-appearance:none;position:relative;display:inline-block;width:1.15rem;height:1.15rem;margin:0;vertical-align:middle;cursor:pointer;border:var(--kpt-border-width-medium, 2px) solid var(--kpt-form-field-border);border-radius:var(--kpt-radius-sm, .25rem);background:var(--kpt-form-field-bg);transition:background-color var(--kpt-motion-duration-fast, .12s) var(--kpt-motion-easing-standard),border-color var(--kpt-motion-duration-fast, .12s) var(--kpt-motion-easing-standard)}.kpt-data-table__checkbox input[type=checkbox]:after,.kpt-data-table__checkbox input[type=radio]:after{content:\"\";position:absolute;inset:0;opacity:0;background-color:var(--kpt-color-on-primary);transition:opacity var(--kpt-motion-duration-fast, .12s) var(--kpt-motion-easing-standard);-webkit-mask:no-repeat center/.85rem;mask:no-repeat center/.85rem}.kpt-data-table__checkbox input[type=checkbox]:checked,.kpt-data-table__checkbox input[type=checkbox]:indeterminate,.kpt-data-table__checkbox input[type=radio]:checked,.kpt-data-table__checkbox input[type=radio]:indeterminate{background:var(--kpt-color-primary);border-color:var(--kpt-color-primary)}.kpt-data-table__checkbox input[type=checkbox]:checked:after,.kpt-data-table__checkbox input[type=radio]:checked:after{opacity:1;-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M13 4.5 6.5 11 3 7.5' fill='none' stroke='%23000' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M13 4.5 6.5 11 3 7.5' fill='none' stroke='%23000' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\")}.kpt-data-table__checkbox input[type=checkbox]:indeterminate:after,.kpt-data-table__checkbox input[type=radio]:indeterminate:after{opacity:1;-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8h9' fill='none' stroke='%23000' stroke-width='2.25' stroke-linecap='round'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8h9' fill='none' stroke='%23000' stroke-width='2.25' stroke-linecap='round'/%3E%3C/svg%3E\")}.kpt-data-table__checkbox input[type=checkbox]:focus-visible,.kpt-data-table__checkbox input[type=radio]:focus-visible{outline:var(--kpt-border-width-medium, 2px) solid var(--kpt-color-focus-ring);outline-offset:2px}.kpt-data-table__checkbox input[type=radio]{border-radius:50%}.kpt-data-table__checkbox input[type=radio]:checked:after{-webkit-mask-image:none;mask-image:none;inset:25%;border-radius:50%}.kpt-data-table__expander{width:2.5rem;min-width:2.5rem;text-align:center;white-space:nowrap}.kpt-data-table__expander-btn{display:inline-flex;align-items:center;justify-content:center;width:1.75rem;height:1.75rem;padding:0;border:none;border-radius:var(--kpt-radius-sm, .25rem);background:transparent;color:var(--kpt-color-on-surface-muted);cursor:pointer;transition:background-color var(--kpt-motion-duration-fast, .12s) var(--kpt-motion-easing-standard),color var(--kpt-motion-duration-fast, .12s) var(--kpt-motion-easing-standard)}.kpt-data-table__expander-btn .kpt-icon-host{display:inline-flex;transition:transform var(--kpt-motion-duration-fast, .12s) var(--kpt-motion-easing-standard)}.kpt-data-table__expander-btn:hover{background:var(--kpt-table-row-hover);color:var(--kpt-color-on-surface)}.kpt-data-table__expander-btn:focus-visible{outline:var(--kpt-border-width-medium, 2px) solid var(--kpt-color-focus-ring);outline-offset:2px}.kpt-data-table__expander-btn--open{color:var(--kpt-color-primary)}.kpt-data-table__expander-btn--open .kpt-icon-host{transform:rotate(90deg)}.kpt-data-table__detail-row>.kpt-data-table__detail{padding:var(--kpt-space-4, 1rem);background:var(--kpt-table-detail-bg, var(--kpt-color-surface-variant, var(--kpt-table-row-hover)));border-bottom:var(--kpt-border-width-thin, 1px) solid var(--kpt-table-border);box-shadow:inset 3px 0 0 0 var(--kpt-color-primary)}.kpt-data-table tbody tr{transition:background-color var(--kpt-motion-duration-fast, .12s) var(--kpt-motion-easing-standard)}.kpt-data-table tbody tr:hover{background:var(--kpt-table-row-hover)}.kpt-data-table tbody tr.kpt-data-table__detail-row:hover{background:transparent}.kpt-data-table__row--selected{background:var(--kpt-table-row-selected)!important}.kpt-data-table__row--clickable{cursor:pointer}.kpt-data-table__row--clickable:focus-visible{outline:var(--kpt-border-width-medium, 2px) solid var(--kpt-color-focus-ring);outline-offset:-2px}.kpt-data-table__row--expanded{background:var(--kpt-table-row-hover)}.kpt-data-table__table--frozen .kpt-data-table__checkbox{width:3rem;min-width:3rem}.kpt-data-table__table--frozen .kpt-data-table__expander{width:2.5rem;min-width:2.5rem}.kpt-data-table__cell--frozen{position:sticky;z-index:1;background:var(--kpt-table-bg);box-shadow:inset calc(-1 * var(--kpt-border-width-thin, 1px)) 0 0 var(--kpt-table-border)}.kpt-data-table thead th.kpt-data-table__cell--frozen{z-index:3;background:var(--kpt-table-header-bg)}.kpt-data-table tfoot th.kpt-data-table__cell--frozen,.kpt-data-table tfoot td.kpt-data-table__cell--frozen{z-index:3;background:var(--kpt-table-summary-bg, var(--kpt-table-header-bg))}.kpt-data-table tbody tr:hover .kpt-data-table__cell--frozen{background:var(--kpt-table-row-hover)}.kpt-data-table__row--selected.kpt-data-table__row--selected .kpt-data-table__cell--frozen,.kpt-data-table tbody tr.kpt-data-table__row--selected .kpt-data-table__cell--frozen{background:var(--kpt-table-row-selected)}.kpt-data-table__state{padding:var(--kpt-space-8, 2rem)!important;text-align:center!important;color:var(--kpt-color-on-surface-muted)}.kpt-data-table__table--virtual td{padding-block:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.kpt-data-table__spacer td{padding:0!important;border:0!important}.kpt-data-table__table--virtual{table-layout:fixed;min-width:100%}.kpt-data-table__table--virtual th{overflow:hidden;text-overflow:ellipsis}.kpt-data-table__col-expander{width:2.5rem}.kpt-data-table__col-checkbox{width:3rem}.kpt-data-table__hspacer{padding:0!important}.kpt-data-table thead .kpt-data-table__hspacer{position:sticky;top:0;background:var(--kpt-table-header-bg)}.kpt-data-table thead tr:nth-child(2) .kpt-data-table__hspacer{top:var(--kpt-thead-offset, 0px)}.kpt-data-table tbody tr:last-child td{border-bottom:0}}\n"] }]
|
|
16959
|
-
}], () => [], { columns: [{ type: i0.Input, args: [{ isSignal: true, alias: "columns", required: true }] }], data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], filterable: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterable", required: false }] }], filterSpeech: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterSpeech", required: false }] }], filterSpeechLang: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterSpeechLang", required: false }] }], filterSpeechColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterSpeechColor", required: false }] }], filterRowPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterRowPosition", required: false }] }], pageSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageSize", required: false }] }], pageSizeOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageSizeOptions", required: false }] }], selectable: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectable", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], caption: [{ type: i0.Input, args: [{ isSignal: true, alias: "caption", required: false }] }], clickableRows: [{ type: i0.Input, args: [{ isSignal: true, alias: "clickableRows", required: false }] }], emptyMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyMessage", required: false }] }], rowKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowKey", required: false }] }], scrollHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollHeight", required: false }] }], virtualScroll: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScroll", required: false }] }], columnWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "columnWidth", required: false }] }], rowHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowHeight", required: false }] }], frozenSystemColumns: [{ type: i0.Input, args: [{ isSignal: true, alias: "frozenSystemColumns", required: false }] }], reorderable: [{ type: i0.Input, args: [{ isSignal: true, alias: "reorderable", required: false }] }], exportable: [{ type: i0.Input, args: [{ isSignal: true, alias: "exportable", required: false }] }], exportFilename: [{ type: i0.Input, args: [{ isSignal: true, alias: "exportFilename", required: false }] }], lazy: [{ type: i0.Input, args: [{ isSignal: true, alias: "lazy", required: false }] }], totalRecords: [{ type: i0.Input, args: [{ isSignal: true, alias: "totalRecords", required: false }] }], expandable: [{ type: i0.Input, args: [{ isSignal: true, alias: "expandable", required: false }] }], multiExpand: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiExpand", required: false }] }], summaryLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "summaryLabel", required: false }] }], summaryValues: [{ type: i0.Input, args: [{ isSignal: true, alias: "summaryValues", required: false }] }], selection: [{ type: i0.Input, args: [{ isSignal: true, alias: "selection", required: false }] }, { type: i0.Output, args: ["selectionChange"] }], expandedRows: [{ type: i0.Input, args: [{ isSignal: true, alias: "expandedRows", required: false }] }, { type: i0.Output, args: ["expandedRowsChange"] }], hiddenFields: [{ type: i0.Input, args: [{ isSignal: true, alias: "hiddenFields", required: false }] }, { type: i0.Output, args: ["hiddenFieldsChange"] }], rowClick: [{ type: i0.Output, args: ["rowClick"] }], lazyLoad: [{ type: i0.Output, args: ["lazyLoad"] }], cellEdit: [{ type: i0.Output, args: ["cellEdit"] }], scrollEl: [{ type: i0.ViewChild, args: ['scrollEl', { isSignal: true }] }], theadEl: [{ type: i0.ViewChild, args: ['theadEl', { isSignal: true }] }], editorHost: [{ type: i0.ViewChild, args: ['editorHost', { isSignal: true }] }], cellDefs: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => KptCellDef), { isSignal: true }] }], cellEditDefs: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => KptCellEditDef), { isSignal: true }] }], rowDetailDef: [{ type: i0.ContentChild, args: [i0.forwardRef(() => KptRowDetailDef), { isSignal: true }] }], filterMic: [{ type: i0.ViewChild, args: [i0.forwardRef(() => KptSpeechButton), { isSignal: true }] }] }); })();
|
|
16960
|
-
(
|
|
17350
|
+
'[style.--kpt-thead-offset-2]': "theadOffset2() + 'px'",
|
|
17351
|
+
}, template: "@if (filterable() || exportable()) {\r\n <div class=\"kpt-data-table__toolbar\">\r\n @if (filterable()) {\r\n <div class=\"kpt-data-table__search\" [attr.data-speech]=\"filterSpeechState()\">\r\n <input\r\n #filterEl\r\n class=\"kpt-data-table__filter\"\r\n type=\"search\"\r\n [attr.placeholder]=\"i18n.t('dataTable.search')\"\r\n [attr.aria-label]=\"i18n.t('dataTable.search')\"\r\n [value]=\"filterInput()\"\r\n (input)=\"onFilter($event)\"\r\n />\r\n @if (filterSpeech()) {\r\n <!-- Filtr g\u0142osem: pole czy\u015Bci si\u0119 po klikni\u0119ciu, a podyktowana fraza wchodzi przez (input)\r\n jak wpisana - z tym samym op\u00F3\u017Anieniem dla du\u017Cych danych. -->\r\n <kpt-speech-button\r\n class=\"kpt-data-table__speech\"\r\n size=\"sm\"\r\n unsupported=\"hide\"\r\n mode=\"replace\"\r\n [continuous]=\"false\"\r\n [target]=\"filterEl\"\r\n [lang]=\"filterSpeechLang()\"\r\n [listeningColor]=\"filterSpeechColor()\"\r\n />\r\n }\r\n </div>\r\n }\r\n @if (exportable()) {\r\n <kpt-button variant=\"outline\" size=\"sm\" (click)=\"exportCsv()\">{{ i18n.t('dataTable.exportCsv') }}</kpt-button>\r\n }\r\n </div>\r\n}\r\n\r\n<div class=\"kpt-data-table__scroll\" #scrollEl [style.max-height]=\"scrollHeight()\" (scroll)=\"onScroll($event)\">\r\n <table\r\n class=\"kpt-data-table__table\"\r\n [class.kpt-data-table__table--frozen]=\"hasFrozen()\"\r\n [class.kpt-data-table__table--virtual]=\"virtualScroll()\"\r\n [style.width.px]=\"tableWidth()\"\r\n [attr.aria-label]=\"ariaLabel()\"\r\n [attr.aria-busy]=\"loading() ? 'true' : null\"\r\n [attr.aria-rowcount]=\"ariaRowCount()\"\r\n [attr.aria-colcount]=\"ariaColCount()\"\r\n >\r\n @if (caption()) {\r\n <caption class=\"kpt-data-table__caption\"><span class=\"kpt-data-table__caption-text\">{{ caption() }}</span></caption>\r\n }\r\n @if (virtualScroll()) {\r\n <!-- `table-layout: fixed` bierze szeroko\u015Bci st\u0105d - okno kolumn nie przelicza uk\u0142adu tabeli. -->\r\n <colgroup>\r\n @if (hasRowDetail()) {\r\n <col class=\"kpt-data-table__col-expander\" />\r\n }\r\n @if (selectable() !== 'none') {\r\n <col class=\"kpt-data-table__col-checkbox\" />\r\n }\r\n @for (slot of slots(); track slot.key) {\r\n <col [style.width.px]=\"slot.width\" />\r\n }\r\n </colgroup>\r\n }\r\n <thead #theadEl>\r\n @if (groupCells().length) {\r\n <!-- Nag\u0142\u00F3wki grupowane (`columnGroups`): `scope=\"colgroup\"` wi\u0105\u017Ce napis z kolumnami pod nim. -->\r\n <tr class=\"kpt-data-table__group-row\" [attr.aria-rowindex]=\"virtualScroll() ? 1 : null\">\r\n @if (hasRowDetail()) {\r\n <th class=\"kpt-data-table__expander\" [class.kpt-data-table__cell--frozen]=\"hasFrozen()\" [style.left.px]=\"expanderStickyLeft()\"></th>\r\n }\r\n @if (selectable() !== 'none') {\r\n <th class=\"kpt-data-table__checkbox\" [class.kpt-data-table__cell--frozen]=\"hasFrozen()\" [style.left.px]=\"checkboxStickyLeft()\"></th>\r\n }\r\n @for (cell of groupCells(); track cell.key) {\r\n @if (cell.spacer) {\r\n <td class=\"kpt-data-table__hspacer\" [attr.colspan]=\"cell.span\" aria-hidden=\"true\"></td>\r\n } @else {\r\n <th\r\n class=\"kpt-data-table__group\"\r\n [class.kpt-data-table__group--empty]=\"!cell.header\"\r\n [class.kpt-data-table__cell--frozen]=\"cell.frozen\"\r\n [style.left.px]=\"cell.left\"\r\n [attr.colspan]=\"cell.span > 1 ? cell.span : null\"\r\n [attr.scope]=\"cell.header ? 'colgroup' : null\"\r\n >\r\n {{ cell.header }}\r\n </th>\r\n }\r\n }\r\n </tr>\r\n }\r\n @if (hasColumnFilters() && filterRowPosition() === 'top') {\r\n <ng-container [ngTemplateOutlet]=\"filterRowTpl\" [ngTemplateOutletContext]=\"{ $implicit: groupRows() + 1 }\" />\r\n }\r\n <tr [attr.aria-rowindex]=\"virtualScroll() ? groupRows() + (hasColumnFilters() && filterRowPosition() === 'top' ? 2 : 1) : null\">\r\n @if (hasRowDetail()) {\r\n <th class=\"kpt-data-table__expander\" [class.kpt-data-table__cell--frozen]=\"hasFrozen()\" [style.left.px]=\"expanderStickyLeft()\"></th>\r\n }\r\n @if (selectable() === 'multiple') {\r\n <th class=\"kpt-data-table__checkbox\" [class.kpt-data-table__cell--frozen]=\"hasFrozen()\" [style.left.px]=\"checkboxStickyLeft()\">\r\n <input\r\n type=\"checkbox\"\r\n [checked]=\"pageAllSelected()\"\r\n [indeterminate]=\"pageSomeSelected()\"\r\n (change)=\"toggleAllOnPage()\"\r\n [attr.aria-label]=\"i18n.t('dataTable.selectAll')\"\r\n />\r\n </th>\r\n } @else if (selectable() === 'single') {\r\n <th class=\"kpt-data-table__checkbox\" [class.kpt-data-table__cell--frozen]=\"hasFrozen()\" [style.left.px]=\"checkboxStickyLeft()\"></th>\r\n }\r\n @for (slot of slots(); track slot.key) {\r\n @if (slot.meta; as m) {\r\n <th\r\n [attr.draggable]=\"isColDraggable(m.col) ? true : null\"\r\n [style.width]=\"virtualScroll() ? null : m.col.width\"\r\n [style.left.px]=\"m.left\"\r\n [attr.data-align]=\"m.align\"\r\n [attr.aria-colindex]=\"colIndex(m)\"\r\n [class.kpt-data-table__cell--frozen]=\"m.frozen\"\r\n [class.kpt-data-table__th--sortable]=\"m.col.sortable\"\r\n [class.kpt-data-table__th--draggable]=\"isColDraggable(m.col)\"\r\n [class.kpt-data-table__th--dragover]=\"dragField() !== null && dragField() !== m.col.field && !m.col.frozen\"\r\n [attr.data-field]=\"m.col.field\"\r\n [attr.aria-sort]=\"m.col.sortable ? ariaSort(m.col) : null\"\r\n (dragstart)=\"onColDragStart(m.col.field, $event)\"\r\n (dragover)=\"reorderable() ? onColDragOver(m.col.field, $event) : null\"\r\n (drop)=\"reorderable() ? onColDrop(m.col.field, $event) : null\"\r\n (dragend)=\"onColDragEnd()\"\r\n >\r\n @if (isColDraggable(m.col)) {\r\n <!--\r\n Uchwyt to przycisk: strza\u0142ki <- -> przestawiaj\u0105 kolumn\u0119 bez myszy (WCAG 2.1.1),\r\n a przeci\u0105ganie nadal dzia\u0142a na ca\u0142ym nag\u0142\u00F3wku.\r\n -->\r\n <button\r\n type=\"button\"\r\n class=\"kpt-data-table__grip\"\r\n [attr.aria-label]=\"i18n.t('dataTable.moveColumn', { column: m.col.header })\"\r\n aria-keyshortcuts=\"ArrowLeft ArrowRight\"\r\n (keydown)=\"onGripKeydown(m.col.field, $event)\"\r\n >\r\n <kpt-icon name=\"grip-vertical\" />\r\n </button>\r\n }\r\n @if (m.col.sortable) {\r\n <!-- APG \"Sortable Table\": przycisk w nag\u0142\u00F3wku, aria-sort na <th>. -->\r\n <button type=\"button\" class=\"kpt-data-table__sort-btn\" (click)=\"toggleSort(m.col)\">\r\n <span>{{ m.col.header }}</span>\r\n <kpt-icon\r\n class=\"kpt-data-table__sort\"\r\n [class.kpt-data-table__sort--active]=\"ariaSort(m.col) !== 'none'\"\r\n [name]=\"sortIconName(m.col)\"\r\n />\r\n </button>\r\n } @else {\r\n <span>{{ m.col.header }}</span>\r\n }\r\n </th>\r\n } @else {\r\n <td class=\"kpt-data-table__hspacer\" aria-hidden=\"true\"></td>\r\n }\r\n }\r\n </tr>\r\n @if (hasColumnFilters() && filterRowPosition() === 'bottom') {\r\n <ng-container [ngTemplateOutlet]=\"filterRowTpl\" [ngTemplateOutletContext]=\"{ $implicit: groupRows() + 2 }\" />\r\n }\r\n </thead>\r\n <tbody>\r\n @if (loading()) {\r\n <tr><td class=\"kpt-data-table__state\" [attr.colspan]=\"colspan()\">{{ i18n.t('dataTable.loading') }}</td></tr>\r\n } @else if (displayCount() === 0) {\r\n <tr><td class=\"kpt-data-table__state\" [attr.colspan]=\"colspan()\">{{ emptyText() }}</td></tr>\r\n } @else if (virtualScroll()) {\r\n @if (topPad() > 0) {\r\n <tr class=\"kpt-data-table__spacer\" aria-hidden=\"true\"><td [attr.colspan]=\"colspan()\" [style.height.px]=\"topPad()\"></td></tr>\r\n }\r\n @for (row of virtualRows(); track trackRow(row); let i = $index) {\r\n <ng-container\r\n [ngTemplateOutlet]=\"rowTpl\"\r\n [ngTemplateOutletContext]=\"{ $implicit: row, rowIndex: headerRowCount() + virtualStart() + i + 1 }\"\r\n />\r\n }\r\n @if (bottomPad() > 0) {\r\n <tr class=\"kpt-data-table__spacer\" aria-hidden=\"true\"><td [attr.colspan]=\"colspan()\" [style.height.px]=\"bottomPad()\"></td></tr>\r\n }\r\n } @else {\r\n @for (row of paged(); track trackRow(row)) {\r\n <ng-container [ngTemplateOutlet]=\"rowTpl\" [ngTemplateOutletContext]=\"{ $implicit: row, rowIndex: null }\" />\r\n }\r\n }\r\n </tbody>\r\n @if (hasSummary() && !loading() && displayCount() > 0) {\r\n @let summary = summarySlots();\r\n <tfoot>\r\n <tr class=\"kpt-data-table__summary\" [attr.aria-rowindex]=\"ariaRowCount()\">\r\n @if (summary.systemSpan > 0) {\r\n <td class=\"kpt-data-table__cell--frozen\" [attr.colspan]=\"summary.systemSpan\" [style.left.px]=\"0\"></td>\r\n }\r\n @if (summary.labelSpan > 0) {\r\n <th\r\n class=\"kpt-data-table__summary-label\"\r\n [attr.colspan]=\"summary.labelSpan\"\r\n [class.kpt-data-table__cell--frozen]=\"summary.labelSticky\"\r\n [style.left.px]=\"summary.labelSticky ? 0 : null\"\r\n >\r\n {{ summaryLabelText() }}\r\n </th>\r\n }\r\n @for (slot of summary.slots; track slot.key) {\r\n @if (slot.meta; as m) {\r\n <td\r\n [attr.data-align]=\"m.col.align ?? 'end'\"\r\n [style.width]=\"virtualScroll() ? null : m.col.width\"\r\n [style.left.px]=\"m.left\"\r\n [attr.aria-colindex]=\"colIndex(m)\"\r\n [class.kpt-data-table__cell--frozen]=\"m.frozen\"\r\n >\r\n {{ summaryText(m.col.field) }}\r\n </td>\r\n } @else {\r\n <td class=\"kpt-data-table__hspacer\" aria-hidden=\"true\"></td>\r\n }\r\n }\r\n </tr>\r\n </tfoot>\r\n }\r\n </table>\r\n</div>\r\n\r\n<div class=\"kpt-data-table__live\" aria-live=\"polite\">{{ moveAnnouncement() }}</div>\r\n<!-- Opisy kom\u00F3rek edytowalnych: nazw\u0105 kom\u00F3rki zostaje jej warto\u015B\u0107, `aria-describedby` dodaje \"Edytuj: ...\". -->\r\n<div hidden>\r\n @for (col of visibleOrderedColumns(); track col.field; let i = $index) {\r\n @if (isEditable(col)) {\r\n <span [id]=\"editHintId(i)\">{{ i18n.t('dataTable.editCell', { column: col.header }) }}</span>\r\n }\r\n }\r\n</div>\r\n\r\n<ng-template #rowTpl let-row let-rowIndex=\"rowIndex\">\r\n @let selected = isSelected(row);\r\n <tr\r\n [class.kpt-data-table__row--selected]=\"selected\"\r\n [class.kpt-data-table__row--expanded]=\"hasRowDetail() && isExpanded(row)\"\r\n [class.kpt-data-table__row--clickable]=\"clickableRows()\"\r\n [style.height.px]=\"virtualScroll() ? rowHeight() : null\"\r\n [attr.aria-rowindex]=\"rowIndex\"\r\n [attr.tabindex]=\"clickableRows() ? 0 : null\"\r\n (click)=\"onRowClick(row)\"\r\n (keydown)=\"clickableRows() ? onRowKeydown(row, $event) : null\"\r\n >\r\n @if (hasRowDetail()) {\r\n <td class=\"kpt-data-table__expander\" [class.kpt-data-table__cell--frozen]=\"hasFrozen()\" [style.left.px]=\"expanderStickyLeft()\">\r\n <button\r\n type=\"button\"\r\n class=\"kpt-data-table__expander-btn\"\r\n [class.kpt-data-table__expander-btn--open]=\"isExpanded(row)\"\r\n [attr.aria-expanded]=\"isExpanded(row)\"\r\n [attr.aria-label]=\"i18n.t('dataTable.expandRow')\"\r\n (click)=\"$event.stopPropagation(); toggleExpand(row)\"\r\n >\r\n <kpt-icon name=\"chevron-right\" />\r\n </button>\r\n </td>\r\n }\r\n @if (selectable() !== 'none') {\r\n <td class=\"kpt-data-table__checkbox\" [class.kpt-data-table__cell--frozen]=\"hasFrozen()\" [style.left.px]=\"checkboxStickyLeft()\">\r\n <!-- Wyb\u00F3r jednego wiersza to radio (czytnik og\u0142asza \"1 z N\"); klik w zaznaczone odznacza, jak dot\u0105d. -->\r\n <input\r\n [type]=\"selectable() === 'single' ? 'radio' : 'checkbox'\"\r\n [attr.name]=\"selectable() === 'single' ? radioName : null\"\r\n [checked]=\"selected\"\r\n (click)=\"$event.stopPropagation(); toggleRow(row)\"\r\n [attr.aria-label]=\"i18n.t('dataTable.selectRow')\"\r\n />\r\n </td>\r\n }\r\n @for (slot of slots(); track slot.key) {\r\n @if (slot.meta; as m) {\r\n <!-- Edytor sprawdzamy tylko, gdy jakakolwiek kom\u00F3rka jest w edycji - reszta to odczyt gotowych cech kolumny. -->\r\n @let editing = m.editable && editingCell() !== null && isEditingCell(row, m.col.field);\r\n @let editTarget = m.editable && !editing;\r\n <td\r\n [attr.data-align]=\"m.align\"\r\n [style.left.px]=\"m.left\"\r\n [attr.aria-colindex]=\"colIndex(m)\"\r\n [class.kpt-data-table__cell--frozen]=\"m.frozen\"\r\n [class.kpt-data-table__cell--editable]=\"editTarget\"\r\n [attr.tabindex]=\"editTarget ? 0 : null\"\r\n [attr.aria-describedby]=\"editTarget ? editHintId(m.index) : null\"\r\n (click)=\"m.editable ? startEdit(row, m.col, $event) : null\"\r\n (keydown.enter)=\"editTarget ? startEdit(row, m.col, $event) : null\"\r\n >\r\n @if (editing) {\r\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- stopPropagation: klik w edytorze/filtrze nie sortuje ani nie zaznacza wiersza - to nie akcja -->\r\n <div\r\n class=\"kpt-data-table__editor\"\r\n #editorHost\r\n (click)=\"$event.stopPropagation()\"\r\n (focusout)=\"onEditorFocusOut($event)\"\r\n >\r\n @if (cellEditTemplate(m.col.field); as etpl) {\r\n <ng-container\r\n [ngTemplateOutlet]=\"etpl\"\r\n [ngTemplateOutletContext]=\"{ $implicit: editingValue(), row, commit: commitEditValue, cancel: cancelEdit }\"\r\n />\r\n } @else {\r\n @switch (m.col.edit?.type) {\r\n @case ('text') {\r\n <kpt-input\r\n [value]=\"$any(editingValue()) ?? ''\"\r\n [placeholder]=\"m.col.edit.placeholder ?? ''\"\r\n (valueChange)=\"editingValue.set($event)\"\r\n (keydown.enter)=\"commitEdit()\"\r\n (keydown.escape)=\"cancelEdit()\"\r\n />\r\n }\r\n @case ('number') {\r\n <kpt-input-number\r\n [value]=\"$any(editingValue())\"\r\n [min]=\"m.col.edit.min\"\r\n [max]=\"m.col.edit.max\"\r\n [step]=\"m.col.edit.step ?? 1\"\r\n (valueChange)=\"editingValue.set($event)\"\r\n (keydown.enter)=\"commitEdit()\"\r\n (keydown.escape)=\"cancelEdit()\"\r\n />\r\n }\r\n @case ('date') {\r\n <kpt-datepicker\r\n [value]=\"$any(editingValue()) ?? ''\"\r\n (valueChange)=\"editingValue.set($event)\"\r\n [open]=\"editorPanelOpen()\"\r\n (openChange)=\"onEditorPanelToggle($event)\"\r\n />\r\n }\r\n @case ('select') {\r\n <kpt-select\r\n [options]=\"m.col.edit.options ?? []\"\r\n [placeholder]=\"m.col.edit.placeholder ?? ''\"\r\n [value]=\"editingValue()\"\r\n (valueChange)=\"editingValue.set($event)\"\r\n [open]=\"editorPanelOpen()\"\r\n (openChange)=\"onEditorPanelToggle($event)\"\r\n />\r\n }\r\n @case ('multiselect') {\r\n <kpt-select\r\n multiple\r\n filter\r\n [options]=\"m.col.edit.options ?? []\"\r\n [placeholder]=\"m.col.edit.placeholder ?? ''\"\r\n [value]=\"editingValue()\"\r\n (valueChange)=\"editingValue.set($event)\"\r\n [open]=\"editorPanelOpen()\"\r\n (openChange)=\"onEditorPanelToggle($event)\"\r\n />\r\n }\r\n }\r\n }\r\n </div>\r\n } @else if (m.cellTpl) {\r\n <ng-container\r\n [ngTemplateOutlet]=\"m.cellTpl\"\r\n [ngTemplateOutletContext]=\"{ $implicit: row, value: getValue(row, m.col.field) }\"\r\n />\r\n } @else {\r\n {{ getValue(row, m.col.field) }}\r\n }\r\n </td>\r\n } @else {\r\n <td class=\"kpt-data-table__hspacer\" aria-hidden=\"true\"></td>\r\n }\r\n }\r\n </tr>\r\n @if (hasRowDetail() && isExpanded(row) && !virtualScroll()) {\r\n <tr class=\"kpt-data-table__detail-row\">\r\n <td class=\"kpt-data-table__detail\" [attr.colspan]=\"colspan()\">\r\n <ng-container [ngTemplateOutlet]=\"rowDetailTpl()\" [ngTemplateOutletContext]=\"{ $implicit: row }\" />\r\n </td>\r\n </tr>\r\n }\r\n</ng-template>\r\n\r\n<ng-template #filterRowTpl let-rowIndex>\r\n <tr class=\"kpt-data-table__filter-row\" [attr.aria-rowindex]=\"virtualScroll() ? rowIndex : null\">\r\n @if (hasRowDetail()) {\r\n <th class=\"kpt-data-table__expander\" [class.kpt-data-table__cell--frozen]=\"hasFrozen()\" [style.left.px]=\"expanderStickyLeft()\"></th>\r\n }\r\n @if (selectable() !== 'none') {\r\n <th class=\"kpt-data-table__checkbox\" [class.kpt-data-table__cell--frozen]=\"hasFrozen()\" [style.left.px]=\"checkboxStickyLeft()\"></th>\r\n }\r\n @for (slot of slots(); track slot.key) {\r\n @if (slot.meta; as m) {\r\n <th\r\n [style.width]=\"virtualScroll() ? null : m.col.width\"\r\n [style.left.px]=\"m.left\"\r\n [attr.data-align]=\"m.align\"\r\n [attr.aria-colindex]=\"colIndex(m)\"\r\n [class.kpt-data-table__cell--frozen]=\"m.frozen\"\r\n >\r\n @switch (m.col.filter?.type) {\r\n @case ('text') {\r\n <input\r\n class=\"kpt-data-table__fcell\"\r\n type=\"search\"\r\n [attr.placeholder]=\"m.col.filter.placeholder || ''\"\r\n [attr.aria-label]=\"i18n.t('dataTable.filter', { column: m.col.header })\"\r\n [value]=\"$any(columnFilters()[m.col.field]) || ''\"\r\n (input)=\"setColumnFilter(m.col.field, $any($event.target).value)\"\r\n (click)=\"$event.stopPropagation()\"\r\n />\r\n }\r\n @case ('number') {\r\n <input\r\n class=\"kpt-data-table__fcell\"\r\n type=\"text\"\r\n inputmode=\"numeric\"\r\n [attr.placeholder]=\"m.col.filter.placeholder || ''\"\r\n [attr.aria-label]=\"i18n.t('dataTable.filter', { column: m.col.header })\"\r\n [value]=\"$any(columnFilters()[m.col.field]) || ''\"\r\n (input)=\"onNumberFilter(m.col.field, $event)\"\r\n (click)=\"$event.stopPropagation()\"\r\n />\r\n }\r\n @case ('select') {\r\n <kpt-select\r\n [options]=\"m.col.filter.options || []\"\r\n [multiple]=\"!!m.col.filter.multiple\"\r\n filter\r\n [placeholder]=\"m.col.filter.placeholder || i18n.t('dataTable.all')\"\r\n [value]=\"columnFilters()[m.col.field] ?? null\"\r\n (valueChange)=\"setColumnFilter(m.col.field, $event)\"\r\n />\r\n }\r\n @case ('numberRange') {\r\n <div class=\"kpt-data-table__frange\">\r\n <input\r\n class=\"kpt-data-table__fcell\"\r\n type=\"text\"\r\n inputmode=\"numeric\"\r\n [attr.placeholder]=\"i18n.t('dataTable.min')\"\r\n [attr.aria-label]=\"i18n.t('dataTable.filterMin', { column: m.col.header })\"\r\n [value]=\"rangeVal(m.col.field).min\"\r\n (input)=\"setRangeFilter(m.col.field, 'min', $event)\"\r\n (click)=\"$event.stopPropagation()\"\r\n />\r\n <input\r\n class=\"kpt-data-table__fcell\"\r\n type=\"text\"\r\n inputmode=\"numeric\"\r\n [attr.placeholder]=\"i18n.t('dataTable.max')\"\r\n [attr.aria-label]=\"i18n.t('dataTable.filterMax', { column: m.col.header })\"\r\n [value]=\"rangeVal(m.col.field).max\"\r\n (input)=\"setRangeFilter(m.col.field, 'max', $event)\"\r\n (click)=\"$event.stopPropagation()\"\r\n />\r\n </div>\r\n }\r\n @case ('slider') {\r\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- stopPropagation: klik w edytorze/filtrze nie sortuje ani nie zaznacza wiersza - to nie akcja -->\r\n <div class=\"kpt-data-table__fslider\" (click)=\"$event.stopPropagation()\">\r\n <kpt-slider\r\n range\r\n [min]=\"m.col.filter.min ?? 0\"\r\n [max]=\"m.col.filter.max ?? 100\"\r\n [step]=\"m.col.filter.step ?? 1\"\r\n [value]=\"sliderVal(m.col)\"\r\n (valueChange)=\"setColumnFilter(m.col.field, $event)\"\r\n showValue\r\n />\r\n </div>\r\n }\r\n @case ('dateRange') {\r\n <kpt-date-range\r\n [placeholder]=\"m.col.filter.placeholder || i18n.t('dataTable.dateRange')\"\r\n [value]=\"$any(columnFilters()[m.col.field]) || { start: '', end: '' }\"\r\n (valueChange)=\"setColumnFilter(m.col.field, $event)\"\r\n />\r\n }\r\n }\r\n </th>\r\n } @else {\r\n <td class=\"kpt-data-table__hspacer\" aria-hidden=\"true\"></td>\r\n }\r\n }\r\n </tr>\r\n</ng-template>\r\n\r\n@if (pageSize() > 0 && !virtualScroll()) {\r\n <div class=\"kpt-data-table__pager\">\r\n <ng-content select=\"[kptPaginatorActions]\" />\r\n <kpt-paginator\r\n [length]=\"filteredCount()\"\r\n [pageIndex]=\"pageIndex()\"\r\n [pageSize]=\"pageSizeState()\"\r\n [pageSizeOptions]=\"pageSizeOptions()\"\r\n (pageIndexChange)=\"pageIndex.set($event)\"\r\n (pageSizeChange)=\"pageSizeState.set($event)\"\r\n />\r\n </div>\r\n}\r\n", styles: ["@layer kpt.components{.kpt-data-table{display:flex;flex-direction:column;background:var(--kpt-table-bg);color:var(--kpt-table-fg);border:var(--kpt-border-width-thin, 1px) solid var(--kpt-table-border);border-radius:var(--kpt-table-radius, .75rem);overflow:hidden;flex-grow:1}.kpt-data-table__toolbar{display:flex;align-items:center;justify-content:space-between;gap:var(--kpt-space-3, .75rem);padding:var(--kpt-space-3, .75rem);border-bottom:var(--kpt-border-width-thin, 1px) solid var(--kpt-table-border)}.kpt-data-table__filter{width:100%;max-width:20rem;height:2.25rem;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);background:var(--kpt-form-field-bg);color:var(--kpt-form-field-text)}.kpt-data-table__filter: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-data-table__search{position:relative;width:100%;max-width:20rem}.kpt-data-table__search[data-speech] .kpt-data-table__filter{padding-inline-end:2.5rem}.kpt-data-table__search[data-speech=listening] .kpt-data-table__filter{padding-inline-end:4.5rem}.kpt-data-table__speech{position:absolute;inset-block:0;inset-inline-end:var(--kpt-space-1, .25rem);gap:var(--kpt-space-1, .25rem)}.kpt-data-table__scroll{overflow:auto}.kpt-data-table__pager{display:flex;align-items:center;gap:var(--kpt-space-2, .5rem)}.kpt-data-table__pager [kptPaginatorActions]{margin-inline-start:.5rem}.kpt-data-table__pager .kpt-paginator{flex:1 1 auto;min-width:0}.kpt-data-table__table{width:100%;border-collapse:separate;border-spacing:0;font-size:var(--kpt-font-size-sm, .875rem)}.kpt-data-table__table--frozen{width:max-content;min-width:100%}.kpt-data-table__table th,.kpt-data-table__table td{padding:var(--kpt-table-cell-padding, .75rem);text-align:start;border-bottom:var(--kpt-border-width-thin, 1px) solid var(--kpt-table-border)}.kpt-data-table__table th[data-align=center],.kpt-data-table__table td[data-align=center]{text-align:center}.kpt-data-table__table th[data-align=end],.kpt-data-table__table td[data-align=end]{text-align:end}.kpt-data-table__table thead th{position:sticky;top:0;z-index:1;background:var(--kpt-table-header-bg);color:var(--kpt-table-header-fg);font-weight:var(--kpt-font-weight-semibold, 600);white-space:nowrap;-webkit-user-select:none;user-select:none}.kpt-data-table__table thead tr:nth-child(2) th{top:var(--kpt-thead-offset, 0px)}.kpt-data-table__table thead tr:nth-child(3) th{top:var(--kpt-thead-offset-2, 0px)}.kpt-data-table__table tfoot th,.kpt-data-table__table tfoot td{position:sticky;bottom:0;z-index:1;background:var(--kpt-table-summary-bg, var(--kpt-table-header-bg));color:var(--kpt-table-header-fg);font-weight:var(--kpt-font-weight-semibold, 600);white-space:nowrap;border-bottom:0;border-top:var(--kpt-border-width-thin, 1px) solid var(--kpt-table-border)}.kpt-data-table__filter-row{--_filter-h: 2rem}.kpt-data-table__filter-row th{height:calc(var(--_filter-h) + 2 * var(--kpt-space-2, .5rem) + var(--kpt-border-width-thin, 1px));padding:var(--kpt-space-2, .5rem);font-weight:var(--kpt-font-weight-normal, 400);cursor:auto}.kpt-data-table__filter-row .kpt-select{min-height:var(--_filter-h);padding-block:0}.kpt-data-table__filter-row .kpt-date-range{height:var(--_filter-h)}.kpt-data-table__fcell{width:100%;height:var(--_filter-h);box-sizing:border-box;font-size:var(--kpt-font-size-sm, .875rem);padding-inline:var(--kpt-space-2, .5rem);border:var(--kpt-border-width-thin, 1px) solid var(--kpt-form-field-border);border-radius:var(--kpt-form-field-radius, .5rem);background:var(--kpt-form-field-bg);color:var(--kpt-form-field-text);font-family:inherit}.kpt-data-table__fcell: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-data-table__filter-row .kpt-select-host,.kpt-data-table__filter-row .kpt-date-range-host{display:block;width:100%;font-weight:var(--kpt-font-weight-normal, 400)}.kpt-data-table__frange{display:flex;gap:var(--kpt-space-2, .5rem)}.kpt-data-table__frange .kpt-data-table__fcell{min-width:0}.kpt-data-table__fslider .kpt-slider-host{width:100%}.kpt-data-table__fslider .kpt-slider__value{min-width:auto;font-size:var(--kpt-font-size-xs, .75rem);color:var(--kpt-color-on-surface-muted)}.kpt-data-table__th--sortable:hover{color:var(--kpt-color-on-surface)}.kpt-data-table__sort-btn{display:inline-flex;align-items:center;padding:0;border:0;background:none;font:inherit;color:inherit;text-align:inherit;cursor:pointer;border-radius:var(--kpt-radius-sm, .25rem)}.kpt-data-table__sort-btn:focus-visible{outline:var(--kpt-border-width-medium, 2px) solid var(--kpt-color-focus-ring);outline-offset:2px}.kpt-data-table__caption{caption-side:top;padding:var(--kpt-space-3, .75rem) var(--kpt-table-cell-padding, .75rem) var(--kpt-space-2, .5rem);text-align:start;font-weight:var(--kpt-font-weight-semibold, 600);color:var(--kpt-color-on-surface)}.kpt-data-table__caption-text{position:sticky;inset-inline-start:var(--kpt-table-cell-padding, .75rem)}.kpt-data-table__live{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.kpt-data-table__cell--editable{cursor:pointer}.kpt-data-table__cell--editable:hover{background:var(--kpt-table-row-hover)}.kpt-data-table__cell--editable:focus-visible{outline:var(--kpt-border-width-medium, 2px) solid var(--kpt-color-focus-ring);outline-offset:-2px}.kpt-data-table__editor{display:block;min-width:8rem}.kpt-data-table__editor .kpt-input-number-host{max-width:6.5rem}.kpt-data-table__editor .kpt-input-number__btn{width:1.75rem}.kpt-data-table__sort{margin-inline-start:.35em;opacity:.35}.kpt-data-table__sort--active{opacity:1}.kpt-data-table__th--draggable{cursor:grab}.kpt-data-table__th--draggable:active{cursor:grabbing}.kpt-data-table__th--dragover{box-shadow:inset 2px 0 0 0 var(--kpt-color-primary)}.kpt-data-table__grip{display:inline-flex;align-items:center;margin-inline-end:.4em;padding:0;border:0;background:none;color:inherit;opacity:.45;cursor:inherit;border-radius:var(--kpt-radius-sm, .25rem)}.kpt-data-table__grip:hover,.kpt-data-table__grip:focus-visible{opacity:1}.kpt-data-table__grip:focus-visible{outline:var(--kpt-border-width-medium, 2px) solid var(--kpt-color-focus-ring);outline-offset:1px}.kpt-data-table__checkbox{width:1px;white-space:nowrap;text-align:center}.kpt-data-table__checkbox input[type=checkbox],.kpt-data-table__checkbox input[type=radio]{appearance:none;-webkit-appearance:none;position:relative;display:inline-block;width:1.15rem;height:1.15rem;margin:0;vertical-align:middle;cursor:pointer;border:var(--kpt-border-width-medium, 2px) solid var(--kpt-form-field-border);border-radius:var(--kpt-radius-sm, .25rem);background:var(--kpt-form-field-bg);transition:background-color var(--kpt-motion-duration-fast, .12s) var(--kpt-motion-easing-standard),border-color var(--kpt-motion-duration-fast, .12s) var(--kpt-motion-easing-standard)}.kpt-data-table__checkbox input[type=checkbox]:after,.kpt-data-table__checkbox input[type=radio]:after{content:\"\";position:absolute;inset:0;opacity:0;background-color:var(--kpt-color-on-primary);transition:opacity var(--kpt-motion-duration-fast, .12s) var(--kpt-motion-easing-standard);-webkit-mask:no-repeat center/.85rem;mask:no-repeat center/.85rem}.kpt-data-table__checkbox input[type=checkbox]:checked,.kpt-data-table__checkbox input[type=checkbox]:indeterminate,.kpt-data-table__checkbox input[type=radio]:checked,.kpt-data-table__checkbox input[type=radio]:indeterminate{background:var(--kpt-color-primary);border-color:var(--kpt-color-primary)}.kpt-data-table__checkbox input[type=checkbox]:checked:after,.kpt-data-table__checkbox input[type=radio]:checked:after{opacity:1;-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M13 4.5 6.5 11 3 7.5' fill='none' stroke='%23000' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M13 4.5 6.5 11 3 7.5' fill='none' stroke='%23000' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\")}.kpt-data-table__checkbox input[type=checkbox]:indeterminate:after,.kpt-data-table__checkbox input[type=radio]:indeterminate:after{opacity:1;-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8h9' fill='none' stroke='%23000' stroke-width='2.25' stroke-linecap='round'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8h9' fill='none' stroke='%23000' stroke-width='2.25' stroke-linecap='round'/%3E%3C/svg%3E\")}.kpt-data-table__checkbox input[type=checkbox]:focus-visible,.kpt-data-table__checkbox input[type=radio]:focus-visible{outline:var(--kpt-border-width-medium, 2px) solid var(--kpt-color-focus-ring);outline-offset:2px}.kpt-data-table__checkbox input[type=radio]{border-radius:50%}.kpt-data-table__checkbox input[type=radio]:checked:after{-webkit-mask-image:none;mask-image:none;inset:25%;border-radius:50%}.kpt-data-table__expander{width:2.5rem;min-width:2.5rem;text-align:center;white-space:nowrap}.kpt-data-table__expander-btn{display:inline-flex;align-items:center;justify-content:center;width:1.75rem;height:1.75rem;padding:0;border:none;border-radius:var(--kpt-radius-sm, .25rem);background:transparent;color:var(--kpt-color-on-surface-muted);cursor:pointer;transition:background-color var(--kpt-motion-duration-fast, .12s) var(--kpt-motion-easing-standard),color var(--kpt-motion-duration-fast, .12s) var(--kpt-motion-easing-standard)}.kpt-data-table__expander-btn .kpt-icon-host{display:inline-flex;transition:transform var(--kpt-motion-duration-fast, .12s) var(--kpt-motion-easing-standard)}.kpt-data-table__expander-btn:hover{background:var(--kpt-table-row-hover);color:var(--kpt-color-on-surface)}.kpt-data-table__expander-btn:focus-visible{outline:var(--kpt-border-width-medium, 2px) solid var(--kpt-color-focus-ring);outline-offset:2px}.kpt-data-table__expander-btn--open{color:var(--kpt-color-primary)}.kpt-data-table__expander-btn--open .kpt-icon-host{transform:rotate(90deg)}.kpt-data-table__detail-row>.kpt-data-table__detail{padding:var(--kpt-space-4, 1rem);background:var(--kpt-table-detail-bg, var(--kpt-color-surface-variant, var(--kpt-table-row-hover)));border-bottom:var(--kpt-border-width-thin, 1px) solid var(--kpt-table-border);box-shadow:inset 3px 0 0 0 var(--kpt-color-primary)}.kpt-data-table tbody tr{transition:background-color var(--kpt-motion-duration-fast, .12s) var(--kpt-motion-easing-standard)}.kpt-data-table tbody tr:hover{background:var(--kpt-table-row-hover)}.kpt-data-table tbody tr.kpt-data-table__detail-row:hover{background:transparent}.kpt-data-table__row--selected{background:var(--kpt-table-row-selected)!important}.kpt-data-table__row--clickable{cursor:pointer}.kpt-data-table__row--clickable:focus-visible{outline:var(--kpt-border-width-medium, 2px) solid var(--kpt-color-focus-ring);outline-offset:-2px}.kpt-data-table__row--expanded{background:var(--kpt-table-row-hover)}.kpt-data-table__table--frozen .kpt-data-table__checkbox{width:3rem;min-width:3rem}.kpt-data-table__table--frozen .kpt-data-table__expander{width:2.5rem;min-width:2.5rem}.kpt-data-table__cell--frozen{position:sticky;z-index:1;background:var(--kpt-table-bg);box-shadow:inset calc(-1 * var(--kpt-border-width-thin, 1px)) 0 0 var(--kpt-table-border)}.kpt-data-table thead th.kpt-data-table__cell--frozen{z-index:3;background:var(--kpt-table-header-bg)}.kpt-data-table tfoot th.kpt-data-table__cell--frozen,.kpt-data-table tfoot td.kpt-data-table__cell--frozen{z-index:3;background:var(--kpt-table-summary-bg, var(--kpt-table-header-bg))}.kpt-data-table tbody tr:hover .kpt-data-table__cell--frozen{background:var(--kpt-table-row-hover)}.kpt-data-table__row--selected.kpt-data-table__row--selected .kpt-data-table__cell--frozen,.kpt-data-table tbody tr.kpt-data-table__row--selected .kpt-data-table__cell--frozen{background:var(--kpt-table-row-selected)}.kpt-data-table__state{padding:var(--kpt-space-8, 2rem)!important;text-align:center!important;color:var(--kpt-color-on-surface-muted)}.kpt-data-table__table--virtual td{padding-block:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.kpt-data-table__spacer td{padding:0!important;border:0!important}.kpt-data-table__table--virtual{table-layout:fixed;min-width:100%}.kpt-data-table__table--virtual th{overflow:hidden;text-overflow:ellipsis}.kpt-data-table__col-expander{width:2.5rem}.kpt-data-table__col-checkbox{width:3rem}.kpt-data-table__hspacer{padding:0!important}.kpt-data-table thead .kpt-data-table__hspacer{position:sticky;top:0;background:var(--kpt-table-header-bg)}.kpt-data-table thead tr:nth-child(2) .kpt-data-table__hspacer{top:var(--kpt-thead-offset, 0px)}.kpt-data-table thead tr:nth-child(3) .kpt-data-table__hspacer{top:var(--kpt-thead-offset-2, 0px)}.kpt-data-table__group{padding-block:var(--kpt-space-2, .5rem)!important;text-align:center!important;font-size:var(--kpt-font-size-xs, .75rem);letter-spacing:.02em;color:var(--kpt-color-on-surface-muted);box-shadow:inset 0 calc(-1 * var(--kpt-border-width-thick, 2px)) 0 var(--kpt-color-border)}.kpt-data-table__group--empty{box-shadow:none}.kpt-data-table tbody tr:last-child td{border-bottom:0}}\n"] }]
|
|
17352
|
+
}], () => [], { columns: [{ type: i0.Input, args: [{ isSignal: true, alias: "columns", required: true }] }], data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], filterable: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterable", required: false }] }], filterSpeech: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterSpeech", required: false }] }], filterSpeechLang: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterSpeechLang", required: false }] }], filterSpeechColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterSpeechColor", required: false }] }], filterRowPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterRowPosition", required: false }] }], pageSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageSize", required: false }] }], pageSizeOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageSizeOptions", required: false }] }], selectable: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectable", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], caption: [{ type: i0.Input, args: [{ isSignal: true, alias: "caption", required: false }] }], clickableRows: [{ type: i0.Input, args: [{ isSignal: true, alias: "clickableRows", required: false }] }], emptyMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyMessage", required: false }] }], rowKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowKey", required: false }] }], scrollHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollHeight", required: false }] }], virtualScroll: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScroll", required: false }] }], columnWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "columnWidth", required: false }] }], rowHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowHeight", required: false }] }], frozenSystemColumns: [{ type: i0.Input, args: [{ isSignal: true, alias: "frozenSystemColumns", required: false }] }], columnGroups: [{ type: i0.Input, args: [{ isSignal: true, alias: "columnGroups", required: false }] }], reorderable: [{ type: i0.Input, args: [{ isSignal: true, alias: "reorderable", required: false }] }], exportable: [{ type: i0.Input, args: [{ isSignal: true, alias: "exportable", required: false }] }], exportFilename: [{ type: i0.Input, args: [{ isSignal: true, alias: "exportFilename", required: false }] }], lazy: [{ type: i0.Input, args: [{ isSignal: true, alias: "lazy", required: false }] }], totalRecords: [{ type: i0.Input, args: [{ isSignal: true, alias: "totalRecords", required: false }] }], expandable: [{ type: i0.Input, args: [{ isSignal: true, alias: "expandable", required: false }] }], multiExpand: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiExpand", required: false }] }], summaryLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "summaryLabel", required: false }] }], summaryValues: [{ type: i0.Input, args: [{ isSignal: true, alias: "summaryValues", required: false }] }], selection: [{ type: i0.Input, args: [{ isSignal: true, alias: "selection", required: false }] }, { type: i0.Output, args: ["selectionChange"] }], expandedRows: [{ type: i0.Input, args: [{ isSignal: true, alias: "expandedRows", required: false }] }, { type: i0.Output, args: ["expandedRowsChange"] }], hiddenFields: [{ type: i0.Input, args: [{ isSignal: true, alias: "hiddenFields", required: false }] }, { type: i0.Output, args: ["hiddenFieldsChange"] }], rowClick: [{ type: i0.Output, args: ["rowClick"] }], lazyLoad: [{ type: i0.Output, args: ["lazyLoad"] }], cellEdit: [{ type: i0.Output, args: ["cellEdit"] }], scrollEl: [{ type: i0.ViewChild, args: ['scrollEl', { isSignal: true }] }], theadEl: [{ type: i0.ViewChild, args: ['theadEl', { isSignal: true }] }], editorHost: [{ type: i0.ViewChild, args: ['editorHost', { isSignal: true }] }], cellDefs: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => KptCellDef), { isSignal: true }] }], cellEditDefs: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => KptCellEditDef), { isSignal: true }] }], rowDetailDef: [{ type: i0.ContentChild, args: [i0.forwardRef(() => KptRowDetailDef), { isSignal: true }] }], filterMic: [{ type: i0.ViewChild, args: [i0.forwardRef(() => KptSpeechButton), { isSignal: true }] }] }); })();
|
|
17353
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(KptDataTable, { className: "KptDataTable", filePath: "lib/data-table/data-table.component.ts", lineNumber: 237 }); })();
|
|
16961
17354
|
|
|
16962
17355
|
/*
|
|
16963
17356
|
* Klawiatura drzewa (wzorzec WAI-ARIA "tree view") - czysta funkcja na spłaszczonej liście
|
|
@@ -17401,7 +17794,7 @@ class KptTimeline {
|
|
|
17401
17794
|
|
|
17402
17795
|
const _c0$f = (a0, a1) => ({ index: a0, total: a1 });
|
|
17403
17796
|
const _c1$c = (a0, a1) => ({ $implicit: a0, index: a1 });
|
|
17404
|
-
const _c2$
|
|
17797
|
+
const _c2$8 = a0 => ({ index: a0 });
|
|
17405
17798
|
function KptCarousel_For_4_Template(rf, ctx) { if (rf & 1) {
|
|
17406
17799
|
i0.ɵɵelementStart(0, "div", 3);
|
|
17407
17800
|
i0.ɵɵelementContainer(1, 10);
|
|
@@ -17423,7 +17816,7 @@ function KptCarousel_For_11_Template(rf, ctx) { if (rf & 1) {
|
|
|
17423
17816
|
const ɵ$index_22_r5 = ctx.$index;
|
|
17424
17817
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
17425
17818
|
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$
|
|
17819
|
+
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
17820
|
} }
|
|
17428
17821
|
/**
|
|
17429
17822
|
* Karuzela slajdów. Dane przez `items`, szablon slajdu przez projekcję `<ng-template let-item>`.
|
|
@@ -17431,7 +17824,9 @@ function KptCarousel_For_11_Template(rf, ctx) { if (rf & 1) {
|
|
|
17431
17824
|
* Semantyka według wzorca WAI-ARIA "carousel" (bez autoodtwarzania): region z
|
|
17432
17825
|
* `aria-roledescription="karuzela"`, każdy slajd to grupa "Slajd 2 z 4", a slajdy poza widokiem są
|
|
17433
17826
|
* `inert` - `Tab` i czytnik ich nie widzą. Zmiana slajdu jest ogłaszana uprzejmie (`aria-live`
|
|
17434
|
-
* na torze).
|
|
17827
|
+
* na torze). Domyślnie strzałki zawijają: za ostatnim slajdem "dalej" wraca do pierwszego, przed
|
|
17828
|
+
* pierwszym "wstecz" - do ostatniego. Z `loop="false"` strzałki stają na końcach i dostają
|
|
17829
|
+
* `aria-disabled` zamiast `disabled`, żeby nie zgubić fokusu.
|
|
17435
17830
|
*
|
|
17436
17831
|
* @example
|
|
17437
17832
|
* <kpt-carousel [items]="photos">
|
|
@@ -17454,29 +17849,49 @@ class KptCarousel {
|
|
|
17454
17849
|
/** Nazwa regionu dla czytników ekranu, np. "Nowości"; domyślnie `carousel.label`. */
|
|
17455
17850
|
this.label = input('', /* @ts-ignore */
|
|
17456
17851
|
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
17852
|
+
/**
|
|
17853
|
+
* Zawijanie strzałek: za ostatnim slajdem "dalej" wraca do pierwszego, przed pierwszym "wstecz" -
|
|
17854
|
+
* do ostatniego. `false` - strzałki stają na końcach (np. kroki, które mają początek i koniec).
|
|
17855
|
+
*/
|
|
17856
|
+
this.loop = input(true, { ...(ngDevMode ? { debugName: "loop" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
17457
17857
|
this.i18n = inject(KptI18n);
|
|
17458
17858
|
this.slideTpl = contentChild.required(TemplateRef, /* @ts-ignore */
|
|
17459
17859
|
...(ngDevMode ? [{ debugName: "slideTpl" }] : /* istanbul ignore next */ []));
|
|
17460
|
-
|
|
17860
|
+
/** Koniec, na którym strzałka staje - tylko bez zawijania. */
|
|
17861
|
+
this.atStart = computed(() => !this.wraps() && this.index() <= 0, /* @ts-ignore */
|
|
17461
17862
|
...(ngDevMode ? [{ debugName: "atStart" }] : /* istanbul ignore next */ []));
|
|
17462
|
-
this.atEnd = computed(() => this.index() >= this.items().length - 1, /* @ts-ignore */
|
|
17863
|
+
this.atEnd = computed(() => !this.wraps() && this.index() >= this.items().length - 1, /* @ts-ignore */
|
|
17463
17864
|
...(ngDevMode ? [{ debugName: "atEnd" }] : /* istanbul ignore next */ []));
|
|
17865
|
+
/** Zawijanie ma sens od dwóch slajdów - przy jednym strzałki zostają wyłączone. */
|
|
17866
|
+
this.wraps = computed(() => this.loop() && this.items().length > 1, /* @ts-ignore */
|
|
17867
|
+
...(ngDevMode ? [{ debugName: "wraps" }] : /* istanbul ignore next */ []));
|
|
17464
17868
|
}
|
|
17465
17869
|
next() {
|
|
17466
|
-
this.
|
|
17870
|
+
this.step(1);
|
|
17467
17871
|
}
|
|
17468
17872
|
prev() {
|
|
17469
|
-
this.
|
|
17873
|
+
this.step(-1);
|
|
17470
17874
|
}
|
|
17471
17875
|
goTo(index) {
|
|
17472
17876
|
this.activeIndex.set(index);
|
|
17473
17877
|
}
|
|
17878
|
+
/** Krok o jeden slajd; poza końcem - zawinięcie albo zatrzymanie, zależnie od `loop`. */
|
|
17879
|
+
step(delta) {
|
|
17880
|
+
const count = this.items().length;
|
|
17881
|
+
if (count === 0)
|
|
17882
|
+
return;
|
|
17883
|
+
const target = this.index() + delta;
|
|
17884
|
+
if (target >= 0 && target < count)
|
|
17885
|
+
this.activeIndex.set(target);
|
|
17886
|
+
else if (this.wraps())
|
|
17887
|
+
this.activeIndex.set((target + count) % count);
|
|
17888
|
+
}
|
|
17474
17889
|
static { this.ɵfac = function KptCarousel_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || KptCarousel)(); }; }
|
|
17475
17890
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: KptCarousel, selectors: [["kpt-carousel"]], contentQueries: function KptCarousel_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
|
|
17476
17891
|
i0.ɵɵcontentQuerySignal(dirIndex, ctx.slideTpl, TemplateRef, 5);
|
|
17477
17892
|
} if (rf & 2) {
|
|
17478
17893
|
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) {
|
|
17894
|
+
} }, 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
17895
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "div", 2);
|
|
17481
17896
|
i0.ɵɵrepeaterCreate(3, KptCarousel_For_4_Template, 2, 12, "div", 3, i0.ɵɵrepeaterTrackByIndex);
|
|
17482
17897
|
i0.ɵɵelementEnd()();
|
|
@@ -17503,7 +17918,7 @@ class KptCarousel {
|
|
|
17503
17918
|
i0.ɵɵattribute("aria-disabled", ctx.atEnd() ? "true" : null)("aria-label", ctx.i18n.t("common.next"));
|
|
17504
17919
|
i0.ɵɵadvance(3);
|
|
17505
17920
|
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 }); }
|
|
17921
|
+
} }, 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
17922
|
}
|
|
17508
17923
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(KptCarousel, [{
|
|
17509
17924
|
type: Component,
|
|
@@ -17567,13 +17982,13 @@ class KptCarousel {
|
|
|
17567
17982
|
}
|
|
17568
17983
|
</div>
|
|
17569
17984
|
</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:
|
|
17985
|
+
`, 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"] }]
|
|
17986
|
+
}], 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 }] }] }); })();
|
|
17987
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(KptCarousel, { className: "KptCarousel", filePath: "lib/carousel/carousel.component.ts", lineNumber: 101 }); })();
|
|
17573
17988
|
|
|
17574
17989
|
const _c0$e = ["content"];
|
|
17575
17990
|
const _c1$b = a0 => ({ count: a0 });
|
|
17576
|
-
const _c2$
|
|
17991
|
+
const _c2$7 = (a0, a1) => ({ $implicit: a0, index: a1 });
|
|
17577
17992
|
function KptDataView_Conditional_5_For_2_Template(rf, ctx) { if (rf & 1) {
|
|
17578
17993
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
17579
17994
|
i0.ɵɵelementStart(0, "button", 7);
|
|
@@ -17608,7 +18023,7 @@ function KptDataView_For_14_Template(rf, ctx) { if (rf & 1) {
|
|
|
17608
18023
|
const $index_r5 = ctx.$index;
|
|
17609
18024
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
17610
18025
|
i0.ɵɵadvance(2);
|
|
17611
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.itemTpl())("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c2$
|
|
18026
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.itemTpl())("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c2$7, item_r4, $index_r5));
|
|
17612
18027
|
} }
|
|
17613
18028
|
function KptDataView_ForEmpty_15_Template(rf, ctx) { if (rf & 1) {
|
|
17614
18029
|
i0.ɵɵelementStart(0, "div", 12);
|
|
@@ -17854,8 +18269,8 @@ function bodyOf(item) {
|
|
|
17854
18269
|
|
|
17855
18270
|
const _c0$d = ["root"];
|
|
17856
18271
|
const _c1$a = () => ({ side: "source" });
|
|
17857
|
-
const _c2$
|
|
17858
|
-
const _c3 = a0 => ({ $implicit: a0 });
|
|
18272
|
+
const _c2$6 = () => ({ side: "target" });
|
|
18273
|
+
const _c3$1 = a0 => ({ $implicit: a0 });
|
|
17859
18274
|
function KptPickList_ng_template_17_For_5_Template(rf, ctx) { if (rf & 1) {
|
|
17860
18275
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
17861
18276
|
i0.ɵɵelementStart(0, "li", 13);
|
|
@@ -17870,7 +18285,7 @@ function KptPickList_ng_template_17_For_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
17870
18285
|
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
18286
|
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
18287
|
i0.ɵɵadvance();
|
|
17873
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.itemTpl())("ngTemplateOutletContext", i0.ɵɵpureFunction1(13, _c3, item_r7));
|
|
18288
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.itemTpl())("ngTemplateOutletContext", i0.ɵɵpureFunction1(13, _c3$1, item_r7));
|
|
17874
18289
|
} }
|
|
17875
18290
|
function KptPickList_ng_template_17_Template(rf, ctx) { if (rf & 1) {
|
|
17876
18291
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
@@ -18270,7 +18685,7 @@ class KptPickList {
|
|
|
18270
18685
|
i0.ɵɵadvance(2);
|
|
18271
18686
|
i0.ɵɵattribute("aria-disabled", ctx.target().length ? null : "true")("aria-label", ctx.i18n.t("pickList.moveAllLeft"));
|
|
18272
18687
|
i0.ɵɵadvance(3);
|
|
18273
|
-
i0.ɵɵproperty("ngTemplateOutlet", col_r8)("ngTemplateOutletContext", i0.ɵɵpureFunction0(14, _c2$
|
|
18688
|
+
i0.ɵɵproperty("ngTemplateOutlet", col_r8)("ngTemplateOutletContext", i0.ɵɵpureFunction0(14, _c2$6));
|
|
18274
18689
|
i0.ɵɵadvance(2);
|
|
18275
18690
|
i0.ɵɵtextInterpolate(ctx.announcement());
|
|
18276
18691
|
} }, 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 +19097,53 @@ class KptOrderList {
|
|
|
18682
19097
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(KptOrderList, { className: "KptOrderList", filePath: "lib/order-list/order-list.component.ts", lineNumber: 104 }); })();
|
|
18683
19098
|
|
|
18684
19099
|
const _c0$b = ["thumb"];
|
|
18685
|
-
const _c1$8 =
|
|
18686
|
-
|
|
18687
|
-
|
|
19100
|
+
const _c1$8 = ["stage"];
|
|
19101
|
+
const _c2$5 = ["image"];
|
|
19102
|
+
const _c3 = ["strip"];
|
|
19103
|
+
const _c4 = ["stripWrap"];
|
|
19104
|
+
const _c5 = a0 => ({ index: a0 });
|
|
19105
|
+
function KptGalleria_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
19106
|
+
i0.ɵɵelement(0, "img", 9, 1);
|
|
18688
19107
|
} if (rf & 2) {
|
|
18689
19108
|
const item_r1 = ctx;
|
|
18690
19109
|
i0.ɵɵproperty("src", item_r1.src, i0.ɵɵsanitizeUrl)("alt", item_r1.alt || "");
|
|
18691
19110
|
} }
|
|
18692
|
-
function
|
|
18693
|
-
const
|
|
18694
|
-
i0.ɵɵelementStart(0, "button",
|
|
18695
|
-
i0.ɵɵlistener("click", function
|
|
18696
|
-
i0.ɵɵelement(2, "img",
|
|
19111
|
+
function KptGalleria_Conditional_8_For_7_Template(rf, ctx) { if (rf & 1) {
|
|
19112
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
19113
|
+
i0.ɵɵelementStart(0, "button", 18, 4);
|
|
19114
|
+
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)); });
|
|
19115
|
+
i0.ɵɵelement(2, "img", 19);
|
|
18697
19116
|
i0.ɵɵelementEnd();
|
|
18698
19117
|
} if (rf & 2) {
|
|
18699
|
-
const
|
|
18700
|
-
const ɵ$
|
|
18701
|
-
const
|
|
18702
|
-
i0.ɵɵclassProp("is-active", ɵ$
|
|
18703
|
-
i0.ɵɵattribute("aria-current", ɵ$
|
|
19118
|
+
const item_r6 = ctx.$implicit;
|
|
19119
|
+
const ɵ$index_25_r5 = ctx.$index;
|
|
19120
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
19121
|
+
i0.ɵɵclassProp("is-active", ɵ$index_25_r5 === ctx_r2.index());
|
|
19122
|
+
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
19123
|
i0.ɵɵadvance(2);
|
|
18705
|
-
i0.ɵɵproperty("src",
|
|
19124
|
+
i0.ɵɵproperty("src", item_r6.thumbnail || item_r6.src, i0.ɵɵsanitizeUrl);
|
|
18706
19125
|
} }
|
|
18707
|
-
function
|
|
18708
|
-
i0.ɵɵ
|
|
18709
|
-
i0.ɵɵ
|
|
19126
|
+
function KptGalleria_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
19127
|
+
const _r2 = i0.ɵɵgetCurrentView();
|
|
19128
|
+
i0.ɵɵelementStart(0, "div", 12, 2)(2, "button", 14);
|
|
19129
|
+
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)); });
|
|
19130
|
+
i0.ɵɵelement(3, "kpt-icon", 8);
|
|
19131
|
+
i0.ɵɵelementEnd();
|
|
19132
|
+
i0.ɵɵelementStart(4, "div", 15, 3);
|
|
19133
|
+
i0.ɵɵrepeaterCreate(6, KptGalleria_Conditional_8_For_7_Template, 3, 7, "button", 16, i0.ɵɵrepeaterTrackByIndex);
|
|
18710
19134
|
i0.ɵɵelementEnd();
|
|
19135
|
+
i0.ɵɵelementStart(8, "button", 17);
|
|
19136
|
+
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)); });
|
|
19137
|
+
i0.ɵɵelement(9, "kpt-icon", 11);
|
|
19138
|
+
i0.ɵɵelementEnd()();
|
|
18711
19139
|
} if (rf & 2) {
|
|
18712
|
-
const
|
|
18713
|
-
i0.ɵɵadvance();
|
|
18714
|
-
i0.ɵɵ
|
|
19140
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
19141
|
+
i0.ɵɵadvance(2);
|
|
19142
|
+
i0.ɵɵattribute("aria-label", ctx_r2.i18n.t("galleria.scrollBack"));
|
|
19143
|
+
i0.ɵɵadvance(4);
|
|
19144
|
+
i0.ɵɵrepeater(ctx_r2.items());
|
|
19145
|
+
i0.ɵɵadvance(2);
|
|
19146
|
+
i0.ɵɵattribute("aria-label", ctx_r2.i18n.t("galleria.scrollForward"));
|
|
18715
19147
|
} }
|
|
18716
19148
|
/** Klawisze przechodzące między obrazami: kierunek względem bieżącego albo skrajny indeks. */
|
|
18717
19149
|
const NAV_KEYS = new Set(['ArrowLeft', 'ArrowRight', 'Home', 'End']);
|
|
@@ -18723,6 +19155,12 @@ const NAV_KEYS = new Set(['ArrowLeft', 'ArrowRight', 'Home', 'End']);
|
|
|
18723
19155
|
* aktywną. Miniatura ma nazwę z `alt` obrazu i `aria-current` na aktywnej, a zmiana obrazu jest
|
|
18724
19156
|
* ogłaszana uprzejmie ("Obraz 2 z 4: ...") - dopiero po działaniu użytkownika, nie przy starcie.
|
|
18725
19157
|
*
|
|
19158
|
+
* Ruch: nowe zdjęcie wjeżdża w kierunku zmiany na sprężynie, a poprzednie cofa się wolniej
|
|
19159
|
+
* i przygasa (paralaksa); rodzaj z `enter` w `provideKptMotion`, przy "ogranicz ruch" - przenikanie.
|
|
19160
|
+
* Pasek miniatur nie ma paska przewijania: przewija się przeciąganiem (mysz, pióro, palec)
|
|
19161
|
+
* albo strzałkami paska, krawędzie gasną tam, gdzie jest coś dalej, a aktywna miniatura
|
|
19162
|
+
* zawsze wraca do widoku.
|
|
19163
|
+
*
|
|
18726
19164
|
* @example
|
|
18727
19165
|
* <kpt-galleria [items]="photos" [(activeIndex)]="idx" />
|
|
18728
19166
|
*/
|
|
@@ -18746,6 +19184,19 @@ class KptGalleria {
|
|
|
18746
19184
|
this.host = inject(ElementRef);
|
|
18747
19185
|
this.thumbs = viewChildren('thumb', /* @ts-ignore */
|
|
18748
19186
|
...(ngDevMode ? [{ debugName: "thumbs" }] : /* istanbul ignore next */ []));
|
|
19187
|
+
this.stage = viewChild('stage', /* @ts-ignore */
|
|
19188
|
+
...(ngDevMode ? [{ debugName: "stage" }] : /* istanbul ignore next */ []));
|
|
19189
|
+
this.image = viewChild('image', /* @ts-ignore */
|
|
19190
|
+
...(ngDevMode ? [{ debugName: "image" }] : /* istanbul ignore next */ []));
|
|
19191
|
+
this.strip = viewChild('strip', /* @ts-ignore */
|
|
19192
|
+
...(ngDevMode ? [{ debugName: "strip" }] : /* istanbul ignore next */ []));
|
|
19193
|
+
this.stripWrap = viewChild('stripWrap', /* @ts-ignore */
|
|
19194
|
+
...(ngDevMode ? [{ debugName: "stripWrap" }] : /* istanbul ignore next */ []));
|
|
19195
|
+
this.motionConfig = inject(KPT_MOTION_CONFIG, { optional: true });
|
|
19196
|
+
this.motion = computed(() => resolveEnterMotion(undefined, this.motionConfig), /* @ts-ignore */
|
|
19197
|
+
...(ngDevMode ? [{ debugName: "motion" }] : /* istanbul ignore next */ []));
|
|
19198
|
+
/** Co było pokazane przy poprzednim renderze - z tego wynika kierunek i duch poprzedniego zdjęcia. */
|
|
19199
|
+
this.shown = null;
|
|
18749
19200
|
/** Ogłoszenie dopiero po działaniu użytkownika - przy starcie region ma milczeć. */
|
|
18750
19201
|
this.userMoved = signal(false, /* @ts-ignore */
|
|
18751
19202
|
...(ngDevMode ? [{ debugName: "userMoved" }] : /* istanbul ignore next */ []));
|
|
@@ -18757,6 +19208,55 @@ class KptGalleria {
|
|
|
18757
19208
|
return alt ? `${position}: ${alt}` : position;
|
|
18758
19209
|
}, /* @ts-ignore */
|
|
18759
19210
|
...(ngDevMode ? [{ debugName: "announcement" }] : /* istanbul ignore next */ []));
|
|
19211
|
+
// Zmiana zdjęcia: po renderze, gdy zdjęcie ma już nowy `src`. Pierwszy render i wymiana listy
|
|
19212
|
+
// bez zmiany indeksu nie grają ruchu - przesuw ilustruje przejście, nie ładowanie.
|
|
19213
|
+
afterRenderEffect(() => {
|
|
19214
|
+
const index = this.index();
|
|
19215
|
+
const src = this.current()?.src ?? '';
|
|
19216
|
+
const prev = this.shown;
|
|
19217
|
+
this.shown = { index, src };
|
|
19218
|
+
const strip = this.strip()?.nativeElement;
|
|
19219
|
+
const thumb = this.thumbs()[index]?.nativeElement;
|
|
19220
|
+
// Start na dalekim zdjęciu: pasek od razu pokazuje aktywną miniaturę, bez przewijania na oczach.
|
|
19221
|
+
if (!prev) {
|
|
19222
|
+
if (strip && thumb)
|
|
19223
|
+
revealThumb(strip, thumb, false);
|
|
19224
|
+
return;
|
|
19225
|
+
}
|
|
19226
|
+
if (prev.index === index)
|
|
19227
|
+
return;
|
|
19228
|
+
const stage = this.stage()?.nativeElement;
|
|
19229
|
+
const image = this.image()?.nativeElement;
|
|
19230
|
+
if (stage && image && prev.src && prev.src !== src) {
|
|
19231
|
+
playGallerySlide({ stage, image, previousSrc: prev.src, direction: index > prev.index ? 1 : -1, motion: this.motion() });
|
|
19232
|
+
}
|
|
19233
|
+
if (strip && thumb)
|
|
19234
|
+
revealThumb(strip, thumb);
|
|
19235
|
+
});
|
|
19236
|
+
// Pasek: krawędzie i przeciąganie - podpinane, gdy pasek istnieje, i odpinane razem z nim.
|
|
19237
|
+
afterRenderEffect((onCleanup) => {
|
|
19238
|
+
const strip = this.strip()?.nativeElement;
|
|
19239
|
+
const wrap = this.stripWrap()?.nativeElement;
|
|
19240
|
+
this.items();
|
|
19241
|
+
if (!strip || !wrap)
|
|
19242
|
+
return;
|
|
19243
|
+
const edges = trackStripEdges(strip, wrap);
|
|
19244
|
+
const detach = attachDragScroll(strip);
|
|
19245
|
+
onCleanup(() => {
|
|
19246
|
+
edges.dispose();
|
|
19247
|
+
detach();
|
|
19248
|
+
});
|
|
19249
|
+
});
|
|
19250
|
+
inject(DestroyRef).onDestroy(() => {
|
|
19251
|
+
const stage = this.stage()?.nativeElement;
|
|
19252
|
+
if (stage)
|
|
19253
|
+
stopGallerySlide(stage, this.image()?.nativeElement);
|
|
19254
|
+
});
|
|
19255
|
+
}
|
|
19256
|
+
scrollThumbs(direction) {
|
|
19257
|
+
const strip = this.strip()?.nativeElement;
|
|
19258
|
+
if (strip)
|
|
19259
|
+
scrollStrip(strip, direction);
|
|
18760
19260
|
}
|
|
18761
19261
|
next() {
|
|
18762
19262
|
this.select(this.index() + 1);
|
|
@@ -18791,45 +19291,45 @@ class KptGalleria {
|
|
|
18791
19291
|
}
|
|
18792
19292
|
static { this.ɵfac = function KptGalleria_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || KptGalleria)(); }; }
|
|
18793
19293
|
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);
|
|
19294
|
+
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
19295
|
} 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:
|
|
18798
|
-
i0.ɵɵelementStart(0, "div",
|
|
19296
|
+
i0.ɵɵqueryAdvance(5);
|
|
19297
|
+
} }, 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) {
|
|
19298
|
+
i0.ɵɵelementStart(0, "div", 5);
|
|
18799
19299
|
i0.ɵɵlistener("keydown", function KptGalleria_Template_div_keydown_0_listener($event) { return ctx.onKeydown($event); });
|
|
18800
|
-
i0.ɵɵelementStart(1, "div",
|
|
18801
|
-
i0.ɵɵlistener("click", function
|
|
18802
|
-
i0.ɵɵelement(
|
|
19300
|
+
i0.ɵɵelementStart(1, "div", 6, 0)(3, "button", 7);
|
|
19301
|
+
i0.ɵɵlistener("click", function KptGalleria_Template_button_click_3_listener() { return ctx.prev(); });
|
|
19302
|
+
i0.ɵɵelement(4, "kpt-icon", 8);
|
|
18803
19303
|
i0.ɵɵelementEnd();
|
|
18804
|
-
i0.ɵɵconditionalCreate(
|
|
18805
|
-
i0.ɵɵelementStart(
|
|
18806
|
-
i0.ɵɵlistener("click", function
|
|
18807
|
-
i0.ɵɵelement(
|
|
19304
|
+
i0.ɵɵconditionalCreate(5, KptGalleria_Conditional_5_Template, 2, 2, "img", 9);
|
|
19305
|
+
i0.ɵɵelementStart(6, "button", 10);
|
|
19306
|
+
i0.ɵɵlistener("click", function KptGalleria_Template_button_click_6_listener() { return ctx.next(); });
|
|
19307
|
+
i0.ɵɵelement(7, "kpt-icon", 11);
|
|
18808
19308
|
i0.ɵɵelementEnd()();
|
|
18809
|
-
i0.ɵɵconditionalCreate(
|
|
18810
|
-
i0.ɵɵelementStart(
|
|
18811
|
-
i0.ɵɵtext(
|
|
19309
|
+
i0.ɵɵconditionalCreate(8, KptGalleria_Conditional_8_Template, 10, 2, "div", 12);
|
|
19310
|
+
i0.ɵɵelementStart(9, "span", 13);
|
|
19311
|
+
i0.ɵɵtext(10);
|
|
18812
19312
|
i0.ɵɵelementEnd()();
|
|
18813
19313
|
} if (rf & 2) {
|
|
18814
|
-
let
|
|
18815
|
-
i0.ɵɵadvance(
|
|
19314
|
+
let tmp_3_0;
|
|
19315
|
+
i0.ɵɵadvance(3);
|
|
18816
19316
|
i0.ɵɵattribute("aria-disabled", ctx.index() <= 0 ? "true" : null)("aria-label", ctx.i18n.t("common.previous"));
|
|
18817
19317
|
i0.ɵɵadvance(2);
|
|
18818
|
-
i0.ɵɵconditional((
|
|
19318
|
+
i0.ɵɵconditional((tmp_3_0 = ctx.current()) ? 5 : -1, tmp_3_0);
|
|
18819
19319
|
i0.ɵɵadvance();
|
|
18820
19320
|
i0.ɵɵattribute("aria-disabled", ctx.index() >= ctx.items().length - 1 ? "true" : null)("aria-label", ctx.i18n.t("common.next"));
|
|
18821
19321
|
i0.ɵɵadvance(2);
|
|
18822
|
-
i0.ɵɵconditional(ctx.showThumbnails() ?
|
|
19322
|
+
i0.ɵɵconditional(ctx.showThumbnails() ? 8 : -1);
|
|
18823
19323
|
i0.ɵɵadvance(2);
|
|
18824
19324
|
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{
|
|
19325
|
+
} }, 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
19326
|
}
|
|
18827
19327
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(KptGalleria, [{
|
|
18828
19328
|
type: Component,
|
|
18829
19329
|
args: [{ selector: 'kpt-galleria', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [KptIcon], template: `
|
|
18830
19330
|
<!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -- strzałki z przycisków galerii, delegacja -->
|
|
18831
19331
|
<div class="kpt-galleria" (keydown)="onKeydown($event)">
|
|
18832
|
-
<div class="kpt-galleria__stage">
|
|
19332
|
+
<div #stage class="kpt-galleria__stage">
|
|
18833
19333
|
<button
|
|
18834
19334
|
type="button"
|
|
18835
19335
|
class="kpt-galleria__nav kpt-galleria__nav--prev"
|
|
@@ -18838,7 +19338,7 @@ class KptGalleria {
|
|
|
18838
19338
|
[attr.aria-label]="i18n.t('common.previous')"
|
|
18839
19339
|
><kpt-icon name="chevron-left" /></button>
|
|
18840
19340
|
@if (current(); as item) {
|
|
18841
|
-
<img class="kpt-galleria__image" [src]="item.src" [alt]="item.alt || ''" />
|
|
19341
|
+
<img #image class="kpt-galleria__image" [src]="item.src" [alt]="item.alt || ''" />
|
|
18842
19342
|
}
|
|
18843
19343
|
<button
|
|
18844
19344
|
type="button"
|
|
@@ -18850,28 +19350,34 @@ class KptGalleria {
|
|
|
18850
19350
|
</div>
|
|
18851
19351
|
|
|
18852
19352
|
@if (showThumbnails()) {
|
|
18853
|
-
<div class="kpt-
|
|
18854
|
-
|
|
18855
|
-
|
|
18856
|
-
|
|
18857
|
-
|
|
18858
|
-
|
|
18859
|
-
|
|
18860
|
-
|
|
18861
|
-
|
|
18862
|
-
|
|
18863
|
-
|
|
18864
|
-
|
|
18865
|
-
|
|
18866
|
-
|
|
19353
|
+
<div #stripWrap class="kpt-galleria__strip">
|
|
19354
|
+
<!-- Strzałki paska są skrótem dla myszy: z klawiatury pasek prowadzą strzałki galerii, a aktywna
|
|
19355
|
+
miniatura sama wraca do widoku - stąd poza kolejnością Tab. -->
|
|
19356
|
+
<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>
|
|
19357
|
+
<div #strip class="kpt-galleria__thumbs">
|
|
19358
|
+
@for (item of items(); track $index; let i = $index) {
|
|
19359
|
+
<button
|
|
19360
|
+
#thumb
|
|
19361
|
+
type="button"
|
|
19362
|
+
class="kpt-galleria__thumb"
|
|
19363
|
+
[class.is-active]="i === index()"
|
|
19364
|
+
[attr.aria-current]="i === index() ? 'true' : null"
|
|
19365
|
+
(click)="select(i)"
|
|
19366
|
+
[attr.aria-label]="item.alt || i18n.t('galleria.image', { index: i + 1 })"
|
|
19367
|
+
>
|
|
19368
|
+
<img [src]="item.thumbnail || item.src" alt="" draggable="false" />
|
|
19369
|
+
</button>
|
|
19370
|
+
}
|
|
19371
|
+
</div>
|
|
19372
|
+
<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
19373
|
</div>
|
|
18868
19374
|
}
|
|
18869
19375
|
|
|
18870
19376
|
<span class="kpt-galleria__live" aria-live="polite">{{ announcement() }}</span>
|
|
18871
19377
|
</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{
|
|
18873
|
-
}],
|
|
18874
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(KptGalleria, { className: "KptGalleria", filePath: "lib/galleria/galleria.component.ts", lineNumber:
|
|
19378
|
+
`, 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"] }]
|
|
19379
|
+
}], () => [], { 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 }] }] }); })();
|
|
19380
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(KptGalleria, { className: "KptGalleria", filePath: "lib/galleria/galleria.component.ts", lineNumber: 114 }); })();
|
|
18875
19381
|
|
|
18876
19382
|
const _c0$a = ["dlg"];
|
|
18877
19383
|
const _c1$7 = ["*", [["", "kptDialogFooter", ""]]];
|