@sebgroup/green-core-ng 3.5.0 → 3.6.2

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.
@@ -5,15 +5,15 @@
5
5
  export * from './alert';
6
6
  export * from './badge';
7
7
  export * from './blur';
8
- export * from './button';
9
8
  export * from './breadcrumbs';
9
+ export * from './button';
10
10
  export * from './calendar';
11
11
  export * from './card';
12
12
  export * from './card-linked';
13
13
  export * from './checkbox';
14
14
  export * from './coachmark';
15
- export * from './datepicker';
16
15
  export * from './context-menu';
16
+ export * from './datepicker';
17
17
  export * from './details';
18
18
  export * from './dialog';
19
19
  export * from './div';
@@ -40,6 +40,7 @@ export * from './segmented-control';
40
40
  export * from './select';
41
41
  export * from './signal';
42
42
  export * from './spinner';
43
+ export * from './switch';
43
44
  export * from './table';
44
45
  export * from './text';
45
46
  export * from './textarea';
@@ -56,8 +57,8 @@ export * from './formatted-number';
56
57
  export * from './radio-group';
57
58
  export * from './segment';
58
59
  export * from './sensitive-account';
59
- export * from './sensitive-date';
60
60
  export * from './sensitive-number';
61
+ export * from './sensitive-date';
61
62
  export * from './icon-ai';
62
63
  export * from './icon-airplane-up';
63
64
  export * from './icon-archive';
@@ -0,0 +1,7 @@
1
+ /**
2
+ * GdsSwitchComponent - Angular wrapper for gds-switch
3
+ *
4
+ *
5
+ * Auto-generated from Custom Elements Manifest
6
+ */
7
+ export * from './switch.component';
@@ -0,0 +1,110 @@
1
+ import { EventEmitter, SimpleChanges } from '@angular/core';
2
+ import { GdsCheckboxFormControlBase } from '../../checkbox-form-control-base';
3
+ import { GdsSwitch } from '@sebgroup/green-core/components/switch/switch.component.js';
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ * Angular wrapper for the gds-switch web component
7
+ *
8
+ */
9
+ export declare class GdsSwitchComponent extends GdsCheckboxFormControlBase {
10
+ /** Style Expression Property that controls the `align-self` property.
11
+ Supports all valid CSS `align-self` values. */
12
+ alignSelf?: GdsSwitch['align-self'];
13
+ /** Style Expression Property that controls the `justify-self` property.
14
+ Supports all valid CSS `justify-self` values. */
15
+ justifySelf?: GdsSwitch['justify-self'];
16
+ /** Style Expression Property that controls the `place-self` property.
17
+ Supports all valid CSS `place-self` values. */
18
+ placeSelf?: GdsSwitch['place-self'];
19
+ /** Style Expression Property that controls the `grid-column` property.
20
+ Supports all valid CSS grid-column values.
21
+ Documentation: https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column */
22
+ gridColumn?: GdsSwitch['grid-column'];
23
+ /** Style Expression Property that controls the `grid-row` property.
24
+ Supports all valid CSS `grid-row` values. */
25
+ gridRow?: GdsSwitch['grid-row'];
26
+ /** Style Expression Property that controls the `grid-area` property.
27
+ Supports all valid CSS `grid-area` values. */
28
+ gridArea?: GdsSwitch['grid-area'];
29
+ /** Style Expression Property that controls the `flex` property.
30
+ Supports all valid CSS `flex` values. */
31
+ flex?: GdsSwitch['flex'];
32
+ /** Style Expression Property that controls the `order` property.
33
+ Supports all valid CSS `order` values. */
34
+ order?: GdsSwitch['order'];
35
+ /** Style Expression Property that controls the `margin` property.
36
+ Only accepts space tokens. */
37
+ margin?: GdsSwitch['margin'];
38
+ /** Style Expression Property that controls the `margin-inline` property.
39
+ Only accepts space tokens. */
40
+ marginInline?: GdsSwitch['margin-inline'];
41
+ /** Style Expression Property that controls the `margin-block` property.
42
+ Only accepts space tokens. */
43
+ marginBlock?: GdsSwitch['margin-block'];
44
+ /** Style Expression Property that controls the `width` property.
45
+ Supports space tokens and all valid CSS `width` values. */
46
+ width?: GdsSwitch['width'];
47
+ /** Style Expression Property that controls the `min-width` property.
48
+ Supports space tokens and all valid CSS `min-width` values. */
49
+ minWidth?: GdsSwitch['min-width'];
50
+ /** Style Expression Property that controls the `max-width` property.
51
+ Supports space tokens and all valid CSS `max-width` values. */
52
+ maxWidth?: GdsSwitch['max-width'];
53
+ /** Style Expression Property that controls the `inline-size` property.
54
+ Supports space tokens and all valid CSS `inline-size` values */
55
+ inlineSize?: GdsSwitch['inline-size'];
56
+ /** Style Expression Property that controls the `min-inline-size` property.
57
+ Supports space tokens and all valid CSS `min-inline-size` values. */
58
+ minInlineSize?: GdsSwitch['min-inline-size'];
59
+ /** Style Expression Property that controls the `max-inline-size` property.
60
+ Supports space tokens and all valid CSS `max-inline-size` values. */
61
+ maxInlineSize?: GdsSwitch['max-inline-size'];
62
+ /** The checked state of the switch. */
63
+ checked?: GdsSwitch['checked'];
64
+ /** Controls where the control is placed relative to the label. */
65
+ controlPlacement?: GdsSwitch['controlPlacement'];
66
+ /** Controls text and control sizing. */
67
+ size?: GdsSwitch['size'];
68
+ /** Controls horizontal distribution of label and control. */
69
+ justifyContent?: GdsSwitch['justify-content'];
70
+ /** The value submitted with the form when the switch is checked.
71
+ Defaults to 'on', matching native checkbox behaviour. */
72
+ value?: GdsSwitch['value'];
73
+ /** A validator that can be used to validate the form control and set an error message. */
74
+ validator?: GdsSwitch['validator'];
75
+ /** The required attribute can be used to communicate to users of assistive technology that the control is required. Validation still needs to be done in a validator or equivalent. */
76
+ required?: GdsSwitch['required'];
77
+ /** This can be used to manually control the error message that will be displayed
78
+ when the control is invalid. */
79
+ errorMessage?: GdsSwitch['errorMessage'];
80
+ /** Validation state of the form control. Setting this to true triggers the invalid state of the control. */
81
+ invalid?: GdsSwitch['invalid'];
82
+ /** The label of the form control. */
83
+ label?: GdsSwitch['label'];
84
+ name?: GdsSwitch['name'];
85
+ /** If the input is Disabled */
86
+ disabled?: GdsSwitch['disabled'];
87
+ /** Force the element to perform a synchronous first render and apply style expression properties in `connectedCallback`.
88
+
89
+ This guarantees that the child DOM always remains projected in DOM, since the element will attach the shadowRoot and
90
+ run the first render pass in the same event loop cycle, and that declarative layout will be applied once slotted DOM
91
+ is projected.
92
+
93
+ Note: This will cause the first render pass to be blocking. Use sparingly and only when necessary, such as when the
94
+ element needs to be measured synchronously after being added to the DOM. */
95
+ syncFirstRender?: GdsSwitch['syncFirstRender'];
96
+ /** Dispatched when the checked state changes. */
97
+ input: EventEmitter<InputEvent>;
98
+ /** Dispatched when the checked state changes. */
99
+ change: EventEmitter<Event>;
100
+ get element(): GdsSwitch;
101
+ ngOnInit(): void;
102
+ ngOnChanges(changes: SimpleChanges): void;
103
+ ngAfterViewInit(): void;
104
+ static ɵfac: i0.ɵɵFactoryDeclaration<GdsSwitchComponent, never>;
105
+ static ɵcmp: i0.ɵɵComponentDeclaration<GdsSwitchComponent, "gds-switch", never, { "alignSelf": { "alias": "alignSelf"; "required": false; }; "justifySelf": { "alias": "justifySelf"; "required": false; }; "placeSelf": { "alias": "placeSelf"; "required": false; }; "gridColumn": { "alias": "gridColumn"; "required": false; }; "gridRow": { "alias": "gridRow"; "required": false; }; "gridArea": { "alias": "gridArea"; "required": false; }; "flex": { "alias": "flex"; "required": false; }; "order": { "alias": "order"; "required": false; }; "margin": { "alias": "margin"; "required": false; }; "marginInline": { "alias": "marginInline"; "required": false; }; "marginBlock": { "alias": "marginBlock"; "required": false; }; "width": { "alias": "width"; "required": false; }; "minWidth": { "alias": "minWidth"; "required": false; }; "maxWidth": { "alias": "maxWidth"; "required": false; }; "inlineSize": { "alias": "inlineSize"; "required": false; }; "minInlineSize": { "alias": "minInlineSize"; "required": false; }; "maxInlineSize": { "alias": "maxInlineSize"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "controlPlacement": { "alias": "controlPlacement"; "required": false; }; "size": { "alias": "size"; "required": false; }; "justifyContent": { "alias": "justifyContent"; "required": false; }; "value": { "alias": "value"; "required": false; }; "validator": { "alias": "validator"; "required": false; }; "required": { "alias": "required"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; "label": { "alias": "label"; "required": false; }; "name": { "alias": "name"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "syncFirstRender": { "alias": "syncFirstRender"; "required": false; }; }, { "input": "input"; "change": "change"; }, never, ["*"], true, never>;
106
+ static ngAcceptInputType_checked: unknown;
107
+ static ngAcceptInputType_required: unknown;
108
+ static ngAcceptInputType_disabled: unknown;
109
+ static ngAcceptInputType_syncFirstRender: unknown;
110
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sebgroup/green-core-ng",
3
3
  "description": "Angular wrappers for @sebgroup/green-core web components.",
4
- "version": "3.5.0",
4
+ "version": "3.6.2",
5
5
  "main": "src/index.js",
6
6
  "module": "fesm2022/sebgroup-green-core-ng.mjs",
7
7
  "type": "module",
@@ -22,7 +22,7 @@
22
22
  "directory": "../../dist/libs/core-ng"
23
23
  },
24
24
  "dependencies": {
25
- "@sebgroup/green-core": "3.5.0",
25
+ "@sebgroup/green-core": "3.6.2",
26
26
  "tslib": "^2.3.0"
27
27
  },
28
28
  "peerDependencies": {