@dataworkz/crystal 0.1.0-beta.6 → 0.1.0-beta.7
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 +10 -0
- package/fesm2022/dataworkz-crystal.mjs +16 -4
- package/fesm2022/dataworkz-crystal.mjs.map +1 -1
- package/index.d.ts +11 -4
- package/package.json +1 -1
- package/styles/components/form.css +10 -1
package/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as _angular_core from '@angular/core';
|
|
|
2
2
|
import { InjectionToken, EnvironmentProviders, OnDestroy, TemplateRef, OnInit } from '@angular/core';
|
|
3
3
|
import { StorageIconSet, DwPrimeIcon } from '@dataworkz/crystal/icons';
|
|
4
4
|
export { DW_ICON_NAMES, DW_ICON_PREFIX, DwIconName, DwPrimeIcon, IconName, dwIconName, icon } from '@dataworkz/crystal/icons';
|
|
5
|
-
import { ValidationErrors,
|
|
5
|
+
import { ValidationErrors, AbstractControl, NgModel, NgControl, ControlValueAccessor } from '@angular/forms';
|
|
6
6
|
import { MenuItem, SortMeta, SortEvent } from 'primeng/api';
|
|
7
7
|
import { UrlTree } from '@angular/router';
|
|
8
8
|
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
@@ -638,7 +638,7 @@ declare class DwEmptyStateComponent {
|
|
|
638
638
|
readonly imageWidth: _angular_core.InputSignal<string>;
|
|
639
639
|
readonly title: _angular_core.InputSignal<string>;
|
|
640
640
|
readonly text: _angular_core.InputSignal<string>;
|
|
641
|
-
readonly tone: _angular_core.InputSignal<"
|
|
641
|
+
readonly tone: _angular_core.InputSignal<"default" | "error">;
|
|
642
642
|
readonly size: _angular_core.InputSignal<"default" | "inline" | "compact">;
|
|
643
643
|
readonly hostClasses: _angular_core.Signal<string>;
|
|
644
644
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DwEmptyStateComponent, never>;
|
|
@@ -963,7 +963,7 @@ declare class DwFieldComponent {
|
|
|
963
963
|
readonly help: _angular_core.InputSignal<string>;
|
|
964
964
|
readonly layout: _angular_core.InputSignal<"inline" | "stacked">;
|
|
965
965
|
readonly labelWidth: _angular_core.InputSignal<string>;
|
|
966
|
-
readonly control: _angular_core.InputSignal<
|
|
966
|
+
readonly control: _angular_core.InputSignal<AbstractControl<any, any, any> | NgModel | NgControl | null>;
|
|
967
967
|
/** Per-field message overrides by validator key. */
|
|
968
968
|
readonly errors: _angular_core.InputSignal<Record<string, string> | null>;
|
|
969
969
|
/** Manual error message (template-driven forms or server errors). */
|
|
@@ -2781,6 +2781,7 @@ type DwDateValue = Date | (Date | null)[];
|
|
|
2781
2781
|
* <dw-date-picker dateFormat="yy-mm-dd" [maxDate]="today" placeholder="Start date" formControlName="start" />
|
|
2782
2782
|
* <dw-date-picker [showTime]="true" [showSeconds]="true" [showIcon]="true" [(ngModel)]="runAt" (changed)="save()" />
|
|
2783
2783
|
* <dw-date-picker [inline]="true" selectionMode="range" [numberOfMonths]="2" [compact]="true" [(value)]="range" />
|
|
2784
|
+
* <dw-date-picker [inline]="true" [flush]="true" [fluid]="true" [(ngModel)]="expiry" />
|
|
2784
2785
|
* ```
|
|
2785
2786
|
*/
|
|
2786
2787
|
declare class DwDatePickerComponent<T extends DwDateValue = Date> extends DwFormControl<T> {
|
|
@@ -2808,11 +2809,17 @@ declare class DwDatePickerComponent<T extends DwDateValue = Date> extends DwForm
|
|
|
2808
2809
|
readonly showClear: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
2809
2810
|
/** Smaller day cells, type and time picker, for a calendar inside a popover or a narrow panel. */
|
|
2810
2811
|
readonly compact: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
2812
|
+
/**
|
|
2813
|
+
* An inline calendar without a box of its own (border, fill, radius, padding): it sits on its container's surface,
|
|
2814
|
+
* a popover's or a panel's, which pads it. Inline only.
|
|
2815
|
+
*/
|
|
2816
|
+
readonly flush: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
2811
2817
|
/** The calendar's z-index floor, for a picker inside an overlay that sits above crystal's own layers. */
|
|
2812
2818
|
readonly baseZIndex: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
2813
2819
|
readonly inputId: _angular_core.InputSignal<string | undefined>;
|
|
2814
2820
|
readonly ariaLabel: _angular_core.InputSignal<string | undefined>;
|
|
2815
2821
|
readonly size: _angular_core.InputSignal<DwControlSize>;
|
|
2822
|
+
/** Fills its container: the field, or the inline calendar. */
|
|
2816
2823
|
readonly fluid: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
2817
2824
|
/** A day (or time) was picked in the calendar; `changed` also follows typing. */
|
|
2818
2825
|
readonly selected: _angular_core.OutputEmitterRef<Date>;
|
|
@@ -2824,7 +2831,7 @@ declare class DwDatePickerComponent<T extends DwDateValue = Date> extends DwForm
|
|
|
2824
2831
|
private readonly prime;
|
|
2825
2832
|
constructor();
|
|
2826
2833
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DwDatePickerComponent<any>, never>;
|
|
2827
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DwDatePickerComponent<any>, "dw-date-picker", never, { "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "dateFormat": { "alias": "dateFormat"; "required": false; "isSignal": true; }; "showTime": { "alias": "showTime"; "required": false; "isSignal": true; }; "showSeconds": { "alias": "showSeconds"; "required": false; "isSignal": true; }; "hourFormat": { "alias": "hourFormat"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "selectionMode": { "alias": "selectionMode"; "required": false; "isSignal": true; }; "inline": { "alias": "inline"; "required": false; "isSignal": true; }; "numberOfMonths": { "alias": "numberOfMonths"; "required": false; "isSignal": true; }; "showOtherMonths": { "alias": "showOtherMonths"; "required": false; "isSignal": true; }; "showIcon": { "alias": "showIcon"; "required": false; "isSignal": true; }; "iconDisplay": { "alias": "iconDisplay"; "required": false; "isSignal": true; }; "showClear": { "alias": "showClear"; "required": false; "isSignal": true; }; "compact": { "alias": "compact"; "required": false; "isSignal": true; }; "baseZIndex": { "alias": "baseZIndex"; "required": false; "isSignal": true; }; "inputId": { "alias": "inputId"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "fluid": { "alias": "fluid"; "required": false; "isSignal": true; }; }, { "selected": "selected"; "focused": "focused"; "blurred": "blurred"; "opened": "opened"; "closed": "closed"; }, never, never, true, never>;
|
|
2834
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DwDatePickerComponent<any>, "dw-date-picker", never, { "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "dateFormat": { "alias": "dateFormat"; "required": false; "isSignal": true; }; "showTime": { "alias": "showTime"; "required": false; "isSignal": true; }; "showSeconds": { "alias": "showSeconds"; "required": false; "isSignal": true; }; "hourFormat": { "alias": "hourFormat"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "selectionMode": { "alias": "selectionMode"; "required": false; "isSignal": true; }; "inline": { "alias": "inline"; "required": false; "isSignal": true; }; "numberOfMonths": { "alias": "numberOfMonths"; "required": false; "isSignal": true; }; "showOtherMonths": { "alias": "showOtherMonths"; "required": false; "isSignal": true; }; "showIcon": { "alias": "showIcon"; "required": false; "isSignal": true; }; "iconDisplay": { "alias": "iconDisplay"; "required": false; "isSignal": true; }; "showClear": { "alias": "showClear"; "required": false; "isSignal": true; }; "compact": { "alias": "compact"; "required": false; "isSignal": true; }; "flush": { "alias": "flush"; "required": false; "isSignal": true; }; "baseZIndex": { "alias": "baseZIndex"; "required": false; "isSignal": true; }; "inputId": { "alias": "inputId"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "fluid": { "alias": "fluid"; "required": false; "isSignal": true; }; }, { "selected": "selected"; "focused": "focused"; "blurred": "blurred"; "opened": "opened"; "closed": "closed"; }, never, never, true, never>;
|
|
2828
2835
|
}
|
|
2829
2836
|
|
|
2830
2837
|
type DwChartType = 'line' | 'bar' | 'doughnut' | 'pie' | 'polarArea' | 'radar' | 'scatter' | 'bubble';
|
package/package.json
CHANGED
|
@@ -708,8 +708,17 @@ body .dw-var-field .p-textarea {
|
|
|
708
708
|
.dw-number-input > p-inputnumber { flex: 1 1 auto; min-width: 0; }
|
|
709
709
|
.dw-number-input.dw-number-input--fluid { display: flex; width: 100%; }
|
|
710
710
|
|
|
711
|
-
/* ── dw-date-picker (component): sized by the screen like dw-select; the inline calendar keeps its own width ── */
|
|
711
|
+
/* ── dw-date-picker (component): sized by the screen like dw-select; the inline calendar keeps its own width unless fluid ── */
|
|
712
712
|
.dw-date-picker { display: inline-flex; min-width: 0; max-width: 100%; vertical-align: middle; }
|
|
713
713
|
.dw-date-picker > p-datepicker { flex: 1 1 auto; min-width: 0; }
|
|
714
714
|
.dw-date-picker.dw-date-picker--fluid { display: flex; width: 100%; }
|
|
715
715
|
.dw-date-picker.dw-date-picker--inline > p-datepicker { flex: none; }
|
|
716
|
+
.dw-date-picker.dw-date-picker--inline.dw-date-picker--fluid > p-datepicker { flex: 1 1 auto; }
|
|
717
|
+
/* flush: the inline calendar loses its own box and sits on its container's surface (a popover or a panel pads it). */
|
|
718
|
+
.dw-date-picker.dw-date-picker--flush .p-datepicker-panel-inline {
|
|
719
|
+
padding: 0;
|
|
720
|
+
border: 0;
|
|
721
|
+
border-radius: 0;
|
|
722
|
+
background: transparent;
|
|
723
|
+
box-shadow: none;
|
|
724
|
+
}
|