@aquera/nile-elements 0.0.23 → 0.0.24

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 (30) hide show
  1. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-content-editor/nile-content-editor.js +1 -1
  2. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-content-editor/nile-content-editor.js.map +1 -1
  3. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-switcher/nile-switcher.css.js +3 -2
  4. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-switcher/nile-switcher.css.js.map +1 -1
  5. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-switcher/nile-switcher.d.ts +0 -1
  6. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-switcher/nile-switcher.js +9 -12
  7. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-switcher/nile-switcher.js.map +1 -1
  8. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/tsconfig.tsbuildinfo +1 -1
  9. package/dist/index.iife.js +14 -13
  10. package/dist/nile-content-editor/nile-content-editor.cjs.js +1 -1
  11. package/dist/nile-content-editor/nile-content-editor.cjs.js.map +1 -1
  12. package/dist/nile-content-editor/nile-content-editor.esm.js +1 -1
  13. package/dist/nile-switcher/nile-switcher.cjs.js +1 -1
  14. package/dist/nile-switcher/nile-switcher.cjs.js.map +1 -1
  15. package/dist/nile-switcher/nile-switcher.css.cjs.js +1 -1
  16. package/dist/nile-switcher/nile-switcher.css.cjs.js.map +1 -1
  17. package/dist/nile-switcher/nile-switcher.css.esm.js +3 -2
  18. package/dist/nile-switcher/nile-switcher.esm.js +18 -18
  19. package/dist/src/nile-content-editor/nile-content-editor.js +1 -1
  20. package/dist/src/nile-content-editor/nile-content-editor.js.map +1 -1
  21. package/dist/src/nile-switcher/nile-switcher.css.js +3 -2
  22. package/dist/src/nile-switcher/nile-switcher.css.js.map +1 -1
  23. package/dist/src/nile-switcher/nile-switcher.d.ts +0 -1
  24. package/dist/src/nile-switcher/nile-switcher.js +9 -12
  25. package/dist/src/nile-switcher/nile-switcher.js.map +1 -1
  26. package/dist/tsconfig.tsbuildinfo +1 -1
  27. package/package.json +1 -1
  28. package/src/nile-content-editor/nile-content-editor.ts +1 -1
  29. package/src/nile-switcher/nile-switcher.css.ts +3 -2
  30. package/src/nile-switcher/nile-switcher.ts +14 -15
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Webcomponent nile-elements following open-wc recommendations",
4
4
  "license": "MIT",
5
5
  "author": "nile-elements",
6
- "version": "0.0.23",
6
+ "version": "0.0.24",
7
7
  "main": "dist/src/index.js",
8
8
  "type": "module",
9
9
  "module": "dist/src/index.js",
@@ -134,7 +134,7 @@ export class NileContentEditor extends NileElement {
134
134
  });
135
135
  }
136
136
 
137
- @watch(['type', 'value'], { waitUntilFirstUpdate: true })
137
+ @watch(['type'], { waitUntilFirstUpdate: true })
138
138
  handleTypeChange() {
139
139
  this.contentEditor.innerHTML = this.generateHTMLTagsWithValues(this.value);
140
140
  }
@@ -12,6 +12,7 @@ import { css } from 'lit-element';
12
12
  */
13
13
  export const styles = css`
14
14
  :host {
15
+ width: 100%;
15
16
  box-sizing: border-box;
16
17
  }
17
18
 
@@ -24,8 +25,8 @@ export const styles = css`
24
25
  }
25
26
 
26
27
  .input-container > :first-child {
27
- max-width: 99%;
28
- min-width: 99%;
28
+ max-width: 98%;
29
+ min-width: 98%;
29
30
  }
30
31
 
31
32
  nile-icon {
@@ -83,8 +83,6 @@ export class NileSwitcher extends NileElement {
83
83
  static styles: CSSResultGroup = styles;
84
84
  @property({ type: Object }) nileSwitchConfig: switchconfig;
85
85
 
86
- @property() value: string;
87
-
88
86
  connectedCallback() {
89
87
  super.connectedCallback();
90
88
  this.emit('nile-init');
@@ -197,18 +195,18 @@ export class NileSwitcher extends NileElement {
197
195
  const haserrorMessage = !!errorMessage;
198
196
 
199
197
  return html`<nile-radio-group
200
- .value=${value}
201
- .disabled=${disabled}
202
- @change=${(e: CustomEvent) => {
203
- this.handleChange(e, inputType, inputTypeName);
204
- }}
205
- >
206
- ${options &&
207
- options.map((option: any) => {
208
- return html`<nile-radio .value="${option}">${option} </nile-radio>`;
209
- })}
210
- </nile-radio-group>
211
- ${haserrorMessage ? this.renderErrorMessage(errorMessage) : ''}`;
198
+ .value=${value}
199
+ .disabled=${disabled}
200
+ @change=${(e: CustomEvent) => {
201
+ this.handleChange(e, inputType, inputTypeName);
202
+ }}
203
+ >
204
+ ${options &&
205
+ options.map((option: any) => {
206
+ return html`<nile-radio .value="${option}">${option} </nile-radio>`;
207
+ })}
208
+ ${haserrorMessage ? this.renderErrorMessage(errorMessage) : ''}
209
+ </nile-radio-group> `;
212
210
  }
213
211
 
214
212
  renderErrorMessage(errorMessage: string) {
@@ -225,9 +223,10 @@ export class NileSwitcher extends NileElement {
225
223
  type,
226
224
  readonly,
227
225
  noborder,
226
+ value,
228
227
  } = Input;
229
228
  return html`<nile-content-editor
230
- .value=${this.value}
229
+ .value=${value}
231
230
  .options=${options}
232
231
  .type=${type}
233
232
  .readonly=${readonly}