@clr/angular 18.0.0-beta.2 → 18.0.0-beta.3

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 (56) hide show
  1. package/fesm2022/clr-angular-accordion.mjs +1 -1
  2. package/fesm2022/clr-angular-accordion.mjs.map +1 -1
  3. package/fesm2022/clr-angular-button.mjs +5 -5
  4. package/fesm2022/clr-angular-button.mjs.map +1 -1
  5. package/fesm2022/clr-angular-data-datagrid.mjs +10 -10
  6. package/fesm2022/clr-angular-data-datagrid.mjs.map +1 -1
  7. package/fesm2022/clr-angular-data.mjs +11 -9102
  8. package/fesm2022/clr-angular-data.mjs.map +1 -1
  9. package/fesm2022/clr-angular-emphasis.mjs +12 -778
  10. package/fesm2022/clr-angular-emphasis.mjs.map +1 -1
  11. package/fesm2022/clr-angular-forms-combobox.mjs +4 -4
  12. package/fesm2022/clr-angular-forms-combobox.mjs.map +1 -1
  13. package/fesm2022/clr-angular-forms-common.mjs +8 -6
  14. package/fesm2022/clr-angular-forms-common.mjs.map +1 -1
  15. package/fesm2022/clr-angular-forms-datepicker.mjs +5 -5
  16. package/fesm2022/clr-angular-forms-datepicker.mjs.map +1 -1
  17. package/fesm2022/clr-angular-forms-file-input.mjs +8 -6
  18. package/fesm2022/clr-angular-forms-file-input.mjs.map +1 -1
  19. package/fesm2022/clr-angular-forms.mjs +68 -8460
  20. package/fesm2022/clr-angular-forms.mjs.map +1 -1
  21. package/fesm2022/clr-angular-layout-tabs.mjs +1 -1
  22. package/fesm2022/clr-angular-layout-tabs.mjs.map +1 -1
  23. package/fesm2022/clr-angular-layout.mjs +15 -2057
  24. package/fesm2022/clr-angular-layout.mjs.map +1 -1
  25. package/fesm2022/clr-angular-popover-common.mjs +1 -1
  26. package/fesm2022/clr-angular-popover-common.mjs.map +1 -1
  27. package/fesm2022/clr-angular-popover-signpost.mjs +4 -4
  28. package/fesm2022/clr-angular-popover-signpost.mjs.map +1 -1
  29. package/fesm2022/clr-angular-popover-tooltip.mjs +4 -4
  30. package/fesm2022/clr-angular-popover-tooltip.mjs.map +1 -1
  31. package/fesm2022/clr-angular-popover.mjs +12 -2326
  32. package/fesm2022/clr-angular-popover.mjs.map +1 -1
  33. package/fesm2022/clr-angular-stepper.mjs +1 -1
  34. package/fesm2022/clr-angular-stepper.mjs.map +1 -1
  35. package/fesm2022/clr-angular-utils.mjs +4 -439
  36. package/fesm2022/clr-angular-utils.mjs.map +1 -1
  37. package/fesm2022/clr-angular.mjs +94 -38683
  38. package/fesm2022/clr-angular.mjs.map +1 -1
  39. package/package.json +2 -2
  40. package/types/clr-angular-accordion.d.ts +1 -1
  41. package/types/clr-angular-button.d.ts +1 -1
  42. package/types/clr-angular-data-datagrid.d.ts +23 -23
  43. package/types/clr-angular-data.d.ts +4 -2126
  44. package/types/clr-angular-emphasis.d.ts +4 -220
  45. package/types/clr-angular-forms-combobox.d.ts +1 -1
  46. package/types/clr-angular-forms-datepicker.d.ts +1 -1
  47. package/types/clr-angular-forms.d.ts +26 -2078
  48. package/types/clr-angular-layout-tabs.d.ts +1 -1
  49. package/types/clr-angular-layout.d.ts +6 -463
  50. package/types/clr-angular-popover-common.d.ts +1 -1
  51. package/types/clr-angular-popover-signpost.d.ts +1 -1
  52. package/types/clr-angular-popover-tooltip.d.ts +1 -1
  53. package/types/clr-angular-popover.d.ts +7 -593
  54. package/types/clr-angular-stepper.d.ts +1 -1
  55. package/types/clr-angular-utils.d.ts +5 -162
  56. package/types/clr-angular.d.ts +22 -10270
@@ -1,12 +1,13 @@
1
1
  import { FormGroup } from '@angular/forms';
2
2
  import * as i0 from '@angular/core';
3
- import { OnDestroy, EventEmitter, ElementRef, Renderer2, NgZone, Type, TemplateRef, Injector, ViewContainerRef, InjectionToken, OnChanges, SimpleChanges, OnInit, AfterViewInit, QueryList, FactoryProvider, ChangeDetectorRef, AfterViewChecked, AfterContentChecked } from '@angular/core';
3
+ import { OnDestroy, EventEmitter, ElementRef, Renderer2, NgZone, Type, TemplateRef, Injector, ViewContainerRef, InjectionToken, OnChanges, SimpleChanges, AfterViewInit, QueryList, FactoryProvider, ChangeDetectorRef, AfterViewChecked, AfterContentChecked } from '@angular/core';
4
4
  import * as i2 from '@angular/common';
5
5
  import * as _angular_animations from '@angular/animations';
6
6
  import { AnimationMetadata, AnimationEvent, AnimationBuilder } from '@angular/animations';
7
- import { Observable, Subject, Subscription, Observer } from 'rxjs';
8
- import { LoadingListener as LoadingListener$1, ClrLoadingState as ClrLoadingState$1 } from '@clr/angular/utils/loading';
7
+ export * from '@clr/angular/utils/loading';
8
+ export * from '@clr/angular/utils/conditional';
9
9
  import { CdkTrapFocus, FocusTrapFactory } from '@angular/cdk/a11y';
10
+ import { Subscription, Observable, Observer, Subject } from 'rxjs';
10
11
  import { Directionality } from '@angular/cdk/bidi';
11
12
  import { CdkDrag, DragDropConfig, DragDrop } from '@angular/cdk/drag-drop';
12
13
 
@@ -172,164 +173,6 @@ declare function fadeSlide(direction: string): AnimationMetadata[];
172
173
 
173
174
  declare function slide(direction: string): AnimationMetadata[];
174
175
 
175
- /**
176
- * This is an abstract class because we need it to still be a valid token for dependency injection after transpiling.
177
- * This does not mean you should extend it, simply implementing it is fine.
178
- */
179
- declare abstract class LoadingListener {
180
- abstract loadingStateChange(state: ClrLoadingState | string): void;
181
- }
182
-
183
- declare enum ClrLoadingState {
184
- DEFAULT = 0,
185
- LOADING = 1,
186
- SUCCESS = 2,
187
- ERROR = 3
188
- }
189
- declare class ClrLoading implements OnDestroy {
190
- private listener;
191
- static ngAcceptInputType_loadingState: boolean | ClrLoadingState | null | string;
192
- private _loadingState;
193
- constructor(listener: LoadingListener);
194
- get loadingState(): boolean | string | ClrLoadingState;
195
- set loadingState(value: boolean | string | ClrLoadingState);
196
- ngOnDestroy(): void;
197
- static ɵfac: i0.ɵɵFactoryDeclaration<ClrLoading, [{ optional: true; }]>;
198
- static ɵdir: i0.ɵɵDirectiveDeclaration<ClrLoading, "[clrLoading]", never, { "loadingState": { "alias": "clrLoading"; "required": false; }; }, {}, never, never, false, never>;
199
- }
200
-
201
- declare const CLR_LOADING_DIRECTIVES: Type<any>[];
202
- declare class ClrLoadingModule {
203
- static ɵfac: i0.ɵɵFactoryDeclaration<ClrLoadingModule, never>;
204
- static ɵmod: i0.ɵɵNgModuleDeclaration<ClrLoadingModule, [typeof ClrLoading], [typeof i2.CommonModule], [typeof ClrLoading]>;
205
- static ɵinj: i0.ɵɵInjectorDeclaration<ClrLoadingModule>;
206
- }
207
-
208
- declare const IF_ACTIVE_ID: InjectionToken<number>;
209
- declare function tokenFactory(): number;
210
- declare const IF_ACTIVE_ID_PROVIDER: {
211
- provide: InjectionToken<number>;
212
- useFactory: typeof tokenFactory;
213
- };
214
- declare class IfActiveService {
215
- /********
216
- * @property _currentChange
217
- *
218
- * @description
219
- * A RXJS Subject that updates and provides subscriptions to for the current current state of a component template
220
- * implemting the IfActive structural directive.
221
- *
222
- */
223
- private _currentChange;
224
- /*********
225
- * @property _current
226
- *
227
- * @description
228
- * A property holding the current value for current/closed state of an IfActive structural directive.
229
- */
230
- private _current;
231
- /*********
232
- *
233
- * @description
234
- * A getter function that provides an observable for the _current Subject.
235
- *
236
- */
237
- get currentChange(): Observable<number>;
238
- /*********
239
- *
240
- * @description
241
- * A property that gets/sets the current state of _current for this instance of IfActive structural directive.
242
- * And, broadcasts the new value to all subscribers.
243
- *
244
- */
245
- get current(): number;
246
- set current(value: number);
247
- static ɵfac: i0.ɵɵFactoryDeclaration<IfActiveService, never>;
248
- static ɵprov: i0.ɵɵInjectableDeclaration<IfActiveService>;
249
- }
250
-
251
- declare class ClrIfActive implements OnDestroy {
252
- private ifActiveService;
253
- private id;
254
- private template;
255
- private container;
256
- /**********
257
- * @property activeChange
258
- *
259
- * @description
260
- * An event emitter that emits when the active property is set to allow for 2way binding when the directive is
261
- * used with de-structured / de-sugared syntax.
262
- *
263
- */
264
- activeChange: EventEmitter<boolean>;
265
- private subscription;
266
- private wasActive;
267
- constructor(ifActiveService: IfActiveService, id: number, template: TemplateRef<any>, container: ViewContainerRef);
268
- /**
269
- * @description
270
- * A property that gets/sets IfActiveService.active with value.
271
- *
272
- */
273
- get active(): boolean | string;
274
- set active(value: boolean | string);
275
- ngOnDestroy(): void;
276
- /**
277
- * @description
278
- * Function that takes a any value and either created an embedded view for the associated ViewContainerRef or,
279
- * Clears all views from the ViewContainerRef
280
- */
281
- updateView(value: boolean): void;
282
- private checkAndUpdateView;
283
- static ɵfac: i0.ɵɵFactoryDeclaration<ClrIfActive, never>;
284
- static ɵdir: i0.ɵɵDirectiveDeclaration<ClrIfActive, "[clrIfActive]", never, { "active": { "alias": "clrIfActive"; "required": false; }; }, { "activeChange": "clrIfActiveChange"; }, never, never, true, never>;
285
- }
286
-
287
- declare class IfExpandService implements LoadingListener$1 {
288
- expandable: number;
289
- hasExpandTemplate: boolean;
290
- protected _loading: boolean;
291
- protected _expanded: boolean;
292
- protected _expandChange: Subject<boolean>;
293
- get loading(): boolean;
294
- set loading(value: boolean);
295
- get expanded(): boolean;
296
- set expanded(value: boolean);
297
- get expandChange(): Observable<boolean>;
298
- toggle(): void;
299
- loadingStateChange(state: ClrLoadingState$1): void;
300
- static ɵfac: i0.ɵɵFactoryDeclaration<IfExpandService, never>;
301
- static ɵprov: i0.ɵɵInjectableDeclaration<IfExpandService>;
302
- }
303
-
304
- declare class ClrIfExpanded implements OnInit, OnDestroy {
305
- private template;
306
- private container;
307
- private el;
308
- private renderer;
309
- private expand;
310
- expandedChange: EventEmitter<boolean>;
311
- private _expanded;
312
- /**
313
- * Subscriptions to all the services and queries changes
314
- */
315
- private _subscriptions;
316
- constructor(template: TemplateRef<any>, container: ViewContainerRef, el: ElementRef<HTMLElement>, renderer: Renderer2, expand: IfExpandService);
317
- get expanded(): boolean | string;
318
- set expanded(value: boolean | string);
319
- ngOnInit(): void;
320
- ngOnDestroy(): void;
321
- private updateView;
322
- static ɵfac: i0.ɵɵFactoryDeclaration<ClrIfExpanded, [{ optional: true; }, null, null, null, null]>;
323
- static ɵdir: i0.ɵɵDirectiveDeclaration<ClrIfExpanded, "[clrIfExpanded]", never, { "expanded": { "alias": "clrIfExpanded"; "required": false; }; }, { "expandedChange": "clrIfExpandedChange"; }, never, never, true, never>;
324
- }
325
-
326
- declare const CONDITIONAL_DIRECTIVES: Type<any>[];
327
- declare class ClrConditionalModule {
328
- static ɵfac: i0.ɵɵFactoryDeclaration<ClrConditionalModule, never>;
329
- static ɵmod: i0.ɵɵNgModuleDeclaration<ClrConditionalModule, never, [typeof i2.CommonModule, typeof ClrIfActive, typeof ClrIfExpanded], [typeof ClrIfActive, typeof ClrIfExpanded]>;
330
- static ɵinj: i0.ɵɵInjectorDeclaration<ClrConditionalModule>;
331
- }
332
-
333
176
  interface ClrCommonStrings {
334
177
  /**
335
178
  * Open button
@@ -1061,5 +904,5 @@ declare abstract class OompaLoompa implements AfterContentChecked, OnDestroy {
1061
904
  static ɵdir: i0.ɵɵDirectiveDeclaration<OompaLoompa, never, never, {}, {}, never, never, true, never>;
1062
905
  }
1063
906
 
1064
- export { ArrowKeyDirection, BASIC_FOCUSABLE_ITEM_PROVIDER, BaseExpandableAnimation, BasicFocusableItem, CLR_LOADING_DIRECTIVES, CONDITIONAL_DIRECTIVES, CdkDragModule, CdkDragModule_CdkDrag, CdkTrapFocusModule, CdkTrapFocusModule_CdkTrapFocus, ClrCommonStringsService, ClrConditionalModule, ClrDestroyService, ClrExpandableAnimation, ClrExpandableAnimationDirective, ClrExpandableAnimationModule, ClrFocusOnViewInit, ClrFocusOnViewInitModule, ClrHostWrappingModule, ClrIfActive, ClrIfExpanded, ClrKeyFocus, ClrKeyFocusItem, ClrKeyFocusModule, ClrLoading, ClrLoadingModule, ClrLoadingState, ClrOutsideClickModule, ClrPosition, ClrRovingTabindex, ClrStandaloneCdkTrapFocus, ClrTemplateRefModule, DATEPICKER_ENABLE_BREAKPOINT, DomAdapter, EXPANDABLE_ANIMATION_DIRECTIVES, EXTRA_LARGE_BREAKPOINT, EmptyAnchor, FOCUS_ON_VIEW_INIT, FOCUS_ON_VIEW_INIT_DIRECTIVES, FOCUS_SERVICE_PROVIDER, FocusService, FocusableItem, HostWrapper, IF_ACTIVE_ID, IF_ACTIVE_ID_PROVIDER, IfActiveService, IfExpandService, Keys, LARGE_BREAKPOINT, Linkers, LoadingListener, MEDIUM_BREAKPOINT, MOCK_DOM_ADAPTER_PROVIDER, MockDomAdapter, MockFocusableItem, OUSTIDE_CLICK_DIRECTIVES, OompaLoompa, OutsideClick, SMALL_BREAKPOINT, ScrollingService, TemplateRefContainer, WillyWonka, assertNever, clrFocusServiceFactory, collapse, commonStringsDefault, customFocusableItemProvider, defaultAnimationTiming, defaultExpandAnimation, fade, fadeSlide, isBooleanAttributeSet, isKeyEitherLetterOrNumber, preventArrowKeyScroll, slide, tokenFactory, triggerAllFormControlValidation, uniqueIdFactory, wrapObservable };
907
+ export { ArrowKeyDirection, BASIC_FOCUSABLE_ITEM_PROVIDER, BaseExpandableAnimation, BasicFocusableItem, CdkDragModule, CdkDragModule_CdkDrag, CdkTrapFocusModule, CdkTrapFocusModule_CdkTrapFocus, ClrCommonStringsService, ClrDestroyService, ClrExpandableAnimation, ClrExpandableAnimationDirective, ClrExpandableAnimationModule, ClrFocusOnViewInit, ClrFocusOnViewInitModule, ClrHostWrappingModule, ClrKeyFocus, ClrKeyFocusItem, ClrKeyFocusModule, ClrOutsideClickModule, ClrPosition, ClrRovingTabindex, ClrStandaloneCdkTrapFocus, ClrTemplateRefModule, DATEPICKER_ENABLE_BREAKPOINT, DomAdapter, EXPANDABLE_ANIMATION_DIRECTIVES, EXTRA_LARGE_BREAKPOINT, EmptyAnchor, FOCUS_ON_VIEW_INIT, FOCUS_ON_VIEW_INIT_DIRECTIVES, FOCUS_SERVICE_PROVIDER, FocusService, FocusableItem, HostWrapper, Keys, LARGE_BREAKPOINT, Linkers, MEDIUM_BREAKPOINT, MOCK_DOM_ADAPTER_PROVIDER, MockDomAdapter, MockFocusableItem, OUSTIDE_CLICK_DIRECTIVES, OompaLoompa, OutsideClick, SMALL_BREAKPOINT, ScrollingService, TemplateRefContainer, WillyWonka, assertNever, clrFocusServiceFactory, collapse, commonStringsDefault, customFocusableItemProvider, defaultAnimationTiming, defaultExpandAnimation, fade, fadeSlide, isBooleanAttributeSet, isKeyEitherLetterOrNumber, preventArrowKeyScroll, slide, triggerAllFormControlValidation, uniqueIdFactory, wrapObservable };
1065
908
  export type { ClrCommonStrings, HeadingLevel };