@agnos-ui/angular-bootstrap 0.7.0 → 0.7.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.
|
@@ -100,28 +100,35 @@ export declare class SliderComponent extends BaseWidgetDirective<SliderWidget> {
|
|
|
100
100
|
readonly showMinMaxLabels: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
101
101
|
/**
|
|
102
102
|
* Return the value for the 'aria-label' attribute for the handle
|
|
103
|
-
* @param value - value of the handle
|
|
104
103
|
* @param sortedIndex - index of the handle in the sorted list
|
|
105
|
-
* @param index - index of the handle in the original list
|
|
106
104
|
*
|
|
107
105
|
* @defaultValue
|
|
108
106
|
* ```ts
|
|
109
|
-
* (
|
|
107
|
+
* () => 'Value'
|
|
108
|
+
* ```
|
|
109
|
+
*/
|
|
110
|
+
readonly ariaLabel: import("@angular/core").InputSignal<((sortedIndex: number) => string) | undefined>;
|
|
111
|
+
/**
|
|
112
|
+
* Return the value for the 'aria-labelledBy' attribute for the handle
|
|
113
|
+
* @param sortedIndex - index of the handle in the sorted list
|
|
114
|
+
*
|
|
115
|
+
* @defaultValue
|
|
116
|
+
* ```ts
|
|
117
|
+
* () => ''
|
|
110
118
|
* ```
|
|
111
119
|
*/
|
|
112
|
-
readonly
|
|
120
|
+
readonly ariaLabelledBy: import("@angular/core").InputSignal<((sortedIndex: number) => string) | undefined>;
|
|
113
121
|
/**
|
|
114
122
|
* Return the value for the 'aria-valuetext' attribute for the handle
|
|
115
123
|
* @param value - value of the handle
|
|
116
124
|
* @param sortedIndex - index of the handle in the sorted list
|
|
117
|
-
* @param index - index of the handle in the original list
|
|
118
125
|
*
|
|
119
126
|
* @defaultValue
|
|
120
127
|
* ```ts
|
|
121
|
-
* (value: number) => ''
|
|
128
|
+
* (value: number) => ''
|
|
122
129
|
* ```
|
|
123
130
|
*/
|
|
124
|
-
readonly ariaValueText: import("@angular/core").InputSignal<((value: number, sortedIndex: number
|
|
131
|
+
readonly ariaValueText: import("@angular/core").InputSignal<((value: number, sortedIndex: number) => string) | undefined>;
|
|
125
132
|
/**
|
|
126
133
|
* If `true` slider value cannot be changed but the slider is still focusable
|
|
127
134
|
*
|
|
@@ -183,5 +190,5 @@ export declare class SliderComponent extends BaseWidgetDirective<SliderWidget> {
|
|
|
183
190
|
setDisabledState(isDisabled: boolean): void;
|
|
184
191
|
handleBlur(): void;
|
|
185
192
|
static ɵfac: i0.ɵɵFactoryDeclaration<SliderComponent, never>;
|
|
186
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SliderComponent, "[auSlider]", never, { "className": { "alias": "auClassName"; "required": false; "isSignal": true; }; "min": { "alias": "auMin"; "required": false; "isSignal": true; }; "max": { "alias": "auMax"; "required": false; "isSignal": true; }; "stepSize": { "alias": "auStepSize"; "required": false; "isSignal": true; }; "values": { "alias": "auValues"; "required": false; "isSignal": true; }; "rtl": { "alias": "auRtl"; "required": false; "isSignal": true; }; "showValueLabels": { "alias": "auShowValueLabels"; "required": false; "isSignal": true; }; "showMinMaxLabels": { "alias": "auShowMinMaxLabels"; "required": false; "isSignal": true; }; "
|
|
193
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SliderComponent, "[auSlider]", never, { "className": { "alias": "auClassName"; "required": false; "isSignal": true; }; "min": { "alias": "auMin"; "required": false; "isSignal": true; }; "max": { "alias": "auMax"; "required": false; "isSignal": true; }; "stepSize": { "alias": "auStepSize"; "required": false; "isSignal": true; }; "values": { "alias": "auValues"; "required": false; "isSignal": true; }; "rtl": { "alias": "auRtl"; "required": false; "isSignal": true; }; "showValueLabels": { "alias": "auShowValueLabels"; "required": false; "isSignal": true; }; "showMinMaxLabels": { "alias": "auShowMinMaxLabels"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "auAriaLabel"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "auAriaLabelledBy"; "required": false; "isSignal": true; }; "ariaValueText": { "alias": "auAriaValueText"; "required": false; "isSignal": true; }; "readonly": { "alias": "auReadonly"; "required": false; "isSignal": true; }; "disabled": { "alias": "auDisabled"; "required": false; "isSignal": true; }; "vertical": { "alias": "auVertical"; "required": false; "isSignal": true; }; "label": { "alias": "auLabel"; "required": false; "isSignal": true; }; "structure": { "alias": "auStructure"; "required": false; "isSignal": true; }; "handle": { "alias": "auHandle"; "required": false; "isSignal": true; }; }, { "valuesChange": "auValuesChange"; }, ["slotLabelFromContent", "slotStructureFromContent", "slotHandleFromContent"], never, true, never>;
|
|
187
194
|
}
|
|
@@ -165,28 +165,35 @@ export interface SliderState {
|
|
|
165
165
|
export interface SliderProps {
|
|
166
166
|
/**
|
|
167
167
|
* Return the value for the 'aria-label' attribute for the handle
|
|
168
|
-
* @param value - value of the handle
|
|
169
168
|
* @param sortedIndex - index of the handle in the sorted list
|
|
170
|
-
* @param index - index of the handle in the original list
|
|
171
169
|
*
|
|
172
170
|
* @defaultValue
|
|
173
171
|
* ```ts
|
|
174
|
-
* (
|
|
172
|
+
* () => 'Value'
|
|
173
|
+
* ```
|
|
174
|
+
*/
|
|
175
|
+
ariaLabel: (sortedIndex: number) => string;
|
|
176
|
+
/**
|
|
177
|
+
* Return the value for the 'aria-labelledBy' attribute for the handle
|
|
178
|
+
* @param sortedIndex - index of the handle in the sorted list
|
|
179
|
+
*
|
|
180
|
+
* @defaultValue
|
|
181
|
+
* ```ts
|
|
182
|
+
* () => ''
|
|
175
183
|
* ```
|
|
176
184
|
*/
|
|
177
|
-
|
|
185
|
+
ariaLabelledBy: (sortedIndex: number) => string;
|
|
178
186
|
/**
|
|
179
187
|
* Return the value for the 'aria-valuetext' attribute for the handle
|
|
180
188
|
* @param value - value of the handle
|
|
181
189
|
* @param sortedIndex - index of the handle in the sorted list
|
|
182
|
-
* @param index - index of the handle in the original list
|
|
183
190
|
*
|
|
184
191
|
* @defaultValue
|
|
185
192
|
* ```ts
|
|
186
|
-
* (value: number) => ''
|
|
193
|
+
* (value: number) => ''
|
|
187
194
|
* ```
|
|
188
195
|
*/
|
|
189
|
-
ariaValueText: (value: number, sortedIndex: number
|
|
196
|
+
ariaValueText: (value: number, sortedIndex: number) => string;
|
|
190
197
|
/**
|
|
191
198
|
* An event emitted when slider values are changed
|
|
192
199
|
*
|
|
@@ -354,11 +361,15 @@ export interface SliderHandle {
|
|
|
354
361
|
/**
|
|
355
362
|
* ariaLabel of the handle
|
|
356
363
|
*/
|
|
357
|
-
ariaLabel: string;
|
|
364
|
+
ariaLabel: string | undefined;
|
|
358
365
|
/**
|
|
359
366
|
* ariaValueText of the handle
|
|
360
367
|
*/
|
|
361
|
-
ariaValueText: string;
|
|
368
|
+
ariaValueText: string | undefined;
|
|
369
|
+
/**
|
|
370
|
+
* aria-labelledBy of the handle
|
|
371
|
+
*/
|
|
372
|
+
ariaLabelledBy: string | undefined;
|
|
362
373
|
}
|
|
363
374
|
/**
|
|
364
375
|
* Interface representing various directives used in the slider component.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { widgetsConfigFactory, SlotDirective, UseDirective, ComponentTemplate, BaseWidgetDirective, auBooleanAttribute, UseMultiDirective, auNumberAttribute, useDirectiveForHost, callWidgetFactory as callWidgetFactory$1 } from '@agnos-ui/angular-headless';
|
|
2
2
|
export * from '@agnos-ui/angular-headless';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { InjectionToken, inject, TemplateRef, Directive, viewChild, Component, ChangeDetectionStrategy, input, contentChild, output, ViewEncapsulation, forwardRef, NgModule, Injector, ApplicationRef, createComponent, EnvironmentInjector, OutputEmitterRef, Injectable } from '@angular/core';
|
|
4
|
+
import { InjectionToken, inject, TemplateRef, Directive, viewChild, Component, ChangeDetectionStrategy, input, contentChild, output, ViewEncapsulation, forwardRef, signal, afterRenderEffect, NgModule, Injector, ApplicationRef, createComponent, EnvironmentInjector, OutputEmitterRef, Injectable } from '@angular/core';
|
|
5
5
|
import { getModalDefaultConfig, createModal, modalOutsideClick, modalCloseButtonClick } from '@agnos-ui/core-bootstrap/components/modal';
|
|
6
6
|
import { getPaginationDefaultConfig, createPagination } from '@agnos-ui/core-bootstrap/components/pagination';
|
|
7
7
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
@@ -2816,13 +2816,15 @@ const _c0$3 = ["handle"];
|
|
|
2816
2816
|
const _c1$3 = a0 => ({ item: a0 });
|
|
2817
2817
|
const _c2$3 = (a0, a1) => [a0, a1];
|
|
2818
2818
|
function SliderDefaultHandleSlotComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
2819
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
2819
2820
|
i0.ɵɵelementStart(0, "button", 2);
|
|
2821
|
+
i0.ɵɵlistener("keydown", function SliderDefaultHandleSlotComponent_ng_template_0_Template_button_keydown_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onKeyDown($event)); });
|
|
2820
2822
|
i0.ɵɵtext(1, "\u00A0");
|
|
2821
2823
|
i0.ɵɵelementEnd();
|
|
2822
2824
|
} if (rf & 2) {
|
|
2823
|
-
const
|
|
2824
|
-
const
|
|
2825
|
-
i0.ɵɵproperty("auUse", i0.ɵɵpureFunction2(3, _c2$3,
|
|
2825
|
+
const directives_r3 = ctx.directives;
|
|
2826
|
+
const item_r4 = ctx.item;
|
|
2827
|
+
i0.ɵɵproperty("auUse", i0.ɵɵpureFunction2(3, _c2$3, directives_r3.handleDirective, i0.ɵɵpureFunction1(1, _c1$3, item_r4)));
|
|
2826
2828
|
} }
|
|
2827
2829
|
const _c3$3 = ["structure"];
|
|
2828
2830
|
const _forTrack0 = ($index, $item) => $item.id;
|
|
@@ -2991,13 +2993,44 @@ class SliderHandleDirective {
|
|
|
2991
2993
|
class SliderDefaultHandleSlotComponent {
|
|
2992
2994
|
constructor() {
|
|
2993
2995
|
this.handle = viewChild.required('handle');
|
|
2996
|
+
/**
|
|
2997
|
+
* When the element moves up the DOM Angluar removes the focus
|
|
2998
|
+
* To avoid this we need to manually focus the element by calling the HTMLElement.focus
|
|
2999
|
+
* after the change, afterRenderEffect is executed after each render of the component
|
|
3000
|
+
* and when the signal inside is changed. On each key stroke we set the `refocus` signal
|
|
3001
|
+
* to the element that needs to be focused and we put the `equal` function to always return
|
|
3002
|
+
* `false` in order to trigger the change even when the element is the same
|
|
3003
|
+
*/
|
|
3004
|
+
this.refocus = signal(undefined, { equal: () => false });
|
|
3005
|
+
afterRenderEffect(() => {
|
|
3006
|
+
this.refocus()?.focus();
|
|
3007
|
+
});
|
|
3008
|
+
}
|
|
3009
|
+
/**
|
|
3010
|
+
* Key handler that sets the refocus element only on the key strokes that move
|
|
3011
|
+
* the element up the DOM
|
|
3012
|
+
* @param event object containting key stroke and the target element
|
|
3013
|
+
*/
|
|
3014
|
+
onKeyDown(event) {
|
|
3015
|
+
switch (event.key) {
|
|
3016
|
+
case 'ArrowDown':
|
|
3017
|
+
case 'ArrowLeft':
|
|
3018
|
+
case 'Home':
|
|
3019
|
+
case 'ArrowUp':
|
|
3020
|
+
case 'ArrowRight':
|
|
3021
|
+
case 'End':
|
|
3022
|
+
this.refocus.set(event.target);
|
|
3023
|
+
break;
|
|
3024
|
+
default:
|
|
3025
|
+
break;
|
|
3026
|
+
}
|
|
2994
3027
|
}
|
|
2995
3028
|
static { this.ɵfac = function SliderDefaultHandleSlotComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SliderDefaultHandleSlotComponent)(); }; }
|
|
2996
3029
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SliderDefaultHandleSlotComponent, selectors: [["ng-component"]], viewQuery: function SliderDefaultHandleSlotComponent_Query(rf, ctx) { if (rf & 1) {
|
|
2997
3030
|
i0.ɵɵviewQuerySignal(ctx.handle, _c0$3, 5);
|
|
2998
3031
|
} if (rf & 2) {
|
|
2999
3032
|
i0.ɵɵqueryAdvance();
|
|
3000
|
-
} }, decls: 2, vars: 0, consts: [["handle", ""], ["auSliderHandle", ""], [3, "auUse"]], template: function SliderDefaultHandleSlotComponent_Template(rf, ctx) { if (rf & 1) {
|
|
3033
|
+
} }, decls: 2, vars: 0, consts: [["handle", ""], ["auSliderHandle", ""], [3, "keydown", "auUse"]], template: function SliderDefaultHandleSlotComponent_Template(rf, ctx) { if (rf & 1) {
|
|
3001
3034
|
i0.ɵɵtemplate(0, SliderDefaultHandleSlotComponent_ng_template_0_Template, 2, 6, "ng-template", 1, 0, i0.ɵɵtemplateRefExtractor);
|
|
3002
3035
|
} }, dependencies: [UseDirective, SliderHandleDirective], encapsulation: 2, changeDetection: 0 }); }
|
|
3003
3036
|
}
|
|
@@ -3008,12 +3041,12 @@ class SliderDefaultHandleSlotComponent {
|
|
|
3008
3041
|
imports: [UseDirective, SliderHandleDirective],
|
|
3009
3042
|
template: `
|
|
3010
3043
|
<ng-template auSliderHandle #handle let-state="state" let-directives="directives" let-item="item">
|
|
3011
|
-
<button [auUse]="[directives.handleDirective, {item}]"> </button>
|
|
3044
|
+
<button [auUse]="[directives.handleDirective, {item}]" (keydown)="onKeyDown($event)"> </button>
|
|
3012
3045
|
</ng-template>
|
|
3013
3046
|
`,
|
|
3014
3047
|
}]
|
|
3015
|
-
}],
|
|
3016
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SliderDefaultHandleSlotComponent, { className: "SliderDefaultHandleSlotComponent", filePath: "components/slider/slider.component.ts", lineNumber:
|
|
3048
|
+
}], () => [], null); })();
|
|
3049
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SliderDefaultHandleSlotComponent, { className: "SliderDefaultHandleSlotComponent", filePath: "components/slider/slider.component.ts", lineNumber: 65 }); })();
|
|
3017
3050
|
/**
|
|
3018
3051
|
* A constant representing the default slot handle for the slider component.
|
|
3019
3052
|
*/
|
|
@@ -3092,7 +3125,7 @@ class SliderDefaultStructureSlotComponent {
|
|
|
3092
3125
|
`,
|
|
3093
3126
|
}]
|
|
3094
3127
|
}], null, null); })();
|
|
3095
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SliderDefaultStructureSlotComponent, { className: "SliderDefaultStructureSlotComponent", filePath: "components/slider/slider.component.ts", lineNumber:
|
|
3128
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SliderDefaultStructureSlotComponent, { className: "SliderDefaultStructureSlotComponent", filePath: "components/slider/slider.component.ts", lineNumber: 162 }); })();
|
|
3096
3129
|
/**
|
|
3097
3130
|
* Represents the default slot structure for the slider component.
|
|
3098
3131
|
*/
|
|
@@ -3177,25 +3210,32 @@ class SliderComponent extends BaseWidgetDirective {
|
|
|
3177
3210
|
this.showMinMaxLabels = input(undefined, { alias: 'auShowMinMaxLabels', transform: auBooleanAttribute });
|
|
3178
3211
|
/**
|
|
3179
3212
|
* Return the value for the 'aria-label' attribute for the handle
|
|
3180
|
-
* @param value - value of the handle
|
|
3181
3213
|
* @param sortedIndex - index of the handle in the sorted list
|
|
3182
|
-
* @param index - index of the handle in the original list
|
|
3183
3214
|
*
|
|
3184
3215
|
* @defaultValue
|
|
3185
3216
|
* ```ts
|
|
3186
|
-
* (
|
|
3217
|
+
* () => 'Value'
|
|
3187
3218
|
* ```
|
|
3188
3219
|
*/
|
|
3189
|
-
this.
|
|
3220
|
+
this.ariaLabel = input(undefined, { alias: 'auAriaLabel' });
|
|
3221
|
+
/**
|
|
3222
|
+
* Return the value for the 'aria-labelledBy' attribute for the handle
|
|
3223
|
+
* @param sortedIndex - index of the handle in the sorted list
|
|
3224
|
+
*
|
|
3225
|
+
* @defaultValue
|
|
3226
|
+
* ```ts
|
|
3227
|
+
* () => ''
|
|
3228
|
+
* ```
|
|
3229
|
+
*/
|
|
3230
|
+
this.ariaLabelledBy = input(undefined, { alias: 'auAriaLabelledBy' });
|
|
3190
3231
|
/**
|
|
3191
3232
|
* Return the value for the 'aria-valuetext' attribute for the handle
|
|
3192
3233
|
* @param value - value of the handle
|
|
3193
3234
|
* @param sortedIndex - index of the handle in the sorted list
|
|
3194
|
-
* @param index - index of the handle in the original list
|
|
3195
3235
|
*
|
|
3196
3236
|
* @defaultValue
|
|
3197
3237
|
* ```ts
|
|
3198
|
-
* (value: number) => ''
|
|
3238
|
+
* (value: number) => ''
|
|
3199
3239
|
* ```
|
|
3200
3240
|
*/
|
|
3201
3241
|
this.ariaValueText = input(undefined, { alias: 'auAriaValueText' });
|
|
@@ -3289,7 +3329,7 @@ class SliderComponent extends BaseWidgetDirective {
|
|
|
3289
3329
|
i0.ɵɵqueryAdvance(3);
|
|
3290
3330
|
} }, hostBindings: function SliderComponent_HostBindings(rf, ctx) { if (rf & 1) {
|
|
3291
3331
|
i0.ɵɵlistener("blur", function SliderComponent_blur_HostBindingHandler() { return ctx.handleBlur(); });
|
|
3292
|
-
} }, inputs: { className: [1, "auClassName", "className"], min: [1, "auMin", "min"], max: [1, "auMax", "max"], stepSize: [1, "auStepSize", "stepSize"], values: [1, "auValues", "values"], rtl: [1, "auRtl", "rtl"], showValueLabels: [1, "auShowValueLabels", "showValueLabels"], showMinMaxLabels: [1, "auShowMinMaxLabels", "showMinMaxLabels"],
|
|
3332
|
+
} }, inputs: { className: [1, "auClassName", "className"], min: [1, "auMin", "min"], max: [1, "auMax", "max"], stepSize: [1, "auStepSize", "stepSize"], values: [1, "auValues", "values"], rtl: [1, "auRtl", "rtl"], showValueLabels: [1, "auShowValueLabels", "showValueLabels"], showMinMaxLabels: [1, "auShowMinMaxLabels", "showMinMaxLabels"], ariaLabel: [1, "auAriaLabel", "ariaLabel"], ariaLabelledBy: [1, "auAriaLabelledBy", "ariaLabelledBy"], ariaValueText: [1, "auAriaValueText", "ariaValueText"], readonly: [1, "auReadonly", "readonly"], disabled: [1, "auDisabled", "disabled"], vertical: [1, "auVertical", "vertical"], label: [1, "auLabel", "label"], structure: [1, "auStructure", "structure"], handle: [1, "auHandle", "handle"] }, outputs: { valuesChange: "auValuesChange" }, features: [i0.ɵɵProvidersFeature([{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SliderComponent), multi: true }]), i0.ɵɵInheritDefinitionFeature], attrs: _c8$1, decls: 1, vars: 6, consts: [[3, "auSlot", "auSlotProps"]], template: function SliderComponent_Template(rf, ctx) { if (rf & 1) {
|
|
3293
3333
|
i0.ɵɵtemplate(0, SliderComponent_ng_template_0_Template, 0, 0, "ng-template", 0);
|
|
3294
3334
|
} if (rf & 2) {
|
|
3295
3335
|
i0.ɵɵproperty("auSlot", ctx.state.structure())("auSlotProps", i0.ɵɵpureFunction3(2, _c9, ctx.state, ctx.api, ctx.directives));
|
|
@@ -3309,7 +3349,7 @@ class SliderComponent extends BaseWidgetDirective {
|
|
|
3309
3349
|
template: ` <ng-template [auSlot]="state.structure()" [auSlotProps]="{state, api, directives}" /> `,
|
|
3310
3350
|
}]
|
|
3311
3351
|
}], () => [], null); })();
|
|
3312
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SliderComponent, { className: "SliderComponent", filePath: "components/slider/slider.component.ts", lineNumber:
|
|
3352
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SliderComponent, { className: "SliderComponent", filePath: "components/slider/slider.component.ts", lineNumber: 187 }); })();
|
|
3313
3353
|
|
|
3314
3354
|
/**
|
|
3315
3355
|
* Retrieve a shallow copy of the default Progressbar config
|
|
@@ -3876,7 +3916,7 @@ class ToastComponent extends BaseWidgetDirective {
|
|
|
3876
3916
|
i0.ɵɵviewQuerySignal(ctx.slotChildren, _c2$1, 5);
|
|
3877
3917
|
} if (rf & 2) {
|
|
3878
3918
|
i0.ɵɵqueryAdvance();
|
|
3879
|
-
} }, inputs: { dismissible: [1, "auDismissible", "dismissible"], transition: [1, "auTransition", "transition"], visible: [1, "auVisible", "visible"], animatedOnInit: [1, "auAnimatedOnInit", "animatedOnInit"], animated: [1, "auAnimated", "animated"], autoHide: [1, "auAutoHide", "autoHide"], delay: [1, "auDelay", "delay"], ariaCloseButtonLabel: [1, "auAriaCloseButtonLabel", "ariaCloseButtonLabel"], children: [1, "auChildren", "children"], structure: [1, "auStructure", "structure"], header: [1, "auHeader", "header"], className: [1, "auClassName", "className"] }, outputs: { visibleChange: "auVisibleChange", hidden: "auHidden", shown: "auShown" }, features: [i0.ɵɵInheritDefinitionFeature], attrs: _c3$1, ngContentSelectors: _c4$1, decls: 3, vars: 1, consts: [["content", ""], [
|
|
3919
|
+
} }, inputs: { dismissible: [1, "auDismissible", "dismissible"], transition: [1, "auTransition", "transition"], visible: [1, "auVisible", "visible"], animatedOnInit: [1, "auAnimatedOnInit", "animatedOnInit"], animated: [1, "auAnimated", "animated"], autoHide: [1, "auAutoHide", "autoHide"], delay: [1, "auDelay", "delay"], ariaCloseButtonLabel: [1, "auAriaCloseButtonLabel", "ariaCloseButtonLabel"], children: [1, "auChildren", "children"], structure: [1, "auStructure", "structure"], header: [1, "auHeader", "header"], className: [1, "auClassName", "className"] }, outputs: { visibleChange: "auVisibleChange", hidden: "auHidden", shown: "auShown" }, features: [i0.ɵɵInheritDefinitionFeature], attrs: _c3$1, ngContentSelectors: _c4$1, decls: 3, vars: 1, consts: [["content", ""], [3, "d-flex", "toast-dismissible", "auUseMulti"], [3, "auUseMulti"], [3, "auSlot", "auSlotProps"]], template: function ToastComponent_Template(rf, ctx) { if (rf & 1) {
|
|
3880
3920
|
i0.ɵɵprojectionDef();
|
|
3881
3921
|
i0.ɵɵtemplate(0, ToastComponent_ng_template_0_Template, 1, 0, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor)(2, ToastComponent_Conditional_2_Template, 2, 15, "div", 1);
|
|
3882
3922
|
} if (rf & 2) {
|
|
@@ -3895,7 +3935,6 @@ class ToastComponent extends BaseWidgetDirective {
|
|
|
3895
3935
|
</ng-template>
|
|
3896
3936
|
@if (!state.hidden()) {
|
|
3897
3937
|
<div
|
|
3898
|
-
class="toast"
|
|
3899
3938
|
[class.d-flex]="!state.header()"
|
|
3900
3939
|
[class.toast-dismissible]="state.dismissible()"
|
|
3901
3940
|
[auUseMulti]="[directives.autoHideDirective, directives.transitionDirective, directives.bodyDirective]"
|
|
@@ -3905,7 +3944,7 @@ class ToastComponent extends BaseWidgetDirective {
|
|
|
3905
3944
|
}`,
|
|
3906
3945
|
}]
|
|
3907
3946
|
}], () => [], null); })();
|
|
3908
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ToastComponent, { className: "ToastComponent", filePath: "components/toast/toast.component.ts", lineNumber:
|
|
3947
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ToastComponent, { className: "ToastComponent", filePath: "components/toast/toast.component.ts", lineNumber: 103 }); })();
|
|
3909
3948
|
|
|
3910
3949
|
/**
|
|
3911
3950
|
* Directive to control the collapse behavior of an element.
|