@limetech/lime-elements 36.1.0-next.8 → 36.1.0
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/cjs/{checkbox.template-b6c6562c.js → checkbox.template-ac867c17.js} +1 -1
- package/dist/cjs/{index-2a28697b.js → index-287e25e0.js} +424 -246
- package/dist/cjs/lime-elements.cjs.js +3 -3
- package/dist/cjs/limel-badge.cjs.entry.js +2 -1
- package/dist/cjs/limel-banner.cjs.entry.js +3 -1
- package/dist/cjs/limel-button-group.cjs.entry.js +3 -8
- package/dist/cjs/{limel-button.cjs.entry.js → limel-button_2.cjs.entry.js} +117 -21
- package/dist/cjs/limel-checkbox.cjs.entry.js +10 -26
- package/dist/cjs/limel-chip-set.cjs.entry.js +21 -52
- package/dist/cjs/{limel-linear-progress.cjs.entry.js → limel-circular-progress_2.cjs.entry.js} +34 -7
- package/dist/cjs/limel-code-editor.cjs.entry.js +110 -97
- package/dist/cjs/limel-collapsible-section.cjs.entry.js +4 -5
- package/dist/cjs/limel-color-picker-palette.cjs.entry.js +5 -1
- package/dist/cjs/limel-color-picker.cjs.entry.js +8 -2
- package/dist/cjs/limel-config.cjs.entry.js +2 -1
- package/dist/cjs/limel-date-picker.cjs.entry.js +15 -33
- package/dist/cjs/limel-dialog.cjs.entry.js +4 -12
- package/dist/cjs/limel-dock-button.cjs.entry.js +5 -15
- package/dist/cjs/limel-dock.cjs.entry.js +8 -40
- package/dist/cjs/limel-file.cjs.entry.js +10 -24
- package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +149 -48
- package/dist/cjs/limel-flex-container.cjs.entry.js +1 -13
- package/dist/cjs/limel-form.cjs.entry.js +328 -327
- package/dist/cjs/limel-grid.cjs.entry.js +1 -1
- package/dist/cjs/limel-header.cjs.entry.js +5 -1
- package/dist/cjs/limel-icon-button.cjs.entry.js +3 -8
- package/dist/cjs/limel-icon.cjs.entry.js +4 -1
- package/dist/cjs/limel-info-tile.cjs.entry.js +95 -0
- package/dist/cjs/limel-input-field.cjs.entry.js +27 -60
- package/dist/cjs/limel-list_2.cjs.entry.js +10 -21
- package/dist/cjs/limel-menu-list.cjs.entry.js +7 -14
- package/dist/cjs/limel-picker.cjs.entry.js +14 -39
- package/dist/cjs/limel-popover_4.cjs.entry.js +13 -12
- package/dist/cjs/limel-portal.cjs.entry.js +63 -73
- package/dist/cjs/limel-progress-flow-item.cjs.entry.js +4 -13
- package/dist/cjs/limel-progress-flow.cjs.entry.js +4 -20
- package/dist/cjs/limel-select.cjs.entry.js +20 -32
- package/dist/cjs/limel-shortcut.cjs.entry.js +52 -0
- package/dist/cjs/limel-slider.cjs.entry.js +12 -33
- package/dist/cjs/limel-snackbar.cjs.entry.js +7 -5
- package/dist/cjs/limel-spinner.cjs.entry.js +1 -7
- package/dist/cjs/limel-split-button.cjs.entry.js +35 -0
- package/dist/cjs/limel-switch.cjs.entry.js +6 -19
- package/dist/cjs/limel-tab-bar.cjs.entry.js +2 -5
- package/dist/cjs/limel-tab-panel.cjs.entry.js +2 -5
- package/dist/cjs/limel-table.cjs.entry.js +16 -28
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{translations-5a8d7f6c.js → translations-ca7279bc.js} +6 -0
- package/dist/collection/collection-manifest.json +5 -2
- package/dist/collection/components/badge/badge.js +35 -26
- package/dist/collection/components/banner/banner.js +88 -83
- package/dist/collection/components/button/button.css +4 -1
- package/dist/collection/components/button/button.js +148 -160
- package/dist/collection/components/button-group/button-group.js +81 -79
- package/dist/collection/components/checkbox/checkbox.js +172 -176
- package/dist/collection/components/checkbox/checkbox.template.js +15 -23
- package/dist/collection/components/chip-set/chip-set.js +486 -528
- package/dist/collection/components/circular-progress/circular-progress.css +27 -5
- package/dist/collection/components/circular-progress/circular-progress.js +129 -113
- package/dist/collection/components/code-editor/code-editor.js +178 -182
- package/dist/collection/components/collapsible-section/collapsible-section.js +120 -124
- package/dist/collection/components/color-picker/color-picker-palette.js +102 -92
- package/dist/collection/components/color-picker/color-picker.js +143 -131
- package/dist/collection/components/config/config.js +21 -17
- package/dist/collection/components/date-picker/date-picker.js +254 -261
- package/dist/collection/components/date-picker/flatpickr-adapter/flatpickr-adapter.css +591 -166
- package/dist/collection/components/date-picker/flatpickr-adapter/flatpickr-adapter.js +150 -143
- package/dist/collection/components/date-picker/pickers/QuarterPicker.js +1 -3
- package/dist/collection/components/dialog/dialog.css +7 -1
- package/dist/collection/components/dialog/dialog.js +134 -142
- package/dist/collection/components/dock/dock-button/dock-button.js +138 -141
- package/dist/collection/components/dock/dock.js +204 -233
- package/dist/collection/components/file/file.js +187 -191
- package/dist/collection/components/flex-container/flex-container.js +96 -102
- package/dist/collection/components/form/form.js +158 -150
- package/dist/collection/components/form/widgets/code-editor.js +2 -0
- package/dist/collection/components/grid/grid.js +11 -7
- package/dist/collection/components/header/header.js +89 -87
- package/dist/collection/components/icon/icon.js +79 -66
- package/dist/collection/components/icon-button/icon-button.js +85 -85
- package/dist/collection/components/info-tile/info-tile.css +310 -0
- package/dist/collection/components/info-tile/info-tile.js +294 -0
- package/dist/collection/components/info-tile/info-tile.types.js +1 -0
- package/dist/collection/components/input-field/input-field.css +3 -0
- package/dist/collection/components/input-field/input-field.js +482 -523
- package/dist/collection/components/linear-progress/linear-progress.js +57 -61
- package/dist/collection/components/list/list-renderer.js +3 -12
- package/dist/collection/components/list/list.css +11 -116
- package/dist/collection/components/list/list.js +167 -166
- package/dist/collection/components/list/radio-button/radio-button.template.js +2 -8
- package/dist/collection/components/menu/menu.js +183 -195
- package/dist/collection/components/menu-list/menu-list-renderer.js +2 -9
- package/dist/collection/components/menu-list/menu-list.css +11 -116
- package/dist/collection/components/menu-list/menu-list.js +149 -146
- package/dist/collection/components/menu-surface/menu-surface.js +69 -64
- package/dist/collection/components/picker/picker.js +412 -427
- package/dist/collection/components/popover/popover.js +79 -74
- package/dist/collection/components/popover-surface/popover-surface.js +34 -25
- package/dist/collection/components/portal/portal.js +145 -158
- package/dist/collection/components/progress-flow/progress-flow-item/progress-flow-item.js +90 -94
- package/dist/collection/components/progress-flow/progress-flow.js +93 -101
- package/dist/collection/components/select/select.css +8 -7
- package/dist/collection/components/select/select.js +206 -211
- package/dist/collection/components/select/select.template.js +18 -27
- package/dist/collection/components/shortcut/shortcut.css +91 -0
- package/dist/collection/components/shortcut/shortcut.js +161 -0
- package/dist/collection/components/slider/slider.js +233 -264
- package/dist/collection/components/snackbar/snackbar.js +175 -169
- package/dist/collection/components/spinner/spinner.js +56 -85
- package/dist/collection/components/split-button/split-button.css +84 -0
- package/dist/collection/components/split-button/split-button.js +176 -0
- package/dist/collection/components/switch/switch.js +117 -129
- package/dist/collection/components/tab-bar/tab-bar.js +87 -92
- package/dist/collection/components/tab-panel/tab-panel.js +64 -61
- package/dist/collection/components/table/table.js +447 -457
- package/dist/collection/components/tooltip/tooltip-content.js +70 -61
- package/dist/collection/components/tooltip/tooltip.js +96 -91
- package/dist/collection/global/shared-types/link.types.js +1 -0
- package/dist/collection/style/internal/z-index.scss +0 -5
- package/dist/collection/translations/da.js +1 -0
- package/dist/collection/translations/en.js +1 -0
- package/dist/collection/translations/fi.js +1 -0
- package/dist/collection/translations/nl.js +1 -0
- package/dist/collection/translations/no.js +1 -0
- package/dist/collection/translations/sv.js +1 -0
- package/dist/esm/{checkbox.template-2f1bbc98.js → checkbox.template-fc7fcd06.js} +1 -1
- package/dist/esm/{index-11cd0b60.js → index-cdfd351d.js} +424 -246
- package/dist/esm/lime-elements.js +3 -3
- package/dist/esm/limel-badge.entry.js +2 -1
- package/dist/esm/limel-banner.entry.js +3 -1
- package/dist/esm/limel-button-group.entry.js +3 -8
- package/dist/esm/{limel-button.entry.js → limel-button_2.entry.js} +117 -22
- package/dist/esm/limel-checkbox.entry.js +10 -26
- package/dist/esm/limel-chip-set.entry.js +21 -52
- package/dist/esm/{limel-linear-progress.entry.js → limel-circular-progress_2.entry.js} +34 -8
- package/dist/esm/limel-code-editor.entry.js +110 -97
- package/dist/esm/limel-collapsible-section.entry.js +4 -5
- package/dist/esm/limel-color-picker-palette.entry.js +5 -1
- package/dist/esm/limel-color-picker.entry.js +8 -2
- package/dist/esm/limel-config.entry.js +2 -1
- package/dist/esm/limel-date-picker.entry.js +15 -33
- package/dist/esm/limel-dialog.entry.js +4 -12
- package/dist/esm/limel-dock-button.entry.js +5 -15
- package/dist/esm/limel-dock.entry.js +8 -40
- package/dist/esm/limel-file.entry.js +10 -24
- package/dist/esm/limel-flatpickr-adapter.entry.js +149 -48
- package/dist/esm/limel-flex-container.entry.js +1 -13
- package/dist/esm/limel-form.entry.js +328 -327
- package/dist/esm/limel-grid.entry.js +1 -1
- package/dist/esm/limel-header.entry.js +5 -1
- package/dist/esm/limel-icon-button.entry.js +3 -8
- package/dist/esm/limel-icon.entry.js +4 -1
- package/dist/esm/limel-info-tile.entry.js +91 -0
- package/dist/esm/limel-input-field.entry.js +27 -60
- package/dist/esm/limel-list_2.entry.js +10 -21
- package/dist/esm/limel-menu-list.entry.js +7 -14
- package/dist/esm/limel-picker.entry.js +14 -39
- package/dist/esm/limel-popover_4.entry.js +13 -12
- package/dist/esm/limel-portal.entry.js +63 -73
- package/dist/esm/limel-progress-flow-item.entry.js +4 -13
- package/dist/esm/limel-progress-flow.entry.js +4 -20
- package/dist/esm/limel-select.entry.js +20 -32
- package/dist/esm/limel-shortcut.entry.js +48 -0
- package/dist/esm/limel-slider.entry.js +12 -33
- package/dist/esm/limel-snackbar.entry.js +7 -5
- package/dist/esm/limel-spinner.entry.js +1 -7
- package/dist/esm/limel-split-button.entry.js +31 -0
- package/dist/esm/limel-switch.entry.js +6 -19
- package/dist/esm/limel-tab-bar.entry.js +2 -5
- package/dist/esm/limel-tab-panel.entry.js +2 -5
- package/dist/esm/limel-table.entry.js +16 -28
- package/dist/esm/loader.js +3 -3
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/{translations-682e905e.js → translations-0d0ee941.js} +6 -0
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/p-059e0a64.entry.js +1 -0
- package/dist/lime-elements/{p-440454ed.entry.js → p-06f2f6b4.entry.js} +1 -1
- package/dist/lime-elements/p-12a7453b.entry.js +73 -0
- package/dist/lime-elements/p-1386d86d.entry.js +82 -0
- package/dist/lime-elements/p-15c2eb16.entry.js +1 -0
- package/dist/lime-elements/{p-c80acfb2.entry.js → p-15ca0d70.entry.js} +4 -4
- package/dist/lime-elements/{p-ed65468d.entry.js → p-16eb9071.entry.js} +1 -1
- package/dist/lime-elements/{p-1ede893b.js → p-1af8258b.js} +1 -1
- package/dist/lime-elements/{p-71efe2ca.entry.js → p-21058db5.entry.js} +4 -3
- package/dist/lime-elements/p-246862ec.js +1 -0
- package/dist/lime-elements/p-36a3b897.entry.js +1 -0
- package/dist/lime-elements/p-4eda8b67.entry.js +82 -0
- package/dist/lime-elements/{p-9af0704c.entry.js → p-4fb4e89b.entry.js} +1 -1
- package/dist/lime-elements/p-4fc38050.entry.js +1 -0
- package/dist/lime-elements/{p-a5af84a7.entry.js → p-5338663b.entry.js} +1 -1
- package/dist/lime-elements/p-5ce60a32.entry.js +126 -0
- package/dist/lime-elements/p-5f13035a.entry.js +1 -0
- package/dist/lime-elements/p-5f29f099.entry.js +16 -0
- package/dist/lime-elements/p-600464a9.entry.js +1 -0
- package/dist/lime-elements/p-6534e16a.entry.js +1 -0
- package/dist/lime-elements/p-6a4a5ddd.entry.js +1 -0
- package/dist/lime-elements/p-6c38b505.entry.js +1 -0
- package/dist/lime-elements/p-75d01713.entry.js +1 -0
- package/dist/lime-elements/p-768b7cbb.entry.js +1 -0
- package/dist/lime-elements/{p-6e7809a6.entry.js → p-82cd7bb6.entry.js} +1 -1
- package/dist/lime-elements/p-84a137a7.entry.js +1 -0
- package/dist/lime-elements/{p-aa66620a.entry.js → p-8ab597a8.entry.js} +2 -2
- package/dist/lime-elements/{p-8827628d.entry.js → p-8fb83e83.entry.js} +2 -2
- package/dist/lime-elements/p-90961075.entry.js +1 -0
- package/dist/lime-elements/p-9984b31c.entry.js +1 -0
- package/dist/lime-elements/p-9bd76629.entry.js +59 -0
- package/dist/lime-elements/p-9ea8dd5c.entry.js +1 -0
- package/dist/lime-elements/p-cad7cda1.entry.js +16 -0
- package/dist/lime-elements/{p-104c89e8.entry.js → p-cfaa685f.entry.js} +1 -1
- package/dist/lime-elements/{p-94899019.entry.js → p-d1187867.entry.js} +1 -1
- package/dist/lime-elements/p-d4e788e1.js +2 -0
- package/dist/lime-elements/p-d512656b.entry.js +1 -0
- package/dist/lime-elements/p-d8e5a9ee.entry.js +1 -0
- package/dist/lime-elements/p-de161bb5.entry.js +1 -0
- package/dist/lime-elements/p-e4bca82b.entry.js +1 -0
- package/dist/lime-elements/p-e6f84d68.entry.js +1 -0
- package/dist/lime-elements/{p-c15da26d.entry.js → p-e7bb664f.entry.js} +1 -1
- package/dist/lime-elements/p-e88f7922.entry.js +1 -0
- package/dist/lime-elements/p-ec4c075d.entry.js +1 -0
- package/dist/lime-elements/p-f1ed857b.entry.js +37 -0
- package/dist/lime-elements/p-f33cfcb8.entry.js +11 -0
- package/dist/lime-elements/style/internal/z-index.scss +0 -5
- package/dist/loader/package.json +1 -0
- package/dist/types/components/circular-progress/circular-progress.d.ts +5 -0
- package/dist/types/components/dock/dock.d.ts +0 -1
- package/dist/types/components/info-tile/info-tile.d.ts +87 -0
- package/dist/types/components/info-tile/info-tile.types.d.ts +23 -0
- package/dist/types/components/picker/picker.d.ts +2 -2
- package/dist/types/components/shortcut/shortcut.d.ts +42 -0
- package/dist/types/components/split-button/split-button.d.ts +46 -0
- package/dist/types/components.d.ts +403 -67
- package/dist/types/global/shared-types/link.types.d.ts +25 -0
- package/dist/types/interface.d.ts +2 -0
- package/dist/types/stencil-public-runtime.d.ts +20 -4
- package/dist/types/translations/da.d.ts +1 -0
- package/dist/types/translations/en.d.ts +1 -0
- package/dist/types/translations/fi.d.ts +1 -0
- package/dist/types/translations/nl.d.ts +1 -0
- package/dist/types/translations/no.d.ts +1 -0
- package/dist/types/translations/sv.d.ts +1 -0
- package/package.json +25 -24
- package/dist/cjs/limel-circular-progress.cjs.entry.js +0 -44
- package/dist/cjs/limel-menu.cjs.entry.js +0 -137
- package/dist/esm/limel-circular-progress.entry.js +0 -40
- package/dist/esm/limel-menu.entry.js +0 -133
- package/dist/lime-elements/p-009de50e.entry.js +0 -1
- package/dist/lime-elements/p-0ba0c38a.entry.js +0 -11
- package/dist/lime-elements/p-19f72dab.entry.js +0 -1
- package/dist/lime-elements/p-2639edf9.entry.js +0 -73
- package/dist/lime-elements/p-2fc4f4ff.entry.js +0 -1
- package/dist/lime-elements/p-3bf54a4c.js +0 -1
- package/dist/lime-elements/p-3cf4aae0.entry.js +0 -1
- package/dist/lime-elements/p-41e902ac.entry.js +0 -126
- package/dist/lime-elements/p-4dc07252.entry.js +0 -82
- package/dist/lime-elements/p-53e01330.entry.js +0 -1
- package/dist/lime-elements/p-5ef52589.entry.js +0 -1
- package/dist/lime-elements/p-629862f4.entry.js +0 -1
- package/dist/lime-elements/p-63e25a0a.entry.js +0 -1
- package/dist/lime-elements/p-6b1bc80f.entry.js +0 -1
- package/dist/lime-elements/p-93cd2268.entry.js +0 -1
- package/dist/lime-elements/p-95f275ab.entry.js +0 -1
- package/dist/lime-elements/p-9917f042.entry.js +0 -16
- package/dist/lime-elements/p-995bbd2a.entry.js +0 -1
- package/dist/lime-elements/p-a465084b.entry.js +0 -82
- package/dist/lime-elements/p-b0046fcd.entry.js +0 -1
- package/dist/lime-elements/p-b0e54dc2.entry.js +0 -1
- package/dist/lime-elements/p-b4de3380.entry.js +0 -1
- package/dist/lime-elements/p-c59cbd68.entry.js +0 -1
- package/dist/lime-elements/p-cb8db8c2.entry.js +0 -37
- package/dist/lime-elements/p-d74fa89e.entry.js +0 -1
- package/dist/lime-elements/p-e98d76e8.entry.js +0 -59
- package/dist/lime-elements/p-e9a95b8f.js +0 -1
- package/dist/lime-elements/p-eec907ac.entry.js +0 -1
- package/dist/lime-elements/p-f0c9dadd.entry.js +0 -1
- package/dist/lime-elements/p-f0e872b6.entry.js +0 -16
- package/dist/lime-elements/p-f41567a1.entry.js +0 -1
- package/dist/lime-elements/p-f5df4d4f.entry.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h, } from '@stencil/core';
|
|
2
2
|
import CodeMirror from 'codemirror';
|
|
3
3
|
import 'codemirror/mode/javascript/javascript';
|
|
4
4
|
import 'codemirror/addon/selection/active-line';
|
|
@@ -18,30 +18,6 @@ import jslint from 'jsonlint-mod';
|
|
|
18
18
|
*/
|
|
19
19
|
export class CodeEditor {
|
|
20
20
|
constructor() {
|
|
21
|
-
/**
|
|
22
|
-
* The code to be rendered
|
|
23
|
-
*/
|
|
24
|
-
this.value = '';
|
|
25
|
-
/**
|
|
26
|
-
* Disables editing of the editor content
|
|
27
|
-
*/
|
|
28
|
-
this.readonly = false;
|
|
29
|
-
/**
|
|
30
|
-
* Displays line numbers in the editor
|
|
31
|
-
*/
|
|
32
|
-
this.lineNumbers = false;
|
|
33
|
-
/**
|
|
34
|
-
* Allows the user to fold code
|
|
35
|
-
*/
|
|
36
|
-
this.fold = false;
|
|
37
|
-
/**
|
|
38
|
-
* Enables linting of JSON content
|
|
39
|
-
*/
|
|
40
|
-
this.lint = false;
|
|
41
|
-
/**
|
|
42
|
-
* Select color scheme for the editor
|
|
43
|
-
*/
|
|
44
|
-
this.colorScheme = 'auto';
|
|
45
21
|
this.handleChangeDarkMode = () => {
|
|
46
22
|
if (this.colorScheme !== 'auto') {
|
|
47
23
|
return;
|
|
@@ -57,6 +33,14 @@ export class CodeEditor {
|
|
|
57
33
|
}
|
|
58
34
|
this.editor.refresh();
|
|
59
35
|
};
|
|
36
|
+
this.value = '';
|
|
37
|
+
this.language = undefined;
|
|
38
|
+
this.readonly = false;
|
|
39
|
+
this.lineNumbers = false;
|
|
40
|
+
this.fold = false;
|
|
41
|
+
this.lint = false;
|
|
42
|
+
this.colorScheme = 'auto';
|
|
43
|
+
this.random = undefined;
|
|
60
44
|
}
|
|
61
45
|
connectedCallback() {
|
|
62
46
|
this.observer = new ResizeObserver(this.handleResize);
|
|
@@ -173,171 +157,183 @@ export class CodeEditor {
|
|
|
173
157
|
}
|
|
174
158
|
static get is() { return "limel-code-editor"; }
|
|
175
159
|
static get encapsulation() { return "shadow"; }
|
|
176
|
-
static get originalStyleUrls() {
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
"
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
160
|
+
static get originalStyleUrls() {
|
|
161
|
+
return {
|
|
162
|
+
"$": ["code-editor.scss"]
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
static get styleUrls() {
|
|
166
|
+
return {
|
|
167
|
+
"$": ["code-editor.css"]
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
static get properties() {
|
|
171
|
+
return {
|
|
172
|
+
"value": {
|
|
173
|
+
"type": "string",
|
|
174
|
+
"mutable": false,
|
|
175
|
+
"complexType": {
|
|
176
|
+
"original": "string",
|
|
177
|
+
"resolved": "string",
|
|
178
|
+
"references": {}
|
|
179
|
+
},
|
|
180
|
+
"required": false,
|
|
181
|
+
"optional": false,
|
|
182
|
+
"docs": {
|
|
183
|
+
"tags": [],
|
|
184
|
+
"text": "The code to be rendered"
|
|
185
|
+
},
|
|
186
|
+
"attribute": "value",
|
|
187
|
+
"reflect": false,
|
|
188
|
+
"defaultValue": "''"
|
|
196
189
|
},
|
|
197
|
-
"
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
"Language": {
|
|
209
|
-
"location": "import",
|
|
210
|
-
"path": "./code-editor.types"
|
|
190
|
+
"language": {
|
|
191
|
+
"type": "string",
|
|
192
|
+
"mutable": false,
|
|
193
|
+
"complexType": {
|
|
194
|
+
"original": "Language",
|
|
195
|
+
"resolved": "\"javascript\" | \"json\" | \"typescript\"",
|
|
196
|
+
"references": {
|
|
197
|
+
"Language": {
|
|
198
|
+
"location": "import",
|
|
199
|
+
"path": "./code-editor.types"
|
|
200
|
+
}
|
|
211
201
|
}
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
"reflect": false
|
|
222
|
-
},
|
|
223
|
-
"readonly": {
|
|
224
|
-
"type": "boolean",
|
|
225
|
-
"mutable": false,
|
|
226
|
-
"complexType": {
|
|
227
|
-
"original": "boolean",
|
|
228
|
-
"resolved": "boolean",
|
|
229
|
-
"references": {}
|
|
230
|
-
},
|
|
231
|
-
"required": false,
|
|
232
|
-
"optional": false,
|
|
233
|
-
"docs": {
|
|
234
|
-
"tags": [],
|
|
235
|
-
"text": "Disables editing of the editor content"
|
|
236
|
-
},
|
|
237
|
-
"attribute": "readonly",
|
|
238
|
-
"reflect": false,
|
|
239
|
-
"defaultValue": "false"
|
|
240
|
-
},
|
|
241
|
-
"lineNumbers": {
|
|
242
|
-
"type": "boolean",
|
|
243
|
-
"mutable": false,
|
|
244
|
-
"complexType": {
|
|
245
|
-
"original": "boolean",
|
|
246
|
-
"resolved": "boolean",
|
|
247
|
-
"references": {}
|
|
202
|
+
},
|
|
203
|
+
"required": false,
|
|
204
|
+
"optional": false,
|
|
205
|
+
"docs": {
|
|
206
|
+
"tags": [],
|
|
207
|
+
"text": "The language of the code"
|
|
208
|
+
},
|
|
209
|
+
"attribute": "language",
|
|
210
|
+
"reflect": false
|
|
248
211
|
},
|
|
249
|
-
"
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
"
|
|
253
|
-
|
|
212
|
+
"readonly": {
|
|
213
|
+
"type": "boolean",
|
|
214
|
+
"mutable": false,
|
|
215
|
+
"complexType": {
|
|
216
|
+
"original": "boolean",
|
|
217
|
+
"resolved": "boolean",
|
|
218
|
+
"references": {}
|
|
219
|
+
},
|
|
220
|
+
"required": false,
|
|
221
|
+
"optional": false,
|
|
222
|
+
"docs": {
|
|
223
|
+
"tags": [],
|
|
224
|
+
"text": "Disables editing of the editor content"
|
|
225
|
+
},
|
|
226
|
+
"attribute": "readonly",
|
|
227
|
+
"reflect": false,
|
|
228
|
+
"defaultValue": "false"
|
|
254
229
|
},
|
|
255
|
-
"
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
"
|
|
264
|
-
"
|
|
265
|
-
"
|
|
230
|
+
"lineNumbers": {
|
|
231
|
+
"type": "boolean",
|
|
232
|
+
"mutable": false,
|
|
233
|
+
"complexType": {
|
|
234
|
+
"original": "boolean",
|
|
235
|
+
"resolved": "boolean",
|
|
236
|
+
"references": {}
|
|
237
|
+
},
|
|
238
|
+
"required": false,
|
|
239
|
+
"optional": false,
|
|
240
|
+
"docs": {
|
|
241
|
+
"tags": [],
|
|
242
|
+
"text": "Displays line numbers in the editor"
|
|
243
|
+
},
|
|
244
|
+
"attribute": "line-numbers",
|
|
245
|
+
"reflect": false,
|
|
246
|
+
"defaultValue": "false"
|
|
266
247
|
},
|
|
267
|
-
"
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
"
|
|
271
|
-
|
|
248
|
+
"fold": {
|
|
249
|
+
"type": "boolean",
|
|
250
|
+
"mutable": false,
|
|
251
|
+
"complexType": {
|
|
252
|
+
"original": "boolean",
|
|
253
|
+
"resolved": "boolean",
|
|
254
|
+
"references": {}
|
|
255
|
+
},
|
|
256
|
+
"required": false,
|
|
257
|
+
"optional": false,
|
|
258
|
+
"docs": {
|
|
259
|
+
"tags": [],
|
|
260
|
+
"text": "Allows the user to fold code"
|
|
261
|
+
},
|
|
262
|
+
"attribute": "fold",
|
|
263
|
+
"reflect": false,
|
|
264
|
+
"defaultValue": "false"
|
|
272
265
|
},
|
|
273
|
-
"
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
"
|
|
282
|
-
"
|
|
283
|
-
"
|
|
266
|
+
"lint": {
|
|
267
|
+
"type": "boolean",
|
|
268
|
+
"mutable": false,
|
|
269
|
+
"complexType": {
|
|
270
|
+
"original": "boolean",
|
|
271
|
+
"resolved": "boolean",
|
|
272
|
+
"references": {}
|
|
273
|
+
},
|
|
274
|
+
"required": false,
|
|
275
|
+
"optional": false,
|
|
276
|
+
"docs": {
|
|
277
|
+
"tags": [],
|
|
278
|
+
"text": "Enables linting of JSON content"
|
|
279
|
+
},
|
|
280
|
+
"attribute": "lint",
|
|
281
|
+
"reflect": false,
|
|
282
|
+
"defaultValue": "false"
|
|
284
283
|
},
|
|
285
|
-
"
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
"
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
"type": "string",
|
|
297
|
-
"mutable": false,
|
|
298
|
-
"complexType": {
|
|
299
|
-
"original": "ColorScheme",
|
|
300
|
-
"resolved": "\"auto\" | \"dark\" | \"light\"",
|
|
301
|
-
"references": {
|
|
302
|
-
"ColorScheme": {
|
|
303
|
-
"location": "import",
|
|
304
|
-
"path": "./code-editor.types"
|
|
284
|
+
"colorScheme": {
|
|
285
|
+
"type": "string",
|
|
286
|
+
"mutable": false,
|
|
287
|
+
"complexType": {
|
|
288
|
+
"original": "ColorScheme",
|
|
289
|
+
"resolved": "\"auto\" | \"dark\" | \"light\"",
|
|
290
|
+
"references": {
|
|
291
|
+
"ColorScheme": {
|
|
292
|
+
"location": "import",
|
|
293
|
+
"path": "./code-editor.types"
|
|
294
|
+
}
|
|
305
295
|
}
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
"defaultValue": "'auto'"
|
|
317
|
-
}
|
|
318
|
-
}; }
|
|
319
|
-
static get states() { return {
|
|
320
|
-
"random": {}
|
|
321
|
-
}; }
|
|
322
|
-
static get events() { return [{
|
|
323
|
-
"method": "change",
|
|
324
|
-
"name": "change",
|
|
325
|
-
"bubbles": true,
|
|
326
|
-
"cancelable": true,
|
|
327
|
-
"composed": true,
|
|
328
|
-
"docs": {
|
|
329
|
-
"tags": [],
|
|
330
|
-
"text": "Emitted when the code has changed. Will only be emitted when the code\narea has lost focus"
|
|
331
|
-
},
|
|
332
|
-
"complexType": {
|
|
333
|
-
"original": "string",
|
|
334
|
-
"resolved": "string",
|
|
335
|
-
"references": {}
|
|
296
|
+
},
|
|
297
|
+
"required": false,
|
|
298
|
+
"optional": false,
|
|
299
|
+
"docs": {
|
|
300
|
+
"tags": [],
|
|
301
|
+
"text": "Select color scheme for the editor"
|
|
302
|
+
},
|
|
303
|
+
"attribute": "color-scheme",
|
|
304
|
+
"reflect": false,
|
|
305
|
+
"defaultValue": "'auto'"
|
|
336
306
|
}
|
|
337
|
-
}
|
|
307
|
+
};
|
|
308
|
+
}
|
|
309
|
+
static get states() {
|
|
310
|
+
return {
|
|
311
|
+
"random": {}
|
|
312
|
+
};
|
|
313
|
+
}
|
|
314
|
+
static get events() {
|
|
315
|
+
return [{
|
|
316
|
+
"method": "change",
|
|
317
|
+
"name": "change",
|
|
318
|
+
"bubbles": true,
|
|
319
|
+
"cancelable": true,
|
|
320
|
+
"composed": true,
|
|
321
|
+
"docs": {
|
|
322
|
+
"tags": [],
|
|
323
|
+
"text": "Emitted when the code has changed. Will only be emitted when the code\narea has lost focus"
|
|
324
|
+
},
|
|
325
|
+
"complexType": {
|
|
326
|
+
"original": "string",
|
|
327
|
+
"resolved": "string",
|
|
328
|
+
"references": {}
|
|
329
|
+
}
|
|
330
|
+
}];
|
|
331
|
+
}
|
|
338
332
|
static get elementRef() { return "host"; }
|
|
339
|
-
static get watchers() {
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
333
|
+
static get watchers() {
|
|
334
|
+
return [{
|
|
335
|
+
"propName": "value",
|
|
336
|
+
"methodName": "watchValue"
|
|
337
|
+
}];
|
|
338
|
+
}
|
|
343
339
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h } from '@stencil/core';
|
|
2
2
|
import { dispatchResizeEvent } from '../../util/dispatch-resize-event';
|
|
3
3
|
import { ENTER, ENTER_KEY_CODE } from '../../util/keycodes';
|
|
4
4
|
/**
|
|
@@ -11,10 +11,6 @@ import { ENTER, ENTER_KEY_CODE } from '../../util/keycodes';
|
|
|
11
11
|
*/
|
|
12
12
|
export class CollapsibleSection {
|
|
13
13
|
constructor() {
|
|
14
|
-
/**
|
|
15
|
-
* `true` if the section is expanded, `false` if collapsed.
|
|
16
|
-
*/
|
|
17
|
-
this.isOpen = false;
|
|
18
14
|
this.onClick = () => {
|
|
19
15
|
this.handleInteraction();
|
|
20
16
|
};
|
|
@@ -50,135 +46,135 @@ export class CollapsibleSection {
|
|
|
50
46
|
event.stopPropagation();
|
|
51
47
|
this.action.emit(action);
|
|
52
48
|
};
|
|
49
|
+
this.isOpen = false;
|
|
50
|
+
this.header = undefined;
|
|
51
|
+
this.actions = undefined;
|
|
53
52
|
}
|
|
54
53
|
render() {
|
|
55
|
-
return (h("section", { class: `${this.isOpen ? 'open' : ''}` },
|
|
56
|
-
h("header", { class: "section__header", onClick: this.onClick, onKeyDown: this.handleKeyDown, tabindex: "0" },
|
|
57
|
-
h("div", { class: "section__header__expand-icon" },
|
|
58
|
-
h("div", { class: "expand-icon__line" }),
|
|
59
|
-
h("div", { class: "expand-icon__line" }),
|
|
60
|
-
h("div", { class: "expand-icon__line" }),
|
|
61
|
-
h("div", { class: "expand-icon__line" })),
|
|
62
|
-
h("h2", { class: "section__header__title mdc-typography mdc-typography--headline2" }, this.header),
|
|
63
|
-
h("div", { class: "section__header__divider-line" }),
|
|
64
|
-
this.renderActions()),
|
|
65
|
-
h("div", { class: "section__body" },
|
|
66
|
-
h("slot", null))));
|
|
54
|
+
return (h("section", { class: `${this.isOpen ? 'open' : ''}` }, h("header", { class: "section__header", onClick: this.onClick, onKeyDown: this.handleKeyDown, tabindex: "0" }, h("div", { class: "section__header__expand-icon" }, h("div", { class: "expand-icon__line" }), h("div", { class: "expand-icon__line" }), h("div", { class: "expand-icon__line" }), h("div", { class: "expand-icon__line" })), h("h2", { class: "section__header__title mdc-typography mdc-typography--headline2" }, this.header), h("div", { class: "section__header__divider-line" }), this.renderActions()), h("div", { class: "section__body" }, h("slot", null))));
|
|
67
55
|
}
|
|
68
56
|
static get is() { return "limel-collapsible-section"; }
|
|
69
57
|
static get encapsulation() { return "shadow"; }
|
|
70
|
-
static get originalStyleUrls() {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
"
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
"original": "string",
|
|
100
|
-
"resolved": "string",
|
|
101
|
-
"references": {}
|
|
58
|
+
static get originalStyleUrls() {
|
|
59
|
+
return {
|
|
60
|
+
"$": ["collapsible-section.scss"]
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
static get styleUrls() {
|
|
64
|
+
return {
|
|
65
|
+
"$": ["collapsible-section.css"]
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
static get properties() {
|
|
69
|
+
return {
|
|
70
|
+
"isOpen": {
|
|
71
|
+
"type": "boolean",
|
|
72
|
+
"mutable": true,
|
|
73
|
+
"complexType": {
|
|
74
|
+
"original": "boolean",
|
|
75
|
+
"resolved": "boolean",
|
|
76
|
+
"references": {}
|
|
77
|
+
},
|
|
78
|
+
"required": false,
|
|
79
|
+
"optional": false,
|
|
80
|
+
"docs": {
|
|
81
|
+
"tags": [],
|
|
82
|
+
"text": "`true` if the section is expanded, `false` if collapsed."
|
|
83
|
+
},
|
|
84
|
+
"attribute": "is-open",
|
|
85
|
+
"reflect": true,
|
|
86
|
+
"defaultValue": "false"
|
|
102
87
|
},
|
|
103
|
-
"
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
"
|
|
107
|
-
|
|
88
|
+
"header": {
|
|
89
|
+
"type": "string",
|
|
90
|
+
"mutable": false,
|
|
91
|
+
"complexType": {
|
|
92
|
+
"original": "string",
|
|
93
|
+
"resolved": "string",
|
|
94
|
+
"references": {}
|
|
95
|
+
},
|
|
96
|
+
"required": false,
|
|
97
|
+
"optional": false,
|
|
98
|
+
"docs": {
|
|
99
|
+
"tags": [],
|
|
100
|
+
"text": "Text to display in the header of the section"
|
|
101
|
+
},
|
|
102
|
+
"attribute": "header",
|
|
103
|
+
"reflect": true
|
|
108
104
|
},
|
|
109
|
-
"
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
"location": "import",
|
|
121
|
-
"path": "./action"
|
|
105
|
+
"actions": {
|
|
106
|
+
"type": "unknown",
|
|
107
|
+
"mutable": false,
|
|
108
|
+
"complexType": {
|
|
109
|
+
"original": "Action[]",
|
|
110
|
+
"resolved": "Action[]",
|
|
111
|
+
"references": {
|
|
112
|
+
"Action": {
|
|
113
|
+
"location": "import",
|
|
114
|
+
"path": "./action"
|
|
115
|
+
}
|
|
122
116
|
}
|
|
117
|
+
},
|
|
118
|
+
"required": false,
|
|
119
|
+
"optional": false,
|
|
120
|
+
"docs": {
|
|
121
|
+
"tags": [],
|
|
122
|
+
"text": "Actions to place to the far right inside the header"
|
|
123
123
|
}
|
|
124
|
-
},
|
|
125
|
-
"required": false,
|
|
126
|
-
"optional": false,
|
|
127
|
-
"docs": {
|
|
128
|
-
"tags": [],
|
|
129
|
-
"text": "Actions to place to the far right inside the header"
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
}; }
|
|
133
|
-
static get events() { return [{
|
|
134
|
-
"method": "open",
|
|
135
|
-
"name": "open",
|
|
136
|
-
"bubbles": true,
|
|
137
|
-
"cancelable": true,
|
|
138
|
-
"composed": true,
|
|
139
|
-
"docs": {
|
|
140
|
-
"tags": [],
|
|
141
|
-
"text": "Emitted when the section is expanded"
|
|
142
|
-
},
|
|
143
|
-
"complexType": {
|
|
144
|
-
"original": "void",
|
|
145
|
-
"resolved": "void",
|
|
146
|
-
"references": {}
|
|
147
|
-
}
|
|
148
|
-
}, {
|
|
149
|
-
"method": "close",
|
|
150
|
-
"name": "close",
|
|
151
|
-
"bubbles": true,
|
|
152
|
-
"cancelable": true,
|
|
153
|
-
"composed": true,
|
|
154
|
-
"docs": {
|
|
155
|
-
"tags": [],
|
|
156
|
-
"text": "Emitted when the section is collapsed"
|
|
157
|
-
},
|
|
158
|
-
"complexType": {
|
|
159
|
-
"original": "void",
|
|
160
|
-
"resolved": "void",
|
|
161
|
-
"references": {}
|
|
162
124
|
}
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
"
|
|
171
|
-
"
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
"
|
|
177
|
-
"
|
|
178
|
-
|
|
179
|
-
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
static get events() {
|
|
128
|
+
return [{
|
|
129
|
+
"method": "open",
|
|
130
|
+
"name": "open",
|
|
131
|
+
"bubbles": true,
|
|
132
|
+
"cancelable": true,
|
|
133
|
+
"composed": true,
|
|
134
|
+
"docs": {
|
|
135
|
+
"tags": [],
|
|
136
|
+
"text": "Emitted when the section is expanded"
|
|
137
|
+
},
|
|
138
|
+
"complexType": {
|
|
139
|
+
"original": "void",
|
|
140
|
+
"resolved": "void",
|
|
141
|
+
"references": {}
|
|
142
|
+
}
|
|
143
|
+
}, {
|
|
144
|
+
"method": "close",
|
|
145
|
+
"name": "close",
|
|
146
|
+
"bubbles": true,
|
|
147
|
+
"cancelable": true,
|
|
148
|
+
"composed": true,
|
|
149
|
+
"docs": {
|
|
150
|
+
"tags": [],
|
|
151
|
+
"text": "Emitted when the section is collapsed"
|
|
152
|
+
},
|
|
153
|
+
"complexType": {
|
|
154
|
+
"original": "void",
|
|
155
|
+
"resolved": "void",
|
|
156
|
+
"references": {}
|
|
157
|
+
}
|
|
158
|
+
}, {
|
|
159
|
+
"method": "action",
|
|
160
|
+
"name": "action",
|
|
161
|
+
"bubbles": true,
|
|
162
|
+
"cancelable": true,
|
|
163
|
+
"composed": true,
|
|
164
|
+
"docs": {
|
|
165
|
+
"tags": [],
|
|
166
|
+
"text": "Emitted when an action is clicked inside the header"
|
|
167
|
+
},
|
|
168
|
+
"complexType": {
|
|
169
|
+
"original": "Action",
|
|
170
|
+
"resolved": "Action",
|
|
171
|
+
"references": {
|
|
172
|
+
"Action": {
|
|
173
|
+
"location": "import",
|
|
174
|
+
"path": "./action"
|
|
175
|
+
}
|
|
180
176
|
}
|
|
181
177
|
}
|
|
182
|
-
}
|
|
183
|
-
|
|
178
|
+
}];
|
|
179
|
+
}
|
|
184
180
|
}
|