cax-design-system 2.1.0 → 2.3.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 (69) hide show
  1. package/README.md +1 -1
  2. package/api/public_api.d.ts +1 -0
  3. package/api/themegeneratorservice.d.ts +12 -0
  4. package/badge/badge.directive.d.ts +4 -2
  5. package/esm2022/accordion/accordion.mjs +3 -3
  6. package/esm2022/api/public_api.mjs +2 -1
  7. package/esm2022/api/themegeneratorservice.mjs +109 -0
  8. package/esm2022/autocomplete/autocomplete.mjs +3 -3
  9. package/esm2022/badge/badge.directive.mjs +20 -8
  10. package/esm2022/badge/badge.mjs +2 -2
  11. package/esm2022/inputnumber/inputnumber.mjs +11 -5
  12. package/esm2022/overlaypanel/overlaypanel.mjs +3 -3
  13. package/esm2022/paginator/paginator.mjs +1 -1
  14. package/esm2022/splitbutton/splitbutton.mjs +8 -3
  15. package/esm2022/splitbutton/splitbutton.module.mjs +5 -4
  16. package/esm2022/steps/public_api.mjs +2 -1
  17. package/esm2022/steps/steps.mjs +5 -143
  18. package/esm2022/steps/steps.module.mjs +20 -0
  19. package/esm2022/table/components/column-filter-form-element/column-filter-form-element.mjs +2 -2
  20. package/esm2022/timeline/public_api.mjs +2 -1
  21. package/esm2022/timeline/timeline.mjs +6 -90
  22. package/esm2022/timeline/timeline.module.mjs +19 -0
  23. package/esm2022/toggleswitch/toggleswitch.mjs +3 -3
  24. package/fesm2022/cax-design-system-accordion.mjs +2 -2
  25. package/fesm2022/cax-design-system-accordion.mjs.map +1 -1
  26. package/fesm2022/cax-design-system-api.mjs +108 -1
  27. package/fesm2022/cax-design-system-api.mjs.map +1 -1
  28. package/fesm2022/cax-design-system-autocomplete.mjs +2 -2
  29. package/fesm2022/cax-design-system-autocomplete.mjs.map +1 -1
  30. package/fesm2022/cax-design-system-badge.mjs +21 -9
  31. package/fesm2022/cax-design-system-badge.mjs.map +1 -1
  32. package/fesm2022/cax-design-system-inputnumber.mjs +10 -4
  33. package/fesm2022/cax-design-system-inputnumber.mjs.map +1 -1
  34. package/fesm2022/cax-design-system-overlaypanel.mjs +2 -2
  35. package/fesm2022/cax-design-system-overlaypanel.mjs.map +1 -1
  36. package/fesm2022/cax-design-system-paginator.mjs +1 -1
  37. package/fesm2022/cax-design-system-paginator.mjs.map +1 -1
  38. package/fesm2022/cax-design-system-splitbutton.mjs +11 -5
  39. package/fesm2022/cax-design-system-splitbutton.mjs.map +1 -1
  40. package/fesm2022/cax-design-system-steps.mjs +7 -128
  41. package/fesm2022/cax-design-system-steps.mjs.map +1 -1
  42. package/fesm2022/cax-design-system-table.mjs +1 -1
  43. package/fesm2022/cax-design-system-table.mjs.map +1 -1
  44. package/fesm2022/cax-design-system-timeline.mjs +6 -75
  45. package/fesm2022/cax-design-system-timeline.mjs.map +1 -1
  46. package/fesm2022/cax-design-system-toggleswitch.mjs +2 -2
  47. package/fesm2022/cax-design-system-toggleswitch.mjs.map +1 -1
  48. package/inputnumber/inputnumber.d.ts +6 -1
  49. package/package.json +255 -255
  50. package/resources/cax.min.scss +1 -1
  51. package/resources/cax.scss +1056 -622
  52. package/resources/components/accordion/accordion.scss +2 -0
  53. package/resources/components/autocomplete/autocomplete.scss +3 -7
  54. package/resources/components/badge/badge.scss +33 -0
  55. package/resources/components/inputnumber/inputnumber.scss +2 -9
  56. package/resources/components/overlaypanel/overlaypanel.scss +4 -1
  57. package/resources/components/splitbutton/splitbutton.scss +10 -5
  58. package/resources/components/steps/{steps.css → steps.scss} +10 -9
  59. package/resources/components/timeline/timeline.scss +134 -0
  60. package/resources/components/toggleswitch/toggleswitch.scss +6 -0
  61. package/splitbutton/splitbutton.d.ts +1 -0
  62. package/splitbutton/splitbutton.module.d.ts +2 -1
  63. package/steps/public_api.d.ts +1 -0
  64. package/steps/steps.d.ts +1 -9
  65. package/steps/steps.module.d.ts +10 -0
  66. package/timeline/public_api.d.ts +1 -0
  67. package/timeline/timeline.d.ts +1 -8
  68. package/timeline/timeline.module.d.ts +9 -0
  69. package/resources/components/timeline/timeline.css +0 -114
@@ -1,8 +1,8 @@
1
- import * as i1 from '@angular/common';
2
- import { CommonModule } from '@angular/common';
3
1
  import * as i0 from '@angular/core';
4
2
  import { Component, ChangeDetectionStrategy, ViewEncapsulation, Input, ContentChildren, NgModule } from '@angular/core';
5
3
  import { CaxTemplate, SharedModule } from 'cax-design-system/api';
4
+ import * as i1 from '@angular/common';
5
+ import { CommonModule } from '@angular/common';
6
6
 
7
7
  /**
8
8
  * Timeline visualizes a series of chained events.
@@ -61,83 +61,13 @@ class Timeline {
61
61
  });
62
62
  }
63
63
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: Timeline, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
64
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.9", type: Timeline, selector: "p-timeline", inputs: { value: "value", style: "style", styleClass: "styleClass", align: "align", layout: "layout" }, host: { classAttribute: "cax-element" }, queries: [{ propertyName: "templates", predicate: CaxTemplate }], ngImport: i0, template: `
65
- <div
66
- [class]="styleClass"
67
- [ngStyle]="style"
68
- [ngClass]="{
69
- 'p-timeline p-component': true,
70
- 'p-timeline-left': align === 'left',
71
- 'p-timeline-right': align === 'right',
72
- 'p-timeline-top': align === 'top',
73
- 'p-timeline-bottom': align === 'bottom',
74
- 'p-timeline-alternate': align === 'alternate',
75
- 'p-timeline-vertical': layout === 'vertical',
76
- 'p-timeline-horizontal': layout === 'horizontal'
77
- }"
78
- [attr.data-pc-name]="'timeline'"
79
- [attr.data-pc-section]="'root'"
80
- >
81
- <div *ngFor="let event of value; let last = last" class="p-timeline-event" [attr.data-pc-section]="'event'">
82
- <div class="p-timeline-event-opposite" [attr.data-pc-section]="'opposite'">
83
- <ng-container *ngTemplateOutlet="oppositeTemplate; context: { $implicit: event }"></ng-container>
84
- </div>
85
- <div class="p-timeline-event-separator" [attr.data-pc-section]="'separator'">
86
- <ng-container *ngIf="markerTemplate; else marker">
87
- <ng-container *ngTemplateOutlet="markerTemplate; context: { $implicit: event }"></ng-container>
88
- </ng-container>
89
- <ng-template #marker>
90
- <div class="p-timeline-event-marker" [attr.data-pc-section]="'marker'"></div>
91
- </ng-template>
92
- <div *ngIf="!last" class="p-timeline-event-connector"></div>
93
- </div>
94
- <div class="p-timeline-event-content" [attr.data-pc-section]="'content'">
95
- <ng-container *ngTemplateOutlet="contentTemplate; context: { $implicit: event }"></ng-container>
96
- </div>
97
- </div>
98
- </div>
99
- `, isInline: true, styles: ["@layer cax{.p-timeline{display:flex;flex-grow:1;flex-direction:column}.p-timeline-left .p-timeline-event-opposite{text-align:right}.p-timeline-left .p-timeline-event-content{text-align:left}.p-timeline-right .p-timeline-event{flex-direction:row-reverse}.p-timeline-right .p-timeline-event-opposite{text-align:left}.p-timeline-right .p-timeline-event-content{text-align:right}.p-timeline-vertical.p-timeline-alternate .p-timeline-event:nth-child(2n){flex-direction:row-reverse}.p-timeline-vertical.p-timeline-alternate .p-timeline-event:nth-child(odd) .p-timeline-event-opposite{text-align:right}.p-timeline-vertical.p-timeline-alternate .p-timeline-event:nth-child(odd) .p-timeline-event-content{text-align:left}.p-timeline-vertical.p-timeline-alternate .p-timeline-event:nth-child(2n) .p-timeline-event-opposite{text-align:left}.p-timeline-vertical.p-timeline-alternate .p-timeline-event:nth-child(2n) .p-timeline-event-content{text-align:right}.p-timeline-event{display:flex;position:relative;min-height:70px}.p-timeline-event:last-child{min-height:0}.p-timeline-event-opposite,.p-timeline-event-content{flex:1;padding:0 1rem;min-width:100px}.p-timeline-event-separator{flex:0;display:flex;align-items:center;flex-direction:column}.p-timeline-event-marker{display:flex;align-self:baseline}.p-timeline-event-connector{flex-grow:1}.p-timeline-horizontal{flex-direction:row}.p-timeline-horizontal .p-timeline-event{flex-direction:column;flex:1}.p-timeline-horizontal .p-timeline-event:last-child{flex:0}.p-timeline-horizontal .p-timeline-event-separator{flex-direction:row}.p-timeline-horizontal .p-timeline-event-connector{width:100%}.p-timeline-bottom .p-timeline-event{flex-direction:column-reverse}.p-timeline-horizontal.p-timeline-alternate .p-timeline-event:nth-child(2n){flex-direction:column-reverse}}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
64
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.9", type: Timeline, selector: "cax-timeline", inputs: { value: "value", style: "style", styleClass: "styleClass", align: "align", layout: "layout" }, host: { classAttribute: "cax-element" }, queries: [{ propertyName: "templates", predicate: CaxTemplate }], ngImport: i0, template: "<div\r\n [class]=\"styleClass\"\r\n [ngStyle]=\"style\"\r\n [ngClass]=\"{\r\n 'cax-timeline cax-component': true,\r\n 'cax-timeline-left': align === 'left',\r\n 'cax-timeline-right': align === 'right',\r\n 'cax-timeline-top': align === 'top',\r\n 'cax-timeline-bottom': align === 'bottom',\r\n 'cax-timeline-alternate': align === 'alternate',\r\n 'cax-timeline-vertical': layout === 'vertical',\r\n 'cax-timeline-horizontal': layout === 'horizontal'\r\n }\"\r\n [attr.data-pc-name]=\"'timeline'\"\r\n [attr.data-pc-section]=\"'root'\"\r\n>\r\n <div *ngFor=\"let event of value; let last = last; let i = index\" class=\"cax-timeline-event\" [attr.data-pc-section]=\"'event'\">\r\n <div class=\"cax-timeline-event-opposite\" [attr.data-pc-section]=\"'opposite'\">\r\n <ng-container *ngTemplateOutlet=\"oppositeTemplate; context: { $implicit: event }\"></ng-container>\r\n </div>\r\n <div class=\"cax-timeline-event-separator\" [attr.data-pc-section]=\"'separator'\">\r\n <ng-container *ngIf=\"markerTemplate; else marker\">\r\n <ng-container *ngTemplateOutlet=\"markerTemplate; context: { $implicit: event, index: i }\"></ng-container>\r\n </ng-container>\r\n <ng-template #marker>\r\n <div class=\"cax-timeline-event-marker\" [attr.data-pc-section]=\"'marker'\">\r\n {{ i + 1 }}\r\n </div>\r\n </ng-template>\r\n <div *ngIf=\"!last\" class=\"cax-timeline-event-connector\"></div>\r\n </div>\r\n <div class=\"cax-timeline-event-content\" [attr.data-pc-section]=\"'content'\">\r\n <ng-container *ngTemplateOutlet=\"contentTemplate; context: { $implicit: event }\"></ng-container>\r\n </div>\r\n </div>\r\n</div>", styles: ["@layer cax{.cax-timeline{display:flex;flex-grow:1;flex-direction:column}.cax-timeline-left .cax-timeline-event-opposite{text-align:right}.cax-timeline-left .cax-timeline-event-content{text-align:left}.cax-timeline-right .cax-timeline-event{flex-direction:row-reverse}.cax-timeline-right .cax-timeline-event-opposite{text-align:left}.cax-timeline-right .cax-timeline-event-content{text-align:right}.cax-timeline-vertical.cax-timeline-alternate .cax-timeline-event:nth-child(2n){flex-direction:row-reverse!important}.cax-timeline-vertical.cax-timeline-alternate .cax-timeline-event:nth-child(odd) .cax-timeline-event-opposite{text-align:right}.cax-timeline-vertical.cax-timeline-alternate .cax-timeline-event:nth-child(odd) .cax-timeline-event-content{text-align:left}.cax-timeline-vertical.cax-timeline-alternate .cax-timeline-event:nth-child(2n) .cax-timeline-event-opposite{text-align:left}.cax-timeline-vertical.cax-timeline-alternate .cax-timeline-event:nth-child(2n) .cax-timeline-event-content{text-align:right}.cax-timeline-event{display:flex;position:relative;min-height:70px}.cax-timeline-event:last-child{min-height:0}.cax-timeline-event-opposite{flex:1;padding:0 1rem;min-width:100px}.cax-timeline-event-content{flex:1;padding:0 1rem;min-width:100px;border-radius:8px}.cax-timeline-event-separator{flex:0;display:flex;align-items:center;flex-direction:column}.cax-timeline-event-marker{display:flex;align-self:baseline}.cax-timeline-event-connector{flex-grow:1}.cax-timeline-horizontal{flex-direction:row}.cax-timeline-horizontal.cax-timeline-bottom{align-items:end!important}.cax-timeline-horizontal.cax-timeline-top{align-items:start!important}.cax-timeline-horizontal .cax-timeline-event{flex-direction:column;flex:1}.cax-timeline-horizontal .cax-timeline-event:last-child{flex:0}.cax-timeline-horizontal .cax-timeline-event-separator{flex-direction:row}.cax-timeline-horizontal .cax-timeline-event-connector{width:100%}.cax-timeline-bottom .cax-timeline-event{flex-direction:column-reverse}.cax-timeline-horizontal.cax-timeline-alternate .cax-timeline-event:nth-child(2n){flex-direction:column-reverse}.cax-timeline-event-marker{display:flex;justify-content:center;align-items:center;width:24px;height:24px;border-radius:50%}}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
100
65
  }
101
66
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: Timeline, decorators: [{
102
67
  type: Component,
103
- args: [{ selector: 'p-timeline', template: `
104
- <div
105
- [class]="styleClass"
106
- [ngStyle]="style"
107
- [ngClass]="{
108
- 'p-timeline p-component': true,
109
- 'p-timeline-left': align === 'left',
110
- 'p-timeline-right': align === 'right',
111
- 'p-timeline-top': align === 'top',
112
- 'p-timeline-bottom': align === 'bottom',
113
- 'p-timeline-alternate': align === 'alternate',
114
- 'p-timeline-vertical': layout === 'vertical',
115
- 'p-timeline-horizontal': layout === 'horizontal'
116
- }"
117
- [attr.data-pc-name]="'timeline'"
118
- [attr.data-pc-section]="'root'"
119
- >
120
- <div *ngFor="let event of value; let last = last" class="p-timeline-event" [attr.data-pc-section]="'event'">
121
- <div class="p-timeline-event-opposite" [attr.data-pc-section]="'opposite'">
122
- <ng-container *ngTemplateOutlet="oppositeTemplate; context: { $implicit: event }"></ng-container>
123
- </div>
124
- <div class="p-timeline-event-separator" [attr.data-pc-section]="'separator'">
125
- <ng-container *ngIf="markerTemplate; else marker">
126
- <ng-container *ngTemplateOutlet="markerTemplate; context: { $implicit: event }"></ng-container>
127
- </ng-container>
128
- <ng-template #marker>
129
- <div class="p-timeline-event-marker" [attr.data-pc-section]="'marker'"></div>
130
- </ng-template>
131
- <div *ngIf="!last" class="p-timeline-event-connector"></div>
132
- </div>
133
- <div class="p-timeline-event-content" [attr.data-pc-section]="'content'">
134
- <ng-container *ngTemplateOutlet="contentTemplate; context: { $implicit: event }"></ng-container>
135
- </div>
136
- </div>
137
- </div>
138
- `, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
68
+ args: [{ selector: 'cax-timeline', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
139
69
  class: 'cax-element'
140
- }, styles: ["@layer cax{.p-timeline{display:flex;flex-grow:1;flex-direction:column}.p-timeline-left .p-timeline-event-opposite{text-align:right}.p-timeline-left .p-timeline-event-content{text-align:left}.p-timeline-right .p-timeline-event{flex-direction:row-reverse}.p-timeline-right .p-timeline-event-opposite{text-align:left}.p-timeline-right .p-timeline-event-content{text-align:right}.p-timeline-vertical.p-timeline-alternate .p-timeline-event:nth-child(2n){flex-direction:row-reverse}.p-timeline-vertical.p-timeline-alternate .p-timeline-event:nth-child(odd) .p-timeline-event-opposite{text-align:right}.p-timeline-vertical.p-timeline-alternate .p-timeline-event:nth-child(odd) .p-timeline-event-content{text-align:left}.p-timeline-vertical.p-timeline-alternate .p-timeline-event:nth-child(2n) .p-timeline-event-opposite{text-align:left}.p-timeline-vertical.p-timeline-alternate .p-timeline-event:nth-child(2n) .p-timeline-event-content{text-align:right}.p-timeline-event{display:flex;position:relative;min-height:70px}.p-timeline-event:last-child{min-height:0}.p-timeline-event-opposite,.p-timeline-event-content{flex:1;padding:0 1rem;min-width:100px}.p-timeline-event-separator{flex:0;display:flex;align-items:center;flex-direction:column}.p-timeline-event-marker{display:flex;align-self:baseline}.p-timeline-event-connector{flex-grow:1}.p-timeline-horizontal{flex-direction:row}.p-timeline-horizontal .p-timeline-event{flex-direction:column;flex:1}.p-timeline-horizontal .p-timeline-event:last-child{flex:0}.p-timeline-horizontal .p-timeline-event-separator{flex-direction:row}.p-timeline-horizontal .p-timeline-event-connector{width:100%}.p-timeline-bottom .p-timeline-event{flex-direction:column-reverse}.p-timeline-horizontal.p-timeline-alternate .p-timeline-event:nth-child(2n){flex-direction:column-reverse}}\n"] }]
70
+ }, template: "<div\r\n [class]=\"styleClass\"\r\n [ngStyle]=\"style\"\r\n [ngClass]=\"{\r\n 'cax-timeline cax-component': true,\r\n 'cax-timeline-left': align === 'left',\r\n 'cax-timeline-right': align === 'right',\r\n 'cax-timeline-top': align === 'top',\r\n 'cax-timeline-bottom': align === 'bottom',\r\n 'cax-timeline-alternate': align === 'alternate',\r\n 'cax-timeline-vertical': layout === 'vertical',\r\n 'cax-timeline-horizontal': layout === 'horizontal'\r\n }\"\r\n [attr.data-pc-name]=\"'timeline'\"\r\n [attr.data-pc-section]=\"'root'\"\r\n>\r\n <div *ngFor=\"let event of value; let last = last; let i = index\" class=\"cax-timeline-event\" [attr.data-pc-section]=\"'event'\">\r\n <div class=\"cax-timeline-event-opposite\" [attr.data-pc-section]=\"'opposite'\">\r\n <ng-container *ngTemplateOutlet=\"oppositeTemplate; context: { $implicit: event }\"></ng-container>\r\n </div>\r\n <div class=\"cax-timeline-event-separator\" [attr.data-pc-section]=\"'separator'\">\r\n <ng-container *ngIf=\"markerTemplate; else marker\">\r\n <ng-container *ngTemplateOutlet=\"markerTemplate; context: { $implicit: event, index: i }\"></ng-container>\r\n </ng-container>\r\n <ng-template #marker>\r\n <div class=\"cax-timeline-event-marker\" [attr.data-pc-section]=\"'marker'\">\r\n {{ i + 1 }}\r\n </div>\r\n </ng-template>\r\n <div *ngIf=\"!last\" class=\"cax-timeline-event-connector\"></div>\r\n </div>\r\n <div class=\"cax-timeline-event-content\" [attr.data-pc-section]=\"'content'\">\r\n <ng-container *ngTemplateOutlet=\"contentTemplate; context: { $implicit: event }\"></ng-container>\r\n </div>\r\n </div>\r\n</div>", styles: ["@layer cax{.cax-timeline{display:flex;flex-grow:1;flex-direction:column}.cax-timeline-left .cax-timeline-event-opposite{text-align:right}.cax-timeline-left .cax-timeline-event-content{text-align:left}.cax-timeline-right .cax-timeline-event{flex-direction:row-reverse}.cax-timeline-right .cax-timeline-event-opposite{text-align:left}.cax-timeline-right .cax-timeline-event-content{text-align:right}.cax-timeline-vertical.cax-timeline-alternate .cax-timeline-event:nth-child(2n){flex-direction:row-reverse!important}.cax-timeline-vertical.cax-timeline-alternate .cax-timeline-event:nth-child(odd) .cax-timeline-event-opposite{text-align:right}.cax-timeline-vertical.cax-timeline-alternate .cax-timeline-event:nth-child(odd) .cax-timeline-event-content{text-align:left}.cax-timeline-vertical.cax-timeline-alternate .cax-timeline-event:nth-child(2n) .cax-timeline-event-opposite{text-align:left}.cax-timeline-vertical.cax-timeline-alternate .cax-timeline-event:nth-child(2n) .cax-timeline-event-content{text-align:right}.cax-timeline-event{display:flex;position:relative;min-height:70px}.cax-timeline-event:last-child{min-height:0}.cax-timeline-event-opposite{flex:1;padding:0 1rem;min-width:100px}.cax-timeline-event-content{flex:1;padding:0 1rem;min-width:100px;border-radius:8px}.cax-timeline-event-separator{flex:0;display:flex;align-items:center;flex-direction:column}.cax-timeline-event-marker{display:flex;align-self:baseline}.cax-timeline-event-connector{flex-grow:1}.cax-timeline-horizontal{flex-direction:row}.cax-timeline-horizontal.cax-timeline-bottom{align-items:end!important}.cax-timeline-horizontal.cax-timeline-top{align-items:start!important}.cax-timeline-horizontal .cax-timeline-event{flex-direction:column;flex:1}.cax-timeline-horizontal .cax-timeline-event:last-child{flex:0}.cax-timeline-horizontal .cax-timeline-event-separator{flex-direction:row}.cax-timeline-horizontal .cax-timeline-event-connector{width:100%}.cax-timeline-bottom .cax-timeline-event{flex-direction:column-reverse}.cax-timeline-horizontal.cax-timeline-alternate .cax-timeline-event:nth-child(2n){flex-direction:column-reverse}.cax-timeline-event-marker{display:flex;justify-content:center;align-items:center;width:24px;height:24px;border-radius:50%}}\n"] }]
141
71
  }], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { value: [{
142
72
  type: Input
143
73
  }], style: [{
@@ -152,6 +82,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImpor
152
82
  type: ContentChildren,
153
83
  args: [CaxTemplate]
154
84
  }] } });
85
+
155
86
  class TimelineModule {
156
87
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TimelineModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
157
88
  static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.9", ngImport: i0, type: TimelineModule, declarations: [Timeline], imports: [CommonModule], exports: [Timeline, SharedModule] });
@@ -1 +1 @@
1
- {"version":3,"file":"cax-design-system-timeline.mjs","sources":["../../src/app/components/timeline/timeline.ts","../../src/app/components/timeline/cax-design-system-timeline.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { AfterContentInit, ChangeDetectionStrategy, Component, ContentChildren, ElementRef, Input, NgModule, QueryList, TemplateRef, ViewEncapsulation } from '@angular/core';\nimport { BlockableUI, CaxTemplate, SharedModule } from 'cax-design-system/api';\nimport { Nullable } from 'cax-design-system/ts-helpers';\n/**\n * Timeline visualizes a series of chained events.\n * @group Components\n */\n@Component({\n selector: 'p-timeline',\n template: `\n <div\n [class]=\"styleClass\"\n [ngStyle]=\"style\"\n [ngClass]=\"{\n 'p-timeline p-component': true,\n 'p-timeline-left': align === 'left',\n 'p-timeline-right': align === 'right',\n 'p-timeline-top': align === 'top',\n 'p-timeline-bottom': align === 'bottom',\n 'p-timeline-alternate': align === 'alternate',\n 'p-timeline-vertical': layout === 'vertical',\n 'p-timeline-horizontal': layout === 'horizontal'\n }\"\n [attr.data-pc-name]=\"'timeline'\"\n [attr.data-pc-section]=\"'root'\"\n >\n <div *ngFor=\"let event of value; let last = last\" class=\"p-timeline-event\" [attr.data-pc-section]=\"'event'\">\n <div class=\"p-timeline-event-opposite\" [attr.data-pc-section]=\"'opposite'\">\n <ng-container *ngTemplateOutlet=\"oppositeTemplate; context: { $implicit: event }\"></ng-container>\n </div>\n <div class=\"p-timeline-event-separator\" [attr.data-pc-section]=\"'separator'\">\n <ng-container *ngIf=\"markerTemplate; else marker\">\n <ng-container *ngTemplateOutlet=\"markerTemplate; context: { $implicit: event }\"></ng-container>\n </ng-container>\n <ng-template #marker>\n <div class=\"p-timeline-event-marker\" [attr.data-pc-section]=\"'marker'\"></div>\n </ng-template>\n <div *ngIf=\"!last\" class=\"p-timeline-event-connector\"></div>\n </div>\n <div class=\"p-timeline-event-content\" [attr.data-pc-section]=\"'content'\">\n <ng-container *ngTemplateOutlet=\"contentTemplate; context: { $implicit: event }\"></ng-container>\n </div>\n </div>\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['./timeline.css'],\n host: {\n class: 'cax-element'\n }\n})\nexport class Timeline implements AfterContentInit, BlockableUI {\n /**\n * An array of events to display.\n * @group Props\n */\n @Input() value: any[] | undefined;\n /**\n * Inline style of the component.\n * @group Props\n */\n @Input() style: { [klass: string]: any } | null | undefined;\n /**\n * Style class of the component.\n * @group Props\n */\n @Input() styleClass: string | undefined;\n /**\n * Position of the timeline bar relative to the content. Valid values are \"left\", \"right\" for vertical layout and \"top\", \"bottom\" for horizontal layout.\n * @group Props\n */\n @Input() align: string = 'left';\n /**\n * Orientation of the timeline.\n * @group Props\n */\n @Input() layout: 'vertical' | 'horizontal' = 'vertical';\n\n @ContentChildren(CaxTemplate) templates: Nullable<QueryList<any>>;\n\n contentTemplate: Nullable<TemplateRef<any>>;\n\n oppositeTemplate: Nullable<TemplateRef<any>>;\n\n markerTemplate: Nullable<TemplateRef<any>>;\n\n constructor(private el: ElementRef) {}\n\n getBlockableElement(): HTMLElement {\n return this.el.nativeElement.children[0];\n }\n\n ngAfterContentInit() {\n (this.templates as QueryList<CaxTemplate>).forEach((item) => {\n switch (item.getType()) {\n case 'content':\n this.contentTemplate = item.template;\n break;\n\n case 'opposite':\n this.oppositeTemplate = item.template;\n break;\n\n case 'marker':\n this.markerTemplate = item.template;\n break;\n }\n });\n }\n}\n\n@NgModule({\n imports: [CommonModule],\n exports: [Timeline, SharedModule],\n declarations: [Timeline]\n})\nexport class TimelineModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;AAIA;;;AAGG;MA8CU,QAAQ,CAAA;AAmCG,IAAA,EAAA,CAAA;AAlCpB;;;AAGG;AACM,IAAA,KAAK,CAAoB;AAClC;;;AAGG;AACM,IAAA,KAAK,CAA8C;AAC5D;;;AAGG;AACM,IAAA,UAAU,CAAqB;AACxC;;;AAGG;IACM,KAAK,GAAW,MAAM,CAAC;AAChC;;;AAGG;IACM,MAAM,GAA8B,UAAU,CAAC;AAE1B,IAAA,SAAS,CAA2B;AAElE,IAAA,eAAe,CAA6B;AAE5C,IAAA,gBAAgB,CAA6B;AAE7C,IAAA,cAAc,CAA6B;AAE3C,IAAA,WAAA,CAAoB,EAAc,EAAA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vB,qBAAA,EAAA,MAAA,EAAA,CAAA,oxDAAA,CAAA,EAAA,CAAA;+EAOQ,KAAK,EAAA,CAAA;sBAAb,KAAK;gBAKG,KAAK,EAAA,CAAA;sBAAb,KAAK;gBAKG,UAAU,EAAA,CAAA;sBAAlB,KAAK;gBAKG,KAAK,EAAA,CAAA;sBAAb,KAAK;gBAKG,MAAM,EAAA,CAAA;sBAAd,KAAK;gBAEwB,SAAS,EAAA,CAAA;sBAAtC,eAAe;uBAAC,WAAW,CAAA;;MAsCnB,cAAc,CAAA;uGAAd,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAd,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,iBAjEd,QAAQ,CAAA,EAAA,OAAA,EAAA,CA6DP,YAAY,CA7Db,EAAA,OAAA,EAAA,CAAA,QAAQ,EA8DG,YAAY,CAAA,EAAA,CAAA,CAAA;wGAGvB,cAAc,EAAA,OAAA,EAAA,CAJb,YAAY,EACF,YAAY,CAAA,EAAA,CAAA,CAAA;;2FAGvB,cAAc,EAAA,UAAA,EAAA,CAAA;kBAL1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,OAAO,EAAE,CAAC,YAAY,CAAC;AACvB,oBAAA,OAAO,EAAE,CAAC,QAAQ,EAAE,YAAY,CAAC;oBACjC,YAAY,EAAE,CAAC,QAAQ,CAAC;AAC3B,iBAAA,CAAA;;;ACrHD;;AAEG;;;;"}
1
+ {"version":3,"file":"cax-design-system-timeline.mjs","sources":["../../src/app/components/timeline/timeline.ts","../../src/app/components/timeline/timeline.html","../../src/app/components/timeline/timeline.module.ts","../../src/app/components/timeline/cax-design-system-timeline.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { AfterContentInit, ChangeDetectionStrategy, Component, ContentChildren, ElementRef, Input, NgModule, QueryList, TemplateRef, ViewEncapsulation } from '@angular/core';\nimport { BlockableUI, CaxTemplate, SharedModule } from 'cax-design-system/api';\nimport { Nullable } from 'cax-design-system/ts-helpers';\n/**\n * Timeline visualizes a series of chained events.\n * @group Components\n */\n@Component({\n selector: 'cax-timeline',\n templateUrl: `./timeline.html`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['./timeline.scss'],\n host: {\n class: 'cax-element'\n }\n})\nexport class Timeline implements AfterContentInit, BlockableUI {\n /**\n * An array of events to display.\n * @group Props\n */\n @Input() value: any[] | undefined;\n /**\n * Inline style of the component.\n * @group Props\n */\n @Input() style: { [klass: string]: any } | null | undefined;\n /**\n * Style class of the component.\n * @group Props\n */\n @Input() styleClass: string | undefined;\n /**\n * Position of the timeline bar relative to the content. Valid values are \"left\", \"right\" for vertical layout and \"top\", \"bottom\" for horizontal layout.\n * @group Props\n */\n @Input() align: string = 'left';\n /**\n * Orientation of the timeline.\n * @group Props\n */\n @Input() layout: 'vertical' | 'horizontal' = 'vertical';\n\n @ContentChildren(CaxTemplate) templates: Nullable<QueryList<any>>;\n\n contentTemplate: Nullable<TemplateRef<any>>;\n\n oppositeTemplate: Nullable<TemplateRef<any>>;\n\n markerTemplate: Nullable<TemplateRef<any>>;\n\n constructor(private el: ElementRef) {}\n\n getBlockableElement(): HTMLElement {\n return this.el.nativeElement.children[0];\n }\n\n ngAfterContentInit() {\n (this.templates as QueryList<CaxTemplate>).forEach((item) => {\n switch (item.getType()) {\n case 'content':\n this.contentTemplate = item.template;\n break;\n\n case 'opposite':\n this.oppositeTemplate = item.template;\n break;\n\n case 'marker':\n this.markerTemplate = item.template;\n break;\n }\n });\n }\n}\n","<div\r\n [class]=\"styleClass\"\r\n [ngStyle]=\"style\"\r\n [ngClass]=\"{\r\n 'cax-timeline cax-component': true,\r\n 'cax-timeline-left': align === 'left',\r\n 'cax-timeline-right': align === 'right',\r\n 'cax-timeline-top': align === 'top',\r\n 'cax-timeline-bottom': align === 'bottom',\r\n 'cax-timeline-alternate': align === 'alternate',\r\n 'cax-timeline-vertical': layout === 'vertical',\r\n 'cax-timeline-horizontal': layout === 'horizontal'\r\n }\"\r\n [attr.data-pc-name]=\"'timeline'\"\r\n [attr.data-pc-section]=\"'root'\"\r\n>\r\n <div *ngFor=\"let event of value; let last = last; let i = index\" class=\"cax-timeline-event\" [attr.data-pc-section]=\"'event'\">\r\n <div class=\"cax-timeline-event-opposite\" [attr.data-pc-section]=\"'opposite'\">\r\n <ng-container *ngTemplateOutlet=\"oppositeTemplate; context: { $implicit: event }\"></ng-container>\r\n </div>\r\n <div class=\"cax-timeline-event-separator\" [attr.data-pc-section]=\"'separator'\">\r\n <ng-container *ngIf=\"markerTemplate; else marker\">\r\n <ng-container *ngTemplateOutlet=\"markerTemplate; context: { $implicit: event, index: i }\"></ng-container>\r\n </ng-container>\r\n <ng-template #marker>\r\n <div class=\"cax-timeline-event-marker\" [attr.data-pc-section]=\"'marker'\">\r\n {{ i + 1 }}\r\n </div>\r\n </ng-template>\r\n <div *ngIf=\"!last\" class=\"cax-timeline-event-connector\"></div>\r\n </div>\r\n <div class=\"cax-timeline-event-content\" [attr.data-pc-section]=\"'content'\">\r\n <ng-container *ngTemplateOutlet=\"contentTemplate; context: { $implicit: event }\"></ng-container>\r\n </div>\r\n </div>\r\n</div>","import { CommonModule } from '@angular/common';\nimport { SharedModule } from 'cax-design-system/api';\nimport { NgModule } from '@angular/core';\nimport { Timeline } from './timeline';\n\n@NgModule({\n imports: [CommonModule],\n exports: [Timeline, SharedModule],\n declarations: [Timeline]\n})\nexport class TimelineModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;AAIA;;;AAGG;MAWU,QAAQ,CAAA;AAmCG,IAAA,EAAA,CAAA;AAlCpB;;;AAGG;AACM,IAA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Component {
17
17
  this.onChange.emit(this.checked);
18
18
  }
19
19
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: ToggleSwitchComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
20
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.9", type: ToggleSwitchComponent, selector: "cax-toggleswitch", inputs: { size: "size", checked: "checked", disabled: "disabled", iconClass: "iconClass", label: "label", events: "events" }, outputs: { onChange: "onChange" }, ngImport: i0, template: "<div\r\n class=\"cax-toggleswitch-container\"\r\n [ngClass]=\"{\r\n 'cax-toggleswitch-container-disabled': disabled,\r\n 'cax-toggleswitch-size-sm': size === 'sm',\r\n 'cax-toggleswitch-size-md': size === 'md',\r\n 'cax-toggleswitch-size-lg': size === 'lg'\r\n }\"\r\n>\r\n <span class=\"cax-toggle-label\" *ngIf=\"label\">{{ label }}</span>\r\n <label\r\n class=\"cax-toggleswitchmaindiv\"\r\n [ngClass]=\"{ 'cax-toggleswitchmaindiv-disabled': disabled }\"\r\n >\r\n <input\r\n type=\"checkbox\"\r\n [checked]=\"checked\"\r\n [disabled]=\"disabled\"\r\n (change)=\"toggleChecked($event)\"\r\n class=\"cax-toggleswitch\"\r\n />\r\n <div class=\"cax-toggleswitch-track\"></div>\r\n <div\r\n class=\"cax-toggle-thumb\"\r\n [ngClass]=\"{\r\n 'cax-toggle-thumb-checked': checked\r\n }\"\r\n >\r\n <ng-container *ngIf=\"checked\">\r\n <svg\r\n width=\"11\"\r\n height=\"7\"\r\n viewBox=\"0 0 11 8\"\r\n fill=\"none\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n class=\"cax-toggle-icon-active\"\r\n >\r\n <path\r\n d=\"M10.0915 0.951972L10.0867 0.946075L10.0813 0.940568C9.90076 0.753564 9.61034 0.753146 9.42927 0.939309L4.16201 6.22962L1.58507 3.63469C1.40401 3.44841 1.11351 3.44879 0.932892 3.63584C0.755703 3.81933 0.755703 4.10875 0.932892 4.29224L0.932878 4.29225L0.934851 4.29424L3.58046 6.95832C3.73676 7.11955 3.94983 7.2 4.1473 7.2C4.36196 7.2 4.55963 7.11773 4.71406 6.9584L10.0468 1.60234C10.2436 1.4199 10.2421 1.1339 10.0915 0.951972ZM4.2327 6.30081L4.2317 6.2998C4.23206 6.30015 4.23237 6.30049 4.23269 6.30082L4.2327 6.30081Z\"\r\n fill=\"#1644e7\"\r\n stroke=\"#1644e7\"\r\n stroke-width=\"0.4\"\r\n />\r\n </svg>\r\n </ng-container>\r\n </div>\r\n </label>\r\n</div>\r\n", styles: ["@layer cax{.cax-toggleswitch-container{display:flex;align-items:center;gap:.5rem}.cax-toggleswitch-container-disabled{opacity:.6;pointer-events:none}.cax-toggleswitchmaindiv{display:inline-flex;align-items:center;position:relative}.cax-toggleswitchmaindiv-disabled{opacity:.6}.cax-toggleswitch{display:none}.cax-toggle-icon-active{display:flex}}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
20
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.9", type: ToggleSwitchComponent, selector: "cax-toggleswitch", inputs: { size: "size", checked: "checked", disabled: "disabled", iconClass: "iconClass", label: "label", events: "events" }, outputs: { onChange: "onChange" }, ngImport: i0, template: "<div\r\n class=\"cax-toggleswitch-container\"\r\n [ngClass]=\"{\r\n 'cax-toggleswitch-container-disabled': disabled,\r\n 'cax-toggleswitch-size-sm': size === 'sm',\r\n 'cax-toggleswitch-size-md': size === 'md',\r\n 'cax-toggleswitch-size-lg': size === 'lg'\r\n }\"\r\n>\r\n <span class=\"cax-toggle-label\" *ngIf=\"label\">{{ label }}</span>\r\n <label class=\"cax-toggleswitchmaindiv\" [ngClass]=\"{ 'cax-toggleswitchmaindiv-disabled': disabled }\">\r\n <input type=\"checkbox\" [checked]=\"checked\" [disabled]=\"disabled\" (change)=\"toggleChecked($event)\" class=\"cax-toggleswitch\" />\r\n <div class=\"cax-toggleswitch-track\"></div>\r\n <div\r\n class=\"cax-toggle-thumb\"\r\n [ngClass]=\"{\r\n 'cax-toggle-thumb-checked': checked\r\n }\"\r\n >\r\n <ng-container *ngIf=\"checked\">\r\n <svg width=\"11\" height=\"7\" viewBox=\"0 0 11 8\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" class=\"cax-toggle-icon-active\">\r\n <path\r\n d=\"M10.0915 0.951972L10.0867 0.946075L10.0813 0.940568C9.90076 0.753564 9.61034 0.753146 9.42927 0.939309L4.16201 6.22962L1.58507 3.63469C1.40401 3.44841 1.11351 3.44879 0.932892 3.63584C0.755703 3.81933 0.755703 4.10875 0.932892 4.29224L0.932878 4.29225L0.934851 4.29424L3.58046 6.95832C3.73676 7.11955 3.94983 7.2 4.1473 7.2C4.36196 7.2 4.55963 7.11773 4.71406 6.9584L10.0468 1.60234C10.2436 1.4199 10.2421 1.1339 10.0915 0.951972ZM4.2327 6.30081L4.2317 6.2998C4.23206 6.30015 4.23237 6.30049 4.23269 6.30082L4.2327 6.30081Z\"\r\n fill=\"var(--primary-500)\"\r\n stroke=\"var(--primary-500)\"\r\n stroke-width=\"0.4\"\r\n />\r\n </svg>\r\n </ng-container>\r\n </div>\r\n </label>\r\n</div>\r\n", styles: ["@layer cax{.cax-toggleswitch-container{display:flex;align-items:center;gap:.5rem}.cax-toggleswitch-container-disabled{opacity:.6;pointer-events:none}.cax-toggleswitchmaindiv{display:inline-flex;align-items:center;position:relative;cursor:pointer}.cax-toggleswitchmaindiv:hover,.cax-toggleswitchmaindiv:has(.cax-toggle-thumb:hover),.cax-toggleswitchmaindiv:has(.cax-toggleswitch-track:hover){opacity:.9}.cax-toggleswitchmaindiv-disabled{opacity:.6}.cax-toggleswitch{display:none}.cax-toggle-icon-active{display:flex}}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
21
21
  }
22
22
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: ToggleSwitchComponent, decorators: [{
23
23
  type: Component,
24
- args: [{ selector: 'cax-toggleswitch', template: "<div\r\n class=\"cax-toggleswitch-container\"\r\n [ngClass]=\"{\r\n 'cax-toggleswitch-container-disabled': disabled,\r\n 'cax-toggleswitch-size-sm': size === 'sm',\r\n 'cax-toggleswitch-size-md': size === 'md',\r\n 'cax-toggleswitch-size-lg': size === 'lg'\r\n }\"\r\n>\r\n <span class=\"cax-toggle-label\" *ngIf=\"label\">{{ label }}</span>\r\n <label\r\n class=\"cax-toggleswitchmaindiv\"\r\n [ngClass]=\"{ 'cax-toggleswitchmaindiv-disabled': disabled }\"\r\n >\r\n <input\r\n type=\"checkbox\"\r\n [checked]=\"checked\"\r\n [disabled]=\"disabled\"\r\n (change)=\"toggleChecked($event)\"\r\n class=\"cax-toggleswitch\"\r\n />\r\n <div class=\"cax-toggleswitch-track\"></div>\r\n <div\r\n class=\"cax-toggle-thumb\"\r\n [ngClass]=\"{\r\n 'cax-toggle-thumb-checked': checked\r\n }\"\r\n >\r\n <ng-container *ngIf=\"checked\">\r\n <svg\r\n width=\"11\"\r\n height=\"7\"\r\n viewBox=\"0 0 11 8\"\r\n fill=\"none\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n class=\"cax-toggle-icon-active\"\r\n >\r\n <path\r\n d=\"M10.0915 0.951972L10.0867 0.946075L10.0813 0.940568C9.90076 0.753564 9.61034 0.753146 9.42927 0.939309L4.16201 6.22962L1.58507 3.63469C1.40401 3.44841 1.11351 3.44879 0.932892 3.63584C0.755703 3.81933 0.755703 4.10875 0.932892 4.29224L0.932878 4.29225L0.934851 4.29424L3.58046 6.95832C3.73676 7.11955 3.94983 7.2 4.1473 7.2C4.36196 7.2 4.55963 7.11773 4.71406 6.9584L10.0468 1.60234C10.2436 1.4199 10.2421 1.1339 10.0915 0.951972ZM4.2327 6.30081L4.2317 6.2998C4.23206 6.30015 4.23237 6.30049 4.23269 6.30082L4.2327 6.30081Z\"\r\n fill=\"#1644e7\"\r\n stroke=\"#1644e7\"\r\n stroke-width=\"0.4\"\r\n />\r\n </svg>\r\n </ng-container>\r\n </div>\r\n </label>\r\n</div>\r\n", styles: ["@layer cax{.cax-toggleswitch-container{display:flex;align-items:center;gap:.5rem}.cax-toggleswitch-container-disabled{opacity:.6;pointer-events:none}.cax-toggleswitchmaindiv{display:inline-flex;align-items:center;position:relative}.cax-toggleswitchmaindiv-disabled{opacity:.6}.cax-toggleswitch{display:none}.cax-toggle-icon-active{display:flex}}\n"] }]
24
+ args: [{ selector: 'cax-toggleswitch', template: "<div\r\n class=\"cax-toggleswitch-container\"\r\n [ngClass]=\"{\r\n 'cax-toggleswitch-container-disabled': disabled,\r\n 'cax-toggleswitch-size-sm': size === 'sm',\r\n 'cax-toggleswitch-size-md': size === 'md',\r\n 'cax-toggleswitch-size-lg': size === 'lg'\r\n }\"\r\n>\r\n <span class=\"cax-toggle-label\" *ngIf=\"label\">{{ label }}</span>\r\n <label class=\"cax-toggleswitchmaindiv\" [ngClass]=\"{ 'cax-toggleswitchmaindiv-disabled': disabled }\">\r\n <input type=\"checkbox\" [checked]=\"checked\" [disabled]=\"disabled\" (change)=\"toggleChecked($event)\" class=\"cax-toggleswitch\" />\r\n <div class=\"cax-toggleswitch-track\"></div>\r\n <div\r\n class=\"cax-toggle-thumb\"\r\n [ngClass]=\"{\r\n 'cax-toggle-thumb-checked': checked\r\n }\"\r\n >\r\n <ng-container *ngIf=\"checked\">\r\n <svg width=\"11\" height=\"7\" viewBox=\"0 0 11 8\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" class=\"cax-toggle-icon-active\">\r\n <path\r\n d=\"M10.0915 0.951972L10.0867 0.946075L10.0813 0.940568C9.90076 0.753564 9.61034 0.753146 9.42927 0.939309L4.16201 6.22962L1.58507 3.63469C1.40401 3.44841 1.11351 3.44879 0.932892 3.63584C0.755703 3.81933 0.755703 4.10875 0.932892 4.29224L0.932878 4.29225L0.934851 4.29424L3.58046 6.95832C3.73676 7.11955 3.94983 7.2 4.1473 7.2C4.36196 7.2 4.55963 7.11773 4.71406 6.9584L10.0468 1.60234C10.2436 1.4199 10.2421 1.1339 10.0915 0.951972ZM4.2327 6.30081L4.2317 6.2998C4.23206 6.30015 4.23237 6.30049 4.23269 6.30082L4.2327 6.30081Z\"\r\n fill=\"var(--primary-500)\"\r\n stroke=\"var(--primary-500)\"\r\n stroke-width=\"0.4\"\r\n />\r\n </svg>\r\n </ng-container>\r\n </div>\r\n </label>\r\n</div>\r\n", styles: ["@layer cax{.cax-toggleswitch-container{display:flex;align-items:center;gap:.5rem}.cax-toggleswitch-container-disabled{opacity:.6;pointer-events:none}.cax-toggleswitchmaindiv{display:inline-flex;align-items:center;position:relative;cursor:pointer}.cax-toggleswitchmaindiv:hover,.cax-toggleswitchmaindiv:has(.cax-toggle-thumb:hover),.cax-toggleswitchmaindiv:has(.cax-toggleswitch-track:hover){opacity:.9}.cax-toggleswitchmaindiv-disabled{opacity:.6}.cax-toggleswitch{display:none}.cax-toggle-icon-active{display:flex}}\n"] }]
25
25
  }], propDecorators: { size: [{
26
26
  type: Input
27
27
  }], checked: [{
@@ -1 +1 @@
1
- {"version":3,"file":"cax-design-system-toggleswitch.mjs","sources":["../../src/app/components/toggleswitch/toggleswitch.ts","../../src/app/components/toggleswitch/toggleswitch.html","../../src/app/components/toggleswitch/toggleswitch.module.ts","../../src/app/components/toggleswitch/cax-design-system-toggleswitch.ts"],"sourcesContent":["import { Component, Input, Output, EventEmitter } from '@angular/core';\n\n@Component({\n selector: 'cax-toggleswitch',\n templateUrl: './toggleswitch.html',\n styleUrls: ['./toggleswitch.scss']\n})\nexport class ToggleSwitchComponent {\n @Input() size: 'sm' | 'md' | 'lg' = 'md';\n @Input() checked = false;\n @Input() disabled = false;\n @Input() iconClass: string = 'cax cax-check';\n @Output() onChange = new EventEmitter<boolean>();\n @Input() label: string | undefined;\n @Input() events: {};\n\n toggleChecked(event: Event) {\n this.checked = (event.target as HTMLInputElement).checked;\n this.onChange.emit(this.checked);\n }\n}\n","<div\r\n class=\"cax-toggleswitch-container\"\r\n [ngClass]=\"{\r\n 'cax-toggleswitch-container-disabled': disabled,\r\n 'cax-toggleswitch-size-sm': size === 'sm',\r\n 'cax-toggleswitch-size-md': size === 'md',\r\n 'cax-toggleswitch-size-lg': size === 'lg'\r\n }\"\r\n>\r\n <span class=\"cax-toggle-label\" *ngIf=\"label\">{{ label }}</span>\r\n <label\r\n class=\"cax-toggleswitchmaindiv\"\r\n [ngClass]=\"{ 'cax-toggleswitchmaindiv-disabled': disabled }\"\r\n >\r\n <input\r\n type=\"checkbox\"\r\n [checked]=\"checked\"\r\n [disabled]=\"disabled\"\r\n (change)=\"toggleChecked($event)\"\r\n class=\"cax-toggleswitch\"\r\n />\r\n <div class=\"cax-toggleswitch-track\"></div>\r\n <div\r\n class=\"cax-toggle-thumb\"\r\n [ngClass]=\"{\r\n 'cax-toggle-thumb-checked': checked\r\n }\"\r\n >\r\n <ng-container *ngIf=\"checked\">\r\n <svg\r\n width=\"11\"\r\n height=\"7\"\r\n viewBox=\"0 0 11 8\"\r\n fill=\"none\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n class=\"cax-toggle-icon-active\"\r\n >\r\n <path\r\n d=\"M10.0915 0.951972L10.0867 0.946075L10.0813 0.940568C9.90076 0.753564 9.61034 0.753146 9.42927 0.939309L4.16201 6.22962L1.58507 3.63469C1.40401 3.44841 1.11351 3.44879 0.932892 3.63584C0.755703 3.81933 0.755703 4.10875 0.932892 4.29224L0.932878 4.29225L0.934851 4.29424L3.58046 6.95832C3.73676 7.11955 3.94983 7.2 4.1473 7.2C4.36196 7.2 4.55963 7.11773 4.71406 6.9584L10.0468 1.60234C10.2436 1.4199 10.2421 1.1339 10.0915 0.951972ZM4.2327 6.30081L4.2317 6.2998C4.23206 6.30015 4.23237 6.30049 4.23269 6.30082L4.2327 6.30081Z\"\r\n fill=\"#1644e7\"\r\n stroke=\"#1644e7\"\r\n stroke-width=\"0.4\"\r\n />\r\n </svg>\r\n </ng-container>\r\n </div>\r\n </label>\r\n</div>\r\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\nimport { ToggleSwitchComponent } from './toggleswitch';\n\n@NgModule({\n declarations: [ToggleSwitchComponent],\n imports: [CommonModule, FormsModule],\n exports: [ToggleSwitchComponent]\n})\nexport class ToggleSwitchModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;MAOa,qBAAqB,CAAA;IACrB,IAAI,GAAuB,IAAI,CAAC;IAChC,OAAO,GAAG,KAAK,CAAC;IAChB,QAAQ,GAAG,KAAK,CAAC;IACjB,SAAS,GAAW,eAAe,CAAC;AACnC,IAAA,QAAQ,GAAG,IAAI,YAAY,EAAW,CAAC;AACxC,IAAA,KAAK,CAAqB;AAC1B,IAAA,MAAM,CAAK;AAEpB,IAAA,aAAa,CAAC,KAAY,EAAA;QACtB,IAAI,CAAC,OAAO,GAAI,KAAK,CAAC,MAA2B,CAAC,OAAO,CAAC;QAC1D,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;KACpC;uGAZQ,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAArB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,qBAAqB,yNCPlC,m4DAgDA,EAAA,MAAA,EAAA,CAAA,6VAAA,CAAA,EA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2FAG1B,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAL9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,YAAY,EAAE,CAAC,qBAAqB,CAAC;AACrC,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,WAAW,CAAC;oBACpC,OAAO,EAAE,CAAC,qBAAqB,CAAC;AACnC,iBAAA,CAAA;;;ACTD;;AAEG;;;;"}
1
+ {"version":3,"file":"cax-design-system-toggleswitch.mjs","sources":["../../src/app/components/toggleswitch/toggleswitch.ts","../../src/app/components/toggleswitch/toggleswitch.html","../../src/app/components/toggleswitch/toggleswitch.module.ts","../../src/app/components/toggleswitch/cax-design-system-toggleswitch.ts"],"sourcesContent":["import { Component, Input, Output, EventEmitter } from '@angular/core';\n\n@Component({\n selector: 'cax-toggleswitch',\n templateUrl: './toggleswitch.html',\n styleUrls: ['./toggleswitch.scss']\n})\nexport class ToggleSwitchComponent {\n @Input() size: 'sm' | 'md' | 'lg' = 'md';\n @Input() checked = false;\n @Input() disabled = false;\n @Input() iconClass: string = 'cax cax-check';\n @Output() onChange = new EventEmitter<boolean>();\n @Input() label: string | undefined;\n @Input() events: {};\n\n toggleChecked(event: Event) {\n this.checked = (event.target as HTMLInputElement).checked;\n this.onChange.emit(this.checked);\n }\n}\n","<div\r\n class=\"cax-toggleswitch-container\"\r\n [ngClass]=\"{\r\n 'cax-toggleswitch-container-disabled': disabled,\r\n 'cax-toggleswitch-size-sm': size === 'sm',\r\n 'cax-toggleswitch-size-md': size === 'md',\r\n 'cax-toggleswitch-size-lg': size === 'lg'\r\n }\"\r\n>\r\n <span class=\"cax-toggle-label\" *ngIf=\"label\">{{ label }}</span>\r\n <label class=\"cax-toggleswitchmaindiv\" [ngClass]=\"{ 'cax-toggleswitchmaindiv-disabled': disabled }\">\r\n <input type=\"checkbox\" [checked]=\"checked\" [disabled]=\"disabled\" (change)=\"toggleChecked($event)\" class=\"cax-toggleswitch\" />\r\n <div class=\"cax-toggleswitch-track\"></div>\r\n <div\r\n class=\"cax-toggle-thumb\"\r\n [ngClass]=\"{\r\n 'cax-toggle-thumb-checked': checked\r\n }\"\r\n >\r\n <ng-container *ngIf=\"checked\">\r\n <svg width=\"11\" height=\"7\" viewBox=\"0 0 11 8\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" class=\"cax-toggle-icon-active\">\r\n <path\r\n d=\"M10.0915 0.951972L10.0867 0.946075L10.0813 0.940568C9.90076 0.753564 9.61034 0.753146 9.42927 0.939309L4.16201 6.22962L1.58507 3.63469C1.40401 3.44841 1.11351 3.44879 0.932892 3.63584C0.755703 3.81933 0.755703 4.10875 0.932892 4.29224L0.932878 4.29225L0.934851 4.29424L3.58046 6.95832C3.73676 7.11955 3.94983 7.2 4.1473 7.2C4.36196 7.2 4.55963 7.11773 4.71406 6.9584L10.0468 1.60234C10.2436 1.4199 10.2421 1.1339 10.0915 0.951972ZM4.2327 6.30081L4.2317 6.2998C4.23206 6.30015 4.23237 6.30049 4.23269 6.30082L4.2327 6.30081Z\"\r\n fill=\"var(--primary-500)\"\r\n stroke=\"var(--primary-500)\"\r\n stroke-width=\"0.4\"\r\n />\r\n </svg>\r\n </ng-container>\r\n </div>\r\n </label>\r\n</div>\r\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\nimport { ToggleSwitchComponent } from './toggleswitch';\n\n@NgModule({\n declarations: [ToggleSwitchComponent],\n imports: [CommonModule, FormsModule],\n exports: [ToggleSwitchComponent]\n})\nexport class ToggleSwitchModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;MAOa,qBAAqB,CAAA;IACrB,IAAI,GAAuB,IAAI,CAAC;IAChC,OAAO,GAAG,KAAK,CAAC;IAChB,QAAQ,GAAG,KAAK,CAAC;IACjB,SAAS,GAAW,eAAe,CAAC;AACnC,IAAA,QAAQ,GAAG,IAAI,YAAY,EAAW,CAAC;AACxC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A;sBAAb,KAAK;gBACG,MAAM,EAAA,CAAA;sBAAd,KAAK;;;MEJG,kBAAkB,CAAA;uGAAlB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAlB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,iBAJZ,qBAAqB,CAAA,EAAA,OAAA,EAAA,CAC1B,YAAY,EAAE,WAAW,aACzB,qBAAqB,CAAA,EAAA,CAAA,CAAA;wGAEtB,kBAAkB,EAAA,OAAA,EAAA,CAHjB,YAAY,EAAE,WAAW,CAAA,EAAA,CAAA,CAAA;;2FAG1B,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAL9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,YAAY,EAAE,CAAC,qBAAqB,CAAC;AACrC,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,WAAW,CAAC;oBACpC,OAAO,EAAE,CAAC,qBAAqB,CAAC;AACnC,iBAAA,CAAA;;;ACTD;;AAEG;;;;"}
@@ -192,6 +192,11 @@ export declare class InputNumber implements OnInit, AfterContentInit, OnChanges,
192
192
  * @group Props
193
193
  */
194
194
  maxFractionDigits: number | undefined;
195
+ /**
196
+ * Icon class to show before the input value
197
+ * @group Props
198
+ */
199
+ prefixIcon: string | undefined;
195
200
  /**
196
201
  * Text to display before the value.
197
202
  * @group Props
@@ -371,7 +376,7 @@ export declare class InputNumber implements OnInit, AfterContentInit, OnChanges,
371
376
  get filled(): boolean;
372
377
  clearTimer(): void;
373
378
  static ɵfac: i0.ɵɵFactoryDeclaration<InputNumber, never>;
374
- static ɵcmp: i0.ɵɵComponentDeclaration<InputNumber, "cax-inputNumber", never, { "showButtons": { "alias": "showButtons"; "required": false; }; "format": { "alias": "format"; "required": false; }; "buttonLayout": { "alias": "buttonLayout"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; "styleClass": { "alias": "styleClass"; "required": false; }; "style": { "alias": "style"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "size": { "alias": "size"; "required": false; }; "maxlength": { "alias": "maxlength"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "title": { "alias": "title"; "required": false; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "ariaRequired": { "alias": "ariaRequired"; "required": false; }; "name": { "alias": "name"; "required": false; }; "required": { "alias": "required"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "incrementButtonClass": { "alias": "incrementButtonClass"; "required": false; }; "decrementButtonClass": { "alias": "decrementButtonClass"; "required": false; }; "incrementButtonIcon": { "alias": "incrementButtonIcon"; "required": false; }; "decrementButtonIcon": { "alias": "decrementButtonIcon"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "step": { "alias": "step"; "required": false; }; "allowEmpty": { "alias": "allowEmpty"; "required": false; }; "locale": { "alias": "locale"; "required": false; }; "localeMatcher": { "alias": "localeMatcher"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "currency": { "alias": "currency"; "required": false; }; "currencyDisplay": { "alias": "currencyDisplay"; "required": false; }; "useGrouping": { "alias": "useGrouping"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "minFractionDigits": { "alias": "minFractionDigits"; "required": false; }; "maxFractionDigits": { "alias": "maxFractionDigits"; "required": false; }; "prefix": { "alias": "prefix"; "required": false; }; "suffix": { "alias": "suffix"; "required": false; }; "inputStyle": { "alias": "inputStyle"; "required": false; }; "inputStyleClass": { "alias": "inputStyleClass"; "required": false; }; "showClear": { "alias": "showClear"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "onInput": "onInput"; "onFocus": "onFocus"; "onBlur": "onBlur"; "onKeyDown": "onKeyDown"; "onClear": "onClear"; }, ["templates"], never, true, never>;
379
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputNumber, "cax-inputNumber", never, { "showButtons": { "alias": "showButtons"; "required": false; }; "format": { "alias": "format"; "required": false; }; "buttonLayout": { "alias": "buttonLayout"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; "styleClass": { "alias": "styleClass"; "required": false; }; "style": { "alias": "style"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "size": { "alias": "size"; "required": false; }; "maxlength": { "alias": "maxlength"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "title": { "alias": "title"; "required": false; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "ariaRequired": { "alias": "ariaRequired"; "required": false; }; "name": { "alias": "name"; "required": false; }; "required": { "alias": "required"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "incrementButtonClass": { "alias": "incrementButtonClass"; "required": false; }; "decrementButtonClass": { "alias": "decrementButtonClass"; "required": false; }; "incrementButtonIcon": { "alias": "incrementButtonIcon"; "required": false; }; "decrementButtonIcon": { "alias": "decrementButtonIcon"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "step": { "alias": "step"; "required": false; }; "allowEmpty": { "alias": "allowEmpty"; "required": false; }; "locale": { "alias": "locale"; "required": false; }; "localeMatcher": { "alias": "localeMatcher"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "currency": { "alias": "currency"; "required": false; }; "currencyDisplay": { "alias": "currencyDisplay"; "required": false; }; "useGrouping": { "alias": "useGrouping"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "minFractionDigits": { "alias": "minFractionDigits"; "required": false; }; "maxFractionDigits": { "alias": "maxFractionDigits"; "required": false; }; "prefixIcon": { "alias": "prefixIcon"; "required": false; }; "prefix": { "alias": "prefix"; "required": false; }; "suffix": { "alias": "suffix"; "required": false; }; "inputStyle": { "alias": "inputStyle"; "required": false; }; "inputStyleClass": { "alias": "inputStyleClass"; "required": false; }; "showClear": { "alias": "showClear"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "onInput": "onInput"; "onFocus": "onFocus"; "onBlur": "onBlur"; "onKeyDown": "onKeyDown"; "onClear": "onClear"; }, ["templates"], never, true, never>;
375
380
  static ngAcceptInputType_showButtons: unknown;
376
381
  static ngAcceptInputType_format: unknown;
377
382
  static ngAcceptInputType_size: unknown;