@ids-group-ltd/ids-design-system 1.0.0 → 1.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.
- package/CHANGELOG.md +26 -23
- package/agent/forms/ds-autocomplete.md +1 -1
- package/agent/forms/ds-button.md +1 -1
- package/agent/forms/ds-checkbox.md +1 -1
- package/agent/forms/ds-color-picker.md +1 -1
- package/agent/forms/ds-date-picker.md +1 -1
- package/agent/forms/ds-input.md +1 -1
- package/agent/forms/ds-multi-select.md +1 -1
- package/agent/forms/ds-otp-input.md +1 -1
- package/agent/forms/ds-radio-group.md +1 -1
- package/agent/forms/ds-radio.md +1 -1
- package/agent/forms/ds-search.md +1 -1
- package/agent/forms/ds-segmented.md +1 -1
- package/agent/forms/ds-select.md +1 -1
- package/agent/forms/ds-slider.md +1 -1
- package/agent/forms/ds-switch.md +1 -1
- package/agent/forms/ds-textarea.md +1 -1
- package/agent/forms/ds-time-picker.md +1 -1
- package/agent/forms/the-picker-family-ds-select-ds-multi-select-ds-autocomplete.md +1 -1
- package/components.md +19 -19
- package/design-system.md +24 -0
- package/eslint/deprecated-api.json +7 -210
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +2 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +2 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +2 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +20 -15
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +2 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +2 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +2 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +3 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs +2 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +2 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +2 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +2 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +2 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +9 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +39 -43
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system.mjs +1 -2
- package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
- package/migrations/0.15.1.json +4 -2
- package/migrations/0.15.3.json +14 -4
- package/migrations/1.0.0.json +0 -333
- package/migrations/1.0.1.json +36 -0
- package/package.json +1 -9
- package/schematics/check-overrides/surface.json +1 -1
- package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +2 -1
- package/types/ids-group-ltd-ids-design-system-components.d.ts +19 -21
- package/types/ids-group-ltd-ids-design-system.d.ts +1 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-submitted.mjs +0 -52
- package/fesm2022/ids-group-ltd-ids-design-system-components-submitted.mjs.map +0 -1
- package/types/ids-group-ltd-ids-design-system-components-submitted.d.ts +0 -27
|
@@ -415,11 +415,6 @@ type DsFieldErrorsInput = string | DsFieldError | readonly DsFieldError[] | null
|
|
|
415
415
|
* warning state and does NOT make the control invalid.
|
|
416
416
|
*/
|
|
417
417
|
declare const DS_FIELD_WARNING_KIND = "warning";
|
|
418
|
-
/**
|
|
419
|
-
* The submit flag `[dsSubmitted]` provides to the fields inside it: validation errors show only
|
|
420
|
-
* while it reads `true`.
|
|
421
|
-
*/
|
|
422
|
-
declare const DS_SUBMITTED: InjectionToken<Signal<boolean>>;
|
|
423
418
|
/** @internal */
|
|
424
419
|
declare function trimmedText(value: string | null | undefined): string;
|
|
425
420
|
/** The single line a field shows below itself, already resolved.
|
|
@@ -434,13 +429,15 @@ interface DsFieldMessageSources {
|
|
|
434
429
|
warning: Signal<string>;
|
|
435
430
|
error: Signal<string>;
|
|
436
431
|
errors: Signal<readonly DsFieldError[]>;
|
|
437
|
-
/** Errors the control raises itself (an unparseable date), shown on the same terms as `errors`. */
|
|
438
|
-
ownErrors?: Signal<readonly DsFieldError[]>;
|
|
439
432
|
invalid: Signal<boolean>;
|
|
440
433
|
/** The control's own disabled state (a disabled control is not announced as invalid). A getter,
|
|
441
434
|
* not a `Signal`, so a caller can hand it over before its own `isDisabled` is initialised. */
|
|
442
435
|
disabled?: () => boolean;
|
|
443
436
|
success?: Signal<string>;
|
|
437
|
+
/** The field's own touched state, if it tracks one (CVA blur). */
|
|
438
|
+
touchedSelf?: Signal<boolean>;
|
|
439
|
+
/** Bound by signal forms as part of the `FormUiControl` contract. */
|
|
440
|
+
touched?: Signal<boolean>;
|
|
444
441
|
/** Bound by signal forms; an async validator is running. */
|
|
445
442
|
pending?: Signal<boolean>;
|
|
446
443
|
/** Bound by signal forms; the user changed the value. */
|
|
@@ -464,17 +461,15 @@ interface DsFieldMessageResolution {
|
|
|
464
461
|
* Precedence, highest first:
|
|
465
462
|
*
|
|
466
463
|
* 1. `error` - an explicit string. Shown immediately: the consumer decided.
|
|
467
|
-
* 2. `errors` - validation errors. Shown once the
|
|
468
|
-
* `
|
|
464
|
+
* 2. `errors` - validation errors. Shown once the user has interacted, so a
|
|
465
|
+
* `required` error does not greet an untouched form.
|
|
469
466
|
* 3. `warning` - advisory, not blocking.
|
|
470
467
|
* 4. `errors` whose kind is `DS_FIELD_WARNING_KIND` - the same, raised by the form model.
|
|
471
468
|
* 5. `success` - confirmation.
|
|
472
469
|
* 6. `hint` - helper text.
|
|
473
470
|
*
|
|
474
|
-
* Signal forms binds `errors` and `
|
|
475
|
-
* template-driven forms expose the same through `NgControl`, read here.
|
|
476
|
-
* behind it waits for the submit like them; `invalid` alone was set by the consumer and paints
|
|
477
|
-
* immediately.
|
|
471
|
+
* Signal forms binds `errors` and `touched` by input name (`FormUiControl`); reactive and
|
|
472
|
+
* template-driven forms expose the same through `NgControl`, read here.
|
|
478
473
|
*
|
|
479
474
|
* Every rung carries its OWN text; `hint` is never recoloured into another state. `invalid` has
|
|
480
475
|
* no text: it paints the control and sets `aria-invalid`.
|
|
@@ -490,19 +485,19 @@ declare function resolveFieldMessage(sources: DsFieldMessageSources): DsFieldMes
|
|
|
490
485
|
* @internal
|
|
491
486
|
*/
|
|
492
487
|
declare abstract class DsFieldBase extends DsMessageBase {
|
|
493
|
-
/** Validation errors, shown once the
|
|
494
|
-
* reactive
|
|
495
|
-
* forms are read through `NgControl`. */
|
|
488
|
+
/** Validation errors, shown once the user has interacted. Bound by signal forms;
|
|
489
|
+
* reactive and template-driven forms are read through `NgControl`. */
|
|
496
490
|
readonly errors: i0.InputSignalWithTransform<readonly DsFieldError[], DsFieldErrorsInput>;
|
|
497
|
-
/** Paints the error state and sets `aria-invalid` WITHOUT a message; use `error` to show text.
|
|
498
|
-
* Signal forms binds it alongside `errors`, and then it waits for the submit like them. */
|
|
491
|
+
/** Paints the error state and sets `aria-invalid` WITHOUT a message; use `error` to show text. */
|
|
499
492
|
readonly invalid: i0.InputSignalWithTransform<boolean, unknown>;
|
|
493
|
+
/** Whether the user has interacted with the field. Bound by signal forms; gates `errors`. */
|
|
494
|
+
readonly touched: i0.InputSignalWithTransform<boolean, unknown>;
|
|
500
495
|
static ɵfac: i0.ɵɵFactoryDeclaration<DsFieldBase, never>;
|
|
501
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DsFieldBase, never, never, { "errors": { "alias": "errors"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
496
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DsFieldBase, never, never, { "errors": { "alias": "errors"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "touched": { "alias": "touched"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
502
497
|
}
|
|
503
498
|
/**
|
|
504
499
|
* The form-state inputs of a DS value control: what signal forms binds by name beyond `errors`
|
|
505
|
-
* and `
|
|
500
|
+
* and `touched`. Reactive and template-driven forms are read through `NgControl` instead.
|
|
506
501
|
* @internal
|
|
507
502
|
*/
|
|
508
503
|
declare abstract class DsFormControlBase extends DsFieldBase {
|
|
@@ -529,6 +524,7 @@ declare abstract class DsFormControlBase extends DsFieldBase {
|
|
|
529
524
|
*/
|
|
530
525
|
declare function valueControlBridge<T>(model: () => ModelSignal<T>): {
|
|
531
526
|
readonly formDisabled: WritableSignal<boolean>;
|
|
527
|
+
readonly touchedSelf: WritableSignal<boolean>;
|
|
532
528
|
markTouched(): void;
|
|
533
529
|
writeValue(next: T): void;
|
|
534
530
|
registerOnChange(fn: (next: T) => void): void;
|
|
@@ -553,6 +549,7 @@ declare abstract class DsControlValueAccessor<T> extends DsFormControlBase imple
|
|
|
553
549
|
blur(): void;
|
|
554
550
|
private readonly bridge;
|
|
555
551
|
protected readonly formDisabled: WritableSignal<boolean>;
|
|
552
|
+
protected readonly touchedSelf: WritableSignal<boolean>;
|
|
556
553
|
protected markTouched(): void;
|
|
557
554
|
writeValue(value: T): void;
|
|
558
555
|
registerOnChange(fn: (value: T) => void): void;
|
|
@@ -577,6 +574,7 @@ declare abstract class DsBooleanControlValueAccessor extends DsFormControlBase i
|
|
|
577
574
|
/** See `DsControlValueAccessor.blur`. */
|
|
578
575
|
blur(): void;
|
|
579
576
|
protected readonly formDisabled: WritableSignal<boolean>;
|
|
577
|
+
protected readonly touchedSelf: WritableSignal<boolean>;
|
|
580
578
|
private onChange;
|
|
581
579
|
private onTouched;
|
|
582
580
|
private synced;
|
|
@@ -1043,5 +1041,5 @@ declare function resolveChartDefaults(inputs: ChartDefaultInputs): {
|
|
|
1043
1041
|
tooltipSwatches: Signal<boolean | "auto">;
|
|
1044
1042
|
};
|
|
1045
1043
|
|
|
1046
|
-
export { CHART_GLIDE_HEAD_START_MS, CHART_HEAT_COLORS, CHART_RAMP_COLORS, CHART_RENDER_GATE_PASSED, CHART_SERIES_COLORS, CHART_SKELETON_COUNT, CHART_TOOLTIP_LINGER_MS, DS_FIELD_WARNING_KIND,
|
|
1044
|
+
export { CHART_GLIDE_HEAD_START_MS, CHART_HEAT_COLORS, CHART_RAMP_COLORS, CHART_RENDER_GATE_PASSED, CHART_SERIES_COLORS, CHART_SKELETON_COUNT, CHART_TOOLTIP_LINGER_MS, DS_FIELD_WARNING_KIND, DsBooleanControlValueAccessor, DsChartBase, DsChipTemplateDirective, DsControlValueAccessor, DsCreateTemplateDirective, DsEmptyTemplateDirective, DsFieldBase, DsFormControlBase, DsGroupLabelTemplateDirective, DsMessageBase, DsOptionTemplateDirective, DsPanelFooterTemplateDirective, DsPanelHeaderTemplateDirective, DsPickerTriggerDirective, DsStaticPreview, FieldClickFocusDirective, ProjectionDroppedDirective, afterTwoFrames, announceOptionCount, areaPath, bandPath, bandScale, chartColors, chartDelay, chartDwell, chartHoverDelayMs, chartOf, chartRenderGate, chartTiming, chartValueFormat, chipFit, clearOnDetach, closeOnOutsidePointer, closeOnScroll, createTypeAhead, decimationTarget, describeSeries, describeShare, dimmedBy, disposeWithLeave, domainMinOf, dropdownMinWidth, dropdownOverlay, dsAriaCurrent, dsDestination, dwellHighlight, elementWidth, focusIsInside, focusMark, focusRescue, formatPercent, formatTick, formatValue, formatWholePercent, forwardOverlayTokens, labelInterval, largestRemainder, leaveMark, leftMark, linePath, lineSegments, linearScale, listenForEscape, listenForMarkFocus, lttbDecimate, markAt, markOf, minMaxDecimate, moveFocusOutOf, needsDecimating, nextControlId, nextRovingIndex, niceDomain, overlayPlacementOf, panelClassesOf, prepareOverlayEnter, readOnHostResize, resolveBrandValue, resolveChartDefaults, resolveFieldMessage, rotationWouldFit, roundStepAtLeast, rovingMarks, scrollActiveOptionIntoView, shareOfTotal, skeletonColumnHeights, skeletonFunnelClips, skeletonLineClip, skeletonMarkCount, skeletonWaterfallSteps, staggerDelay, tickValues, trimmedText, tweenMarks, valueControlBridge, watchElementWidth };
|
|
1047
1045
|
export type { BandScale, ChartDimmable, ChartDwell, ChartMotionDelay, ChartMotionTiming, ChartStaggered, ChartWithDataTable, ChartWithTooltipTrigger, DsAriaCurrent, DsDestination, DsFieldError, DsFieldErrorsInput, DsFieldMessage, DsLinkModifiers, DsOverlayCloseCause, DsRouterLink, LinePoint, MarkHit, NiceDomain, RovingMarks, SummaryPoint };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { DS_FIELD_WARNING_KIND,
|
|
1
|
+
export { DS_FIELD_WARNING_KIND, DsAriaCurrent, DsChipTemplateDirective, DsCreateTemplateDirective, DsEmptyTemplateDirective, DsFieldError, DsFieldErrorsInput, DsGroupLabelTemplateDirective, DsOptionTemplateDirective, DsPanelFooterTemplateDirective, DsPanelHeaderTemplateDirective, DsPickerTriggerDirective, DsRouterLink, DsStaticPreview, FieldClickFocusDirective } from '@ids-group-ltd/ids-design-system/components';
|
|
2
2
|
export { ACCORDION, AccordionChevron, AccordionComponent, AccordionContract, AccordionItemComponent, AccordionItemRef } from '@ids-group-ltd/ids-design-system/components/accordion';
|
|
3
3
|
export { AlertComponent, AlertVariant } from '@ids-group-ltd/ids-design-system/components/alert';
|
|
4
4
|
export { AppLayoutComponent, AppLayoutNavigationService, AppLayoutScrollService, DsAppLayoutScrollReset, RailTriggerDirective } from '@ids-group-ltd/ids-design-system/components/app-layout';
|
|
@@ -68,7 +68,6 @@ export { SplitButtonComponent, SplitButtonItem, SplitButtonVariant } from '@ids-
|
|
|
68
68
|
export { StatComponent } from '@ids-group-ltd/ids-design-system/components/stat';
|
|
69
69
|
export { StatusDotComponent } from '@ids-group-ltd/ids-design-system/components/status-dot';
|
|
70
70
|
export { StepperComponent, StepperLabelPosition, StepperOrientation } from '@ids-group-ltd/ids-design-system/components/stepper';
|
|
71
|
-
export { SubmittedDirective } from '@ids-group-ltd/ids-design-system/components/submitted';
|
|
72
71
|
export { SwitchComponent } from '@ids-group-ltd/ids-design-system/components/switch';
|
|
73
72
|
export { CellTemplateContext, CellTemplateDirective, HeaderFilterContext, HeaderFilterDirective, SortChangeEvent, SortDirection, TableCellEditEvent, TableColumn, TableColumnKind, TableComponent, TableExpandMode, TableFilterMode, TableRowAction, TableRowActionEvent, TableSortMode } from '@ids-group-ltd/ids-design-system/components/table';
|
|
74
73
|
export { DsTableColumns } from '@ids-group-ltd/ids-design-system/components/table-columns';
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, booleanAttribute, inject, Directive } from '@angular/core';
|
|
3
|
-
import { DS_SUBMITTED } from '@ids-group-ltd/ids-design-system/components';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* The form's submit flag. Every DS field declared inside the host shows its validation errors
|
|
7
|
-
* only while the flag is `true`; the submit button reads the same flag:
|
|
8
|
-
*
|
|
9
|
-
* ```html
|
|
10
|
-
* <form [dsSubmitted]="submitted()">
|
|
11
|
-
* <ds-input label="Email" [formField]="form.email" />
|
|
12
|
-
* <ds-button [disabled]="submitted() && form().invalid()" (pressed)="send()">Send</ds-button>
|
|
13
|
-
* </form>
|
|
14
|
-
* ```
|
|
15
|
-
*
|
|
16
|
-
* Set the flag at the start of the submit handler and back to `false` when the form resets.
|
|
17
|
-
* Any element can host it, so fields outside a `<form>` work the same way. A reactive or
|
|
18
|
-
* template-driven form submitted through `ngSubmit` reveals its errors without it.
|
|
19
|
-
*
|
|
20
|
-
* Applies to fields declared inside the host; projected content keeps the injector of the
|
|
21
|
-
* template it was written in.
|
|
22
|
-
*/
|
|
23
|
-
class SubmittedDirective {
|
|
24
|
-
dsSubmitted = input.required({ ...(ngDevMode ? { debugName: "dsSubmitted" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
25
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: SubmittedDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
26
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.22", type: SubmittedDirective, isStandalone: true, selector: "[dsSubmitted]", inputs: { dsSubmitted: { classPropertyName: "dsSubmitted", publicName: "dsSubmitted", isSignal: true, isRequired: true, transformFunction: null } }, providers: [
|
|
27
|
-
{
|
|
28
|
-
provide: DS_SUBMITTED,
|
|
29
|
-
useFactory: () => inject(SubmittedDirective).dsSubmitted,
|
|
30
|
-
},
|
|
31
|
-
], ngImport: i0 });
|
|
32
|
-
}
|
|
33
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: SubmittedDirective, decorators: [{
|
|
34
|
-
type: Directive,
|
|
35
|
-
args: [{
|
|
36
|
-
selector: '[dsSubmitted]',
|
|
37
|
-
standalone: true,
|
|
38
|
-
providers: [
|
|
39
|
-
{
|
|
40
|
-
provide: DS_SUBMITTED,
|
|
41
|
-
useFactory: () => inject(SubmittedDirective).dsSubmitted,
|
|
42
|
-
},
|
|
43
|
-
],
|
|
44
|
-
}]
|
|
45
|
-
}], propDecorators: { dsSubmitted: [{ type: i0.Input, args: [{ isSignal: true, alias: "dsSubmitted", required: true }] }] } });
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Generated bundle index. Do not edit.
|
|
49
|
-
*/
|
|
50
|
-
|
|
51
|
-
export { SubmittedDirective };
|
|
52
|
-
//# sourceMappingURL=ids-group-ltd-ids-design-system-components-submitted.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ids-group-ltd-ids-design-system-components-submitted.mjs","sources":["../../../src/lib/components/submitted/submitted.directive.ts","../../../src/lib/components/submitted/ids-group-ltd-ids-design-system-components-submitted.ts"],"sourcesContent":["import { Directive, booleanAttribute, inject, input } from '@angular/core';\nimport { DS_SUBMITTED } from '@ids-group-ltd/ids-design-system/components';\n\n/**\n * The form's submit flag. Every DS field declared inside the host shows its validation errors\n * only while the flag is `true`; the submit button reads the same flag:\n *\n * ```html\n * <form [dsSubmitted]=\"submitted()\">\n * <ds-input label=\"Email\" [formField]=\"form.email\" />\n * <ds-button [disabled]=\"submitted() && form().invalid()\" (pressed)=\"send()\">Send</ds-button>\n * </form>\n * ```\n *\n * Set the flag at the start of the submit handler and back to `false` when the form resets.\n * Any element can host it, so fields outside a `<form>` work the same way. A reactive or\n * template-driven form submitted through `ngSubmit` reveals its errors without it.\n *\n * Applies to fields declared inside the host; projected content keeps the injector of the\n * template it was written in.\n */\n@Directive({\n selector: '[dsSubmitted]',\n standalone: true,\n providers: [\n {\n provide: DS_SUBMITTED,\n useFactory: () => inject(SubmittedDirective).dsSubmitted,\n },\n ],\n})\nexport class SubmittedDirective {\n readonly dsSubmitted = input.required<boolean, unknown>({\n transform: booleanAttribute,\n });\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAGA;;;;;;;;;;;;;;;;;AAiBG;MAWU,kBAAkB,CAAA;IACpB,WAAW,GAAG,KAAK,CAAC,QAAQ,kFACnC,SAAS,EAAE,gBAAgB,EAAA,CAC3B;wGAHS,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAlB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,kBAAkB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,eAAA,EAAA,MAAA,EAAA,EAAA,WAAA,EAAA,EAAA,iBAAA,EAAA,aAAA,EAAA,UAAA,EAAA,aAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,SAAA,EAPlB;AACT,YAAA;AACE,gBAAA,OAAO,EAAE,YAAY;gBACrB,UAAU,EAAE,MAAM,MAAM,CAAC,kBAAkB,CAAC,CAAC,WAAW;AACzD,aAAA;AACF,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAEU,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAV9B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,eAAe;AACzB,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,SAAS,EAAE;AACT,wBAAA;AACE,4BAAA,OAAO,EAAE,YAAY;AACrB,4BAAA,UAAU,EAAE,MAAM,MAAM,CAAA,kBAAA,CAAoB,CAAC,WAAW;AACzD,yBAAA;AACF,qBAAA;AACF,iBAAA;;;AC9BD;;AAEG;;;;"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* The form's submit flag. Every DS field declared inside the host shows its validation errors
|
|
5
|
-
* only while the flag is `true`; the submit button reads the same flag:
|
|
6
|
-
*
|
|
7
|
-
* ```html
|
|
8
|
-
* <form [dsSubmitted]="submitted()">
|
|
9
|
-
* <ds-input label="Email" [formField]="form.email" />
|
|
10
|
-
* <ds-button [disabled]="submitted() && form().invalid()" (pressed)="send()">Send</ds-button>
|
|
11
|
-
* </form>
|
|
12
|
-
* ```
|
|
13
|
-
*
|
|
14
|
-
* Set the flag at the start of the submit handler and back to `false` when the form resets.
|
|
15
|
-
* Any element can host it, so fields outside a `<form>` work the same way. A reactive or
|
|
16
|
-
* template-driven form submitted through `ngSubmit` reveals its errors without it.
|
|
17
|
-
*
|
|
18
|
-
* Applies to fields declared inside the host; projected content keeps the injector of the
|
|
19
|
-
* template it was written in.
|
|
20
|
-
*/
|
|
21
|
-
declare class SubmittedDirective {
|
|
22
|
-
readonly dsSubmitted: i0.InputSignalWithTransform<boolean, unknown>;
|
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SubmittedDirective, never>;
|
|
24
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<SubmittedDirective, "[dsSubmitted]", never, { "dsSubmitted": { "alias": "dsSubmitted"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export { SubmittedDirective };
|