@aquera/nile-elements 0.0.36-3 → 0.0.37-1
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-code-editor/nile-code-editor.css.js +2 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-code-editor/nile-code-editor.css.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-code-editor/nile-code-editor.d.ts +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-code-editor/nile-code-editor.js +5 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-code-editor/nile-code-editor.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-switcher/nile-switcher.d.ts +2 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-switcher/nile-switcher.js +12 -7
- 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 +71 -67
- package/dist/nile-code-editor/nile-code-editor.cjs.js +1 -1
- package/dist/nile-code-editor/nile-code-editor.cjs.js.map +1 -1
- package/dist/nile-code-editor/nile-code-editor.css.cjs.js +1 -1
- package/dist/nile-code-editor/nile-code-editor.css.cjs.js.map +1 -1
- package/dist/nile-code-editor/nile-code-editor.css.esm.js +4 -3
- package/dist/nile-code-editor/nile-code-editor.esm.js +4 -4
- 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 -8
- package/dist/src/nile-code-editor/nile-code-editor.css.js +2 -1
- package/dist/src/nile-code-editor/nile-code-editor.css.js.map +1 -1
- package/dist/src/nile-code-editor/nile-code-editor.d.ts +1 -0
- package/dist/src/nile-code-editor/nile-code-editor.js +5 -1
- package/dist/src/nile-code-editor/nile-code-editor.js.map +1 -1
- package/dist/src/nile-switcher/nile-switcher.d.ts +2 -1
- package/dist/src/nile-switcher/nile-switcher.js +12 -7
- 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-code-editor/nile-code-editor.css.ts +2 -1
- package/src/nile-code-editor/nile-code-editor.ts +2 -1
- package/src/nile-switcher/nile-switcher.ts +15 -6
package/package.json
CHANGED
@@ -50,6 +50,7 @@ export class NileCodeEditor extends NileElement {
|
|
50
50
|
@property({ type: Boolean }) updateValue: any = false;
|
51
51
|
@property({ attribute: 'error-message' }) errorMessage = '';
|
52
52
|
@property({ attribute: 'error' }) error = false;
|
53
|
+
@property({ type: Boolean }) expandable: any = false;
|
53
54
|
|
54
55
|
/**
|
55
56
|
* The styles for CodeEditor
|
@@ -159,7 +160,7 @@ export class NileCodeEditor extends NileElement {
|
|
159
160
|
'code-mirror__singleline': !this.multiline,
|
160
161
|
})}
|
161
162
|
>
|
162
|
-
${
|
163
|
+
${this.expandable
|
163
164
|
? html` <nile-icon
|
164
165
|
name="expand-2"
|
165
166
|
class="code-editor__icon__container"
|
@@ -66,6 +66,7 @@ export interface switchInputType {
|
|
66
66
|
noborder?: boolean;
|
67
67
|
multiLine?: boolean;
|
68
68
|
expand?: boolean;
|
69
|
+
expandable?: boolean;
|
69
70
|
}
|
70
71
|
|
71
72
|
export enum POSITIONS {
|
@@ -106,7 +107,7 @@ export class NileSwitcher extends NileElement {
|
|
106
107
|
|
107
108
|
@property({ type: Object }) nileSwitchConfig: switchconfig;
|
108
109
|
|
109
|
-
@property({ type: Number }) current: Number =
|
110
|
+
@property({ type: Number }) current: Number = 1;
|
110
111
|
|
111
112
|
@property({ type: Object }) currentInput: switchInputType;
|
112
113
|
|
@@ -271,9 +272,10 @@ export class NileSwitcher extends NileElement {
|
|
271
272
|
</nile-content-editor>`;
|
272
273
|
}
|
273
274
|
|
274
|
-
renderObjectMapper() {
|
275
|
-
|
276
|
-
|
275
|
+
renderObjectMapper(Input: switchInputType) {
|
276
|
+
let { options, inputType, error, errorMessage, type, readonly, noborder } =
|
277
|
+
Input;
|
278
|
+
|
277
279
|
const value =
|
278
280
|
this.currentInput.mode === MODE.CREATE
|
279
281
|
? 'Click to Create - Not Mapped'
|
@@ -285,6 +287,8 @@ export class NileSwitcher extends NileElement {
|
|
285
287
|
'switcher-object-mapper--noborder': !!noborder,
|
286
288
|
})}
|
287
289
|
.value=${value}
|
290
|
+
.errorMessage=${errorMessage}
|
291
|
+
.error=${error}
|
288
292
|
readonly="true"
|
289
293
|
@click="${(e: CustomEvent) =>
|
290
294
|
this.handleChange(e, INPUT_TYPE_NAMES.OBJECT_MAPPER)}"
|
@@ -292,7 +296,7 @@ export class NileSwitcher extends NileElement {
|
|
292
296
|
<nile-icon
|
293
297
|
class="pointer-cursor switcher-object-mapper-icon"
|
294
298
|
slot="suffix"
|
295
|
-
name="
|
299
|
+
name="expand-2"
|
296
300
|
color="#005EA6"
|
297
301
|
size="16"
|
298
302
|
>
|
@@ -311,6 +315,7 @@ export class NileSwitcher extends NileElement {
|
|
311
315
|
error,
|
312
316
|
inputType,
|
313
317
|
noborder,
|
318
|
+
expandable,
|
314
319
|
} = Input;
|
315
320
|
return html`<nile-code-editor
|
316
321
|
part="switcher-code-editor"
|
@@ -323,6 +328,7 @@ export class NileSwitcher extends NileElement {
|
|
323
328
|
this.handleChange(e, INPUT_TYPE_NAMES.CODE_EDITOR)}"
|
324
329
|
.multiline="${multiLine}"
|
325
330
|
.value="${value}"
|
331
|
+
.expandable="${expandable}"
|
326
332
|
.customOptions="${customAutoCompletions}"
|
327
333
|
></nile-code-editor> `;
|
328
334
|
}
|
@@ -427,7 +433,10 @@ export class NileSwitcher extends NileElement {
|
|
427
433
|
INPUT_TYPE_NAMES.CONTENTEDITOR,
|
428
434
|
() => this.renderContentEditor(this.currentInput),
|
429
435
|
],
|
430
|
-
[
|
436
|
+
[
|
437
|
+
INPUT_TYPE_NAMES.OBJECT_MAPPER,
|
438
|
+
() => this.renderObjectMapper(this.currentInput),
|
439
|
+
],
|
431
440
|
[
|
432
441
|
INPUT_TYPE_NAMES.CODE_EDITOR,
|
433
442
|
() => this.renderCodeEditor(this.currentInput),
|