@ardium-ui/ui 3.3.0-alpha.7 → 3.3.0-alpha.8

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.
@@ -1,12 +1,51 @@
1
1
  import { ChangeDetectorRef } from '@angular/core';
2
- import { _BooleanComponentBase } from '../../_internal/boolean-component';
2
+ import { _FocusableComponentBase } from '../../_internal/focusable-component';
3
3
  import { SimpleComponentColor } from '../../types/colors.types';
4
4
  import { ArdRadioDefaults } from './radio.defaults';
5
5
  import * as i0 from "@angular/core";
6
- export declare class ArdiumRadioComponent extends _BooleanComponentBase {
6
+ export declare class ArdiumRadioComponent extends _FocusableComponentBase {
7
7
  protected readonly _changeDetector: ChangeDetectorRef;
8
8
  protected readonly _DEFAULTS: ArdRadioDefaults;
9
9
  constructor(defaults: ArdRadioDefaults);
10
+ readonly htmlId: import("@angular/core").InputSignal<string>;
11
+ /**
12
+ * Emits all select-state-related events.
13
+ */
14
+ protected _emitChange(): void;
15
+ /**
16
+ * The event emitter responsible for firing `select` events. Fired when the `selected` state is set to true.
17
+ */
18
+ readonly selectEvent: import("@angular/core").OutputEmitterRef<null>;
19
+ /**
20
+ * The event emitter responsible for firing `unselect` events. Fired when the `selected` state is set to false.
21
+ */
22
+ readonly unselectEvent: import("@angular/core").OutputEmitterRef<null>;
23
+ /**
24
+ * The event emitter responsible for firing `change` events. Fired when the `selected` state is changed.
25
+ */
26
+ readonly changeEvent: import("@angular/core").OutputEmitterRef<boolean>;
27
+ readonly selected: import("@angular/core").WritableSignal<boolean>;
28
+ /**
29
+ * The selection state of the component. Coercible into a boolean.
30
+ */
31
+ set _selected(v: any);
32
+ get _selectedHostAttribute(): boolean;
33
+ /**
34
+ * The event emitter responsible for firing `selectedChange` events. Fired when the `selected` state is changed.
35
+ */
36
+ readonly selectedChange: import("@angular/core").OutputEmitterRef<boolean>;
37
+ /**
38
+ * Toggles the selected state. Emits all appropriate events.
39
+ */
40
+ toggleSelected(): void;
41
+ /**
42
+ * Sets the state to "selected". Emits all appropriate events only if the state changes.
43
+ */
44
+ select(): void;
45
+ /**
46
+ * Sets the state to "unselected". Emits all appropriate events only if the state changes.
47
+ */
48
+ unselect(): void;
10
49
  readonly value: import("@angular/core").InputSignal<any>;
11
50
  readonly color: import("@angular/core").InputSignal<SimpleComponentColor>;
12
51
  readonly ngClasses: import("@angular/core").Signal<string>;
@@ -20,5 +59,5 @@ export declare class ArdiumRadioComponent extends _BooleanComponentBase {
20
59
  */
21
60
  markForCheck(): void;
22
61
  static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumRadioComponent, never>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<ArdiumRadioComponent, "ard-radio", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; }, {}, never, ["*"], false, never>;
62
+ static ɵcmp: i0.ɵɵComponentDeclaration<ArdiumRadioComponent, "ard-radio", never, { "htmlId": { "alias": "htmlId"; "required": false; "isSignal": true; }; "_selected": { "alias": "selected"; "required": false; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; }, { "selectEvent": "select"; "unselectEvent": "unselect"; "changeEvent": "change"; "selectedChange": "selectedChange"; }, never, ["*"], false, never>;
24
63
  }
@@ -1,7 +1,7 @@
1
1
  import { InjectionToken, Provider } from '@angular/core';
2
- import { _BooleanComponentDefaults } from '../../_internal/boolean-component';
2
+ import { _FocusableComponentDefaults } from '../../_internal/focusable-component';
3
3
  import { SimpleComponentColor } from './../../types/colors.types';
4
- export interface ArdRadioDefaults extends _BooleanComponentDefaults {
4
+ export interface ArdRadioDefaults extends _FocusableComponentDefaults {
5
5
  color: SimpleComponentColor;
6
6
  }
7
7
  export declare const ARD_RADIO_DEFAULTS: InjectionToken<ArdRadioDefaults>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ardium-ui/ui",
3
- "version": "3.3.0-alpha.7",
3
+ "version": "3.3.0-alpha.8",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=18.0.0",
6
6
  "@angular/core": ">=18.0.0",
@@ -104,4 +104,9 @@ ard-digit-input {
104
104
  --ard-variant-border-radius: 0;
105
105
  }
106
106
 
107
+ .ard-disabled > .ard-digit-input {
108
+ opacity: 50%;
109
+ pointer-events: none;
110
+ }
111
+
107
112
  /*# sourceMappingURL=digit-input.css.map */
@@ -1 +1 @@
1
- {"version":3,"sourceRoot":"","sources":["../../../../../projects/ui/src/themes/default/inputs/digit-input.scss","../../../../../projects/ui/src/themes/default/_mixins.scss","../../../../../projects/ui/src/themes/_variables.scss"],"names":[],"mappings":"AAIA;EACE;EACA;EACA;;;AAGF;AAAA;AAAA;AAAA;EAIE;EACA;;;AAEF;EAEE;EACA;;ACgBA;EACE;EACA;EACA;;AAEA;EACE;;AAEF;EACE;;AAEF;EACE;EACA;;AAGJ;EACE;EACA;;AAEA;EACE;;AAEF;EACE;;AAGJ;EACE;EACA;;AD3CF;EACE;EACA;EACA;EACA;;AAEA;EACE;;AAEF;EACE;EACA;EACA;EACA;EACA,aE3BE;EF4BF;EACA;EACA;EACA;;AAEA;EACE,OElCA;EFmCA;;AAGF;EACE;;AAGJ;EACE;EACA;EACA;EACA;;AAIF;EACE;;AAIF;EACE;;AAEA;EACE;;AAMJ;EACE,cE2BO;;AFvBT;EACE,kBEVK;EFWL,cELM;;AFSV;EACE;;AAEF;EACE;;AAEF;EACE","file":"digit-input.css"}
1
+ {"version":3,"sourceRoot":"","sources":["../../../../../projects/ui/src/themes/default/inputs/digit-input.scss","../../../../../projects/ui/src/themes/default/_mixins.scss","../../../../../projects/ui/src/themes/_variables.scss"],"names":[],"mappings":"AAIA;EACE;EACA;EACA;;;AAGF;AAAA;AAAA;AAAA;EAIE;EACA;;;AAEF;EAEE;EACA;;ACgBA;EACE;EACA;EACA;;AAEA;EACE;;AAEF;EACE;;AAEF;EACE;EACA;;AAGJ;EACE;EACA;;AAEA;EACE;;AAEF;EACE;;AAGJ;EACE;EACA;;AD3CF;EACE;EACA;EACA;EACA;;AAEA;EACE;;AAEF;EACE;EACA;EACA;EACA;EACA,aE3BE;EF4BF;EACA;EACA;EACA;;AAEA;EACE,OElCA;EFmCA;;AAGF;EACE;;AAGJ;EACE;EACA;EACA;EACA;;AAIF;EACE;;AAIF;EACE;;AAEA;EACE;;AAMJ;EACE,cE2BO;;AFvBT;EACE,kBEVK;EFWL,cELM;;AFSV;EACE;;AAEF;EACE;;AAEF;EACE;;;AAIF;EACE;EACA","file":"digit-input.css"}
@@ -93,3 +93,9 @@ ard-digit-input {
93
93
  --ard-variant-border-radius: 0;
94
94
  }
95
95
  }
96
+ .ard-disabled {
97
+ > .ard-digit-input {
98
+ opacity: 50%;
99
+ pointer-events: none;
100
+ }
101
+ }