@softpak/components 19.4.0 → 19.5.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/README.md +24 -24
  2. package/fesm2022/softpak-components-spx-alert.mjs +25 -159
  3. package/fesm2022/softpak-components-spx-alert.mjs.map +1 -1
  4. package/fesm2022/softpak-components-spx-app-configuration.mjs.map +1 -1
  5. package/fesm2022/softpak-components-spx-app-expiry.mjs +56 -56
  6. package/fesm2022/softpak-components-spx-app-expiry.mjs.map +1 -1
  7. package/fesm2022/softpak-components-spx-button.mjs +28 -111
  8. package/fesm2022/softpak-components-spx-button.mjs.map +1 -1
  9. package/fesm2022/softpak-components-spx-capitalize.mjs.map +1 -1
  10. package/fesm2022/softpak-components-spx-card.mjs +80 -293
  11. package/fesm2022/softpak-components-spx-card.mjs.map +1 -1
  12. package/fesm2022/softpak-components-spx-change-details.mjs +5 -5
  13. package/fesm2022/softpak-components-spx-change-details.mjs.map +1 -1
  14. package/fesm2022/softpak-components-spx-channel-selection.mjs +52 -52
  15. package/fesm2022/softpak-components-spx-channel-selection.mjs.map +1 -1
  16. package/fesm2022/softpak-components-spx-check-digit.mjs +3 -3
  17. package/fesm2022/softpak-components-spx-check-digit.mjs.map +1 -1
  18. package/fesm2022/softpak-components-spx-form-section.mjs +22 -22
  19. package/fesm2022/softpak-components-spx-form-section.mjs.map +1 -1
  20. package/fesm2022/softpak-components-spx-form-view.mjs +23 -202
  21. package/fesm2022/softpak-components-spx-form-view.mjs.map +1 -1
  22. package/fesm2022/softpak-components-spx-helpers.mjs.map +1 -1
  23. package/fesm2022/softpak-components-spx-inputs.mjs +441 -1286
  24. package/fesm2022/softpak-components-spx-inputs.mjs.map +1 -1
  25. package/fesm2022/softpak-components-spx-navigation.mjs +44 -44
  26. package/fesm2022/softpak-components-spx-navigation.mjs.map +1 -1
  27. package/fesm2022/softpak-components-spx-number-check.mjs +77 -79
  28. package/fesm2022/softpak-components-spx-number-check.mjs.map +1 -1
  29. package/fesm2022/softpak-components-spx-pagination.mjs +2 -2
  30. package/fesm2022/softpak-components-spx-pagination.mjs.map +1 -1
  31. package/fesm2022/softpak-components-spx-patch.mjs +25 -25
  32. package/fesm2022/softpak-components-spx-patch.mjs.map +1 -1
  33. package/fesm2022/softpak-components-spx-pipes.mjs +28 -0
  34. package/fesm2022/softpak-components-spx-pipes.mjs.map +1 -0
  35. package/fesm2022/softpak-components-spx-progress-bar.mjs +14 -14
  36. package/fesm2022/softpak-components-spx-progress-bar.mjs.map +1 -1
  37. package/fesm2022/softpak-components-spx-spinner.mjs +142 -142
  38. package/fesm2022/softpak-components-spx-spinner.mjs.map +1 -1
  39. package/fesm2022/softpak-components-spx-stock-info.mjs +2 -2
  40. package/fesm2022/softpak-components-spx-stock-info.mjs.map +1 -1
  41. package/fesm2022/softpak-components-spx-storage.mjs.map +1 -1
  42. package/fesm2022/softpak-components-spx-suggestion.mjs +3 -47
  43. package/fesm2022/softpak-components-spx-suggestion.mjs.map +1 -1
  44. package/fesm2022/softpak-components-spx-toaster.mjs +93 -93
  45. package/fesm2022/softpak-components-spx-toaster.mjs.map +1 -1
  46. package/fesm2022/softpak-components-spx-translate.mjs.map +1 -1
  47. package/fesm2022/softpak-components-spx-update.mjs +4 -7
  48. package/fesm2022/softpak-components-spx-update.mjs.map +1 -1
  49. package/fesm2022/softpak-components-spx-validation.mjs +2 -2
  50. package/fesm2022/softpak-components-spx-validation.mjs.map +1 -1
  51. package/package.json +30 -26
  52. package/spx-alert/spx-alert.component.d.ts +9 -14
  53. package/spx-button/spx-button.component.d.ts +15 -18
  54. package/spx-card/public-api.d.ts +3 -3
  55. package/spx-card/{spx-card-grid.component.d.ts → spx-card-grid/spx-card-grid.component.d.ts} +2 -2
  56. package/spx-card/spx-card-item/spx-card-item.component.d.ts +15 -0
  57. package/spx-card/spx-card-line/spx-card-line.component.d.ts +16 -0
  58. package/spx-change-details/spx-change-details.component.d.ts +2 -2
  59. package/spx-form-view/spx-autocomplete-search.component.d.ts +3 -4
  60. package/spx-form-view/spx-form-field.interface.d.ts +1 -1
  61. package/spx-form-view/spx-form-view.component.d.ts +10 -10
  62. package/spx-inputs/input.service.d.ts +12 -0
  63. package/spx-inputs/public-api.d.ts +2 -2
  64. package/spx-inputs/{spx-dropdown.component.d.ts → spx-dropdown/spx-dropdown.component.d.ts} +7 -7
  65. package/spx-inputs/spx-input-box/spx-input-box.component.d.ts +37 -0
  66. package/spx-inputs/spx-input-date/spx-input-date.component.d.ts +8 -4
  67. package/spx-inputs/spx-input-float/spx-input-float.component.d.ts +30 -0
  68. package/spx-inputs/spx-input-number/spx-input-number.component.d.ts +23 -0
  69. package/spx-inputs/spx-input-radio/spx-input-radio.component.d.ts +27 -0
  70. package/spx-inputs/spx-input-text/spx-input-text.component.d.ts +33 -0
  71. package/spx-inputs/spx-input-time/spx-input-time.component.d.ts +35 -0
  72. package/spx-inputs/{spx-input-time-modal.component.d.ts → spx-input-time-modal/spx-input-time-modal.component.d.ts} +6 -7
  73. package/spx-inputs/spx-input-type.enum.d.ts +2 -1
  74. package/spx-inputs/spx-input.component.d.ts +50 -49
  75. package/spx-number-check/spx-number-check.component.d.ts +1 -3
  76. package/spx-pipes/index.d.ts +5 -0
  77. package/spx-pipes/public-api.d.ts +1 -0
  78. package/spx-pipes/spx-severity-pipe.d.ts +8 -0
  79. package/tailwind.css +1 -1
  80. package/spx-card/spx-card-item.component.d.ts +0 -24
  81. package/spx-card/spx-card-line.component.d.ts +0 -17
  82. package/spx-inputs/spx-input-box.component.d.ts +0 -40
  83. package/spx-inputs/spx-input-float.component.d.ts +0 -30
  84. package/spx-inputs/spx-input-number.component.d.ts +0 -23
  85. package/spx-inputs/spx-input-radio.component.d.ts +0 -27
  86. package/spx-inputs/spx-input-text.component.d.ts +0 -31
  87. package/spx-inputs/spx-input-time.component.d.ts +0 -45
@@ -1,9 +1,10 @@
1
1
  import { NgClass } from '@angular/common';
2
2
  import * as i0 from '@angular/core';
3
- import { EventEmitter, Component, Input, Output, HostBinding } from '@angular/core';
3
+ import { EventEmitter, Component, Input, Output, input, ChangeDetectionStrategy, HostBinding, model, computed } from '@angular/core';
4
4
  import * as i1 from '@fortawesome/angular-fontawesome';
5
5
  import { FaIconComponent, FontAwesomeModule } from '@fortawesome/angular-fontawesome';
6
6
  import { SpxSeverityEnum } from '@softpak/components/spx-helpers';
7
+ import { IsSeverityPipe } from '@softpak/components/spx-pipes';
7
8
 
8
9
  class SpxCardComponent {
9
10
  constructor() {
@@ -20,31 +21,31 @@ class SpxCardComponent {
20
21
  this.clicked.emit();
21
22
  }
22
23
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: SpxCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
23
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.5", type: SpxCardComponent, isStandalone: true, selector: "spx-card", inputs: { clickable: "clickable", hasContent: "hasContent", onDetailPage: "onDetailPage", text: "text", unit: "unit", tableView: "tableView" }, outputs: { clicked: "clicked" }, ngImport: i0, template: `
24
- <button type="button"
25
- class="block w-full text-left rounded font-body items-stretch"
26
- [class.flex]="tableView"
27
- [class.cursor-pointer]="clickable"
28
- [class.cursor-not-allowed]="!clickable"
29
- [class.focus:ring-2]="clickable"
30
- [class.focus:ring-offset-2]="clickable"
31
- [class.focus:ring-blue-500]="clickable"
32
- (click)="onClick()"
33
- [tabIndex]="clickable ? 0 : -1">
34
- <div class="text-gray-900 opacity-90" [class.w-96]="tableView">
35
- <ng-content select="[card-header]"></ng-content>
36
- </div>
37
- <ng-content select="[card-content-top]"></ng-content>
38
- @if (hasContent) {
39
- <div class="bg-white dark:bg-gray-600 p-3">
40
- <ng-content select="[card-content]"></ng-content>
41
- </div>
42
- }
43
- <ng-content select="[card-content-bottom]"></ng-content>
44
- <div class="bg-gray-50 dark:bg-gray-700 p-3 grow" [class.rounded-b-lg]="!onDetailPage && !tableView" [class.rounded-r-lg]="!onDetailPage && tableView">
45
- <ng-content select="[card-lines]"></ng-content>
46
- </div>
47
- </button>
24
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.5", type: SpxCardComponent, isStandalone: true, selector: "spx-card", inputs: { clickable: "clickable", hasContent: "hasContent", onDetailPage: "onDetailPage", text: "text", unit: "unit", tableView: "tableView" }, outputs: { clicked: "clicked" }, ngImport: i0, template: `
25
+ <button type="button"
26
+ class="block w-full text-left rounded font-body items-stretch"
27
+ [class.flex]="tableView"
28
+ [class.cursor-pointer]="clickable"
29
+ [class.cursor-not-allowed]="!clickable"
30
+ [class.focus:ring-2]="clickable"
31
+ [class.focus:ring-offset-2]="clickable"
32
+ [class.focus:ring-blue-500]="clickable"
33
+ (click)="onClick()"
34
+ [tabIndex]="clickable ? 0 : -1">
35
+ <div class="text-gray-900 opacity-90" [class.w-96]="tableView">
36
+ <ng-content select="[card-header]"></ng-content>
37
+ </div>
38
+ <ng-content select="[card-content-top]"></ng-content>
39
+ @if (hasContent) {
40
+ <div class="bg-white dark:bg-gray-600 p-3">
41
+ <ng-content select="[card-content]"></ng-content>
42
+ </div>
43
+ }
44
+ <ng-content select="[card-content-bottom]"></ng-content>
45
+ <div class="bg-gray-50 dark:bg-gray-700 p-3 grow" [class.rounded-b-lg]="!onDetailPage && !tableView" [class.rounded-r-lg]="!onDetailPage && tableView">
46
+ <ng-content select="[card-lines]"></ng-content>
47
+ </div>
48
+ </button>
48
49
  `, isInline: true }); }
49
50
  }
50
51
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: SpxCardComponent, decorators: [{
@@ -54,31 +55,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImpor
54
55
  imports: [
55
56
  NgClass
56
57
  ],
57
- template: `
58
- <button type="button"
59
- class="block w-full text-left rounded font-body items-stretch"
60
- [class.flex]="tableView"
61
- [class.cursor-pointer]="clickable"
62
- [class.cursor-not-allowed]="!clickable"
63
- [class.focus:ring-2]="clickable"
64
- [class.focus:ring-offset-2]="clickable"
65
- [class.focus:ring-blue-500]="clickable"
66
- (click)="onClick()"
67
- [tabIndex]="clickable ? 0 : -1">
68
- <div class="text-gray-900 opacity-90" [class.w-96]="tableView">
69
- <ng-content select="[card-header]"></ng-content>
70
- </div>
71
- <ng-content select="[card-content-top]"></ng-content>
72
- @if (hasContent) {
73
- <div class="bg-white dark:bg-gray-600 p-3">
74
- <ng-content select="[card-content]"></ng-content>
75
- </div>
76
- }
77
- <ng-content select="[card-content-bottom]"></ng-content>
78
- <div class="bg-gray-50 dark:bg-gray-700 p-3 grow" [class.rounded-b-lg]="!onDetailPage && !tableView" [class.rounded-r-lg]="!onDetailPage && tableView">
79
- <ng-content select="[card-lines]"></ng-content>
80
- </div>
81
- </button>
58
+ template: `
59
+ <button type="button"
60
+ class="block w-full text-left rounded font-body items-stretch"
61
+ [class.flex]="tableView"
62
+ [class.cursor-pointer]="clickable"
63
+ [class.cursor-not-allowed]="!clickable"
64
+ [class.focus:ring-2]="clickable"
65
+ [class.focus:ring-offset-2]="clickable"
66
+ [class.focus:ring-blue-500]="clickable"
67
+ (click)="onClick()"
68
+ [tabIndex]="clickable ? 0 : -1">
69
+ <div class="text-gray-900 opacity-90" [class.w-96]="tableView">
70
+ <ng-content select="[card-header]"></ng-content>
71
+ </div>
72
+ <ng-content select="[card-content-top]"></ng-content>
73
+ @if (hasContent) {
74
+ <div class="bg-white dark:bg-gray-600 p-3">
75
+ <ng-content select="[card-content]"></ng-content>
76
+ </div>
77
+ }
78
+ <ng-content select="[card-content-bottom]"></ng-content>
79
+ <div class="bg-gray-50 dark:bg-gray-700 p-3 grow" [class.rounded-b-lg]="!onDetailPage && !tableView" [class.rounded-r-lg]="!onDetailPage && tableView">
80
+ <ng-content select="[card-lines]"></ng-content>
81
+ </div>
82
+ </button>
82
83
  `
83
84
  }]
84
85
  }], ctorParameters: () => [], propDecorators: { clickable: [{
@@ -100,276 +101,62 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImpor
100
101
  class SpxCardItemComponent {
101
102
  constructor() {
102
103
  this.hFull = true;
103
- this.iconOnly = false;
104
+ this.icon = input();
105
+ this.iconOnly = input(false);
106
+ this.spxLabel = input.required();
107
+ this.spxValue = input.required();
108
+ this.spxSeverity = input.required();
109
+ this.spxIconSeverity = input();
110
+ this.SpxSeverityEnum = SpxSeverityEnum;
104
111
  }
105
- get spxSeverityError() { return this.spxSeverity === SpxSeverityEnum.error; }
106
- get spxSeverityInfo() { return this.spxSeverity === SpxSeverityEnum.info; }
107
- get spxSeveritySuccess() { return this.spxSeverity === SpxSeverityEnum.success; }
108
- get spxSeverityUnknown() { return this.spxSeverity === SpxSeverityEnum.unknown; }
109
- get spxSeverityWarning() { return this.spxSeverity === SpxSeverityEnum.warning; }
110
- get spxIconSeverityError() { return this.spxIconSeverity === SpxSeverityEnum.error; }
111
- get spxIconSeverityInfo() { return this.spxIconSeverity === SpxSeverityEnum.info; }
112
- get spxIconSeveritySuccess() { return this.spxIconSeverity === SpxSeverityEnum.success; }
113
- get spxIconSeverityUnknown() { return this.spxIconSeverity === SpxSeverityEnum.unknown; }
114
- get spxIconSeverityWarning() { return this.spxIconSeverity === SpxSeverityEnum.warning; }
115
112
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: SpxCardItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
116
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.5", type: SpxCardItemComponent, isStandalone: true, selector: "spx-card-item", inputs: { icon: "icon", iconOnly: "iconOnly", spxLabel: "spxLabel", spxValue: "spxValue", spxSeverity: "spxSeverity", spxIconSeverity: "spxIconSeverity" }, host: { properties: { "class.h-full": "this.hFull" } }, ngImport: i0, template: `
117
- <div class='py-2 px-3 rounded h-full'
118
- [class.bg-slate-100]="!spxSeverity"
119
- [class.dark:bg-slate-600]="!spxSeverity"
120
- [class.text-black]="spxSeverityWarning"
121
- [class.text-white]="spxSeverityError || spxSeverityInfo || spxSeveritySuccess || spxSeverityUnknown"
122
- [class.bg-red-700]="spxSeverityError"
123
- [class.bg-green-700]="spxSeveritySuccess"
124
- [class.bg-blue-700]="spxSeverityInfo"
125
- [class.bg-gray-400]="spxSeverityUnknown"
126
- [class.bg-amber-700]="spxSeverityWarning">
127
- <div class="font-small leading-normal">{{ spxLabel }}</div>
128
- <div class="flex gap-4 text-lg leading-normal py-1">
129
- @if (icon) {
130
- <div class="font-bold text-center leading-normal max-w-12 min-w-12" [class.grow]="iconOnly">
131
- <div
132
- class="px-3 py-1 text-white rounded"
133
- [class.bg-black]="!spxIconSeverity"
134
- [class.bg-red-700]="spxIconSeverityError"
135
- [class.bg-green-700]="spxIconSeveritySuccess"
136
- [class.bg-blue-700]="spxIconSeverityInfo"
137
- [class.bg-gray-400]="spxIconSeverityUnknown"
138
- [class.bg-amber-700]="spxIconSeverityWarning">
139
- <fa-icon [icon]="icon"></fa-icon>
140
- </div>
141
- </div>
142
- }
143
- <div class="grow font-bold">
144
- @if (!iconOnly) {
145
- <ng-content></ng-content><div [innerHTML]="spxValue"></div>
146
- }
147
- </div>
148
- </div>
149
- </div>
150
- `, isInline: true, dependencies: [{ kind: "component", type: FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "animation", "mask", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "transform", "a11yRole"] }] }); }
113
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.5", type: SpxCardItemComponent, isStandalone: true, selector: "spx-card-item", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, iconOnly: { classPropertyName: "iconOnly", publicName: "iconOnly", isSignal: true, isRequired: false, transformFunction: null }, spxLabel: { classPropertyName: "spxLabel", publicName: "spxLabel", isSignal: true, isRequired: true, transformFunction: null }, spxValue: { classPropertyName: "spxValue", publicName: "spxValue", isSignal: true, isRequired: true, transformFunction: null }, spxSeverity: { classPropertyName: "spxSeverity", publicName: "spxSeverity", isSignal: true, isRequired: true, transformFunction: null }, spxIconSeverity: { classPropertyName: "spxIconSeverity", publicName: "spxIconSeverity", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.h-full": "this.hFull" } }, ngImport: i0, template: "<div class='py-2 px-3 rounded h-full'\r\n [class.bg-slate-100]=\"!spxSeverity()\"\r\n [class.dark:bg-slate-600]=\"!spxSeverity()\"\r\n [class.text-black]=\"this.spxSeverity() | isSeverity: SpxSeverityEnum.warning\"\r\n [class.text-white]=\"this.spxSeverity() | isSeverity: [SpxSeverityEnum.error, SpxSeverityEnum.success, SpxSeverityEnum.unknown, SpxSeverityEnum.info]\"\r\n [class.bg-red-700]=\"this.spxSeverity() | isSeverity: SpxSeverityEnum.error\"\r\n [class.bg-green-700]=\"this.spxSeverity() | isSeverity: SpxSeverityEnum.success\"\r\n [class.bg-blue-700]=\"this.spxSeverity() | isSeverity: SpxSeverityEnum.info\"\r\n [class.bg-gray-400]=\"this.spxSeverity() | isSeverity: SpxSeverityEnum.unknown\"\r\n [class.bg-amber-700]=\"this.spxSeverity() | isSeverity: SpxSeverityEnum.warning\">\r\n <div class=\"font-small leading-normal\">{{ spxLabel() }}</div>\r\n <div class=\"flex gap-4 text-lg leading-normal py-1\">\r\n @if (icon()) {\r\n <div class=\"font-bold text-center leading-normal max-w-12 min-w-12\" [class.grow]=\"iconOnly()\">\r\n <div\r\n class=\"px-3 py-1 text-white rounded\"\r\n [class.bg-black]=\"!spxIconSeverity()\"\r\n [class.bg-red-700]=\"this.spxSeverity() | isSeverity: SpxSeverityEnum.error\"\r\n [class.bg-green-700]=\"this.spxSeverity() | isSeverity: SpxSeverityEnum.success\"\r\n [class.bg-blue-700]=\"this.spxSeverity() | isSeverity: SpxSeverityEnum.info\"\r\n [class.bg-gray-400]=\"this.spxSeverity() | isSeverity: SpxSeverityEnum.unknown\"\r\n [class.bg-amber-700]=\"this.spxSeverity() | isSeverity: SpxSeverityEnum.warning\">\r\n <fa-icon [icon]=\"icon()!\"></fa-icon>\r\n </div>\r\n </div>\r\n }\r\n <div class=\"grow font-bold\">\r\n @if (!iconOnly()) {\r\n <ng-content></ng-content><div [innerHTML]=\"spxValue()\"></div>\r\n }\r\n </div>\r\n </div>\r\n </div>", dependencies: [{ kind: "component", type: FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "animation", "mask", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "transform", "a11yRole"] }, { kind: "pipe", type: IsSeverityPipe, name: "isSeverity" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
151
114
  }
152
115
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: SpxCardItemComponent, decorators: [{
153
116
  type: Component,
154
- args: [{
155
- selector: 'spx-card-item',
156
- imports: [
157
- FaIconComponent
158
- ],
159
- template: `
160
- <div class='py-2 px-3 rounded h-full'
161
- [class.bg-slate-100]="!spxSeverity"
162
- [class.dark:bg-slate-600]="!spxSeverity"
163
- [class.text-black]="spxSeverityWarning"
164
- [class.text-white]="spxSeverityError || spxSeverityInfo || spxSeveritySuccess || spxSeverityUnknown"
165
- [class.bg-red-700]="spxSeverityError"
166
- [class.bg-green-700]="spxSeveritySuccess"
167
- [class.bg-blue-700]="spxSeverityInfo"
168
- [class.bg-gray-400]="spxSeverityUnknown"
169
- [class.bg-amber-700]="spxSeverityWarning">
170
- <div class="font-small leading-normal">{{ spxLabel }}</div>
171
- <div class="flex gap-4 text-lg leading-normal py-1">
172
- @if (icon) {
173
- <div class="font-bold text-center leading-normal max-w-12 min-w-12" [class.grow]="iconOnly">
174
- <div
175
- class="px-3 py-1 text-white rounded"
176
- [class.bg-black]="!spxIconSeverity"
177
- [class.bg-red-700]="spxIconSeverityError"
178
- [class.bg-green-700]="spxIconSeveritySuccess"
179
- [class.bg-blue-700]="spxIconSeverityInfo"
180
- [class.bg-gray-400]="spxIconSeverityUnknown"
181
- [class.bg-amber-700]="spxIconSeverityWarning">
182
- <fa-icon [icon]="icon"></fa-icon>
183
- </div>
184
- </div>
185
- }
186
- <div class="grow font-bold">
187
- @if (!iconOnly) {
188
- <ng-content></ng-content><div [innerHTML]="spxValue"></div>
189
- }
190
- </div>
191
- </div>
192
- </div>
193
- `
194
- }]
117
+ args: [{ selector: 'spx-card-item', imports: [
118
+ FaIconComponent,
119
+ IsSeverityPipe
120
+ ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class='py-2 px-3 rounded h-full'\r\n [class.bg-slate-100]=\"!spxSeverity()\"\r\n [class.dark:bg-slate-600]=\"!spxSeverity()\"\r\n [class.text-black]=\"this.spxSeverity() | isSeverity: SpxSeverityEnum.warning\"\r\n [class.text-white]=\"this.spxSeverity() | isSeverity: [SpxSeverityEnum.error, SpxSeverityEnum.success, SpxSeverityEnum.unknown, SpxSeverityEnum.info]\"\r\n [class.bg-red-700]=\"this.spxSeverity() | isSeverity: SpxSeverityEnum.error\"\r\n [class.bg-green-700]=\"this.spxSeverity() | isSeverity: SpxSeverityEnum.success\"\r\n [class.bg-blue-700]=\"this.spxSeverity() | isSeverity: SpxSeverityEnum.info\"\r\n [class.bg-gray-400]=\"this.spxSeverity() | isSeverity: SpxSeverityEnum.unknown\"\r\n [class.bg-amber-700]=\"this.spxSeverity() | isSeverity: SpxSeverityEnum.warning\">\r\n <div class=\"font-small leading-normal\">{{ spxLabel() }}</div>\r\n <div class=\"flex gap-4 text-lg leading-normal py-1\">\r\n @if (icon()) {\r\n <div class=\"font-bold text-center leading-normal max-w-12 min-w-12\" [class.grow]=\"iconOnly()\">\r\n <div\r\n class=\"px-3 py-1 text-white rounded\"\r\n [class.bg-black]=\"!spxIconSeverity()\"\r\n [class.bg-red-700]=\"this.spxSeverity() | isSeverity: SpxSeverityEnum.error\"\r\n [class.bg-green-700]=\"this.spxSeverity() | isSeverity: SpxSeverityEnum.success\"\r\n [class.bg-blue-700]=\"this.spxSeverity() | isSeverity: SpxSeverityEnum.info\"\r\n [class.bg-gray-400]=\"this.spxSeverity() | isSeverity: SpxSeverityEnum.unknown\"\r\n [class.bg-amber-700]=\"this.spxSeverity() | isSeverity: SpxSeverityEnum.warning\">\r\n <fa-icon [icon]=\"icon()!\"></fa-icon>\r\n </div>\r\n </div>\r\n }\r\n <div class=\"grow font-bold\">\r\n @if (!iconOnly()) {\r\n <ng-content></ng-content><div [innerHTML]=\"spxValue()\"></div>\r\n }\r\n </div>\r\n </div>\r\n </div>" }]
195
121
  }], propDecorators: { hFull: [{
196
122
  type: HostBinding,
197
123
  args: ['class.h-full']
198
- }], icon: [{
199
- type: Input
200
- }], iconOnly: [{
201
- type: Input
202
- }], spxLabel: [{
203
- type: Input
204
- }], spxValue: [{
205
- type: Input
206
- }], spxSeverity: [{
207
- type: Input
208
- }], spxIconSeverity: [{
209
- type: Input
210
124
  }] } });
211
125
 
212
126
  class SpxCardGridComponent {
213
127
  constructor() {
214
- this.minWidth2Columns = 460;
128
+ this.minWidth2Columns = input(460);
215
129
  }
216
130
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: SpxCardGridComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
217
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.5", type: SpxCardGridComponent, isStandalone: true, selector: "spx-card-grid", inputs: { minWidth2Columns: "minWidth2Columns" }, ngImport: i0, template: `
218
- <div class='grid gap-3 items-stretch'
219
- [class.min-[300px]:grid-cols-2]="minWidth2Columns == 300"
220
- [class.min-[320px]:grid-cols-2]="minWidth2Columns == 320"
221
- [class.min-[340px]:grid-cols-2]="minWidth2Columns == 340"
222
- [class.min-[360px]:grid-cols-2]="minWidth2Columns == 360"
223
- [class.min-[380px]:grid-cols-2]="minWidth2Columns == 380"
224
- [class.min-[400px]:grid-cols-2]="minWidth2Columns == 400"
225
- [class.min-[420px]:grid-cols-2]="minWidth2Columns == 420"
226
- [class.min-[440px]:grid-cols-2]="minWidth2Columns == 440"
227
- [class.min-[460px]:grid-cols-2]="minWidth2Columns == 460">
228
- <ng-content></ng-content>
229
- </div>
230
- `, isInline: true }); }
131
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.0.5", type: SpxCardGridComponent, isStandalone: true, selector: "spx-card-grid", inputs: { minWidth2Columns: { classPropertyName: "minWidth2Columns", publicName: "minWidth2Columns", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div class='grid gap-3 items-stretch'\r\n [class.min-[300px]:grid-cols-2]=\"minWidth2Columns() == 300\"\r\n [class.min-[320px]:grid-cols-2]=\"minWidth2Columns() == 320\"\r\n [class.min-[340px]:grid-cols-2]=\"minWidth2Columns() == 340\"\r\n [class.min-[360px]:grid-cols-2]=\"minWidth2Columns() == 360\"\r\n [class.min-[380px]:grid-cols-2]=\"minWidth2Columns() == 380\"\r\n [class.min-[400px]:grid-cols-2]=\"minWidth2Columns() == 400\"\r\n [class.min-[420px]:grid-cols-2]=\"minWidth2Columns() == 420\"\r\n [class.min-[440px]:grid-cols-2]=\"minWidth2Columns() == 440\"\r\n [class.min-[460px]:grid-cols-2]=\"minWidth2Columns() == 460\">\r\n <ng-content></ng-content>\r\n </div>", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
231
132
  }
232
133
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: SpxCardGridComponent, decorators: [{
233
134
  type: Component,
234
- args: [{
235
- selector: 'spx-card-grid',
236
- standalone: true,
237
- template: `
238
- <div class='grid gap-3 items-stretch'
239
- [class.min-[300px]:grid-cols-2]="minWidth2Columns == 300"
240
- [class.min-[320px]:grid-cols-2]="minWidth2Columns == 320"
241
- [class.min-[340px]:grid-cols-2]="minWidth2Columns == 340"
242
- [class.min-[360px]:grid-cols-2]="minWidth2Columns == 360"
243
- [class.min-[380px]:grid-cols-2]="minWidth2Columns == 380"
244
- [class.min-[400px]:grid-cols-2]="minWidth2Columns == 400"
245
- [class.min-[420px]:grid-cols-2]="minWidth2Columns == 420"
246
- [class.min-[440px]:grid-cols-2]="minWidth2Columns == 440"
247
- [class.min-[460px]:grid-cols-2]="minWidth2Columns == 460">
248
- <ng-content></ng-content>
249
- </div>
250
- `,
251
- }]
252
- }], propDecorators: { minWidth2Columns: [{
253
- type: Input
254
- }] } });
135
+ args: [{ selector: 'spx-card-grid', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class='grid gap-3 items-stretch'\r\n [class.min-[300px]:grid-cols-2]=\"minWidth2Columns() == 300\"\r\n [class.min-[320px]:grid-cols-2]=\"minWidth2Columns() == 320\"\r\n [class.min-[340px]:grid-cols-2]=\"minWidth2Columns() == 340\"\r\n [class.min-[360px]:grid-cols-2]=\"minWidth2Columns() == 360\"\r\n [class.min-[380px]:grid-cols-2]=\"minWidth2Columns() == 380\"\r\n [class.min-[400px]:grid-cols-2]=\"minWidth2Columns() == 400\"\r\n [class.min-[420px]:grid-cols-2]=\"minWidth2Columns() == 420\"\r\n [class.min-[440px]:grid-cols-2]=\"minWidth2Columns() == 440\"\r\n [class.min-[460px]:grid-cols-2]=\"minWidth2Columns() == 460\">\r\n <ng-content></ng-content>\r\n </div>" }]
136
+ }] });
255
137
 
256
138
  class SpxCardLineComponent {
257
- get numericValue() {
258
- return this.value;
259
- }
260
139
  constructor() {
261
- this.showPositiveOrNegative = false;
262
- this.newOrderScreen = false;
140
+ this.icon = input();
141
+ this.showPositiveOrNegative = input(false);
142
+ this.text = input();
143
+ this.value = model.required();
144
+ this.secondValue = input();
145
+ this.showProgress = input();
146
+ this.unit = input();
147
+ this.newOrderScreen = input(false);
148
+ this.numericValue = computed(() => { return this.value(); });
263
149
  }
264
150
  displayValue(val) {
265
151
  return val || val === 0 ? val : '—';
266
152
  }
267
153
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: SpxCardLineComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
268
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.5", type: SpxCardLineComponent, isStandalone: true, selector: "spx-card-line", inputs: { icon: "icon", showPositiveOrNegative: "showPositiveOrNegative", text: "text", value: "value", secondValue: "secondValue", showProgress: "showProgress", unit: "unit", newOrderScreen: "newOrderScreen" }, ngImport: i0, template: `
269
- <div class="items-center" [class.flex]="!newOrderScreen">
270
- <div class="block w-24 text-gray-600 dark:text-gray-200 text-xs mb-1" [class.pt-1]="!newOrderScreen" [innerHTML]="text"></div>
271
- <div class="flex">
272
- @if (icon) {
273
- <fa-icon [icon]="icon" class="text-lg mr-3 w-6 text-center"></fa-icon>
274
- }
275
- @if (showPositiveOrNegative && numericValue < 0) {
276
- <div class="rounded-full w-4 h-4 mr-2 bg-sky-600">&nbsp;</div>
277
- }
278
- @if (!showProgress) {
279
- <span class="block font-medium grow whitespace-pre-line leading-5">
280
- <span [innerHTML]="displayValue(value)"></span>
281
- <ng-content></ng-content>
282
- @if (unit) {
283
- <span> {{ unit }}</span>
284
- }
285
- @if (!unit && secondValue !== null && secondValue !== undefined) {
286
- / {{ displayValue(secondValue) }}
287
- }
288
- </span>
289
- }
290
- </div>
291
- @if (showProgress) {
292
- <div class="block font-medium grow whitespace-pre-line text-gray-600 dark:text-gray-200">
293
- <div class="flex">
294
- <div class="flex grow gap-2">
295
- <div class="bg-gray-200 my-0.5 h-5 w-full rounded">
296
- <div class="bg-teal-600 h-5 rounded" [style.width]="((+value) / (secondValue ? +secondValue : 0)) * 100 + '%'"></div>
297
- </div>
298
- </div>
299
- <div class="flex text-left pl-3 gap-2">
300
- <div class="block w-16 text-right">{{ value }} / {{ secondValue }}</div>
301
- </div>
302
- </div>
303
- </div>
304
- }
305
- </div>
306
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: FontAwesomeModule }, { kind: "component", type: i1.FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "animation", "mask", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "transform", "a11yRole"] }] }); }
154
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.5", type: SpxCardLineComponent, isStandalone: true, selector: "spx-card-line", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, showPositiveOrNegative: { classPropertyName: "showPositiveOrNegative", publicName: "showPositiveOrNegative", isSignal: true, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, secondValue: { classPropertyName: "secondValue", publicName: "secondValue", isSignal: true, isRequired: false, transformFunction: null }, showProgress: { classPropertyName: "showProgress", publicName: "showProgress", isSignal: true, isRequired: false, transformFunction: null }, unit: { classPropertyName: "unit", publicName: "unit", isSignal: true, isRequired: false, transformFunction: null }, newOrderScreen: { classPropertyName: "newOrderScreen", publicName: "newOrderScreen", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, ngImport: i0, template: "<div class=\"items-center\" [class.flex]=\"!newOrderScreen()\">\r\n <div class=\"block w-24 text-gray-600 dark:text-gray-200 text-xs mb-1\" [class.pt-1]=\"!newOrderScreen()\" [innerHTML]=\"text()\"></div>\r\n <div class=\"flex\">\r\n @if (icon()) {\r\n <fa-icon [icon]=\"icon()!\" class=\"text-lg mr-3 w-6 text-center\"></fa-icon>\r\n }\r\n @if (showPositiveOrNegative() && numericValue() < 0) {\r\n <div class=\"rounded-full w-4 h-4 mr-2 bg-sky-600\">&nbsp;</div>\r\n }\r\n @if (!showProgress()) {\r\n <span class=\"block font-medium grow whitespace-pre-line leading-5\">\r\n <span [innerHTML]=\"displayValue(value())\"></span>\r\n <ng-content></ng-content>\r\n @if (unit()) {\r\n <span> {{ unit() }}</span>\r\n }\r\n @if (!unit() && secondValue() !== null && secondValue() !== undefined) {\r\n / {{ displayValue(secondValue()) }}\r\n }\r\n </span>\r\n }\r\n </div>\r\n @if (showProgress()) {\r\n <div class=\"block font-medium grow whitespace-pre-line text-gray-600 dark:text-gray-200\">\r\n <div class=\"flex\">\r\n <div class=\"flex grow gap-2\">\r\n <div class=\"bg-gray-200 my-0.5 h-5 w-full rounded\">\r\n <div class=\"bg-teal-600 h-5 rounded\" [style.width]=\"((+value()) / (secondValue() ? +secondValue()! : 0)) * 100 + '%'\"></div>\r\n </div>\r\n </div>\r\n <div class=\"flex text-left pl-3 gap-2\">\r\n <div class=\"block w-16 text-right\">{{ value() }} / {{ secondValue() }}</div>\r\n </div>\r\n </div>\r\n </div>\r\n }\r\n</div>", dependencies: [{ kind: "ngmodule", type: FontAwesomeModule }, { kind: "component", type: i1.FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "animation", "mask", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "transform", "a11yRole"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
307
155
  }
308
156
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: SpxCardLineComponent, decorators: [{
309
157
  type: Component,
310
- args: [{
311
- selector: 'spx-card-line',
312
- imports: [
313
- FontAwesomeModule,
314
- NgClass
315
- ],
316
- template: `
317
- <div class="items-center" [class.flex]="!newOrderScreen">
318
- <div class="block w-24 text-gray-600 dark:text-gray-200 text-xs mb-1" [class.pt-1]="!newOrderScreen" [innerHTML]="text"></div>
319
- <div class="flex">
320
- @if (icon) {
321
- <fa-icon [icon]="icon" class="text-lg mr-3 w-6 text-center"></fa-icon>
322
- }
323
- @if (showPositiveOrNegative && numericValue < 0) {
324
- <div class="rounded-full w-4 h-4 mr-2 bg-sky-600">&nbsp;</div>
325
- }
326
- @if (!showProgress) {
327
- <span class="block font-medium grow whitespace-pre-line leading-5">
328
- <span [innerHTML]="displayValue(value)"></span>
329
- <ng-content></ng-content>
330
- @if (unit) {
331
- <span> {{ unit }}</span>
332
- }
333
- @if (!unit && secondValue !== null && secondValue !== undefined) {
334
- / {{ displayValue(secondValue) }}
335
- }
336
- </span>
337
- }
338
- </div>
339
- @if (showProgress) {
340
- <div class="block font-medium grow whitespace-pre-line text-gray-600 dark:text-gray-200">
341
- <div class="flex">
342
- <div class="flex grow gap-2">
343
- <div class="bg-gray-200 my-0.5 h-5 w-full rounded">
344
- <div class="bg-teal-600 h-5 rounded" [style.width]="((+value) / (secondValue ? +secondValue : 0)) * 100 + '%'"></div>
345
- </div>
346
- </div>
347
- <div class="flex text-left pl-3 gap-2">
348
- <div class="block w-16 text-right">{{ value }} / {{ secondValue }}</div>
349
- </div>
350
- </div>
351
- </div>
352
- }
353
- </div>
354
- `
355
- }]
356
- }], ctorParameters: () => [], propDecorators: { icon: [{
357
- type: Input
358
- }], showPositiveOrNegative: [{
359
- type: Input
360
- }], text: [{
361
- type: Input
362
- }], value: [{
363
- type: Input
364
- }], secondValue: [{
365
- type: Input
366
- }], showProgress: [{
367
- type: Input
368
- }], unit: [{
369
- type: Input
370
- }], newOrderScreen: [{
371
- type: Input
372
- }] } });
158
+ args: [{ selector: 'spx-card-line', imports: [FontAwesomeModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"items-center\" [class.flex]=\"!newOrderScreen()\">\r\n <div class=\"block w-24 text-gray-600 dark:text-gray-200 text-xs mb-1\" [class.pt-1]=\"!newOrderScreen()\" [innerHTML]=\"text()\"></div>\r\n <div class=\"flex\">\r\n @if (icon()) {\r\n <fa-icon [icon]=\"icon()!\" class=\"text-lg mr-3 w-6 text-center\"></fa-icon>\r\n }\r\n @if (showPositiveOrNegative() && numericValue() < 0) {\r\n <div class=\"rounded-full w-4 h-4 mr-2 bg-sky-600\">&nbsp;</div>\r\n }\r\n @if (!showProgress()) {\r\n <span class=\"block font-medium grow whitespace-pre-line leading-5\">\r\n <span [innerHTML]=\"displayValue(value())\"></span>\r\n <ng-content></ng-content>\r\n @if (unit()) {\r\n <span> {{ unit() }}</span>\r\n }\r\n @if (!unit() && secondValue() !== null && secondValue() !== undefined) {\r\n / {{ displayValue(secondValue()) }}\r\n }\r\n </span>\r\n }\r\n </div>\r\n @if (showProgress()) {\r\n <div class=\"block font-medium grow whitespace-pre-line text-gray-600 dark:text-gray-200\">\r\n <div class=\"flex\">\r\n <div class=\"flex grow gap-2\">\r\n <div class=\"bg-gray-200 my-0.5 h-5 w-full rounded\">\r\n <div class=\"bg-teal-600 h-5 rounded\" [style.width]=\"((+value()) / (secondValue() ? +secondValue()! : 0)) * 100 + '%'\"></div>\r\n </div>\r\n </div>\r\n <div class=\"flex text-left pl-3 gap-2\">\r\n <div class=\"block w-16 text-right\">{{ value() }} / {{ secondValue() }}</div>\r\n </div>\r\n </div>\r\n </div>\r\n }\r\n</div>" }]
159
+ }] });
373
160
 
374
161
  /**
375
162
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"softpak-components-spx-card.mjs","sources":["../../../../projects/softpak/components/spx-card/spx-card.component.ts","../../../../projects/softpak/components/spx-card/spx-card-item.component.ts","../../../../projects/softpak/components/spx-card/spx-card-grid.component.ts","../../../../projects/softpak/components/spx-card/spx-card-line.component.ts","../../../../projects/softpak/components/spx-card/softpak-components-spx-card.ts"],"sourcesContent":["import { NgClass } from '@angular/common';\nimport { Component, EventEmitter, Input, Output } from '@angular/core';\n\n@Component({\n selector: 'spx-card',\n imports: [\n NgClass\n ],\n template: `\n <button type=\"button\"\n class=\"block w-full text-left rounded font-body items-stretch\"\n [class.flex]=\"tableView\"\n [class.cursor-pointer]=\"clickable\"\n [class.cursor-not-allowed]=\"!clickable\"\n [class.focus:ring-2]=\"clickable\"\n [class.focus:ring-offset-2]=\"clickable\"\n [class.focus:ring-blue-500]=\"clickable\"\n (click)=\"onClick()\"\n [tabIndex]=\"clickable ? 0 : -1\">\n <div class=\"text-gray-900 opacity-90\" [class.w-96]=\"tableView\">\n <ng-content select=\"[card-header]\"></ng-content>\n </div>\n <ng-content select=\"[card-content-top]\"></ng-content>\n @if (hasContent) {\n <div class=\"bg-white dark:bg-gray-600 p-3\">\n <ng-content select=\"[card-content]\"></ng-content>\n </div>\n }\n <ng-content select=\"[card-content-bottom]\"></ng-content>\n <div class=\"bg-gray-50 dark:bg-gray-700 p-3 grow\" [class.rounded-b-lg]=\"!onDetailPage && !tableView\" [class.rounded-r-lg]=\"!onDetailPage && tableView\">\n <ng-content select=\"[card-lines]\"></ng-content>\n </div>\n </button>\n `\n})\nexport class SpxCardComponent {\n @Input() clickable = true;\n @Input() hasContent = true;\n @Input() onDetailPage = false;\n @Input() text!: string;\n @Input() unit?: string;\n @Input() tableView = false;\n @Output() clicked: EventEmitter<void> = new EventEmitter<void>();\n\n constructor() { }\n\n displayValue(val: string | number): string | number {\n return val || (val === 0) ? val : '—';\n }\n\n onClick(): void {\n this.clicked.emit();\n }\n}\n","\nimport { Component, HostBinding, Input } from '@angular/core';\nimport { FaIconComponent } from '@fortawesome/angular-fontawesome';\nimport { IconProp } from '@fortawesome/angular-fontawesome/types';\nimport { SpxSeverityEnum } from '@softpak/components/spx-helpers';\n\n@Component({\n selector: 'spx-card-item',\n imports: [\n FaIconComponent\n ],\n template: `\n <div class='py-2 px-3 rounded h-full'\n [class.bg-slate-100]=\"!spxSeverity\"\n [class.dark:bg-slate-600]=\"!spxSeverity\"\n [class.text-black]=\"spxSeverityWarning\"\n [class.text-white]=\"spxSeverityError || spxSeverityInfo || spxSeveritySuccess || spxSeverityUnknown\"\n [class.bg-red-700]=\"spxSeverityError\"\n [class.bg-green-700]=\"spxSeveritySuccess\"\n [class.bg-blue-700]=\"spxSeverityInfo\"\n [class.bg-gray-400]=\"spxSeverityUnknown\"\n [class.bg-amber-700]=\"spxSeverityWarning\">\n <div class=\"font-small leading-normal\">{{ spxLabel }}</div>\n <div class=\"flex gap-4 text-lg leading-normal py-1\">\n @if (icon) {\n <div class=\"font-bold text-center leading-normal max-w-12 min-w-12\" [class.grow]=\"iconOnly\">\n <div\n class=\"px-3 py-1 text-white rounded\"\n [class.bg-black]=\"!spxIconSeverity\"\n [class.bg-red-700]=\"spxIconSeverityError\"\n [class.bg-green-700]=\"spxIconSeveritySuccess\"\n [class.bg-blue-700]=\"spxIconSeverityInfo\"\n [class.bg-gray-400]=\"spxIconSeverityUnknown\"\n [class.bg-amber-700]=\"spxIconSeverityWarning\">\n <fa-icon [icon]=\"icon\"></fa-icon>\n </div>\n </div>\n }\n <div class=\"grow font-bold\">\n @if (!iconOnly) {\n <ng-content></ng-content><div [innerHTML]=\"spxValue\"></div>\n }\n </div>\n </div>\n </div>\n `\n})\nexport class SpxCardItemComponent {\n @HostBinding('class.h-full') hFull = true;\n @Input() icon?: IconProp;\n @Input() iconOnly = false;\n @Input() spxLabel!: string;\n @Input() spxValue!: string;\n @Input() spxSeverity?: SpxSeverityEnum;\n @Input() spxIconSeverity?: SpxSeverityEnum;\n get spxSeverityError() { return this.spxSeverity === SpxSeverityEnum.error; }\n get spxSeverityInfo() { return this.spxSeverity === SpxSeverityEnum.info; }\n get spxSeveritySuccess() { return this.spxSeverity === SpxSeverityEnum.success; }\n get spxSeverityUnknown() { return this.spxSeverity === SpxSeverityEnum.unknown; }\n get spxSeverityWarning() { return this.spxSeverity === SpxSeverityEnum.warning; }\n get spxIconSeverityError() { return this.spxIconSeverity === SpxSeverityEnum.error; }\n get spxIconSeverityInfo() { return this.spxIconSeverity === SpxSeverityEnum.info; }\n get spxIconSeveritySuccess() { return this.spxIconSeverity === SpxSeverityEnum.success; }\n get spxIconSeverityUnknown() { return this.spxIconSeverity === SpxSeverityEnum.unknown; }\n get spxIconSeverityWarning() { return this.spxIconSeverity === SpxSeverityEnum.warning; }\n}\n","import { Component, Input } from '@angular/core';\n\n@Component({\n selector: 'spx-card-grid',\n standalone: true,\n template: `\n <div class='grid gap-3 items-stretch'\n [class.min-[300px]:grid-cols-2]=\"minWidth2Columns == 300\"\n [class.min-[320px]:grid-cols-2]=\"minWidth2Columns == 320\"\n [class.min-[340px]:grid-cols-2]=\"minWidth2Columns == 340\"\n [class.min-[360px]:grid-cols-2]=\"minWidth2Columns == 360\"\n [class.min-[380px]:grid-cols-2]=\"minWidth2Columns == 380\"\n [class.min-[400px]:grid-cols-2]=\"minWidth2Columns == 400\"\n [class.min-[420px]:grid-cols-2]=\"minWidth2Columns == 420\"\n [class.min-[440px]:grid-cols-2]=\"minWidth2Columns == 440\"\n [class.min-[460px]:grid-cols-2]=\"minWidth2Columns == 460\">\n <ng-content></ng-content>\n </div>\n `,\n})\nexport class SpxCardGridComponent {\n @Input() minWidth2Columns?: 300 | 320 | 340 | 360 | 380 | 400 | 420 | 440 | 460 = 460;\n}\n","import { NgClass } from '@angular/common';\nimport { Component, Input } from '@angular/core';\nimport { FontAwesomeModule } from '@fortawesome/angular-fontawesome';\nimport { IconProp } from '@fortawesome/angular-fontawesome/types';\n\n@Component({\n selector: 'spx-card-line',\n imports: [\n FontAwesomeModule,\n NgClass\n ],\n template: `\n<div class=\"items-center\" [class.flex]=\"!newOrderScreen\">\n <div class=\"block w-24 text-gray-600 dark:text-gray-200 text-xs mb-1\" [class.pt-1]=\"!newOrderScreen\" [innerHTML]=\"text\"></div>\n <div class=\"flex\">\n @if (icon) {\n <fa-icon [icon]=\"icon\" class=\"text-lg mr-3 w-6 text-center\"></fa-icon>\n }\n @if (showPositiveOrNegative && numericValue < 0) {\n <div class=\"rounded-full w-4 h-4 mr-2 bg-sky-600\">&nbsp;</div>\n }\n @if (!showProgress) {\n <span class=\"block font-medium grow whitespace-pre-line leading-5\">\n <span [innerHTML]=\"displayValue(value)\"></span>\n <ng-content></ng-content>\n @if (unit) {\n <span> {{ unit }}</span>\n }\n @if (!unit && secondValue !== null && secondValue !== undefined) {\n / {{ displayValue(secondValue) }}\n }\n </span>\n }\n </div>\n @if (showProgress) {\n <div class=\"block font-medium grow whitespace-pre-line text-gray-600 dark:text-gray-200\">\n <div class=\"flex\">\n <div class=\"flex grow gap-2\">\n <div class=\"bg-gray-200 my-0.5 h-5 w-full rounded\">\n <div class=\"bg-teal-600 h-5 rounded\" [style.width]=\"((+value) / (secondValue ? +secondValue : 0)) * 100 + '%'\"></div>\n </div>\n </div>\n <div class=\"flex text-left pl-3 gap-2\">\n <div class=\"block w-16 text-right\">{{ value }} / {{ secondValue }}</div>\n </div>\n </div>\n </div>\n }\n</div>\n`\n})\nexport class SpxCardLineComponent {\n @Input() icon?: IconProp;\n @Input() showPositiveOrNegative = false;\n @Input() text: string | unknown;\n @Input() value!: string | number;\n @Input() secondValue?: string | number;\n @Input() showProgress?: boolean;\n @Input() unit?: string;\n @Input() newOrderScreen = false;\n\n get numericValue() {\n return this.value as number;\n }\n\n constructor() { }\n\n public displayValue(val: string | number | unknown): string | number | unknown {\n return val || val === 0 ? val : '—';\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;MAmCa,gBAAgB,CAAA;AAS3B,IAAA,WAAA,GAAA;QARS,IAAS,CAAA,SAAA,GAAG,IAAI;QAChB,IAAU,CAAA,UAAA,GAAG,IAAI;QACjB,IAAY,CAAA,YAAA,GAAG,KAAK;QAGpB,IAAS,CAAA,SAAA,GAAG,KAAK;AAChB,QAAA,IAAA,CAAA,OAAO,GAAuB,IAAI,YAAY,EAAQ;;AAIhE,IAAA,YAAY,CAAC,GAAoB,EAAA;AAC/B,QAAA,OAAO,GAAG,KAAK,GAAG,KAAK,CAAC,CAAC,GAAG,GAAG,GAAG,GAAG;;IAGvC,OAAO,GAAA;AACL,QAAA,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE;;8GAhBV,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,C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,EAAA,CAAA;sBAAnB;gBACQ,YAAY,EAAA,CAAA;sBAApB;gBACQ,IAAI,EAAA,CAAA;sBAAZ;gBACQ,cAAc,EAAA,CAAA;sBAAtB;;;AC3DH;;AAEG;;;;"}
1
+ {"version":3,"file":"softpak-components-spx-card.mjs","sources":["../../../../projects/softpak/components/spx-card/spx-card.component.ts","../../../../projects/softpak/components/spx-card/spx-card-item/spx-card-item.component.ts","../../../../projects/softpak/components/spx-card/spx-card-item/spx-card-item.component.html","../../../../projects/softpak/components/spx-card/spx-card-grid/spx-card-grid.component.ts","../../../../projects/softpak/components/spx-card/spx-card-grid/spx-card-grid.component.html","../../../../projects/softpak/components/spx-card/spx-card-line/spx-card-line.component.ts","../../../../projects/softpak/components/spx-card/spx-card-line/spx-card-line.component.html","../../../../projects/softpak/components/spx-card/softpak-components-spx-card.ts"],"sourcesContent":["import { NgClass } from '@angular/common';\r\nimport { Component, EventEmitter, Input, Output } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'spx-card',\r\n imports: [\r\n NgClass\r\n ],\r\n template: `\r\n <button type=\"button\"\r\n class=\"block w-full text-left rounded font-body items-stretch\"\r\n [class.flex]=\"tableView\"\r\n [class.cursor-pointer]=\"clickable\"\r\n [class.cursor-not-allowed]=\"!clickable\"\r\n [class.focus:ring-2]=\"clickable\"\r\n [class.focus:ring-offset-2]=\"clickable\"\r\n [class.focus:ring-blue-500]=\"clickable\"\r\n (click)=\"onClick()\"\r\n [tabIndex]=\"clickable ? 0 : -1\">\r\n <div class=\"text-gray-900 opacity-90\" [class.w-96]=\"tableView\">\r\n <ng-content select=\"[card-header]\"></ng-content>\r\n </div>\r\n <ng-content select=\"[card-content-top]\"></ng-content>\r\n @if (hasContent) {\r\n <div class=\"bg-white dark:bg-gray-600 p-3\">\r\n <ng-content select=\"[card-content]\"></ng-content>\r\n </div>\r\n }\r\n <ng-content select=\"[card-content-bottom]\"></ng-content>\r\n <div class=\"bg-gray-50 dark:bg-gray-700 p-3 grow\" [class.rounded-b-lg]=\"!onDetailPage && !tableView\" [class.rounded-r-lg]=\"!onDetailPage && tableView\">\r\n <ng-content select=\"[card-lines]\"></ng-content>\r\n </div>\r\n </button>\r\n `\r\n})\r\nexport class SpxCardComponent {\r\n @Input() clickable = true;\r\n @Input() hasContent = true;\r\n @Input() onDetailPage = false;\r\n @Input() text!: string;\r\n @Input() unit?: string;\r\n @Input() tableView = false;\r\n @Output() clicked: EventEmitter<void> = new EventEmitter<void>();\r\n\r\n constructor() { }\r\n\r\n displayValue(val: string | number): string | number {\r\n return val || (val === 0) ? val : '—';\r\n }\r\n\r\n onClick(): void {\r\n this.clicked.emit();\r\n }\r\n}\r\n","\r\nimport { ChangeDetectionStrategy, Component, HostBinding, input } from '@angular/core';\r\nimport { FaIconComponent } from '@fortawesome/angular-fontawesome';\r\nimport { IconProp } from '@fortawesome/angular-fontawesome/types';\r\nimport { SpxSeverityEnum } from '@softpak/components/spx-helpers';\r\nimport { IsSeverityPipe } from '@softpak/components/spx-pipes';\r\n\r\n@Component({\r\n selector: 'spx-card-item',\r\n imports: [\r\n FaIconComponent,\r\n IsSeverityPipe\r\n ],\r\n templateUrl: './spx-card-item.component.html',\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class SpxCardItemComponent {\r\n @HostBinding('class.h-full') hFull = true;\r\n readonly icon = input<IconProp>();\r\n readonly iconOnly = input(false);\r\n readonly spxLabel = input.required<string>();\r\n readonly spxValue = input.required<string>();\r\n readonly spxSeverity = input.required<SpxSeverityEnum>();\r\n readonly spxIconSeverity = input<SpxSeverityEnum>();\r\n SpxSeverityEnum = SpxSeverityEnum; \r\n}\r\n","<div class='py-2 px-3 rounded h-full'\r\n [class.bg-slate-100]=\"!spxSeverity()\"\r\n [class.dark:bg-slate-600]=\"!spxSeverity()\"\r\n [class.text-black]=\"this.spxSeverity() | isSeverity: SpxSeverityEnum.warning\"\r\n [class.text-white]=\"this.spxSeverity() | isSeverity: [SpxSeverityEnum.error, SpxSeverityEnum.success, SpxSeverityEnum.unknown, SpxSeverityEnum.info]\"\r\n [class.bg-red-700]=\"this.spxSeverity() | isSeverity: SpxSeverityEnum.error\"\r\n [class.bg-green-700]=\"this.spxSeverity() | isSeverity: SpxSeverityEnum.success\"\r\n [class.bg-blue-700]=\"this.spxSeverity() | isSeverity: SpxSeverityEnum.info\"\r\n [class.bg-gray-400]=\"this.spxSeverity() | isSeverity: SpxSeverityEnum.unknown\"\r\n [class.bg-amber-700]=\"this.spxSeverity() | isSeverity: SpxSeverityEnum.warning\">\r\n <div class=\"font-small leading-normal\">{{ spxLabel() }}</div>\r\n <div class=\"flex gap-4 text-lg leading-normal py-1\">\r\n @if (icon()) {\r\n <div class=\"font-bold text-center leading-normal max-w-12 min-w-12\" [class.grow]=\"iconOnly()\">\r\n <div\r\n class=\"px-3 py-1 text-white rounded\"\r\n [class.bg-black]=\"!spxIconSeverity()\"\r\n [class.bg-red-700]=\"this.spxSeverity() | isSeverity: SpxSeverityEnum.error\"\r\n [class.bg-green-700]=\"this.spxSeverity() | isSeverity: SpxSeverityEnum.success\"\r\n [class.bg-blue-700]=\"this.spxSeverity() | isSeverity: SpxSeverityEnum.info\"\r\n [class.bg-gray-400]=\"this.spxSeverity() | isSeverity: SpxSeverityEnum.unknown\"\r\n [class.bg-amber-700]=\"this.spxSeverity() | isSeverity: SpxSeverityEnum.warning\">\r\n <fa-icon [icon]=\"icon()!\"></fa-icon>\r\n </div>\r\n </div>\r\n }\r\n <div class=\"grow font-bold\">\r\n @if (!iconOnly()) {\r\n <ng-content></ng-content><div [innerHTML]=\"spxValue()\"></div>\r\n }\r\n </div>\r\n </div>\r\n </div>","import { ChangeDetectionStrategy, Component, input } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'spx-card-grid',\r\n standalone: true,\r\n templateUrl: './spx-card-grid.component.html',\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class SpxCardGridComponent {\r\n readonly minWidth2Columns = input<(300 | 320 | 340 | 360 | 380 | 400 | 420 | 440 | 460) | undefined>(460);\r\n}\r\n","<div class='grid gap-3 items-stretch'\r\n [class.min-[300px]:grid-cols-2]=\"minWidth2Columns() == 300\"\r\n [class.min-[320px]:grid-cols-2]=\"minWidth2Columns() == 320\"\r\n [class.min-[340px]:grid-cols-2]=\"minWidth2Columns() == 340\"\r\n [class.min-[360px]:grid-cols-2]=\"minWidth2Columns() == 360\"\r\n [class.min-[380px]:grid-cols-2]=\"minWidth2Columns() == 380\"\r\n [class.min-[400px]:grid-cols-2]=\"minWidth2Columns() == 400\"\r\n [class.min-[420px]:grid-cols-2]=\"minWidth2Columns() == 420\"\r\n [class.min-[440px]:grid-cols-2]=\"minWidth2Columns() == 440\"\r\n [class.min-[460px]:grid-cols-2]=\"minWidth2Columns() == 460\">\r\n <ng-content></ng-content>\r\n </div>","import { ChangeDetectionStrategy, Component, computed, input, model } from '@angular/core';\r\nimport { FontAwesomeModule } from '@fortawesome/angular-fontawesome';\r\nimport { IconProp } from '@fortawesome/angular-fontawesome/types';\r\n\r\n@Component({\r\n selector: 'spx-card-line',\r\n imports: [FontAwesomeModule],\r\n templateUrl: './spx-card-line.component.html',\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class SpxCardLineComponent {\r\n readonly icon = input<IconProp>();\r\n readonly showPositiveOrNegative = input(false);\r\n readonly text = input<string | unknown>();\r\n readonly value = model.required<string | number>();\r\n readonly secondValue = input<string | number>();\r\n readonly showProgress = input<boolean>();\r\n readonly unit = input<string>();\r\n readonly newOrderScreen = input(false);\r\n\r\n numericValue = computed(() => {return this.value() as number});\r\n\r\n public displayValue(val: string | number | unknown): string | number | unknown {\r\n return val || val === 0 ? val : '—';\r\n }\r\n}\r\n","<div class=\"items-center\" [class.flex]=\"!newOrderScreen()\">\r\n <div class=\"block w-24 text-gray-600 dark:text-gray-200 text-xs mb-1\" [class.pt-1]=\"!newOrderScreen()\" [innerHTML]=\"text()\"></div>\r\n <div class=\"flex\">\r\n @if (icon()) {\r\n <fa-icon [icon]=\"icon()!\" class=\"text-lg mr-3 w-6 text-center\"></fa-icon>\r\n }\r\n @if (showPositiveOrNegative() && numericValue() < 0) {\r\n <div class=\"rounded-full w-4 h-4 mr-2 bg-sky-600\">&nbsp;</div>\r\n }\r\n @if (!showProgress()) {\r\n <span class=\"block font-medium grow whitespace-pre-line leading-5\">\r\n <span [innerHTML]=\"displayValue(value())\"></span>\r\n <ng-content></ng-content>\r\n @if (unit()) {\r\n <span> {{ unit() }}</span>\r\n }\r\n @if (!unit() && secondValue() !== null && secondValue() !== undefined) {\r\n / {{ displayValue(secondValue()) }}\r\n }\r\n </span>\r\n }\r\n </div>\r\n @if (showProgress()) {\r\n <div class=\"block font-medium grow whitespace-pre-line text-gray-600 dark:text-gray-200\">\r\n <div class=\"flex\">\r\n <div class=\"flex grow gap-2\">\r\n <div class=\"bg-gray-200 my-0.5 h-5 w-full rounded\">\r\n <div class=\"bg-teal-600 h-5 rounded\" [style.width]=\"((+value()) / (secondValue() ? +secondValue()! : 0)) * 100 + '%'\"></div>\r\n </div>\r\n </div>\r\n <div class=\"flex text-left pl-3 gap-2\">\r\n <div class=\"block w-16 text-right\">{{ value() }} / {{ secondValue() }}</div>\r\n </div>\r\n </div>\r\n </div>\r\n }\r\n</div>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;MAmCa,gBAAgB,CAAA;AAS3B,IAAA,WAAA,GAAA;QARS,IAAS,CAAA,SAAA,GAAG,IAAI;QAChB,IAAU,CAAA,UAAA,GAAG,IAAI;QACjB,IAAY,CAAA,YAAA,GAAG,KAAK;QAGpB,IAAS,CAAA,SAAA,GAAG,KAAK;AAChB,QAAA,IAAA,CAAA,OAAO,GAAuB,IAAI,YAAY,EAAQ;;AAIhE,IAAA,YAAY,CAAC,GAAoB,EAAA;AAC/B,QAAA,OAAO,GAAG,KAAK,GAAG,KAAK,CAAC,CAAC,GAAG,GAAG,GAAG,GAAG;;IAG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,OAAA,EAAA,EAAA,KAAA,EAAA,aAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECVjC,4lDAoCM,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,ED9BQ,iBAAiB,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,OAAA,EAAA,WAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,QAAA,EAAA,SAAA,EAAA,QAAA,EAAA,QAAA,EAAA,YAAA,EAAA,WAAA,EAAA,UAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAIlB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBANhC,SAAS;AACI,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,eAAe,WAChB,CAAC,iBAAiB,CAAC,EAEX,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,4lDAAA,EAAA;;;AERnD;;AAEG;;;;"}
@@ -2,11 +2,11 @@ import * as i0 from '@angular/core';
2
2
  import { EventEmitter, Component, Input, Output } from '@angular/core';
3
3
  import * as i1 from '@angular/forms';
4
4
  import { FormsModule, ReactiveFormsModule } from '@angular/forms';
5
- import { spxValidatorRequired, SpxValidateControlComponent } from '@softpak/components/spx-validation';
6
- import { SpxInputTypeEnum, SpxInputComponent } from '@softpak/components/spx-inputs';
7
- import { SpxFormButtonTypeEnum, SpxFormViewComponent } from '@softpak/components/spx-form-view';
8
5
  import { SpxButtonComponent } from '@softpak/components/spx-button';
6
+ import { SpxFormButtonTypeEnum, SpxFormViewComponent } from '@softpak/components/spx-form-view';
9
7
  import { SpxSeverityEnum, valuePairToValue } from '@softpak/components/spx-helpers';
8
+ import { SpxInputTypeEnum, SpxInputComponent } from '@softpak/components/spx-inputs';
9
+ import { spxValidatorRequired, SpxValidateControlComponent } from '@softpak/components/spx-validation';
10
10
 
11
11
  const sectionChangeDetails = 'changeDetails';
12
12
  const ctrlContainerNumber = 'containerNumber';
@@ -152,7 +152,7 @@ class SpxChangeDetailsComponent {
152
152
  });
153
153
  }
154
154
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: SpxChangeDetailsComponent, deps: [{ token: i1.FormBuilder }], target: i0.ɵɵFactoryTarget.Component }); }
155
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.5", type: SpxChangeDetailsComponent, isStandalone: true, selector: "spx-change-details", inputs: { formGroup: "formGroup", suggestions: "suggestions", textCategory: "textCategory", textContainerNumber: "textContainerNumber", textContainerType: "textContainerType", textCustomer: "textCustomer", textLicensePlate: "textLicensePlate", textSave: "textSave", textTonsTested: "textTonsTested" }, outputs: { spxBlurCategory: "spxBlurCategory", spxBlurContainerType: "spxBlurContainerType", spxSearchCategory: "spxSearchCategory", spxSearchContainerType: "spxSearchContainerType", spxSearchTonsTested: "spxSearchTonsTested", submit: "submit" }, ngImport: i0, template: "<form [formGroup]=\"formGroup\" class=\"max-w-lg mx-auto flex flex-col gap-3\" (ngSubmit)=\"onSubmit()\">\n <spx-form-view\n [spxFormGroup]=\"formGroup\"\n [spxForm]=\"form\"\n [spxSuggestions]=\"suggestions\"\n (spxBlur)=\"onBlur($event)\"\n (spxSearch)=\"onSearch($event)\">\n </spx-form-view>\n</form>", dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: SpxFormViewComponent, selector: "spx-form-view", inputs: ["spxFormGroup", "spxForm", "spxSuggestions"], outputs: ["spxBlur", "spxClick", "spxSearch"] }] }); }
155
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.5", type: SpxChangeDetailsComponent, isStandalone: true, selector: "spx-change-details", inputs: { formGroup: "formGroup", suggestions: "suggestions", textCategory: "textCategory", textContainerNumber: "textContainerNumber", textContainerType: "textContainerType", textCustomer: "textCustomer", textLicensePlate: "textLicensePlate", textSave: "textSave", textTonsTested: "textTonsTested" }, outputs: { spxBlurCategory: "spxBlurCategory", spxBlurContainerType: "spxBlurContainerType", spxSearchCategory: "spxSearchCategory", spxSearchContainerType: "spxSearchContainerType", spxSearchTonsTested: "spxSearchTonsTested", submit: "submit" }, ngImport: i0, template: "<form [formGroup]=\"formGroup\" class=\"max-w-lg mx-auto flex flex-col gap-3\" (ngSubmit)=\"onSubmit()\">\r\n <spx-form-view\r\n [spxFormGroup]=\"formGroup\"\r\n [spxForm]=\"form\"\r\n [spxSuggestions]=\"suggestions\"\r\n (spxBlur)=\"onBlur($event)\"\r\n (spxSearch)=\"onSearch($event)\">\r\n </spx-form-view>\r\n</form>", dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: SpxFormViewComponent, selector: "spx-form-view", inputs: ["spxFormGroup", "spxForm", "spxSuggestions"], outputs: ["spxBlur", "spxClick", "spxSearch"] }] }); }
156
156
  }
157
157
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: SpxChangeDetailsComponent, decorators: [{
158
158
  type: Component,
@@ -163,7 +163,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImpor
163
163
  SpxFormViewComponent,
164
164
  SpxInputComponent,
165
165
  SpxValidateControlComponent
166
- ], template: "<form [formGroup]=\"formGroup\" class=\"max-w-lg mx-auto flex flex-col gap-3\" (ngSubmit)=\"onSubmit()\">\n <spx-form-view\n [spxFormGroup]=\"formGroup\"\n [spxForm]=\"form\"\n [spxSuggestions]=\"suggestions\"\n (spxBlur)=\"onBlur($event)\"\n (spxSearch)=\"onSearch($event)\">\n </spx-form-view>\n</form>" }]
166
+ ], template: "<form [formGroup]=\"formGroup\" class=\"max-w-lg mx-auto flex flex-col gap-3\" (ngSubmit)=\"onSubmit()\">\r\n <spx-form-view\r\n [spxFormGroup]=\"formGroup\"\r\n [spxForm]=\"form\"\r\n [spxSuggestions]=\"suggestions\"\r\n (spxBlur)=\"onBlur($event)\"\r\n (spxSearch)=\"onSearch($event)\">\r\n </spx-form-view>\r\n</form>" }]
167
167
  }], ctorParameters: () => [{ type: i1.FormBuilder }], propDecorators: { formGroup: [{
168
168
  type: Input
169
169
  }], suggestions: [{