@kubex/zinc 1.0.22 → 1.0.23

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubex/zinc",
3
- "version": "1.0.22",
3
+ "version": "1.0.23",
4
4
  "description": "A collection of web components for building web applications based off of @shoelace-style/Shoelace",
5
5
  "keywords": [
6
6
  "web components",
@@ -1,7 +1,7 @@
1
1
  import {classMap} from 'lit/directives/class-map.js';
2
2
  import {FormControlController, validValidityState} from '../../internal/form';
3
3
  import {HasSlotController} from '../../internal/slot';
4
- import {html, unsafeCSS} from 'lit';
4
+ import {html, nothing, unsafeCSS} from 'lit';
5
5
  import {property, state} from 'lit/decorators.js';
6
6
  import ZincElement from '../../internal/zinc-element';
7
7
  import ZnInlineEdit from '../inline-edit';
@@ -30,6 +30,7 @@ export default class ZnTranslations extends ZincElement implements ZincFormContr
30
30
  @property() label: string = '';
31
31
  @property({type: Boolean, reflect: true}) disabled = false;
32
32
  @property({type: Boolean, reflect: true}) required = false;
33
+ @property({type: Boolean, reflect: true}) flush = false;
33
34
 
34
35
  @property({type: Object}) languages: Record<string, string> = {
35
36
  'en': 'English'
@@ -212,9 +213,10 @@ export default class ZnTranslations extends ZincElement implements ZincFormContr
212
213
  .navigation="${navigation}"
213
214
  .dropdown="${availableLanguages}"
214
215
  name="${this.name}-translations-navbar"
215
- isolated
216
216
  @zn-select="${this.handleNavbarClick}"
217
217
  @zn-menu-select="${this.handleLanguageAdd}"
218
+ flush=${this.flush || nothing}
219
+ isolated
218
220
  manual-add-items
219
221
  ></zn-navbar>
220
222
  <div class="input-container">
@@ -7,6 +7,7 @@
7
7
  .translations {
8
8
  display: flex;
9
9
  flex-direction: column;
10
+ padding: 0 var(--zn-spacing-medium);
10
11
  gap: var(--zn-spacing-small);
11
12
  }
12
13