@abgov/angular-components 1.8.0-beta.9 → 2.0.0-alpha.10

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.
Files changed (161) hide show
  1. package/README.md +3 -45
  2. package/abgov-angular-components.d.ts +1 -0
  3. package/bundles/abgov-angular-components.umd.js +142 -2453
  4. package/bundles/abgov-angular-components.umd.js.map +1 -1
  5. package/esm2015/abgov-angular-components.js +1 -1
  6. package/esm2015/index.js +2 -26
  7. package/esm2015/lib/angular-components.module.js +16 -91
  8. package/esm2015/lib/value-directive.js +133 -0
  9. package/fesm2015/abgov-angular-components.js +122 -1969
  10. package/fesm2015/abgov-angular-components.js.map +1 -1
  11. package/index.d.ts +1 -25
  12. package/lib/angular-components.module.d.ts +7 -0
  13. package/lib/value-directive.d.ts +34 -0
  14. package/package.json +8 -12
  15. package/LICENSE +0 -21
  16. package/abgov-angular-components.metadata.json +0 -1
  17. package/bundles/abgov-angular-components.umd.min.js +0 -2
  18. package/bundles/abgov-angular-components.umd.min.js.map +0 -1
  19. package/esm2015/abgov-angular-components.js.map +0 -1
  20. package/esm2015/abgov-angular-components.metadata.json +0 -1
  21. package/esm2015/experimental/app-version-header/app-version-header.component.js +0 -30
  22. package/esm2015/experimental/app-version-header/app-version-header.component.js.map +0 -1
  23. package/esm2015/experimental/app-version-header/app-version-header.component.metadata.json +0 -1
  24. package/esm2015/experimental/badge/badge.component.js +0 -24
  25. package/esm2015/experimental/badge/badge.component.js.map +0 -1
  26. package/esm2015/experimental/badge/badge.component.metadata.json +0 -1
  27. package/esm2015/experimental/components.module.js +0 -28
  28. package/esm2015/experimental/components.module.js.map +0 -1
  29. package/esm2015/experimental/components.module.metadata.json +0 -1
  30. package/esm2015/experimental/index.js +0 -5
  31. package/esm2015/experimental/index.js.map +0 -1
  32. package/esm2015/experimental/index.metadata.json +0 -1
  33. package/esm2015/experimental/number-input/number-input.component.js +0 -114
  34. package/esm2015/experimental/number-input/number-input.component.js.map +0 -1
  35. package/esm2015/experimental/number-input/number-input.component.metadata.json +0 -1
  36. package/esm2015/index.js.map +0 -1
  37. package/esm2015/index.metadata.json +0 -1
  38. package/esm2015/lib/angular-components.module.js.map +0 -1
  39. package/esm2015/lib/angular-components.module.metadata.json +0 -1
  40. package/esm2015/lib/button/button.component.js +0 -66
  41. package/esm2015/lib/button/button.component.js.map +0 -1
  42. package/esm2015/lib/button/button.component.metadata.json +0 -1
  43. package/esm2015/lib/button-link/button-link.component.js +0 -66
  44. package/esm2015/lib/button-link/button-link.component.js.map +0 -1
  45. package/esm2015/lib/button-link/button-link.component.metadata.json +0 -1
  46. package/esm2015/lib/callout/callout.component.js +0 -34
  47. package/esm2015/lib/callout/callout.component.js.map +0 -1
  48. package/esm2015/lib/callout/callout.component.metadata.json +0 -1
  49. package/esm2015/lib/card/card.component.js +0 -37
  50. package/esm2015/lib/card/card.component.js.map +0 -1
  51. package/esm2015/lib/card/card.component.metadata.json +0 -1
  52. package/esm2015/lib/card/content/card-content.component.js +0 -24
  53. package/esm2015/lib/card/content/card-content.component.js.map +0 -1
  54. package/esm2015/lib/card/content/card-content.component.metadata.json +0 -1
  55. package/esm2015/lib/card/footer/card-footer.component.js +0 -24
  56. package/esm2015/lib/card/footer/card-footer.component.js.map +0 -1
  57. package/esm2015/lib/card/footer/card-footer.component.metadata.json +0 -1
  58. package/esm2015/lib/card/header/card-header.component.js +0 -24
  59. package/esm2015/lib/card/header/card-header.component.js.map +0 -1
  60. package/esm2015/lib/card/header/card-header.component.metadata.json +0 -1
  61. package/esm2015/lib/card/thumb/card-thumb.component.js +0 -27
  62. package/esm2015/lib/card/thumb/card-thumb.component.js.map +0 -1
  63. package/esm2015/lib/card/thumb/card-thumb.component.metadata.json +0 -1
  64. package/esm2015/lib/card-group/card.group.component.js +0 -23
  65. package/esm2015/lib/card-group/card.group.component.js.map +0 -1
  66. package/esm2015/lib/card-group/card.group.component.metadata.json +0 -1
  67. package/esm2015/lib/checkbox/checkbox-change.js +0 -3
  68. package/esm2015/lib/checkbox/checkbox-change.js.map +0 -1
  69. package/esm2015/lib/checkbox/checkbox-change.metadata.json +0 -1
  70. package/esm2015/lib/checkbox/checkbox.component.js +0 -136
  71. package/esm2015/lib/checkbox/checkbox.component.js.map +0 -1
  72. package/esm2015/lib/checkbox/checkbox.component.metadata.json +0 -1
  73. package/esm2015/lib/dropdown/dropdown.component.js +0 -326
  74. package/esm2015/lib/dropdown/dropdown.component.js.map +0 -1
  75. package/esm2015/lib/dropdown/dropdown.component.metadata.json +0 -1
  76. package/esm2015/lib/dropdown/option/option.component.js +0 -48
  77. package/esm2015/lib/dropdown/option/option.component.js.map +0 -1
  78. package/esm2015/lib/dropdown/option/option.component.metadata.json +0 -1
  79. package/esm2015/lib/dropdown/option-group/option-group.component.js +0 -46
  80. package/esm2015/lib/dropdown/option-group/option-group.component.js.map +0 -1
  81. package/esm2015/lib/dropdown/option-group/option-group.component.metadata.json +0 -1
  82. package/esm2015/lib/element-load-indicator/element-load-indicator.component.js +0 -63
  83. package/esm2015/lib/element-load-indicator/element-load-indicator.component.js.map +0 -1
  84. package/esm2015/lib/element-load-indicator/element-load-indicator.component.metadata.json +0 -1
  85. package/esm2015/lib/header/header.component.js +0 -47
  86. package/esm2015/lib/header/header.component.js.map +0 -1
  87. package/esm2015/lib/header/header.component.metadata.json +0 -1
  88. package/esm2015/lib/hero-banner/content/hero-banner-content.component.js +0 -15
  89. package/esm2015/lib/hero-banner/content/hero-banner-content.component.js.map +0 -1
  90. package/esm2015/lib/hero-banner/content/hero-banner-content.component.metadata.json +0 -1
  91. package/esm2015/lib/hero-banner/hero-banner.component.js +0 -21
  92. package/esm2015/lib/hero-banner/hero-banner.component.js.map +0 -1
  93. package/esm2015/lib/hero-banner/hero-banner.component.metadata.json +0 -1
  94. package/esm2015/lib/hero-banner/link/hero-banner-link.component.js +0 -18
  95. package/esm2015/lib/hero-banner/link/hero-banner-link.component.js.map +0 -1
  96. package/esm2015/lib/hero-banner/link/hero-banner-link.component.metadata.json +0 -1
  97. package/esm2015/lib/microsite-logo/microsite-logo.component.js +0 -34
  98. package/esm2015/lib/microsite-logo/microsite-logo.component.js.map +0 -1
  99. package/esm2015/lib/microsite-logo/microsite-logo.component.metadata.json +0 -1
  100. package/esm2015/lib/notification/notification.component.js +0 -59
  101. package/esm2015/lib/notification/notification.component.js.map +0 -1
  102. package/esm2015/lib/notification/notification.component.metadata.json +0 -1
  103. package/esm2015/lib/notification-banner/notification-banner.component.js +0 -32
  104. package/esm2015/lib/notification-banner/notification-banner.component.js.map +0 -1
  105. package/esm2015/lib/notification-banner/notification-banner.component.metadata.json +0 -1
  106. package/esm2015/lib/page-load-indicator/page-load-indicator.component.js +0 -117
  107. package/esm2015/lib/page-load-indicator/page-load-indicator.component.js.map +0 -1
  108. package/esm2015/lib/page-load-indicator/page-load-indicator.component.metadata.json +0 -1
  109. package/esm2015/lib/radio/radio-change.js +0 -3
  110. package/esm2015/lib/radio/radio-change.js.map +0 -1
  111. package/esm2015/lib/radio/radio-change.metadata.json +0 -1
  112. package/esm2015/lib/radio/radio.component.js +0 -146
  113. package/esm2015/lib/radio/radio.component.js.map +0 -1
  114. package/esm2015/lib/radio/radio.component.metadata.json +0 -1
  115. package/esm2015/lib/radio/radio.service.js +0 -20
  116. package/esm2015/lib/radio/radio.service.js.map +0 -1
  117. package/esm2015/lib/radio/radio.service.metadata.json +0 -1
  118. package/esm2015/lib/radio-group/radio-group.component.js +0 -282
  119. package/esm2015/lib/radio-group/radio-group.component.js.map +0 -1
  120. package/esm2015/lib/radio-group/radio-group.component.metadata.json +0 -1
  121. package/esm2015/lib/skeleton/skeleton-element.component.js +0 -21
  122. package/esm2015/lib/skeleton/skeleton-element.component.js.map +0 -1
  123. package/esm2015/lib/skeleton/skeleton-element.component.metadata.json +0 -1
  124. package/esm2015/lib/skeleton/skeleton-image-content.component.js +0 -19
  125. package/esm2015/lib/skeleton/skeleton-image-content.component.js.map +0 -1
  126. package/esm2015/lib/skeleton/skeleton-image-content.component.metadata.json +0 -1
  127. package/experimental/app-version-header/app-version-header.component.d.ts +0 -10
  128. package/experimental/badge/badge.component.d.ts +0 -7
  129. package/experimental/components.module.d.ts +0 -2
  130. package/experimental/index.d.ts +0 -4
  131. package/experimental/number-input/number-input.component.d.ts +0 -58
  132. package/lib/button/button.component.d.ts +0 -37
  133. package/lib/button-link/button-link.component.d.ts +0 -38
  134. package/lib/callout/callout.component.d.ts +0 -20
  135. package/lib/card/card.component.d.ts +0 -23
  136. package/lib/card/content/card-content.component.d.ts +0 -14
  137. package/lib/card/footer/card-footer.component.d.ts +0 -14
  138. package/lib/card/header/card-header.component.d.ts +0 -14
  139. package/lib/card/thumb/card-thumb.component.d.ts +0 -22
  140. package/lib/card-group/card.group.component.d.ts +0 -32
  141. package/lib/checkbox/checkbox-change.d.ts +0 -7
  142. package/lib/checkbox/checkbox.component.d.ts +0 -100
  143. package/lib/dropdown/dropdown.component.d.ts +0 -193
  144. package/lib/dropdown/option/option.component.d.ts +0 -39
  145. package/lib/dropdown/option-group/option-group.component.d.ts +0 -38
  146. package/lib/element-load-indicator/element-load-indicator.component.d.ts +0 -38
  147. package/lib/header/header.component.d.ts +0 -29
  148. package/lib/hero-banner/content/hero-banner-content.component.d.ts +0 -5
  149. package/lib/hero-banner/hero-banner.component.d.ts +0 -9
  150. package/lib/hero-banner/link/hero-banner-link.component.d.ts +0 -6
  151. package/lib/microsite-logo/microsite-logo.component.d.ts +0 -20
  152. package/lib/notification/notification.component.d.ts +0 -43
  153. package/lib/notification-banner/notification-banner.component.d.ts +0 -22
  154. package/lib/page-load-indicator/page-load-indicator.component.d.ts +0 -55
  155. package/lib/radio/radio-change.d.ts +0 -7
  156. package/lib/radio/radio.component.d.ts +0 -119
  157. package/lib/radio/radio.service.d.ts +0 -7
  158. package/lib/radio-group/radio-group.component.d.ts +0 -190
  159. package/lib/skeleton/skeleton-element.component.d.ts +0 -5
  160. package/lib/skeleton/skeleton-image-content.component.d.ts +0 -5
  161. package/theme.css +0 -206
@@ -1,282 +0,0 @@
1
- import { Component, ChangeDetectionStrategy, forwardRef, Input, Output, EventEmitter, ChangeDetectorRef, QueryList, ContentChildren, InjectionToken } from '@angular/core';
2
- import { NG_VALUE_ACCESSOR } from '@angular/forms';
3
- import { GoARadioComponent } from '../radio/radio.component';
4
- import { GoARadioService } from '../radio/radio.service';
5
- /**
6
- * Control value accessor to use for the component's provider
7
- * @ignore
8
- */
9
- export const GOA_RADIO_GROUP_CONTROL_VALUE_ACCESSOR = {
10
- provide: NG_VALUE_ACCESSOR,
11
- useExisting: forwardRef(() => GoARadioGroupComponent),
12
- multi: true
13
- };
14
- /**
15
- * Injection token that can be used to inject instances of `GoARadioGroupComponent`. It serves as
16
- * alternative token to the actual `GoARadioGroupComponent` class which could cause unnecessary
17
- * retention of the class and its component metadata.
18
- * @ignore
19
- */
20
- export const GOA_RADIO_GROUP = new InjectionToken('GoARadioGroup');
21
- /**
22
- * Radiobutton group component with Government of Alberta styling. Used to group a set of related radio buttons.
23
- */
24
- export class GoARadioGroupComponent {
25
- constructor(_changeDetector, _radioService) {
26
- this._changeDetector = _changeDetector;
27
- this._radioService = _radioService;
28
- /**
29
- * @ignore
30
- */
31
- this._name = `goa-radio-group-${GoARadioGroupComponent.idNum++}`;
32
- /**
33
- * @ignore
34
- */
35
- this._value = null;
36
- /**
37
- * @ignore
38
- */
39
- this._labelPosition = 'after';
40
- /**
41
- * The error message to display when the radio group selection is required and nothing has been selected
42
- */
43
- this.requiredErrorMessage = 'Please select one of the provided options.';
44
- /**
45
- * Event emitted containing the source radiobutton, and whether or not it is checked.
46
- */
47
- this.selectionChange = new EventEmitter();
48
- /**
49
- * @ignore
50
- */
51
- this._propagateChange = (_) => { };
52
- this.uniqueId = `goa-radiobutton-group-${GoARadioGroupComponent.idNum++}`;
53
- }
54
- /**
55
- * Indicates the "group" or set of radios this radio belongs to.
56
- */
57
- get name() { return this._name; }
58
- set name(value) {
59
- this._name = value;
60
- this._updateRadioButtonNames();
61
- }
62
- /**
63
- * Value/unique identifier for the object the radiobutton represents.
64
- */
65
- get value() { return this._value; }
66
- set value(newValue) {
67
- if (this._value !== newValue) {
68
- // Set this before proceeding to ensure no circular loop occurs with selection.
69
- this._value = newValue;
70
- this._updateSelectedRadioFromValue();
71
- this._setSelectedRadioToChecked();
72
- }
73
- }
74
- /**
75
- * The currently selected radio.
76
- */
77
- get selected() { return this._selected; }
78
- set selected(selected) {
79
- this._selected = selected;
80
- this.value = selected ? selected.value : null;
81
- this._setSelectedRadioToChecked();
82
- }
83
- /**
84
- * Boolean indicating whether or not the radiobutton is disabled.
85
- */
86
- get disabled() { return this._disabled; }
87
- set disabled(value) {
88
- this._disabled = value;
89
- this._updateRadioButtonDisabled();
90
- }
91
- /**
92
- * Boolean indicating whether or not the radiobutton is required.
93
- */
94
- get required() { return this._required; }
95
- set required(value) {
96
- this._required = value;
97
- this._updateRadioButtonRequired();
98
- }
99
- /**
100
- * The position to display the label/text for the radiobutton. Valid values are before and after.
101
- */
102
- get labelPosition() {
103
- return this._labelPosition;
104
- }
105
- set labelPosition(position) {
106
- this._labelPosition = position === 'before' ? 'before' : 'after';
107
- this._updateRadioButtonLabelPosition();
108
- }
109
- /**
110
- * Lifecycle hook AfterContentInit. Used to set properties on child radios based on the radio group's properties.
111
- * @ignore
112
- */
113
- ngAfterContentInit() {
114
- this._updateRadioButtonNames();
115
- this._updateRadioButtonDisabled();
116
- this._updateRadioButtonRequired();
117
- this._updateRadioButtonLabelPosition();
118
- this._updateSelectedRadioFromValue();
119
- }
120
- /**
121
- * Lifecycle hook OnInit. Used to subscribe to radio change messages from the radioService in order to set the 'selected' property
122
- * of the radio group based on which radio was selected
123
- * @ignore
124
- */
125
- ngOnInit() {
126
- this.radioServiceSubscription = this._radioService.radioChangeMessage.subscribe(rcm => {
127
- if (rcm && rcm.source && rcm.source.name === this.name && rcm.checked) {
128
- this.selected = this._radios.find(r => r.uniqueId === rcm.source.uniqueId);
129
- this.selectionChange.emit(rcm);
130
- }
131
- });
132
- }
133
- /**
134
- * Lifecycle hook OnDestroy. Used to unsubscribe from the radio change messages.
135
- * @ignore
136
- */
137
- ngOnDestroy() {
138
- this.radioServiceSubscription.unsubscribe();
139
- }
140
- /**
141
- * Updates the `selected` radio button from the internal _value state.
142
- */
143
- _updateSelectedRadioFromValue() {
144
- // If the value already matches the selected radio, do nothing.
145
- const isAlreadySelected = this._selected !== undefined && this._selected !== null && this._selected.value === this._value;
146
- // need to wrap in setTimeout because _radios hasnt resolved yet when Input setter fires, need to get to next cycle in page lifecycle
147
- setTimeout(() => {
148
- if (this._radios && !isAlreadySelected) {
149
- this._selected = null;
150
- this._radios.forEach(radio => {
151
- radio.checked = this.value === radio.value;
152
- if (radio.checked) {
153
- this._selected = radio;
154
- }
155
- });
156
- }
157
- });
158
- }
159
- /**
160
- * Sets the selected radio to checked if it is not already checked
161
- */
162
- _setSelectedRadioToChecked() {
163
- if (this.selected && !this.selected.checked) {
164
- this.selected.checked = true;
165
- }
166
- }
167
- /**
168
- * Updates the 'name' property of the child radio buttons to match that of the group so they all function together
169
- */
170
- _updateRadioButtonNames() {
171
- if (this._radios) {
172
- this._radios.forEach(radio => {
173
- radio.name = this.name;
174
- radio.markForCheck();
175
- });
176
- }
177
- }
178
- /**
179
- * Updates the 'disabled' property of the child radio buttons to match the disabled state of the radio group
180
- */
181
- _updateRadioButtonDisabled() {
182
- if (this._radios) {
183
- this._radios.forEach(radio => {
184
- radio.required = this._required;
185
- radio.markForCheck();
186
- });
187
- }
188
- }
189
- /**
190
- * Updates the 'required' property of the child radio buttons to match the required state of the radio group
191
- */
192
- _updateRadioButtonRequired() {
193
- if (this._radios) {
194
- this._radios.forEach(radio => {
195
- radio.required = this._required;
196
- radio.markForCheck();
197
- });
198
- }
199
- }
200
- /**
201
- * Updates the 'labelPosition' property of the child radio buttons to match the labelPosition state of the radio group
202
- */
203
- _updateRadioButtonLabelPosition() {
204
- if (this._radios) {
205
- this._radios.forEach(radio => {
206
- radio.labelPosition = this._labelPosition;
207
- radio.markForCheck();
208
- });
209
- }
210
- }
211
- /**
212
- * Boolean indicating if the radiobutton is required and not checked
213
- * @ignore
214
- */
215
- hasError() {
216
- const hasSelectedRadio = this._radios.some(r => r.checked);
217
- return this.required && !hasSelectedRadio;
218
- }
219
- /**
220
- * Implemented as part of ControlValueAccessor.
221
- * @param value The model bound property, i.e. the value of checked
222
- * @ignore
223
- */
224
- writeValue(value) {
225
- if ((value !== undefined) && (value !== null)) {
226
- this.selected = value;
227
- this._changeDetector.detectChanges();
228
- }
229
- }
230
- /**
231
- * Implemented as part of ControlValueAccessor.
232
- * @param fn The function to call on change. Provided by ControlValueAccessor
233
- * @ignore
234
- */
235
- registerOnChange(fn) {
236
- this._propagateChange = fn;
237
- }
238
- /**
239
- * Implemented as part of ControlValueAccessor.
240
- * @param fn The function to call on touch. Provided by ControlValueAccessor
241
- * @ignore
242
- */
243
- registerOnTouched(fn) {
244
- this._onTouchedCallback = fn;
245
- }
246
- ;
247
- }
248
- /**
249
- * Used to generate unique Id for this component
250
- * @ignore
251
- */
252
- GoARadioGroupComponent.idNum = 0;
253
- GoARadioGroupComponent.decorators = [
254
- { type: Component, args: [{
255
- selector: 'goa-radio-group',
256
- template: "<div class=\"goa-radio-group\" [ngClass]=\"{'goa-radio-group-disabled': disabled}\">\n <span *ngIf=\"title\" class=\"radio-group-title\">{{title}}</span>\n <span *ngIf=\"required\" class=\"required-label\" i18n=\"Required label for dropdown\">(Required)</span>\n <div *ngIf=\"helperText\" class=\"helper-text\">{{helperText}}</div>\n <div class=\"goa-radios\">\n <ng-content></ng-content>\n </div>\n <div *ngIf=\"hasError()\" class=\"error-text\">{{requiredErrorMessage}}</div>\n</div>\n",
257
- providers: [
258
- GOA_RADIO_GROUP_CONTROL_VALUE_ACCESSOR,
259
- { provide: GOA_RADIO_GROUP, useExisting: GoARadioGroupComponent }
260
- ],
261
- changeDetection: ChangeDetectionStrategy.OnPush,
262
- styles: [".goa-radio-group{margin-top:28px}.goa-radio-group.goa-radio-group-disabled.goa-radios{opacity:1%;cursor:default}.goa-radio-group .radio-group-title{font-size:18px;font-weight:700;color:#333;line-height:28px}.goa-radio-group .helper-text{font-size:14px;font-weight:400;color:#333;margin-bottom:20px}.goa-radio-group .required-label{margin-left:8px;font-size:14px;color:#666}.goa-radio-group .error-text{color:#fc1921;font-size:14px;margin-bottom:20px}"]
263
- },] }
264
- ];
265
- GoARadioGroupComponent.ctorParameters = () => [
266
- { type: ChangeDetectorRef },
267
- { type: GoARadioService }
268
- ];
269
- GoARadioGroupComponent.propDecorators = {
270
- _radios: [{ type: ContentChildren, args: [forwardRef(() => GoARadioComponent), { descendants: true },] }],
271
- title: [{ type: Input }],
272
- helperText: [{ type: Input }],
273
- requiredErrorMessage: [{ type: Input }],
274
- name: [{ type: Input }],
275
- value: [{ type: Input }],
276
- selected: [{ type: Input }],
277
- disabled: [{ type: Input }],
278
- required: [{ type: Input }],
279
- labelPosition: [{ type: Input }],
280
- selectionChange: [{ type: Output }]
281
- };
282
- //# sourceMappingURL=radio-group.component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"radio-group.component.js","sourceRoot":"","sources":["../../../../../../libs/angular-components/src/lib/radio-group/radio-group.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAET,uBAAuB,EACvB,UAAU,EACV,KAAK,EACL,MAAM,EACN,YAAY,EACZ,iBAAiB,EACjB,SAAS,EACT,eAAe,EACf,cAAc,EAGf,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,iBAAiB,EAAwB,MAAM,gBAAgB,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAGzD;;;GAGG;AACH,MAAM,CAAC,MAAM,sCAAsC,GAAG;IACpD,OAAO,EAAE,iBAAiB;IAC1B,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,sBAAsB,CAAC;IAC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orRef,\n QueryList,\n ContentChildren,\n InjectionToken,\n AfterContentInit,\n OnDestroy\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR, ControlValueAccessor } from '@angular/forms';\nimport { GoARadioComponent } from '../radio/radio.component';\nimport { GoARadioChange } from '../radio/radio-change';\nimport { GoARadioService } from '../radio/radio.service';\nimport { Subscription } from 'rxjs';\n\n/**\n * Control value accessor to use for the component's provider\n * @ignore\n */\nexport const GOA_RADIO_GROUP_CONTROL_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => GoARadioGroupComponent),\n multi: true\n}\n\n/**\n * Injection token that can be used to inject instances of `GoARadioGroupComponent`. It serves as\n * alternative token to the actual `GoARadioGroupComponent` class which could cause unnecessary\n * retention of the class and its component metadata.\n * @ignore\n */\nexport const GOA_RADIO_GROUP = new InjectionToken<GoARadioGroupComponent>('GoARadioGroup');\n\n/**\n * Radiobutton group component with Government of Alberta styling. Used to group a set of related radio buttons.\n */\n@Component({\n selector: 'goa-radio-group',\n templateUrl: './radio-group.component.html',\n styleUrls: ['./radio-group.component.scss'],\n providers: [\n GOA_RADIO_GROUP_CONTROL_VALUE_ACCESSOR,\n {provide: GOA_RADIO_GROUP, useExisting: GoARadioGroupComponent}\n ],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class GoARadioGroupComponent implements ControlValueAccessor, OnInit, AfterContentInit, OnDestroy {\n /**\n * Used to generate unique Id for this component\n * @ignore\n */\n static idNum = 0;\n\n /**\n * Unique Id for this component\n * @ignore\n */\n uniqueId: string;\n\n /**\n * Reference to the subscription to the radio change events so it can be unsubscribed on destroy\n * @ignore\n */\n radioServiceSubscription: Subscription;\n\n /**\n * The child radio buttons inside the radio group\n */\n @ContentChildren(forwardRef(() => GoARadioComponent), {descendants: true}) _radios: QueryList<GoARadioComponent>;\n\n /**\n * @ignore\n */\n private _name = `goa-radio-group-${GoARadioGroupComponent.idNum++}`;\n\n /**\n * @ignore\n */\n private _value: any = null;\n\n /**\n * @ignore\n */\n private _selected: GoARadioComponent;\n\n /**\n * @ignore\n */\n private _required: boolean;\n\n /**\n * @ignore\n */\n private _disabled: boolean;\n\n /**\n * @ignore\n */\n private _labelPosition: 'before' | 'after' = 'after';\n\n /**\n * The title for the radio group. Put the question being asked here\n */\n @Input() title: string;\n\n /**\n * Helper text to provide further context as to what the radio group is for/asking\n */\n @Input() helperText: string;\n\n /**\n * The error message to display when the radio group selection is required and nothing has been selected\n */\n @Input() requiredErrorMessage = 'Please select one of the provided options.';\n\n /**\n * Indicates the \"group\" or set of radios this radio belongs to.\n */\n @Input()\n get name(): string { return this._name; }\n set name(value: string) {\n this._name = value;\n this._updateRadioButtonNames();\n }\n\n /**\n * Value/unique identifier for the object the radiobutton represents.\n */\n @Input()\n get value(): any { return this._value; }\n set value(newValue: any) {\n if (this._value !== newValue) {\n // Set this before proceeding to ensure no circular loop occurs with selection.\n this._value = newValue;\n\n this._updateSelectedRadioFromValue();\n this._setSelectedRadioToChecked();\n }\n }\n\n /**\n * The currently selected radio.\n */\n @Input()\n get selected() { return this._selected; }\n set selected(selected: GoARadioComponent | null) {\n this._selected = selected;\n this.value = selected ? selected.value : null;\n this._setSelectedRadioToChecked();\n }\n\n /**\n * Boolean indicating whether or not the radiobutton is disabled.\n */\n @Input()\n get disabled(): boolean { return this._disabled; }\n set disabled(value) {\n this._disabled = value;\n this._updateRadioButtonDisabled();\n }\n\n /**\n * Boolean indicating whether or not the radiobutton is required.\n */\n @Input()\n get required(): boolean { return this._required; }\n set required(value) {\n this._required = value;\n this._updateRadioButtonRequired();\n }\n /**\n * The position to display the label/text for the radiobutton. Valid values are before and after.\n */\n @Input()\n get labelPosition(): 'before' | 'after' {\n return this._labelPosition;\n }\n set labelPosition(position) {\n this._labelPosition = position === 'before' ? 'before' : 'after';\n this._updateRadioButtonLabelPosition();\n }\n\n /**\n * Event emitted containing the source radiobutton, and whether or not it is checked.\n */\n @Output() selectionChange: EventEmitter<GoARadioChange> = new EventEmitter<GoARadioChange>();\n\n /**\n * @ignore\n */\n _onTouchedCallback: () => void;\n\n /**\n * @ignore\n */\n _propagateChange = (_: any) => { };\n\n constructor(private _changeDetector: ChangeDetectorRef, private _radioService: GoARadioService) {\n this.uniqueId = `goa-radiobutton-group-${GoARadioGroupComponent.idNum++}`;\n }\n\n /**\n * Lifecycle hook AfterContentInit. Used to set properties on child radios based on the radio group's properties.\n * @ignore\n */\n ngAfterContentInit(): void {\n this._updateRadioButtonNames();\n this._updateRadioButtonDisabled();\n this._updateRadioButtonRequired();\n this._updateRadioButtonLabelPosition();\n this._updateSelectedRadioFromValue();\n }\n\n /**\n * Lifecycle hook OnInit. Used to subscribe to radio change messages from the radioService in order to set the 'selected' property\n * of the radio group based on which radio was selected\n * @ignore\n */\n ngOnInit(): void {\n this.radioServiceSubscription = this._radioService.radioChangeMessage.subscribe(rcm => {\n if(rcm && rcm.source && rcm.source.name === this.name && rcm.checked) {\n this.selected = this._radios.find(r => r.uniqueId === rcm.source.uniqueId);\n this.selectionChange.emit(rcm);\n }\n });\n }\n\n /**\n * Lifecycle hook OnDestroy. Used to unsubscribe from the radio change messages.\n * @ignore\n */\n ngOnDestroy(): void {\n this.radioServiceSubscription.unsubscribe();\n }\n\n /**\n * Updates the `selected` radio button from the internal _value state.\n */\n private _updateSelectedRadioFromValue(): void {\n // If the value already matches the selected radio, do nothing.\n const isAlreadySelected = this._selected !== undefined && this._selected !== null && this._selected.value === this._value;\n\n // need to wrap in setTimeout because _radios hasnt resolved yet when Input setter fires, need to get to next cycle in page lifecycle\n setTimeout(() => {\n if (this._radios && !isAlreadySelected) {\n this._selected = null;\n this._radios.forEach(radio => {\n radio.checked = this.value === radio.value;\n if (radio.checked) {\n this._selected = radio;\n }\n });\n }\n });\n }\n\n /**\n * Sets the selected radio to checked if it is not already checked\n */\n private _setSelectedRadioToChecked(): void {\n if (this.selected && !this.selected.checked) {\n this.selected.checked = true;\n }\n }\n\n /**\n * Updates the 'name' property of the child radio buttons to match that of the group so they all function together\n */\n private _updateRadioButtonNames(): void {\n if (this._radios) {\n this._radios.forEach(radio => {\n radio.name = this.name;\n radio.markForCheck();\n });\n }\n }\n\n /**\n * Updates the 'disabled' property of the child radio buttons to match the disabled state of the radio group\n */\n private _updateRadioButtonDisabled(): void {\n if (this._radios) {\n this._radios.forEach(radio => {\n radio.required = this._required;\n radio.markForCheck();\n });\n }\n }\n\n /**\n * Updates the 'required' property of the child radio buttons to match the required state of the radio group\n */\n private _updateRadioButtonRequired(): void {\n if (this._radios) {\n this._radios.forEach(radio => {\n radio.required = this._required;\n radio.markForCheck();\n });\n }\n }\n\n /**\n * Updates the 'labelPosition' property of the child radio buttons to match the labelPosition state of the radio group\n */\n private _updateRadioButtonLabelPosition(): void {\n if (this._radios) {\n this._radios.forEach(radio => {\n radio.labelPosition = this._labelPosition;\n radio.markForCheck();\n });\n }\n }\n\n /**\n * Boolean indicating if the radiobutton is required and not checked\n * @ignore\n */\n hasError(): boolean {\n const hasSelectedRadio = this._radios.some(r => r.checked);\n return this.required && !hasSelectedRadio;\n }\n\n /**\n * Implemented as part of ControlValueAccessor.\n * @param value The model bound property, i.e. the value of checked\n * @ignore\n */\n writeValue(value: any) {\n if ((value !== undefined) && (value !== null)) {\n this.selected = value;\n this._changeDetector.detectChanges();\n }\n }\n\n /**\n * Implemented as part of ControlValueAccessor.\n * @param fn The function to call on change. Provided by ControlValueAccessor\n * @ignore\n */\n registerOnChange(fn: any) {\n this._propagateChange = fn;\n }\n\n /**\n * Implemented as part of ControlValueAccessor.\n * @param fn The function to call on touch. Provided by ControlValueAccessor\n * @ignore\n */\n registerOnTouched(fn: any) {\n this._onTouchedCallback = fn;\n };\n\n}\n"]}
@@ -1 +0,0 @@
1
- [{"__symbolic":"module","version":4,"metadata":{"GOA_RADIO_GROUP_CONTROL_VALUE_ACCESSOR":{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR","line":26,"character":11},"useExisting":{"__symbolic":"reference","name":"GoARadioGroupComponent"},"multi":true},"GOA_RADIO_GROUP":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":37,"character":35},"arguments":["GoARadioGroup"]},"GoARadioGroupComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":42,"character":1},"arguments":[{"selector":"goa-radio-group","providers":[{"__symbolic":"reference","name":"GOA_RADIO_GROUP_CONTROL_VALUE_ACCESSOR"},{"provide":{"__symbolic":"reference","name":"GOA_RADIO_GROUP"},"useExisting":{"__symbolic":"reference","name":"GoARadioGroupComponent"}}],"changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":50,"character":19},"member":"OnPush"},"template":"<div class=\"goa-radio-group\" [ngClass]=\"{'goa-radio-group-disabled': disabled}\">\n <span *ngIf=\"title\" class=\"radio-group-title\">{{title}}</span>\n <span *ngIf=\"required\" class=\"required-label\" i18n=\"Required label for dropdown\">(Required)</span>\n <div *ngIf=\"helperText\" class=\"helper-text\">{{helperText}}</div>\n <div class=\"goa-radios\">\n <ng-content></ng-content>\n </div>\n <div *ngIf=\"hasError()\" class=\"error-text\">{{requiredErrorMessage}}</div>\n</div>\n","styles":[".goa-radio-group{margin-top:28px}.goa-radio-group.goa-radio-group-disabled.goa-radios{opacity:1%;cursor:default}.goa-radio-group .radio-group-title{font-size:18px;font-weight:700;color:#333;line-height:28px}.goa-radio-group .helper-text{font-size:14px;font-weight:400;color:#333;margin-bottom:20px}.goa-radio-group .required-label{margin-left:8px;font-size:14px;color:#666}.goa-radio-group .error-text{color:#fc1921;font-size:14px;margin-bottom:20px}"]}]}],"members":{"_radios":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":74,"character":3},"arguments":[{"__symbolic":"reference","module":"../radio/radio.component","name":"GoARadioComponent","line":74,"character":36},{"descendants":true}]}]}],"title":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":109,"character":3}}]}],"helperText":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":114,"character":3}}]}],"requiredErrorMessage":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":119,"character":3}}]}],"name":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":124,"character":3}}]}],"value":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":134,"character":3}}]}],"selected":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":149,"character":3}}]}],"disabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":160,"character":3}}]}],"required":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":170,"character":3}}]}],"labelPosition":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":179,"character":3}}]}],"selectionChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":191,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":203,"character":39},{"__symbolic":"reference","module":"../radio/radio.service","name":"GoARadioService","line":203,"character":81}]}],"ngAfterContentInit":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"_updateSelectedRadioFromValue":[{"__symbolic":"method"}],"_setSelectedRadioToChecked":[{"__symbolic":"method"}],"_updateRadioButtonNames":[{"__symbolic":"method"}],"_updateRadioButtonDisabled":[{"__symbolic":"method"}],"_updateRadioButtonRequired":[{"__symbolic":"method"}],"_updateRadioButtonLabelPosition":[{"__symbolic":"method"}],"hasError":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}]},"statics":{"idNum":0}}}}]
@@ -1,21 +0,0 @@
1
- import { Component, Input } from '@angular/core';
2
- export class GoASkeletonElementComponent {
3
- constructor() {
4
- this.type = 'text';
5
- }
6
- get elementClass() {
7
- return `skeleton ${this.type}`;
8
- }
9
- }
10
- GoASkeletonElementComponent.decorators = [
11
- { type: Component, args: [{
12
- selector: 'goa-skeleton-element',
13
- template: "<div [ngClass]=\"elementClass\"></div>",
14
- styles: ["@use \"../variables/main.css\";@-webkit-keyframes pulse{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}@keyframes pulse{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}[data-skeleton]{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[data-skeleton] *{border-color:#ddd!important;color:transparent!important}[data-skeleton] a,[data-skeleton] p{background-color:#ddd!important;-webkit-animation:pulse 2s ease-in-out infinite;animation:pulse 2s ease-in-out infinite;display:inline;line-height:0!important;font-size:50%!important}[data-skeleton] a:after,[data-skeleton] p:after{content:\"\"!important;display:block!important;margin-bottom:1rem!important;background-size:contain}[data-skeleton] h1,[data-skeleton] h2,[data-skeleton] h3,[data-skeleton] h4,[data-skeleton] h5,[data-skeleton] h6{background-color:#ddd!important;-webkit-animation:pulse 2s ease-in-out infinite;animation:pulse 2s ease-in-out infinite;margin-bottom:1rem}[data-skeleton] h1{height:calc(.6 * var(--fs-3xl))!important}[data-skeleton] h2{height:calc(.6 * var(--fs-2xl))!important}[data-skeleton] h3{height:calc(.6 * var(--fs-xl))!important}[data-skeleton] h4{height:calc(.6 * var(--fs-lg))!important}[data-skeleton] img{background-color:#ddd!important}.skeleton,[data-skeleton] img{-webkit-animation:pulse 2s ease-in-out infinite;animation:pulse 2s ease-in-out infinite}.skeleton{background-color:#ddd!important;background:#dcdcdc;overflow:hidden;margin:10px 0}.skeleton.text{width:100%;height:12px;border-radius:4px}.skeleton.paragraph{width:100%;height:70px;border-radius:4px}.skeleton.title{width:50%;height:20px;margin-bottom:15px;border-radius:4px}.skeleton.avatar{width:100px;height:100px;border-radius:50%}.skeleton.thumbnail{width:100px;height:100px;border-radius:4px}.skeleton-image-content{display:flex;flex-direction:row;gap:30px}.skeleton-image-content__text{flex:1 1 auto}.skeleton-content{display:grid;grid-template-columns:1fr;gap:30px;align-items:left}.goa-card{box-sizing:border-box;background:#fff;border:1px solid #dcdcdc;transition:opacity .3s ease-in-out}.goa-card .card-content{padding:28px;border-top:8px solid #0081a2}.goa-card .card-content .goa-content,.goa-card .card-content .goa-text,.goa-card .card-content .goa-title{margin-bottom:28px}.goa-card .card-content .goa-text{color:#333;font-size:var(--fs-base);line-height:28px}.goa-card .card-content .goa-footer{font-size:var(--fs-base)}.goa-card .card-content .goa-title{font-size:var(--fs-xl);font-weight:400;line-height:32px}.goa-card .goa-poster{position:relative;display:block;padding:56.25% 0 0;overflow:hidden;background:#e5e5e5}.goa-card .goa-poster:empty{display:none}.goa-card .goa-poster iframe,.goa-card .goa-poster img{position:absolute;top:0;left:0;width:100%;height:100%;border:none}.goa-card .goa-poster-image img{display:block;width:100%;-o-object-fit:cover;object-fit:cover}.goa-card.card-auto{width:auto}.goa-card.card-auto .card{flex-basis:auto;width:auto}.goa-card a:hover{color:#004f84;text-decoration:none}.goa-card a:focus{outline:3px solid #feba35;outline-offset:0}.goa-card[data-skeleton] .goa-poster-image{background-color:#ddd!important;-webkit-animation:pulse 2s ease-in-out infinite;animation:pulse 2s ease-in-out infinite;padding-bottom:56.25%}.goa-card[data-skeleton] .goa-poster-image img{display:none}.goa-card[data-skeleton] .goa-title{margin-bottom:1rem}.goa-card[data-skeleton] .goa-footer{background-color:#ddd!important;-webkit-animation:pulse 2s ease-in-out infinite;animation:pulse 2s ease-in-out infinite;max-height:1rem}"]
15
- },] }
16
- ];
17
- GoASkeletonElementComponent.ctorParameters = () => [];
18
- GoASkeletonElementComponent.propDecorators = {
19
- type: [{ type: Input }]
20
- };
21
- //# sourceMappingURL=skeleton-element.component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"skeleton-element.component.js","sourceRoot":"","sources":["../../../../../../libs/angular-components/src/lib/skeleton/skeleton-element.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAU,KAAK,EAAE,MAAM,eAAe,CAAC;AAOzD,MAAM,OAAO,2BAA2B;IAStC;QARS,SAAI,GAMA,MAAM,CAAC;IAEL,CAAC;IAEhB,IAAI,YAAY;QACd,OAAO,YAAY,IAAI,CAAC,IAAI,EAAE,CAAC;IACjC,CAAC;;;YAlBF,SAAS,SAAC;gBACT,QAAQ,EAAE,sBAAsB;gBAChC,kDAAgD;;aAEjD;;;;mBAEE,KAAK","sourcesContent":["import { Component, OnInit, Input } from '@angular/core';\n\n@Component({\n selector: 'goa-skeleton-element',\n templateUrl: './skeleton-element.component.html',\n styleUrls: ['./skeleton-element.component.scss'],\n})\nexport class GoASkeletonElementComponent {\n @Input() type:\n | 'text'\n | 'avatar'\n | 'title'\n | 'paragraph'\n | 'thumbnail'\n | 'card' = 'text';\n\n constructor() {}\n\n get elementClass(): string {\n return `skeleton ${this.type}`;\n }\n\n}\n"]}
@@ -1 +0,0 @@
1
- [{"__symbolic":"module","version":4,"metadata":{"GoASkeletonElementComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"selector":"goa-skeleton-element","template":"<div [ngClass]=\"elementClass\"></div>","styles":["@use \"../variables/main.css\";@-webkit-keyframes pulse{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}@keyframes pulse{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}[data-skeleton]{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[data-skeleton] *{border-color:#ddd!important;color:transparent!important}[data-skeleton] a,[data-skeleton] p{background-color:#ddd!important;-webkit-animation:pulse 2s ease-in-out infinite;animation:pulse 2s ease-in-out infinite;display:inline;line-height:0!important;font-size:50%!important}[data-skeleton] a:after,[data-skeleton] p:after{content:\"\"!important;display:block!important;margin-bottom:1rem!important;background-size:contain}[data-skeleton] h1,[data-skeleton] h2,[data-skeleton] h3,[data-skeleton] h4,[data-skeleton] h5,[data-skeleton] h6{background-color:#ddd!important;-webkit-animation:pulse 2s ease-in-out infinite;animation:pulse 2s ease-in-out infinite;margin-bottom:1rem}[data-skeleton] h1{height:calc(.6 * var(--fs-3xl))!important}[data-skeleton] h2{height:calc(.6 * var(--fs-2xl))!important}[data-skeleton] h3{height:calc(.6 * var(--fs-xl))!important}[data-skeleton] h4{height:calc(.6 * var(--fs-lg))!important}[data-skeleton] img{background-color:#ddd!important}.skeleton,[data-skeleton] img{-webkit-animation:pulse 2s ease-in-out infinite;animation:pulse 2s ease-in-out infinite}.skeleton{background-color:#ddd!important;background:#dcdcdc;overflow:hidden;margin:10px 0}.skeleton.text{width:100%;height:12px;border-radius:4px}.skeleton.paragraph{width:100%;height:70px;border-radius:4px}.skeleton.title{width:50%;height:20px;margin-bottom:15px;border-radius:4px}.skeleton.avatar{width:100px;height:100px;border-radius:50%}.skeleton.thumbnail{width:100px;height:100px;border-radius:4px}.skeleton-image-content{display:flex;flex-direction:row;gap:30px}.skeleton-image-content__text{flex:1 1 auto}.skeleton-content{display:grid;grid-template-columns:1fr;gap:30px;align-items:left}.goa-card{box-sizing:border-box;background:#fff;border:1px solid #dcdcdc;transition:opacity .3s ease-in-out}.goa-card .card-content{padding:28px;border-top:8px solid #0081a2}.goa-card .card-content .goa-content,.goa-card .card-content .goa-text,.goa-card .card-content .goa-title{margin-bottom:28px}.goa-card .card-content .goa-text{color:#333;font-size:var(--fs-base);line-height:28px}.goa-card .card-content .goa-footer{font-size:var(--fs-base)}.goa-card .card-content .goa-title{font-size:var(--fs-xl);font-weight:400;line-height:32px}.goa-card .goa-poster{position:relative;display:block;padding:56.25% 0 0;overflow:hidden;background:#e5e5e5}.goa-card .goa-poster:empty{display:none}.goa-card .goa-poster iframe,.goa-card .goa-poster img{position:absolute;top:0;left:0;width:100%;height:100%;border:none}.goa-card .goa-poster-image img{display:block;width:100%;-o-object-fit:cover;object-fit:cover}.goa-card.card-auto{width:auto}.goa-card.card-auto .card{flex-basis:auto;width:auto}.goa-card a:hover{color:#004f84;text-decoration:none}.goa-card a:focus{outline:3px solid #feba35;outline-offset:0}.goa-card[data-skeleton] .goa-poster-image{background-color:#ddd!important;-webkit-animation:pulse 2s ease-in-out infinite;animation:pulse 2s ease-in-out infinite;padding-bottom:56.25%}.goa-card[data-skeleton] .goa-poster-image img{display:none}.goa-card[data-skeleton] .goa-title{margin-bottom:1rem}.goa-card[data-skeleton] .goa-footer{background-color:#ddd!important;-webkit-animation:pulse 2s ease-in-out infinite;animation:pulse 2s ease-in-out infinite;max-height:1rem}"]}]}],"members":{"type":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":8,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor"}]}}}}]
@@ -1,19 +0,0 @@
1
- import { Component, Input } from '@angular/core';
2
- export class GoASkeletonImageContentComponent {
3
- constructor() {
4
- this.rows = 1;
5
- this.arr = Array;
6
- }
7
- }
8
- GoASkeletonImageContentComponent.decorators = [
9
- { type: Component, args: [{
10
- selector: 'goa-skeleton-image-content',
11
- template: "<div class=\"skeleton-image-content\">\n <goa-skeleton-element type=\"thumbnail\"></goa-skeleton-element>\n <div class=\"skeleton-image-content__text\">\n <goa-skeleton-element\n type=\"title\"\n *ngFor=\"let i of arr(rows).fill(1)\"\n ></goa-skeleton-element>\n </div>\n</div>\n",
12
- styles: ["@use \"../variables/main.css\";@-webkit-keyframes pulse{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}@keyframes pulse{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}[data-skeleton]{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[data-skeleton] *{border-color:#ddd!important;color:transparent!important}[data-skeleton] a,[data-skeleton] p{background-color:#ddd!important;-webkit-animation:pulse 2s ease-in-out infinite;animation:pulse 2s ease-in-out infinite;display:inline;line-height:0!important;font-size:50%!important}[data-skeleton] a:after,[data-skeleton] p:after{content:\"\"!important;display:block!important;margin-bottom:1rem!important;background-size:contain}[data-skeleton] h1,[data-skeleton] h2,[data-skeleton] h3,[data-skeleton] h4,[data-skeleton] h5,[data-skeleton] h6{background-color:#ddd!important;-webkit-animation:pulse 2s ease-in-out infinite;animation:pulse 2s ease-in-out infinite;margin-bottom:1rem}[data-skeleton] h1{height:calc(.6 * var(--fs-3xl))!important}[data-skeleton] h2{height:calc(.6 * var(--fs-2xl))!important}[data-skeleton] h3{height:calc(.6 * var(--fs-xl))!important}[data-skeleton] h4{height:calc(.6 * var(--fs-lg))!important}[data-skeleton] img{background-color:#ddd!important}.skeleton,[data-skeleton] img{-webkit-animation:pulse 2s ease-in-out infinite;animation:pulse 2s ease-in-out infinite}.skeleton{background-color:#ddd!important;background:#dcdcdc;overflow:hidden;margin:10px 0}.skeleton.text{width:100%;height:12px;border-radius:4px}.skeleton.paragraph{width:100%;height:70px;border-radius:4px}.skeleton.title{width:50%;height:20px;margin-bottom:15px;border-radius:4px}.skeleton.avatar{width:100px;height:100px;border-radius:50%}.skeleton.thumbnail{width:100px;height:100px;border-radius:4px}.skeleton-image-content{display:flex;flex-direction:row;gap:30px}.skeleton-image-content__text{flex:1 1 auto}.skeleton-content{display:grid;grid-template-columns:1fr;gap:30px;align-items:left}.goa-card{box-sizing:border-box;background:#fff;border:1px solid #dcdcdc;transition:opacity .3s ease-in-out}.goa-card .card-content{padding:28px;border-top:8px solid #0081a2}.goa-card .card-content .goa-content,.goa-card .card-content .goa-text,.goa-card .card-content .goa-title{margin-bottom:28px}.goa-card .card-content .goa-text{color:#333;font-size:var(--fs-base);line-height:28px}.goa-card .card-content .goa-footer{font-size:var(--fs-base)}.goa-card .card-content .goa-title{font-size:var(--fs-xl);font-weight:400;line-height:32px}.goa-card .goa-poster{position:relative;display:block;padding:56.25% 0 0;overflow:hidden;background:#e5e5e5}.goa-card .goa-poster:empty{display:none}.goa-card .goa-poster iframe,.goa-card .goa-poster img{position:absolute;top:0;left:0;width:100%;height:100%;border:none}.goa-card .goa-poster-image img{display:block;width:100%;-o-object-fit:cover;object-fit:cover}.goa-card.card-auto{width:auto}.goa-card.card-auto .card{flex-basis:auto;width:auto}.goa-card a:hover{color:#004f84;text-decoration:none}.goa-card a:focus{outline:3px solid #feba35;outline-offset:0}.goa-card[data-skeleton] .goa-poster-image{background-color:#ddd!important;-webkit-animation:pulse 2s ease-in-out infinite;animation:pulse 2s ease-in-out infinite;padding-bottom:56.25%}.goa-card[data-skeleton] .goa-poster-image img{display:none}.goa-card[data-skeleton] .goa-title{margin-bottom:1rem}.goa-card[data-skeleton] .goa-footer{background-color:#ddd!important;-webkit-animation:pulse 2s ease-in-out infinite;animation:pulse 2s ease-in-out infinite;max-height:1rem}"]
13
- },] }
14
- ];
15
- GoASkeletonImageContentComponent.ctorParameters = () => [];
16
- GoASkeletonImageContentComponent.propDecorators = {
17
- rows: [{ type: Input }]
18
- };
19
- //# sourceMappingURL=skeleton-image-content.component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"skeleton-image-content.component.js","sourceRoot":"","sources":["../../../../../../libs/angular-components/src/lib/skeleton/skeleton-image-content.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAU,KAAK,EAAE,MAAM,eAAe,CAAC;AAOzD,MAAM,OAAO,gCAAgC;IAI3C;QAHS,SAAI,GAAG,CAAC,CAAC;QAElB,QAAG,GAAG,KAAK,CAAC;IACG,CAAC;;;YATjB,SAAS,SAAC;gBACT,QAAQ,EAAE,4BAA4B;gBACtC,sTAAsD;;aAEvD;;;;mBAEE,KAAK","sourcesContent":["import { Component, OnInit, Input } from '@angular/core';\n\n@Component({\n selector: 'goa-skeleton-image-content',\n templateUrl: './skeleton-image-content.component.html',\n styleUrls: ['./skeleton-element.component.scss'],\n})\nexport class GoASkeletonImageContentComponent {\n @Input() rows = 1;\n\n arr = Array;\n constructor() {}\n\n\n}\n"]}
@@ -1 +0,0 @@
1
- [{"__symbolic":"module","version":4,"metadata":{"GoASkeletonImageContentComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"selector":"goa-skeleton-image-content","template":"<div class=\"skeleton-image-content\">\n <goa-skeleton-element type=\"thumbnail\"></goa-skeleton-element>\n <div class=\"skeleton-image-content__text\">\n <goa-skeleton-element\n type=\"title\"\n *ngFor=\"let i of arr(rows).fill(1)\"\n ></goa-skeleton-element>\n </div>\n</div>\n","styles":["@use \"../variables/main.css\";@-webkit-keyframes pulse{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}@keyframes pulse{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}[data-skeleton]{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[data-skeleton] *{border-color:#ddd!important;color:transparent!important}[data-skeleton] a,[data-skeleton] p{background-color:#ddd!important;-webkit-animation:pulse 2s ease-in-out infinite;animation:pulse 2s ease-in-out infinite;display:inline;line-height:0!important;font-size:50%!important}[data-skeleton] a:after,[data-skeleton] p:after{content:\"\"!important;display:block!important;margin-bottom:1rem!important;background-size:contain}[data-skeleton] h1,[data-skeleton] h2,[data-skeleton] h3,[data-skeleton] h4,[data-skeleton] h5,[data-skeleton] h6{background-color:#ddd!important;-webkit-animation:pulse 2s ease-in-out infinite;animation:pulse 2s ease-in-out infinite;margin-bottom:1rem}[data-skeleton] h1{height:calc(.6 * var(--fs-3xl))!important}[data-skeleton] h2{height:calc(.6 * var(--fs-2xl))!important}[data-skeleton] h3{height:calc(.6 * var(--fs-xl))!important}[data-skeleton] h4{height:calc(.6 * var(--fs-lg))!important}[data-skeleton] img{background-color:#ddd!important}.skeleton,[data-skeleton] img{-webkit-animation:pulse 2s ease-in-out infinite;animation:pulse 2s ease-in-out infinite}.skeleton{background-color:#ddd!important;background:#dcdcdc;overflow:hidden;margin:10px 0}.skeleton.text{width:100%;height:12px;border-radius:4px}.skeleton.paragraph{width:100%;height:70px;border-radius:4px}.skeleton.title{width:50%;height:20px;margin-bottom:15px;border-radius:4px}.skeleton.avatar{width:100px;height:100px;border-radius:50%}.skeleton.thumbnail{width:100px;height:100px;border-radius:4px}.skeleton-image-content{display:flex;flex-direction:row;gap:30px}.skeleton-image-content__text{flex:1 1 auto}.skeleton-content{display:grid;grid-template-columns:1fr;gap:30px;align-items:left}.goa-card{box-sizing:border-box;background:#fff;border:1px solid #dcdcdc;transition:opacity .3s ease-in-out}.goa-card .card-content{padding:28px;border-top:8px solid #0081a2}.goa-card .card-content .goa-content,.goa-card .card-content .goa-text,.goa-card .card-content .goa-title{margin-bottom:28px}.goa-card .card-content .goa-text{color:#333;font-size:var(--fs-base);line-height:28px}.goa-card .card-content .goa-footer{font-size:var(--fs-base)}.goa-card .card-content .goa-title{font-size:var(--fs-xl);font-weight:400;line-height:32px}.goa-card .goa-poster{position:relative;display:block;padding:56.25% 0 0;overflow:hidden;background:#e5e5e5}.goa-card .goa-poster:empty{display:none}.goa-card .goa-poster iframe,.goa-card .goa-poster img{position:absolute;top:0;left:0;width:100%;height:100%;border:none}.goa-card .goa-poster-image img{display:block;width:100%;-o-object-fit:cover;object-fit:cover}.goa-card.card-auto{width:auto}.goa-card.card-auto .card{flex-basis:auto;width:auto}.goa-card a:hover{color:#004f84;text-decoration:none}.goa-card a:focus{outline:3px solid #feba35;outline-offset:0}.goa-card[data-skeleton] .goa-poster-image{background-color:#ddd!important;-webkit-animation:pulse 2s ease-in-out infinite;animation:pulse 2s ease-in-out infinite;padding-bottom:56.25%}.goa-card[data-skeleton] .goa-poster-image img{display:none}.goa-card[data-skeleton] .goa-title{margin-bottom:1rem}.goa-card[data-skeleton] .goa-footer{background-color:#ddd!important;-webkit-animation:pulse 2s ease-in-out infinite;animation:pulse 2s ease-in-out infinite;max-height:1rem}"]}]}],"members":{"rows":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":8,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor"}]}}}}]
@@ -1,10 +0,0 @@
1
- import { OnInit, EventEmitter } from '@angular/core';
2
- export declare class GoAAppVersionHeaderComponent implements OnInit {
3
- isProdEnvironment: boolean;
4
- environment: string;
5
- version: string;
6
- closed: EventEmitter<boolean>;
7
- constructor();
8
- ngOnInit(): void;
9
- onCloseClick(): void;
10
- }
@@ -1,7 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- export declare class GoABadgeComponent implements OnInit {
3
- type: 'information' | 'success' | 'warning' | 'emergency' | 'dark' | 'midtone' | 'light' | 'inactive';
4
- constructor();
5
- get badgeClass(): string;
6
- ngOnInit(): void;
7
- }
@@ -1,2 +0,0 @@
1
- export declare class ExperimentalComponentsModule {
2
- }
@@ -1,4 +0,0 @@
1
- export * from './badge/badge.component';
2
- export * from './app-version-header/app-version-header.component';
3
- export * from './components.module';
4
- export * from './number-input/number-input.component';
@@ -1,58 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- export declare class GoANumberInputComponent {
3
- private _value;
4
- private _min?;
5
- private _max?;
6
- private inputElement;
7
- name?: string;
8
- disabled?: boolean;
9
- /**
10
- * Sets the step value that is used when incrementing / decrementing
11
- *
12
- * @memberof GoANumberInputComponent
13
- */
14
- step: number;
15
- /**
16
- * An event that fires whenever the value is changed
17
- *
18
- * @type {EventEmitter<number>}
19
- * @memberof GoANumberInputComponent
20
- */
21
- valueChanged: EventEmitter<number>;
22
- /**
23
- * The value of the NumberInput
24
- *
25
- * @memberof GoANumberInputComponent
26
- */
27
- set value(val: number);
28
- get value(): number;
29
- /**
30
- * Sets the minimum value that the number input can take
31
- *
32
- * @memberof GoANumberInputComponent
33
- */
34
- set min(min: number);
35
- get min(): number;
36
- /**
37
- * Sets the maximum value that the number input can take
38
- *
39
- * @memberof GoANumberInputComponent
40
- */
41
- set max(max: number);
42
- get max(): number;
43
- /**
44
- * Increment the number input
45
- *
46
- * @memberof GoANumberInputComponent
47
- */
48
- increment(): void;
49
- /**
50
- * Decrement the number input
51
- *
52
- * @memberof GoANumberInputComponent
53
- */
54
- decrement(): void;
55
- updateFromInput(): void;
56
- private get input();
57
- private clampValue;
58
- }
@@ -1,37 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- /**
3
- * A Government of Alberta styled button.
4
- * selector: button[goa-button], input[type="button"][goa-button], input[type="submit"][goa-button]
5
- */
6
- export declare class GoAButtonComponent implements OnInit {
7
- /**
8
- * Adds class goa-button to the host.
9
- * @ignore
10
- */
11
- get primaryBinding(): boolean;
12
- /**
13
- * Adds class goa--secondary to the host if the buttonStyle = secondary.
14
- * @ignore
15
- */
16
- get secondaryBinding(): boolean;
17
- /**
18
- * Adds class goa--tertiary to the host if the buttonStyle = tertiary.
19
- * @ignore
20
- */
21
- get tertiaryBinding(): boolean;
22
- /**
23
- * Adds class btn-small to the host if the buttonSize = small.
24
- * @ignore
25
- */
26
- get smallBinding(): boolean;
27
- /**
28
- * The appearance style of the button.
29
- */
30
- buttonType: 'primary' | 'secondary' | 'tertiary';
31
- /**
32
- * The size of the button, controls font size and padding.
33
- */
34
- buttonSize: 'small' | 'normal';
35
- constructor();
36
- ngOnInit(): void;
37
- }
@@ -1,38 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- /**
3
- * Styles an anchor Design system compliant.
4
- * selector: a[goa-button]
5
- * @example <a goa-button linkType='right' href='...'>Text</a>
6
- */
7
- export declare class GoAButtonLinkComponent implements OnInit {
8
- /**
9
- * Adds class goa-link-button to the host.
10
- * @ignore
11
- */
12
- get primaryBinding(): boolean;
13
- /**
14
- * Adds class right-arrow to the host if the linkType = right.
15
- * @ignore
16
- */
17
- get rightBinding(): boolean;
18
- /**
19
- * Adds class right-arrow to the host if the linkType = right.
20
- * @ignore
21
- */
22
- get upBinding(): boolean;
23
- /**
24
- * Adds class btn-small to the host if the buttonSize = small.
25
- * @ignore
26
- */
27
- get smallBinding(): boolean;
28
- /**
29
- * The type of arrow to use.
30
- */
31
- linkType: 'up' | 'right';
32
- /**
33
- * The size of the button, controls font size and padding.
34
- */
35
- buttonSize: 'small' | 'normal';
36
- constructor();
37
- ngOnInit(): void;
38
- }
@@ -1,20 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- /**
3
- * Callout component to describe important changes or facts.
4
- * selector: goa-callout
5
- */
6
- export declare class GoACalloutComponent implements OnInit {
7
- /**
8
- * The type of the callout, changes stylings and icons.
9
- */
10
- type: 'important' | 'information' | 'event' | 'success' | 'emergency';
11
- /**
12
- * The title of callout
13
- */
14
- title: string;
15
- constructor();
16
- /**
17
- * @ignore
18
- */
19
- ngOnInit(): void;
20
- }
@@ -1,23 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- export * from './header/card-header.component';
3
- export * from './footer/card-footer.component';
4
- export * from './thumb/card-thumb.component';
5
- export * from './content/card-content.component';
6
- /**
7
- * Card component with Government of Alberta styling.
8
- * Place desired sub-components (goa-card-thumb-image, goa-card-header, goa-card-content, goa-card-footer) inside of content.
9
- * selector: goa-card
10
- */
11
- export declare class GoACardComponent implements OnInit {
12
- /**
13
- * What percentage of container width to take.
14
- */
15
- cardSize: 'full' | 'auto';
16
- titleUrl: string;
17
- isSkeleton: false;
18
- constructor();
19
- /**
20
- * @ignore
21
- */
22
- ngOnInit(): void;
23
- }