@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.
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-content-editor/nile-content-editor.js +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-content-editor/nile-content-editor.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-switcher/nile-switcher.css.js +3 -2
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-switcher/nile-switcher.css.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-switcher/nile-switcher.d.ts +0 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-switcher/nile-switcher.js +9 -12
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-switcher/nile-switcher.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/index.iife.js +14 -13
- package/dist/nile-content-editor/nile-content-editor.cjs.js +1 -1
- package/dist/nile-content-editor/nile-content-editor.cjs.js.map +1 -1
- package/dist/nile-content-editor/nile-content-editor.esm.js +1 -1
- package/dist/nile-switcher/nile-switcher.cjs.js +1 -1
- package/dist/nile-switcher/nile-switcher.cjs.js.map +1 -1
- package/dist/nile-switcher/nile-switcher.css.cjs.js +1 -1
- package/dist/nile-switcher/nile-switcher.css.cjs.js.map +1 -1
- package/dist/nile-switcher/nile-switcher.css.esm.js +3 -2
- package/dist/nile-switcher/nile-switcher.esm.js +18 -18
- package/dist/src/nile-content-editor/nile-content-editor.js +1 -1
- package/dist/src/nile-content-editor/nile-content-editor.js.map +1 -1
- package/dist/src/nile-switcher/nile-switcher.css.js +3 -2
- package/dist/src/nile-switcher/nile-switcher.css.js.map +1 -1
- package/dist/src/nile-switcher/nile-switcher.d.ts +0 -1
- package/dist/src/nile-switcher/nile-switcher.js +9 -12
- package/dist/src/nile-switcher/nile-switcher.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/nile-content-editor/nile-content-editor.ts +1 -1
- package/src/nile-switcher/nile-switcher.css.ts +3 -2
- package/src/nile-switcher/nile-switcher.ts +14 -15
package/package.json
CHANGED
@@ -134,7 +134,7 @@ export class NileContentEditor extends NileElement {
|
|
134
134
|
});
|
135
135
|
}
|
136
136
|
|
137
|
-
@watch(['type'
|
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:
|
28
|
-
min-width:
|
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
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
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=${
|
229
|
+
.value=${value}
|
231
230
|
.options=${options}
|
232
231
|
.type=${type}
|
233
232
|
.readonly=${readonly}
|