@ascentgl/ads-ui 22.11.1 → 22.12.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ascentgl/ads-ui",
3
- "version": "22.11.1",
3
+ "version": "22.12.0",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": ">=22.0.0",
6
6
  "date-fns": ">=4.1.0",
@@ -96,7 +96,7 @@ declare class AdsNumericBadgeComponent extends AdsIconHoverComponent {
96
96
  /** provide icon name. NOTE: the icon must be registered in icon registry **/
97
97
  name: i0.InputSignal<adsIcon>;
98
98
  /** choose ads icon theme **/
99
- theme: i0.InputSignal<"iconPrimary" | "primary" | "success" | "warn" | "white">;
99
+ theme: i0.InputSignal<"primary" | "iconPrimary" | "success" | "warn" | "white">;
100
100
  /** set badge value as number **/
101
101
  value: i0.InputSignal<number>;
102
102
  /** @ignore **/
@@ -159,7 +159,7 @@ declare class AdsButtonComponent {
159
159
  /** Whether the button is a smaller version */
160
160
  size: i0.InputSignal<Size>;
161
161
  /** Sets the "type" attribute on the button */
162
- type: i0.InputSignal<"submit" | "button" | "reset">;
162
+ type: i0.InputSignal<"button" | "submit" | "reset">;
163
163
  /** Makes the button take 100% width of its container */
164
164
  fullWidth: i0.InputSignal<boolean>;
165
165
  static ɵfac: i0.ɵɵFactoryDeclaration<AdsButtonComponent, never>;
@@ -168,7 +168,7 @@ declare class AdsButtonComponent {
168
168
 
169
169
  declare class AdsButtonContainerComponent {
170
170
  /** How buttons in the container should be placed */
171
- justify: i0.InputSignal<"center" | "flex-start" | "flex-end">;
171
+ justify: i0.InputSignal<"flex-start" | "flex-end" | "center">;
172
172
  /** The gap between elements */
173
173
  gap: i0.InputSignal<number>;
174
174
  static ɵfac: i0.ɵɵFactoryDeclaration<AdsButtonContainerComponent, never>;
@@ -1470,6 +1470,10 @@ declare class AdsInputDropdownComponent extends AbstractInputComponent implement
1470
1470
  decimalMarker: "." | "," | [".", ","];
1471
1471
  /** Transform function applied to the model value before it is written to the FormControl */
1472
1472
  outputTransformFn: OutputTransformFn | null;
1473
+ /** Minimum allowed numeric value. Forwarded to the inner `ads-input` when `type="number"`. */
1474
+ min?: number;
1475
+ /** Maximum allowed numeric value. Forwarded to the inner `ads-input` when `type="number"`. */
1476
+ max?: number;
1473
1477
  /** Custom function to execute on blur event */
1474
1478
  onBlur: (event: FocusEvent) => void;
1475
1479
  /** Set to true if you want to enable option tooltip */
@@ -1488,7 +1492,7 @@ declare class AdsInputDropdownComponent extends AbstractInputComponent implement
1488
1492
  immediateValidation: SimpleChange;
1489
1493
  }): void;
1490
1494
  static ɵfac: i0.ɵɵFactoryDeclaration<AdsInputDropdownComponent, never>;
1491
- static ɵcmp: i0.ɵɵComponentDeclaration<AdsInputDropdownComponent, "ads-input-dropdown", never, { "maxlength": { "alias": "maxlength"; "required": false; }; "type": { "alias": "type"; "required": false; }; "pattern": { "alias": "pattern"; "required": false; }; "dropdownControl": { "alias": "dropdownControl"; "required": false; }; "dropdownId": { "alias": "dropdownId"; "required": false; }; "dropdownLabel": { "alias": "dropdownLabel"; "required": false; }; "dropdownPlaceholder": { "alias": "dropdownPlaceholder"; "required": false; }; "inputWidth": { "alias": "inputWidth"; "required": false; }; "dropdownWidth": { "alias": "dropdownWidth"; "required": false; }; "autoSelectSingleDropdownOption": { "alias": "autoSelectSingleDropdownOption"; "required": false; }; "options": { "alias": "options"; "required": false; }; "displayValueKey": { "alias": "displayValueKey"; "required": false; }; "hasEmptyValue": { "alias": "hasEmptyValue"; "required": false; }; "fitContent": { "alias": "fitContent"; "required": false; }; "mask": { "alias": "mask"; "required": false; }; "suffix": { "alias": "suffix"; "required": false; }; "prefix": { "alias": "prefix"; "required": false; }; "dropSpecialCharacters": { "alias": "dropSpecialCharacters"; "required": false; }; "thousandSeparator": { "alias": "thousandSeparator"; "required": false; }; "decimalMarker": { "alias": "decimalMarker"; "required": false; }; "outputTransformFn": { "alias": "outputTransformFn"; "required": false; }; "onBlur": { "alias": "onBlur"; "required": false; }; "showTooltip": { "alias": "showTooltip"; "required": false; }; "closeOnOutOfView": { "alias": "closeOnOutOfView"; "required": false; }; "outOfViewRootMargin": { "alias": "outOfViewRootMargin"; "required": false; }; }, {}, never, never, true, never>;
1495
+ static ɵcmp: i0.ɵɵComponentDeclaration<AdsInputDropdownComponent, "ads-input-dropdown", never, { "maxlength": { "alias": "maxlength"; "required": false; }; "type": { "alias": "type"; "required": false; }; "pattern": { "alias": "pattern"; "required": false; }; "dropdownControl": { "alias": "dropdownControl"; "required": false; }; "dropdownId": { "alias": "dropdownId"; "required": false; }; "dropdownLabel": { "alias": "dropdownLabel"; "required": false; }; "dropdownPlaceholder": { "alias": "dropdownPlaceholder"; "required": false; }; "inputWidth": { "alias": "inputWidth"; "required": false; }; "dropdownWidth": { "alias": "dropdownWidth"; "required": false; }; "autoSelectSingleDropdownOption": { "alias": "autoSelectSingleDropdownOption"; "required": false; }; "options": { "alias": "options"; "required": false; }; "displayValueKey": { "alias": "displayValueKey"; "required": false; }; "hasEmptyValue": { "alias": "hasEmptyValue"; "required": false; }; "fitContent": { "alias": "fitContent"; "required": false; }; "mask": { "alias": "mask"; "required": false; }; "suffix": { "alias": "suffix"; "required": false; }; "prefix": { "alias": "prefix"; "required": false; }; "dropSpecialCharacters": { "alias": "dropSpecialCharacters"; "required": false; }; "thousandSeparator": { "alias": "thousandSeparator"; "required": false; }; "decimalMarker": { "alias": "decimalMarker"; "required": false; }; "outputTransformFn": { "alias": "outputTransformFn"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "onBlur": { "alias": "onBlur"; "required": false; }; "showTooltip": { "alias": "showTooltip"; "required": false; }; "closeOnOutOfView": { "alias": "closeOnOutOfView"; "required": false; }; "outOfViewRootMargin": { "alias": "outOfViewRootMargin"; "required": false; }; }, {}, never, never, true, never>;
1492
1496
  }
1493
1497
 
1494
1498
  declare class AdsCurrencyFieldComponent extends AbstractInputComponent {
@@ -2711,7 +2715,7 @@ declare class AdsSortMenuComponent implements OnChanges, OnDestroy {
2711
2715
  /** All column sort/filter configs (all possible columns) */
2712
2716
  columnSortFilterConfigs: ColumnSortFilterConfig[];
2713
2717
  /** Current column sort states from the table */
2714
- columnSortStates: Map<string, "asc" | "desc" | null>;
2718
+ columnSortStates: Map<string, "desc" | "asc" | null>;
2715
2719
  /** Emits when sort configuration changes (order or direction) */
2716
2720
  sortChanged: EventEmitter<SortMenuChangeEvent>;
2717
2721
  /** Emits when sorts are removed for columns */
@@ -2828,7 +2832,7 @@ declare class AdsTableComponent implements AfterViewInit, AfterViewChecked, OnCh
2828
2832
  values: string[];
2829
2833
  }>;
2830
2834
  /** Event emitted when view mode changes between grid and list */
2831
- viewChanged: EventEmitter<"grid" | "list">;
2835
+ viewChanged: EventEmitter<"list" | "grid">;
2832
2836
  /** @ignore - Current view mode: grid or list */
2833
2837
  isListView: i0.WritableSignal<boolean>;
2834
2838
  /** @ignore - Cached filtered row data for list view */
@@ -2868,7 +2872,7 @@ declare class AdsTableComponent implements AfterViewInit, AfterViewChecked, OnCh
2868
2872
  /** @ignore */
2869
2873
  activeColumnMenu: i0.WritableSignal<string | null>;
2870
2874
  /** @ignore */
2871
- columnSortStates: i0.WritableSignal<Map<string, "asc" | "desc" | null>>;
2875
+ columnSortStates: i0.WritableSignal<Map<string, "desc" | "asc" | null>>;
2872
2876
  /** @ignore */
2873
2877
  columnFilterStates: i0.WritableSignal<Map<string, string[]>>;
2874
2878
  /** @ignore */