@aquera/nile-elements 0.0.38-4 → 0.0.38-6
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.d.ts +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-content-editor/nile-content-editor.js +8 -2
- 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-select/nile-select.js +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-select/nile-select.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-switcher/nile-switcher.js +2 -1
- 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 +5 -3
- 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 +5 -5
- package/dist/nile-select/nile-select.cjs.js +1 -1
- package/dist/nile-select/nile-select.cjs.js.map +1 -1
- package/dist/nile-select/nile-select.esm.js +1 -0
- 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.esm.js +11 -10
- package/dist/src/nile-content-editor/nile-content-editor.d.ts +1 -0
- package/dist/src/nile-content-editor/nile-content-editor.js +8 -2
- package/dist/src/nile-content-editor/nile-content-editor.js.map +1 -1
- package/dist/src/nile-select/nile-select.js +1 -0
- package/dist/src/nile-select/nile-select.js.map +1 -1
- package/dist/src/nile-switcher/nile-switcher.js +2 -1
- 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 +7 -2
- package/src/nile-select/nile-select.ts +1 -0
- package/src/nile-switcher/nile-switcher.ts +11 -2
package/package.json
CHANGED
@@ -62,6 +62,7 @@ export class NileContentEditor extends NileElement {
|
|
62
62
|
|
63
63
|
@property({ attribute: 'error' }) error = false;
|
64
64
|
@property({ attribute: 'noborder' }) noborder = false;
|
65
|
+
@property({ type: Boolean }) updateValue: any = false;
|
65
66
|
|
66
67
|
@state() initialValue = '';
|
67
68
|
|
@@ -134,9 +135,13 @@ export class NileContentEditor extends NileElement {
|
|
134
135
|
});
|
135
136
|
}
|
136
137
|
|
137
|
-
@watch(['type'], { waitUntilFirstUpdate: true })
|
138
|
+
@watch(['type', 'value'], { waitUntilFirstUpdate: true })
|
138
139
|
handleTypeChange() {
|
139
|
-
|
140
|
+
if (this.updateValue) {
|
141
|
+
this.contentEditor.innerHTML = this.generateHTMLTagsWithValues(
|
142
|
+
this.value
|
143
|
+
);
|
144
|
+
}
|
140
145
|
}
|
141
146
|
|
142
147
|
disconnectedCallback(): void {
|
@@ -259,8 +259,16 @@ export class NileSwitcher extends NileElement {
|
|
259
259
|
}
|
260
260
|
|
261
261
|
renderContentEditor(Input: switchInputType) {
|
262
|
-
let {
|
263
|
-
|
262
|
+
let {
|
263
|
+
options,
|
264
|
+
inputType,
|
265
|
+
errorMessage,
|
266
|
+
type,
|
267
|
+
readonly,
|
268
|
+
noborder,
|
269
|
+
value,
|
270
|
+
updateValue,
|
271
|
+
} = Input;
|
264
272
|
return html`<nile-content-editor
|
265
273
|
class="switcher-content-editor"
|
266
274
|
.value=${value}
|
@@ -268,6 +276,7 @@ export class NileSwitcher extends NileElement {
|
|
268
276
|
.type=${type}
|
269
277
|
.readonly=${readonly}
|
270
278
|
.noborder=${noborder}
|
279
|
+
.updateValue=${updateValue}
|
271
280
|
.errorMessage=${errorMessage}
|
272
281
|
@nile-change=${(e: CustomEvent) => {
|
273
282
|
this.handleChange(e, inputType);
|