@softpak/components 19.19.0 → 19.21.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 (83) hide show
  1. package/README.md +24 -24
  2. package/fesm2022/softpak-components-spx-404-page.mjs +2 -2
  3. package/fesm2022/softpak-components-spx-404-page.mjs.map +1 -1
  4. package/fesm2022/softpak-components-spx-alert.mjs +7 -6
  5. package/fesm2022/softpak-components-spx-alert.mjs.map +1 -1
  6. package/fesm2022/softpak-components-spx-app-configuration.mjs.map +1 -1
  7. package/fesm2022/softpak-components-spx-app-expiry.mjs +23 -91
  8. package/fesm2022/softpak-components-spx-app-expiry.mjs.map +1 -1
  9. package/fesm2022/softpak-components-spx-button.mjs +8 -22
  10. package/fesm2022/softpak-components-spx-button.mjs.map +1 -1
  11. package/fesm2022/softpak-components-spx-capitalize.mjs.map +1 -1
  12. package/fesm2022/softpak-components-spx-card.mjs +20 -91
  13. package/fesm2022/softpak-components-spx-card.mjs.map +1 -1
  14. package/fesm2022/softpak-components-spx-change-details.mjs +59 -104
  15. package/fesm2022/softpak-components-spx-change-details.mjs.map +1 -1
  16. package/fesm2022/softpak-components-spx-channel-selection.mjs +52 -52
  17. package/fesm2022/softpak-components-spx-channel-selection.mjs.map +1 -1
  18. package/fesm2022/softpak-components-spx-check-digit.mjs +24 -28
  19. package/fesm2022/softpak-components-spx-check-digit.mjs.map +1 -1
  20. package/fesm2022/softpak-components-spx-confirm.mjs +4 -4
  21. package/fesm2022/softpak-components-spx-confirm.mjs.map +1 -1
  22. package/fesm2022/softpak-components-spx-form-section.mjs +8 -33
  23. package/fesm2022/softpak-components-spx-form-section.mjs.map +1 -1
  24. package/fesm2022/softpak-components-spx-form-view.mjs +39 -53
  25. package/fesm2022/softpak-components-spx-form-view.mjs.map +1 -1
  26. package/fesm2022/softpak-components-spx-helpers.mjs.map +1 -1
  27. package/fesm2022/softpak-components-spx-inputs.mjs +33 -24
  28. package/fesm2022/softpak-components-spx-inputs.mjs.map +1 -1
  29. package/fesm2022/softpak-components-spx-navigation.mjs +34 -89
  30. package/fesm2022/softpak-components-spx-navigation.mjs.map +1 -1
  31. package/fesm2022/softpak-components-spx-number-check.mjs +91 -198
  32. package/fesm2022/softpak-components-spx-number-check.mjs.map +1 -1
  33. package/fesm2022/softpak-components-spx-pagination.mjs +12 -21
  34. package/fesm2022/softpak-components-spx-pagination.mjs.map +1 -1
  35. package/fesm2022/softpak-components-spx-patch.mjs +8 -39
  36. package/fesm2022/softpak-components-spx-patch.mjs.map +1 -1
  37. package/fesm2022/softpak-components-spx-pipes.mjs.map +1 -1
  38. package/fesm2022/softpak-components-spx-progress-bar.mjs +8 -22
  39. package/fesm2022/softpak-components-spx-progress-bar.mjs.map +1 -1
  40. package/fesm2022/softpak-components-spx-spinner.mjs +15 -160
  41. package/fesm2022/softpak-components-spx-spinner.mjs.map +1 -1
  42. package/fesm2022/softpak-components-spx-stock-info.mjs +71 -128
  43. package/fesm2022/softpak-components-spx-stock-info.mjs.map +1 -1
  44. package/fesm2022/softpak-components-spx-storage.mjs.map +1 -1
  45. package/fesm2022/softpak-components-spx-suggestion.mjs +2 -2
  46. package/fesm2022/softpak-components-spx-suggestion.mjs.map +1 -1
  47. package/fesm2022/softpak-components-spx-toaster.mjs +35 -162
  48. package/fesm2022/softpak-components-spx-toaster.mjs.map +1 -1
  49. package/fesm2022/softpak-components-spx-toggle.mjs +2 -2
  50. package/fesm2022/softpak-components-spx-toggle.mjs.map +1 -1
  51. package/fesm2022/softpak-components-spx-translate.mjs.map +1 -1
  52. package/fesm2022/softpak-components-spx-update.mjs +5 -5
  53. package/fesm2022/softpak-components-spx-update.mjs.map +1 -1
  54. package/fesm2022/softpak-components-spx-validation.mjs +56 -55
  55. package/fesm2022/softpak-components-spx-validation.mjs.map +1 -1
  56. package/package.json +24 -24
  57. package/spx-alert/spx-alert.component.d.ts +1 -1
  58. package/spx-app-expiry/spx-app-expiry.component.d.ts +14 -14
  59. package/spx-button/spx-button.component.d.ts +0 -3
  60. package/spx-card/spx-card-item/spx-card-item.component.d.ts +0 -1
  61. package/spx-card/spx-card.component.d.ts +8 -9
  62. package/spx-change-details/spx-change-details.component.d.ts +23 -25
  63. package/spx-check-digit/spx-check-digit.component.d.ts +9 -9
  64. package/spx-form-section/spx-form-section.component.d.ts +5 -5
  65. package/spx-form-view/spx-autocomplete-search.component.d.ts +15 -16
  66. package/spx-form-view/spx-form-view.component.d.ts +1 -1
  67. package/spx-inputs/spx-input-text/spx-input-text.component.d.ts +4 -1
  68. package/spx-inputs/spx-input.component.d.ts +1 -0
  69. package/spx-navigation/public-api.d.ts +2 -2
  70. package/spx-navigation/spx-home-tile/spx-home-tile.component.d.ts +11 -0
  71. package/spx-navigation/{spx-home-tiles.component.d.ts → spx-home-tile/spx-home-tiles.component.d.ts} +2 -2
  72. package/spx-navigation/spx-navigation.component.d.ts +11 -8
  73. package/spx-number-check/spx-number-check.component.d.ts +26 -32
  74. package/spx-pagination/spx-pagination.component.d.ts +9 -10
  75. package/spx-patch/spx-patch.component.d.ts +4 -4
  76. package/spx-progress-bar/spx-progress-bar.component.d.ts +3 -3
  77. package/spx-spinner/spx-spinner.component.d.ts +3 -3
  78. package/spx-stock-info/spx-stock-info.component.d.ts +48 -49
  79. package/spx-toaster/src/spx-toaster-message.interface.d.ts +5 -1
  80. package/spx-toaster/src/spx-toaster.component.d.ts +6 -14
  81. package/spx-validation/spx-validate-control.component.d.ts +22 -20
  82. package/tailwind.css +1 -1
  83. package/spx-navigation/spx-home-tile.component.d.ts +0 -11
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { EventEmitter, Component, Input, Output } from '@angular/core';
2
+ import { input, output, computed, Component, ChangeDetectionStrategy } from '@angular/core';
3
3
  import * as i1 from '@angular/forms';
4
4
  import { FormsModule, ReactiveFormsModule } from '@angular/forms';
5
5
  import { spxValidatorRequired } from '@softpak/components/spx-validation';
@@ -26,54 +26,70 @@ const sectionContainerInfo = 'sectionContainerInfo';
26
26
  const sectionCustomer = 'sectionCustomer';
27
27
  const sectionLocation = 'sectionLocation';
28
28
  class SpxStockInfoComponent {
29
- get ctrlCategory() { return this.formGroup.get(ctrlCategory); }
30
- get ctrlContainerStatus() { return this.formGroup.get(ctrlContainerStatus); }
31
- get ctrlContainerStatusGroup() { return this.formGroup.get(ctrlContainerStatusGroup); }
32
- get ctrlContainerType() { return this.formGroup.get(ctrlContainerType); }
33
- get ctrlCustomer() { return this.formGroup.get(ctrlCustomer); }
34
- get ctrlDepot() { return this.formGroup.get(ctrlDepot); }
35
- get ctrlLocation() { return this.formGroup.get(ctrlLocation); }
36
29
  constructor(formBuilder) {
37
30
  this.formBuilder = formBuilder;
38
- this.depotReadonly = true;
39
- this.suggestions = {};
40
- this.spxBlurCategory = new EventEmitter();
41
- this.spxBlurContainerStatus = new EventEmitter();
42
- this.spxBlurContainerStatusGroup = new EventEmitter();
43
- this.spxBlurContainerType = new EventEmitter();
44
- this.spxBlurCustomer = new EventEmitter();
45
- this.spxBlurDepot = new EventEmitter();
46
- this.spxClickContainer = new EventEmitter();
47
- this.spxPageChange = new EventEmitter();
48
- this.spxSearchCategory = new EventEmitter();
49
- this.spxSearchContainerStatus = new EventEmitter();
50
- this.spxSearchContainerStatusGroup = new EventEmitter();
51
- this.spxSearchContainerType = new EventEmitter();
52
- this.spxSearchCustomer = new EventEmitter();
53
- this.spxSearchDepot = new EventEmitter();
54
- this.spxSubmit = new EventEmitter();
31
+ this.depotReadonly = input(false);
32
+ this.statusGroupsInPatch = input.required();
33
+ this.containers = input.required();
34
+ this.currentPage = input.required();
35
+ this.faArrowLeft = input.required();
36
+ this.faArrowRight = input.required();
37
+ this.faContainerStorage = input.required();
38
+ this.formGroup = input.required();
39
+ this.loaded = input.required();
40
+ this.pageSize = input.required();
41
+ this.suggestions = input({});
42
+ this.textCategory = input.required();
43
+ this.textContainerInfo = input.required();
44
+ this.textContainerStatus = input.required();
45
+ this.textContainerStatusGroup = input.required();
46
+ this.textContainerType = input.required();
47
+ this.textCustomer = input.required();
48
+ this.textDepot = input.required();
49
+ this.textLocation = input.required();
50
+ this.textNext = input.required();
51
+ this.textPage = input.required();
52
+ this.textPrevious = input.required();
53
+ this.textSearch = input.required();
54
+ this.textNoResults = input.required();
55
+ this.textYouCanChangeYourFilters = input.required();
56
+ this.spxBlurCategory = output();
57
+ this.spxBlurContainerStatus = output();
58
+ this.spxBlurContainerStatusGroup = output();
59
+ this.spxBlurContainerType = output();
60
+ this.spxBlurCustomer = output();
61
+ this.spxBlurDepot = output();
62
+ this.spxClickContainer = output();
63
+ this.spxPageChange = output();
64
+ this.spxSearchCategory = output();
65
+ this.spxSearchContainerStatus = output();
66
+ this.spxSearchContainerStatusGroup = output();
67
+ this.spxSearchContainerType = output();
68
+ this.spxSearchCustomer = output();
69
+ this.spxSearchDepot = output();
70
+ this.spxSubmit = output();
55
71
  this.severityInfo = SpxSeverityEnum.info;
56
72
  this.form = {
57
73
  buttons: [
58
74
  {
59
75
  severity: SpxSeverityEnum.success,
60
76
  type: SpxFormButtonTypeEnum.submit,
61
- label: () => this.textSearch,
77
+ label: () => this.textSearch(),
62
78
  }
63
79
  ],
64
80
  sections: [
65
81
  {
66
82
  key: sectionLocation,
67
83
  show: () => true,
68
- title: () => this.textLocation,
84
+ title: () => this.textLocation(),
69
85
  fields: [
70
86
  {
71
87
  key: ctrlDepot,
72
- label: () => this.textDepot,
88
+ label: () => this.textDepot(),
73
89
  type: () => SpxInputTypeEnum.autocomplete,
74
90
  defaultValue: () => null,
75
91
  validators: () => [spxValidatorRequired()],
76
- readonly: () => this.depotReadonly,
92
+ readonly: () => this.depotReadonly(),
77
93
  suggestions: () => true,
78
94
  afterValueChange: undefined,
79
95
  show: () => true,
@@ -81,7 +97,7 @@ class SpxStockInfoComponent {
81
97
  },
82
98
  {
83
99
  key: ctrlLocation,
84
- label: () => this.textLocation,
100
+ label: () => this.textLocation(),
85
101
  type: () => SpxInputTypeEnum.text,
86
102
  defaultValue: () => null,
87
103
  validators: () => [],
@@ -96,11 +112,11 @@ class SpxStockInfoComponent {
96
112
  {
97
113
  key: sectionCustomer,
98
114
  show: () => true,
99
- title: () => this.textCustomer,
115
+ title: () => this.textCustomer(),
100
116
  fields: [
101
117
  {
102
118
  key: ctrlCustomer,
103
- label: () => this.textCustomer,
119
+ label: () => this.textCustomer(),
104
120
  type: () => SpxInputTypeEnum.autocomplete,
105
121
  defaultValue: () => null,
106
122
  validators: () => [],
@@ -115,11 +131,11 @@ class SpxStockInfoComponent {
115
131
  {
116
132
  key: sectionContainerInfo,
117
133
  show: () => true,
118
- title: () => this.textContainerInfo,
134
+ title: () => this.textContainerInfo(),
119
135
  fields: [
120
136
  {
121
137
  key: ctrlCategory,
122
- label: () => this.textCategory,
138
+ label: () => this.textCategory(),
123
139
  type: () => SpxInputTypeEnum.autocomplete,
124
140
  defaultValue: () => null,
125
141
  validators: () => [],
@@ -131,7 +147,7 @@ class SpxStockInfoComponent {
131
147
  },
132
148
  {
133
149
  key: ctrlContainerStatus,
134
- label: () => this.textContainerStatus,
150
+ label: () => this.textContainerStatus(),
135
151
  type: () => SpxInputTypeEnum.autocomplete,
136
152
  defaultValue: () => null,
137
153
  validators: () => [],
@@ -143,19 +159,19 @@ class SpxStockInfoComponent {
143
159
  },
144
160
  {
145
161
  key: ctrlContainerStatusGroup,
146
- label: () => this.textContainerStatusGroup,
162
+ label: () => this.textContainerStatusGroup(),
147
163
  type: () => SpxInputTypeEnum.autocomplete,
148
164
  defaultValue: () => null,
149
165
  validators: () => [],
150
166
  readonly: () => false,
151
167
  suggestions: () => true,
152
168
  afterValueChange: undefined,
153
- show: () => this.statusGroupsInPatch,
169
+ show: () => this.statusGroupsInPatch(),
154
170
  capitalize: () => true,
155
171
  },
156
172
  {
157
173
  key: ctrlContainerType,
158
- label: () => this.textContainerType,
174
+ label: () => this.textContainerType(),
159
175
  type: () => SpxInputTypeEnum.autocomplete,
160
176
  defaultValue: () => null,
161
177
  validators: () => [],
@@ -169,6 +185,13 @@ class SpxStockInfoComponent {
169
185
  },
170
186
  ]
171
187
  };
188
+ this.ctrlCategory = computed(() => this.formGroup()?.get(ctrlCategory));
189
+ this.ctrlContainerStatus = computed(() => this.formGroup()?.get(ctrlContainerStatus));
190
+ this.ctrlContainerStatusGroup = computed(() => this.formGroup()?.get(ctrlContainerStatusGroup));
191
+ this.ctrlContainerType = computed(() => this.formGroup()?.get(ctrlContainerType));
192
+ this.ctrlCustomer = computed(() => this.formGroup()?.get(ctrlCustomer));
193
+ this.ctrlDepot = computed(() => this.formGroup()?.get(ctrlDepot));
194
+ this.ctrlLocation = computed(() => this.formGroup()?.get(ctrlLocation));
172
195
  }
173
196
  createForm() {
174
197
  return SpxFormViewComponent.createForm(this.formBuilder, this.form.sections);
@@ -226,17 +249,17 @@ class SpxStockInfoComponent {
226
249
  }
227
250
  onSubmit() {
228
251
  this.spxSubmit.emit({
229
- ctrlCategory: this.ctrlCategory.value,
230
- ctrlContainerStatus: this.ctrlContainerStatus.value,
231
- ctrlContainerStatusGroup: this.ctrlContainerStatusGroup.value,
232
- ctrlContainerType: this.ctrlContainerType.value,
233
- ctrlCustomer: this.ctrlCustomer.value,
234
- ctrlDepot: this.ctrlDepot.value,
235
- ctrlLocation: this.ctrlLocation.value,
252
+ ctrlCategory: this.ctrlCategory().value,
253
+ ctrlContainerStatus: this.ctrlContainerStatus().value,
254
+ ctrlContainerStatusGroup: this.ctrlContainerStatusGroup().value,
255
+ ctrlContainerType: this.ctrlContainerType().value,
256
+ ctrlCustomer: this.ctrlCustomer().value,
257
+ ctrlDepot: this.ctrlDepot().value,
258
+ ctrlLocation: this.ctrlLocation().value,
236
259
  });
237
260
  }
238
261
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: SpxStockInfoComponent, deps: [{ token: i1.FormBuilder }], target: i0.ɵɵFactoryTarget.Component }); }
239
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.5", type: SpxStockInfoComponent, isStandalone: true, selector: "spx-stock-info", inputs: { depotReadonly: "depotReadonly", statusGroupsInPatch: "statusGroupsInPatch", containers: "containers", currentPage: "currentPage", faArrowLeft: "faArrowLeft", faArrowRight: "faArrowRight", faContainerStorage: "faContainerStorage", formGroup: "formGroup", loaded: "loaded", pageSize: "pageSize", suggestions: "suggestions", textCategory: "textCategory", textContainerInfo: "textContainerInfo", textContainerStatus: "textContainerStatus", textContainerStatusGroup: "textContainerStatusGroup", textContainerType: "textContainerType", textCustomer: "textCustomer", textDepot: "textDepot", textLocation: "textLocation", textNext: "textNext", textPage: "textPage", textPrevious: "textPrevious", textSearch: "textSearch", textNoResults: "textNoResults", textYouCanChangeYourFilters: "textYouCanChangeYourFilters" }, outputs: { spxBlurCategory: "spxBlurCategory", spxBlurContainerStatus: "spxBlurContainerStatus", spxBlurContainerStatusGroup: "spxBlurContainerStatusGroup", spxBlurContainerType: "spxBlurContainerType", spxBlurCustomer: "spxBlurCustomer", spxBlurDepot: "spxBlurDepot", spxClickContainer: "spxClickContainer", spxPageChange: "spxPageChange", spxSearchCategory: "spxSearchCategory", spxSearchContainerStatus: "spxSearchContainerStatus", spxSearchContainerStatusGroup: "spxSearchContainerStatusGroup", spxSearchContainerType: "spxSearchContainerType", spxSearchCustomer: "spxSearchCustomer", spxSearchDepot: "spxSearchDepot", spxSubmit: "spxSubmit" }, ngImport: i0, template: "@if (!loaded) {\n <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>\n}\n\n@if (loaded) {\n <div class=\"flex flex-col gap-3\">\n @if (containers.length > 0) {\n <spx-pagination\n [spxPage]=\"currentPage\"\n [spxMaxPages]=\"(containers.length < (pageSize + 1)) ? (currentPage + 1) : currentPage\"\n [faArrowLeft]=\"faArrowLeft\"\n [faArrowRight]=\"faArrowRight\"\n [textPage]=\"textPage\"\n [textPrevious]=\"textPrevious\"\n [textNext]=\"textNext\"\n (spxPageChange)=\"onPageChange($event)\">\n </spx-pagination>\n }\n @if (containers.length === 0) {\n <spx-alert [spxSeverity]=\"severityInfo\" [spxTitle]=\"textNoResults | translate | capitalize\">\n {{ textYouCanChangeYourFilters | translate | capitalize }}\n </spx-alert>\n }\n @for (container of containers; track container; let i = $index) {\n @if (i < pageSize) {\n <spx-card [hasContent]=\"false\" (clicked)=\"goToContainer(container)\">\n <div card-header class=\"card-header rounded-t-lg p-3 bg-sky-200\">\n <div class=\"flex flex-row space-x-3 items-center w-full\">\n <div\n class=\"card-header-icon-left flex basis-10 py-1.5 shrink-0 grow-0 place-items-center rounded bg-sky-400\">\n <fa-icon class=\"mx-auto\" [icon]=\"faContainerStorage\"></fa-icon>\n </div>\n <div class=\"card-header-text-middle grow\">\n <div class=\"block font-medium text-large\">{{ container.formatted.containerNumber }}</div>\n </div>\n <div\n class=\"card-header-icons-right text-sm text-gray-900 leading-5 flex flex-wrap items-stretch text-center font-bold\">\n @if (container.containerStatus) {\n <div class=\"min-w-[36px] px-2 py-1 bg-white text-black\"> {{\n container.formatted.containerStatus }}</div>\n }\n </div>\n </div>\n </div>\n <div card-lines class=\"grid grid-cols-2 gap-2\">\n <spx-card-line [text]=\"textContainerType | translate | capitalize\"\n [value]=\"container.formatted.containerType\"></spx-card-line>\n <spx-card-line [text]=\"textCategory | translate | capitalize\"\n [value]=\"container.formatted.category\"></spx-card-line>\n <spx-card-line [text]=\"textLocation | translate | capitalize\"\n [value]=\"container.formatted.location\"></spx-card-line>\n </div>\n </spx-card>\n }\n }\n @if (containers.length > 0) {\n <spx-pagination\n [spxPage]=\"currentPage\"\n [spxMaxPages]=\"(containers.length < (pageSize + 1)) ? (currentPage + 1) : currentPage\"\n [faArrowLeft]=\"faArrowLeft\"\n [faArrowRight]=\"faArrowRight\"\n [textPage]=\"textPage\"\n [textPrevious]=\"textPrevious\"\n [textNext]=\"textNext\"\n (spxPageChange)=\"onPageChange($event)\">\n </spx-pagination>\n }\n </div>\n}", 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: FontAwesomeModule }, { kind: "component", type: i2.FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "animation", "mask", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "transform", "a11yRole"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: SpxAlertComponent, selector: "spx-alert", inputs: ["spxAutoclose", "spxCloseable", "spxHideTitle", "spxTitle", "spxMarginTop", "spxSeverity"], outputs: ["spxClose", "spxTitleChange"] }, { kind: "pipe", type: SpxCapitalizePipe, name: "capitalize" }, { kind: "component", type: SpxCardComponent, selector: "spx-card", inputs: ["clickable", "hasContent", "onDetailPage", "text", "unit", "tableView"], outputs: ["clicked"] }, { kind: "component", type: SpxCardLineComponent, selector: "spx-card-line", inputs: ["icon", "showPositiveOrNegative", "text", "value", "secondValue", "showProgress", "unit", "newOrderScreen"], outputs: ["valueChange"] }, { kind: "component", type: SpxFormViewComponent, selector: "spx-form-view", inputs: ["spxFormGroup", "spxForm", "spxSuggestions"], outputs: ["spxBlur", "spxClick", "spxSearch"] }, { kind: "component", type: SpxPaginationComponent, selector: "spx-pagination", inputs: ["faArrowLeft", "faArrowRight", "spxPage", "spxMaxPages", "textNext", "textPage", "textPrevious"], outputs: ["spxPageChange"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }] }); }
262
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.5", type: SpxStockInfoComponent, isStandalone: true, selector: "spx-stock-info", inputs: { depotReadonly: { classPropertyName: "depotReadonly", publicName: "depotReadonly", isSignal: true, isRequired: false, transformFunction: null }, statusGroupsInPatch: { classPropertyName: "statusGroupsInPatch", publicName: "statusGroupsInPatch", isSignal: true, isRequired: true, transformFunction: null }, containers: { classPropertyName: "containers", publicName: "containers", isSignal: true, isRequired: true, transformFunction: null }, currentPage: { classPropertyName: "currentPage", publicName: "currentPage", isSignal: true, isRequired: true, transformFunction: null }, faArrowLeft: { classPropertyName: "faArrowLeft", publicName: "faArrowLeft", isSignal: true, isRequired: true, transformFunction: null }, faArrowRight: { classPropertyName: "faArrowRight", publicName: "faArrowRight", isSignal: true, isRequired: true, transformFunction: null }, faContainerStorage: { classPropertyName: "faContainerStorage", publicName: "faContainerStorage", isSignal: true, isRequired: true, transformFunction: null }, formGroup: { classPropertyName: "formGroup", publicName: "formGroup", isSignal: true, isRequired: true, transformFunction: null }, loaded: { classPropertyName: "loaded", publicName: "loaded", isSignal: true, isRequired: true, transformFunction: null }, pageSize: { classPropertyName: "pageSize", publicName: "pageSize", isSignal: true, isRequired: true, transformFunction: null }, suggestions: { classPropertyName: "suggestions", publicName: "suggestions", isSignal: true, isRequired: false, transformFunction: null }, textCategory: { classPropertyName: "textCategory", publicName: "textCategory", isSignal: true, isRequired: true, transformFunction: null }, textContainerInfo: { classPropertyName: "textContainerInfo", publicName: "textContainerInfo", isSignal: true, isRequired: true, transformFunction: null }, textContainerStatus: { classPropertyName: "textContainerStatus", publicName: "textContainerStatus", isSignal: true, isRequired: true, transformFunction: null }, textContainerStatusGroup: { classPropertyName: "textContainerStatusGroup", publicName: "textContainerStatusGroup", isSignal: true, isRequired: true, transformFunction: null }, textContainerType: { classPropertyName: "textContainerType", publicName: "textContainerType", isSignal: true, isRequired: true, transformFunction: null }, textCustomer: { classPropertyName: "textCustomer", publicName: "textCustomer", isSignal: true, isRequired: true, transformFunction: null }, textDepot: { classPropertyName: "textDepot", publicName: "textDepot", isSignal: true, isRequired: true, transformFunction: null }, textLocation: { classPropertyName: "textLocation", publicName: "textLocation", isSignal: true, isRequired: true, transformFunction: null }, textNext: { classPropertyName: "textNext", publicName: "textNext", isSignal: true, isRequired: true, transformFunction: null }, textPage: { classPropertyName: "textPage", publicName: "textPage", isSignal: true, isRequired: true, transformFunction: null }, textPrevious: { classPropertyName: "textPrevious", publicName: "textPrevious", isSignal: true, isRequired: true, transformFunction: null }, textSearch: { classPropertyName: "textSearch", publicName: "textSearch", isSignal: true, isRequired: true, transformFunction: null }, textNoResults: { classPropertyName: "textNoResults", publicName: "textNoResults", isSignal: true, isRequired: true, transformFunction: null }, textYouCanChangeYourFilters: { classPropertyName: "textYouCanChangeYourFilters", publicName: "textYouCanChangeYourFilters", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { spxBlurCategory: "spxBlurCategory", spxBlurContainerStatus: "spxBlurContainerStatus", spxBlurContainerStatusGroup: "spxBlurContainerStatusGroup", spxBlurContainerType: "spxBlurContainerType", spxBlurCustomer: "spxBlurCustomer", spxBlurDepot: "spxBlurDepot", spxClickContainer: "spxClickContainer", spxPageChange: "spxPageChange", spxSearchCategory: "spxSearchCategory", spxSearchContainerStatus: "spxSearchContainerStatus", spxSearchContainerStatusGroup: "spxSearchContainerStatusGroup", spxSearchContainerType: "spxSearchContainerType", spxSearchCustomer: "spxSearchCustomer", spxSearchDepot: "spxSearchDepot", spxSubmit: "spxSubmit" }, ngImport: i0, template: "@if (!loaded()) {\r\n <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>\r\n}\r\n\r\n@if (loaded()) {\r\n <div class=\"flex flex-col gap-3\">\r\n @if (containers().length > 0) {\r\n <spx-pagination\r\n [spxPage]=\"currentPage()\"\r\n [spxMaxPages]=\"(containers().length < (pageSize() + 1)) ? (currentPage() + 1) : currentPage()\"\r\n [faArrowLeft]=\"faArrowLeft()\"\r\n [faArrowRight]=\"faArrowRight()\"\r\n [textPage]=\"textPage()\"\r\n [textPrevious]=\"textPrevious()\"\r\n [textNext]=\"textNext()\"\r\n (spxPageChange)=\"onPageChange($event)\">\r\n </spx-pagination>\r\n }\r\n @if (containers().length === 0) {\r\n <spx-alert [spxSeverity]=\"severityInfo\" [spxTitle]=\"textNoResults() | translate | capitalize\">\r\n {{ textYouCanChangeYourFilters() | translate | capitalize }}\r\n </spx-alert>\r\n }\r\n @for (container of containers(); track container; let i = $index) {\r\n @if (i < pageSize()) {\r\n <spx-card [hasContent]=\"false\" (clicked)=\"goToContainer(container)\">\r\n <div card-header class=\"card-header rounded-t-lg p-3 bg-sky-200\">\r\n <div class=\"flex flex-row space-x-3 items-center w-full\">\r\n <div\r\n class=\"card-header-icon-left flex basis-10 py-1.5 shrink-0 grow-0 place-items-center rounded bg-sky-400\">\r\n <fa-icon class=\"mx-auto\" [icon]=\"faContainerStorage()\"></fa-icon>\r\n </div>\r\n <div class=\"card-header-text-middle grow\">\r\n <div class=\"block font-medium text-large\">{{ container.formatted.containerNumber }}</div>\r\n </div>\r\n <div\r\n class=\"card-header-icons-right text-sm text-gray-900 leading-5 flex flex-wrap items-stretch text-center font-bold\">\r\n @if (container.containerStatus) {\r\n <div class=\"min-w-[36px] px-2 py-1 bg-white text-black\"> {{\r\n container.formatted.containerStatus }}</div>\r\n }\r\n </div>\r\n </div>\r\n </div>\r\n <div card-lines class=\"grid grid-cols-2 gap-2\">\r\n <spx-card-line [text]=\"textContainerType() | translate | capitalize\"\r\n [value]=\"container.formatted.containerType\"></spx-card-line>\r\n <spx-card-line [text]=\"textCategory() | translate | capitalize\"\r\n [value]=\"container.formatted.category\"></spx-card-line>\r\n <spx-card-line [text]=\"textLocation() | translate | capitalize\"\r\n [value]=\"container.formatted.location\"></spx-card-line>\r\n </div>\r\n </spx-card>\r\n }\r\n }\r\n @if (containers().length > 0) {\r\n <spx-pagination\r\n [spxPage]=\"currentPage()\"\r\n [spxMaxPages]=\"(containers().length < (pageSize() + 1)) ? (currentPage() + 1) : currentPage()\"\r\n [faArrowLeft]=\"faArrowLeft()\"\r\n [faArrowRight]=\"faArrowRight()\"\r\n [textPage]=\"textPage()\"\r\n [textPrevious]=\"textPrevious()\"\r\n [textNext]=\"textNext()\"\r\n (spxPageChange)=\"onPageChange($event)\">\r\n </spx-pagination>\r\n }\r\n </div>\r\n}", 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: FontAwesomeModule }, { kind: "component", type: i2.FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "animation", "mask", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "transform", "a11yRole"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: SpxAlertComponent, selector: "spx-alert", inputs: ["spxAutoclose", "spxCloseable", "spxHideTitle", "spxTitle", "spxMarginTop", "spxSeverity"], outputs: ["spxClose", "spxTitleChange"] }, { kind: "pipe", type: SpxCapitalizePipe, name: "capitalize" }, { kind: "component", type: SpxCardComponent, selector: "spx-card", inputs: ["clickable", "hasContent", "onDetailPage", "text", "unit", "tableView"], outputs: ["clicked"] }, { kind: "component", type: SpxCardLineComponent, selector: "spx-card-line", inputs: ["icon", "showPositiveOrNegative", "text", "value", "secondValue", "showProgress", "unit", "newOrderScreen"], outputs: ["valueChange"] }, { kind: "component", type: SpxFormViewComponent, selector: "spx-form-view", inputs: ["spxFormGroup", "spxForm", "spxSuggestions"], outputs: ["spxBlur", "spxClick", "spxSearch"] }, { kind: "component", type: SpxPaginationComponent, selector: "spx-pagination", inputs: ["faArrowLeft", "faArrowRight", "spxPage", "spxMaxPages", "textNext", "textPage", "textPrevious"], outputs: ["spxPageChange"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
240
263
  }
241
264
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: SpxStockInfoComponent, decorators: [{
242
265
  type: Component,
@@ -251,88 +274,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImpor
251
274
  SpxFormViewComponent,
252
275
  SpxPaginationComponent,
253
276
  TranslateModule
254
- ], template: "@if (!loaded) {\n <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>\n}\n\n@if (loaded) {\n <div class=\"flex flex-col gap-3\">\n @if (containers.length > 0) {\n <spx-pagination\n [spxPage]=\"currentPage\"\n [spxMaxPages]=\"(containers.length < (pageSize + 1)) ? (currentPage + 1) : currentPage\"\n [faArrowLeft]=\"faArrowLeft\"\n [faArrowRight]=\"faArrowRight\"\n [textPage]=\"textPage\"\n [textPrevious]=\"textPrevious\"\n [textNext]=\"textNext\"\n (spxPageChange)=\"onPageChange($event)\">\n </spx-pagination>\n }\n @if (containers.length === 0) {\n <spx-alert [spxSeverity]=\"severityInfo\" [spxTitle]=\"textNoResults | translate | capitalize\">\n {{ textYouCanChangeYourFilters | translate | capitalize }}\n </spx-alert>\n }\n @for (container of containers; track container; let i = $index) {\n @if (i < pageSize) {\n <spx-card [hasContent]=\"false\" (clicked)=\"goToContainer(container)\">\n <div card-header class=\"card-header rounded-t-lg p-3 bg-sky-200\">\n <div class=\"flex flex-row space-x-3 items-center w-full\">\n <div\n class=\"card-header-icon-left flex basis-10 py-1.5 shrink-0 grow-0 place-items-center rounded bg-sky-400\">\n <fa-icon class=\"mx-auto\" [icon]=\"faContainerStorage\"></fa-icon>\n </div>\n <div class=\"card-header-text-middle grow\">\n <div class=\"block font-medium text-large\">{{ container.formatted.containerNumber }}</div>\n </div>\n <div\n class=\"card-header-icons-right text-sm text-gray-900 leading-5 flex flex-wrap items-stretch text-center font-bold\">\n @if (container.containerStatus) {\n <div class=\"min-w-[36px] px-2 py-1 bg-white text-black\"> {{\n container.formatted.containerStatus }}</div>\n }\n </div>\n </div>\n </div>\n <div card-lines class=\"grid grid-cols-2 gap-2\">\n <spx-card-line [text]=\"textContainerType | translate | capitalize\"\n [value]=\"container.formatted.containerType\"></spx-card-line>\n <spx-card-line [text]=\"textCategory | translate | capitalize\"\n [value]=\"container.formatted.category\"></spx-card-line>\n <spx-card-line [text]=\"textLocation | translate | capitalize\"\n [value]=\"container.formatted.location\"></spx-card-line>\n </div>\n </spx-card>\n }\n }\n @if (containers.length > 0) {\n <spx-pagination\n [spxPage]=\"currentPage\"\n [spxMaxPages]=\"(containers.length < (pageSize + 1)) ? (currentPage + 1) : currentPage\"\n [faArrowLeft]=\"faArrowLeft\"\n [faArrowRight]=\"faArrowRight\"\n [textPage]=\"textPage\"\n [textPrevious]=\"textPrevious\"\n [textNext]=\"textNext\"\n (spxPageChange)=\"onPageChange($event)\">\n </spx-pagination>\n }\n </div>\n}" }]
255
- }], ctorParameters: () => [{ type: i1.FormBuilder }], propDecorators: { depotReadonly: [{
256
- type: Input
257
- }], statusGroupsInPatch: [{
258
- type: Input
259
- }], containers: [{
260
- type: Input
261
- }], currentPage: [{
262
- type: Input
263
- }], faArrowLeft: [{
264
- type: Input
265
- }], faArrowRight: [{
266
- type: Input
267
- }], faContainerStorage: [{
268
- type: Input
269
- }], formGroup: [{
270
- type: Input
271
- }], loaded: [{
272
- type: Input
273
- }], pageSize: [{
274
- type: Input
275
- }], suggestions: [{
276
- type: Input
277
- }], textCategory: [{
278
- type: Input
279
- }], textContainerInfo: [{
280
- type: Input
281
- }], textContainerStatus: [{
282
- type: Input
283
- }], textContainerStatusGroup: [{
284
- type: Input
285
- }], textContainerType: [{
286
- type: Input
287
- }], textCustomer: [{
288
- type: Input
289
- }], textDepot: [{
290
- type: Input
291
- }], textLocation: [{
292
- type: Input
293
- }], textNext: [{
294
- type: Input
295
- }], textPage: [{
296
- type: Input
297
- }], textPrevious: [{
298
- type: Input
299
- }], textSearch: [{
300
- type: Input
301
- }], textNoResults: [{
302
- type: Input
303
- }], textYouCanChangeYourFilters: [{
304
- type: Input
305
- }], spxBlurCategory: [{
306
- type: Output
307
- }], spxBlurContainerStatus: [{
308
- type: Output
309
- }], spxBlurContainerStatusGroup: [{
310
- type: Output
311
- }], spxBlurContainerType: [{
312
- type: Output
313
- }], spxBlurCustomer: [{
314
- type: Output
315
- }], spxBlurDepot: [{
316
- type: Output
317
- }], spxClickContainer: [{
318
- type: Output
319
- }], spxPageChange: [{
320
- type: Output
321
- }], spxSearchCategory: [{
322
- type: Output
323
- }], spxSearchContainerStatus: [{
324
- type: Output
325
- }], spxSearchContainerStatusGroup: [{
326
- type: Output
327
- }], spxSearchContainerType: [{
328
- type: Output
329
- }], spxSearchCustomer: [{
330
- type: Output
331
- }], spxSearchDepot: [{
332
- type: Output
333
- }], spxSubmit: [{
334
- type: Output
335
- }] } });
277
+ ], changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, template: "@if (!loaded()) {\r\n <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>\r\n}\r\n\r\n@if (loaded()) {\r\n <div class=\"flex flex-col gap-3\">\r\n @if (containers().length > 0) {\r\n <spx-pagination\r\n [spxPage]=\"currentPage()\"\r\n [spxMaxPages]=\"(containers().length < (pageSize() + 1)) ? (currentPage() + 1) : currentPage()\"\r\n [faArrowLeft]=\"faArrowLeft()\"\r\n [faArrowRight]=\"faArrowRight()\"\r\n [textPage]=\"textPage()\"\r\n [textPrevious]=\"textPrevious()\"\r\n [textNext]=\"textNext()\"\r\n (spxPageChange)=\"onPageChange($event)\">\r\n </spx-pagination>\r\n }\r\n @if (containers().length === 0) {\r\n <spx-alert [spxSeverity]=\"severityInfo\" [spxTitle]=\"textNoResults() | translate | capitalize\">\r\n {{ textYouCanChangeYourFilters() | translate | capitalize }}\r\n </spx-alert>\r\n }\r\n @for (container of containers(); track container; let i = $index) {\r\n @if (i < pageSize()) {\r\n <spx-card [hasContent]=\"false\" (clicked)=\"goToContainer(container)\">\r\n <div card-header class=\"card-header rounded-t-lg p-3 bg-sky-200\">\r\n <div class=\"flex flex-row space-x-3 items-center w-full\">\r\n <div\r\n class=\"card-header-icon-left flex basis-10 py-1.5 shrink-0 grow-0 place-items-center rounded bg-sky-400\">\r\n <fa-icon class=\"mx-auto\" [icon]=\"faContainerStorage()\"></fa-icon>\r\n </div>\r\n <div class=\"card-header-text-middle grow\">\r\n <div class=\"block font-medium text-large\">{{ container.formatted.containerNumber }}</div>\r\n </div>\r\n <div\r\n class=\"card-header-icons-right text-sm text-gray-900 leading-5 flex flex-wrap items-stretch text-center font-bold\">\r\n @if (container.containerStatus) {\r\n <div class=\"min-w-[36px] px-2 py-1 bg-white text-black\"> {{\r\n container.formatted.containerStatus }}</div>\r\n }\r\n </div>\r\n </div>\r\n </div>\r\n <div card-lines class=\"grid grid-cols-2 gap-2\">\r\n <spx-card-line [text]=\"textContainerType() | translate | capitalize\"\r\n [value]=\"container.formatted.containerType\"></spx-card-line>\r\n <spx-card-line [text]=\"textCategory() | translate | capitalize\"\r\n [value]=\"container.formatted.category\"></spx-card-line>\r\n <spx-card-line [text]=\"textLocation() | translate | capitalize\"\r\n [value]=\"container.formatted.location\"></spx-card-line>\r\n </div>\r\n </spx-card>\r\n }\r\n }\r\n @if (containers().length > 0) {\r\n <spx-pagination\r\n [spxPage]=\"currentPage()\"\r\n [spxMaxPages]=\"(containers().length < (pageSize() + 1)) ? (currentPage() + 1) : currentPage()\"\r\n [faArrowLeft]=\"faArrowLeft()\"\r\n [faArrowRight]=\"faArrowRight()\"\r\n [textPage]=\"textPage()\"\r\n [textPrevious]=\"textPrevious()\"\r\n [textNext]=\"textNext()\"\r\n (spxPageChange)=\"onPageChange($event)\">\r\n </spx-pagination>\r\n }\r\n </div>\r\n}" }]
278
+ }], ctorParameters: () => [{ type: i1.FormBuilder }] });
336
279
 
337
280
  /**
338
281
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"softpak-components-spx-stock-info.mjs","sources":["../../../../projects/softpak/components/spx-stock-info/spx-stock-info.component.ts","../../../../projects/softpak/components/spx-stock-info/spx-stock-info.component.html","../../../../projects/softpak/components/spx-stock-info/softpak-components-spx-stock-info.ts"],"sourcesContent":["import { Component, EventEmitter, Input, Output } from '@angular/core';\nimport { FormBuilder, FormControl, FormGroup, FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { spxValidatorRequired } from '@softpak/components/spx-validation';\nimport { SpxInputTypeEnum, SpxValuePair } from '@softpak/components/spx-inputs';\nimport { SpxFormButtonTypeEnum, SpxFormFieldI, SpxFormI, SpxFormViewComponent } from '@softpak/components/spx-form-view';\nimport { SpxSeverityEnum, valuePairToValue } from '@softpak/components/spx-helpers';\nimport { SpxStockInfoValueI } from './spx-stock-info-value.interface';\nimport { SpxPaginationComponent } from '@softpak/components/spx-pagination';\nimport { IconProp } from '@fortawesome/fontawesome-svg-core';\nimport { SpxAlertComponent } from '@softpak/components/spx-alert';\nimport { SpxCardComponent, SpxCardLineComponent } from '@softpak/components/spx-card';\nimport { TranslateModule } from '@ngx-translate/core';\nimport { SpxCapitalizePipe } from '@softpak/components/spx-capitalize';\nimport { FontAwesomeModule } from '@fortawesome/angular-fontawesome';\n\nexport const ctrlCategory = 'ctrlCategory';\nexport const ctrlContainerStatus = 'ctrlContainerStatus';\nexport const ctrlContainerStatusGroup = 'ctrlContainerStatusGroup';\nexport const ctrlContainerType = 'ctrlContainerType';\nexport const ctrlCustomer = 'ctrlCustomer';\nexport const ctrlDepot = 'ctrlDepot';\nexport const ctrlLocation = 'ctrlLocation';\nexport const sectionContainerInfo = 'sectionContainerInfo';\nexport const sectionCustomer = 'sectionCustomer';\nexport const sectionLocation = 'sectionLocation';\n\n@Component({\n selector: 'spx-stock-info',\n templateUrl: './spx-stock-info.component.html',\n imports: [\n FormsModule,\n FontAwesomeModule,\n ReactiveFormsModule,\n SpxAlertComponent,\n SpxCapitalizePipe,\n SpxCardComponent,\n SpxCardLineComponent,\n SpxFormViewComponent,\n SpxPaginationComponent,\n TranslateModule\n ]\n})\nexport class SpxStockInfoComponent {\n @Input() depotReadonly = true;\n @Input() statusGroupsInPatch!: boolean;\n @Input() containers!: any[];\n @Input() currentPage!: number;\n @Input() faArrowLeft!: IconProp;\n @Input() faArrowRight!: IconProp;\n @Input() faContainerStorage!: IconProp;\n @Input() formGroup!: FormGroup;\n @Input() loaded!: boolean;\n @Input() pageSize!: number;\n @Input() suggestions: any = {};\n @Input() textCategory!: string;\n @Input() textContainerInfo!: string;\n @Input() textContainerStatus!: string;\n @Input() textContainerStatusGroup!: string;\n @Input() textContainerType!: string;\n @Input() textCustomer!: string;\n @Input() textDepot!: string;\n @Input() textLocation!: string;\n @Input() textNext!: string;\n @Input() textPage!: string;\n @Input() textPrevious!: string;\n @Input() textSearch!: string;\n @Input() textNoResults!: string;\n @Input() textYouCanChangeYourFilters!: string;\n @Output() spxBlurCategory: EventEmitter<SpxValuePair<string>> = new EventEmitter<SpxValuePair<string>>();\n @Output() spxBlurContainerStatus: EventEmitter<SpxValuePair<string>> = new EventEmitter<SpxValuePair<string>>();\n @Output() spxBlurContainerStatusGroup: EventEmitter<SpxValuePair<string>> = new EventEmitter<SpxValuePair<string>>();\n @Output() spxBlurContainerType: EventEmitter<SpxValuePair<string>> = new EventEmitter<SpxValuePair<string>>();\n @Output() spxBlurCustomer: EventEmitter<SpxValuePair<string>> = new EventEmitter<SpxValuePair<string>>();\n @Output() spxBlurDepot: EventEmitter<SpxValuePair<string>> = new EventEmitter<SpxValuePair<string>>();\n @Output() spxClickContainer: EventEmitter<any> = new EventEmitter<any>();\n @Output() spxPageChange: EventEmitter<number> = new EventEmitter<number>();\n @Output() spxSearchCategory: EventEmitter<SpxValuePair<string>> = new EventEmitter<SpxValuePair<string>>();\n @Output() spxSearchContainerStatus: EventEmitter<SpxValuePair<string>> = new EventEmitter<SpxValuePair<string>>();\n @Output() spxSearchContainerStatusGroup: EventEmitter<SpxValuePair<string>> = new EventEmitter<SpxValuePair<string>>();\n @Output() spxSearchContainerType: EventEmitter<SpxValuePair<string>> = new EventEmitter<SpxValuePair<string>>();\n @Output() spxSearchCustomer: EventEmitter<SpxValuePair<string>> = new EventEmitter<SpxValuePair<string>>();\n @Output() spxSearchDepot: EventEmitter<SpxValuePair<string>> = new EventEmitter<SpxValuePair<string>>();\n @Output() spxSubmit: EventEmitter<SpxStockInfoValueI> = new EventEmitter<SpxStockInfoValueI>();\n severityInfo = SpxSeverityEnum.info;\n\n\n form: SpxFormI = {\n buttons: [\n {\n severity: SpxSeverityEnum.success,\n type: SpxFormButtonTypeEnum.submit,\n label: () => this.textSearch,\n }\n ],\n sections: [\n {\n key: sectionLocation,\n show: () => true,\n title: () => this.textLocation,\n fields: [\n {\n key: ctrlDepot,\n label: () => this.textDepot,\n type: () => SpxInputTypeEnum.autocomplete,\n defaultValue: () => null,\n validators: () => [spxValidatorRequired()],\n readonly: () => this.depotReadonly,\n suggestions: () => true,\n afterValueChange: undefined,\n show: () => true,\n capitalize: () => true,\n },\n {\n key: ctrlLocation,\n label: () => this.textLocation,\n type: () => SpxInputTypeEnum.text,\n defaultValue: () => null,\n validators: () => [],\n readonly: () => false,\n suggestions: () => false,\n afterValueChange: undefined,\n show: () => true,\n capitalize: () => true,\n },\n ]\n },\n {\n key: sectionCustomer,\n show: () => true,\n title: () => this.textCustomer,\n fields: [\n {\n key: ctrlCustomer,\n label: () => this.textCustomer,\n type: () => SpxInputTypeEnum.autocomplete,\n defaultValue: () => null,\n validators: () => [],\n readonly: () => false,\n suggestions: () => true,\n afterValueChange: undefined,\n show: () => true,\n capitalize: () => true,\n },\n ]\n },\n {\n key: sectionContainerInfo,\n show: () => true,\n title: () => this.textContainerInfo,\n fields: [\n {\n key: ctrlCategory,\n label: () => this.textCategory,\n type: () => SpxInputTypeEnum.autocomplete,\n defaultValue: () => null,\n validators: () => [],\n readonly: () => false,\n suggestions: () => true,\n afterValueChange: undefined,\n show: () => true,\n capitalize: () => true,\n },\n {\n key: ctrlContainerStatus,\n label: () => this.textContainerStatus,\n type: () => SpxInputTypeEnum.autocomplete,\n defaultValue: () => null,\n validators: () => [],\n readonly: () => false,\n suggestions: () => true,\n afterValueChange: undefined,\n show: () => true,\n capitalize: () => true,\n },\n {\n key: ctrlContainerStatusGroup,\n label: () => this.textContainerStatusGroup,\n type: () => SpxInputTypeEnum.autocomplete,\n defaultValue: () => null,\n validators: () => [],\n readonly: () => false,\n suggestions: () => true,\n afterValueChange: undefined,\n show: () => this.statusGroupsInPatch,\n capitalize: () => true,\n },\n {\n key: ctrlContainerType,\n label: () => this.textContainerType,\n type: () => SpxInputTypeEnum.autocomplete,\n defaultValue: () => null,\n validators: () => [],\n readonly: () => false,\n suggestions: () => true,\n afterValueChange: undefined,\n show: () => true,\n capitalize: () => true,\n },\n ]\n },\n ]\n };\n\n get ctrlCategory(): FormControl { return this.formGroup.get(ctrlCategory) as FormControl; }\n get ctrlContainerStatus(): FormControl { return this.formGroup.get(ctrlContainerStatus) as FormControl; }\n get ctrlContainerStatusGroup(): FormControl { return this.formGroup.get(ctrlContainerStatusGroup) as FormControl; }\n get ctrlContainerType(): FormControl { return this.formGroup.get(ctrlContainerType) as FormControl; }\n get ctrlCustomer(): FormControl { return this.formGroup.get(ctrlCustomer) as FormControl; }\n get ctrlDepot(): FormControl { return this.formGroup.get(ctrlDepot) as FormControl; }\n get ctrlLocation(): FormControl { return this.formGroup.get(ctrlLocation) as FormControl; }\n\n constructor(readonly formBuilder: FormBuilder) {\n }\n\n createForm(): FormGroup {\n return SpxFormViewComponent.createForm(this.formBuilder, this.form.sections);\n }\n\n getRawValidators(formControl: FormControl) {\n return (formControl as any)._rawValidators;\n }\n\n onBlur(data: { field: SpxFormFieldI, valuePair: SpxValuePair<any> }) {\n if (valuePairToValue(data.valuePair)) {\n if (data.field.key === ctrlCategory) {\n this.spxBlurCategory.emit(data.valuePair);\n }\n if (data.field.key === ctrlContainerStatus) {\n this.spxBlurContainerStatus.emit(data.valuePair);\n }\n if (data.field.key === ctrlContainerStatusGroup) {\n this.spxBlurContainerStatusGroup.emit(data.valuePair);\n }\n if (data.field.key === ctrlContainerType) {\n this.spxBlurContainerType.emit(data.valuePair);\n }\n if (data.field.key === ctrlCustomer) {\n this.spxBlurCustomer.emit(data.valuePair);\n }\n if (data.field.key === ctrlDepot) {\n this.spxBlurDepot.emit(data.valuePair);\n }\n }\n }\n\n onSearch(data: { field: SpxFormFieldI, valuePair: SpxValuePair<any> }) {\n if (data.field.key === ctrlCategory) {\n this.spxSearchCategory.emit(data.valuePair);\n }\n if (data.field.key === ctrlContainerType) {\n this.spxSearchContainerType.emit(data.valuePair);\n }\n if (data.field.key === ctrlContainerStatus) {\n this.spxSearchContainerStatus.emit(data.valuePair);\n }\n if (data.field.key === ctrlContainerStatusGroup) {\n this.spxSearchContainerStatusGroup.emit(data.valuePair);\n }\n if (data.field.key === ctrlCustomer) {\n this.spxSearchCustomer.emit(data.valuePair);\n }\n if (data.field.key === ctrlDepot) {\n this.spxSearchDepot.emit(data.valuePair);\n }\n }\n\n onPageChange(page: number) {\n this.spxPageChange.emit(page);\n }\n\n goToContainer(container: any) {\n this.spxClickContainer.emit(container);\n }\n\n onSubmit(): void {\n this.spxSubmit.emit({\n ctrlCategory: this.ctrlCategory.value,\n ctrlContainerStatus: this.ctrlContainerStatus.value,\n ctrlContainerStatusGroup: this.ctrlContainerStatusGroup.value,\n ctrlContainerType: this.ctrlContainerType.value,\n ctrlCustomer: this.ctrlCustomer.value,\n ctrlDepot: this.ctrlDepot.value,\n ctrlLocation: this.ctrlLocation.value,\n });\n }\n}\n","@if (!loaded) {\n <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>\n}\n\n@if (loaded) {\n <div class=\"flex flex-col gap-3\">\n @if (containers.length > 0) {\n <spx-pagination\n [spxPage]=\"currentPage\"\n [spxMaxPages]=\"(containers.length < (pageSize + 1)) ? (currentPage + 1) : currentPage\"\n [faArrowLeft]=\"faArrowLeft\"\n [faArrowRight]=\"faArrowRight\"\n [textPage]=\"textPage\"\n [textPrevious]=\"textPrevious\"\n [textNext]=\"textNext\"\n (spxPageChange)=\"onPageChange($event)\">\n </spx-pagination>\n }\n @if (containers.length === 0) {\n <spx-alert [spxSeverity]=\"severityInfo\" [spxTitle]=\"textNoResults | translate | capitalize\">\n {{ textYouCanChangeYourFilters | translate | capitalize }}\n </spx-alert>\n }\n @for (container of containers; track container; let i = $index) {\n @if (i < pageSize) {\n <spx-card [hasContent]=\"false\" (clicked)=\"goToContainer(container)\">\n <div card-header class=\"card-header rounded-t-lg p-3 bg-sky-200\">\n <div class=\"flex flex-row space-x-3 items-center w-full\">\n <div\n class=\"card-header-icon-left flex basis-10 py-1.5 shrink-0 grow-0 place-items-center rounded bg-sky-400\">\n <fa-icon class=\"mx-auto\" [icon]=\"faContainerStorage\"></fa-icon>\n </div>\n <div class=\"card-header-text-middle grow\">\n <div class=\"block font-medium text-large\">{{ container.formatted.containerNumber }}</div>\n </div>\n <div\n class=\"card-header-icons-right text-sm text-gray-900 leading-5 flex flex-wrap items-stretch text-center font-bold\">\n @if (container.containerStatus) {\n <div class=\"min-w-[36px] px-2 py-1 bg-white text-black\"> {{\n container.formatted.containerStatus }}</div>\n }\n </div>\n </div>\n </div>\n <div card-lines class=\"grid grid-cols-2 gap-2\">\n <spx-card-line [text]=\"textContainerType | translate | capitalize\"\n [value]=\"container.formatted.containerType\"></spx-card-line>\n <spx-card-line [text]=\"textCategory | translate | capitalize\"\n [value]=\"container.formatted.category\"></spx-card-line>\n <spx-card-line [text]=\"textLocation | translate | capitalize\"\n [value]=\"container.formatted.location\"></spx-card-line>\n </div>\n </spx-card>\n }\n }\n @if (containers.length > 0) {\n <spx-pagination\n [spxPage]=\"currentPage\"\n [spxMaxPages]=\"(containers.length < (pageSize + 1)) ? (currentPage + 1) : currentPage\"\n [faArrowLeft]=\"faArrowLeft\"\n [faArrowRight]=\"faArrowRight\"\n [textPage]=\"textPage\"\n [textPrevious]=\"textPrevious\"\n [textNext]=\"textNext\"\n (spxPageChange)=\"onPageChange($event)\">\n </spx-pagination>\n }\n </div>\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAeO,MAAM,YAAY,GAAG;AACrB,MAAM,mBAAmB,GAAG;AAC5B,MAAM,wBAAwB,GAAG;AACjC,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AhB;gBACQ,YAAY,EAAA,CAAA;sBAApB;gBACQ,UAAU,EAAA,CAAA;sBAAlB;gBACQ,aAAa,EAAA,CAAA;sBAArB;gBACQ,2BAA2B,EAAA,CAAA;sBAAnC;gBACS,eAAe,EAAA,CAAA;sBAAxB;gBACS,sBAAsB,EAAA,CAAA;sBAA/B;gBACS,2BAA2B,EAAA,CAAA;sBAApC;gBACS,oBAAoB,EAAA,CAAA;sBAA7B;gBACS,eAAe,EAAA,CAAA;sBAAxB;gBACS,YAAY,EAAA,CAAA;sBAArB;gBACS,iBAAiB,EAAA,CAAA;sBAA1B;gBACS,aAAa,EAAA,CAAA;sBAAtB;gBACS,iBAAiB,EAAA,CAAA;sBAA1B;gBACS,wBAAwB,EAAA,CAAA;sBAAjC;gBACS,6BAA6B,EAAA,CAAA;sBAAtC;gBACS,sBAAsB,EAAA,CAAA;sBAA/B;gBACS,iBAAiB,EAAA,CAAA;sBAA1B;gBACS,cAAc,EAAA,CAAA;sBAAvB;gBACS,SAAS,EAAA,CAAA;sBAAlB;;;AElFH;;AAEG;;;;"}
1
+ {"version":3,"file":"softpak-components-spx-stock-info.mjs","sources":["../../../../projects/softpak/components/spx-stock-info/spx-stock-info.component.ts","../../../../projects/softpak/components/spx-stock-info/spx-stock-info.component.html","../../../../projects/softpak/components/spx-stock-info/softpak-components-spx-stock-info.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, input, output } from '@angular/core';\r\nimport { FormBuilder, FormControl, FormGroup, FormsModule, ReactiveFormsModule } from '@angular/forms';\r\nimport { spxValidatorRequired } from '@softpak/components/spx-validation';\r\nimport { SpxInputTypeEnum, SpxValuePair } from '@softpak/components/spx-inputs';\r\nimport { SpxFormButtonTypeEnum, SpxFormFieldI, SpxFormI, SpxFormViewComponent } from '@softpak/components/spx-form-view';\r\nimport { SpxSeverityEnum, valuePairToValue } from '@softpak/components/spx-helpers';\r\nimport { SpxStockInfoValueI } from './spx-stock-info-value.interface';\r\nimport { SpxPaginationComponent } from '@softpak/components/spx-pagination';\r\nimport { IconProp } from '@fortawesome/fontawesome-svg-core';\r\nimport { SpxAlertComponent } from '@softpak/components/spx-alert';\r\nimport { SpxCardComponent, SpxCardLineComponent } from '@softpak/components/spx-card';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { SpxCapitalizePipe } from '@softpak/components/spx-capitalize';\r\nimport { FontAwesomeModule } from '@fortawesome/angular-fontawesome';\r\n\r\nexport const ctrlCategory = 'ctrlCategory';\r\nexport const ctrlContainerStatus = 'ctrlContainerStatus';\r\nexport const ctrlContainerStatusGroup = 'ctrlContainerStatusGroup';\r\nexport const ctrlContainerType = 'ctrlContainerType';\r\nexport const ctrlCustomer = 'ctrlCustomer';\r\nexport const ctrlDepot = 'ctrlDepot';\r\nexport const ctrlLocation = 'ctrlLocation';\r\nexport const sectionContainerInfo = 'sectionContainerInfo';\r\nexport const sectionCustomer = 'sectionCustomer';\r\nexport const sectionLocation = 'sectionLocation';\r\n\r\n@Component({\r\n selector: 'spx-stock-info',\r\n templateUrl: './spx-stock-info.component.html',\r\n imports: [\r\n FormsModule,\r\n FontAwesomeModule,\r\n ReactiveFormsModule,\r\n SpxAlertComponent,\r\n SpxCapitalizePipe,\r\n SpxCardComponent,\r\n SpxCardLineComponent,\r\n SpxFormViewComponent,\r\n SpxPaginationComponent,\r\n TranslateModule\r\n ],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n standalone: true,\r\n})\r\nexport class SpxStockInfoComponent {\r\n readonly depotReadonly = input<boolean>(false);\r\n readonly statusGroupsInPatch = input.required<boolean>();\r\n readonly containers = input.required<any[]>();\r\n readonly currentPage = input.required<number>();\r\n readonly faArrowLeft = input.required<IconProp>();\r\n readonly faArrowRight = input.required<IconProp>();\r\n readonly faContainerStorage = input.required<IconProp>();\r\n readonly formGroup = input.required<FormGroup>();\r\n readonly loaded = input.required<boolean>();\r\n readonly pageSize = input.required<number>();\r\n readonly suggestions = input<any>({});\r\n readonly textCategory = input.required<string>();\r\n readonly textContainerInfo = input.required<string>();\r\n readonly textContainerStatus = input.required<string>();\r\n readonly textContainerStatusGroup = input.required<string>();\r\n readonly textContainerType = input.required<string>();\r\n readonly textCustomer = input.required<string>();\r\n readonly textDepot = input.required<string>();\r\n readonly textLocation = input.required<string>();\r\n readonly textNext = input.required<string>();\r\n readonly textPage = input.required<string>();\r\n readonly textPrevious = input.required<string>();\r\n readonly textSearch = input.required<string>();\r\n readonly textNoResults = input.required<string>();\r\n readonly textYouCanChangeYourFilters = input.required<string>();\r\n readonly spxBlurCategory = output<SpxValuePair<string>>();\r\n readonly spxBlurContainerStatus = output<SpxValuePair<string>>();\r\n readonly spxBlurContainerStatusGroup = output<SpxValuePair<string>>();\r\n readonly spxBlurContainerType = output<SpxValuePair<string>>();\r\n readonly spxBlurCustomer = output<SpxValuePair<string>>();\r\n readonly spxBlurDepot = output<SpxValuePair<string>>();\r\n readonly spxClickContainer = output<any>();\r\n readonly spxPageChange = output<number>();\r\n readonly spxSearchCategory = output<SpxValuePair<string>>();\r\n readonly spxSearchContainerStatus = output<SpxValuePair<string>>();\r\n readonly spxSearchContainerStatusGroup = output<SpxValuePair<string>>();\r\n readonly spxSearchContainerType = output<SpxValuePair<string>>();\r\n readonly spxSearchCustomer = output<SpxValuePair<string>>();\r\n readonly spxSearchDepot = output<SpxValuePair<string>>();\r\n readonly spxSubmit = output<SpxStockInfoValueI>();\r\n severityInfo = SpxSeverityEnum.info;\r\n\r\n\r\n form: SpxFormI = {\r\n buttons: [\r\n {\r\n severity: SpxSeverityEnum.success,\r\n type: SpxFormButtonTypeEnum.submit,\r\n label: () => this.textSearch(),\r\n }\r\n ],\r\n sections: [\r\n {\r\n key: sectionLocation,\r\n show: () => true,\r\n title: () => this.textLocation(),\r\n fields: [\r\n {\r\n key: ctrlDepot,\r\n label: () => this.textDepot(),\r\n type: () => SpxInputTypeEnum.autocomplete,\r\n defaultValue: () => null,\r\n validators: () => [spxValidatorRequired()],\r\n readonly: () => this.depotReadonly(),\r\n suggestions: () => true,\r\n afterValueChange: undefined,\r\n show: () => true,\r\n capitalize: () => true,\r\n },\r\n {\r\n key: ctrlLocation,\r\n label: () => this.textLocation(),\r\n type: () => SpxInputTypeEnum.text,\r\n defaultValue: () => null,\r\n validators: () => [],\r\n readonly: () => false,\r\n suggestions: () => false,\r\n afterValueChange: undefined,\r\n show: () => true,\r\n capitalize: () => true,\r\n },\r\n ]\r\n },\r\n {\r\n key: sectionCustomer,\r\n show: () => true,\r\n title: () => this.textCustomer(),\r\n fields: [\r\n {\r\n key: ctrlCustomer,\r\n label: () => this.textCustomer(),\r\n type: () => SpxInputTypeEnum.autocomplete,\r\n defaultValue: () => null,\r\n validators: () => [],\r\n readonly: () => false,\r\n suggestions: () => true,\r\n afterValueChange: undefined,\r\n show: () => true,\r\n capitalize: () => true,\r\n },\r\n ]\r\n },\r\n {\r\n key: sectionContainerInfo,\r\n show: () => true,\r\n title: () => this.textContainerInfo(),\r\n fields: [\r\n {\r\n key: ctrlCategory,\r\n label: () => this.textCategory(),\r\n type: () => SpxInputTypeEnum.autocomplete,\r\n defaultValue: () => null,\r\n validators: () => [],\r\n readonly: () => false,\r\n suggestions: () => true,\r\n afterValueChange: undefined,\r\n show: () => true,\r\n capitalize: () => true,\r\n },\r\n {\r\n key: ctrlContainerStatus,\r\n label: () => this.textContainerStatus(),\r\n type: () => SpxInputTypeEnum.autocomplete,\r\n defaultValue: () => null,\r\n validators: () => [],\r\n readonly: () => false,\r\n suggestions: () => true,\r\n afterValueChange: undefined,\r\n show: () => true,\r\n capitalize: () => true,\r\n },\r\n {\r\n key: ctrlContainerStatusGroup,\r\n label: () => this.textContainerStatusGroup(),\r\n type: () => SpxInputTypeEnum.autocomplete,\r\n defaultValue: () => null,\r\n validators: () => [],\r\n readonly: () => false,\r\n suggestions: () => true,\r\n afterValueChange: undefined,\r\n show: () => this.statusGroupsInPatch(),\r\n capitalize: () => true,\r\n },\r\n {\r\n key: ctrlContainerType,\r\n label: () => this.textContainerType(),\r\n type: () => SpxInputTypeEnum.autocomplete,\r\n defaultValue: () => null,\r\n validators: () => [],\r\n readonly: () => false,\r\n suggestions: () => true,\r\n afterValueChange: undefined,\r\n show: () => true,\r\n capitalize: () => true,\r\n },\r\n ]\r\n },\r\n ]\r\n };\r\n\r\n readonly ctrlCategory = computed(() => this.formGroup()?.get(ctrlCategory) as FormControl);\r\n readonly ctrlContainerStatus = computed(() => this.formGroup()?.get(ctrlContainerStatus) as FormControl);\r\n readonly ctrlContainerStatusGroup = computed(() => this.formGroup()?.get(ctrlContainerStatusGroup) as FormControl);\r\n readonly ctrlContainerType = computed(() => this.formGroup()?.get(ctrlContainerType) as FormControl);\r\n readonly ctrlCustomer = computed(() => this.formGroup()?.get(ctrlCustomer) as FormControl);\r\n readonly ctrlDepot = computed(() => this.formGroup()?.get(ctrlDepot) as FormControl);\r\n readonly ctrlLocation = computed(() => this.formGroup()?.get(ctrlLocation) as FormControl);\r\n\r\n constructor(readonly formBuilder: FormBuilder) {\r\n }\r\n\r\n createForm(): FormGroup {\r\n return SpxFormViewComponent.createForm(this.formBuilder, this.form.sections);\r\n }\r\n\r\n getRawValidators(formControl: FormControl) {\r\n return (formControl as any)._rawValidators;\r\n }\r\n\r\n onBlur(data: { field: SpxFormFieldI, valuePair: SpxValuePair<any> }) {\r\n if (valuePairToValue(data.valuePair)) {\r\n if (data.field.key === ctrlCategory) {\r\n this.spxBlurCategory.emit(data.valuePair);\r\n }\r\n if (data.field.key === ctrlContainerStatus) {\r\n this.spxBlurContainerStatus.emit(data.valuePair);\r\n }\r\n if (data.field.key === ctrlContainerStatusGroup) {\r\n this.spxBlurContainerStatusGroup.emit(data.valuePair);\r\n }\r\n if (data.field.key === ctrlContainerType) {\r\n this.spxBlurContainerType.emit(data.valuePair);\r\n }\r\n if (data.field.key === ctrlCustomer) {\r\n this.spxBlurCustomer.emit(data.valuePair);\r\n }\r\n if (data.field.key === ctrlDepot) {\r\n this.spxBlurDepot.emit(data.valuePair);\r\n }\r\n }\r\n }\r\n\r\n onSearch(data: { field: SpxFormFieldI, valuePair: SpxValuePair<any> }) {\r\n if (data.field.key === ctrlCategory) {\r\n this.spxSearchCategory.emit(data.valuePair);\r\n }\r\n if (data.field.key === ctrlContainerType) {\r\n this.spxSearchContainerType.emit(data.valuePair);\r\n }\r\n if (data.field.key === ctrlContainerStatus) {\r\n this.spxSearchContainerStatus.emit(data.valuePair);\r\n }\r\n if (data.field.key === ctrlContainerStatusGroup) {\r\n this.spxSearchContainerStatusGroup.emit(data.valuePair);\r\n }\r\n if (data.field.key === ctrlCustomer) {\r\n this.spxSearchCustomer.emit(data.valuePair);\r\n }\r\n if (data.field.key === ctrlDepot) {\r\n this.spxSearchDepot.emit(data.valuePair);\r\n }\r\n }\r\n\r\n onPageChange(page: number) {\r\n this.spxPageChange.emit(page);\r\n }\r\n\r\n goToContainer(container: any) {\r\n this.spxClickContainer.emit(container);\r\n }\r\n\r\n onSubmit(): void {\r\n this.spxSubmit.emit({\r\n ctrlCategory: this.ctrlCategory().value,\r\n ctrlContainerStatus: this.ctrlContainerStatus().value,\r\n ctrlContainerStatusGroup: this.ctrlContainerStatusGroup().value,\r\n ctrlContainerType: this.ctrlContainerType().value,\r\n ctrlCustomer: this.ctrlCustomer().value,\r\n ctrlDepot: this.ctrlDepot().value,\r\n ctrlLocation: this.ctrlLocation().value,\r\n });\r\n }\r\n}\r\n","@if (!loaded()) {\r\n <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>\r\n}\r\n\r\n@if (loaded()) {\r\n <div class=\"flex flex-col gap-3\">\r\n @if (containers().length > 0) {\r\n <spx-pagination\r\n [spxPage]=\"currentPage()\"\r\n [spxMaxPages]=\"(containers().length < (pageSize() + 1)) ? (currentPage() + 1) : currentPage()\"\r\n [faArrowLeft]=\"faArrowLeft()\"\r\n [faArrowRight]=\"faArrowRight()\"\r\n [textPage]=\"textPage()\"\r\n [textPrevious]=\"textPrevious()\"\r\n [textNext]=\"textNext()\"\r\n (spxPageChange)=\"onPageChange($event)\">\r\n </spx-pagination>\r\n }\r\n @if (containers().length === 0) {\r\n <spx-alert [spxSeverity]=\"severityInfo\" [spxTitle]=\"textNoResults() | translate | capitalize\">\r\n {{ textYouCanChangeYourFilters() | translate | capitalize }}\r\n </spx-alert>\r\n }\r\n @for (container of containers(); track container; let i = $index) {\r\n @if (i < pageSize()) {\r\n <spx-card [hasContent]=\"false\" (clicked)=\"goToContainer(container)\">\r\n <div card-header class=\"card-header rounded-t-lg p-3 bg-sky-200\">\r\n <div class=\"flex flex-row space-x-3 items-center w-full\">\r\n <div\r\n class=\"card-header-icon-left flex basis-10 py-1.5 shrink-0 grow-0 place-items-center rounded bg-sky-400\">\r\n <fa-icon class=\"mx-auto\" [icon]=\"faContainerStorage()\"></fa-icon>\r\n </div>\r\n <div class=\"card-header-text-middle grow\">\r\n <div class=\"block font-medium text-large\">{{ container.formatted.containerNumber }}</div>\r\n </div>\r\n <div\r\n class=\"card-header-icons-right text-sm text-gray-900 leading-5 flex flex-wrap items-stretch text-center font-bold\">\r\n @if (container.containerStatus) {\r\n <div class=\"min-w-[36px] px-2 py-1 bg-white text-black\"> {{\r\n container.formatted.containerStatus }}</div>\r\n }\r\n </div>\r\n </div>\r\n </div>\r\n <div card-lines class=\"grid grid-cols-2 gap-2\">\r\n <spx-card-line [text]=\"textContainerType() | translate | capitalize\"\r\n [value]=\"container.formatted.containerType\"></spx-card-line>\r\n <spx-card-line [text]=\"textCategory() | translate | capitalize\"\r\n [value]=\"container.formatted.category\"></spx-card-line>\r\n <spx-card-line [text]=\"textLocation() | translate | capitalize\"\r\n [value]=\"container.formatted.location\"></spx-card-line>\r\n </div>\r\n </spx-card>\r\n }\r\n }\r\n @if (containers().length > 0) {\r\n <spx-pagination\r\n [spxPage]=\"currentPage()\"\r\n [spxMaxPages]=\"(containers().length < (pageSize() + 1)) ? (currentPage() + 1) : currentPage()\"\r\n [faArrowLeft]=\"faArrowLeft()\"\r\n [faArrowRight]=\"faArrowRight()\"\r\n [textPage]=\"textPage()\"\r\n [textPrevious]=\"textPrevious()\"\r\n [textNext]=\"textNext()\"\r\n (spxPageChange)=\"onPageChange($event)\">\r\n </spx-pagination>\r\n }\r\n </div>\r\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAeO,MAAM,YAAY,GAAG;AACrB,MAAM,mBAAmB,GAAG;AAC5B,MAAM,wBAAwB,GAAG;AACjC,MAAM,iBAAiB,GAAG;AAC1B,MAAM,YAAY,GAAG;AACrB,MAAM,SAAS,GAAG;AAClB,MAAM,YAAY,GAAG;AACrB,MAAM,oBAAoB,GAAG;AAC7B,MAAM,eAAe,GAAG;AACxB,MAAM,eAAe,GAAG;MAoBlB,qBAAqB,CAAA;AAyKhC,IAAA,WAAA,CAAqB,WAAwB,EAAA;QAAxB,IAAW,CAAA,WAAA,GAAX,WAAW;AAxKvB,QAAA,IAAA,CAAA,aAAa,GAAG,KAAK,CAAU,KAAK,CAAC;AACrC,QAAA,IAAA,CAAA,mBAAmB,GAAG,KAAK,CAAC,QAAQ,EAAW;AAC/C,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK,CAAC,QAAQ,EAAS;AACpC,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAAC,QAAQ,EAAU;AACtC,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAAC,QAAQ,EAAY;AACxC,QAAA,IAAA,CAAA,YAAY,GAAG,KAAK,CAAC,QAAQ,EAAY;AACzC,QAAA,IAAA,CAAA,kBAAkB,GAAG,KAAK,CAAC,QAAQ,EAAY;AAC/C,QAAA,IAAA,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,IAAA,EACpB,sBAAsB,EAAA,QAAA,EAAA,gBAAA,EAAA,MAAA,EAAA,CAAA,aAAA,EAAA,cAAA,EAAA,SAAA,EAAA,aAAA,EAAA,UAAA,EAAA,UAAA,EAAA,cAAA,CAAA,EAAA,OAAA,EAAA,CAAA,eAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EACtB,eAAe,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAA,EAAA,CAAA,aAAA,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAKV,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAlBjC,SAAS;AACI,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,gBAAgB,EAEjB,OAAA,EAAA;wBACL,WAAW;wBACX,iBAAiB;wBACjB,mBAAmB;wBACnB,iBAAiB;wBACjB,iBAAiB;wBACjB,gBAAgB;wBAChB,oBAAoB;wBACpB,oBAAoB;wBACpB,sBAAsB;wBACtB;AACH,qBAAA,EAAA,eAAA,EACgB,uBAAuB,CAAC,MAAM,EAAA,UAAA,EACnC,IAAI,EAAA,QAAA,EAAA,qgHAAA,EAAA;;;AE1CpB;;AAEG;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"softpak-components-spx-storage.mjs","sources":["../../../../projects/softpak/components/spx-storage/src/spx-storage-key.enum.ts","../../../../projects/softpak/components/spx-storage/src/spx-storage.class.ts","../../../../projects/softpak/components/spx-storage/softpak-components-spx-storage.ts"],"sourcesContent":["export enum SpxStorageKeyEnum {\n afterSignIn = 'afterSignIn',\n brand = 'brand',\n bundleVersion = 'bundleVersion',\n channelType = 'channelType',\n channelSettings = 'companySettings',\n liveUpdate = 'liveUpdate',\n platform = 'platform',\n platformVersion = 'platformVersion',\n token = 'token',\n updateInProgress = 'updateInProgress',\n randomDeviceId = 'randomDeviceId',\n release = 'release',\n patch = 'patch',\n};\n","import { SpxStorageKeyEnum } from './spx-storage-key.enum';\n\nexport class SpxStorage {\n private static get channelId() {\n return `${this.getSetting(SpxStorageKeyEnum.brand)?.toUpperCase()}_${this.getSetting(SpxStorageKeyEnum.channelType)?.toUpperCase()}`;\n }\n\n public static clearSetting<KeyEnum>(key: KeyEnum | SpxStorageKeyEnum): void {\n localStorage.removeItem(key as string);\n }\n\n public static getSetting<KeyEnum>(key: KeyEnum | SpxStorageKeyEnum): string | null {\n return localStorage.getItem(key as string);\n }\n\n public static setSetting<KeyEnum>(key: KeyEnum | SpxStorageKeyEnum, settingValue: string): void {\n localStorage.setItem(key as string, settingValue);\n }\n\n public static getChannelSetting<KeyEnum>(key: KeyEnum | SpxStorageKeyEnum): string | undefined {\n let storageObj;\n const storageObjStr = localStorage.getItem(SpxStorageKeyEnum.channelSettings);\n\n if (storageObjStr) {\n storageObj = JSON.parse(storageObjStr);\n if (!storageObj[this.channelId]) {\n return undefined;\n }\n return storageObj[this.channelId][key];\n } else {\n return undefined;\n }\n }\n\n public static setChannelSetting<KeyEnum>(key: KeyEnum | SpxStorageKeyEnum, settingValue: any): void {\n const companySettings = this.getSetting(SpxStorageKeyEnum.channelSettings);\n let storageObj;\n\n if (companySettings) {\n storageObj = JSON.parse(companySettings);\n } else {\n storageObj = {};\n }\n\n if (!storageObj[this.channelId]) {\n storageObj[this.channelId] = {};\n }\n\n storageObj[this.channelId][key] = settingValue;\n this.setSetting(SpxStorageKeyEnum.channelSettings, JSON.stringify(storageObj));\n }\n}\n\n\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"IAAY;AAAZ,CAAA,UAAY,iBAAiB,EAAA;AACzB,IAAA,iBAAA,CAAA,aAAA,CAAA,GAAA,aAA2B;AAC3B,IAAA,iBAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACf,IAAA,iBAAA,CAAA,eAAA,CAAA,GAAA,eAA+B;AAC/B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CAAC,eAAe,CAAC;QAE7E,IAAI,aAAa,EAAE;AACf,YAAA,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC;YACtC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE;AAC7B,gBAAA,OAAO,SAAS;;YAEpB,OAAO,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC;;aACnC;AACH,YAAA,OAAO,SAAS;;;AAIjB,IAAA,OAAO,iBAAiB,CAAU,GAAgC,EAAE,YAAiB,EAAA;QACxF,MAAM,eAAe,GAAG,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC,eAAe,CAAC;AAC1E,QAAA,IAAI,UAAU;QAEd,IAAI,eAAe,EAAE;AACjB,YAAA,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,eAAe,CAAC;;aACrC;YACH,UAAU,GAAG,EAAE;;QAGnB,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE;AAC7B,YAAA,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE;;QAGnC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,GAAG,YAAY;AAC9C,QAAA,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC,eAAe,EAAE,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;;AAErF;;ACnDD;;AAEG;;;;"}
1
+ {"version":3,"file":"softpak-components-spx-storage.mjs","sources":["../../../../projects/softpak/components/spx-storage/src/spx-storage-key.enum.ts","../../../../projects/softpak/components/spx-storage/src/spx-storage.class.ts","../../../../projects/softpak/components/spx-storage/softpak-components-spx-storage.ts"],"sourcesContent":["export enum SpxStorageKeyEnum {\r\n afterSignIn = 'afterSignIn',\r\n brand = 'brand',\r\n bundleVersion = 'bundleVersion',\r\n channelType = 'channelType',\r\n channelSettings = 'companySettings',\r\n liveUpdate = 'liveUpdate',\r\n platform = 'platform',\r\n platformVersion = 'platformVersion',\r\n token = 'token',\r\n updateInProgress = 'updateInProgress',\r\n randomDeviceId = 'randomDeviceId',\r\n release = 'release',\r\n patch = 'patch',\r\n};\r\n","import { SpxStorageKeyEnum } from './spx-storage-key.enum';\r\n\r\nexport class SpxStorage {\r\n private static get channelId() {\r\n return `${this.getSetting(SpxStorageKeyEnum.brand)?.toUpperCase()}_${this.getSetting(SpxStorageKeyEnum.channelType)?.toUpperCase()}`;\r\n }\r\n\r\n public static clearSetting<KeyEnum>(key: KeyEnum | SpxStorageKeyEnum): void {\r\n localStorage.removeItem(key as string);\r\n }\r\n\r\n public static getSetting<KeyEnum>(key: KeyEnum | SpxStorageKeyEnum): string | null {\r\n return localStorage.getItem(key as string);\r\n }\r\n\r\n public static setSetting<KeyEnum>(key: KeyEnum | SpxStorageKeyEnum, settingValue: string): void {\r\n localStorage.setItem(key as string, settingValue);\r\n }\r\n\r\n public static getChannelSetting<KeyEnum>(key: KeyEnum | SpxStorageKeyEnum): string | undefined {\r\n let storageObj;\r\n const storageObjStr = localStorage.getItem(SpxStorageKeyEnum.channelSettings);\r\n\r\n if (storageObjStr) {\r\n storageObj = JSON.parse(storageObjStr);\r\n if (!storageObj[this.channelId]) {\r\n return undefined;\r\n }\r\n return storageObj[this.channelId][key];\r\n } else {\r\n return undefined;\r\n }\r\n }\r\n\r\n public static setChannelSetting<KeyEnum>(key: KeyEnum | SpxStorageKeyEnum, settingValue: any): void {\r\n const companySettings = this.getSetting(SpxStorageKeyEnum.channelSettings);\r\n let storageObj;\r\n\r\n if (companySettings) {\r\n storageObj = JSON.parse(companySettings);\r\n } else {\r\n storageObj = {};\r\n }\r\n\r\n if (!storageObj[this.channelId]) {\r\n storageObj[this.channelId] = {};\r\n }\r\n\r\n storageObj[this.channelId][key] = settingValue;\r\n this.setSetting(SpxStorageKeyEnum.channelSettings, JSON.stringify(storageObj));\r\n }\r\n}\r\n\r\n\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public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.0", version: "19.0.5", ngImport: i0, type: SpxSuggestionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
12
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.0.5", type: SpxSuggestionComponent, isStandalone: true, selector: "spx-suggestion", inputs: { spxDisabled: { classPropertyName: "spxDisabled", publicName: "spxDisabled", isSignal: true, isRequired: false, transformFunction: null }, spxFocused: { classPropertyName: "spxFocused", publicName: "spxFocused", isSignal: true, isRequired: false, transformFunction: null }, spxSelected: { classPropertyName: "spxSelected", publicName: "spxSelected", isSignal: true, isRequired: false, transformFunction: null }, spxTabbable: { classPropertyName: "spxTabbable", publicName: "spxTabbable", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<button\n type=\"button\"\n class=\"spx-suggestion block rounded text-gray-900 text-sm p-3 w-full text-left truncate outline-none\"\n [class.bg-sky-100]=\"!this.spxSelected() && !this.spxDisabled()\"\n [class.focus:ring-sky-300]=\"!this.spxSelected() && !this.spxDisabled()\"\n [class.hover:bg-sky-300]=\"!this.spxSelected() && !this.spxDisabled()\"\n [class.active:bg-sky-300]=\"!this.spxSelected() && !this.spxDisabled()\"\n [class.bg-gray-200]=\"this.spxDisabled() && !this.spxSelected()\"\n [class.bg-gray-400]=\"this.spxDisabled() && this.spxSelected()\"\n [class.cursor-not-allowed]=\"this.spxDisabled()\"\n [class.opacity-60]=\"this.spxDisabled()\"\n [class.bg-gradient-to-r]=\"this.spxSelected() && !this.spxDisabled()\"\n [class.from-teal-400]=\"this.spxSelected() && !this.spxDisabled()\"\n [class.to-teal-600]=\"this.spxSelected() && !this.spxDisabled()\"\n [class.font-bold]=\"this.spxSelected()\"\n [attr.tabindex]=\"this.spxTabbable() && !this.spxDisabled() ? 0 : -1\"\n [class.ring-2]=\"this.spxFocused() && this.spxTabbable() && !this.spxDisabled()\"\n [class.ring-offset-2]=\"this.spxFocused() && this.spxTabbable() && !this.spxDisabled()\"\n [class.ring-blue-500]=\"this.spxFocused() && this.spxTabbable() && !this.spxDisabled()\">\n <div class=\"text-ellipsis overflow-hidden whitespace-nowrap\"><ng-content></ng-content></div>\n </button>", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
12
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.0.5", type: SpxSuggestionComponent, isStandalone: true, selector: "spx-suggestion", inputs: { spxDisabled: { classPropertyName: "spxDisabled", publicName: "spxDisabled", isSignal: true, isRequired: false, transformFunction: null }, spxFocused: { classPropertyName: "spxFocused", publicName: "spxFocused", isSignal: true, isRequired: false, transformFunction: null }, spxSelected: { classPropertyName: "spxSelected", publicName: "spxSelected", isSignal: true, isRequired: false, transformFunction: null }, spxTabbable: { classPropertyName: "spxTabbable", publicName: "spxTabbable", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<button\r\n type=\"button\"\r\n class=\"spx-suggestion block rounded text-gray-900 text-sm p-3 w-full text-left truncate outline-none\"\r\n [class.bg-sky-100]=\"!this.spxSelected() && !this.spxDisabled()\"\r\n [class.focus:ring-sky-300]=\"!this.spxSelected() && !this.spxDisabled()\"\r\n [class.hover:bg-sky-300]=\"!this.spxSelected() && !this.spxDisabled()\"\r\n [class.active:bg-sky-300]=\"!this.spxSelected() && !this.spxDisabled()\"\r\n [class.bg-gray-200]=\"this.spxDisabled() && !this.spxSelected()\"\r\n [class.bg-gray-400]=\"this.spxDisabled() && this.spxSelected()\"\r\n [class.cursor-not-allowed]=\"this.spxDisabled()\"\r\n [class.opacity-60]=\"this.spxDisabled()\"\r\n [class.bg-gradient-to-r]=\"this.spxSelected() && !this.spxDisabled()\"\r\n [class.from-teal-400]=\"this.spxSelected() && !this.spxDisabled()\"\r\n [class.to-teal-600]=\"this.spxSelected() && !this.spxDisabled()\"\r\n [class.font-bold]=\"this.spxSelected()\"\r\n [attr.tabindex]=\"this.spxTabbable() && !this.spxDisabled() ? 0 : -1\"\r\n [class.ring-2]=\"this.spxFocused() && this.spxTabbable() && !this.spxDisabled()\"\r\n [class.ring-offset-2]=\"this.spxFocused() && this.spxTabbable() && !this.spxDisabled()\"\r\n [class.ring-blue-500]=\"this.spxFocused() && this.spxTabbable() && !this.spxDisabled()\">\r\n <div class=\"text-ellipsis overflow-hidden whitespace-nowrap\"><ng-content></ng-content></div>\r\n </button>", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
13
13
  }
14
14
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: SpxSuggestionComponent, decorators: [{
15
15
  type: Component,
16
- args: [{ selector: 'spx-suggestion', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "<button\n type=\"button\"\n class=\"spx-suggestion block rounded text-gray-900 text-sm p-3 w-full text-left truncate outline-none\"\n [class.bg-sky-100]=\"!this.spxSelected() && !this.spxDisabled()\"\n [class.focus:ring-sky-300]=\"!this.spxSelected() && !this.spxDisabled()\"\n [class.hover:bg-sky-300]=\"!this.spxSelected() && !this.spxDisabled()\"\n [class.active:bg-sky-300]=\"!this.spxSelected() && !this.spxDisabled()\"\n [class.bg-gray-200]=\"this.spxDisabled() && !this.spxSelected()\"\n [class.bg-gray-400]=\"this.spxDisabled() && this.spxSelected()\"\n [class.cursor-not-allowed]=\"this.spxDisabled()\"\n [class.opacity-60]=\"this.spxDisabled()\"\n [class.bg-gradient-to-r]=\"this.spxSelected() && !this.spxDisabled()\"\n [class.from-teal-400]=\"this.spxSelected() && !this.spxDisabled()\"\n [class.to-teal-600]=\"this.spxSelected() && !this.spxDisabled()\"\n [class.font-bold]=\"this.spxSelected()\"\n [attr.tabindex]=\"this.spxTabbable() && !this.spxDisabled() ? 0 : -1\"\n [class.ring-2]=\"this.spxFocused() && this.spxTabbable() && !this.spxDisabled()\"\n [class.ring-offset-2]=\"this.spxFocused() && this.spxTabbable() && !this.spxDisabled()\"\n [class.ring-blue-500]=\"this.spxFocused() && this.spxTabbable() && !this.spxDisabled()\">\n <div class=\"text-ellipsis overflow-hidden whitespace-nowrap\"><ng-content></ng-content></div>\n </button>" }]
16
+ args: [{ selector: 'spx-suggestion', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "<button\r\n type=\"button\"\r\n class=\"spx-suggestion block rounded text-gray-900 text-sm p-3 w-full text-left truncate outline-none\"\r\n [class.bg-sky-100]=\"!this.spxSelected() && !this.spxDisabled()\"\r\n [class.focus:ring-sky-300]=\"!this.spxSelected() && !this.spxDisabled()\"\r\n [class.hover:bg-sky-300]=\"!this.spxSelected() && !this.spxDisabled()\"\r\n [class.active:bg-sky-300]=\"!this.spxSelected() && !this.spxDisabled()\"\r\n [class.bg-gray-200]=\"this.spxDisabled() && !this.spxSelected()\"\r\n [class.bg-gray-400]=\"this.spxDisabled() && this.spxSelected()\"\r\n [class.cursor-not-allowed]=\"this.spxDisabled()\"\r\n [class.opacity-60]=\"this.spxDisabled()\"\r\n [class.bg-gradient-to-r]=\"this.spxSelected() && !this.spxDisabled()\"\r\n [class.from-teal-400]=\"this.spxSelected() && !this.spxDisabled()\"\r\n [class.to-teal-600]=\"this.spxSelected() && !this.spxDisabled()\"\r\n [class.font-bold]=\"this.spxSelected()\"\r\n [attr.tabindex]=\"this.spxTabbable() && !this.spxDisabled() ? 0 : -1\"\r\n [class.ring-2]=\"this.spxFocused() && this.spxTabbable() && !this.spxDisabled()\"\r\n [class.ring-offset-2]=\"this.spxFocused() && this.spxTabbable() && !this.spxDisabled()\"\r\n [class.ring-blue-500]=\"this.spxFocused() && this.spxTabbable() && !this.spxDisabled()\">\r\n <div class=\"text-ellipsis overflow-hidden whitespace-nowrap\"><ng-content></ng-content></div>\r\n </button>" }]
17
17
  }] });
18
18
 
19
19
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"softpak-components-spx-suggestion.mjs","sources":["../../../../projects/softpak/components/spx-suggestion/spx-suggestion.component.ts","../../../../projects/softpak/components/spx-suggestion/spx-suggestion.component.html","../../../../projects/softpak/components/spx-suggestion/softpak-components-spx-suggestion.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, input } from '@angular/core';\n\n@Component({\n selector: 'spx-suggestion',\n standalone: true,\n templateUrl: './spx-suggestion.component.html',\n styleUrl: './spx-suggestion.component.css',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class SpxSuggestionComponent {\n spxDisabled = input<boolean>();\n spxFocused = input<boolean>();\n spxSelected = input<boolean>();\n spxTabbable = input<boolean>();\n}\n","<button\n type=\"button\"\n class=\"spx-suggestion block rounded text-gray-900 text-sm p-3 w-full text-left truncate outline-none\"\n [class.bg-sky-100]=\"!this.spxSelected() && !this.spxDisabled()\"\n [class.focus:ring-sky-300]=\"!this.spxSelected() && !this.spxDisabled()\"\n [class.hover:bg-sky-300]=\"!this.spxSelected() && !this.spxDisabled()\"\n [class.active:bg-sky-300]=\"!this.spxSelected() && !this.spxDisabled()\"\n [class.bg-gray-200]=\"this.spxDisabled() && !this.spxSelected()\"\n [class.bg-gray-400]=\"this.spxDisabled() && this.spxSelected()\"\n [class.cursor-not-allowed]=\"this.spxDisabled()\"\n [class.opacity-60]=\"this.spxDisabled()\"\n [class.bg-gradient-to-r]=\"this.spxSelected() && !this.spxDisabled()\"\n [class.from-teal-400]=\"this.spxSelected() && !this.spxDisabled()\"\n [class.to-teal-600]=\"this.spxSelected() && !this.spxDisabled()\"\n [class.font-bold]=\"this.spxSelected()\"\n [attr.tabindex]=\"this.spxTabbable() && !this.spxDisabled() ? 0 : -1\"\n [class.ring-2]=\"this.spxFocused() && this.spxTabbable() && !this.spxDisabled()\"\n [class.ring-offset-2]=\"this.spxFocused() && this.spxTabbable() && !this.spxDisabled()\"\n [class.ring-blue-500]=\"this.spxFocused() && this.spxTabbable() && !this.spxDisabled()\">\n <div class=\"text-ellipsis overflow-hidden whitespace-nowrap\"><ng-content></ng-content></div>\n </button>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MASa,sBAAsB,CAAA;AAPnC,IAAA,WAAA,GAAA;QAQE,IAAW,CAAA,WAAA,GAAG,KAAK,EAAW;QAC9B,IAAU,CAAA,UAAA,GAAG,KAAK,EAAW;QAC7B,IAAW,CAAA,WAAA,GAAG,KAAK,EAAW;QAC9B,IAAW,CAAA,WAAA,GAAG,KAAK,EAAW;AAC/B;8GALY,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAtB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,sBAAsB,2nBCTnC,04CAoBW,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FDXE,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAPlC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,gBAAgB,EACd,UAAA,EAAA,IAAI,EAGC,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,04CAAA,EAAA;;;AEPjD;;AAEG;;;;"}
1
+ {"version":3,"file":"softpak-components-spx-suggestion.mjs","sources":["../../../../projects/softpak/components/spx-suggestion/spx-suggestion.component.ts","../../../../projects/softpak/components/spx-suggestion/spx-suggestion.component.html","../../../../projects/softpak/components/spx-suggestion/softpak-components-spx-suggestion.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, input } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'spx-suggestion',\r\n standalone: true,\r\n templateUrl: './spx-suggestion.component.html',\r\n styleUrl: './spx-suggestion.component.css',\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class SpxSuggestionComponent {\r\n spxDisabled = input<boolean>();\r\n spxFocused = input<boolean>();\r\n spxSelected = input<boolean>();\r\n spxTabbable = input<boolean>();\r\n}\r\n","<button\r\n type=\"button\"\r\n class=\"spx-suggestion block rounded text-gray-900 text-sm p-3 w-full text-left truncate outline-none\"\r\n [class.bg-sky-100]=\"!this.spxSelected() && !this.spxDisabled()\"\r\n [class.focus:ring-sky-300]=\"!this.spxSelected() && !this.spxDisabled()\"\r\n [class.hover:bg-sky-300]=\"!this.spxSelected() && !this.spxDisabled()\"\r\n [class.active:bg-sky-300]=\"!this.spxSelected() && !this.spxDisabled()\"\r\n [class.bg-gray-200]=\"this.spxDisabled() && !this.spxSelected()\"\r\n [class.bg-gray-400]=\"this.spxDisabled() && this.spxSelected()\"\r\n [class.cursor-not-allowed]=\"this.spxDisabled()\"\r\n [class.opacity-60]=\"this.spxDisabled()\"\r\n [class.bg-gradient-to-r]=\"this.spxSelected() && !this.spxDisabled()\"\r\n [class.from-teal-400]=\"this.spxSelected() && !this.spxDisabled()\"\r\n [class.to-teal-600]=\"this.spxSelected() && !this.spxDisabled()\"\r\n [class.font-bold]=\"this.spxSelected()\"\r\n [attr.tabindex]=\"this.spxTabbable() && !this.spxDisabled() ? 0 : -1\"\r\n [class.ring-2]=\"this.spxFocused() && this.spxTabbable() && !this.spxDisabled()\"\r\n [class.ring-offset-2]=\"this.spxFocused() && this.spxTabbable() && !this.spxDisabled()\"\r\n [class.ring-blue-500]=\"this.spxFocused() && this.spxTabbable() && !this.spxDisabled()\">\r\n <div class=\"text-ellipsis overflow-hidden whitespace-nowrap\"><ng-content></ng-content></div>\r\n </button>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MASa,sBAAsB,CAAA;AAPnC,IAAA,WAAA,GAAA;QAQE,IAAW,CAAA,WAAA,GAAG,KAAK,EAAW;QAC9B,IAAU,CAAA,UAAA,GAAG,KAAK,EAAW;QAC7B,IAAW,CAAA,WAAA,GAAG,KAAK,EAAW;QAC9B,IAAW,CAAA,WAAA,GAAG,KAAK,EAAW;AAC/B;8GALY,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAtB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,sBAAsB,2nBCTnC,k7CAoBW,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FDXE,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAPlC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,gBAAgB,EACd,UAAA,EAAA,IAAI,EAGC,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,k7CAAA,EAAA;;;AEPjD;;AAEG;;;;"}