@nuraly/lumenui 0.1.0 → 0.2.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/dist/nuralyui.bundle.js +23024 -17355
- package/dist/nuralyui.bundle.js.gz +0 -0
- package/dist/src/components/alert/alert.component.d.ts +8 -5
- package/dist/src/components/alert/alert.component.js +24 -20
- package/dist/src/components/alert/alert.style.d.ts +0 -7
- package/dist/src/components/alert/alert.style.js +48 -90
- package/dist/src/components/alert/bundle.js +82 -108
- package/dist/src/components/alert/bundle.js.gz +0 -0
- package/dist/src/components/badge/badge.component.d.ts +9 -8
- package/dist/src/components/badge/badge.component.js +17 -14
- package/dist/src/components/badge/badge.style.d.ts +0 -7
- package/dist/src/components/badge/badge.style.js +49 -107
- package/dist/src/components/badge/bundle.js +81 -119
- package/dist/src/components/badge/bundle.js.gz +0 -0
- package/dist/src/components/breadcrumb/breadcrumb.component.d.ts +8 -10
- package/dist/src/components/breadcrumb/breadcrumb.component.js +16 -15
- package/dist/src/components/breadcrumb/breadcrumb.style.d.ts +0 -7
- package/dist/src/components/breadcrumb/breadcrumb.style.js +42 -60
- package/dist/src/components/breadcrumb/bundle.js +96 -93
- package/dist/src/components/breadcrumb/bundle.js.gz +0 -0
- package/dist/src/components/button/bundle.js +221 -470
- package/dist/src/components/button/bundle.js.gz +0 -0
- package/dist/src/components/button/button.component.d.ts +2 -1
- package/dist/src/components/button/button.component.js +6 -6
- package/dist/src/components/button/button.style.d.ts +0 -7
- package/dist/src/components/button/button.style.js +167 -433
- package/dist/src/components/canvas/base-canvas.component.d.ts +2 -1
- package/dist/src/components/canvas/base-canvas.component.js +1 -0
- package/dist/src/components/canvas/bundle.js +16919 -9595
- package/dist/src/components/canvas/bundle.js.gz +0 -0
- package/dist/src/components/canvas/canvas.constants.d.ts +1 -1
- package/dist/src/components/canvas/canvas.constants.js +1 -1
- package/dist/src/components/canvas/chatbot-panel.style.js +31 -31
- package/dist/src/components/canvas/index.d.ts +2 -0
- package/dist/src/components/canvas/index.js +3 -0
- package/dist/src/components/canvas/whiteboard-canvas.component.d.ts +3 -1
- package/dist/src/components/canvas/whiteboard-canvas.component.js +19 -1
- package/dist/src/components/canvas/whiteboard-canvas.style.js +159 -138
- package/dist/src/components/canvas/whiteboard-node.component.d.ts +2 -1
- package/dist/src/components/canvas/whiteboard-node.component.js +2 -1
- package/dist/src/components/canvas/whiteboard-node.style.js +44 -44
- package/dist/src/components/canvas/workflow-canvas-only.d.ts +4 -0
- package/dist/src/components/canvas/workflow-canvas-only.js +5 -0
- package/dist/src/components/canvas/workflow-canvas.component.d.ts +3 -1
- package/dist/src/components/canvas/workflow-canvas.component.js +24 -2
- package/dist/src/components/canvas/workflow-canvas.style.js +776 -648
- package/dist/src/components/canvas/workflow-canvas.types.d.ts +113 -4
- package/dist/src/components/canvas/workflow-canvas.types.js +646 -3
- package/dist/src/components/canvas/workflow-node.component.d.ts +3 -2
- package/dist/src/components/canvas/workflow-node.component.js +5 -5
- package/dist/src/components/canvas/workflow-node.style.js +183 -181
- package/dist/src/components/card/bundle.js +43 -35
- package/dist/src/components/card/bundle.js.gz +0 -0
- package/dist/src/components/card/card.component.d.ts +6 -1
- package/dist/src/components/card/card.component.js +8 -2
- package/dist/src/components/card/card.style.js +26 -30
- package/dist/src/components/carousel/bundle.js +8 -8
- package/dist/src/components/carousel/bundle.js.gz +0 -0
- package/dist/src/components/carousel/carousel.component.d.ts +12 -0
- package/dist/src/components/carousel/carousel.component.js +16 -4
- package/dist/src/components/chatbot/bundle.js +422 -406
- package/dist/src/components/chatbot/bundle.js.gz +0 -0
- package/dist/src/components/chatbot/chatbot.component.d.ts +2 -1
- package/dist/src/components/chatbot/chatbot.component.js +1 -0
- package/dist/src/components/chatbot/chatbot.style.js +277 -277
- package/dist/src/components/checkbox/bundle.js +86 -245
- package/dist/src/components/checkbox/bundle.js.gz +0 -0
- package/dist/src/components/checkbox/checkbox.component.d.ts +5 -2
- package/dist/src/components/checkbox/checkbox.component.js +11 -13
- package/dist/src/components/checkbox/checkbox.style.js +56 -231
- package/dist/src/components/code-editor/bundle.js +151 -25
- package/dist/src/components/code-editor/bundle.js.gz +0 -0
- package/dist/src/components/code-editor/code-editor.component.d.ts +18 -56
- package/dist/src/components/code-editor/code-editor.component.js +141 -394
- package/dist/src/components/code-editor/code-editor.style.js +139 -15
- package/dist/src/components/collapse/bundle.js +97 -84
- package/dist/src/components/collapse/bundle.js.gz +0 -0
- package/dist/src/components/collapse/collapse.component.d.ts +7 -1
- package/dist/src/components/collapse/collapse.component.js +11 -2
- package/dist/src/components/collapse/collapse.style.js +60 -60
- package/dist/src/components/colorpicker/bundle.js +85 -48
- package/dist/src/components/colorpicker/bundle.js.gz +0 -0
- package/dist/src/components/colorpicker/color-holder.component.d.ts +2 -4
- package/dist/src/components/colorpicker/color-holder.component.js +5 -6
- package/dist/src/components/colorpicker/color-holder.style.js +11 -11
- package/dist/src/components/colorpicker/color-picker.component.d.ts +2 -1
- package/dist/src/components/colorpicker/color-picker.component.js +1 -0
- package/dist/src/components/colorpicker/color-picker.style.js +12 -12
- package/dist/src/components/colorpicker/default-color-sets.component.d.ts +2 -2
- package/dist/src/components/colorpicker/default-color-sets.component.js +4 -3
- package/dist/src/components/colorpicker/default-color-sets.style.js +5 -5
- package/dist/src/components/container/bundle.js +24 -14
- package/dist/src/components/container/bundle.js.gz +0 -0
- package/dist/src/components/container/container.component.d.ts +4 -1
- package/dist/src/components/container/container.component.js +7 -5
- package/dist/src/components/container/container.style.js +9 -9
- package/dist/src/components/datepicker/bundle.js +193 -177
- package/dist/src/components/datepicker/bundle.js.gz +0 -0
- package/dist/src/components/datepicker/datepicker.component.d.ts +2 -1
- package/dist/src/components/datepicker/datepicker.component.js +1 -0
- package/dist/src/components/datepicker/datepicker.style.js +65 -65
- package/dist/src/components/datepicker/datepicker.style.variables.js +91 -91
- package/dist/src/components/db-connection-select/bundle.js +7 -6
- package/dist/src/components/db-connection-select/bundle.js.gz +0 -0
- package/dist/src/components/db-connection-select/db-connection-select.component.d.ts +3 -0
- package/dist/src/components/db-connection-select/db-connection-select.component.js +4 -0
- package/dist/src/components/divider/bundle.js +61 -35
- package/dist/src/components/divider/bundle.js.gz +0 -0
- package/dist/src/components/divider/divider.component.d.ts +4 -6
- package/dist/src/components/divider/divider.component.js +10 -14
- package/dist/src/components/divider/divider.style.js +41 -31
- package/dist/src/components/document/bundle.js +50 -48
- package/dist/src/components/document/bundle.js.gz +0 -0
- package/dist/src/components/document/document.component.d.ts +12 -1
- package/dist/src/components/document/document.component.js +18 -6
- package/dist/src/components/document/document.style.js +21 -36
- package/dist/src/components/dropdown/bundle.js +117 -101
- package/dist/src/components/dropdown/bundle.js.gz +0 -0
- package/dist/src/components/dropdown/dropdown.component.d.ts +2 -1
- package/dist/src/components/dropdown/dropdown.component.js +1 -0
- package/dist/src/components/dropdown/dropdown.style.js +68 -68
- package/dist/src/components/file-upload/bundle.js +82 -76
- package/dist/src/components/file-upload/bundle.js.gz +0 -0
- package/dist/src/components/file-upload/file-upload.component.d.ts +2 -1
- package/dist/src/components/file-upload/file-upload.component.js +1 -0
- package/dist/src/components/file-upload/styles.js +59 -59
- package/dist/src/components/flex/bundle.js +18 -8
- package/dist/src/components/flex/bundle.js.gz +0 -0
- package/dist/src/components/flex/flex.component.d.ts +4 -1
- package/dist/src/components/flex/flex.component.js +7 -4
- package/dist/src/components/flex/flex.style.js +2 -2
- package/dist/src/components/form/bundle.js +22 -10
- package/dist/src/components/form/bundle.js.gz +0 -0
- package/dist/src/components/form/form.component.d.ts +4 -1
- package/dist/src/components/form/form.component.js +5 -1
- package/dist/src/components/form/form.style.js +2 -2
- package/dist/src/components/grid/bundle.js +26 -14
- package/dist/src/components/grid/bundle.js.gz +0 -0
- package/dist/src/components/grid/col.component.d.ts +4 -1
- package/dist/src/components/grid/col.component.js +4 -1
- package/dist/src/components/grid/col.style.js +2 -2
- package/dist/src/components/grid/row.component.d.ts +4 -1
- package/dist/src/components/grid/row.component.js +4 -1
- package/dist/src/components/grid/row.style.js +2 -2
- package/dist/src/components/icon/bundle.js +78 -252
- package/dist/src/components/icon/bundle.js.gz +0 -0
- package/dist/src/components/icon/icon-paths.d.ts +2 -0
- package/dist/src/components/icon/icon-paths.js +141 -0
- package/dist/src/components/icon/icon.component.d.ts +10 -12
- package/dist/src/components/icon/icon.component.js +42 -93
- package/dist/src/components/icon/icon.style.js +42 -130
- package/dist/src/components/icon/icon.variables.js +9 -9
- package/dist/src/components/iconpicker/bundle.js +859 -1511
- package/dist/src/components/iconpicker/bundle.js.gz +0 -0
- package/dist/src/components/iconpicker/icon-picker.component.d.ts +2 -1
- package/dist/src/components/iconpicker/icon-picker.component.js +1 -0
- package/dist/src/components/iconpicker/icon-picker.style.js +13 -13
- package/dist/src/components/image/bundle.js +43 -33
- package/dist/src/components/image/bundle.js.gz +0 -0
- package/dist/src/components/image/image.component.d.ts +10 -1
- package/dist/src/components/image/image.component.js +13 -3
- package/dist/src/components/image/image.style.js +19 -26
- package/dist/src/components/input/bundle.js +420 -644
- package/dist/src/components/input/bundle.js.gz +0 -0
- package/dist/src/components/input/input.component.d.ts +16 -3
- package/dist/src/components/input/input.component.js +43 -27
- package/dist/src/components/input/input.style.d.ts +1 -1
- package/dist/src/components/input/input.style.js +331 -634
- package/dist/src/components/kv-secret-select/bundle.js +2 -1
- package/dist/src/components/kv-secret-select/bundle.js.gz +0 -0
- package/dist/src/components/kv-secret-select/kv-secret-select.component.d.ts +3 -0
- package/dist/src/components/kv-secret-select/kv-secret-select.component.js +4 -0
- package/dist/src/components/label/bundle.js +37 -60
- package/dist/src/components/label/bundle.js.gz +0 -0
- package/dist/src/components/label/label.component.d.ts +8 -4
- package/dist/src/components/label/label.component.js +9 -14
- package/dist/src/components/label/label.style.js +17 -25
- package/dist/src/components/label/label.style.variables.js +18 -18
- package/dist/src/components/layout/bundle.js +86 -70
- package/dist/src/components/layout/bundle.js.gz +0 -0
- package/dist/src/components/layout/content.component.d.ts +2 -1
- package/dist/src/components/layout/content.component.js +2 -1
- package/dist/src/components/layout/content.style.js +3 -3
- package/dist/src/components/layout/footer.component.d.ts +2 -1
- package/dist/src/components/layout/footer.component.js +3 -2
- package/dist/src/components/layout/footer.style.js +7 -7
- package/dist/src/components/layout/header.component.d.ts +2 -1
- package/dist/src/components/layout/header.component.js +3 -2
- package/dist/src/components/layout/header.style.js +7 -7
- package/dist/src/components/layout/layout.component.d.ts +4 -7
- package/dist/src/components/layout/layout.component.js +9 -22
- package/dist/src/components/layout/layout.style.js +1 -1
- package/dist/src/components/layout/sider.component.d.ts +3 -1
- package/dist/src/components/layout/sider.component.js +3 -1
- package/dist/src/components/layout/sider.style.js +29 -29
- package/dist/src/components/menu/bundle.js +135 -125
- package/dist/src/components/menu/bundle.js.gz +0 -0
- package/dist/src/components/menu/menu.component.d.ts +2 -1
- package/dist/src/components/menu/menu.component.js +1 -0
- package/dist/src/components/menu/menu.style.js +87 -87
- package/dist/src/components/modal/bundle.js +105 -96
- package/dist/src/components/modal/bundle.js.gz +0 -0
- package/dist/src/components/modal/modal.component.d.ts +2 -1
- package/dist/src/components/modal/modal.component.js +1 -0
- package/dist/src/components/modal/modal.style.js +69 -71
- package/dist/src/components/panel/bundle.js +190 -391
- package/dist/src/components/panel/bundle.js.gz +0 -0
- package/dist/src/components/panel/panel.component.d.ts +2 -1
- package/dist/src/components/panel/panel.component.js +1 -0
- package/dist/src/components/panel/panel.style.js +65 -65
- package/dist/src/components/popconfirm/bundle.js +107 -93
- package/dist/src/components/popconfirm/bundle.js.gz +0 -0
- package/dist/src/components/popconfirm/popconfirm-manager.component.d.ts +2 -1
- package/dist/src/components/popconfirm/popconfirm-manager.component.js +1 -0
- package/dist/src/components/popconfirm/popconfirm-manager.style.js +16 -16
- package/dist/src/components/popconfirm/popconfirm.component.d.ts +2 -1
- package/dist/src/components/popconfirm/popconfirm.component.js +9 -5
- package/dist/src/components/popconfirm/popconfirm.style.js +43 -43
- package/dist/src/components/radio/bundle.js +56 -86
- package/dist/src/components/radio/bundle.js.gz +0 -0
- package/dist/src/components/radio/radio.component.d.ts +8 -2
- package/dist/src/components/radio/radio.component.js +17 -9
- package/dist/src/components/radio/radio.style.js +30 -77
- package/dist/src/components/radio-group/bundle.js +125 -89
- package/dist/src/components/radio-group/bundle.js.gz +0 -0
- package/dist/src/components/radio-group/radio-group.component.d.ts +5 -1
- package/dist/src/components/radio-group/radio-group.component.js +18 -10
- package/dist/src/components/radio-group/radio-group.style.js +44 -44
- package/dist/src/components/select/bundle.js +260 -367
- package/dist/src/components/select/bundle.js.gz +0 -0
- package/dist/src/components/select/select.component.d.ts +12 -17
- package/dist/src/components/select/select.component.js +35 -35
- package/dist/src/components/select/select.style.js +184 -324
- package/dist/src/components/skeleton/bundle.js +82 -162
- package/dist/src/components/skeleton/bundle.js.gz +0 -0
- package/dist/src/components/skeleton/skeleton.component.d.ts +10 -5
- package/dist/src/components/skeleton/skeleton.component.js +20 -7
- package/dist/src/components/skeleton/skeleton.style.js +34 -133
- package/dist/src/components/slider-input/bundle.js +89 -88
- package/dist/src/components/slider-input/bundle.js.gz +0 -0
- package/dist/src/components/slider-input/slider-input.component.d.ts +11 -0
- package/dist/src/components/slider-input/slider-input.component.js +20 -8
- package/dist/src/components/slider-input/slider-input.style.js +47 -47
- package/dist/src/components/slider-input/slider-input.style.variables.js +32 -32
- package/dist/src/components/table/bundle.js +149 -128
- package/dist/src/components/table/bundle.js.gz +0 -0
- package/dist/src/components/table/table.component.d.ts +2 -1
- package/dist/src/components/table/table.component.js +1 -0
- package/dist/src/components/table/table.style.js +79 -79
- package/dist/src/components/tabs/bundle.js +462 -663
- package/dist/src/components/tabs/bundle.js.gz +0 -0
- package/dist/src/components/tabs/tabs.component.d.ts +6 -1
- package/dist/src/components/tabs/tabs.component.js +8 -1
- package/dist/src/components/tabs/tabs.style.js +200 -201
- package/dist/src/components/tag/bundle.js +44 -36
- package/dist/src/components/tag/bundle.js.gz +0 -0
- package/dist/src/components/tag/tag.component.d.ts +7 -6
- package/dist/src/components/tag/tag.component.js +10 -19
- package/dist/src/components/tag/tag.style.js +20 -24
- package/dist/src/components/textarea/bundle.js +131 -94
- package/dist/src/components/textarea/bundle.js.gz +0 -0
- package/dist/src/components/textarea/textarea.component.d.ts +7 -1
- package/dist/src/components/textarea/textarea.component.js +10 -3
- package/dist/src/components/textarea/textarea.style.d.ts +1 -13
- package/dist/src/components/textarea/textarea.style.js +79 -91
- package/dist/src/components/timeline/bundle.js +71 -134
- package/dist/src/components/timeline/bundle.js.gz +0 -0
- package/dist/src/components/timeline/timeline.component.d.ts +9 -6
- package/dist/src/components/timeline/timeline.component.js +16 -13
- package/dist/src/components/timeline/timeline.style.d.ts +0 -7
- package/dist/src/components/timeline/timeline.style.js +41 -122
- package/dist/src/components/timepicker/bundle.js +196 -166
- package/dist/src/components/timepicker/bundle.js.gz +0 -0
- package/dist/src/components/timepicker/timepicker.component.d.ts +2 -1
- package/dist/src/components/timepicker/timepicker.component.js +1 -0
- package/dist/src/components/timepicker/timepicker.style.js +42 -42
- package/dist/src/components/timepicker/timepicker.style.variables.js +91 -91
- package/dist/src/components/toast/bundle.js +97 -81
- package/dist/src/components/toast/bundle.js.gz +0 -0
- package/dist/src/components/toast/toast.component.d.ts +2 -1
- package/dist/src/components/toast/toast.component.js +1 -0
- package/dist/src/components/toast/toast.style.js +62 -62
- package/dist/src/components/tooltips/bundle.js +10 -10
- package/dist/src/components/tooltips/bundle.js.gz +0 -0
- package/dist/src/components/tooltips/tooltips.component.d.ts +8 -0
- package/dist/src/components/tooltips/tooltips.component.js +9 -1
- package/dist/src/components/tooltips/tooltips.style.js +6 -6
- package/dist/src/components/video/bundle.js +47 -36
- package/dist/src/components/video/bundle.js.gz +0 -0
- package/dist/src/components/video/video.component.d.ts +12 -1
- package/dist/src/components/video/video.component.js +18 -6
- package/dist/src/components/video/video.style.js +18 -24
- package/package.json +25 -12
- package/packages/common/dist/VERSIONS.md +2 -2
- package/packages/common/dist/shared/base-mixin.d.ts +21 -19
- package/packages/common/dist/shared/base-mixin.d.ts.map +1 -1
- package/packages/common/dist/shared/base-mixin.js +102 -18
- package/packages/common/dist/shared/base-mixin.js.map +1 -1
- package/packages/common/dist/shared/index.d.ts +1 -0
- package/packages/common/dist/shared/index.d.ts.map +1 -1
- package/packages/common/dist/shared/index.js +2 -0
- package/packages/common/dist/shared/index.js.map +1 -1
- package/packages/common/dist/shared/style-injector.d.ts +11 -0
- package/packages/common/dist/shared/style-injector.d.ts.map +1 -0
- package/packages/common/dist/shared/style-injector.js +53 -0
- package/packages/common/dist/shared/style-injector.js.map +1 -0
- package/packages/common/dist/shared/theme-mixin.d.ts +2 -24
- package/packages/common/dist/shared/theme-mixin.d.ts.map +1 -1
- package/packages/common/dist/shared/theme-mixin.js +5 -38
- package/packages/common/dist/shared/theme-mixin.js.map +1 -1
- package/packages/themes/dist/default.css +0 -10
- package/packages/themes/dist/package.json +1 -1
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import{css as t,
|
|
1
|
+
import{css as t,html as e,nothing as o,LitElement as s}from"lit";import{property as i,state as r,customElement as n}from"lit/decorators.js";import{repeat as a}from"lit/directives/repeat.js";import{classMap as c}from"lit/directives/class-map.js";
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2023 Nuraly, Laabidi Aymen
|
|
5
5
|
* SPDX-License-Identifier: MIT
|
|
6
|
-
*/const
|
|
6
|
+
*/const l=t`
|
|
7
7
|
:host {
|
|
8
8
|
display: block;
|
|
9
9
|
position: fixed;
|
|
10
|
-
z-index:
|
|
10
|
+
z-index: 1200;
|
|
11
11
|
pointer-events: none;
|
|
12
12
|
|
|
13
13
|
/* Force CSS custom property inheritance to ensure theme switching works properly */
|
|
14
|
-
color:
|
|
15
|
-
font-family:
|
|
14
|
+
color: #161616;
|
|
15
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
/* Container positioning */
|
|
19
19
|
:host([position="top-right"]) {
|
|
20
|
-
top:
|
|
21
|
-
right:
|
|
20
|
+
top: 1rem;
|
|
21
|
+
right: 1rem;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
:host([position="top-left"]) {
|
|
25
|
-
top:
|
|
26
|
-
left:
|
|
25
|
+
top: 1rem;
|
|
26
|
+
left: 1rem;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
:host([position="top-center"]) {
|
|
30
|
-
top:
|
|
30
|
+
top: 1rem;
|
|
31
31
|
left: 50%;
|
|
32
32
|
transform: translateX(-50%);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
:host([position="bottom-right"]) {
|
|
36
|
-
bottom:
|
|
37
|
-
right:
|
|
36
|
+
bottom: 1rem;
|
|
37
|
+
right: 1rem;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
:host([position="bottom-left"]) {
|
|
41
|
-
bottom:
|
|
42
|
-
left:
|
|
41
|
+
bottom: 1rem;
|
|
42
|
+
left: 1rem;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
:host([position="bottom-center"]) {
|
|
46
|
-
bottom:
|
|
46
|
+
bottom: 1rem;
|
|
47
47
|
left: 50%;
|
|
48
48
|
transform: translateX(-50%);
|
|
49
49
|
}
|
|
@@ -51,61 +51,61 @@ import{css as t,LitElement as o,html as a,nothing as r}from"lit";import{property
|
|
|
51
51
|
.toast-container {
|
|
52
52
|
display: flex;
|
|
53
53
|
flex-direction: column;
|
|
54
|
-
gap:
|
|
55
|
-
min-width:
|
|
56
|
-
max-width:
|
|
54
|
+
gap: 0.5rem;
|
|
55
|
+
min-width: 280px;
|
|
56
|
+
max-width: 480px;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
.toast {
|
|
60
60
|
display: flex;
|
|
61
61
|
align-items: start;
|
|
62
|
-
gap:
|
|
63
|
-
padding:
|
|
64
|
-
background-color:
|
|
65
|
-
color:
|
|
66
|
-
border: 1px solid
|
|
67
|
-
border-radius:
|
|
68
|
-
box-shadow:
|
|
62
|
+
gap: 0.75rem;
|
|
63
|
+
padding: 0.75rem 1rem;
|
|
64
|
+
background-color: #ffffff;
|
|
65
|
+
color: #161616;
|
|
66
|
+
border: 1px solid #e0e0e0;
|
|
67
|
+
border-radius: 6px;
|
|
68
|
+
box-shadow: 0 2px 8px rgba(0,0,0,0.15);
|
|
69
69
|
pointer-events: auto;
|
|
70
70
|
cursor: default;
|
|
71
|
-
transition: all
|
|
71
|
+
transition: all 0.15s ease;
|
|
72
72
|
position: relative;
|
|
73
73
|
overflow: hidden;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
.toast:hover {
|
|
77
|
-
box-shadow:
|
|
77
|
+
box-shadow: 0 4px 16px rgba(0,0,0,0.2);
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
/* Toast type variants */
|
|
81
81
|
.toast--default {
|
|
82
|
-
background-color:
|
|
83
|
-
border-color:
|
|
84
|
-
color:
|
|
82
|
+
background-color: #ffffff;
|
|
83
|
+
border-color: #e0e0e0;
|
|
84
|
+
color: #161616;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
.toast--success {
|
|
88
|
-
background-color:
|
|
89
|
-
border-color:
|
|
90
|
-
color:
|
|
88
|
+
background-color: #defbe6;
|
|
89
|
+
border-color: #198038;
|
|
90
|
+
color: #0e6027;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
.toast--error {
|
|
94
|
-
background-color:
|
|
95
|
-
border-color:
|
|
96
|
-
color:
|
|
94
|
+
background-color: #fff1f1;
|
|
95
|
+
border-color: #dc2626;
|
|
96
|
+
color: #a61a1a;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
.toast--warning {
|
|
100
|
-
background-color:
|
|
101
|
-
border-color:
|
|
102
|
-
color:
|
|
100
|
+
background-color: #fdf4d3;
|
|
101
|
+
border-color: #f1c21b;
|
|
102
|
+
color: #75490a;
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
.toast--info {
|
|
106
|
-
background-color:
|
|
107
|
-
border-color:
|
|
108
|
-
color:
|
|
106
|
+
background-color: #edf5ff;
|
|
107
|
+
border-color: #0043ce;
|
|
108
|
+
color: #003087;
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
/* Toast icon */
|
|
@@ -126,12 +126,12 @@ import{css as t,LitElement as o,html as a,nothing as r}from"lit";import{property
|
|
|
126
126
|
flex: 1;
|
|
127
127
|
display: flex;
|
|
128
128
|
flex-direction: column;
|
|
129
|
-
gap:
|
|
129
|
+
gap: 0.5rem;
|
|
130
130
|
min-width: 0;
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
.toast__text {
|
|
134
|
-
font-size:
|
|
134
|
+
font-size: 0.875rem;
|
|
135
135
|
line-height: 1.5;
|
|
136
136
|
word-break: break-word;
|
|
137
137
|
}
|
|
@@ -140,7 +140,7 @@ import{css as t,LitElement as o,html as a,nothing as r}from"lit";import{property
|
|
|
140
140
|
.toast__button {
|
|
141
141
|
display: flex;
|
|
142
142
|
align-items: center;
|
|
143
|
-
margin-top:
|
|
143
|
+
margin-top: 0.25rem;
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
.toast__button nr-button {
|
|
@@ -150,8 +150,8 @@ import{css as t,LitElement as o,html as a,nothing as r}from"lit";import{property
|
|
|
150
150
|
/* Close button */
|
|
151
151
|
.toast__close {
|
|
152
152
|
flex-shrink: 0;
|
|
153
|
-
min-width:
|
|
154
|
-
min-height:
|
|
153
|
+
min-width: 1.5rem;
|
|
154
|
+
min-height: 1.5rem;
|
|
155
155
|
padding: 0;
|
|
156
156
|
border: none;
|
|
157
157
|
background: transparent;
|
|
@@ -160,19 +160,19 @@ import{css as t,LitElement as o,html as a,nothing as r}from"lit";import{property
|
|
|
160
160
|
display: flex;
|
|
161
161
|
align-items: center;
|
|
162
162
|
justify-content: center;
|
|
163
|
-
border-radius:
|
|
164
|
-
transition: all
|
|
165
|
-
opacity:
|
|
163
|
+
border-radius: 4px;
|
|
164
|
+
transition: all 0.15s ease;
|
|
165
|
+
opacity: 0.6;
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
.toast__close:hover {
|
|
169
|
-
opacity:
|
|
170
|
-
background-color:
|
|
169
|
+
opacity: 1;
|
|
170
|
+
background-color: rgba(0,0,0,0.08);
|
|
171
171
|
}
|
|
172
172
|
|
|
173
173
|
.toast__close:focus {
|
|
174
|
-
outline:
|
|
175
|
-
outline-offset:
|
|
174
|
+
outline: 2px solid #7c3aed;
|
|
175
|
+
outline-offset: 2px;
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
.toast__close nr-icon {
|
|
@@ -282,38 +282,38 @@ import{css as t,LitElement as o,html as a,nothing as r}from"lit";import{property
|
|
|
282
282
|
|
|
283
283
|
/* Animation classes */
|
|
284
284
|
.toast--fade-in {
|
|
285
|
-
animation: toast-fade-in
|
|
285
|
+
animation: toast-fade-in 0.3s ease;
|
|
286
286
|
}
|
|
287
287
|
|
|
288
288
|
.toast--fade-out {
|
|
289
|
-
animation: toast-fade-out
|
|
289
|
+
animation: toast-fade-out 0.3s ease;
|
|
290
290
|
}
|
|
291
291
|
|
|
292
292
|
.toast--slide-in {
|
|
293
|
-
animation: toast-slide-in-right
|
|
293
|
+
animation: toast-slide-in-right 0.3s ease;
|
|
294
294
|
}
|
|
295
295
|
|
|
296
296
|
.toast--slide-out {
|
|
297
|
-
animation: toast-slide-out-right
|
|
297
|
+
animation: toast-slide-out-right 0.3s ease;
|
|
298
298
|
}
|
|
299
299
|
|
|
300
300
|
.toast--bounce-in {
|
|
301
|
-
animation: toast-bounce-in
|
|
301
|
+
animation: toast-bounce-in 0.3s ease;
|
|
302
302
|
}
|
|
303
303
|
|
|
304
304
|
.toast--bounce-out {
|
|
305
|
-
animation: toast-bounce-out
|
|
305
|
+
animation: toast-bounce-out 0.3s ease;
|
|
306
306
|
}
|
|
307
307
|
|
|
308
308
|
/* Position-specific slide animations */
|
|
309
309
|
:host([position="top-left"]) .toast--slide-in,
|
|
310
310
|
:host([position="bottom-left"]) .toast--slide-in {
|
|
311
|
-
animation: toast-slide-in-left
|
|
311
|
+
animation: toast-slide-in-left 0.3s ease;
|
|
312
312
|
}
|
|
313
313
|
|
|
314
314
|
:host([position="top-left"]) .toast--slide-out,
|
|
315
315
|
:host([position="bottom-left"]) .toast--slide-out {
|
|
316
|
-
animation: toast-slide-out-left
|
|
316
|
+
animation: toast-slide-out-left 0.3s ease;
|
|
317
317
|
}
|
|
318
318
|
|
|
319
319
|
/* Progress bar for duration indicator */
|
|
@@ -321,9 +321,9 @@ import{css as t,LitElement as o,html as a,nothing as r}from"lit";import{property
|
|
|
321
321
|
position: absolute;
|
|
322
322
|
bottom: 0;
|
|
323
323
|
left: 0;
|
|
324
|
-
height:
|
|
324
|
+
height: 3px;
|
|
325
325
|
background-color: currentColor;
|
|
326
|
-
opacity:
|
|
326
|
+
opacity: 0.4;
|
|
327
327
|
transition: width linear;
|
|
328
328
|
}
|
|
329
329
|
`
|
|
@@ -331,63 +331,79 @@ import{css as t,LitElement as o,html as a,nothing as r}from"lit";import{property
|
|
|
331
331
|
* @license
|
|
332
332
|
* Copyright 2023 Nuraly, Laabidi Aymen
|
|
333
333
|
* SPDX-License-Identifier: MIT
|
|
334
|
-
*/,
|
|
334
|
+
*/,d=t=>class extends t{constructor(){super(...arguments),this.handleSystemThemeChange=()=>{this.closest("[data-theme]")||document.documentElement.hasAttribute("data-theme")||this.requestUpdate()}}connectedCallback(){super.connectedCallback(),this.setupThemeObserver(),this.setupDesignSystemObserver(),this.setupSystemThemeListener()}disconnectedCallback(){var t,e,o;super.disconnectedCallback(),null===(t=this.themeObserver)||void 0===t||t.disconnect(),null===(e=this.designSystemObserver)||void 0===e||e.disconnect(),null===(o=this.mediaQuery)||void 0===o||o.removeEventListener("change",this.handleSystemThemeChange)}get currentTheme(){var t,e;const o=(null===(t=this.closest("[data-theme]"))||void 0===t?void 0:t.getAttribute("data-theme"))||document.documentElement.getAttribute("data-theme");return o||((null===(e=window.matchMedia)||void 0===e?void 0:e.call(window,"(prefers-color-scheme: dark)").matches)?"dark":"light")}get currentDesignSystem(){var t;const e=(null===(t=this.closest("[design-system]"))||void 0===t?void 0:t.getAttribute("design-system"))||document.documentElement.getAttribute("design-system");return"carbon"===e?e:"default"}setupThemeObserver(){this.themeObserver=new MutationObserver(()=>{this.requestUpdate()}),this.themeObserver.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]})}setupDesignSystemObserver(){this.designSystemObserver=new MutationObserver(()=>{this.requestUpdate()}),this.designSystemObserver.observe(document.documentElement,{attributes:!0,attributeFilter:["design-system"]})}setupSystemThemeListener(){window.matchMedia&&(this.mediaQuery=window.matchMedia("(prefers-color-scheme: dark)"),this.mediaQuery.addEventListener("change",this.handleSystemThemeChange))}},h=()=>{var t;return void 0!==globalThis.litElementVersions||"undefined"!=typeof process&&"development"===(null===(t=process.env)||void 0===t?void 0:t.NODE_ENV)||"undefined"!=typeof window&&("localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname)},u=t=>class extends t{constructor(){super(...arguments),this.requiredComponents=[]}validateDependencies(){if(h())for(const t of this.requiredComponents)if(!this.isComponentAvailable(t))throw new Error(`Required component "${t}" is not registered. Please import and register the component before using ${this.tagName.toLowerCase()}. Example: import '@nuralyui/${t}';`)}validateDependenciesWithHandler(t){if(!h())return!0;let e=!0;for(const o of this.requiredComponents)if(!this.isComponentAvailable(o)){e=!1;const s=new Error(`Required component "${o}" is not registered. Please import and register the component before using ${this.tagName.toLowerCase()}.`);t?t(o,s):console.error(s.message)}return e}isComponentAvailable(t){return!!customElements.get(t)}getMissingDependencies(){return this.requiredComponents.filter(t=>!this.isComponentAvailable(t))}areDependenciesAvailable(){return this.requiredComponents.every(t=>this.isComponentAvailable(t))}addRequiredComponent(t){this.requiredComponents.includes(t)||this.requiredComponents.push(t)}removeRequiredComponent(t){const e=this.requiredComponents.indexOf(t);e>-1&&this.requiredComponents.splice(e,1)}},m=t=>class extends t{dispatchCustomEvent(t,e){this.dispatchEvent(new CustomEvent(t,{detail:e,bubbles:!0,composed:!0}))}dispatchEventWithMetadata(t,e){var o;const s=Object.assign(Object.assign({},e),{timestamp:Date.now(),componentName:(null===(o=this.tagName)||void 0===o?void 0:o.toLowerCase())||"unknown"});this.dispatchCustomEvent(t,s)}dispatchInputEvent(t,e){const o=Object.assign({target:e.target||this,value:e.value,originalEvent:e.originalEvent},e);this.dispatchCustomEvent(t,o)}dispatchFocusEvent(t,e){const o=Object.assign({target:e.target||this,value:e.value,focused:e.focused,cursorPosition:e.cursorPosition,selectedText:e.selectedText},e);this.dispatchCustomEvent(t,o)}dispatchValidationEvent(t,e){var o;const s=Object.assign({target:e.target||this,value:e.value,isValid:null!==(o=e.isValid)&&void 0!==o&&o,error:e.error},e);this.dispatchCustomEvent(t,s)}dispatchActionEvent(t,e){const o=Object.assign({target:e.target||this,action:e.action,previousValue:e.previousValue,newValue:e.newValue},e);this.dispatchCustomEvent(t,o)}isReadonlyKeyAllowed(t){if(t.ctrlKey||t.metaKey){return["KeyA","KeyC"].includes(t.code)}return["Tab","Escape","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(t.key)}isActivationKey(t){return"Enter"===t.key||" "===t.key}},f=new Set,p=new Map;
|
|
335
335
|
/**
|
|
336
336
|
* @license
|
|
337
337
|
* Copyright 2023 Nuraly, Laabidi Aymen
|
|
338
338
|
* SPDX-License-Identifier: MIT
|
|
339
339
|
*/
|
|
340
|
-
|
|
340
|
+
const b=t=>{class e extends t{constructor(){super(...arguments),this.t=null}createRenderRoot(){return this.constructor.useShadowDom?super.createRenderRoot():this}connectedCallback(){const t=this.constructor.useShadowDom;if(!t&&null===this.t)for(this.t=[];this.firstChild;)this.t.push(this.removeChild(this.firstChild));if(super.connectedCallback(),!t){const t=this.constructor,e=this.tagName.toLowerCase(),o=t.styles;if(o){const t=v(o);t&&function(t,e,o){var s;if(!p.has(t)){const o=new CSSStyleSheet;o.replaceSync(e),p.set(t,o)}const i=p.get(t),r=`doc:${t}`;if(f.has(r)||(document.adoptedStyleSheets=[...document.adoptedStyleSheets,i],f.add(r)),o){let e=o;for(;e;){const o=e.getRootNode();if(!(o instanceof ShadowRoot))break;{const r=`shadow:${((null===(s=o.host)||void 0===s?void 0:s.tagName)||"").toLowerCase()}:${t}`;f.has(r)||(o.adoptedStyleSheets=[...o.adoptedStyleSheets,i],f.add(r)),e=o.host}}}}(e,t,this)}}}get lightChildren(){return this.t?this.t.filter(t=>!(t instanceof Element&&t.hasAttribute("slot"))):[]}lightChildrenNamed(t){return this.t?this.t.filter(e=>e instanceof Element&&e.getAttribute("slot")===t):[]}}return e.useShadowDom=!1,e};function v(t){return Array.isArray(t)?t.map(t=>v(t)).filter(Boolean).join("\n"):t&&"string"==typeof t.cssText?t.cssText:"string"==typeof t?t:""}
|
|
341
|
+
/**
|
|
342
|
+
* @license
|
|
343
|
+
* Copyright 2023 Nuraly, Laabidi Aymen
|
|
344
|
+
* SPDX-License-Identifier: MIT
|
|
345
|
+
*/const g="",y=5e3,w=5;
|
|
346
|
+
/**
|
|
347
|
+
* @license
|
|
348
|
+
* Copyright 2023 Nuraly, Laabidi Aymen
|
|
349
|
+
* SPDX-License-Identifier: MIT
|
|
350
|
+
*/
|
|
351
|
+
var x=function(t,e,o,s){for(var i,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,o):s,a=t.length-1;a>=0;a--)(i=t[a])&&(n=(r<3?i(n):r>3?i(e,o,n):i(e,o))||n);return r>3&&n&&Object.defineProperty(e,o,n),n};let k=class extends((t=>u(d(m(b(t)))))(s)){constructor(){super(...arguments),this.requiredComponents=["nr-icon","nr-button"],this.position="top-right",this.maxToasts=5,this.defaultDuration=5e3,this.animation="fade",this.stack=!0,this.autoDismiss=!0,this.toasts=[],this.timeouts=new Map}show(t){var e,o,s;const i="string"==typeof t?{text:t}:t,r={id:this.generateId(),timestamp:Date.now(),text:i.text,content:i.content,type:i.type||"default",duration:null!==(e=i.duration)&&void 0!==e?e:this.defaultDuration,autoDismiss:null!==(o=i.autoDismiss)&&void 0!==o?o:this.autoDismiss,closable:null===(s=i.closable)||void 0===s||s,icon:i.icon||this.getDefaultIcon(i.type),customClass:i.customClass,button:i.button,onClose:i.onClose,onClick:i.onClick};if(this.stack?this.toasts.length>=this.maxToasts&&this.removeToast(this.toasts[0].id):this.clearAll(),this.toasts=[...this.toasts,r],this.emitToastEvent("nr-toast-show",r,"show"),r.autoDismiss&&r.duration&&r.duration>0){const t=window.setTimeout(()=>{this.removeToast(r.id)},r.duration);this.timeouts.set(r.id,t)}return r.id}success(t,e){return this.show({text:t,type:"success",duration:e})}error(t,e){return this.show({text:t,type:"error",duration:e})}warning(t,e){return this.show({text:t,type:"warning",duration:e})}info(t,e){return this.show({text:t,type:"info",duration:e})}removeToast(t){const e=this.toasts.find(e=>e.id===t);if(!e)return;e.removing=!0,this.requestUpdate();const o=this.timeouts.get(t);o&&(clearTimeout(o),this.timeouts.delete(t)),setTimeout(()=>{var o;this.toasts=this.toasts.filter(e=>e.id!==t),this.emitToastEvent("nr-toast-close",e,"close"),null===(o=e.onClose)||void 0===o||o.call(e)},300)}clearAll(){this.toasts.forEach(t=>{const e=this.timeouts.get(t.id);e&&clearTimeout(e)}),this.timeouts.clear(),this.toasts=[]}handleToastClick(t){var e;this.emitToastEvent("nr-toast-click",t,"click"),null===(e=t.onClick)||void 0===e||e.call(t)}handleCloseClick(t,e){t.stopPropagation(),this.removeToast(e.id)}getDefaultIcon(t){switch(t){case"success":return"check-circle";case"error":return"x-circle";case"warning":return"alert-triangle";case"info":return"info";default:return""}}generateId(){return`toast-${Date.now()}-${Math.random().toString(36).substr(2,9)}`}getAnimationClass(t){const e=t.removing?"out":"in";return`toast--${this.animation}-${e}`}emitToastEvent(t,e,o){this.dispatchEvent(new CustomEvent(t,{detail:{toast:e,action:o},bubbles:!0,composed:!0}))}disconnectedCallback(){super.disconnectedCallback(),this.clearAll()}render(){return e`
|
|
341
352
|
<div class="toast-container">
|
|
342
|
-
${
|
|
353
|
+
${a(this.toasts,t=>t.id,t=>this.renderToast(t))}
|
|
343
354
|
</div>
|
|
344
|
-
`}renderToast(t){const
|
|
355
|
+
`}renderToast(t){const s={toast:!0,[`toast--${t.type}`]:!0,[this.getAnimationClass(t)]:!0,[t.customClass||""]:!!t.customClass};return e`
|
|
345
356
|
<div
|
|
346
|
-
class=${
|
|
357
|
+
class=${c(s)}
|
|
347
358
|
@click=${()=>this.handleToastClick(t)}
|
|
348
359
|
role="alert"
|
|
349
360
|
aria-live="polite"
|
|
350
361
|
>
|
|
351
|
-
${t.icon?
|
|
362
|
+
${t.icon?e`
|
|
352
363
|
<div class="toast__icon">
|
|
353
364
|
<nr-icon name=${t.icon} size="medium"></nr-icon>
|
|
354
365
|
</div>
|
|
355
|
-
`:
|
|
366
|
+
`:o}
|
|
356
367
|
|
|
357
368
|
<div class="toast__content">
|
|
358
|
-
${t.content?t.content:
|
|
369
|
+
${t.content?t.content:e`
|
|
359
370
|
<div class="toast__text">${t.text}</div>
|
|
360
|
-
${t.button?this.renderButton(t.button):
|
|
371
|
+
${t.button?this.renderButton(t.button):o}
|
|
361
372
|
`}
|
|
362
373
|
</div>
|
|
363
374
|
|
|
364
|
-
${t.closable?
|
|
375
|
+
${t.closable?e`
|
|
365
376
|
<button
|
|
366
377
|
class="toast__close"
|
|
367
|
-
@click=${
|
|
378
|
+
@click=${e=>this.handleCloseClick(e,t)}
|
|
368
379
|
aria-label="Close notification"
|
|
369
380
|
type="button"
|
|
370
381
|
>
|
|
371
382
|
<nr-icon name="x" size="small"></nr-icon>
|
|
372
383
|
</button>
|
|
373
|
-
`:
|
|
384
|
+
`:o}
|
|
374
385
|
</div>
|
|
375
|
-
`}renderButton(t){return
|
|
386
|
+
`}renderButton(t){return e`
|
|
376
387
|
<div class="toast__button">
|
|
377
388
|
<nr-button
|
|
378
389
|
type=${t.type||"default"}
|
|
379
390
|
size=${t.size||"small"}
|
|
380
391
|
?disabled=${t.disabled||!1}
|
|
381
|
-
@click=${
|
|
392
|
+
@click=${e=>{e.stopPropagation(),t.onClick(e)}}
|
|
382
393
|
>
|
|
383
|
-
${t.icon?
|
|
394
|
+
${t.icon?e`<nr-icon slot="icon-left" name=${t.icon}></nr-icon>`:o}
|
|
384
395
|
${t.label}
|
|
385
396
|
</nr-button>
|
|
386
397
|
</div>
|
|
387
|
-
`}};
|
|
398
|
+
`}};k.useShadowDom=!0,k.styles=l,x([i({type:String,reflect:!0})],k.prototype,"position",void 0),x([i({type:Number})],k.prototype,"maxToasts",void 0),x([i({type:Number})],k.prototype,"defaultDuration",void 0),x([i({type:String})],k.prototype,"animation",void 0),x([i({type:Boolean})],k.prototype,"stack",void 0),x([i({type:Boolean})],k.prototype,"autoDismiss",void 0),x([r()],k.prototype,"toasts",void 0),k=x([n("nr-toast")],k);
|
|
388
399
|
/**
|
|
389
400
|
* @license
|
|
390
401
|
* Copyright 2023 Nuraly, Laabidi Aymen
|
|
391
402
|
* SPDX-License-Identifier: MIT
|
|
392
403
|
*/
|
|
393
|
-
class
|
|
404
|
+
class ${constructor(t){this._host=t,t.addController(this)}get host(){return this._host}hostConnected(){}hostDisconnected(){}hostUpdate(){}hostUpdated(){}requestUpdate(){try{this._host.requestUpdate()}catch(t){this.handleError(t,"requestUpdate")}}dispatchEvent(t){try{return this._host.dispatchEvent(t)}catch(t){return this.handleError(t,"dispatchEvent"),!1}}handleError(t,e){console.error(`[${this.constructor.name}] Error in ${e}:`,t);try{this._host.dispatchEvent(new CustomEvent("nr-controller-error",{detail:{error:t.message,context:e,controller:this.constructor.name},bubbles:!0,composed:!0}))}catch(t){}}safeExecute(t,e,o){try{return t()}catch(t){return this.handleError(t,e),o}}debounce(t,e){let o;const s=(...s)=>{void 0!==o&&clearTimeout(o),o=setTimeout(()=>{o=void 0,t.apply(this,s)},e)};return s.cancel=()=>{void 0!==o&&(clearTimeout(o),o=void 0)},s}}
|
|
405
|
+
/**
|
|
406
|
+
* @license
|
|
407
|
+
* Copyright 2023 Nuraly, Laabidi Aymen
|
|
408
|
+
* SPDX-License-Identifier: MIT
|
|
409
|
+
*/class _ extends ${}export{_ as BaseToastController,w as DEFAULT_MAX_TOASTS,y as DEFAULT_TOAST_DURATION,g as EMPTY_STRING,k as NrToastElement};
|
|
Binary file
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { LitElement } from 'lit';
|
|
7
7
|
import { ToastPosition, ToastAnimation, ToastConfig } from './toast.types.js';
|
|
8
|
-
declare const NrToastElement_base: (new (...args: any[]) => import("@nuralyui/common/mixins").DependencyAware) & (new (...args: any[]) => import("@nuralyui/common/mixins").ThemeAware) & (new (...args: any[]) => import("@nuralyui/common/mixins").EventHandlerCapable) & typeof LitElement;
|
|
8
|
+
declare const NrToastElement_base: (new (...args: any[]) => import("@nuralyui/common/mixins").DependencyAware) & (new (...args: any[]) => import("@nuralyui/common/mixins").ThemeAware) & (new (...args: any[]) => import("@nuralyui/common/mixins").EventHandlerCapable) & (new (...args: any[]) => import("packages/common/src/shared/base-mixin.js").LightDomContent) & typeof LitElement;
|
|
9
9
|
/**
|
|
10
10
|
* Toast notification component for displaying temporary messages.
|
|
11
11
|
*
|
|
@@ -71,6 +71,7 @@ declare const NrToastElement_base: (new (...args: any[]) => import("@nuralyui/co
|
|
|
71
71
|
* @cssproperty --nuraly-toast-info-background - Info toast background
|
|
72
72
|
*/
|
|
73
73
|
export declare class NrToastElement extends NrToastElement_base {
|
|
74
|
+
static useShadowDom: boolean;
|
|
74
75
|
static styles: import("lit").CSSResult;
|
|
75
76
|
requiredComponents: string[];
|
|
76
77
|
/** Position of toast container on screen */
|