@beeq/angular 1.12.4 → 1.13.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.
@@ -888,86 +888,96 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImpor
888
888
  }] } });
889
889
  let BqDatePicker = class BqDatePicker {
890
890
  /**
891
- * If `true`, the Date picker input will be focused on component render
891
+ * If `true`, the Date picker input will be focused on component render. @default false
892
892
  */
893
893
  set autofocus(_) { }
894
894
  ;
895
895
  /**
896
- * The clear button aria label @default 'Clear value'
896
+ * The clear button aria label. @default 'Clear value'
897
897
  */
898
898
  set clearButtonLabel(_) { }
899
899
  ;
900
900
  /**
901
- * If `true`, the clear button won't be displayed @default false
901
+ * The aria-label for the calendar trigger button. @default 'Open calendar'
902
+ */
903
+ set calendarButtonLabel(_) { }
904
+ ;
905
+ /**
906
+ * If `true`, the clear button won't be displayed. @default false
902
907
  */
903
908
  set disableClear(_) { }
904
909
  ;
905
910
  /**
906
- * Indicates whether the Date picker input is disabled or not.
907
- If `true`, the Date picker is disabled and cannot be interacted with. @default false
911
+ * Indicates whether the Date picker input is disabled or not. @default false
908
912
  */
909
913
  set disabled(_) { }
910
914
  ;
911
915
  /**
912
- * Represents the distance (gutter or margin) between the Date picker panel and the input element. @default 8
916
+ * Distance (gutter) between the Date picker panel and the input element. @default 8
913
917
  */
914
918
  set distance(_) { }
915
919
  ;
916
920
  /**
917
- * The first day of the week, where Sunday is 0, Monday is 1, etc @default 1
921
+ * The first day of the week, where Sunday is 0, Monday is 1, etc. @default 1
918
922
  */
919
923
  set firstDayOfWeek(_) { }
920
924
  ;
921
925
  /**
922
- * The options to use when formatting the displayed value.
923
- Details: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat#using_options @default {
924
- day: 'numeric',
925
- month: 'short',
926
- year: 'numeric',
927
- }
926
+ * Options used when formatting the displayed value.
927
+
928
+ When omitted, sensible defaults are picked based on `precision`:
929
+ - `day` → `{ day: 'numeric', month: 'short', year: 'numeric' }`
930
+ - `month` → `{ month: 'long', year: 'numeric' }`
931
+ - `year` → `{ year: 'numeric' }`
928
932
  */
929
933
  set formatOptions(_) { }
930
934
  ;
931
935
  /**
932
- * The ID of the form that the Date picker input belongs to.
936
+ * The ID of the form the input belongs to.
933
937
  */
934
938
  set form(_) { }
935
939
  ;
936
940
  /**
937
- * The native form validation message (mandatory if `required` is set)
941
+ * Native form validation message (mandatory if `required` is set).
938
942
  */
939
943
  set formValidationMessage(_) { }
940
944
  ;
941
945
  /**
942
- * A function that takes a date and returns true if the date should not be selectable
946
+ * The view opened first when the panel becomes visible. @default 'days'
947
+ */
948
+ set initialView(_) { }
949
+ ;
950
+ /**
951
+ * Predicate that marks specific dates as unselectable.
943
952
  */
944
953
  set isDateDisallowed(_) { }
945
954
  ;
946
955
  /**
947
- * The locale for formatting dates. If not set, will use the browser's locale.
948
- Details: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument @default 'en-GB'
956
+ * Locale used for formatting dates. @default 'en-GB'
949
957
  */
950
958
  set locale(_) { }
951
959
  ;
952
960
  /**
953
- * The latest date that can be selected
961
+ * Latest date that can be selected (ISO).
954
962
  */
955
963
  set max(_) { }
956
964
  ;
957
965
  /**
958
- * The earliest date that can be selected
966
+ * Earliest date that can be selected (ISO).
959
967
  */
960
968
  set min(_) { }
961
969
  ;
962
970
  /**
963
- * Number of months to show when range is `true`
971
+ * Number of months to show side by side (range / multi). Capped at 2.
972
+ Larger values are silently clamped to keep the popover from overflowing
973
+ the viewport and to preserve keyboard navigation semantics. @default 1
964
974
  */
965
975
  set months(_) { }
966
976
  ;
967
977
  /**
968
- * Specifies how the next/previous buttons should navigate the calendar.
969
- - single: The buttons will navigate by a single month at a time.
970
- - months: The buttons will navigate by the number of months displayed per view. @default 'single'
978
+ * How the next/previous buttons should navigate the calendar.
979
+ - single: navigate one month at a time.
980
+ - months: navigate by the number of months displayed. @default 'single'
971
981
  */
972
982
  set monthsPerView(_) { }
973
983
  ;
@@ -977,67 +987,80 @@ Details: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Globa
977
987
  set name(_) { }
978
988
  ;
979
989
  /**
980
- * If `true`, the Date picker panel will be visible. @default false
990
+ * If `true`, the panel is visible. @default false
981
991
  */
982
992
  set open(_) { }
983
993
  ;
984
994
  /**
985
- * When set, it will override the height of the Date picker panel. @default 'auto'
995
+ * Overrides the height of the Date picker panel. @default 'auto'
986
996
  */
987
997
  set panelHeight(_) { }
988
998
  ;
989
999
  /**
990
- * The Date picker input placeholder text value
1000
+ * Placeholder text shown when no value is selected.
991
1001
  */
992
1002
  set placeholder(_) { }
993
1003
  ;
994
1004
  /**
995
- * Position of the Date picker panel @default 'bottom-end'
1005
+ * Position of the Date picker panel. @default 'bottom-end'
996
1006
  */
997
1007
  set placement(_) { }
998
1008
  ;
999
1009
  /**
1000
- * Indicates whether or not the Date picker input is required to be filled out before submitting the form.
1010
+ * Precision of the value produced by the picker.
1011
+
1012
+ - `day` → `YYYY-MM-DD` (default). Standard drill-down.
1013
+ - `month` → `YYYY-MM`. Selection commits on the months view; no days view.
1014
+ - `year` → `YYYY`. Selection commits on the years view; no months/days view.
1015
+
1016
+ When precision is coarser than day, `initialView` is forced to match and
1017
+ the header title cycles through the views available for that precision. @default 'day'
1018
+ */
1019
+ set precision(_) { }
1020
+ ;
1021
+ /**
1022
+ * Whether a value must be selected before submitting the form. @default false
1001
1023
  */
1002
1024
  set required(_) { }
1003
1025
  ;
1004
1026
  /**
1005
- * Represents the skidding between the Date picker panel and the input element. @default 0
1027
+ * Skidding between the panel and the input element. @default 0
1006
1028
  */
1007
1029
  set skidding(_) { }
1008
1030
  ;
1009
1031
  /**
1010
- * Whether to show days outside the month @default false
1032
+ * Whether to render days outside the current month. @default false
1011
1033
  */
1012
1034
  set showOutsideDays(_) { }
1013
1035
  ;
1014
1036
  /**
1015
- * Defines the strategy to position the Date picker panel @default 'fixed'
1037
+ * Positioning strategy for the panel. @default 'fixed'
1016
1038
  */
1017
1039
  set strategy(_) { }
1018
1040
  ;
1019
1041
  /**
1020
- * The date that is tentatively selected e.g. the start of a range selection
1021
- */
1022
- set tentative(_) { }
1023
- ;
1024
- /**
1025
- * It defines how the calendar will behave, allowing single date selection, range selection, or multiple date selection @default 'single'
1042
+ * Selection type.
1043
+ - `single`: single date.
1044
+ - `multi`: multiple discrete dates.
1045
+ - `range`: contiguous range. @default 'single'
1026
1046
  */
1027
1047
  set type(_) { }
1028
1048
  ;
1029
1049
  /**
1030
- * The validation status of the Select input. @remarks This property is used to indicate the validation status of the select input. It can be set to one of the following values:
1031
- - `'none'`: No validation status is set.
1032
- - `'error'`: The input has a validation error.
1033
- - `'warning'`: The input has a validation warning.
1034
- - `'success'`: The input has passed validation.,@default 'none'
1050
+ * Validation state applied to the input. @default 'none'
1035
1051
  */
1036
1052
  set validationStatus(_) { }
1037
1053
  ;
1038
1054
  /**
1039
- * The select input value represents the currently selected date or range and can be used to reset the field to a previous value.
1040
- All dates are expected in ISO-8601 format (YYYY-MM-DD).
1055
+ * Currently selected value, in the precision-aware wire format:
1056
+ - `precision="day"` → tokens are `YYYY-MM-DD`
1057
+ - `precision="month"` → tokens are `YYYY-MM`
1058
+ - `precision="year"` → tokens are `YYYY`
1059
+
1060
+ How multiple tokens are combined depends on `type`:
1061
+ - `single` → a single token (e.g. `"2025-05-15"`, `"2025-05"`, `"2025"`)
1062
+ - `range` → `"start/end"` — two tokens joined with `/`
1063
+ - `multi` → space-separated tokens (e.g. `"2025-05-15 2025-05-20"`)
1041
1064
  */
1042
1065
  set value(_) { }
1043
1066
  ;
@@ -1047,15 +1070,16 @@ All dates are expected in ISO-8601 format (YYYY-MM-DD).
1047
1070
  this.bqChange = new EventEmitter();
1048
1071
  this.bqClear = new EventEmitter();
1049
1072
  this.bqFocus = new EventEmitter();
1073
+ this.bqViewChange = new EventEmitter();
1050
1074
  c.detach();
1051
1075
  this.el = r.nativeElement;
1052
1076
  }
1053
1077
  /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: BqDatePicker, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
1054
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.1", type: BqDatePicker, isStandalone: false, selector: "bq-date-picker", inputs: { autofocus: "autofocus", clearButtonLabel: "clearButtonLabel", disableClear: "disableClear", disabled: "disabled", distance: "distance", firstDayOfWeek: "firstDayOfWeek", form: "form", formValidationMessage: "formValidationMessage", formatOptions: "formatOptions", isDateDisallowed: "isDateDisallowed", locale: "locale", max: "max", min: "min", months: "months", monthsPerView: "monthsPerView", name: "name", open: "open", panelHeight: "panelHeight", placeholder: "placeholder", placement: "placement", required: "required", showOutsideDays: "showOutsideDays", skidding: "skidding", strategy: "strategy", tentative: "tentative", type: "type", validationStatus: "validationStatus", value: "value" }, outputs: { bqBlur: "bqBlur", bqChange: "bqChange", bqClear: "bqClear", bqFocus: "bqFocus" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1078
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.1", type: BqDatePicker, isStandalone: false, selector: "bq-date-picker", inputs: { autofocus: "autofocus", calendarButtonLabel: "calendarButtonLabel", clearButtonLabel: "clearButtonLabel", disableClear: "disableClear", disabled: "disabled", distance: "distance", firstDayOfWeek: "firstDayOfWeek", form: "form", formValidationMessage: "formValidationMessage", formatOptions: "formatOptions", initialView: "initialView", isDateDisallowed: "isDateDisallowed", locale: "locale", max: "max", min: "min", months: "months", monthsPerView: "monthsPerView", name: "name", open: "open", panelHeight: "panelHeight", placeholder: "placeholder", placement: "placement", precision: "precision", required: "required", showOutsideDays: "showOutsideDays", skidding: "skidding", strategy: "strategy", type: "type", validationStatus: "validationStatus", value: "value" }, outputs: { bqBlur: "bqBlur", bqChange: "bqChange", bqClear: "bqClear", bqFocus: "bqFocus", bqViewChange: "bqViewChange" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1055
1079
  };
1056
1080
  BqDatePicker = __decorate([
1057
1081
  ProxyCmp({
1058
- inputs: ['autofocus', 'clearButtonLabel', 'disableClear', 'disabled', 'distance', 'firstDayOfWeek', 'form', 'formValidationMessage', 'formatOptions', 'isDateDisallowed', 'locale', 'max', 'min', 'months', 'monthsPerView', 'name', 'open', 'panelHeight', 'placeholder', 'placement', 'required', 'showOutsideDays', 'skidding', 'strategy', 'tentative', 'type', 'validationStatus', 'value'],
1082
+ inputs: ['autofocus', 'calendarButtonLabel', 'clearButtonLabel', 'disableClear', 'disabled', 'distance', 'firstDayOfWeek', 'form', 'formValidationMessage', 'formatOptions', 'initialView', 'isDateDisallowed', 'locale', 'max', 'min', 'months', 'monthsPerView', 'name', 'open', 'panelHeight', 'placeholder', 'placement', 'precision', 'required', 'showOutsideDays', 'skidding', 'strategy', 'type', 'validationStatus', 'value'],
1059
1083
  methods: ['clear']
1060
1084
  }),
1061
1085
  __metadata("design:paramtypes", [ChangeDetectorRef, ElementRef, NgZone])
@@ -1067,8 +1091,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImpor
1067
1091
  changeDetection: ChangeDetectionStrategy.OnPush,
1068
1092
  template: '<ng-content></ng-content>',
1069
1093
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1070
- inputs: ['autofocus', 'clearButtonLabel', 'disableClear', 'disabled', 'distance', 'firstDayOfWeek', 'form', 'formValidationMessage', 'formatOptions', 'isDateDisallowed', 'locale', 'max', 'min', 'months', 'monthsPerView', { name: 'name', required: true }, 'open', 'panelHeight', 'placeholder', 'placement', 'required', 'showOutsideDays', 'skidding', 'strategy', 'tentative', 'type', 'validationStatus', 'value'],
1071
- outputs: ['bqBlur', 'bqChange', 'bqClear', 'bqFocus'],
1094
+ inputs: ['autofocus', 'calendarButtonLabel', 'clearButtonLabel', 'disableClear', 'disabled', 'distance', 'firstDayOfWeek', 'form', 'formValidationMessage', 'formatOptions', 'initialView', 'isDateDisallowed', 'locale', 'max', 'min', 'months', 'monthsPerView', { name: 'name', required: true }, 'open', 'panelHeight', 'placeholder', 'placement', 'precision', 'required', 'showOutsideDays', 'skidding', 'strategy', 'type', 'validationStatus', 'value'],
1095
+ outputs: ['bqBlur', 'bqChange', 'bqClear', 'bqFocus', 'bqViewChange'],
1072
1096
  standalone: false
1073
1097
  }]
1074
1098
  }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { bqBlur: [{
@@ -1079,6 +1103,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImpor
1079
1103
  type: Output
1080
1104
  }], bqFocus: [{
1081
1105
  type: Output
1106
+ }], bqViewChange: [{
1107
+ type: Output
1082
1108
  }] } });
1083
1109
  let BqDialog = class BqDialog {
1084
1110
  /**