@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/dist/custom-elements.json +184 -166
- package/dist/vscode.html-custom-data.json +21 -20
- package/dist/web-types.json +52 -47
- package/dist/zn.d.ts +1 -0
- package/dist/zn.min.js +38 -37
- package/package.json +1 -1
- package/src/components/translations/translations.component.ts +4 -2
- package/src/components/translations/translations.scss +1 -0
package/package.json
CHANGED
|
@@ -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">
|