@clr/angular 17.4.0 → 17.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. package/accordion/accordion-panel.d.ts +11 -3
  2. package/clarity.api.md +447 -125
  3. package/data/datagrid/built-in/filters/datagrid-string-filter.d.ts +13 -4
  4. package/data/datagrid/datagrid-virtual-scroll.directive.d.ts +4 -3
  5. package/data/datagrid/providers/columns.service.d.ts +1 -0
  6. package/esm2020/accordion/accordion-panel.mjs +25 -7
  7. package/esm2020/accordion/stepper/stepper-panel.mjs +2 -2
  8. package/esm2020/data/datagrid/built-in/filters/datagrid-numeric-filter.mjs +18 -17
  9. package/esm2020/data/datagrid/built-in/filters/datagrid-string-filter.mjs +63 -28
  10. package/esm2020/data/datagrid/datagrid-column-toggle.mjs +1 -1
  11. package/esm2020/data/datagrid/datagrid-column.mjs +1 -1
  12. package/esm2020/data/datagrid/datagrid-footer.mjs +1 -1
  13. package/esm2020/data/datagrid/datagrid-page-size.mjs +1 -1
  14. package/esm2020/data/datagrid/datagrid-row.mjs +9 -11
  15. package/esm2020/data/datagrid/datagrid-virtual-scroll.directive.mjs +65 -11
  16. package/esm2020/data/datagrid/datagrid.mjs +1 -1
  17. package/esm2020/data/datagrid/providers/columns.service.mjs +4 -1
  18. package/esm2020/data/datagrid/render/main-renderer.mjs +3 -3
  19. package/esm2020/forms/checkbox/checkbox-container.mjs +1 -1
  20. package/esm2020/forms/checkbox/checkbox-wrapper.mjs +1 -1
  21. package/esm2020/forms/combobox/combobox-container.mjs +1 -1
  22. package/esm2020/forms/combobox/combobox.mjs +7 -7
  23. package/esm2020/forms/common/abstract-container.mjs +9 -3
  24. package/esm2020/forms/common/control-container.mjs +1 -1
  25. package/esm2020/forms/common/if-control-state/if-control-state.service.mjs +11 -27
  26. package/esm2020/forms/common/label.mjs +37 -5
  27. package/esm2020/forms/common/providers/ng-control.service.mjs +5 -1
  28. package/esm2020/forms/datalist/datalist-container.mjs +1 -1
  29. package/esm2020/forms/datepicker/calendar.mjs +21 -8
  30. package/esm2020/forms/datepicker/date-container.mjs +11 -4
  31. package/esm2020/forms/datepicker/date-input.mjs +2 -2
  32. package/esm2020/forms/datepicker/datepicker-action-buttons.mjs +50 -0
  33. package/esm2020/forms/datepicker/datepicker-view-manager.mjs +17 -10
  34. package/esm2020/forms/datepicker/datepicker.module.mjs +7 -3
  35. package/esm2020/forms/datepicker/day.mjs +15 -14
  36. package/esm2020/forms/datepicker/index.mjs +2 -1
  37. package/esm2020/forms/datepicker/model/calendar-view.model.mjs +15 -4
  38. package/esm2020/forms/datepicker/providers/date-navigation.service.mjs +9 -4
  39. package/esm2020/forms/file-input/file-input-container.mjs +102 -14
  40. package/esm2020/forms/file-input/file-input-validator-errors.mjs +8 -0
  41. package/esm2020/forms/file-input/file-input-validator.mjs +14 -22
  42. package/esm2020/forms/file-input/file-input.mjs +4 -2
  43. package/esm2020/forms/file-input/file-input.module.mjs +35 -4
  44. package/esm2020/forms/file-input/file-list.mjs +158 -0
  45. package/esm2020/forms/file-input/file-messages-template.mjs +26 -0
  46. package/esm2020/forms/file-input/file-messages.mjs +61 -0
  47. package/esm2020/forms/file-input/index.mjs +5 -1
  48. package/esm2020/forms/forms.module.mjs +7 -3
  49. package/esm2020/forms/index.mjs +2 -1
  50. package/esm2020/forms/input/input-container.mjs +12 -4
  51. package/esm2020/forms/input/input.mjs +10 -1
  52. package/esm2020/forms/number-input/index.mjs +10 -0
  53. package/esm2020/forms/number-input/number-input-container.mjs +145 -0
  54. package/esm2020/forms/number-input/number-input.mjs +72 -0
  55. package/esm2020/forms/number-input/number-input.module.mjs +32 -0
  56. package/esm2020/forms/password/password-container.mjs +1 -1
  57. package/esm2020/forms/radio/radio-container.mjs +1 -1
  58. package/esm2020/forms/radio/radio-wrapper.mjs +1 -1
  59. package/esm2020/forms/range/range-container.mjs +1 -1
  60. package/esm2020/forms/select/select-container.mjs +1 -1
  61. package/esm2020/forms/textarea/textarea-container.mjs +1 -1
  62. package/esm2020/layout/breadcrumbs/breadcrumb-item.mjs +24 -0
  63. package/esm2020/layout/breadcrumbs/breadcrumbs.constants.mjs +8 -0
  64. package/esm2020/layout/breadcrumbs/breadcrumbs.mjs +46 -0
  65. package/esm2020/layout/breadcrumbs/breadcrumbs.module.mjs +28 -0
  66. package/esm2020/layout/breadcrumbs/index.mjs +10 -0
  67. package/esm2020/layout/breadcrumbs/model/breadcrumbs.model.mjs +8 -0
  68. package/esm2020/layout/index.mjs +2 -1
  69. package/esm2020/layout/layout.module.mjs +5 -4
  70. package/esm2020/layout/tabs/index.mjs +3 -1
  71. package/esm2020/layout/tabs/tab-action.directive.mjs +22 -0
  72. package/esm2020/layout/tabs/tabs-actions.mjs +39 -0
  73. package/esm2020/layout/tabs/tabs.mjs +26 -7
  74. package/esm2020/layout/tabs/tabs.module.mjs +9 -1
  75. package/esm2020/popover/signpost/index.mjs +2 -1
  76. package/esm2020/popover/signpost/signpost-content.mjs +10 -5
  77. package/esm2020/popover/signpost/signpost-title.mjs +21 -0
  78. package/esm2020/popover/signpost/signpost.module.mjs +15 -3
  79. package/esm2020/utils/i18n/common-strings.default.mjs +8 -2
  80. package/esm2020/utils/i18n/common-strings.interface.mjs +1 -1
  81. package/fesm2015/clr-angular.mjs +17614 -16581
  82. package/fesm2015/clr-angular.mjs.map +1 -1
  83. package/fesm2020/clr-angular.mjs +17367 -16341
  84. package/fesm2020/clr-angular.mjs.map +1 -1
  85. package/forms/common/abstract-container.d.ts +2 -0
  86. package/forms/common/if-control-state/if-control-state.service.d.ts +4 -7
  87. package/forms/common/label.d.ts +11 -1
  88. package/forms/common/providers/ng-control.service.d.ts +2 -0
  89. package/forms/datepicker/calendar.d.ts +6 -1
  90. package/forms/datepicker/date-container.d.ts +2 -1
  91. package/forms/datepicker/datepicker-action-buttons.d.ts +16 -0
  92. package/forms/datepicker/datepicker-view-manager.d.ts +4 -1
  93. package/forms/datepicker/datepicker.module.d.ts +9 -8
  94. package/forms/datepicker/day.d.ts +5 -6
  95. package/forms/datepicker/index.d.ts +1 -0
  96. package/forms/datepicker/model/calendar-view.model.d.ts +5 -0
  97. package/forms/datepicker/providers/date-navigation.service.d.ts +6 -2
  98. package/forms/file-input/file-input-container.d.ts +15 -4
  99. package/forms/file-input/file-input-validator-errors.d.ts +52 -0
  100. package/forms/file-input/file-input.module.d.ts +7 -4
  101. package/forms/file-input/file-list.d.ts +18 -0
  102. package/forms/file-input/file-messages-template.d.ts +19 -0
  103. package/forms/file-input/file-messages.d.ts +17 -0
  104. package/forms/file-input/index.d.ts +4 -0
  105. package/forms/forms.module.d.ts +2 -1
  106. package/forms/index.d.ts +1 -0
  107. package/forms/input/input-container.d.ts +1 -1
  108. package/forms/number-input/index.d.ts +3 -0
  109. package/forms/number-input/number-input-container.d.ts +16 -0
  110. package/forms/number-input/number-input.d.ts +20 -0
  111. package/forms/number-input/number-input.module.d.ts +13 -0
  112. package/layout/breadcrumbs/breadcrumb-item.d.ts +5 -0
  113. package/layout/breadcrumbs/breadcrumbs.constants.d.ts +1 -0
  114. package/layout/breadcrumbs/breadcrumbs.d.ts +17 -0
  115. package/layout/breadcrumbs/breadcrumbs.module.d.ts +12 -0
  116. package/layout/breadcrumbs/index.d.ts +3 -0
  117. package/layout/breadcrumbs/model/breadcrumbs.model.d.ts +9 -0
  118. package/layout/index.d.ts +1 -0
  119. package/layout/layout.module.d.ts +2 -1
  120. package/layout/tabs/index.d.ts +3 -0
  121. package/layout/tabs/tab-action.directive.d.ts +5 -0
  122. package/layout/tabs/tabs-actions.d.ts +7 -0
  123. package/layout/tabs/tabs.d.ts +5 -2
  124. package/layout/tabs/tabs.module.d.ts +10 -8
  125. package/package.json +5 -5
  126. package/popover/signpost/index.d.ts +1 -0
  127. package/popover/signpost/signpost-content.d.ts +2 -1
  128. package/popover/signpost/signpost-title.d.ts +5 -0
  129. package/popover/signpost/signpost.module.d.ts +6 -5
  130. package/utils/i18n/common-strings.interface.d.ts +14 -0
@@ -1,8 +1,11 @@
1
1
  export * from './tabs';
2
+ export * from './tabs-actions';
2
3
  export * from './tab';
3
4
  export * from './tab-content';
4
5
  export * from './tab-overflow-content';
5
6
  export * from './tab-link.directive';
7
+ export * from './tab-action.directive';
6
8
  export * from './tabs.module';
9
+ export { ClrTabsActionsPosition } from './tabs-actions';
7
10
  export { TabsWillyWonka as ÇlrTabsWillyWonka } from './chocolate/tabs-willy-wonka';
8
11
  export { ActiveOompaLoompa as ÇlrActiveOompaLoompa } from './chocolate/active-oompa-loompa';
@@ -0,0 +1,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ClrTabAction {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<ClrTabAction, never>;
4
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ClrTabAction, "[clrTabAction]", never, {}, {}, never, never, false, never>;
5
+ }
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare type ClrTabsActionsPosition = 'left' | 'right';
3
+ export declare class ClrTabsActions {
4
+ position: ClrTabsActionsPosition;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<ClrTabsActions, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<ClrTabsActions, "clr-tabs-actions", never, { "position": "position"; }, {}, never, ["*"], false, never>;
7
+ }
@@ -1,4 +1,4 @@
1
- import { AfterContentInit, ElementRef, OnDestroy } from '@angular/core';
1
+ import { AfterContentInit, ElementRef, OnDestroy, QueryList } from '@angular/core';
2
2
  import { IfActiveService } from '../../utils/conditional/if-active.service';
3
3
  import { ClrKeyFocus } from '../../utils/focus/key-focus/key-focus';
4
4
  import { ClrCommonStringsService } from '../../utils/i18n/common-strings.service';
@@ -17,6 +17,7 @@ export declare class ClrTabs implements AfterContentInit, OnDestroy {
17
17
  tabLinkElements: HTMLElement[];
18
18
  _mousedown: boolean;
19
19
  keyFocus: ClrKeyFocus;
20
+ tabsActions: QueryList<ElementRef>;
20
21
  private tabs;
21
22
  private subscriptions;
22
23
  private _tabOverflowEl;
@@ -41,7 +42,9 @@ export declare class ClrTabs implements AfterContentInit, OnDestroy {
41
42
  closeOnFocusOut(event: FocusEvent): void;
42
43
  closeOnEscapeKey(): void;
43
44
  closeOnOutsideClick(event: Event, tabOverflowTrigger: HTMLElement): void;
45
+ private setTabLinkElements;
44
46
  private listenForTabLinkChanges;
47
+ private listedForTabsActionsChanges;
45
48
  static ɵfac: i0.ɵɵFactoryDeclaration<ClrTabs, never>;
46
- static ɵcmp: i0.ɵɵComponentDeclaration<ClrTabs, "clr-tabs", never, { "layout": "clrLayout"; }, {}, ["tabs"], never, false, [{ directive: typeof i1.ClrPopoverHostDirective; inputs: {}; outputs: {}; }]>;
49
+ static ɵcmp: i0.ɵɵComponentDeclaration<ClrTabs, "clr-tabs", never, { "layout": "clrLayout"; }, {}, ["tabsActions", "tabs"], ["clr-tabs-actions"], false, [{ directive: typeof i1.ClrPopoverHostDirective; inputs: {}; outputs: {}; }]>;
47
50
  }
@@ -5,17 +5,19 @@ import * as i2 from "./tab";
5
5
  import * as i3 from "./tabs";
6
6
  import * as i4 from "./tab-overflow-content";
7
7
  import * as i5 from "./tab-link.directive";
8
- import * as i6 from "./chocolate/tabs-willy-wonka";
9
- import * as i7 from "./chocolate/active-oompa-loompa";
10
- import * as i8 from "@angular/common";
11
- import * as i9 from "../../utils/conditional/conditional.module";
12
- import * as i10 from "../../icon/icon.module";
13
- import * as i11 from "../../utils/template-ref/template-ref.module";
14
- import * as i12 from "../../utils/focus/key-focus/key-focus.module";
8
+ import * as i6 from "./tab-action.directive";
9
+ import * as i7 from "./tabs-actions";
10
+ import * as i8 from "./chocolate/tabs-willy-wonka";
11
+ import * as i9 from "./chocolate/active-oompa-loompa";
12
+ import * as i10 from "@angular/common";
13
+ import * as i11 from "../../utils/conditional/conditional.module";
14
+ import * as i12 from "../../icon/icon.module";
15
+ import * as i13 from "../../utils/template-ref/template-ref.module";
16
+ import * as i14 from "../../utils/focus/key-focus/key-focus.module";
15
17
  export declare const CLR_TABS_DIRECTIVES: Type<any>[];
16
18
  export declare class ClrTabsModule {
17
19
  constructor();
18
20
  static ɵfac: i0.ɵɵFactoryDeclaration<ClrTabsModule, never>;
19
- static ɵmod: i0.ɵɵNgModuleDeclaration<ClrTabsModule, [typeof i1.ClrTabContent, typeof i2.ClrTab, typeof i3.ClrTabs, typeof i4.ClrTabOverflowContent, typeof i5.ClrTabLink, typeof i6.TabsWillyWonka, typeof i7.ActiveOompaLoompa], [typeof i8.CommonModule, typeof i9.ClrConditionalModule, typeof i10.ClrIconModule, typeof i11.ClrTemplateRefModule, typeof i12.ClrKeyFocusModule], [typeof i1.ClrTabContent, typeof i2.ClrTab, typeof i3.ClrTabs, typeof i4.ClrTabOverflowContent, typeof i5.ClrTabLink, typeof i6.TabsWillyWonka, typeof i7.ActiveOompaLoompa, typeof i9.ClrConditionalModule]>;
21
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ClrTabsModule, [typeof i1.ClrTabContent, typeof i2.ClrTab, typeof i3.ClrTabs, typeof i4.ClrTabOverflowContent, typeof i5.ClrTabLink, typeof i6.ClrTabAction, typeof i7.ClrTabsActions, typeof i8.TabsWillyWonka, typeof i9.ActiveOompaLoompa], [typeof i10.CommonModule, typeof i11.ClrConditionalModule, typeof i12.ClrIconModule, typeof i13.ClrTemplateRefModule, typeof i14.ClrKeyFocusModule], [typeof i1.ClrTabContent, typeof i2.ClrTab, typeof i3.ClrTabs, typeof i4.ClrTabOverflowContent, typeof i5.ClrTabLink, typeof i6.ClrTabAction, typeof i7.ClrTabsActions, typeof i8.TabsWillyWonka, typeof i9.ActiveOompaLoompa, typeof i11.ClrConditionalModule]>;
20
22
  static ɵinj: i0.ɵɵInjectorDeclaration<ClrTabsModule>;
21
23
  }
package/package.json CHANGED
@@ -18,11 +18,11 @@
18
18
  "url": "https://github.com/vmware-clarity/ng-clarity/issues"
19
19
  },
20
20
  "peerDependencies": {
21
- "@angular/cdk": "15 || 16 || 17 || 18",
22
- "@angular/common": "15 || 16 || 17 || 18",
23
- "@angular/core": "15 || 16 || 17 || 18",
21
+ "@angular/cdk": "15 || 16 || 17 || 18 || 19",
22
+ "@angular/common": "15 || 16 || 17 || 18 || 19",
23
+ "@angular/core": "15 || 16 || 17 || 18 || 19",
24
24
  "@cds/core": ">= 6.9.2",
25
- "@clr/ui": "17.4.0"
25
+ "@clr/ui": "17.6.0"
26
26
  },
27
27
  "module": "fesm2015/clr-angular.mjs",
28
28
  "es2020": "fesm2020/clr-angular.mjs",
@@ -47,5 +47,5 @@
47
47
  "dependencies": {
48
48
  "tslib": "^2.3.0"
49
49
  },
50
- "version": "17.4.0"
50
+ "version": "17.6.0"
51
51
  }
@@ -1,4 +1,5 @@
1
1
  export * from './signpost';
2
2
  export * from './signpost-content';
3
+ export * from './signpost-title';
3
4
  export * from './signpost-trigger';
4
5
  export * from './signpost.module';
@@ -8,6 +8,7 @@ export declare class ClrSignpostContent extends AbstractPopover implements OnDes
8
8
  commonStrings: ClrCommonStringsService;
9
9
  private signpostFocusManager;
10
10
  private platformId;
11
+ signpostCloseAriaLabel: string;
11
12
  signpostContentId: string;
12
13
  private document;
13
14
  private _position;
@@ -52,5 +53,5 @@ export declare class ClrSignpostContent extends AbstractPopover implements OnDes
52
53
  close(): void;
53
54
  ngOnDestroy(): void;
54
55
  static ɵfac: i0.ɵɵFactoryDeclaration<ClrSignpostContent, [null, { optional: true; }, null, null, null, null, null]>;
55
- static ɵcmp: i0.ɵɵComponentDeclaration<ClrSignpostContent, "clr-signpost-content", never, { "position": "clrPosition"; }, {}, never, ["*"], false, never>;
56
+ static ɵcmp: i0.ɵɵComponentDeclaration<ClrSignpostContent, "clr-signpost-content", never, { "signpostCloseAriaLabel": "clrSignpostCloseAriaLabel"; "position": "clrPosition"; }, {}, never, ["clr-signpost-title", "*"], false, never>;
56
57
  }
@@ -0,0 +1,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ClrSignpostTitle {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<ClrSignpostTitle, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<ClrSignpostTitle, "clr-signpost-title", never, {}, {}, never, ["*"], false, never>;
5
+ }
@@ -3,14 +3,15 @@ import * as i0 from "@angular/core";
3
3
  import * as i1 from "./signpost";
4
4
  import * as i2 from "./signpost-content";
5
5
  import * as i3 from "./signpost-trigger";
6
- import * as i4 from "@angular/common";
7
- import * as i5 from "../../icon/icon.module";
8
- import * as i6 from "../../utils/focus/focus-on-view-init/focus-on-view-init.module";
9
- import * as i7 from "../../utils/conditional/conditional.module";
6
+ import * as i4 from "./signpost-title";
7
+ import * as i5 from "@angular/common";
8
+ import * as i6 from "../../icon/icon.module";
9
+ import * as i7 from "../../utils/focus/focus-on-view-init/focus-on-view-init.module";
10
+ import * as i8 from "../../utils/conditional/conditional.module";
10
11
  export declare const CLR_SIGNPOST_DIRECTIVES: Type<any>[];
11
12
  export declare class ClrSignpostModule {
12
13
  constructor();
13
14
  static ɵfac: i0.ɵɵFactoryDeclaration<ClrSignpostModule, never>;
14
- static ɵmod: i0.ɵɵNgModuleDeclaration<ClrSignpostModule, [typeof i1.ClrSignpost, typeof i2.ClrSignpostContent, typeof i3.ClrSignpostTrigger], [typeof i4.CommonModule, typeof i5.ClrIconModule, typeof i6.ClrFocusOnViewInitModule], [typeof i1.ClrSignpost, typeof i2.ClrSignpostContent, typeof i3.ClrSignpostTrigger, typeof i7.ClrConditionalModule]>;
15
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ClrSignpostModule, [typeof i1.ClrSignpost, typeof i2.ClrSignpostContent, typeof i3.ClrSignpostTrigger, typeof i4.ClrSignpostTitle], [typeof i5.CommonModule, typeof i6.ClrIconModule, typeof i7.ClrFocusOnViewInitModule], [typeof i1.ClrSignpost, typeof i2.ClrSignpostContent, typeof i3.ClrSignpostTrigger, typeof i4.ClrSignpostTitle, typeof i8.ClrConditionalModule]>;
15
16
  static ɵinj: i0.ɵɵInjectorDeclaration<ClrSignpostModule>;
16
17
  }
@@ -15,6 +15,14 @@ export interface ClrCommonStrings {
15
15
  * Hide button
16
16
  */
17
17
  hide: string;
18
+ /**
19
+ * Apply button
20
+ */
21
+ apply: string;
22
+ /**
23
+ * Cancel button
24
+ */
25
+ cancel: string;
18
26
  /**
19
27
  * Expandable components: expand caret
20
28
  */
@@ -127,6 +135,10 @@ export interface ClrCommonStrings {
127
135
  * Datagrid filter toggle button
128
136
  */
129
137
  datagridFilterAriaLabel: string;
138
+ /**
139
+ * Datagrid filter label
140
+ */
141
+ datagridFilterLabel: string;
130
142
  /**
131
143
  * Datagrid filter dialog
132
144
  */
@@ -284,4 +296,6 @@ export interface ClrCommonStrings {
284
296
  clearFiles: string;
285
297
  selectedTreeNode: string;
286
298
  unselectedTreeNode: string;
299
+ breadcrumbsLabel: string;
300
+ expandBreadcrumbsLabel: string;
287
301
  }