@design.estate/dees-catalog 3.65.0 → 3.67.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -386,6 +386,11 @@ export const tableStyles: CSSResult[] = [
386
386
  }
387
387
  td.editingCell {
388
388
  padding: 0;
389
+ outline: 2px solid ${cssManager.bdTheme(
390
+ 'hsl(222.2 47.4% 51.2% / 0.6)',
391
+ 'hsl(217.2 91.2% 59.8% / 0.6)'
392
+ )};
393
+ outline-offset: -2px;
389
394
  }
390
395
  td.editingCell .innerCellContainer {
391
396
  padding: 0;
@@ -46,6 +46,12 @@ export class DeesInputDropdown extends DeesInputBase<DeesInputDropdown> {
46
46
  })
47
47
  accessor enableSearch: boolean = true;
48
48
 
49
+ @property({
50
+ type: Boolean,
51
+ reflect: true,
52
+ })
53
+ accessor vintegrated: boolean = false;
54
+
49
55
  @state()
50
56
  accessor isOpened = false;
51
57
 
@@ -126,6 +132,36 @@ export class DeesInputDropdown extends DeesInputBase<DeesInputDropdown> {
126
132
  .selectedBox.open::after {
127
133
  transform: translateY(-50%) rotate(180deg);
128
134
  }
135
+
136
+ /* Visually integrated mode: shed chrome to blend into a host component
137
+ (e.g. a dees-table cell in edit mode). */
138
+ :host([vintegrated]) dees-label {
139
+ display: none;
140
+ }
141
+ :host([vintegrated]) .maincontainer {
142
+ height: 40px;
143
+ }
144
+ :host([vintegrated]) .selectedBox {
145
+ height: 40px;
146
+ line-height: 40px;
147
+ padding: 0 32px 0 16px;
148
+ font-size: 13px;
149
+ border: none;
150
+ border-radius: 0;
151
+ background: transparent;
152
+ box-shadow: none;
153
+ transition: none;
154
+ }
155
+ :host([vintegrated]) .selectedBox:hover:not(.disabled),
156
+ :host([vintegrated]) .selectedBox:focus-visible {
157
+ border: none;
158
+ box-shadow: none;
159
+ background: transparent;
160
+ }
161
+ :host([vintegrated]) .selectedBox::after {
162
+ right: 12px;
163
+ opacity: 0.6;
164
+ }
129
165
  `,
130
166
  ];
131
167
 
@@ -57,6 +57,12 @@ export class DeesInputText extends DeesInputBase {
57
57
  @property({})
58
58
  accessor validationFunction!: (value: string) => boolean;
59
59
 
60
+ @property({
61
+ type: Boolean,
62
+ reflect: true,
63
+ })
64
+ accessor vintegrated: boolean = false;
65
+
60
66
  public static styles = [
61
67
  themeDefaultStyles,
62
68
  ...DeesInputBase.baseStyles,
@@ -194,6 +200,36 @@ export class DeesInputText extends DeesInputBase {
194
200
  border-color: ${cssManager.bdTheme('hsl(142.1 76.2% 36.3%)', 'hsl(142.1 70.6% 45.3%)')};
195
201
  box-shadow: 0 0 0 2px ${cssManager.bdTheme('hsl(142.1 76.2% 36.3% / 0.05)', 'hsl(142.1 70.6% 45.3% / 0.05)')};
196
202
  }
203
+
204
+ /* Visually integrated mode: shed chrome to blend into a host component
205
+ (e.g. a dees-table cell in edit mode). */
206
+ :host([vintegrated]) dees-label,
207
+ :host([vintegrated]) .validationContainer {
208
+ display: none;
209
+ }
210
+ :host([vintegrated]) .maincontainer {
211
+ height: 40px;
212
+ }
213
+ :host([vintegrated]) input {
214
+ height: 40px;
215
+ line-height: 24px;
216
+ padding: 0 16px;
217
+ font-size: 13px;
218
+ border: none;
219
+ border-radius: 0;
220
+ background: transparent;
221
+ box-shadow: none;
222
+ transition: none;
223
+ }
224
+ :host([vintegrated]) input:hover:not(:disabled):not(:focus),
225
+ :host([vintegrated]) input:focus {
226
+ border: none;
227
+ box-shadow: none;
228
+ background: transparent;
229
+ }
230
+ :host([vintegrated]) .showPassword {
231
+ display: none;
232
+ }
197
233
  `,
198
234
  ];
199
235