@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
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { LitElement, TemplateResult } from 'lit';
|
|
7
7
|
import { BadgeStatus, BadgeSize, BadgeColor, RibbonPlacement } from './badge.types.js';
|
|
8
|
-
declare const NrBadgeElement_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 NrBadgeElement_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
|
* # Badge Component
|
|
11
11
|
*
|
|
@@ -51,16 +51,17 @@ declare const NrBadgeElement_base: (new (...args: any[]) => import("@nuralyui/co
|
|
|
51
51
|
*
|
|
52
52
|
* @slot - Content to wrap with badge (avatar, icon, etc.)
|
|
53
53
|
*
|
|
54
|
-
* @
|
|
55
|
-
* @
|
|
56
|
-
* @
|
|
57
|
-
* @
|
|
58
|
-
* @
|
|
59
|
-
* @
|
|
60
|
-
* @
|
|
54
|
+
* @csspart indicator - The count or dot indicator bubble
|
|
55
|
+
* @csspart wrapper - The wrapper span that contains the slot and indicator (when children are present)
|
|
56
|
+
* @csspart status - The status dot container (status mode only)
|
|
57
|
+
* @csspart status-dot - The colored status indicator dot (status mode only)
|
|
58
|
+
* @csspart status-text - The label text shown alongside the status dot
|
|
59
|
+
* @csspart ribbon - The ribbon decoration element (ribbon mode only)
|
|
60
|
+
* @csspart ribbon-wrapper - The wrapper around slotted content in ribbon mode
|
|
61
61
|
*/
|
|
62
62
|
export declare class NrBadgeElement extends NrBadgeElement_base {
|
|
63
63
|
static styles: import("lit").CSSResult;
|
|
64
|
+
static useShadowDom: boolean;
|
|
64
65
|
/**
|
|
65
66
|
* Number to show in badge
|
|
66
67
|
*/
|
|
@@ -60,13 +60,13 @@ import { NuralyUIBaseMixin } from '@nuralyui/common/mixins';
|
|
|
60
60
|
*
|
|
61
61
|
* @slot - Content to wrap with badge (avatar, icon, etc.)
|
|
62
62
|
*
|
|
63
|
-
* @
|
|
64
|
-
* @
|
|
65
|
-
* @
|
|
66
|
-
* @
|
|
67
|
-
* @
|
|
68
|
-
* @
|
|
69
|
-
* @
|
|
63
|
+
* @csspart indicator - The count or dot indicator bubble
|
|
64
|
+
* @csspart wrapper - The wrapper span that contains the slot and indicator (when children are present)
|
|
65
|
+
* @csspart status - The status dot container (status mode only)
|
|
66
|
+
* @csspart status-dot - The colored status indicator dot (status mode only)
|
|
67
|
+
* @csspart status-text - The label text shown alongside the status dot
|
|
68
|
+
* @csspart ribbon - The ribbon decoration element (ribbon mode only)
|
|
69
|
+
* @csspart ribbon-wrapper - The wrapper around slotted content in ribbon mode
|
|
70
70
|
*/
|
|
71
71
|
let NrBadgeElement = class NrBadgeElement extends NuralyUIBaseMixin(LitElement) {
|
|
72
72
|
constructor() {
|
|
@@ -151,9 +151,9 @@ let NrBadgeElement = class NrBadgeElement extends NuralyUIBaseMixin(LitElement)
|
|
|
151
151
|
*/
|
|
152
152
|
renderStatusBadge() {
|
|
153
153
|
return html `
|
|
154
|
-
<span class="badge-status">
|
|
155
|
-
<span class="badge-status-dot ${this.status}"></span>
|
|
156
|
-
${this.text ? html `<span class="badge-status-text">${this.text}</span>` : nothing}
|
|
154
|
+
<span part="status" class="badge-status">
|
|
155
|
+
<span part="status-dot" class="badge-status-dot ${this.status}"></span>
|
|
156
|
+
${this.text ? html `<span part="status-text" class="badge-status-text">${this.text}</span>` : nothing}
|
|
157
157
|
</span>
|
|
158
158
|
`;
|
|
159
159
|
}
|
|
@@ -168,9 +168,9 @@ let NrBadgeElement = class NrBadgeElement extends NuralyUIBaseMixin(LitElement)
|
|
|
168
168
|
};
|
|
169
169
|
const ribbonStyle = this.getCustomColorStyle();
|
|
170
170
|
return html `
|
|
171
|
-
<div class="badge-ribbon-wrapper">
|
|
171
|
+
<div part="ribbon-wrapper" class="badge-ribbon-wrapper">
|
|
172
172
|
<slot></slot>
|
|
173
|
-
<div class=${classMap(ribbonClasses)} style=${styleMap(ribbonStyle)}>
|
|
173
|
+
<div part="ribbon" class=${classMap(ribbonClasses)} style=${styleMap(ribbonStyle)}>
|
|
174
174
|
${this.ribbon}
|
|
175
175
|
</div>
|
|
176
176
|
</div>
|
|
@@ -180,7 +180,7 @@ let NrBadgeElement = class NrBadgeElement extends NuralyUIBaseMixin(LitElement)
|
|
|
180
180
|
* Render count/dot badge
|
|
181
181
|
*/
|
|
182
182
|
renderCountBadge() {
|
|
183
|
-
const hasChildren = this.
|
|
183
|
+
const hasChildren = this.childNodes.length > 0;
|
|
184
184
|
const isStandalone = !hasChildren;
|
|
185
185
|
const isHidden = this.shouldHideBadge();
|
|
186
186
|
const presetColors = ['pink', 'red', 'yellow', 'orange', 'cyan', 'green',
|
|
@@ -192,6 +192,7 @@ let NrBadgeElement = class NrBadgeElement extends NuralyUIBaseMixin(LitElement)
|
|
|
192
192
|
if (isStandalone) {
|
|
193
193
|
return html `
|
|
194
194
|
<span
|
|
195
|
+
part="indicator"
|
|
195
196
|
class=${classMap(indicatorClasses)}
|
|
196
197
|
style=${styleMap(indicatorStyle)}
|
|
197
198
|
title=${this.badgeTitle || ''}
|
|
@@ -201,9 +202,10 @@ let NrBadgeElement = class NrBadgeElement extends NuralyUIBaseMixin(LitElement)
|
|
|
201
202
|
`;
|
|
202
203
|
}
|
|
203
204
|
return html `
|
|
204
|
-
<span class="badge-wrapper">
|
|
205
|
+
<span part="wrapper" class="badge-wrapper">
|
|
205
206
|
<slot></slot>
|
|
206
207
|
<span
|
|
208
|
+
part="indicator"
|
|
207
209
|
class=${classMap(indicatorClasses)}
|
|
208
210
|
style=${styleMap(indicatorStyle)}
|
|
209
211
|
title=${this.badgeTitle || ''}
|
|
@@ -227,6 +229,7 @@ let NrBadgeElement = class NrBadgeElement extends NuralyUIBaseMixin(LitElement)
|
|
|
227
229
|
}
|
|
228
230
|
};
|
|
229
231
|
NrBadgeElement.styles = styles;
|
|
232
|
+
NrBadgeElement.useShadowDom = true;
|
|
230
233
|
__decorate([
|
|
231
234
|
property({ type: Number })
|
|
232
235
|
], NrBadgeElement.prototype, "count", void 0);
|
|
@@ -3,12 +3,5 @@
|
|
|
3
3
|
* Copyright 2023 Nuraly, Laabidi Aymen
|
|
4
4
|
* SPDX-License-Identifier: MIT
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* Badge component styles for the Hybrid UI Library
|
|
8
|
-
* Using shared CSS variables from /src/shared/themes/
|
|
9
|
-
*
|
|
10
|
-
* This file contains all the styling for the nr-badge component with
|
|
11
|
-
* clean CSS variable usage without local fallbacks and proper theme switching support.
|
|
12
|
-
*/
|
|
13
6
|
export declare const styles: import("lit").CSSResult;
|
|
14
7
|
//# sourceMappingURL=badge.style.d.ts.map
|
|
@@ -4,108 +4,87 @@
|
|
|
4
4
|
* SPDX-License-Identifier: MIT
|
|
5
5
|
*/
|
|
6
6
|
import { css } from 'lit';
|
|
7
|
-
/**
|
|
8
|
-
* Badge component styles for the Hybrid UI Library
|
|
9
|
-
* Using shared CSS variables from /src/shared/themes/
|
|
10
|
-
*
|
|
11
|
-
* This file contains all the styling for the nr-badge component with
|
|
12
|
-
* clean CSS variable usage without local fallbacks and proper theme switching support.
|
|
13
|
-
*/
|
|
14
7
|
export const styles = css `
|
|
15
8
|
:host {
|
|
16
9
|
display: inline-block;
|
|
17
10
|
position: relative;
|
|
18
|
-
font-family:
|
|
19
|
-
font-size:
|
|
11
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
|
|
12
|
+
font-size: 12px;
|
|
20
13
|
line-height: 1;
|
|
21
14
|
vertical-align: middle;
|
|
22
15
|
}
|
|
23
16
|
|
|
24
|
-
/* Badge wrapper for positioning */
|
|
25
17
|
.badge-wrapper {
|
|
26
18
|
position: relative;
|
|
27
19
|
display: inline-block;
|
|
28
20
|
}
|
|
29
21
|
|
|
30
|
-
/* Main badge indicator (count or dot) */
|
|
31
22
|
.badge-indicator {
|
|
32
|
-
/* position: absolute; */
|
|
33
23
|
top: 0;
|
|
34
24
|
right: 0;
|
|
35
|
-
/* Temporarily disabled for demo - positions badge at exact corner */
|
|
36
|
-
/* transform: translate(50%, -50%); */
|
|
37
|
-
/* transform-origin: 100% 0%; */
|
|
38
|
-
z-index: var(--nuraly-badge-indicator-z-index, auto);
|
|
39
25
|
display: inline-flex;
|
|
40
26
|
align-items: center;
|
|
41
27
|
justify-content: center;
|
|
42
|
-
min-width:
|
|
43
|
-
height:
|
|
28
|
+
min-width: 20px;
|
|
29
|
+
height: 20px;
|
|
44
30
|
padding: 0 6px;
|
|
45
|
-
font-size:
|
|
46
|
-
font-weight:
|
|
47
|
-
line-height:
|
|
31
|
+
font-size: 12px;
|
|
32
|
+
font-weight: normal;
|
|
33
|
+
line-height: 20px;
|
|
48
34
|
white-space: nowrap;
|
|
49
35
|
text-align: center;
|
|
50
|
-
background-color:
|
|
36
|
+
background-color: #ff4d4f;
|
|
51
37
|
color: #fff;
|
|
52
38
|
border-radius: 10px;
|
|
53
|
-
box-shadow: 0 0 0 1px var(--
|
|
54
|
-
transition: all
|
|
39
|
+
box-shadow: 0 0 0 1px var(--nr-bg, #ffffff);
|
|
40
|
+
transition: all 0.15s ease;
|
|
55
41
|
}
|
|
56
42
|
|
|
57
|
-
/* Small size badge */
|
|
58
43
|
.badge-indicator.small {
|
|
59
|
-
min-width:
|
|
60
|
-
height:
|
|
44
|
+
min-width: 14px;
|
|
45
|
+
height: 14px;
|
|
61
46
|
padding: 0 4px;
|
|
62
|
-
font-size:
|
|
63
|
-
line-height:
|
|
47
|
+
font-size: 12px;
|
|
48
|
+
line-height: 14px;
|
|
64
49
|
border-radius: 7px;
|
|
65
50
|
}
|
|
66
51
|
|
|
67
|
-
/* Dot badge (small indicator without count) */
|
|
68
52
|
.badge-indicator.dot {
|
|
69
|
-
min-width:
|
|
70
|
-
width:
|
|
71
|
-
height:
|
|
53
|
+
min-width: 6px;
|
|
54
|
+
width: 6px;
|
|
55
|
+
height: 6px;
|
|
72
56
|
padding: 0;
|
|
73
57
|
border-radius: 50%;
|
|
74
58
|
}
|
|
75
59
|
|
|
76
|
-
/* Standalone badge (no children) */
|
|
77
60
|
.badge-standalone {
|
|
78
61
|
position: relative;
|
|
79
62
|
display: inline-block;
|
|
80
63
|
transform: none;
|
|
81
64
|
}
|
|
82
65
|
|
|
83
|
-
/* Status badge styles */
|
|
84
66
|
.badge-status {
|
|
85
67
|
display: inline-flex;
|
|
86
68
|
align-items: center;
|
|
87
|
-
gap:
|
|
69
|
+
gap: 0.5rem;
|
|
88
70
|
}
|
|
89
71
|
|
|
90
72
|
.badge-status-dot {
|
|
91
|
-
width:
|
|
92
|
-
height:
|
|
73
|
+
width: 6px;
|
|
74
|
+
height: 6px;
|
|
93
75
|
border-radius: 50%;
|
|
94
76
|
display: inline-block;
|
|
95
77
|
}
|
|
96
78
|
|
|
97
79
|
.badge-status-text {
|
|
98
|
-
color: var(--
|
|
99
|
-
font-size:
|
|
80
|
+
color: var(--nr-text, #161616);
|
|
81
|
+
font-size: 14px;
|
|
100
82
|
}
|
|
101
83
|
|
|
102
|
-
|
|
103
|
-
.badge-status-dot.success {
|
|
104
|
-
background-color: var(--nuraly-color-success, #52c41a);
|
|
105
|
-
}
|
|
84
|
+
.badge-status-dot.success { background-color: #52c41a; }
|
|
106
85
|
|
|
107
86
|
.badge-status-dot.processing {
|
|
108
|
-
background-color: var(--
|
|
87
|
+
background-color: var(--nr-primary, #7c3aed);
|
|
109
88
|
position: relative;
|
|
110
89
|
}
|
|
111
90
|
|
|
@@ -116,35 +95,20 @@ export const styles = css `
|
|
|
116
95
|
left: -1px;
|
|
117
96
|
width: 100%;
|
|
118
97
|
height: 100%;
|
|
119
|
-
border: 1px solid var(--
|
|
98
|
+
border: 1px solid var(--nr-primary, #7c3aed);
|
|
120
99
|
border-radius: 50%;
|
|
121
100
|
animation: badge-processing 1.2s infinite ease-in-out;
|
|
122
101
|
}
|
|
123
102
|
|
|
124
103
|
@keyframes badge-processing {
|
|
125
|
-
0% {
|
|
126
|
-
|
|
127
|
-
opacity: 0.5;
|
|
128
|
-
}
|
|
129
|
-
100% {
|
|
130
|
-
transform: scale(2.4);
|
|
131
|
-
opacity: 0;
|
|
132
|
-
}
|
|
104
|
+
0% { transform: scale(0.8); opacity: 0.5; }
|
|
105
|
+
100% { transform: scale(2.4); opacity: 0; }
|
|
133
106
|
}
|
|
134
107
|
|
|
135
|
-
.badge-status-dot.default {
|
|
136
|
-
|
|
137
|
-
}
|
|
108
|
+
.badge-status-dot.default { background-color: #8c8c8c; }
|
|
109
|
+
.badge-status-dot.error { background-color: #ff4d4f; }
|
|
110
|
+
.badge-status-dot.warning { background-color: #faad14; }
|
|
138
111
|
|
|
139
|
-
.badge-status-dot.error {
|
|
140
|
-
background-color: var(--nuraly-color-error, #ff4d4f);
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
.badge-status-dot.warning {
|
|
144
|
-
background-color: var(--nuraly-color-warning, #faad14);
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
/* Color variants for badge indicator */
|
|
148
112
|
.badge-indicator.pink { background-color: #eb2f96; }
|
|
149
113
|
.badge-indicator.red { background-color: #f5222d; }
|
|
150
114
|
.badge-indicator.yellow { background-color: #fadb14; color: rgba(0, 0, 0, 0.85); }
|
|
@@ -159,32 +123,22 @@ export const styles = css `
|
|
|
159
123
|
.badge-indicator.gold { background-color: #faad14; color: rgba(0, 0, 0, 0.85); }
|
|
160
124
|
.badge-indicator.lime { background-color: #a0d911; color: rgba(0, 0, 0, 0.85); }
|
|
161
125
|
|
|
162
|
-
|
|
163
|
-
.badge-ribbon-wrapper {
|
|
164
|
-
position: relative;
|
|
165
|
-
}
|
|
126
|
+
.badge-ribbon-wrapper { position: relative; }
|
|
166
127
|
|
|
167
128
|
.badge-ribbon {
|
|
168
129
|
position: absolute;
|
|
169
|
-
top:
|
|
130
|
+
top: 0.5rem;
|
|
170
131
|
height: 22px;
|
|
171
|
-
padding: 0
|
|
132
|
+
padding: 0 0.5rem;
|
|
172
133
|
color: #fff;
|
|
173
134
|
line-height: 22px;
|
|
174
135
|
white-space: nowrap;
|
|
175
|
-
background-color: var(--
|
|
136
|
+
background-color: var(--nr-primary, #7c3aed);
|
|
176
137
|
border-radius: 2px;
|
|
177
138
|
}
|
|
178
139
|
|
|
179
|
-
.badge-ribbon.start {
|
|
180
|
-
|
|
181
|
-
padding-left: var(--nuraly-spacing-2, 0.5rem);
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
.badge-ribbon.end {
|
|
185
|
-
right: calc(-1 * var(--nuraly-spacing-1, 0.25rem));
|
|
186
|
-
padding-right: var(--nuraly-spacing-2, 0.5rem);
|
|
187
|
-
}
|
|
140
|
+
.badge-ribbon.start { left: -0.25rem; padding-left: 0.5rem; }
|
|
141
|
+
.badge-ribbon.end { right: -0.25rem; padding-right: 0.5rem; }
|
|
188
142
|
|
|
189
143
|
.badge-ribbon::after {
|
|
190
144
|
content: '';
|
|
@@ -209,27 +163,22 @@ export const styles = css `
|
|
|
209
163
|
filter: brightness(0.7);
|
|
210
164
|
}
|
|
211
165
|
|
|
212
|
-
|
|
213
|
-
.badge-ribbon.
|
|
214
|
-
.badge-ribbon.red { background-color: #f5222d; color: #fff; }
|
|
166
|
+
.badge-ribbon.pink { background-color: #eb2f96; }
|
|
167
|
+
.badge-ribbon.red { background-color: #f5222d; }
|
|
215
168
|
.badge-ribbon.yellow { background-color: #fadb14; color: rgba(0, 0, 0, 0.85); }
|
|
216
|
-
.badge-ribbon.orange { background-color: #fa8c16;
|
|
217
|
-
.badge-ribbon.cyan { background-color: #13c2c2;
|
|
218
|
-
.badge-ribbon.green { background-color: #52c41a;
|
|
219
|
-
.badge-ribbon.blue { background-color: #1890ff;
|
|
220
|
-
.badge-ribbon.purple { background-color: #722ed1;
|
|
221
|
-
.badge-ribbon.geekblue { background-color: #2f54eb;
|
|
222
|
-
.badge-ribbon.magenta { background-color: #eb2f96;
|
|
223
|
-
.badge-ribbon.volcano { background-color: #fa541c;
|
|
169
|
+
.badge-ribbon.orange { background-color: #fa8c16; }
|
|
170
|
+
.badge-ribbon.cyan { background-color: #13c2c2; }
|
|
171
|
+
.badge-ribbon.green { background-color: #52c41a; }
|
|
172
|
+
.badge-ribbon.blue { background-color: #1890ff; }
|
|
173
|
+
.badge-ribbon.purple { background-color: #722ed1; }
|
|
174
|
+
.badge-ribbon.geekblue { background-color: #2f54eb; }
|
|
175
|
+
.badge-ribbon.magenta { background-color: #eb2f96; }
|
|
176
|
+
.badge-ribbon.volcano { background-color: #fa541c; }
|
|
224
177
|
.badge-ribbon.gold { background-color: #faad14; color: rgba(0, 0, 0, 0.85); }
|
|
225
178
|
.badge-ribbon.lime { background-color: #a0d911; color: rgba(0, 0, 0, 0.85); }
|
|
226
179
|
|
|
227
|
-
|
|
228
|
-
.badge-hidden {
|
|
229
|
-
display: none;
|
|
230
|
-
}
|
|
180
|
+
.badge-hidden { display: none; }
|
|
231
181
|
|
|
232
|
-
/* RTL Support */
|
|
233
182
|
:host([dir="rtl"]) .badge-indicator {
|
|
234
183
|
right: auto;
|
|
235
184
|
left: 0;
|
|
@@ -237,14 +186,7 @@ export const styles = css `
|
|
|
237
186
|
transform-origin: 0% 0%;
|
|
238
187
|
}
|
|
239
188
|
|
|
240
|
-
:host([dir="rtl"]) .badge-ribbon.start {
|
|
241
|
-
|
|
242
|
-
right: calc(-1 * var(--nuraly-spacing-1, 0.25rem));
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
:host([dir="rtl"]) .badge-ribbon.end {
|
|
246
|
-
right: auto;
|
|
247
|
-
left: calc(-1 * var(--nuraly-spacing-1, 0.25rem));
|
|
248
|
-
}
|
|
189
|
+
:host([dir="rtl"]) .badge-ribbon.start { left: auto; right: -0.25rem; }
|
|
190
|
+
:host([dir="rtl"]) .badge-ribbon.end { right: auto; left: -0.25rem; }
|
|
249
191
|
`;
|
|
250
192
|
//# sourceMappingURL=badge.style.js.map
|