@akcelik/strct 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -856,7 +856,8 @@ class StrctOverlay {
|
|
|
856
856
|
*/
|
|
857
857
|
placement = input('bottom-start', { ...(ngDevMode ? { debugName: "placement" } : /* istanbul ignore next */ {}), alias: 'strctOverlayPlacement' });
|
|
858
858
|
/** Match the panel width to the anchor (combobox / date / cascade fields). */
|
|
859
|
-
matchWidth = input(false, { ...(ngDevMode ? { debugName: "matchWidth" } : /* istanbul ignore next */ {}), alias: 'strctOverlayMatchWidth',
|
|
859
|
+
matchWidth = input(false, { ...(ngDevMode ? { debugName: "matchWidth" } : /* istanbul ignore next */ {}), alias: 'strctOverlayMatchWidth',
|
|
860
|
+
transform: booleanAttribute });
|
|
860
861
|
/** Gap between anchor and panel in pixels. */
|
|
861
862
|
gap = input(5, { ...(ngDevMode ? { debugName: "gap" } : /* istanbul ignore next */ {}), alias: 'strctOverlayGap' });
|
|
862
863
|
onScrollResize = () => this.position();
|
|
@@ -2089,7 +2090,9 @@ class StrctAccordionPanel {
|
|
|
2089
2090
|
<span class="strct-acc__title">{{ heading() }}</span>
|
|
2090
2091
|
</button>
|
|
2091
2092
|
@if (expanded()) {
|
|
2092
|
-
<div class="strct-acc__body" [id]="bodyId" role="region" [attr.aria-labelledby]="headId"
|
|
2093
|
+
<div class="strct-acc__body" [id]="bodyId" role="region" [attr.aria-labelledby]="headId">
|
|
2094
|
+
<ng-content />
|
|
2095
|
+
</div>
|
|
2093
2096
|
}
|
|
2094
2097
|
`, isInline: true, styles: [".strct-acc{display:block}.strct-acc+.strct-acc{border-top:1px solid var(--b2)}.strct-acc__head{display:flex;align-items:center;gap:9px;width:100%;padding:11px 14px;border:0;background:transparent;cursor:pointer;font-family:var(--font);font-size:13px;font-weight:500;color:var(--t1);text-align:start}.strct-acc__head:hover{background:var(--bg-3)}.strct-acc__chevron{display:inline-flex;color:var(--t3);transition:transform .16s ease}.strct-acc__chevron--open{transform:rotate(90deg);color:var(--acc)}[dir=rtl] .strct-acc__chevron:not(.strct-acc__chevron--open){transform:rotate(180deg)}.strct-acc__title{flex:1}.strct-acc__body{padding:4px 14px 14px;padding-inline-start:32px;color:var(--t2);font-size:13px;border-top:1px solid var(--b1)}\n"], dependencies: [{ kind: "component", type: StrctIcon, selector: "strct-icon", inputs: ["name", "strictName", "size", "strokeWidth", "badge", "ariaLabel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2095
2098
|
}
|
|
@@ -2110,7 +2113,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.18", ngImpo
|
|
|
2110
2113
|
<span class="strct-acc__title">{{ heading() }}</span>
|
|
2111
2114
|
</button>
|
|
2112
2115
|
@if (expanded()) {
|
|
2113
|
-
<div class="strct-acc__body" [id]="bodyId" role="region" [attr.aria-labelledby]="headId"
|
|
2116
|
+
<div class="strct-acc__body" [id]="bodyId" role="region" [attr.aria-labelledby]="headId">
|
|
2117
|
+
<ng-content />
|
|
2118
|
+
</div>
|
|
2114
2119
|
}
|
|
2115
2120
|
`, host: { class: 'strct-acc' }, styles: [".strct-acc{display:block}.strct-acc+.strct-acc{border-top:1px solid var(--b2)}.strct-acc__head{display:flex;align-items:center;gap:9px;width:100%;padding:11px 14px;border:0;background:transparent;cursor:pointer;font-family:var(--font);font-size:13px;font-weight:500;color:var(--t1);text-align:start}.strct-acc__head:hover{background:var(--bg-3)}.strct-acc__chevron{display:inline-flex;color:var(--t3);transition:transform .16s ease}.strct-acc__chevron--open{transform:rotate(90deg);color:var(--acc)}[dir=rtl] .strct-acc__chevron:not(.strct-acc__chevron--open){transform:rotate(180deg)}.strct-acc__title{flex:1}.strct-acc__body{padding:4px 14px 14px;padding-inline-start:32px;color:var(--t2);font-size:13px;border-top:1px solid var(--b1)}\n"] }]
|
|
2116
2121
|
}], propDecorators: { heading: [{ type: i0.Input, args: [{ isSignal: true, alias: "heading", required: true }] }], expanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "expanded", required: false }] }, { type: i0.Output, args: ["expandedChange"] }] } });
|
|
@@ -2223,12 +2228,7 @@ class StrctTabs {
|
|
|
2223
2228
|
}
|
|
2224
2229
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.18", ngImport: i0, type: StrctTabs, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2225
2230
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.18", type: StrctTabs, isStandalone: true, selector: "strct-tabs", inputs: { selectedIndex: { classPropertyName: "selectedIndex", publicName: "selectedIndex", isSignal: true, isRequired: false, transformFunction: null }, keepAlive: { classPropertyName: "keepAlive", publicName: "keepAlive", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selectedIndex: "selectedIndexChange" }, host: { classAttribute: "strct-tabs" }, queries: [{ propertyName: "tabs", predicate: StrctTab, isSignal: true }], ngImport: i0, template: `
|
|
2226
|
-
<div
|
|
2227
|
-
class="strct-tabs__bar"
|
|
2228
|
-
role="tablist"
|
|
2229
|
-
#bar
|
|
2230
|
-
(keydown)="onKeydown($event, bar)"
|
|
2231
|
-
>
|
|
2231
|
+
<div class="strct-tabs__bar" role="tablist" #bar (keydown)="onKeydown($event, bar)">
|
|
2232
2232
|
@for (tab of tabs(); track tab; let i = $index) {
|
|
2233
2233
|
<button
|
|
2234
2234
|
type="button"
|
|
@@ -2252,12 +2252,7 @@ class StrctTabs {
|
|
|
2252
2252
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.18", ngImport: i0, type: StrctTabs, decorators: [{
|
|
2253
2253
|
type: Component,
|
|
2254
2254
|
args: [{ selector: 'strct-tabs', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: `
|
|
2255
|
-
<div
|
|
2256
|
-
class="strct-tabs__bar"
|
|
2257
|
-
role="tablist"
|
|
2258
|
-
#bar
|
|
2259
|
-
(keydown)="onKeydown($event, bar)"
|
|
2260
|
-
>
|
|
2255
|
+
<div class="strct-tabs__bar" role="tablist" #bar (keydown)="onKeydown($event, bar)">
|
|
2261
2256
|
@for (tab of tabs(); track tab; let i = $index) {
|
|
2262
2257
|
<button
|
|
2263
2258
|
type="button"
|
|
@@ -2797,7 +2792,11 @@ class StrctTreeNode {
|
|
|
2797
2792
|
}
|
|
2798
2793
|
// APG typeahead: a printable character jumps to the next matching visible
|
|
2799
2794
|
// node. Space is excluded — it activates the row (keydown.space above).
|
|
2800
|
-
if (event.key.length === 1 &&
|
|
2795
|
+
if (event.key.length === 1 &&
|
|
2796
|
+
event.key !== ' ' &&
|
|
2797
|
+
!event.ctrlKey &&
|
|
2798
|
+
!event.altKey &&
|
|
2799
|
+
!event.metaKey) {
|
|
2801
2800
|
event.preventDefault();
|
|
2802
2801
|
event.stopPropagation();
|
|
2803
2802
|
this.tree.typeahead(this, event.key);
|
|
@@ -4849,11 +4848,15 @@ class StrctBreadcrumb {
|
|
|
4849
4848
|
/** Accessible label for the navigation region (localizable). */
|
|
4850
4849
|
regionLabel = input('Breadcrumb', ...(ngDevMode ? [{ debugName: "regionLabel" }] : /* istanbul ignore next */ []));
|
|
4851
4850
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.18", ngImport: i0, type: StrctBreadcrumb, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4852
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.18", type: StrctBreadcrumb, isStandalone: true, selector: "strct-breadcrumb", inputs: { regionLabel: { classPropertyName: "regionLabel", publicName: "regionLabel", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "navigation" }, properties: { "attr.aria-label": "regionLabel()" }, classAttribute: "strct-bc" }, ngImport: i0, template: `<ol class="strct-bc__list"
|
|
4851
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.18", type: StrctBreadcrumb, isStandalone: true, selector: "strct-breadcrumb", inputs: { regionLabel: { classPropertyName: "regionLabel", publicName: "regionLabel", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "navigation" }, properties: { "attr.aria-label": "regionLabel()" }, classAttribute: "strct-bc" }, ngImport: i0, template: `<ol class="strct-bc__list">
|
|
4852
|
+
<ng-content />
|
|
4853
|
+
</ol>`, isInline: true, styles: [".strct-bc__list{display:flex;align-items:center;flex-wrap:wrap;gap:2px;margin:0;padding:0;list-style:none;font-size:13px}.strct-bc__item:not(:last-child):after{content:\"/\";margin:0 8px;color:var(--t3);font-weight:400}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
4853
4854
|
}
|
|
4854
4855
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.18", ngImport: i0, type: StrctBreadcrumb, decorators: [{
|
|
4855
4856
|
type: Component,
|
|
4856
|
-
args: [{ selector: 'strct-breadcrumb', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: `<ol class="strct-bc__list"
|
|
4857
|
+
args: [{ selector: 'strct-breadcrumb', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: `<ol class="strct-bc__list">
|
|
4858
|
+
<ng-content />
|
|
4859
|
+
</ol>`, host: { class: 'strct-bc', role: 'navigation', '[attr.aria-label]': 'regionLabel()' }, styles: [".strct-bc__list{display:flex;align-items:center;flex-wrap:wrap;gap:2px;margin:0;padding:0;list-style:none;font-size:13px}.strct-bc__item:not(:last-child):after{content:\"/\";margin:0 8px;color:var(--t3);font-weight:400}\n"] }]
|
|
4857
4860
|
}], propDecorators: { regionLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "regionLabel", required: false }] }] } });
|
|
4858
4861
|
/** One crumb. Mark the final one `current`. */
|
|
4859
4862
|
class StrctBreadcrumbItem {
|
|
@@ -5765,7 +5768,9 @@ class StrctCopy {
|
|
|
5765
5768
|
class="strct-copy"
|
|
5766
5769
|
[class.strct-copy--done]="done()"
|
|
5767
5770
|
[class.strct-copy--error]="error()"
|
|
5768
|
-
[attr.aria-label]="
|
|
5771
|
+
[attr.aria-label]="
|
|
5772
|
+
done() ? copiedLabel() : error() ? failedLabel() : ariaLabel() || copyLabel()
|
|
5773
|
+
"
|
|
5769
5774
|
(click)="copy()"
|
|
5770
5775
|
>
|
|
5771
5776
|
<strct-icon [name]="done() ? 'check' : 'copy'" [size]="13" [strokeWidth]="1.6" />
|
|
@@ -5788,7 +5793,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.18", ngImpo
|
|
|
5788
5793
|
class="strct-copy"
|
|
5789
5794
|
[class.strct-copy--done]="done()"
|
|
5790
5795
|
[class.strct-copy--error]="error()"
|
|
5791
|
-
[attr.aria-label]="
|
|
5796
|
+
[attr.aria-label]="
|
|
5797
|
+
done() ? copiedLabel() : error() ? failedLabel() : ariaLabel() || copyLabel()
|
|
5798
|
+
"
|
|
5792
5799
|
(click)="copy()"
|
|
5793
5800
|
>
|
|
5794
5801
|
<strct-icon [name]="done() ? 'check' : 'copy'" [size]="13" [strokeWidth]="1.6" />
|
|
@@ -7054,7 +7061,8 @@ class StrctFile {
|
|
|
7054
7061
|
>
|
|
7055
7062
|
<strct-icon name="upload" [size]="20" />
|
|
7056
7063
|
<div class="strct-file__prompt">
|
|
7057
|
-
<strong>{{ dropLabel() }}</strong> or
|
|
7064
|
+
<strong>{{ dropLabel() }}</strong> or
|
|
7065
|
+
<span class="strct-file__browse">{{ browseLabel() }}</span>
|
|
7058
7066
|
</div>
|
|
7059
7067
|
<input
|
|
7060
7068
|
#input
|
|
@@ -7108,7 +7116,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.18", ngImpo
|
|
|
7108
7116
|
>
|
|
7109
7117
|
<strct-icon name="upload" [size]="20" />
|
|
7110
7118
|
<div class="strct-file__prompt">
|
|
7111
|
-
<strong>{{ dropLabel() }}</strong> or
|
|
7119
|
+
<strong>{{ dropLabel() }}</strong> or
|
|
7120
|
+
<span class="strct-file__browse">{{ browseLabel() }}</span>
|
|
7112
7121
|
</div>
|
|
7113
7122
|
<input
|
|
7114
7123
|
#input
|
|
@@ -7357,13 +7366,9 @@ class StrctChips {
|
|
|
7357
7366
|
(keydown.space)="input.focus()"
|
|
7358
7367
|
>
|
|
7359
7368
|
@for (chip of value(); track $index) {
|
|
7360
|
-
<strct-tag
|
|
7361
|
-
|
|
7362
|
-
|
|
7363
|
-
[disabled]="isDisabled()"
|
|
7364
|
-
(removed)="remove($index)"
|
|
7365
|
-
>{{ chip }}</strct-tag
|
|
7366
|
-
>
|
|
7369
|
+
<strct-tag status="accent" removable [disabled]="isDisabled()" (removed)="remove($index)">{{
|
|
7370
|
+
chip
|
|
7371
|
+
}}</strct-tag>
|
|
7367
7372
|
}
|
|
7368
7373
|
<input
|
|
7369
7374
|
#input
|
|
@@ -7393,13 +7398,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.18", ngImpo
|
|
|
7393
7398
|
(keydown.space)="input.focus()"
|
|
7394
7399
|
>
|
|
7395
7400
|
@for (chip of value(); track $index) {
|
|
7396
|
-
<strct-tag
|
|
7397
|
-
|
|
7398
|
-
|
|
7399
|
-
[disabled]="isDisabled()"
|
|
7400
|
-
(removed)="remove($index)"
|
|
7401
|
-
>{{ chip }}</strct-tag
|
|
7402
|
-
>
|
|
7401
|
+
<strct-tag status="accent" removable [disabled]="isDisabled()" (removed)="remove($index)">{{
|
|
7402
|
+
chip
|
|
7403
|
+
}}</strct-tag>
|
|
7403
7404
|
}
|
|
7404
7405
|
<input
|
|
7405
7406
|
#input
|
|
@@ -9268,9 +9269,12 @@ class StrctDatepicker {
|
|
|
9268
9269
|
<div class="strct-dp__gridwrap" role="grid" [attr.aria-labelledby]="titleId">
|
|
9269
9270
|
<div class="strct-dp__dow" role="row">
|
|
9270
9271
|
@for (d of dow(); track $index; let i = $index) {
|
|
9271
|
-
<span
|
|
9272
|
-
|
|
9273
|
-
|
|
9272
|
+
<span
|
|
9273
|
+
role="columnheader"
|
|
9274
|
+
[attr.aria-label]="dowFull()[i]"
|
|
9275
|
+
[attr.abbr]="dowFull()[i]"
|
|
9276
|
+
>{{ d }}</span
|
|
9277
|
+
>
|
|
9274
9278
|
}
|
|
9275
9279
|
</div>
|
|
9276
9280
|
@for (week of weeks(); track $index) {
|
|
@@ -9361,9 +9365,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.18", ngImpo
|
|
|
9361
9365
|
<div class="strct-dp__gridwrap" role="grid" [attr.aria-labelledby]="titleId">
|
|
9362
9366
|
<div class="strct-dp__dow" role="row">
|
|
9363
9367
|
@for (d of dow(); track $index; let i = $index) {
|
|
9364
|
-
<span
|
|
9365
|
-
|
|
9366
|
-
|
|
9368
|
+
<span
|
|
9369
|
+
role="columnheader"
|
|
9370
|
+
[attr.aria-label]="dowFull()[i]"
|
|
9371
|
+
[attr.abbr]="dowFull()[i]"
|
|
9372
|
+
>{{ d }}</span
|
|
9373
|
+
>
|
|
9367
9374
|
}
|
|
9368
9375
|
</div>
|
|
9369
9376
|
@for (week of weeks(); track $index) {
|
|
@@ -10877,9 +10884,7 @@ class StrctDatagrid {
|
|
|
10877
10884
|
if (!rows.length)
|
|
10878
10885
|
return -1;
|
|
10879
10886
|
const active = this.activeTreeRow();
|
|
10880
|
-
const current = active != null && rows.some((r) => this.rowKey(r) === active)
|
|
10881
|
-
? active
|
|
10882
|
-
: this.rowKey(rows[0]);
|
|
10887
|
+
const current = active != null && rows.some((r) => this.rowKey(r) === active) ? active : this.rowKey(rows[0]);
|
|
10883
10888
|
return current === this.rowKey(row) ? 0 : -1;
|
|
10884
10889
|
}
|
|
10885
10890
|
onTreeRowKeydown(row, event) {
|
|
@@ -12479,11 +12484,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.18", ngImpo
|
|
|
12479
12484
|
/** Vertical timeline container. Wraps `<strct-timeline-item>` children. */
|
|
12480
12485
|
class StrctTimeline {
|
|
12481
12486
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.18", ngImport: i0, type: StrctTimeline, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
12482
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.18", type: StrctTimeline, isStandalone: true, selector: "strct-timeline", host: { classAttribute: "strct-tl" }, ngImport: i0, template: `<ol class="strct-tl__list"
|
|
12487
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.18", type: StrctTimeline, isStandalone: true, selector: "strct-timeline", host: { classAttribute: "strct-tl" }, ngImport: i0, template: `<ol class="strct-tl__list">
|
|
12488
|
+
<ng-content />
|
|
12489
|
+
</ol>`, isInline: true, styles: [".strct-tl{display:flex;flex-direction:column}.strct-tl__list{display:flex;flex-direction:column;margin:0;padding:0;list-style:none}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
12483
12490
|
}
|
|
12484
12491
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.18", ngImport: i0, type: StrctTimeline, decorators: [{
|
|
12485
12492
|
type: Component,
|
|
12486
|
-
args: [{ selector: 'strct-timeline', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: `<ol class="strct-tl__list"
|
|
12493
|
+
args: [{ selector: 'strct-timeline', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: `<ol class="strct-tl__list">
|
|
12494
|
+
<ng-content />
|
|
12495
|
+
</ol>`, host: { class: 'strct-tl' }, styles: [".strct-tl{display:flex;flex-direction:column}.strct-tl__list{display:flex;flex-direction:column;margin:0;padding:0;list-style:none}\n"] }]
|
|
12487
12496
|
}] });
|
|
12488
12497
|
/** A timeline entry: a node on the rail plus a title and projected body. */
|
|
12489
12498
|
class StrctTimelineItem {
|
|
@@ -13488,7 +13497,10 @@ class StrctChart {
|
|
|
13488
13497
|
if (this.isMulti()) {
|
|
13489
13498
|
const series = this.multiSeries().map((s) => {
|
|
13490
13499
|
const reals = s.data.filter(isVal);
|
|
13491
|
-
return {
|
|
13500
|
+
return {
|
|
13501
|
+
label: s.label || 'series',
|
|
13502
|
+
latest: reals.length ? f(reals[reals.length - 1]) : '',
|
|
13503
|
+
};
|
|
13492
13504
|
});
|
|
13493
13505
|
if (custom)
|
|
13494
13506
|
return custom({ count: series.length, series });
|
|
@@ -19690,10 +19702,7 @@ class StrctDatetimePicker {
|
|
|
19690
19702
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.18", type: StrctDatetimePicker, isStandalone: true, selector: "strct-datetime-picker", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, minuteStep: { classPropertyName: "minuteStep", publicName: "minuteStep", isSignal: true, isRequired: false, transformFunction: null }, monthNames: { classPropertyName: "monthNames", publicName: "monthNames", isSignal: true, isRequired: false, transformFunction: null }, weekdayNames: { classPropertyName: "weekdayNames", publicName: "weekdayNames", isSignal: true, isRequired: false, transformFunction: null }, weekdayNamesFull: { classPropertyName: "weekdayNamesFull", publicName: "weekdayNamesFull", isSignal: true, isRequired: false, transformFunction: null }, weekStart: { classPropertyName: "weekStart", publicName: "weekStart", isSignal: true, isRequired: false, transformFunction: null }, prevMonthLabel: { classPropertyName: "prevMonthLabel", publicName: "prevMonthLabel", isSignal: true, isRequired: false, transformFunction: null }, nextMonthLabel: { classPropertyName: "nextMonthLabel", publicName: "nextMonthLabel", isSignal: true, isRequired: false, transformFunction: null }, hourLabel: { classPropertyName: "hourLabel", publicName: "hourLabel", isSignal: true, isRequired: false, transformFunction: null }, minuteLabel: { classPropertyName: "minuteLabel", publicName: "minuteLabel", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "strct-dtp" }, providers: [
|
|
19691
19703
|
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => StrctDatetimePicker), multi: true },
|
|
19692
19704
|
], ngImport: i0, template: `
|
|
19693
|
-
<div
|
|
19694
|
-
class="strct-control strct-dtp__field"
|
|
19695
|
-
[class.strct-dtp__field--disabled]="isDisabled()"
|
|
19696
|
-
>
|
|
19705
|
+
<div class="strct-control strct-dtp__field" [class.strct-dtp__field--disabled]="isDisabled()">
|
|
19697
19706
|
<strct-datepicker
|
|
19698
19707
|
class="strct-dtp__date"
|
|
19699
19708
|
[(ngModel)]="date"
|
|
@@ -19736,10 +19745,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.18", ngImpo
|
|
|
19736
19745
|
args: [{ selector: 'strct-datetime-picker', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [StrctDatepicker, FormsModule], providers: [
|
|
19737
19746
|
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => StrctDatetimePicker), multi: true },
|
|
19738
19747
|
], template: `
|
|
19739
|
-
<div
|
|
19740
|
-
class="strct-control strct-dtp__field"
|
|
19741
|
-
[class.strct-dtp__field--disabled]="isDisabled()"
|
|
19742
|
-
>
|
|
19748
|
+
<div class="strct-control strct-dtp__field" [class.strct-dtp__field--disabled]="isDisabled()">
|
|
19743
19749
|
<strct-datepicker
|
|
19744
19750
|
class="strct-dtp__date"
|
|
19745
19751
|
[(ngModel)]="date"
|
|
@@ -19947,7 +19953,7 @@ class StrctInlineEdit {
|
|
|
19947
19953
|
/** Accessible label of the pencil edit button and the input (localizable). */
|
|
19948
19954
|
editLabel = input('Edit', ...(ngDevMode ? [{ debugName: "editLabel" }] : /* istanbul ignore next */ []));
|
|
19949
19955
|
/** Builds the live-region announcement after a commit (localizable). */
|
|
19950
|
-
announcement = input((value) =>
|
|
19956
|
+
announcement = input((value) => value ? `Changed to ${value}` : 'Value cleared', ...(ngDevMode ? [{ debugName: "announcement" }] : /* istanbul ignore next */ []));
|
|
19951
19957
|
/** Committed value — the CVA model. */
|
|
19952
19958
|
value = signal('', ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
19953
19959
|
/** In-progress text while editing. */
|