@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
|
Binary file
|
|
@@ -8,7 +8,7 @@ import { DatePickerMode, DatePickerType, DatePickerSize, DatePickerVariant, Date
|
|
|
8
8
|
import { DatePickerHost } from './interfaces/base-controller.interface.js';
|
|
9
9
|
import './utils/locale.helper.js';
|
|
10
10
|
import { INPUT_STATE } from '../input/input.types.js';
|
|
11
|
-
declare const HyDatePickerElement_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;
|
|
11
|
+
declare const HyDatePickerElement_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;
|
|
12
12
|
/**
|
|
13
13
|
* HyDatePicker - A comprehensive date picker component
|
|
14
14
|
*
|
|
@@ -53,6 +53,7 @@ declare const HyDatePickerElement_base: (new (...args: any[]) => import("@nuraly
|
|
|
53
53
|
* ```
|
|
54
54
|
*/
|
|
55
55
|
export declare class HyDatePickerElement extends HyDatePickerElement_base implements DatePickerHost {
|
|
56
|
+
static useShadowDom: boolean;
|
|
56
57
|
static styles: import("lit").CSSResult;
|
|
57
58
|
requiredComponents: string[];
|
|
58
59
|
private calendarController;
|
|
@@ -551,6 +551,7 @@ let HyDatePickerElement = class HyDatePickerElement extends NuralyUIBaseMixin(Li
|
|
|
551
551
|
return renderYearsTemplate(this.navigationDates.start.year, this.selectYear);
|
|
552
552
|
}
|
|
553
553
|
};
|
|
554
|
+
HyDatePickerElement.useShadowDom = true;
|
|
554
555
|
HyDatePickerElement.styles = styles;
|
|
555
556
|
__decorate([
|
|
556
557
|
property({ type: String })
|
|
@@ -21,12 +21,12 @@ export const styles = css `
|
|
|
21
21
|
:host {
|
|
22
22
|
width: fit-content;
|
|
23
23
|
display: block;
|
|
24
|
-
font-family:
|
|
24
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
/* Host attribute selectors for configuration */
|
|
28
28
|
:host([disabled]) {
|
|
29
|
-
opacity:
|
|
29
|
+
opacity: 0.5;
|
|
30
30
|
pointer-events: none;
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -38,50 +38,50 @@ export const styles = css `
|
|
|
38
38
|
.datepicker-container {
|
|
39
39
|
position: relative;
|
|
40
40
|
display: block;
|
|
41
|
-
width:
|
|
42
|
-
font-family:
|
|
41
|
+
width: 280px;
|
|
42
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
|
43
43
|
/* Allow calendar to overflow container without causing scroll */
|
|
44
44
|
overflow: visible;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
.datepicker-disabled {
|
|
48
|
-
opacity:
|
|
48
|
+
opacity: 0.5;
|
|
49
49
|
pointer-events: none;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
/* Size variants */
|
|
53
53
|
.datepicker-size-small {
|
|
54
|
-
--nuraly-datepicker-local-day-size:
|
|
55
|
-
--nuraly-datepicker-local-font-size:
|
|
54
|
+
--nuraly-datepicker-local-day-size: 1.75rem;
|
|
55
|
+
--nuraly-datepicker-local-font-size: 0.75rem;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
.datepicker-size-medium {
|
|
59
|
-
--nuraly-datepicker-local-day-size:
|
|
60
|
-
--nuraly-datepicker-local-font-size:
|
|
59
|
+
--nuraly-datepicker-local-day-size: 2rem;
|
|
60
|
+
--nuraly-datepicker-local-font-size: 0.875rem;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
.datepicker-size-large {
|
|
64
|
-
--nuraly-datepicker-local-day-size:
|
|
65
|
-
--nuraly-datepicker-local-font-size:
|
|
64
|
+
--nuraly-datepicker-local-day-size: 2.5rem;
|
|
65
|
+
--nuraly-datepicker-local-font-size: 1rem;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
/* Calendar container */
|
|
69
69
|
.calendar-container {
|
|
70
70
|
position: fixed;
|
|
71
|
-
z-index:
|
|
71
|
+
z-index: 1000;
|
|
72
72
|
user-select: none;
|
|
73
|
-
padding:
|
|
74
|
-
width:
|
|
75
|
-
height:
|
|
76
|
-
background-color:
|
|
77
|
-
border:
|
|
78
|
-
border-radius:
|
|
79
|
-
box-shadow:
|
|
80
|
-
animation: calendar-slide-in
|
|
73
|
+
padding: 0.75rem;
|
|
74
|
+
width: 280px;
|
|
75
|
+
height: auto;
|
|
76
|
+
background-color: #ffffff;
|
|
77
|
+
border: 1px solid #e0e0e0;
|
|
78
|
+
border-radius: 6px;
|
|
79
|
+
box-shadow: 0 2px 8px rgba(0,0,0,0.15);
|
|
80
|
+
animation: calendar-slide-in 0.2s ease;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
.calendar-range {
|
|
84
|
-
width: calc(
|
|
84
|
+
width: calc(280px * 2);
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
/* Calendar header */
|
|
@@ -89,10 +89,10 @@ export const styles = css `
|
|
|
89
89
|
display: flex;
|
|
90
90
|
align-items: center;
|
|
91
91
|
justify-content: space-between;
|
|
92
|
-
padding:
|
|
93
|
-
height:
|
|
94
|
-
border-bottom:
|
|
95
|
-
background:
|
|
92
|
+
padding: 0.5rem;
|
|
93
|
+
height: 2.5rem;
|
|
94
|
+
border-bottom: 1px solid #e0e0e0;
|
|
95
|
+
background: transparent;
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
.year-month-header {
|
|
@@ -106,7 +106,7 @@ export const styles = css `
|
|
|
106
106
|
.current-year-container {
|
|
107
107
|
display: inline-flex;
|
|
108
108
|
align-items: center;
|
|
109
|
-
gap: calc(
|
|
109
|
+
gap: calc(0.25rem / 2);
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
.year-icons-toggler {
|
|
@@ -117,30 +117,30 @@ export const styles = css `
|
|
|
117
117
|
|
|
118
118
|
/* Calendar content */
|
|
119
119
|
.calendar-content {
|
|
120
|
-
padding:
|
|
121
|
-
padding-bottom: calc(
|
|
120
|
+
padding: 0.25rem;
|
|
121
|
+
padding-bottom: calc(0.25rem / 2);
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
/* Button customizations */
|
|
125
125
|
nr-button {
|
|
126
126
|
--nuraly-button-border-color: transparent;
|
|
127
127
|
--nuraly-button-background-color: transparent;
|
|
128
|
-
--nuraly-button-text-color:
|
|
129
|
-
--nuraly-button-hover-background-color:
|
|
130
|
-
--nuraly-button-transition-duration:
|
|
128
|
+
--nuraly-button-text-color: #161616;
|
|
129
|
+
--nuraly-button-hover-background-color: #7c3aed;
|
|
130
|
+
--nuraly-button-transition-duration: 0.2s;
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
.toggle-year-view,
|
|
134
134
|
.toggle-month-view {
|
|
135
|
-
--nuraly-button-font-weight:
|
|
136
|
-
--nuraly-button-font-size:
|
|
135
|
+
--nuraly-button-font-weight: 600;
|
|
136
|
+
--nuraly-button-font-size: 0.875rem;
|
|
137
137
|
--nuraly-button-padding: 4px 20px 4px 8px;
|
|
138
138
|
--nuraly-button-border-radius: 6px;
|
|
139
|
-
--nuraly-button-border: 1px solid
|
|
139
|
+
--nuraly-button-border: 1px solid #e0e0e0;
|
|
140
140
|
--nuraly-button-background-color: #ffffff;
|
|
141
|
-
--nuraly-button-hover-border-color:
|
|
141
|
+
--nuraly-button-hover-border-color: #7c3aed;
|
|
142
142
|
--nuraly-button-hover-background-color: #ffffff;
|
|
143
|
-
--nuraly-button-active-background-color:
|
|
143
|
+
--nuraly-button-active-background-color: #f4f4f4;
|
|
144
144
|
--nuraly-button-transition: all 0.2s;
|
|
145
145
|
position: relative;
|
|
146
146
|
min-width: 80px;
|
|
@@ -163,7 +163,7 @@ export const styles = css `
|
|
|
163
163
|
|
|
164
164
|
.toggle-month-view:hover::after,
|
|
165
165
|
.toggle-year-view:hover::after {
|
|
166
|
-
border-top-color:
|
|
166
|
+
border-top-color: #7c3aed;
|
|
167
167
|
}
|
|
168
168
|
|
|
169
169
|
.next-year,
|
|
@@ -198,11 +198,11 @@ export const styles = css `
|
|
|
198
198
|
|
|
199
199
|
/* Placement variants */
|
|
200
200
|
.placement-top {
|
|
201
|
-
animation: calendar-slide-down
|
|
201
|
+
animation: calendar-slide-down 0.2s ease;
|
|
202
202
|
}
|
|
203
203
|
|
|
204
204
|
.placement-bottom {
|
|
205
|
-
animation: calendar-slide-up
|
|
205
|
+
animation: calendar-slide-up 0.2s ease;
|
|
206
206
|
}
|
|
207
207
|
|
|
208
208
|
/* Animations */
|
|
@@ -246,7 +246,7 @@ export const styles = css `
|
|
|
246
246
|
|
|
247
247
|
/* Accessibility improvements */
|
|
248
248
|
.calendar-container:focus-within {
|
|
249
|
-
outline:
|
|
249
|
+
outline: 2px solid #7c3aed;
|
|
250
250
|
outline-offset: 2px;
|
|
251
251
|
}
|
|
252
252
|
|
|
@@ -266,7 +266,7 @@ export const styles = css `
|
|
|
266
266
|
display: grid;
|
|
267
267
|
grid-template-columns: repeat(7, 1fr);
|
|
268
268
|
gap: 1px;
|
|
269
|
-
margin-bottom:
|
|
269
|
+
margin-bottom: 0.25rem;
|
|
270
270
|
}
|
|
271
271
|
|
|
272
272
|
.weekday-header {
|
|
@@ -276,7 +276,7 @@ export const styles = css `
|
|
|
276
276
|
padding: 8px 4px;
|
|
277
277
|
font-size: 12px;
|
|
278
278
|
font-weight: 500;
|
|
279
|
-
color:
|
|
279
|
+
color: #525252;
|
|
280
280
|
text-align: center;
|
|
281
281
|
}
|
|
282
282
|
|
|
@@ -288,52 +288,52 @@ export const styles = css `
|
|
|
288
288
|
|
|
289
289
|
/* Day cell base styles */
|
|
290
290
|
.day-cell {
|
|
291
|
-
width:
|
|
292
|
-
height:
|
|
291
|
+
width: 2rem;
|
|
292
|
+
height: 2rem;
|
|
293
293
|
display: flex;
|
|
294
294
|
align-items: center;
|
|
295
295
|
justify-content: center;
|
|
296
296
|
border-radius: 6px;
|
|
297
297
|
cursor: pointer;
|
|
298
|
-
transition: all
|
|
299
|
-
font-size:
|
|
298
|
+
transition: all 0.2s ease;
|
|
299
|
+
font-size: 0.875rem;
|
|
300
300
|
font-weight: 400;
|
|
301
|
-
color:
|
|
301
|
+
color: #161616;
|
|
302
302
|
margin: 1px;
|
|
303
303
|
position: relative;
|
|
304
304
|
}
|
|
305
305
|
|
|
306
306
|
.day-cell:hover:not(.disabled):not(.selected) {
|
|
307
|
-
background-color:
|
|
307
|
+
background-color: #7c3aed;
|
|
308
308
|
scale: 1.05;
|
|
309
309
|
}
|
|
310
310
|
|
|
311
311
|
.day-cell.selected {
|
|
312
|
-
background-color:
|
|
313
|
-
color:
|
|
312
|
+
background-color: #7c3aed !important;
|
|
313
|
+
color: #ffffff !important;
|
|
314
314
|
font-weight: 600;
|
|
315
315
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
316
316
|
}
|
|
317
317
|
|
|
318
318
|
.day-cell.today {
|
|
319
|
-
border: 2px solid
|
|
319
|
+
border: 2px solid #7c3aed;
|
|
320
320
|
font-weight: 600;
|
|
321
321
|
}
|
|
322
322
|
|
|
323
323
|
.day-cell.today.selected {
|
|
324
|
-
border-color:
|
|
324
|
+
border-color: #ffffff;
|
|
325
325
|
}
|
|
326
326
|
|
|
327
327
|
.day-cell.disabled {
|
|
328
|
-
background-color:
|
|
329
|
-
color:
|
|
328
|
+
background-color: #f4f4f4;
|
|
329
|
+
color: #c6c6c6;
|
|
330
330
|
cursor: not-allowed;
|
|
331
331
|
pointer-events: none;
|
|
332
332
|
opacity: 0.4;
|
|
333
333
|
}
|
|
334
334
|
|
|
335
335
|
.day-cell.in-range {
|
|
336
|
-
background-color:
|
|
336
|
+
background-color: #f4f0fd;
|
|
337
337
|
border-radius: 0;
|
|
338
338
|
}
|
|
339
339
|
|
|
@@ -351,15 +351,15 @@ export const styles = css `
|
|
|
351
351
|
|
|
352
352
|
/* Error states */
|
|
353
353
|
:host([state="error"]) .datepicker-container {
|
|
354
|
-
--nuraly-datepicker-local-input-border-color:
|
|
354
|
+
--nuraly-datepicker-local-input-border-color: #dc2626;
|
|
355
355
|
}
|
|
356
356
|
|
|
357
357
|
:host([state="warning"]) .datepicker-container {
|
|
358
|
-
--nuraly-datepicker-local-input-border-color:
|
|
358
|
+
--nuraly-datepicker-local-input-border-color: #f1c21b;
|
|
359
359
|
}
|
|
360
360
|
|
|
361
361
|
:host([state="success"]) .datepicker-container {
|
|
362
|
-
--nuraly-datepicker-local-input-border-color:
|
|
362
|
+
--nuraly-datepicker-local-input-border-color: #198038;
|
|
363
363
|
}
|
|
364
364
|
|
|
365
365
|
/* Month/Year Dropdown Styles */
|
|
@@ -371,8 +371,8 @@ export const styles = css `
|
|
|
371
371
|
right: 0;
|
|
372
372
|
width: 120px;
|
|
373
373
|
z-index: 1001;
|
|
374
|
-
background:
|
|
375
|
-
border:
|
|
374
|
+
background: #ffffff;
|
|
375
|
+
border: 1px solid #e0e0e0;
|
|
376
376
|
border-radius: 6px;
|
|
377
377
|
box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
|
|
378
378
|
max-height: 200px;
|
|
@@ -391,24 +391,24 @@ export const styles = css `
|
|
|
391
391
|
.dropdown-item {
|
|
392
392
|
padding: 8px 12px;
|
|
393
393
|
cursor: pointer;
|
|
394
|
-
color:
|
|
395
|
-
font-size:
|
|
394
|
+
color: #161616;
|
|
395
|
+
font-size: 0.875rem;
|
|
396
396
|
transition: all 0.2s;
|
|
397
397
|
border-radius: 0;
|
|
398
398
|
}
|
|
399
399
|
|
|
400
400
|
.dropdown-item:hover {
|
|
401
|
-
background-color:
|
|
401
|
+
background-color: #f4f4f4;
|
|
402
402
|
}
|
|
403
403
|
|
|
404
404
|
.dropdown-item.selected {
|
|
405
|
-
background-color:
|
|
405
|
+
background-color: #7c3aed;
|
|
406
406
|
color: #ffffff;
|
|
407
407
|
font-weight: 600;
|
|
408
408
|
}
|
|
409
409
|
|
|
410
410
|
.dropdown-item.selected:hover {
|
|
411
|
-
background-color:
|
|
411
|
+
background-color: #7c3aed;
|
|
412
412
|
opacity: 0.9;
|
|
413
413
|
}
|
|
414
414
|
|
|
@@ -7,113 +7,113 @@ export const styleVariables = css `
|
|
|
7
7
|
* ======================================== */
|
|
8
8
|
|
|
9
9
|
/* Base datepicker styling - uses theme variables with fallbacks */
|
|
10
|
-
--nuraly-datepicker-local-background-color:
|
|
11
|
-
--nuraly-datepicker-local-text-color:
|
|
12
|
-
--nuraly-datepicker-local-font-family:
|
|
13
|
-
--nuraly-datepicker-local-font-size:
|
|
14
|
-
|
|
10
|
+
--nuraly-datepicker-local-background-color: #ffffff;
|
|
11
|
+
--nuraly-datepicker-local-text-color: #000000;
|
|
12
|
+
--nuraly-datepicker-local-font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
|
|
13
|
+
--nuraly-datepicker-local-font-size: 14px;
|
|
14
|
+
|
|
15
15
|
/* Datepicker borders - theme-aware */
|
|
16
|
-
--nuraly-datepicker-local-border-color:
|
|
17
|
-
--nuraly-datepicker-local-border-width:
|
|
18
|
-
--nuraly-datepicker-local-border-radius:
|
|
19
|
-
|
|
16
|
+
--nuraly-datepicker-local-border-color: #d9d9d9;
|
|
17
|
+
--nuraly-datepicker-local-border-width: 1px;
|
|
18
|
+
--nuraly-datepicker-local-border-radius: 8px;
|
|
19
|
+
|
|
20
20
|
/* Primary and selection colors - theme-aware */
|
|
21
|
-
--nuraly-datepicker-local-primary-color:
|
|
22
|
-
--nuraly-datepicker-local-selected-color:
|
|
23
|
-
--nuraly-datepicker-local-selected-text-color:
|
|
24
|
-
--nuraly-datepicker-local-hover-color:
|
|
25
|
-
--nuraly-datepicker-local-today-color:
|
|
26
|
-
|
|
21
|
+
--nuraly-datepicker-local-primary-color: #1677ff;
|
|
22
|
+
--nuraly-datepicker-local-selected-color: #1677ff;
|
|
23
|
+
--nuraly-datepicker-local-selected-text-color: #ffffff;
|
|
24
|
+
--nuraly-datepicker-local-hover-color: #f5f5f5;
|
|
25
|
+
--nuraly-datepicker-local-today-color: #1677ff;
|
|
26
|
+
|
|
27
27
|
/* Disabled states - theme-aware */
|
|
28
|
-
--nuraly-datepicker-local-disabled-color:
|
|
29
|
-
--nuraly-datepicker-local-disabled-text-color:
|
|
30
|
-
--nuraly-datepicker-local-disabled-opacity:
|
|
31
|
-
|
|
28
|
+
--nuraly-datepicker-local-disabled-color: #f5f5f5;
|
|
29
|
+
--nuraly-datepicker-local-disabled-text-color: #bfbfbf;
|
|
30
|
+
--nuraly-datepicker-local-disabled-opacity: 0.5;
|
|
31
|
+
|
|
32
32
|
/* Input field colors - theme-aware */
|
|
33
|
-
--nuraly-datepicker-local-input-background:
|
|
34
|
-
--nuraly-datepicker-local-input-border-color:
|
|
35
|
-
--nuraly-datepicker-local-input-focus-border-color:
|
|
36
|
-
--nuraly-datepicker-local-input-text-color:
|
|
37
|
-
--nuraly-datepicker-local-input-placeholder-color:
|
|
38
|
-
|
|
33
|
+
--nuraly-datepicker-local-input-background: #ffffff;
|
|
34
|
+
--nuraly-datepicker-local-input-border-color: #d9d9d9;
|
|
35
|
+
--nuraly-datepicker-local-input-focus-border-color: #1677ff;
|
|
36
|
+
--nuraly-datepicker-local-input-text-color: #000000;
|
|
37
|
+
--nuraly-datepicker-local-input-placeholder-color: #bfbfbf;
|
|
38
|
+
|
|
39
39
|
/* Special date colors - theme-aware */
|
|
40
|
-
--nuraly-datepicker-local-weekend-color:
|
|
41
|
-
--nuraly-datepicker-local-weekday-color:
|
|
42
|
-
--nuraly-datepicker-local-range-color:
|
|
43
|
-
--nuraly-datepicker-local-error-color:
|
|
44
|
-
--nuraly-datepicker-local-warning-color:
|
|
45
|
-
--nuraly-datepicker-local-success-color:
|
|
46
|
-
|
|
40
|
+
--nuraly-datepicker-local-weekend-color: #ff4d4f;
|
|
41
|
+
--nuraly-datepicker-local-weekday-color: #8c8c8c;
|
|
42
|
+
--nuraly-datepicker-local-range-color: rgba(22, 119, 255, 0.1);
|
|
43
|
+
--nuraly-datepicker-local-error-color: #da1e28;
|
|
44
|
+
--nuraly-datepicker-local-warning-color: #f0c300;
|
|
45
|
+
--nuraly-datepicker-local-success-color: #24a148;
|
|
46
|
+
|
|
47
47
|
/* Header specific colors - theme-aware */
|
|
48
|
-
--nuraly-datepicker-local-header-background:
|
|
49
|
-
--nuraly-datepicker-local-hover-background:
|
|
50
|
-
--nuraly-datepicker-local-active-background:
|
|
51
|
-
|
|
48
|
+
--nuraly-datepicker-local-header-background: #ffffff;
|
|
49
|
+
--nuraly-datepicker-local-hover-background: rgba(0, 0, 0, 0.04);
|
|
50
|
+
--nuraly-datepicker-local-active-background: rgba(0, 0, 0, 0.06);
|
|
51
|
+
|
|
52
52
|
/* Layout and sizing - theme-aware */
|
|
53
|
-
--nuraly-datepicker-local-width:
|
|
54
|
-
--nuraly-datepicker-local-height:
|
|
55
|
-
--nuraly-datepicker-local-calendar-width:
|
|
56
|
-
--nuraly-datepicker-local-calendar-height:
|
|
57
|
-
--nuraly-datepicker-local-day-size:
|
|
58
|
-
--nuraly-datepicker-local-header-height:
|
|
59
|
-
|
|
53
|
+
--nuraly-datepicker-local-width: 280px;
|
|
54
|
+
--nuraly-datepicker-local-height: auto;
|
|
55
|
+
--nuraly-datepicker-local-calendar-width: 320px;
|
|
56
|
+
--nuraly-datepicker-local-calendar-height: auto;
|
|
57
|
+
--nuraly-datepicker-local-day-size: 36px;
|
|
58
|
+
--nuraly-datepicker-local-header-height: 56px;
|
|
59
|
+
|
|
60
60
|
/* Typography - theme-aware */
|
|
61
|
-
--nuraly-datepicker-local-font-weight:
|
|
62
|
-
--nuraly-datepicker-local-header-font-size:
|
|
63
|
-
--nuraly-datepicker-local-header-font-weight:
|
|
64
|
-
--nuraly-datepicker-local-day-font-size:
|
|
65
|
-
--nuraly-datepicker-local-input-font-size:
|
|
66
|
-
--nuraly-datepicker-local-label-font-size:
|
|
67
|
-
--nuraly-datepicker-local-helper-font-size:
|
|
68
|
-
--nuraly-datepicker-local-message-font-size:
|
|
69
|
-
|
|
61
|
+
--nuraly-datepicker-local-font-weight: 400;
|
|
62
|
+
--nuraly-datepicker-local-header-font-size: 16px;
|
|
63
|
+
--nuraly-datepicker-local-header-font-weight: 600;
|
|
64
|
+
--nuraly-datepicker-local-day-font-size: 14px;
|
|
65
|
+
--nuraly-datepicker-local-input-font-size: 14px;
|
|
66
|
+
--nuraly-datepicker-local-label-font-size: 14px;
|
|
67
|
+
--nuraly-datepicker-local-helper-font-size: 12px;
|
|
68
|
+
--nuraly-datepicker-local-message-font-size: 12px;
|
|
69
|
+
|
|
70
70
|
/* Spacing - theme-aware */
|
|
71
|
-
--nuraly-datepicker-local-gap:
|
|
72
|
-
--nuraly-datepicker-local-calendar-padding:
|
|
73
|
-
--nuraly-datepicker-local-day-padding:
|
|
74
|
-
--nuraly-datepicker-local-input-padding:
|
|
75
|
-
--nuraly-datepicker-local-padding:
|
|
76
|
-
--nuraly-datepicker-local-margin:
|
|
77
|
-
|
|
71
|
+
--nuraly-datepicker-local-gap: 6px;
|
|
72
|
+
--nuraly-datepicker-local-calendar-padding: 12px;
|
|
73
|
+
--nuraly-datepicker-local-day-padding: 6px;
|
|
74
|
+
--nuraly-datepicker-local-input-padding: 8px 12px;
|
|
75
|
+
--nuraly-datepicker-local-padding: 16px;
|
|
76
|
+
--nuraly-datepicker-local-margin: 0;
|
|
77
|
+
|
|
78
78
|
/* Borders - theme-aware */
|
|
79
|
-
--nuraly-datepicker-local-input-border-width:
|
|
80
|
-
--nuraly-datepicker-local-focus-border-width:
|
|
81
|
-
|
|
79
|
+
--nuraly-datepicker-local-input-border-width: 1px;
|
|
80
|
+
--nuraly-datepicker-local-focus-border-width: 2px;
|
|
81
|
+
|
|
82
82
|
/* Shadows - theme-aware */
|
|
83
|
-
--nuraly-datepicker-local-shadow-color:
|
|
84
|
-
--nuraly-datepicker-local-box-shadow:
|
|
85
|
-
--nuraly-datepicker-local-input-focus-shadow:
|
|
86
|
-
|
|
83
|
+
--nuraly-datepicker-local-shadow-color: rgba(0, 0, 0, 0.1);
|
|
84
|
+
--nuraly-datepicker-local-box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.1);
|
|
85
|
+
--nuraly-datepicker-local-input-focus-shadow: 0 0 0 2px rgba(22, 119, 255, 0.2);
|
|
86
|
+
|
|
87
87
|
/* States - theme-aware */
|
|
88
|
-
--nuraly-datepicker-local-hover-opacity:
|
|
89
|
-
|
|
88
|
+
--nuraly-datepicker-local-hover-opacity: 0.8;
|
|
89
|
+
|
|
90
90
|
/* Animation and transitions - theme-aware */
|
|
91
|
-
--nuraly-datepicker-local-transition-duration:
|
|
92
|
-
--nuraly-datepicker-local-transition-timing:
|
|
93
|
-
--nuraly-datepicker-local-calendar-animation-duration:
|
|
94
|
-
|
|
91
|
+
--nuraly-datepicker-local-transition-duration: 0.2s;
|
|
92
|
+
--nuraly-datepicker-local-transition-timing: ease-in-out;
|
|
93
|
+
--nuraly-datepicker-local-calendar-animation-duration: 0.15s;
|
|
94
|
+
|
|
95
95
|
/* Z-index - theme-aware */
|
|
96
|
-
--nuraly-datepicker-local-calendar-z-index:
|
|
97
|
-
|
|
96
|
+
--nuraly-datepicker-local-calendar-z-index: 1000;
|
|
97
|
+
|
|
98
98
|
/* Icon sizes - theme-aware */
|
|
99
|
-
--nuraly-datepicker-local-icon-size:
|
|
100
|
-
--nuraly-datepicker-local-arrow-icon-size:
|
|
101
|
-
|
|
99
|
+
--nuraly-datepicker-local-icon-size: 16px;
|
|
100
|
+
--nuraly-datepicker-local-arrow-icon-size: 12px;
|
|
101
|
+
|
|
102
102
|
/* Size variants - theme-aware */
|
|
103
|
-
--nuraly-datepicker-local-small-font-size:
|
|
104
|
-
--nuraly-datepicker-local-small-padding:
|
|
105
|
-
--nuraly-datepicker-local-small-height:
|
|
106
|
-
--nuraly-datepicker-local-small-day-size:
|
|
107
|
-
|
|
108
|
-
--nuraly-datepicker-local-medium-font-size:
|
|
109
|
-
--nuraly-datepicker-local-medium-padding:
|
|
110
|
-
--nuraly-datepicker-local-medium-height:
|
|
111
|
-
--nuraly-datepicker-local-medium-day-size:
|
|
112
|
-
|
|
113
|
-
--nuraly-datepicker-local-large-font-size:
|
|
114
|
-
--nuraly-datepicker-local-large-padding:
|
|
115
|
-
--nuraly-datepicker-local-large-height:
|
|
116
|
-
--nuraly-datepicker-local-large-day-size:
|
|
103
|
+
--nuraly-datepicker-local-small-font-size: 12px;
|
|
104
|
+
--nuraly-datepicker-local-small-padding: 6px 8px;
|
|
105
|
+
--nuraly-datepicker-local-small-height: 32px;
|
|
106
|
+
--nuraly-datepicker-local-small-day-size: 28px;
|
|
107
|
+
|
|
108
|
+
--nuraly-datepicker-local-medium-font-size: 14px;
|
|
109
|
+
--nuraly-datepicker-local-medium-padding: 8px 12px;
|
|
110
|
+
--nuraly-datepicker-local-medium-height: 36px;
|
|
111
|
+
--nuraly-datepicker-local-medium-day-size: 36px;
|
|
112
|
+
|
|
113
|
+
--nuraly-datepicker-local-large-font-size: 16px;
|
|
114
|
+
--nuraly-datepicker-local-large-padding: 12px 16px;
|
|
115
|
+
--nuraly-datepicker-local-large-height: 44px;
|
|
116
|
+
--nuraly-datepicker-local-large-day-size: 44px;
|
|
117
117
|
}
|
|
118
118
|
`;
|
|
119
119
|
//# sourceMappingURL=datepicker.style.variables.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{css as t,LitElement as e,html as i,nothing as
|
|
1
|
+
import{css as t,LitElement as e,html as i,nothing as r}from"lit";import{property as s,state as o,customElement as a}from"lit/decorators.js";
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2024 Nuraly
|
|
5
5
|
* SPDX-License-Identifier: MIT
|
|
6
|
-
*/var n=function(t,e,i,
|
|
6
|
+
*/var n=function(t,e,i,r){for(var s,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,n=t.length-1;n>=0;n--)(s=t[n])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};let l=class extends e{constructor(){super(...arguments),this.dbType="postgresql",this.value="",this.placeholder="Select database connection...",this.entries=[],this.loading=!1,this.testResult=null,this.showCreateForm=!1,this.creating=!1,this.testing=!1,this.error="",this.newConnectionName="",this.newHost="localhost",this.newPort=5432,this.newDatabase="",this.newUsername="",this.newPassword="",this.newSsl=!1}connectedCallback(){super.connectedCallback(),this.updateDefaultPort()}updated(t){t.has("dbType")&&this.updateDefaultPort()}updateDefaultPort(){this.newPort={postgresql:5432,mysql:3306,mongodb:27017,mssql:1433,oracle:1521,sqlite:0}[this.dbType]||5432}handleSelectChange(t){var e;const i=(null===(e=t.detail)||void 0===e?void 0:e.value)||"";this.value=i,this.dispatchEvent(new CustomEvent("value-change",{detail:{value:i},bubbles:!0,composed:!0}))}toggleCreateForm(){this.showCreateForm=!this.showCreateForm,this.showCreateForm||this.resetCreateForm()}resetCreateForm(){this.newConnectionName="",this.newHost="localhost",this.updateDefaultPort(),this.newDatabase="",this.newUsername="",this.newPassword="",this.newSsl=!1,this.error="",this.testing=!1,this.creating=!1}handleTestConnection(){this.testing=!0,this.dispatchEvent(new CustomEvent("test-connection",{detail:{type:this.dbType,host:this.newHost,port:this.newPort,database:this.newDatabase,username:this.newUsername,password:this.newPassword,ssl:this.newSsl},bubbles:!0,composed:!0}))}notifyTestResult(t){this.testResult=t,this.testing=!1}handleCreate(){if(!this.newConnectionName||!this.newHost||!this.newDatabase)return;this.creating=!0,this.error="";const t=`database/${this.newConnectionName}`,e={type:this.dbType,host:this.newHost,port:this.newPort,database:this.newDatabase,username:this.newUsername,password:this.newPassword,ssl:this.newSsl};this.dispatchEvent(new CustomEvent("create-entry",{detail:{keyPath:t,value:JSON.stringify(e),scope:this.dbType,isSecret:!0},bubbles:!0,composed:!0}))}notifyCreateSuccess(t){this.value=t,this.showCreateForm=!1,this.resetCreateForm(),this.dispatchEvent(new CustomEvent("value-change",{detail:{value:t},bubbles:!0,composed:!0}))}notifyCreateError(t){this.error=t,this.creating=!1}getDbTypeLabel(){return{postgresql:"PostgreSQL",mysql:"MySQL",mongodb:"MongoDB",mssql:"SQL Server",oracle:"Oracle",sqlite:"SQLite"}[this.dbType]||this.dbType}renderCreateForm(){const t=this.newConnectionName&&this.newHost&&this.newDatabase&&this.newUsername;return i`
|
|
7
7
|
<div class="create-form">
|
|
8
8
|
<div class="create-form-header">
|
|
9
9
|
<span class="create-form-title">Add ${this.getDbTypeLabel()} Connection</span>
|
|
@@ -85,9 +85,9 @@ import{css as t,LitElement as e,html as i,nothing as s}from"lit";import{property
|
|
|
85
85
|
<div class="test-result ${this.testResult.success?"success":"error"}">
|
|
86
86
|
${this.testResult.message}
|
|
87
87
|
</div>
|
|
88
|
-
`:
|
|
88
|
+
`:r}
|
|
89
89
|
|
|
90
|
-
${this.error?i`<div class="error-message">${this.error}</div>`:
|
|
90
|
+
${this.error?i`<div class="error-message">${this.error}</div>`:r}
|
|
91
91
|
|
|
92
92
|
<div class="form-actions">
|
|
93
93
|
<button
|
|
@@ -121,6 +121,7 @@ import{css as t,LitElement as e,html as i,nothing as s}from"lit";import{property
|
|
|
121
121
|
</div>
|
|
122
122
|
`}render(){const t=this.entries.filter(t=>t.isSecret).map(t=>({label:t.keyPath.replace("database/",""),value:t.keyPath,icon:"database"}));return i`
|
|
123
123
|
<nr-select
|
|
124
|
+
part="container"
|
|
124
125
|
.value=${this.value}
|
|
125
126
|
.options=${t}
|
|
126
127
|
placeholder=${this.placeholder}
|
|
@@ -128,7 +129,7 @@ import{css as t,LitElement as e,html as i,nothing as s}from"lit";import{property
|
|
|
128
129
|
@nr-change=${this.handleSelectChange}
|
|
129
130
|
>
|
|
130
131
|
<div slot="after-options">
|
|
131
|
-
${this.loading?i`<div class="loading">Loading...</div>`:
|
|
132
|
+
${this.loading?i`<div class="loading">Loading...</div>`:r}
|
|
132
133
|
${this.showCreateForm?this.renderCreateForm():this.renderAddButton()}
|
|
133
134
|
</div>
|
|
134
135
|
</nr-select>
|
|
@@ -305,4 +306,4 @@ import{css as t,LitElement as e,html as i,nothing as s}from"lit";import{property
|
|
|
305
306
|
.checkbox-field label {
|
|
306
307
|
margin-bottom: 0;
|
|
307
308
|
}
|
|
308
|
-
`,n([
|
|
309
|
+
`,l.useShadowDom=!0,n([s({type:String})],l.prototype,"dbType",void 0),n([s({type:String})],l.prototype,"value",void 0),n([s({type:String})],l.prototype,"placeholder",void 0),n([s({attribute:!1})],l.prototype,"entries",void 0),n([s({type:Boolean})],l.prototype,"loading",void 0),n([s({attribute:!1})],l.prototype,"testResult",void 0),n([o()],l.prototype,"showCreateForm",void 0),n([o()],l.prototype,"creating",void 0),n([o()],l.prototype,"testing",void 0),n([o()],l.prototype,"error",void 0),n([o()],l.prototype,"newConnectionName",void 0),n([o()],l.prototype,"newHost",void 0),n([o()],l.prototype,"newPort",void 0),n([o()],l.prototype,"newDatabase",void 0),n([o()],l.prototype,"newUsername",void 0),n([o()],l.prototype,"newPassword",void 0),n([o()],l.prototype,"newSsl",void 0),l=n([a("nr-db-connection-select")],l);export{l as NrDbConnectionSelect};
|
|
Binary file
|
|
@@ -40,9 +40,12 @@ export interface KvConnectionEntry {
|
|
|
40
40
|
* @fires value-change - Fired when selection changes
|
|
41
41
|
* @fires create-entry - Fired when user submits the create form
|
|
42
42
|
* @fires test-connection - Fired when user clicks Test Connection
|
|
43
|
+
*
|
|
44
|
+
* @csspart container - The root nr-select wrapper
|
|
43
45
|
*/
|
|
44
46
|
export declare class NrDbConnectionSelect extends LitElement {
|
|
45
47
|
static styles: import("lit").CSSResult;
|
|
48
|
+
static useShadowDom: boolean;
|
|
46
49
|
/** Database type/scope to filter KV entries by */
|
|
47
50
|
dbType: DatabaseType;
|
|
48
51
|
/** Currently selected connection path */
|