coer-elements 0.0.12 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (173) hide show
  1. package/components/index.d.ts +12 -0
  2. package/components/lib/coer-button/coer-button.component.d.ts +3 -3
  3. package/components/lib/coer-checkbox/coer-checkbox.component.d.ts +28 -0
  4. package/components/lib/coer-filebox/coer-filebox.component.d.ts +33 -0
  5. package/components/lib/coer-form/coer-form.component.d.ts +33 -0
  6. package/components/lib/coer-grid/coer-grid.component.d.ts +53 -0
  7. package/components/lib/coer-grid/coer-grid.extension.d.ts +105 -0
  8. package/components/lib/coer-modal/coer-modal.component.d.ts +38 -0
  9. package/components/lib/coer-numberbox/coer-numberbox.component.d.ts +56 -0
  10. package/components/lib/coer-page-title/coer-page-title.component.d.ts +12 -0
  11. package/components/lib/coer-selectbox/coer-selectbox.component.d.ts +75 -0
  12. package/components/lib/coer-switch/coer-switch.component.d.ts +31 -0
  13. package/components/lib/coer-tab/coer-tab.component.d.ts +35 -0
  14. package/components/lib/coer-textarea/coer-textarea.component.d.ts +51 -0
  15. package/components/lib/coer-textbox/coer-textbox.component.d.ts +57 -0
  16. package/components/lib/components.module.d.ts +24 -5
  17. package/directives/index.d.ts +3 -0
  18. package/directives/lib/coer-ref.directive.d.ts +14 -0
  19. package/directives/lib/directives.module.d.ts +8 -0
  20. package/directives/lib/life-cycle.directive.d.ts +14 -0
  21. package/esm2022/components/index.mjs +13 -1
  22. package/esm2022/components/lib/coer-button/coer-button.component.mjs +2 -2
  23. package/esm2022/components/lib/coer-checkbox/coer-checkbox.component.mjs +84 -0
  24. package/esm2022/components/lib/coer-filebox/coer-filebox.component.mjs +104 -0
  25. package/esm2022/components/lib/coer-form/coer-form.component.mjs +102 -0
  26. package/esm2022/components/lib/coer-grid/coer-grid.component.mjs +515 -0
  27. package/esm2022/components/lib/coer-grid/coer-grid.extension.mjs +412 -0
  28. package/esm2022/components/lib/coer-modal/coer-modal.component.mjs +108 -0
  29. package/esm2022/components/lib/coer-numberbox/coer-numberbox.component.mjs +260 -0
  30. package/esm2022/components/lib/coer-page-title/coer-page-title.component.mjs +44 -0
  31. package/esm2022/components/lib/coer-selectbox/coer-selectbox.component.mjs +339 -0
  32. package/esm2022/components/lib/coer-switch/coer-switch.component.mjs +94 -0
  33. package/esm2022/components/lib/coer-tab/coer-tab.component.mjs +116 -0
  34. package/esm2022/components/lib/coer-textarea/coer-textarea.component.mjs +157 -0
  35. package/esm2022/components/lib/coer-textbox/coer-textbox.component.mjs +196 -0
  36. package/esm2022/components/lib/components.module.mjs +93 -57
  37. package/esm2022/directives/index.mjs +4 -0
  38. package/esm2022/directives/lib/coer-ref.directive.mjs +23 -0
  39. package/esm2022/directives/lib/directives.module.mjs +25 -0
  40. package/esm2022/directives/lib/life-cycle.directive.mjs +29 -0
  41. package/esm2022/interfaces/coer-filebox/index.mjs +3 -0
  42. package/esm2022/interfaces/coer-grid/index.mjs +21 -0
  43. package/esm2022/interfaces/index.mjs +1 -3
  44. package/esm2022/interfaces/lib/coer-filebox/file-image.interface.mjs +2 -0
  45. package/esm2022/interfaces/lib/coer-filebox/file.interface.mjs +2 -0
  46. package/esm2022/interfaces/lib/coer-grid/grid-button-by-row.interface.mjs +2 -0
  47. package/esm2022/interfaces/lib/coer-grid/grid-checkbox.interface.mjs +2 -0
  48. package/esm2022/interfaces/lib/coer-grid/grid-coer-numberbox.interface.mjs +2 -0
  49. package/esm2022/interfaces/lib/coer-grid/grid-coer-selectbox.interface.mjs +2 -0
  50. package/esm2022/interfaces/lib/coer-grid/grid-coer-switch.interface.mjs +2 -0
  51. package/esm2022/interfaces/lib/coer-grid/grid-coer-textbox.interface.mjs +2 -0
  52. package/esm2022/interfaces/lib/coer-grid/grid-column.interface.mjs +2 -0
  53. package/esm2022/interfaces/lib/coer-grid/grid-data-source.interface.mjs +2 -0
  54. package/esm2022/interfaces/lib/coer-grid/grid-header-button.interface.mjs +2 -0
  55. package/esm2022/interfaces/lib/coer-grid/grid-header-export-button.interface.mjs +2 -0
  56. package/esm2022/interfaces/lib/coer-grid/grid-header.interface.mjs +2 -0
  57. package/esm2022/interfaces/lib/coer-grid/grid-import.interface.mjs +2 -0
  58. package/esm2022/interfaces/lib/coer-grid/grid-input-checkbox.interface.mjs +2 -0
  59. package/esm2022/interfaces/lib/coer-grid/grid-input-switch-change.interface.mjs +2 -0
  60. package/esm2022/interfaces/lib/coer-grid/grid-input-textbox.interface.mjs +2 -0
  61. package/esm2022/interfaces/lib/coer-grid/grid-item.interface.mjs +2 -0
  62. package/esm2022/interfaces/lib/coer-grid/grid-keyup-enter.interface.mjs +2 -0
  63. package/esm2022/interfaces/lib/coer-grid/grid-length.interface.mjs +2 -0
  64. package/esm2022/interfaces/lib/coer-grid/grid-search.interface.mjs +2 -0
  65. package/esm2022/interfaces/lib/coer-grid/grid-sort.interface.mjs +2 -0
  66. package/esm2022/interfaces/lib/menu/menu-option-selected.interface.mjs +2 -0
  67. package/esm2022/interfaces/lib/menu/menu.interface.mjs +2 -0
  68. package/esm2022/interfaces/lib/page-title/breadcrumb.interface.mjs +2 -0
  69. package/esm2022/interfaces/lib/page-title/go-back.interface.mjs +2 -0
  70. package/esm2022/interfaces/page-title/index.mjs +3 -0
  71. package/esm2022/pipes/index.mjs +5 -0
  72. package/esm2022/pipes/lib/html.pipe.mjs +18 -0
  73. package/esm2022/pipes/lib/no-image.pipe.mjs +23 -0
  74. package/esm2022/pipes/lib/numeric-format.pipe.mjs +15 -0
  75. package/esm2022/pipes/lib/pipes.module.mjs +31 -0
  76. package/esm2022/public_api.mjs +3 -1
  77. package/esm2022/signals/lib/breakpoint.signal.mjs +2 -2
  78. package/esm2022/signals/lib/is-loading.signal.mjs +2 -2
  79. package/esm2022/signals/lib/is-modal-open.signal.mjs +2 -2
  80. package/esm2022/tools/index.mjs +3 -2
  81. package/esm2022/tools/lib/breadcrumbs.class.mjs +2 -2
  82. package/esm2022/tools/lib/date-time.class.mjs +14 -7
  83. package/esm2022/tools/lib/files.class.mjs +2 -2
  84. package/esm2022/tools/lib/menu.class.mjs +23 -0
  85. package/esm2022/tools/lib/page.class.mjs +6 -6
  86. package/esm2022/tools/lib/screen.class.mjs +9 -1
  87. package/esm2022/tools/lib/source.class.mjs +3 -3
  88. package/esm2022/tools/lib/tools.mjs +220 -0
  89. package/fesm2022/coer-elements.mjs +3266 -603
  90. package/fesm2022/coer-elements.mjs.map +1 -1
  91. package/interfaces/coer-filebox/index.d.ts +2 -0
  92. package/interfaces/coer-grid/index.d.ts +20 -0
  93. package/interfaces/index.d.ts +0 -2
  94. package/interfaces/lib/coer-filebox/file-image.interface.d.ts +14 -0
  95. package/interfaces/lib/coer-filebox/file.interface.d.ts +5 -0
  96. package/interfaces/lib/coer-grid/grid-button-by-row.interface.d.ts +6 -0
  97. package/interfaces/lib/coer-grid/grid-checkbox.interface.d.ts +5 -0
  98. package/interfaces/lib/coer-grid/grid-coer-numberbox.interface.d.ts +12 -0
  99. package/interfaces/lib/coer-grid/grid-coer-selectbox.interface.d.ts +9 -0
  100. package/interfaces/lib/coer-grid/grid-coer-switch.interface.d.ts +6 -0
  101. package/interfaces/lib/coer-grid/grid-coer-textbox.interface.d.ts +11 -0
  102. package/interfaces/lib/coer-grid/grid-column.interface.d.ts +22 -0
  103. package/interfaces/lib/coer-grid/grid-data-source.interface.d.ts +6 -0
  104. package/interfaces/lib/coer-grid/grid-header-button.interface.d.ts +8 -0
  105. package/interfaces/lib/coer-grid/grid-header-export-button.interface.d.ts +10 -0
  106. package/interfaces/lib/coer-grid/grid-header.interface.d.ts +5 -0
  107. package/interfaces/lib/coer-grid/grid-import.interface.d.ts +4 -0
  108. package/interfaces/lib/coer-grid/grid-input-checkbox.interface.d.ts +5 -0
  109. package/interfaces/lib/coer-grid/grid-input-switch-change.interface.d.ts +5 -0
  110. package/interfaces/lib/coer-grid/grid-input-textbox.interface.d.ts +5 -0
  111. package/interfaces/lib/coer-grid/grid-item.interface.d.ts +5 -0
  112. package/interfaces/lib/coer-grid/grid-keyup-enter.interface.d.ts +6 -0
  113. package/interfaces/lib/coer-grid/grid-length.interface.d.ts +5 -0
  114. package/interfaces/lib/coer-grid/grid-search.interface.d.ts +4 -0
  115. package/interfaces/lib/coer-grid/grid-sort.interface.d.ts +5 -0
  116. package/interfaces/lib/menu/menu-option-selected.interface.d.ts +9 -0
  117. package/interfaces/lib/menu/menu.interface.d.ts +6 -0
  118. package/interfaces/page-title/index.d.ts +2 -0
  119. package/package.json +1 -1
  120. package/pipes/index.d.ts +4 -0
  121. package/pipes/lib/html.pipe.d.ts +10 -0
  122. package/pipes/lib/no-image.pipe.d.ts +7 -0
  123. package/pipes/lib/numeric-format.pipe.d.ts +7 -0
  124. package/pipes/lib/pipes.module.d.ts +9 -0
  125. package/public_api.d.ts +2 -0
  126. package/signals/lib/is-loading.signal.d.ts +1 -1
  127. package/signals/lib/is-modal-open.signal.d.ts +1 -1
  128. package/src/interfaces/coer-filebox/index.ts +2 -0
  129. package/src/interfaces/coer-grid/index.ts +20 -0
  130. package/src/interfaces/index.ts +1 -3
  131. package/src/interfaces/lib/coer-filebox/file-image.interface.ts +14 -0
  132. package/src/interfaces/lib/coer-filebox/file.interface.ts +5 -0
  133. package/src/interfaces/lib/coer-grid/grid-button-by-row.interface.ts +7 -0
  134. package/src/interfaces/lib/coer-grid/grid-checkbox.interface.ts +5 -0
  135. package/src/interfaces/lib/coer-grid/grid-coer-numberbox.interface.ts +12 -0
  136. package/src/interfaces/lib/coer-grid/grid-coer-selectbox.interface.ts +9 -0
  137. package/src/interfaces/lib/coer-grid/grid-coer-switch.interface.ts +6 -0
  138. package/src/interfaces/lib/coer-grid/grid-coer-textbox.interface.ts +11 -0
  139. package/src/interfaces/lib/coer-grid/grid-column.interface.ts +23 -0
  140. package/src/interfaces/lib/coer-grid/grid-data-source.interface.ts +6 -0
  141. package/src/interfaces/lib/coer-grid/grid-header-button.interface.ts +8 -0
  142. package/src/interfaces/lib/coer-grid/grid-header-export-button.interface.ts +10 -0
  143. package/src/interfaces/lib/coer-grid/grid-header.interface.ts +5 -0
  144. package/src/interfaces/lib/coer-grid/grid-import.interface.ts +4 -0
  145. package/src/interfaces/lib/coer-grid/grid-input-checkbox.interface.ts +5 -0
  146. package/src/interfaces/lib/coer-grid/grid-input-switch-change.interface.ts +5 -0
  147. package/src/interfaces/lib/coer-grid/grid-input-textbox.interface.ts +5 -0
  148. package/src/interfaces/lib/coer-grid/grid-item.interface.ts +5 -0
  149. package/src/interfaces/lib/coer-grid/grid-keyup-enter.interface.ts +6 -0
  150. package/src/interfaces/lib/coer-grid/grid-length.interface.ts +5 -0
  151. package/src/interfaces/lib/coer-grid/grid-search.interface.ts +4 -0
  152. package/src/interfaces/lib/coer-grid/grid-sort.interface.ts +5 -0
  153. package/src/interfaces/lib/menu/menu-option-selected.interface.ts +10 -0
  154. package/src/interfaces/lib/menu/menu-selected.interface.ts +11 -0
  155. package/src/interfaces/lib/menu/menu.interface.ts +6 -0
  156. package/src/interfaces/menu/index.ts +3 -0
  157. package/src/interfaces/page-title/index.ts +2 -0
  158. package/tools/index.d.ts +2 -1
  159. package/tools/lib/breadcrumbs.class.d.ts +1 -1
  160. package/tools/lib/date-time.class.d.ts +4 -2
  161. package/tools/lib/menu.class.d.ts +8 -0
  162. package/tools/lib/page.class.d.ts +4 -3
  163. package/tools/lib/screen.class.d.ts +3 -1
  164. package/tools/lib/source.class.d.ts +1 -1
  165. package/tools/lib/{generi-tools.d.ts → tools.d.ts} +7 -5
  166. package/esm2022/interfaces/lib/breadcrumb.interface.mjs +0 -2
  167. package/esm2022/interfaces/lib/go-back.interface.mjs +0 -2
  168. package/esm2022/tools/lib/generi-tools.mjs +0 -199
  169. /package/interfaces/lib/{breadcrumb.interface.d.ts → page-title/breadcrumb.interface.d.ts} +0 -0
  170. /package/interfaces/lib/{go-back.interface.d.ts → page-title/go-back.interface.d.ts} +0 -0
  171. /package/src/interfaces/lib/{breadcrumb.interface.ts → page-title/breadcrumb.interface.ts} +0 -0
  172. /package/src/interfaces/lib/{go-back.interface.ts → page-title/go-back.interface.ts} +0 -0
  173. /package/src/styles/{coer-elements.scss → index.scss} +0 -0
@@ -0,0 +1,339 @@
1
+ import { Component, computed, input, Input, output, signal, viewChild } from '@angular/core';
2
+ import { CONTROL_VALUE, ControlValue } from '../../../tools/lib/control-value.class';
3
+ import { Tools } from '../../../tools/lib/tools';
4
+ import * as i0 from "@angular/core";
5
+ import * as i1 from "@angular/common";
6
+ import * as i2 from "@angular/material/input";
7
+ import * as i3 from "@angular/material/form-field";
8
+ export class CoerSelectbox extends ControlValue {
9
+ constructor() {
10
+ super(...arguments);
11
+ //Component Value
12
+ this._value = null;
13
+ //Variables
14
+ this._scrollByRow = 40.8;
15
+ this._coerTextBox = viewChild.required('coerTextBox');
16
+ this._id = Tools.GetGuid('coer-selectBox');
17
+ this._index = signal(-1);
18
+ this._search = signal('');
19
+ this._isOpen = signal(false);
20
+ this._isDirty = signal(false);
21
+ this._isOverMenu = signal(false);
22
+ this._isLoadingEvent = signal(false);
23
+ this._scroll = signal(0);
24
+ this.id = '';
25
+ this.label = input('');
26
+ this.dataSource = input([]);
27
+ this.propDisplay = input('name');
28
+ this.rowsByPage = input(50);
29
+ this.placeholder = input('-- Select --');
30
+ this.width = input('100%');
31
+ this.minWidth = input('190px');
32
+ this.maxWidth = input('100%');
33
+ this.marginTop = input('0px');
34
+ this.marginRight = input('0px');
35
+ this.marginBottom = input('0px');
36
+ this.marginLeft = input('0px');
37
+ this.isInvalid = input(false);
38
+ this.isValid = input(false);
39
+ this.isDisabled = input(false);
40
+ this.isReadonly = input(false);
41
+ this.isLoading = input(false);
42
+ //Outputs
43
+ this.onSelected = output();
44
+ //computed
45
+ this._isEnable = computed(() => {
46
+ return !this.isDisabled() && !this.isLoading() && !this.isReadonly();
47
+ });
48
+ //computed
49
+ this.floatLabel = computed(() => {
50
+ return this.label() == '' ? 'always' : 'auto';
51
+ });
52
+ //computed
53
+ this._dataSource = computed(() => {
54
+ let index = 0;
55
+ const search = this._search();
56
+ const propDisplay = this.propDisplay();
57
+ let dataSource = this.dataSource().map((item) => Object.assign(item, { index: index++ }));
58
+ if (this._isDirty() && !this._isLoadingEvent()) {
59
+ dataSource = [...dataSource].filter((item) => String(item[propDisplay]).trim().toUpperCase().includes(search.trim().toUpperCase()));
60
+ }
61
+ let indexRow = 0;
62
+ return Tools.BreakReference(dataSource)
63
+ .splice(0, this.rowsByPage())
64
+ .map((item) => Object.assign(item, { indexRow: indexRow++ }));
65
+ });
66
+ /** */
67
+ this.GetIndexRow = (item) => {
68
+ return item['indexRow'];
69
+ };
70
+ /** */
71
+ this.GetDisplay = (item) => {
72
+ return Tools.IsNotNull(item) ? item[this.propDisplay()] : '';
73
+ };
74
+ }
75
+ //Inputs
76
+ set value(value) {
77
+ if (Tools.IsNull(value))
78
+ value = null;
79
+ this.SetValue(value);
80
+ }
81
+ ngOnInit() {
82
+ this.SetEvents();
83
+ }
84
+ //getter
85
+ get value() {
86
+ return this._value;
87
+ }
88
+ //getter
89
+ get _displayed() {
90
+ return Tools.IsNotNull(this._value) ? this._value[this.propDisplay()] : '';
91
+ }
92
+ //getter
93
+ get _placeholder() {
94
+ let placeholder = this.placeholder();
95
+ if (this.dataSource().length <= 0) {
96
+ placeholder = '-- No Options --';
97
+ }
98
+ return Tools.IsNotNull(this._value)
99
+ ? this._displayed
100
+ : placeholder;
101
+ }
102
+ //computed
103
+ get _showCancel() {
104
+ return Tools.IsNotNull(this._value)
105
+ && this._search().length <= 0;
106
+ }
107
+ //computed
108
+ get paddingRight() {
109
+ return this.isInvalid() || this.isValid() || this._showCancel
110
+ ? '40px' : '15px';
111
+ }
112
+ //computed
113
+ get widthIcons() {
114
+ return this.isInvalid() || this.isValid() || this._showCancel
115
+ ? '55px' : '30px';
116
+ }
117
+ /** */
118
+ SetValue(_value) {
119
+ if (_value === undefined)
120
+ _value = null;
121
+ this._UpdateValue(_value);
122
+ this._value = _value;
123
+ this._search.set(this.GetDisplay(_value));
124
+ }
125
+ /** */
126
+ writeValue(_value) {
127
+ if (_value === undefined)
128
+ _value = null;
129
+ this._value = _value;
130
+ this._search.set(this.GetDisplay(_value));
131
+ }
132
+ /** */
133
+ SetEvents() {
134
+ Tools.Sleep().then(() => {
135
+ //Container
136
+ this._container = document.getElementById(`${this._id}-container`);
137
+ this._container.addEventListener('mouseenter', () => {
138
+ this._isOverMenu.set(true);
139
+ });
140
+ this._container.addEventListener('mouseleave', () => {
141
+ this._isOverMenu.set(false);
142
+ });
143
+ //DropDown
144
+ this._dropDownMenu = document.getElementById(`${this._id}-dropdown-menu`);
145
+ this._dropDownMenu.addEventListener('mouseenter', () => {
146
+ this._isOverMenu.set(true);
147
+ });
148
+ this._dropDownMenu.addEventListener('mouseleave', () => {
149
+ this._isOverMenu.set(false);
150
+ });
151
+ //TextBox
152
+ this._textbox = document.getElementById(this._id);
153
+ this._textbox.addEventListener('focus', () => {
154
+ if (this._isEnable())
155
+ this.Focus();
156
+ else
157
+ this.Blur();
158
+ });
159
+ this._textbox.addEventListener('keyup', (event) => {
160
+ const { key } = event;
161
+ if (['ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight'].includes(key)) {
162
+ if (key === 'ArrowUp') {
163
+ const firstIndex = (this._dataSource().length <= 0) ? -1 : 0;
164
+ if ((this._index() - 1) >= firstIndex) {
165
+ this._index.update(index => index - 1);
166
+ if (this._index() >= 3)
167
+ this._scroll.update(scroll => scroll -= this._scrollByRow);
168
+ else
169
+ this._scroll.set(0);
170
+ this._dropDownMenu.scrollTo(0, this._scroll());
171
+ }
172
+ else {
173
+ this._scroll.set(0);
174
+ this._index.set(-1);
175
+ this._textbox.focus();
176
+ this._textbox.select();
177
+ }
178
+ this._dropDownMenu.scrollTo(0, this._scroll());
179
+ }
180
+ else if (key === 'ArrowDown') {
181
+ const lastIndex = (this._dataSource().length - 1);
182
+ if ((this._index() + 1) <= lastIndex) {
183
+ this._index.update(index => index + 1);
184
+ if (this._index() >= 3)
185
+ this._scroll.update(scroll => scroll += this._scrollByRow);
186
+ }
187
+ this._dropDownMenu.scrollTo(0, this._scroll());
188
+ }
189
+ else if (['ArrowLeft', 'ArrowRight'].includes(key)) {
190
+ if (Tools.IsNotNull(this._value) && !this._isDirty()) {
191
+ this._scroll.set(0);
192
+ this._dropDownMenu.scrollTo(0, this._scroll());
193
+ this.Search(this._displayed);
194
+ }
195
+ this._isDirty.set(true);
196
+ }
197
+ }
198
+ else {
199
+ if (key == 'Delete' && this._search() == '') {
200
+ this.Unselect();
201
+ }
202
+ this._isDirty.set(true);
203
+ }
204
+ });
205
+ this._textbox.addEventListener('mouseenter', () => {
206
+ this._isOverMenu.set(true);
207
+ });
208
+ this._textbox.addEventListener('mouseleave', () => {
209
+ this._isOverMenu.set(false);
210
+ });
211
+ this._textbox.addEventListener('paste', () => {
212
+ Tools.Sleep().then(_ => {
213
+ this._search.update(search => search = search.toString().trim());
214
+ });
215
+ });
216
+ //Document
217
+ document.addEventListener('click', () => {
218
+ if (!this._isOverMenu())
219
+ this.Blur();
220
+ });
221
+ document.addEventListener('keyup', (event) => {
222
+ if (event.key === 'Enter') {
223
+ if (this._index() >= 0) {
224
+ if (Tools.IsNotNull(this._value) && this._search() == this._value[this.propDisplay()]) {
225
+ this._isLoadingEvent.set(true);
226
+ }
227
+ const dataSource = Tools.BreakReference(this._dataSource());
228
+ const _value = dataSource.find(x => x.indexRow == this._index());
229
+ this.SelectItem(_value);
230
+ this._isLoadingEvent.set(false);
231
+ }
232
+ this.Blur();
233
+ }
234
+ });
235
+ });
236
+ }
237
+ /** */
238
+ SelectItem(item) {
239
+ if (Tools.IsNotNull(item)) {
240
+ const _item = Tools.BreakReference(this.dataSource()[item.index]);
241
+ if (Tools.IsNotNull(_item)) {
242
+ this.SetValue(Tools.BreakReference(_item));
243
+ this.Blur();
244
+ }
245
+ delete _item.indexRow;
246
+ delete _item.index;
247
+ this.onSelected.emit({ ..._item });
248
+ }
249
+ }
250
+ /** */
251
+ Unselect() {
252
+ this._search.set('');
253
+ this.SetValue(null);
254
+ this.Blur();
255
+ }
256
+ /** */
257
+ Focus(timeout = 0) {
258
+ if (this._isLoadingEvent())
259
+ return;
260
+ else
261
+ this._isLoadingEvent.set(true);
262
+ Tools.Sleep(timeout).then(_ => {
263
+ if (this._isEnable()) {
264
+ this._textbox.focus();
265
+ this._textbox.select();
266
+ this.Open();
267
+ }
268
+ Tools.Sleep().then(_ => {
269
+ if (Tools.IsNotNull(this._value)) {
270
+ this.Search(this._displayed);
271
+ }
272
+ this._isLoadingEvent.set(false);
273
+ });
274
+ });
275
+ }
276
+ /** */
277
+ Blur() {
278
+ if (this._isLoadingEvent())
279
+ return;
280
+ this._isLoadingEvent.set(true);
281
+ this._isDirty.set(false);
282
+ this._index.set(-1);
283
+ this._scroll.set(0);
284
+ this._dropDownMenu.scrollTo(0, this._scroll());
285
+ this._search.set(this._displayed);
286
+ Tools.Sleep().then(_ => {
287
+ this._textbox.blur();
288
+ this.Close();
289
+ Tools.Sleep().then(_ => {
290
+ const element = document.querySelector(`#${this._id}-container .mdc-line-ripple--active`);
291
+ if (element)
292
+ element.classList.remove('mdc-line-ripple--active');
293
+ this._isLoadingEvent.set(false);
294
+ });
295
+ });
296
+ }
297
+ /** */
298
+ Open() {
299
+ if (!this._dropDownMenu.classList.contains('show')) {
300
+ this._dropDownMenu.classList.add('show');
301
+ }
302
+ this._isOpen.set(true);
303
+ }
304
+ /** */
305
+ Close() {
306
+ if (this._dropDownMenu.classList.contains('show')) {
307
+ this._dropDownMenu.classList.remove('show');
308
+ }
309
+ this._isOpen.set(false);
310
+ }
311
+ /** */
312
+ Search(_value) {
313
+ this._search.set(String(_value));
314
+ Tools.Sleep(0, `${this._id}-search`).then(_ => {
315
+ const item = this._dataSource().find(item => String(item[this.propDisplay()]).trim().toUpperCase().includes(String(_value).trim().toUpperCase()));
316
+ if (Tools.IsNotNull(item)) {
317
+ this._index.set(item.indexRow);
318
+ if (this._index() >= 3) {
319
+ this._scroll.set((this._index() - 2) * this._scrollByRow);
320
+ }
321
+ else {
322
+ this._scroll.set(0);
323
+ }
324
+ this._dropDownMenu.scrollTo(0, this._scroll());
325
+ }
326
+ });
327
+ }
328
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CoerSelectbox, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
329
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: CoerSelectbox, selector: "coer-selectbox", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: false, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: false, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, dataSource: { classPropertyName: "dataSource", publicName: "dataSource", isSignal: true, isRequired: false, transformFunction: null }, propDisplay: { classPropertyName: "propDisplay", publicName: "propDisplay", isSignal: true, isRequired: false, transformFunction: null }, rowsByPage: { classPropertyName: "rowsByPage", publicName: "rowsByPage", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, minWidth: { classPropertyName: "minWidth", publicName: "minWidth", isSignal: true, isRequired: false, transformFunction: null }, maxWidth: { classPropertyName: "maxWidth", publicName: "maxWidth", isSignal: true, isRequired: false, transformFunction: null }, marginTop: { classPropertyName: "marginTop", publicName: "marginTop", isSignal: true, isRequired: false, transformFunction: null }, marginRight: { classPropertyName: "marginRight", publicName: "marginRight", isSignal: true, isRequired: false, transformFunction: null }, marginBottom: { classPropertyName: "marginBottom", publicName: "marginBottom", isSignal: true, isRequired: false, transformFunction: null }, marginLeft: { classPropertyName: "marginLeft", publicName: "marginLeft", isSignal: true, isRequired: false, transformFunction: null }, isInvalid: { classPropertyName: "isInvalid", publicName: "isInvalid", isSignal: true, isRequired: false, transformFunction: null }, isValid: { classPropertyName: "isValid", publicName: "isValid", isSignal: true, isRequired: false, transformFunction: null }, isDisabled: { classPropertyName: "isDisabled", publicName: "isDisabled", isSignal: true, isRequired: false, transformFunction: null }, isReadonly: { classPropertyName: "isReadonly", publicName: "isReadonly", isSignal: true, isRequired: false, transformFunction: null }, isLoading: { classPropertyName: "isLoading", publicName: "isLoading", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onSelected: "onSelected" }, providers: [CONTROL_VALUE(CoerSelectbox)], viewQueries: [{ propertyName: "_coerTextBox", first: true, predicate: ["coerTextBox"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"coer-select-box\">\r\n <mat-form-field\r\n [id]=\"_id + '-container'\"\r\n [floatLabel]=\"floatLabel()\"\r\n [ngClass]=\"{\r\n 'readonly': isReadonly() && !isLoading()\r\n }\"\r\n [style]=\"{\r\n 'width': width(),\r\n 'min-width': minWidth(),\r\n 'max-width': maxWidth(),\r\n 'margin-top': marginTop(),\r\n 'margin-right': marginRight(),\r\n 'margin-bottom': marginBottom(),\r\n 'margin-left': marginLeft()\r\n }\">\r\n <mat-label>{{ label() }}</mat-label>\r\n\r\n <input #coerTextBox matInput\r\n [id]=\"_id\"\r\n type=\"text\"\r\n [value]=\"_search()\"\r\n [placeholder]=\"_placeholder\"\r\n [disabled]=\"!_isEnable()\"\r\n (input)=\"Search(coerTextBox.value)\"\r\n (blur)=\"SetTouched(true)\"\r\n [style]=\"{\r\n 'cursor': isLoading() ? 'wait' : null,\r\n 'margin-top': (floatLabel() == 'auto') ? '15px' : '9px',\r\n 'padding-right': paddingRight\r\n }\">\r\n\r\n @if(isLoading()) {\r\n <div class=\"placeholder-glow\">\r\n <span class=\"placeholder\"></span>\r\n </div>\r\n }\r\n\r\n <span ngClass=\"icon-container\" [style]=\"{ 'width': widthIcons }\">\r\n @if(_showCancel && _isEnable() && !isLoading()) {\r\n <i class=\"fa-solid fa-xmark text-secondary\" (click)=\"Unselect()\"></i>\r\n }\r\n\r\n @else if(isInvalid() && !isLoading()) {\r\n <i class=\"fa-solid fa-circle-exclamation\"></i>\r\n }\r\n\r\n @else if(isValid() && !isLoading()) {\r\n <i class=\"fa-solid fa-circle-check text-green\"></i>\r\n }\r\n\r\n @if(_isOpen() && _isEnable() && !isLoading()) {\r\n <i class=\"fa-solid fa-caret-up cursor-pointer text-orange\" (click)=\"Blur()\"></i>\r\n }\r\n\r\n @else if(_isEnable() && !isLoading()) {\r\n <i class=\"fa-solid fa-caret-down cursor-pointer text-secondary\"></i>\r\n }\r\n </span>\r\n </mat-form-field>\r\n\r\n <!-- Options Container -->\r\n <div class=\"btn-group\">\r\n <ul [id]=\"_id + '-dropdown-menu'\" class=\"dropdown-menu\">\r\n @for(item of _dataSource(); track GetIndexRow(item)) {\r\n <li (click)=\"SelectItem(item)\">\r\n <div [id]=\"id + '-dropdown-option-' + GetIndexRow(item)\"\r\n [ngClass]=\"{\r\n 'dropdown-item': true,\r\n 'cursor-pointer': true,\r\n 'dropdown-item-focus': _index() == GetIndexRow(item)\r\n }\"\r\n >{{ GetDisplay(item) }} </div>\r\n <hr class=\"dropdown-divider\">\r\n </li>\r\n }\r\n </ul>\r\n </div>\r\n</div>\r\n\r\n", styles: ["div.coer-select-box{position:relative!important}div.coer-select-box .text-blue{color:#0d6efd!important}div.coer-select-box .text-blue-bold{color:#0d6efd!important;font-weight:700!important}div.coer-select-box .background-blue{background-color:#0d6efd!important}div.coer-select-box .background-border-blue{background-color:#0d6efd!important;border-color:#0d6efd!important}div.coer-select-box .border-blue{border-color:#0d6efd!important}div.coer-select-box .text-gray{color:#6c757d!important}div.coer-select-box .text-gray-bold{color:#6c757d!important;font-weight:700!important}div.coer-select-box .background-gray{background-color:#6c757d!important}div.coer-select-box .background-border-gray{background-color:#6c757d!important;border-color:#6c757d!important}div.coer-select-box .border-gray{border-color:#6c757d!important}div.coer-select-box .text-green{color:#198754!important}div.coer-select-box .text-green-bold{color:#198754!important;font-weight:700!important}div.coer-select-box .background-green{background-color:#198754!important}div.coer-select-box .background-border-green{background-color:#198754!important;border-color:#198754!important}div.coer-select-box .border-green{border-color:#198754!important}div.coer-select-box .text-yellow{color:#ffc107!important}div.coer-select-box .text-yellow-bold{color:#ffc107!important;font-weight:700!important}div.coer-select-box .background-yellow{background-color:#ffc107!important}div.coer-select-box .background-border-yellow{background-color:#ffc107!important;border-color:#ffc107!important}div.coer-select-box .border-yellow{border-color:#ffc107!important}div.coer-select-box .text-red{color:#dc3545!important}div.coer-select-box .text-red-bold{color:#dc3545!important;font-weight:700!important}div.coer-select-box .background-red{background-color:#dc3545!important}div.coer-select-box .background-border-red{background-color:#dc3545!important;border-color:#dc3545!important}div.coer-select-box .border-red{border-color:#dc3545!important}div.coer-select-box .text-white{color:#f5f5f5!important}div.coer-select-box .text-white-bold{color:#f5f5f5!important;font-weight:700!important}div.coer-select-box .background-white{background-color:#f5f5f5!important}div.coer-select-box .background-border-white{background-color:#f5f5f5!important;border-color:#f5f5f5!important}div.coer-select-box .border-white{border-color:#f5f5f5!important}div.coer-select-box .text-black{color:#252525!important}div.coer-select-box .text-black-bold{color:#252525!important;font-weight:700!important}div.coer-select-box .background-black{background-color:#252525!important}div.coer-select-box .background-border-black{background-color:#252525!important;border-color:#252525!important}div.coer-select-box .border-black{border-color:#252525!important}div.coer-select-box .text-orange{color:#fd6031!important}div.coer-select-box .text-orange-bold{color:#fd6031!important;font-weight:700!important}div.coer-select-box .background-orange{background-color:#fd6031!important}div.coer-select-box .background-border-orange{background-color:#fd6031!important;border-color:#fd6031!important}div.coer-select-box .border-orange{border-color:#fd6031!important}div.coer-select-box mat-form-field{position:relative!important}div.coer-select-box mat-form-field div.mat-mdc-text-field-wrapper.mdc-text-field div.mat-mdc-form-field-flex{height:40px!important}div.coer-select-box mat-form-field div.mat-mdc-text-field-wrapper.mdc-text-field div.mat-mdc-form-field-flex div.mat-mdc-form-field-infix{width:100%!important;height:40px!important;padding:0!important}div.coer-select-box mat-form-field div.mat-mdc-text-field-wrapper.mdc-text-field div.mat-mdc-form-field-flex div.mat-mdc-form-field-infix label{overflow:visible!important;position:absolute!important;top:20px!important}div.coer-select-box mat-form-field div.mat-mdc-text-field-wrapper.mdc-text-field div.mat-mdc-form-field-flex div.mat-mdc-form-field-infix label.mdc-floating-label--float-above mat-label{color:#fd6031;font-weight:700;position:relative;left:-10px;top:2px}div.coer-select-box mat-form-field div.mat-mdc-text-field-wrapper.mdc-text-field div.mat-mdc-form-field-flex div.mat-mdc-form-field-infix input{font-weight:400!important;font-size:17px!important;color:#252525!important}div.coer-select-box mat-form-field div.mat-mdc-text-field-wrapper.mdc-text-field div.mdc-line-ripple.mdc-line-ripple--active,div.coer-select-box mat-form-field div.mat-mdc-text-field-wrapper.mdc-text-field div.mdc-line-ripple.mdc-line-ripple--active:before,div.coer-select-box mat-form-field div.mat-mdc-text-field-wrapper.mdc-text-field div.mdc-line-ripple.mdc-line-ripple--active:after{border-bottom-color:#fd6031!important}div.coer-select-box mat-form-field div.mat-mdc-form-field-subscript-wrapper.mat-mdc-form-field-bottom-align{height:0px!important}div.coer-select-box mat-form-field span.icon-container{position:absolute!important;top:1px!important;right:-14px!important;z-index:5!important;height:40px;display:flex;align-items:center;justify-content:center;gap:5px}div.coer-select-box mat-form-field span.icon-container i{font-size:20px!important}div.coer-select-box mat-form-field span.icon-container i.fa-solid.fa-xmark,div.coer-select-box mat-form-field span.icon-container i.fa-solid.fa-magnifying-glass{color:#caced1!important;cursor:pointer!important}div.coer-select-box mat-form-field span.icon-container i.fa-solid.fa-xmark:hover,div.coer-select-box mat-form-field span.icon-container i.fa-solid.fa-magnifying-glass:hover{color:#6c757d!important}div.coer-select-box mat-form-field span.icon-container i.fa-solid.fa-circle-check{color:#198754!important}div.coer-select-box mat-form-field span.icon-container i.fa-solid.fa-circle-exclamation{color:#dc3545!important}div.coer-select-box mat-form-field span.icon-container i.fa-solid.fa-xmark{font-size:22px!important;padding:2px!important}div.coer-select-box mat-form-field span.placeholder{width:calc(100% + 32px)!important;height:40px!important;position:absolute!important;z-index:1!important;top:0!important;left:-16px!important;cursor:wait!important}div.coer-select-box mat-form-field .placeholder,div.coer-select-box mat-form-field .placeholder *,div.coer-select-box mat-form-field .placeholder-glow,div.coer-select-box mat-form-field .placeholder-glow *{cursor:wait!important}div.coer-select-box .btn-group{position:absolute!important;top:40px;left:0!important;width:100%!important}div.coer-select-box ul.dropdown-menu{background-color:#fff!important;border-top-left-radius:0!important;border-top-right-radius:0!important;max-height:205px!important;width:100%!important;overflow:auto!important;padding:0!important}div.coer-select-box .dropdown-divider{margin:0!important;background-color:#fff!important}div.coer-select-box ul.dropdown-menu li:not(.dropdown-item-focus):hover,div.coer-select-box ul.dropdown-menu li>div:not(.dropdown-item-focus):hover{color:#000!important;background-color:#f1f6ff!important}div.coer-select-box ul.dropdown-menu li:last-child hr.dropdown-divider,div.coer-select-box ul.dropdown-menu li:last-child hr.dropdown-divider:hover{width:0px!important;border:none!important}div.coer-select-box ul.dropdown-menu li div{display:flex!important;align-items:center!important;height:40px!important}div.coer-select-box div.dropdown-item-focus{background-color:#cde1ff}div.coer-select-box mat-form-field.readonly div.mat-mdc-text-field-wrapper.mdc-text-field{background-color:#bbbbbb83!important}coer-grid table tbody tr td.coer-selectbox div.coer-select-box mat-form-field div.mat-mdc-text-field-wrapper.mdc-text-field{background-color:transparent!important;padding-left:9px!important;padding-right:9px!important}coer-grid table tbody tr td.coer-selectbox div.coer-select-box mat-form-field div.mat-mdc-text-field-wrapper.mdc-text-field div.mdc-line-ripple,coer-grid table tbody tr td.coer-selectbox div.coer-select-box mat-form-field div.mat-mdc-text-field-wrapper.mdc-text-field div.mdc-line-ripple:before,coer-grid table tbody tr td.coer-selectbox div.coer-select-box mat-form-field div.mat-mdc-text-field-wrapper.mdc-text-field div.mdc-line-ripple:after{border-bottom-color:transparent!important}coer-grid table tbody tr td.coer-selectbox div.coer-select-box mat-form-field div.mat-mdc-text-field-wrapper.mdc-text-field div.mat-mdc-form-field-flex{height:28px!important}coer-grid table tbody tr td.coer-selectbox div.coer-select-box mat-form-field div.mat-mdc-text-field-wrapper.mdc-text-field div.mat-mdc-form-field-flex div.mat-mdc-form-field-infix{height:28px!important}coer-grid table tbody tr td.coer-selectbox div.coer-select-box mat-form-field div.mat-mdc-text-field-wrapper.mdc-text-field div.mat-mdc-form-field-flex div.mat-mdc-form-field-infix input{margin-top:3px!important;font-size:14px!important}coer-grid table tbody tr td.coer-selectbox div.coer-select-box mat-form-field span.icon-container{transform:translate(-5px,-6px)!important}coer-grid table tbody tr td.coer-selectbox div.coer-select-box .btn-group{top:28px!important}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }] }); }
330
+ }
331
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CoerSelectbox, decorators: [{
332
+ type: Component,
333
+ args: [{ selector: 'coer-selectbox', providers: [CONTROL_VALUE(CoerSelectbox)], template: "<div class=\"coer-select-box\">\r\n <mat-form-field\r\n [id]=\"_id + '-container'\"\r\n [floatLabel]=\"floatLabel()\"\r\n [ngClass]=\"{\r\n 'readonly': isReadonly() && !isLoading()\r\n }\"\r\n [style]=\"{\r\n 'width': width(),\r\n 'min-width': minWidth(),\r\n 'max-width': maxWidth(),\r\n 'margin-top': marginTop(),\r\n 'margin-right': marginRight(),\r\n 'margin-bottom': marginBottom(),\r\n 'margin-left': marginLeft()\r\n }\">\r\n <mat-label>{{ label() }}</mat-label>\r\n\r\n <input #coerTextBox matInput\r\n [id]=\"_id\"\r\n type=\"text\"\r\n [value]=\"_search()\"\r\n [placeholder]=\"_placeholder\"\r\n [disabled]=\"!_isEnable()\"\r\n (input)=\"Search(coerTextBox.value)\"\r\n (blur)=\"SetTouched(true)\"\r\n [style]=\"{\r\n 'cursor': isLoading() ? 'wait' : null,\r\n 'margin-top': (floatLabel() == 'auto') ? '15px' : '9px',\r\n 'padding-right': paddingRight\r\n }\">\r\n\r\n @if(isLoading()) {\r\n <div class=\"placeholder-glow\">\r\n <span class=\"placeholder\"></span>\r\n </div>\r\n }\r\n\r\n <span ngClass=\"icon-container\" [style]=\"{ 'width': widthIcons }\">\r\n @if(_showCancel && _isEnable() && !isLoading()) {\r\n <i class=\"fa-solid fa-xmark text-secondary\" (click)=\"Unselect()\"></i>\r\n }\r\n\r\n @else if(isInvalid() && !isLoading()) {\r\n <i class=\"fa-solid fa-circle-exclamation\"></i>\r\n }\r\n\r\n @else if(isValid() && !isLoading()) {\r\n <i class=\"fa-solid fa-circle-check text-green\"></i>\r\n }\r\n\r\n @if(_isOpen() && _isEnable() && !isLoading()) {\r\n <i class=\"fa-solid fa-caret-up cursor-pointer text-orange\" (click)=\"Blur()\"></i>\r\n }\r\n\r\n @else if(_isEnable() && !isLoading()) {\r\n <i class=\"fa-solid fa-caret-down cursor-pointer text-secondary\"></i>\r\n }\r\n </span>\r\n </mat-form-field>\r\n\r\n <!-- Options Container -->\r\n <div class=\"btn-group\">\r\n <ul [id]=\"_id + '-dropdown-menu'\" class=\"dropdown-menu\">\r\n @for(item of _dataSource(); track GetIndexRow(item)) {\r\n <li (click)=\"SelectItem(item)\">\r\n <div [id]=\"id + '-dropdown-option-' + GetIndexRow(item)\"\r\n [ngClass]=\"{\r\n 'dropdown-item': true,\r\n 'cursor-pointer': true,\r\n 'dropdown-item-focus': _index() == GetIndexRow(item)\r\n }\"\r\n >{{ GetDisplay(item) }} </div>\r\n <hr class=\"dropdown-divider\">\r\n </li>\r\n }\r\n </ul>\r\n </div>\r\n</div>\r\n\r\n", styles: ["div.coer-select-box{position:relative!important}div.coer-select-box .text-blue{color:#0d6efd!important}div.coer-select-box .text-blue-bold{color:#0d6efd!important;font-weight:700!important}div.coer-select-box .background-blue{background-color:#0d6efd!important}div.coer-select-box .background-border-blue{background-color:#0d6efd!important;border-color:#0d6efd!important}div.coer-select-box .border-blue{border-color:#0d6efd!important}div.coer-select-box .text-gray{color:#6c757d!important}div.coer-select-box .text-gray-bold{color:#6c757d!important;font-weight:700!important}div.coer-select-box .background-gray{background-color:#6c757d!important}div.coer-select-box .background-border-gray{background-color:#6c757d!important;border-color:#6c757d!important}div.coer-select-box .border-gray{border-color:#6c757d!important}div.coer-select-box .text-green{color:#198754!important}div.coer-select-box .text-green-bold{color:#198754!important;font-weight:700!important}div.coer-select-box .background-green{background-color:#198754!important}div.coer-select-box .background-border-green{background-color:#198754!important;border-color:#198754!important}div.coer-select-box .border-green{border-color:#198754!important}div.coer-select-box .text-yellow{color:#ffc107!important}div.coer-select-box .text-yellow-bold{color:#ffc107!important;font-weight:700!important}div.coer-select-box .background-yellow{background-color:#ffc107!important}div.coer-select-box .background-border-yellow{background-color:#ffc107!important;border-color:#ffc107!important}div.coer-select-box .border-yellow{border-color:#ffc107!important}div.coer-select-box .text-red{color:#dc3545!important}div.coer-select-box .text-red-bold{color:#dc3545!important;font-weight:700!important}div.coer-select-box .background-red{background-color:#dc3545!important}div.coer-select-box .background-border-red{background-color:#dc3545!important;border-color:#dc3545!important}div.coer-select-box .border-red{border-color:#dc3545!important}div.coer-select-box .text-white{color:#f5f5f5!important}div.coer-select-box .text-white-bold{color:#f5f5f5!important;font-weight:700!important}div.coer-select-box .background-white{background-color:#f5f5f5!important}div.coer-select-box .background-border-white{background-color:#f5f5f5!important;border-color:#f5f5f5!important}div.coer-select-box .border-white{border-color:#f5f5f5!important}div.coer-select-box .text-black{color:#252525!important}div.coer-select-box .text-black-bold{color:#252525!important;font-weight:700!important}div.coer-select-box .background-black{background-color:#252525!important}div.coer-select-box .background-border-black{background-color:#252525!important;border-color:#252525!important}div.coer-select-box .border-black{border-color:#252525!important}div.coer-select-box .text-orange{color:#fd6031!important}div.coer-select-box .text-orange-bold{color:#fd6031!important;font-weight:700!important}div.coer-select-box .background-orange{background-color:#fd6031!important}div.coer-select-box .background-border-orange{background-color:#fd6031!important;border-color:#fd6031!important}div.coer-select-box .border-orange{border-color:#fd6031!important}div.coer-select-box mat-form-field{position:relative!important}div.coer-select-box mat-form-field div.mat-mdc-text-field-wrapper.mdc-text-field div.mat-mdc-form-field-flex{height:40px!important}div.coer-select-box mat-form-field div.mat-mdc-text-field-wrapper.mdc-text-field div.mat-mdc-form-field-flex div.mat-mdc-form-field-infix{width:100%!important;height:40px!important;padding:0!important}div.coer-select-box mat-form-field div.mat-mdc-text-field-wrapper.mdc-text-field div.mat-mdc-form-field-flex div.mat-mdc-form-field-infix label{overflow:visible!important;position:absolute!important;top:20px!important}div.coer-select-box mat-form-field div.mat-mdc-text-field-wrapper.mdc-text-field div.mat-mdc-form-field-flex div.mat-mdc-form-field-infix label.mdc-floating-label--float-above mat-label{color:#fd6031;font-weight:700;position:relative;left:-10px;top:2px}div.coer-select-box mat-form-field div.mat-mdc-text-field-wrapper.mdc-text-field div.mat-mdc-form-field-flex div.mat-mdc-form-field-infix input{font-weight:400!important;font-size:17px!important;color:#252525!important}div.coer-select-box mat-form-field div.mat-mdc-text-field-wrapper.mdc-text-field div.mdc-line-ripple.mdc-line-ripple--active,div.coer-select-box mat-form-field div.mat-mdc-text-field-wrapper.mdc-text-field div.mdc-line-ripple.mdc-line-ripple--active:before,div.coer-select-box mat-form-field div.mat-mdc-text-field-wrapper.mdc-text-field div.mdc-line-ripple.mdc-line-ripple--active:after{border-bottom-color:#fd6031!important}div.coer-select-box mat-form-field div.mat-mdc-form-field-subscript-wrapper.mat-mdc-form-field-bottom-align{height:0px!important}div.coer-select-box mat-form-field span.icon-container{position:absolute!important;top:1px!important;right:-14px!important;z-index:5!important;height:40px;display:flex;align-items:center;justify-content:center;gap:5px}div.coer-select-box mat-form-field span.icon-container i{font-size:20px!important}div.coer-select-box mat-form-field span.icon-container i.fa-solid.fa-xmark,div.coer-select-box mat-form-field span.icon-container i.fa-solid.fa-magnifying-glass{color:#caced1!important;cursor:pointer!important}div.coer-select-box mat-form-field span.icon-container i.fa-solid.fa-xmark:hover,div.coer-select-box mat-form-field span.icon-container i.fa-solid.fa-magnifying-glass:hover{color:#6c757d!important}div.coer-select-box mat-form-field span.icon-container i.fa-solid.fa-circle-check{color:#198754!important}div.coer-select-box mat-form-field span.icon-container i.fa-solid.fa-circle-exclamation{color:#dc3545!important}div.coer-select-box mat-form-field span.icon-container i.fa-solid.fa-xmark{font-size:22px!important;padding:2px!important}div.coer-select-box mat-form-field span.placeholder{width:calc(100% + 32px)!important;height:40px!important;position:absolute!important;z-index:1!important;top:0!important;left:-16px!important;cursor:wait!important}div.coer-select-box mat-form-field .placeholder,div.coer-select-box mat-form-field .placeholder *,div.coer-select-box mat-form-field .placeholder-glow,div.coer-select-box mat-form-field .placeholder-glow *{cursor:wait!important}div.coer-select-box .btn-group{position:absolute!important;top:40px;left:0!important;width:100%!important}div.coer-select-box ul.dropdown-menu{background-color:#fff!important;border-top-left-radius:0!important;border-top-right-radius:0!important;max-height:205px!important;width:100%!important;overflow:auto!important;padding:0!important}div.coer-select-box .dropdown-divider{margin:0!important;background-color:#fff!important}div.coer-select-box ul.dropdown-menu li:not(.dropdown-item-focus):hover,div.coer-select-box ul.dropdown-menu li>div:not(.dropdown-item-focus):hover{color:#000!important;background-color:#f1f6ff!important}div.coer-select-box ul.dropdown-menu li:last-child hr.dropdown-divider,div.coer-select-box ul.dropdown-menu li:last-child hr.dropdown-divider:hover{width:0px!important;border:none!important}div.coer-select-box ul.dropdown-menu li div{display:flex!important;align-items:center!important;height:40px!important}div.coer-select-box div.dropdown-item-focus{background-color:#cde1ff}div.coer-select-box mat-form-field.readonly div.mat-mdc-text-field-wrapper.mdc-text-field{background-color:#bbbbbb83!important}coer-grid table tbody tr td.coer-selectbox div.coer-select-box mat-form-field div.mat-mdc-text-field-wrapper.mdc-text-field{background-color:transparent!important;padding-left:9px!important;padding-right:9px!important}coer-grid table tbody tr td.coer-selectbox div.coer-select-box mat-form-field div.mat-mdc-text-field-wrapper.mdc-text-field div.mdc-line-ripple,coer-grid table tbody tr td.coer-selectbox div.coer-select-box mat-form-field div.mat-mdc-text-field-wrapper.mdc-text-field div.mdc-line-ripple:before,coer-grid table tbody tr td.coer-selectbox div.coer-select-box mat-form-field div.mat-mdc-text-field-wrapper.mdc-text-field div.mdc-line-ripple:after{border-bottom-color:transparent!important}coer-grid table tbody tr td.coer-selectbox div.coer-select-box mat-form-field div.mat-mdc-text-field-wrapper.mdc-text-field div.mat-mdc-form-field-flex{height:28px!important}coer-grid table tbody tr td.coer-selectbox div.coer-select-box mat-form-field div.mat-mdc-text-field-wrapper.mdc-text-field div.mat-mdc-form-field-flex div.mat-mdc-form-field-infix{height:28px!important}coer-grid table tbody tr td.coer-selectbox div.coer-select-box mat-form-field div.mat-mdc-text-field-wrapper.mdc-text-field div.mat-mdc-form-field-flex div.mat-mdc-form-field-infix input{margin-top:3px!important;font-size:14px!important}coer-grid table tbody tr td.coer-selectbox div.coer-select-box mat-form-field span.icon-container{transform:translate(-5px,-6px)!important}coer-grid table tbody tr td.coer-selectbox div.coer-select-box .btn-group{top:28px!important}\n"] }]
334
+ }], propDecorators: { value: [{
335
+ type: Input
336
+ }], id: [{
337
+ type: Input
338
+ }] } });
339
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29lci1zZWxlY3Rib3guY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29lci1lbGVtZW50cy9zcmMvY29tcG9uZW50cy9saWIvY29lci1zZWxlY3Rib3gvY29lci1zZWxlY3Rib3guY29tcG9uZW50LnRzIi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4gICAgICAgIHRoaXMuX3NlYXJjaC5zZXQodGhpcy5HZXREaXNwbGF5KF92YWx1ZSkpO1xyXG4gICAgfVxyXG5cclxuXHJcbiAgICAvKiogKi9cclxuICAgIHByaXZhdGUgU2V0RXZlbnRzKCk6IHZvaWQge1xyXG4gICAgICAgIFRvb2xzLlNsZWVwKCkudGhlbigoKT0+IHtcclxuICAgICAgICAgICAgLy9Db250YWluZXJcclxuICAgICAgICAgICAgdGhpcy5fY29udGFpbmVyID0gZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoYCR7dGhpcy5faWR9LWNvbnRhaW5lcmApISBhcyBIVE1MRWxlbWVudDtcclxuXHJcbiAgICAgICAgICAgIHRoaXMuX2NvbnRhaW5lci5hZGRFdmVudExpc3RlbmVyKCdtb3VzZWVudGVyJywgKCkgPT4ge1xyXG4gICAgICAgICAgICAgICAgdGhpcy5faXNPdmVyTWVudS5zZXQodHJ1ZSk7XHJcbiAgICAgICAgICAgIH0pO1xyXG5cclxuICAgICAgICAgICAgdGhpcy5fY29udGFpbmVyLmFkZEV2ZW50TGlzdGVuZXIoJ21vdXNlbGVhdmUnLCAoKSA9PiB7XHJcbiAgICAgICAgICAgICAgICB0aGlzLl9pc092ZXJNZW51LnNldChmYWxzZSk7XHJcbiAgICAgICAgICAgIH0pO1xyXG5cclxuICAgICAgICAgICAgLy9Ecm9wRG93blxyXG4gICAgICAgICAgICB0aGlzLl9kcm9wRG93bk1lbnUgPSBkb2N1bWVudC5nZXRFbGVtZW50QnlJZChgJHt0aGlzLl9pZH0tZHJvcGRvd24tbWVudWApISBhcyBIVE1MRWxlbWVudDtcclxuXHJcbiAgICAgICAgICAgIHRoaXMuX2Ryb3BEb3duTWVudS5hZGRFdmVudExpc3RlbmVyKCdtb3VzZWVudGVyJywgKCkgPT4ge1xyXG4gICAgICAgICAgICAgICAgdGhpcy5faXNPdmVyTWVudS5zZXQodHJ1ZSk7XHJcbiAgICAgICAgICAgIH0pO1xyXG5cclxuICAgIC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gZmlyc3RJbmRleCkge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5faW5kZXgudXBkYXRlKGluZGV4ID0+IGluZGV4IC0gMSk7XHJcblxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYodGhpcy5faW5kZXgoKSA+PSAzKSB0aGlzLl9zY3JvbGwudXBkYXRlKHNjcm9sbCA9PiBzY3JvbGwgLT0gdGhpcy5fc2Nyb2xsQnlSb3cpO1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZWxzZSB0aGlzLl9zY3JvbGwuc2V0KDApO1xyXG5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuX2Ryb3BEb3duTWVudS5zY3JvbGxUbygwLCB0aGlzLl9zY3JvbGwoKSk7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cclxuXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGVsc2Uge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5fc2Nyb2xsLnNldCgwKTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuX2luZGV4LnNldCgtMSk7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLl90ZXh0Ym94LmZvY3VzKCk7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLl90ZXh0Ym94LnNlbGVjdCgpO1xyXG4gICAgICAgICAgICAgICAgICAgICAgICB9XHJcblxyXG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLl9kcm9wRG93bk1lbnUuc2Nyb2xsVG8oMCwgdGhpcy5fc2Nyb2xsKCkpO1xyXG4gICAgICAgICAgICAgICAgICAgIH1cclxuXHJcbiAgICAgICAgICAgICAgICAgICAgZWxzZSBpZihrZXkgPT09ICdBcnJvd0Rvd24nKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IGxhc3RJbmRleCA9ICh0aGlzLl9kYXRhU291cmNlKCkubGVuZ3RoIC0gMSk7XHJcblxyXG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAoKHRoaXMuX2luZGV4KCkgKyAxKSA8PSBsYXN0SW5kZXgpIHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuX2luZGV4LnVwZGF0ZShpbmRleCA9PiBpbmRleCArIDEpO1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYodGhpcy5faW5kZXgoKSA+PSAzKSB0aGlzLl9zY3JvbGwudXBkYXRlKHNjcm9sbCA9PiBzY3JvbGwgKz0gdGhpcy5fc2Nyb2xsQnlSb3cpO1xyXG4gICAgICAgICAgICAgICAgICAgICAgICB9XHJcblxyXG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLl9kcm9wRG93bk1lbnUuc2Nyb2xsVG8oMCwgdGhpcy5fc2Nyb2xsKCkpO1xyXG4gICAgICAgICAgICAgICAgICAgIH1cclxuXHJcbiAgICAgICAgICAgICAgICAgICAgZWxzZSBpZiAoWydBcnJvd0xlZnQnLCAnQXJyb3dSaWdodCddLmluY2x1ZGVzKGtleSkpIHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgaWYoVG9vbHMuSXNOb3ROdWxsKHRoaXMuX3ZhbHVlKSAmJiAhdGhpcy5faXNEaXJ0eSgpKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLl9zY3JvbGwuc2V0KDApO1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5fZHJvcERvd25NZW51LnNjcm9sbFRvKDAsIHRoaXMuX3Njcm9sbCgpKTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuU2VhcmNoKHRoaXMuX2Rpc3BsYXllZCk7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cclxuXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuX2lzRGlydHkuc2V0KHRydWUpO1xyXG4gICAgICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgIH1cclxuXHJcbiAgICAgICAgICAgICAgICBlbHNlIHtcclxuICAgICAgICAgICAgICAgICAgICBpZiAoa2V5ID09ICdEZWxldGUnICYmIHRoaXMuX3NlYXJjaCgpID09ICcnKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuVW5zZWxlY3QoKTtcclxuICAgICAgICAgICAgICAgICAgICB9XHJcblxyXG4gICAgICAgICAgICAgICAgICAgIHRoaXMuX2lzRGlydHkuc2V0KHRydWUpO1xyXG4gICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICB9KTtcclxuXHJcbiAgICAgICAgICAgIHRoaXMuX3RleHRib3guYWRkRXZlbnRMaXN0ZW5lcignbW91c2VlbnRlcicsICgpID0+IHtcclxuICAgICAgICAgICAgICAgIHRoaXMuX2lzT3Zlck1lbnUuc2V0KHRydWUpO1xyXG4gICAgICAgICAgICB9KTtcclxuXHJcbiAgICAgICAgICAgIHRoaXMuX3RleHRib3guYWRkRXZlbnRMaXN0ZW5lcignbW91c2VsZWF2ZScsICgpID0+IHtcclxuICAgICAgICAgICAgICAgIHRoaXMuX2lzT3Zlck1lbnUuc2V0KGZhbHNlKTtcclxuICAgICAgICAgICAgfSk7XHJcblxyXG4gICAgICAgICAgICB0aGlzLl90ZXh0Ym94LmFkZEV2ZW50TGlzdGVuZXIoJ3Bhc3RlJywgKCkgPT4ge1xyXG4gICAgICAgICAgICAgICAgVG9vbHMuU2xlZXAoKS50aGVuKF8gPT4ge1xyXG4gICAgICAgICAgICAgICAgICAgIHRoaXMuX3NlYXJjaC51cGRhdGUoc2VhcmNoID0+IHNlYXJjaCA9IHNlYXJjaC50b1N0cmluZygpLnRyaW0oKSk7XHJcbiAgICAgICAgICAgICAgICB9KTtcclxuICAgICAgICAgICAgfSk7XHJcblxyXG4gICAgICAgICAgICAvL0RvY3VtZW50XHJcbiAgICAgICAgICAgIGRvY3VtZW50LmFkZEV2ZW50TGlzdGVuZXIoJ2NsaWNrJywgKCkgPT4ge1xyXG4gICAgICAgICAgICAgICAgaWYoIXRoaXMuX2lzT3Zlck1lbnUoKSkgdGhpcy5CbHVyKCk7XHJcbiAgICAgICAgICAgIH0pO1xyXG5cclxuICAgICAgICAgICAgZG9jdW1lbnQuYWRkRXZlbnRMaXN0ZW5lcigna2V5dXAnLCAoZXZlbnQ6IEtleWJvYXJkRXZlbnQpID0+IHtcclxuICAgICAgICAgICAgICAgIGlmIChldmVudC5rZXkgPT09ICdFbnRlcicpIHtcclxuICAgICAgICAgICAgICAgICAgICBpZiAodGhpcy5faW5kZXgoKSA+PSAwKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChUb29scy5Jc05vdE51bGwodGhpcy5fdmFsdWUpICYmIHRoaXMuX3NlYXJjaCgpID09ICh0aGlzLl92YWx1ZSBhcyBhbnkpW3RoaXMucHJvcERpc3BsYXkoKV0pIHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuX2lzTG9hZGluZ0V2ZW50LnNldCh0cnVlKTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgfVxyXG5cclxuICAgICAgICAgICAgICAgICAgICAgICAgY29uc3QgZGF0YVNvdXJjZSA9IFRvb2xzLkJyZWFrUmVmZXJlbmNlKHRoaXMuX2RhdGFTb3VyY2UoKSk7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IF92YWx1ZSA9IGRhdGFTb3VyY2UuZmluZCh4ID0+IHguaW5kZXhSb3cgPT0gdGhpcy5faW5kZXgoKSk7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuU2VsZWN0SXRlbShfdmFsdWUpO1xyXG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLl9pc0xvYWRpbmdFdmVudC5zZXQoZmFsc2UpO1xyXG4gICAgICAgICAgICAgICAgICAgIH1cclxuXHJcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5CbHVyKCk7XHJcbiAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgIH0pO1xyXG4gICAgICAgIH0pO1xyXG4gICAgfVxyXG5cclxuXHJcbiAgICAvKiogKi9cclxuICAgIHByb3RlY3RlZCBHZXRJbmRleFJvdyA9IChpdGVtOiBhbnkpOiBudW1iZXIgPT4ge1xyXG4gICAgICAgIHJldHVybiBpdGVtWydpbmRleFJvdyddO1xyXG4gICAgfVxyXG5cclxuXHJcbiAgICAvKiogKi9cclxuICAgIHByb3RlY3RlZCBHZXREaXNwbGF5ID0gKGl0ZW06IGFueSk6IHN0cmluZyA9PiB7XHJcbiAgICAgICAgcmV0dXJuIFRvb2xzLklzTm90TnVsbChpdGVtKSA/IGl0ZW1bdGhpcy5wcm9wRGlzcGxheSgpXSA6ICcnO1xyXG4gICAgfVxyXG5cclxuXHJcbiAgICAvKiogKi9cclxuICAgIHByb3RlY3RlZCBTZWxlY3RJdGVtKGl0ZW06IGFueSk6IHZvaWQge1xyXG4gICAgICAgIGlmIChUb29scy5Jc05vdE51bGwoaXRlbSkpIHtcclxuICAgICAgICAgICAgY29uc3QgX2l0ZW0gPSBUb29scy5CcmVha1JlZmVyZW5jZTxhbnk+KHRoaXMuZGF0YVNvdXJjZSgpW2l0ZW0uaW5kZXhdKTtcclxuXHJcbiAgICAgICAgICAgIGlmKFRvb2xzLklzTm90TnVsbChfaXRlbSkpIHtcclxuICAgICAgICAgICAgICAgIHRoaXMuU2V0VmFsdWUoVG9vbHMuQnJlYWtSZWZlcmVuY2UoX2l0ZW0pKTtcclxuICAgICAgICAgICAgICAgIHRoaXMuQmx1cigpO1xyXG4gICAgICAgICAgICB9XHJcblxyXG4gICAgICAgICAgICBkZWxldGUgX2l0ZW0uaW5kZXhSb3c7XHJcbiAgICAgICAgICAgIGRlbGV0ZSBfaXRlbS5pbmRleDtcclxuICAgICAgICAgICAgdGhpcy5vblNlbGVjdGVkLmVtaXQoeyAuLi5faXRlbSB9KTtcclxuICAgICAgICB9XHJcbiAgICB9XHJcblxyXG5cclxuICAgIC8qKiAqL1xyXG4gICAgcHVibGljIFVuc2VsZWN0KCk6IHZvaWQge1xyXG4gICAgICAgIHRoaXMuX3NlYXJjaC5zZXQoJycpO1xyXG4gICAgICAgIHRoaXMuU2V0VmFsdWUobnVsbCk7XHJcbiAgICAgICAgdGhpcy5CbHVyKCk7XHJcbiAgICB9XHJcblxyXG5cclxuICAgIC8qKiAqL1xyXG4gICAgcHVibGljIEZvY3VzKHRpbWVvdXQ6IG51bWJlciA9IDApOiB2b2lkIHtcclxuICAgICAgICBpZih0aGlzLl9pc0xvYWRpbmdFdmVudCgpKSByZXR1cm47XHJcbiAgICAgICAgZWxzZSB0aGlzLl9pc0xvYWRpbmdFdmVudC5zZXQodHJ1ZSk7XHJcblxyXG4gICAgICAgIFRvb2xzLlNsZWVwKHRpbWVvdXQpLnRoZW4oXyA9PiB7XHJcbiAgICAgICAgICAgIGlmKHRoaXMuX2lzRW5hYmxlKCkpIHtcclxuICAgICAgICAgICAgICAgIHRoaXMuX3RleHRib3guZm9jdXMoKTtcclxuICAgICAgICAgICAgICAgIHRoaXMuX3RleHRib3guc2VsZWN0KCk7XHJcbiAgICAgICAgICAgICAgICB0aGlzLk9wZW4oKTtcclxuICAgICAgICAgICAgfVxyXG5cclxuICAgICAgICAgICAgVG9vbHMuU2xlZXAoKS50aGVuKF8gPT4ge1xyXG4gICAgICAgICAgICAgICAgaWYgKFRvb2xzLklzTm90TnVsbCh0aGlzLl92YWx1ZSkpIHtcclxuICAgICAgICAgICAgICAgICAgICB0aGlzLlNlYXJjaCh0aGlzLl9kaXNwbGF5ZWQpO1xyXG4gICAgICAgICAgICAgICAgfVxyXG5cclxuICAgICAgICAgICAgICAgIHRoaXMuX2lzTG9hZGluZ0V2ZW50LnNldChmYWxzZSk7XHJcbiAgICAgICAgICAgIH0pO1xyXG4gICAgICAgIH0pO1xyXG4gICAgfVxyXG5cclxuXHJcbiAgICAvKiogKi9cclxuICAgIHB1YmxpYyBCbHVyKCk6IHZv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G4gICAgICAgICAgICAgICAgaWYodGhpcy5faW5kZXgoKSA+PSAzKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5fc2Nyb2xsLnNldCgodGhpcy5faW5kZXgoKSAtIDIpICogdGhpcy5fc2Nyb2xsQnlSb3cpO1xyXG4gICAgICAgICAgICAgICAgfVxyXG5cclxuICAgICAgICAgICAgICAgIGVsc2Uge1xyXG4gICAgICAgICAgICAgICAgICAgIHRoaXMuX3Njcm9sbC5zZXQoMCk7XHJcbiAgICAgICAgICAgICAgICB9XHJcblxyXG4gICAgICAgICAgICAgICAgdGhpcy5fZHJvcERvd25NZW51LnNjcm9sbFRvKDAsIHRoaXMuX3Njcm9sbCgpKTtcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgIH0pO1xyXG4gICAgfVxyXG59IiwiPGRpdiBjbGFzcz1cImNvZXItc2VsZWN0LWJveFwiPlxyXG4gICAgPG1hdC1mb3JtLWZpZWxkXHJcbiAgICAgICAgW2lkXT1cIl9pZCArICctY29udGFpbmVyJ1wiXHJcbiAgICAgICAgW2Zsb2F0TGFiZWxdPVwiZmxvYXRMYWJlbCgpXCJcclxuICAgICAgICBbbmdDbGFzc109XCJ7XHJcbiAgICAgICAgICAgICdyZWFkb25seSc6IGlzUmVhZG9ubHkoKSAmJiAhaXNMb2FkaW5nKClcclxuICAgICAgICB9XCJcclxuICAgICAgICBbc3R5bGVdPVwie1xyXG4gICAgICAgICAgICAnd2lkdGgnOiB3aWR0aCgpLFxyXG4gICAgICAgICAgICAnbWluLXdpZHRoJzogbWluV2lkdGgoKSxcclxuICAgICAgICAgICAgJ21heC13aWR0aCc6IG1heFdpZHRoKCksXHJcbiAgICAgICAgICAgICdtYXJnaW4tdG9wJzogbWFyZ2luVG9wKCksXHJcbiAgICAgICAgICAgICdtYXJnaW4tcmlnaHQnOiBtYXJnaW5SaWdodCgpLFxyXG4gICAgICAgICAgICAnbWFyZ2luLWJvdHRvbSc6IG1hcmdpbkJvdHRvbSgpLFxyXG4gICAgICAgICAgICAnbWFyZ2luLWxlZnQnOiBtYXJnaW5MZWZ0KClcclxuICAgICAgICB9XCI+XHJcbiAgICAgICAgPG1hdC1sYWJlbD57eyBsYWJlbCgpIH19PC9tYXQtbGFiZWw+XHJcblxyXG4gICAgICAgIDxpbnB1dCAjY29lclRleHRCb3ggbWF0SW5wdXRcclxuICAgICAgICAgICAgW2lkXT1cIl9pZFwiXHJcbiAgICAgICAgICAgIHR5cGU9XCJ0ZXh0XCJcclxuICAgICAgICAgICAgW3ZhbHVlXT1cIl9zZWFyY2goKVwiXHJcbiAgICAgICAgICAgIFtwbGFjZWhvbGRlcl09XCJfcGxhY2Vob2xkZXJcIlxyXG4gICAgICAgICAgICBbZGlzYWJsZWRdPVwiIV9pc0VuYWJsZSgpXCJcclxuICAgICAgICAgICAgKGlucHV0KT1cIlNlYXJjaChjb2VyVGV4dEJveC52YWx1ZSlcIlxyXG4gICAgICAgICAgICAoYmx1cik9XCJTZXRUb3VjaGVkKHRydWUpXCJcclxuICAgICAgICAgICAgW3N0eWxlXT1cIntcclxuICAgICAgICAgICAgICAgICdjdXJzb3InOiBpc0xvYWRpbmcoKSA/ICd3YWl0JyA6IG51bGwsXHJcbiAgICAgICAgICAgICAgICAnbWFyZ2luLXRvcCc6IChmbG9hdExhYmVsKCkgPT0gJ2F1dG8nKSA/ICcxNXB4JyA6ICc5cHgnLFxyXG4gICAgICAgICAgICAgICAgJ3BhZGRpbmctcmlnaHQnOiBwYWRkaW5nUmlnaHRcclxuICAgICAgICAgICAgfVwiPlxyXG5cclxuICAgICAgICBAaWYoaXNMb2FkaW5nKCkpIHtcclxuICAgICAgICAgICAgPGRpdiBjbGFzcz1cInBsYWNlaG9sZGVyLWdsb3dcIj5cclxuICAgICAgICAgICAgICAgIDxzcGFuIGNsYXNzPVwicGxhY2Vob2xkZXJcIj48L3NwYW4+XHJcbiAgICAgICAgICAgIDwvZGl2PlxyXG4gICAgICAgIH1cclxuXHJcbiAgICAgICAgPHNwYW4gbmdDbGFzcz1cImljb24tY29udGFpbmVyXCIgW3N0eWxlXT1cInsgJ3dpZHRoJzogd2lkdGhJY29ucyB9XCI+XHJcbiAgICAgICAgICAgIEBpZihfc2hvd0NhbmNlbCAmJiBfaXNFbmFibGUoKSAmJiAhaXNMb2FkaW5nKCkpIHtcclxuICAgICAgICAgICAgICAgIDxpIGNsYXNzPVwiZmEtc29saWQgZmEteG1hcmsgdGV4dC1zZWNvbmRhcnlcIiAoY2xpY2spPVwiVW5zZWxlY3QoKVwiPjwvaT5cclxuICAgICAgICAgICAgfVxyXG5cclxuICAgICAgICAgICAgQGVsc2UgaWYoaXNJbnZhbGlkKCkgJiYgIWlzTG9hZGluZygpKSB7XHJcbiAgICAgICAgICAgICAgICA8aSBjbGFzcz1cImZhLXNvbGlkIGZhLWNpcmNsZS1leGNsYW1hdGlvblwiPjwvaT5cclxuICAgICAgICAgICAgfVxyXG5cclxuICAgICAgICAgICAgQGVsc2UgaWYoaXNWYWxpZCgpICYmICFpc0xvYWRpbmcoKSkge1xyXG4gICAgICAgICAgICAgICAgPGkgY2xhc3M9XCJmYS1zb2xpZCBmYS1jaXJjbGUtY2hlY2sgdGV4dC1ncmVlblwiPjwvaT5cclxuICAgICAgICAgICAgfVxyXG5cclxuICAgICAgICAgICAgQGlmKF9pc09wZW4oKSAmJiBfaXNFbmFibGUoKSAmJiAhaXNMb2FkaW5nKCkpIHtcclxuICAgICAgICAgICAgICAgIDxpIGNsYXNzPVwiZmEtc29saWQgZmEtY2FyZXQtdXAgY3Vyc29yLXBvaW50ZXIgdGV4dC1vcmFuZ2VcIiAoY2xpY2spPVwiQmx1cigpXCI+PC9pPlxyXG4gICAgICAgICAgICB9XHJcblxyXG4gICAgICAgICAgICBAZWxzZSBpZihfaXNFbmFibGUoKSAmJiAhaXNMb2FkaW5nKCkpIHtcclxuICAgICAgICAgICAgICAgIDxpIGNsYXNzPVwiZmEtc29saWQgZmEtY2FyZXQtZG93biBjdXJzb3ItcG9pbnRlciB0ZXh0LXNlY29uZGFyeVwiPjwvaT5cclxuICAgICAgICAgICAgfVxyXG4gICAgICAgIDwvc3Bhbj5cclxuICAgIDwvbWF0LWZvcm0tZmllbGQ+XHJcblxyXG4gICAgPCEtLSBPcHRpb25zIENvbnRhaW5lciAtLT5cclxuICAgIDxkaXYgY2xhc3M9XCJidG4tZ3JvdXBcIj5cclxuICAgICAgICA8dWwgW2lkXT1cIl9pZCArICctZHJvcGRvd24tbWVudSdcIiBjbGFzcz1cImRyb3Bkb3duLW1lbnVcIj5cclxuICAgICAgICAgICAgQGZvcihpdGVtIG9mIF9kYXRhU291cmNlKCk7IHRyYWNrIEdldEluZGV4Um93KGl0ZW0pKSB7XHJcbiAgICAgICAgICAgICAgICA8bGkgKGNsaWNrKT1cIlNlbGVjdEl0ZW0oaXRlbSlcIj5cclxuICAgICAgICAgICAgICAgICAgICA8ZGl2IFtpZF09XCJpZCArICctZHJvcGRvd24tb3B0aW9uLScgKyBHZXRJbmRleFJvdyhpdGVtKVwiXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIFtuZ0NsYXNzXT1cIntcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICdkcm9wZG93bi1pdGVtJzogdHJ1ZSxcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICdjdXJzb3ItcG9pbnRlcic6IHRydWUsXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAnZHJvcGRvd24taXRlbS1mb2N1cyc6IF9pbmRleCgpID09IEdldEluZGV4Um93KGl0ZW0pXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cIlxyXG4gICAgICAgICAgICAgICAgICAgID57eyBHZXREaXNwbGF5KGl0ZW0pIH19IDwvZGl2PlxyXG4gICAgICAgICAgICAgICAgICAgIDxociBjbGFzcz1cImRyb3Bkb3duLWRpdmlkZXJcIj5cclxuICAgICAgICAgICAgICAgIDwvbGk+XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICA8L3VsPlxyXG4gICAgPC9kaXY+XHJcbjwvZGl2PlxyXG5cclxuIl19
@@ -0,0 +1,94 @@
1
+ import { Component, computed, input, Input, output, ViewChild } from '@angular/core';
2
+ import { CONTROL_VALUE, ControlValue } from '../../../tools/lib/control-value.class';
3
+ import { Tools } from '../../../tools/lib/tools';
4
+ import { Tooltip } from 'bootstrap';
5
+ import * as i0 from "@angular/core";
6
+ import * as i1 from "@angular/common";
7
+ import * as i2 from "@angular/material/slide-toggle";
8
+ export class CoerSwitch extends ControlValue {
9
+ constructor() {
10
+ super(...arguments);
11
+ //Variables
12
+ this._value = false;
13
+ this._id = Tools.GetGuid('coer-switch');
14
+ this._tooltip = '';
15
+ this.id = '';
16
+ this.label = input('');
17
+ this.labelPosition = input('after');
18
+ this.isDisabled = input(false);
19
+ this.isLoading = input(false);
20
+ this.isInvisible = input(false);
21
+ this.tooltipPosition = input('top');
22
+ //Outputs
23
+ this.onChange = output();
24
+ //conmputed
25
+ this._isEnable = computed(() => {
26
+ return !this.isLoading() && !this.isDisabled() && !this.isInvisible();
27
+ });
28
+ }
29
+ //Inputs
30
+ set value(value) {
31
+ if (Tools.IsNull(value))
32
+ value = false;
33
+ this.SetValue(value);
34
+ }
35
+ set tooltip(value) {
36
+ this._tooltip = value;
37
+ if (value && this._tooltipElement) {
38
+ this._tooltipElement.setContent({ '.tooltip-inner': this._tooltip });
39
+ }
40
+ }
41
+ ngOnInit() {
42
+ Tools.Sleep().then(() => {
43
+ const htmlElement = document.getElementById(this._id);
44
+ if (htmlElement) {
45
+ htmlElement.addEventListener('mouseleave', () => {
46
+ if (this._tooltipElement)
47
+ this._tooltipElement.hide();
48
+ });
49
+ this._tooltipElement = new Tooltip(htmlElement, {
50
+ html: true,
51
+ title: this._tooltip,
52
+ placement: this.tooltipPosition()
53
+ });
54
+ }
55
+ });
56
+ }
57
+ ngOnDestroy() {
58
+ if (this._tooltipElement) {
59
+ Tools.Sleep().then(() => this._tooltipElement.dispose());
60
+ }
61
+ }
62
+ //getter
63
+ get value() {
64
+ return this._value;
65
+ }
66
+ /** */
67
+ Focus() {
68
+ Tools.Sleep().then(() => {
69
+ if (this._isEnable())
70
+ this.coerSwitch.focus();
71
+ });
72
+ }
73
+ /** */
74
+ Change(value) {
75
+ this.SetValue(value);
76
+ this.onChange.emit(value);
77
+ }
78
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CoerSwitch, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
79
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.3.12", type: CoerSwitch, selector: "coer-switch", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: false, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: false, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, labelPosition: { classPropertyName: "labelPosition", publicName: "labelPosition", isSignal: true, isRequired: false, transformFunction: null }, isDisabled: { classPropertyName: "isDisabled", publicName: "isDisabled", isSignal: true, isRequired: false, transformFunction: null }, isLoading: { classPropertyName: "isLoading", publicName: "isLoading", isSignal: true, isRequired: false, transformFunction: null }, isInvisible: { classPropertyName: "isInvisible", publicName: "isInvisible", isSignal: true, isRequired: false, transformFunction: null }, tooltipPosition: { classPropertyName: "tooltipPosition", publicName: "tooltipPosition", isSignal: true, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { onChange: "onChange" }, providers: [CONTROL_VALUE(CoerSwitch)], viewQueries: [{ propertyName: "coerSwitch", first: true, predicate: ["coerSwitch"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div [ngClass]=\"{ 'coer-switch': true, 'placeholder-glow': isLoading(), 'invisible': isInvisible() }\">\r\n <div [id]=\"_id\" [ngClass]=\"{ 'placeholder': isLoading() }\">\r\n <mat-slide-toggle\r\n #coerSwitch\r\n [checked]=\"_value\"\r\n [disabled]=\"!_isEnable()\"\r\n [labelPosition]=\"labelPosition()\"\r\n (change)=\"Change($event.checked)\"\r\n >{{ label() }}</mat-slide-toggle>\r\n </div>\r\n</div>", styles: ["div.coer-switch{height:40px;display:flex!important;align-items:center!important;position:relative!important}div.coer-switch .text-blue{color:#0d6efd!important}div.coer-switch .text-blue-bold{color:#0d6efd!important;font-weight:700!important}div.coer-switch .background-blue{background-color:#0d6efd!important}div.coer-switch .background-border-blue{background-color:#0d6efd!important;border-color:#0d6efd!important}div.coer-switch .border-blue{border-color:#0d6efd!important}div.coer-switch .text-gray{color:#6c757d!important}div.coer-switch .text-gray-bold{color:#6c757d!important;font-weight:700!important}div.coer-switch .background-gray{background-color:#6c757d!important}div.coer-switch .background-border-gray{background-color:#6c757d!important;border-color:#6c757d!important}div.coer-switch .border-gray{border-color:#6c757d!important}div.coer-switch .text-green{color:#198754!important}div.coer-switch .text-green-bold{color:#198754!important;font-weight:700!important}div.coer-switch .background-green{background-color:#198754!important}div.coer-switch .background-border-green{background-color:#198754!important;border-color:#198754!important}div.coer-switch .border-green{border-color:#198754!important}div.coer-switch .text-yellow{color:#ffc107!important}div.coer-switch .text-yellow-bold{color:#ffc107!important;font-weight:700!important}div.coer-switch .background-yellow{background-color:#ffc107!important}div.coer-switch .background-border-yellow{background-color:#ffc107!important;border-color:#ffc107!important}div.coer-switch .border-yellow{border-color:#ffc107!important}div.coer-switch .text-red{color:#dc3545!important}div.coer-switch .text-red-bold{color:#dc3545!important;font-weight:700!important}div.coer-switch .background-red{background-color:#dc3545!important}div.coer-switch .background-border-red{background-color:#dc3545!important;border-color:#dc3545!important}div.coer-switch .border-red{border-color:#dc3545!important}div.coer-switch .text-white{color:#f5f5f5!important}div.coer-switch .text-white-bold{color:#f5f5f5!important;font-weight:700!important}div.coer-switch .background-white{background-color:#f5f5f5!important}div.coer-switch .background-border-white{background-color:#f5f5f5!important;border-color:#f5f5f5!important}div.coer-switch .border-white{border-color:#f5f5f5!important}div.coer-switch .text-black{color:#252525!important}div.coer-switch .text-black-bold{color:#252525!important;font-weight:700!important}div.coer-switch .background-black{background-color:#252525!important}div.coer-switch .background-border-black{background-color:#252525!important;border-color:#252525!important}div.coer-switch .border-black{border-color:#252525!important}div.coer-switch .text-orange{color:#fd6031!important}div.coer-switch .text-orange-bold{color:#fd6031!important;font-weight:700!important}div.coer-switch .background-orange{background-color:#fd6031!important}div.coer-switch .background-border-orange{background-color:#fd6031!important;border-color:#fd6031!important}div.coer-switch .border-orange{border-color:#fd6031!important}div.coer-switch mat-slide-toggle div.mdc-form-field.mat-internal-form-field button div.mdc-switch__track:after{background-color:#fd6031!important;filter:opacity(.6)!important}div.coer-switch mat-slide-toggle div.mdc-form-field.mat-internal-form-field button div.mdc-switch__handle-track div.mdc-switch__ripple{width:30px!important;height:30px!important}div.coer-switch mat-slide-toggle div.mdc-form-field.mat-internal-form-field button.mdc-switch.mdc-switch--selected.mdc-switch--checked div.mdc-switch__handle-track div.mdc-switch__handle div.mdc-switch__icons{background-color:#fd6031!important;border-radius:20px!important}div.coer-switch mat-slide-toggle div.mdc-form-field.mat-internal-form-field label,div.coer-switch mat-slide-toggle div.mdc-form-field.mat-internal-form-field label::selection{font-weight:400;background-color:transparent!important;font-size:17px!important}div.coer-switch .placeholder{display:flex!important;height:27px!important}div.coer-switch .placeholder,div.coer-switch .placeholder *,div.coer-switch .placeholder-glow,div.coer-switch .placeholder-glow *{cursor:wait!important}coer-grid div.coer-switch{height:20px!important;justify-content:center!important}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i2.MatSlideToggle, selector: "mat-slide-toggle", inputs: ["name", "id", "labelPosition", "aria-label", "aria-labelledby", "aria-describedby", "required", "color", "disabled", "disableRipple", "tabIndex", "checked", "hideIcon"], outputs: ["change", "toggleChange"], exportAs: ["matSlideToggle"] }] }); }
80
+ }
81
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CoerSwitch, decorators: [{
82
+ type: Component,
83
+ args: [{ selector: 'coer-switch', providers: [CONTROL_VALUE(CoerSwitch)], template: "<div [ngClass]=\"{ 'coer-switch': true, 'placeholder-glow': isLoading(), 'invisible': isInvisible() }\">\r\n <div [id]=\"_id\" [ngClass]=\"{ 'placeholder': isLoading() }\">\r\n <mat-slide-toggle\r\n #coerSwitch\r\n [checked]=\"_value\"\r\n [disabled]=\"!_isEnable()\"\r\n [labelPosition]=\"labelPosition()\"\r\n (change)=\"Change($event.checked)\"\r\n >{{ label() }}</mat-slide-toggle>\r\n </div>\r\n</div>", styles: ["div.coer-switch{height:40px;display:flex!important;align-items:center!important;position:relative!important}div.coer-switch .text-blue{color:#0d6efd!important}div.coer-switch .text-blue-bold{color:#0d6efd!important;font-weight:700!important}div.coer-switch .background-blue{background-color:#0d6efd!important}div.coer-switch .background-border-blue{background-color:#0d6efd!important;border-color:#0d6efd!important}div.coer-switch .border-blue{border-color:#0d6efd!important}div.coer-switch .text-gray{color:#6c757d!important}div.coer-switch .text-gray-bold{color:#6c757d!important;font-weight:700!important}div.coer-switch .background-gray{background-color:#6c757d!important}div.coer-switch .background-border-gray{background-color:#6c757d!important;border-color:#6c757d!important}div.coer-switch .border-gray{border-color:#6c757d!important}div.coer-switch .text-green{color:#198754!important}div.coer-switch .text-green-bold{color:#198754!important;font-weight:700!important}div.coer-switch .background-green{background-color:#198754!important}div.coer-switch .background-border-green{background-color:#198754!important;border-color:#198754!important}div.coer-switch .border-green{border-color:#198754!important}div.coer-switch .text-yellow{color:#ffc107!important}div.coer-switch .text-yellow-bold{color:#ffc107!important;font-weight:700!important}div.coer-switch .background-yellow{background-color:#ffc107!important}div.coer-switch .background-border-yellow{background-color:#ffc107!important;border-color:#ffc107!important}div.coer-switch .border-yellow{border-color:#ffc107!important}div.coer-switch .text-red{color:#dc3545!important}div.coer-switch .text-red-bold{color:#dc3545!important;font-weight:700!important}div.coer-switch .background-red{background-color:#dc3545!important}div.coer-switch .background-border-red{background-color:#dc3545!important;border-color:#dc3545!important}div.coer-switch .border-red{border-color:#dc3545!important}div.coer-switch .text-white{color:#f5f5f5!important}div.coer-switch .text-white-bold{color:#f5f5f5!important;font-weight:700!important}div.coer-switch .background-white{background-color:#f5f5f5!important}div.coer-switch .background-border-white{background-color:#f5f5f5!important;border-color:#f5f5f5!important}div.coer-switch .border-white{border-color:#f5f5f5!important}div.coer-switch .text-black{color:#252525!important}div.coer-switch .text-black-bold{color:#252525!important;font-weight:700!important}div.coer-switch .background-black{background-color:#252525!important}div.coer-switch .background-border-black{background-color:#252525!important;border-color:#252525!important}div.coer-switch .border-black{border-color:#252525!important}div.coer-switch .text-orange{color:#fd6031!important}div.coer-switch .text-orange-bold{color:#fd6031!important;font-weight:700!important}div.coer-switch .background-orange{background-color:#fd6031!important}div.coer-switch .background-border-orange{background-color:#fd6031!important;border-color:#fd6031!important}div.coer-switch .border-orange{border-color:#fd6031!important}div.coer-switch mat-slide-toggle div.mdc-form-field.mat-internal-form-field button div.mdc-switch__track:after{background-color:#fd6031!important;filter:opacity(.6)!important}div.coer-switch mat-slide-toggle div.mdc-form-field.mat-internal-form-field button div.mdc-switch__handle-track div.mdc-switch__ripple{width:30px!important;height:30px!important}div.coer-switch mat-slide-toggle div.mdc-form-field.mat-internal-form-field button.mdc-switch.mdc-switch--selected.mdc-switch--checked div.mdc-switch__handle-track div.mdc-switch__handle div.mdc-switch__icons{background-color:#fd6031!important;border-radius:20px!important}div.coer-switch mat-slide-toggle div.mdc-form-field.mat-internal-form-field label,div.coer-switch mat-slide-toggle div.mdc-form-field.mat-internal-form-field label::selection{font-weight:400;background-color:transparent!important;font-size:17px!important}div.coer-switch .placeholder{display:flex!important;height:27px!important}div.coer-switch .placeholder,div.coer-switch .placeholder *,div.coer-switch .placeholder-glow,div.coer-switch .placeholder-glow *{cursor:wait!important}coer-grid div.coer-switch{height:20px!important;justify-content:center!important}\n"] }]
84
+ }], propDecorators: { coerSwitch: [{
85
+ type: ViewChild,
86
+ args: ['coerSwitch']
87
+ }], value: [{
88
+ type: Input
89
+ }], id: [{
90
+ type: Input
91
+ }], tooltip: [{
92
+ type: Input
93
+ }] } });
94
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29lci1zd2l0Y2guY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29lci1lbGVtZW50cy9zcmMvY29tcG9uZW50cy9saWIvY29lci1zd2l0Y2gvY29lci1zd2l0Y2guY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29lci1lbGVtZW50cy9zcmMvY29tcG9uZW50cy9saWIvY29lci1zd2l0Y2gvY29lci1zd2l0Y2guY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxRQUFRLEVBQUUsS0FBSyxFQUFFLEtBQUssRUFBcUIsTUFBTSxFQUFFLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUV4RyxPQUFPLEVBQUUsYUFBYSxFQUFFLFlBQVksRUFBRSxNQUFNLHdDQUF3QyxDQUFDO0FBQ3JGLE9BQU8sRUFBRSxLQUFLLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQztBQUNqRCxPQUFPLEVBQUUsT0FBTyxFQUFFLE1BQU0sV0FBVyxDQUFDOzs7O0FBUXBDLE1BQU0sT0FBTyxVQUFXLFNBQVEsWUFBWTtJQU41Qzs7UUFRSSxXQUFXO1FBQ1EsV0FBTSxHQUFZLEtBQUssQ0FBQztRQUNqQyxRQUFHLEdBQVcsS0FBSyxDQUFDLE9BQU8sQ0FBQyxhQUFhLENBQUMsQ0FBQztRQUM3QyxhQUFRLEdBQVcsRUFBRSxDQUFDO1FBV3JC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+IHtcclxuICAgICAgICAgICAgY29uc3QgaHRtbEVsZW1lbnQgPSBkb2N1bWVudC5nZXRFbGVtZW50QnlJZCh0aGlzLl9pZCkhO1xyXG5cclxuICAgICAgICAgICAgaWYgKGh0bWxFbGVtZW50KSB7XHJcbiAgICAgICAgICAgICAgICBodG1sRWxlbWVudC5hZGRFdmVudExpc3RlbmVyKCdtb3VzZWxlYXZlJywgKCkgPT4ge1xyXG4gICAgICAgICAgICAgICAgICAgIGlmICh0aGlzLl90b29sdGlwRWxlbWVudCkgdGhpcy5fdG9vbHRpcEVsZW1lbnQuaGlkZSgpXHJcbiAgICAgICAgICAgICAgICB9KTtcclxuXHJcbiAgICAgICAgICAgICAgICB0aGlzLl90b29sdGlwRWxlbWVudCA9IG5ldyBUb29sdGlwKGh0bWxFbGVtZW50LCB7XHJcbiAgICAgICAgICAgICAgICAgICAgaHRtbDogdHJ1ZSxcclxuICAgICAgICAgICAgICAgICAgICB0aXRsZTogdGhpcy5fdG9vbHRpcCxcclxuICAgICAgICAgICAgICAgICAgICBwbGFjZW1lbnQ6IHRoaXMudG9vbHRpcFBvc2l0aW9uKClcclxuICAgICAgICAgICAgICAgIH0pO1xyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgfSk7XHJcbiAgICB9XHJcblxyXG4gICAgbmdPbkRlc3Ryb3koKSB7XHJcbiAgICAgICAgaWYgKHRoaXMuX3Rvb2x0aXBFbGVtZW50KSB7XHJcbiAgICAgICAgICAgIFRvb2xzLlNsZWVwKCkudGhlbigoKSA9PiB0aGlzLl90b29sdGlwRWxlbWVudC5kaXNwb3NlKCkpO1xyXG4gICAgICAgIH1cclxuICAgIH1cclxuXHJcblxyXG4gICAgLy9nZXR0ZXJcclxuICAgIHB1YmxpYyBnZXQgdmFsdWUoKSB7XHJcbiAgICAgICAgcmV0dXJuIHRoaXMuX3ZhbHVlO1xyXG4gICAgfVxyXG5cclxuXHJcbiAgICAvL2Nvbm1wdXRlZFxyXG4gICAgcHJvdGVjd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