@nuraly/runtime 0.1.2 → 0.1.3
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/components/ui/components/ToastContainer/ToastContainer.ts +8 -1
- package/components/ui/components/advanced/AIChat/AIChat.ts +20 -3
- package/components/ui/components/advanced/Collapse/Collapse.ts +8 -1
- package/components/ui/components/advanced/MicroApp/MicroApp.ts +9 -2
- package/components/ui/components/display/Badge/Badge.ts +8 -1
- package/components/ui/components/display/Divider/Divider.ts +9 -2
- package/components/ui/components/display/Icon/Icon.ts +9 -2
- package/components/ui/components/display/Image/Image.ts +9 -2
- package/components/ui/components/display/Table/Table.ts +9 -2
- package/components/ui/components/display/Tag/Tag.ts +8 -1
- package/components/ui/components/display/TextLabel/TextLabel.ts +9 -2
- package/components/ui/components/display/Video/Video.ts +9 -2
- package/components/ui/components/inputs/Button/Button.ts +7 -1
- package/components/ui/components/inputs/Checkbox/Checkbox.ts +9 -2
- package/components/ui/components/inputs/DatePicker/DatePicker.ts +15 -3
- package/components/ui/components/inputs/Dropdown/Dropdown.ts +8 -1
- package/components/ui/components/inputs/FileUpload/FileUpload.ts +9 -2
- package/components/ui/components/inputs/IconButton/iconbutton.ts +9 -2
- package/components/ui/components/inputs/InsertDropdown/InsertDropdown.ts +20 -3
- package/components/ui/components/inputs/NumberInput/NumberInput.ts +9 -2
- package/components/ui/components/inputs/Slider/Slider.ts +8 -1
- package/components/ui/components/inputs/TextInput/TextInput.ts +9 -2
- package/components/ui/components/inputs/Textarea/Textarea.ts +8 -1
- package/components/ui/components/inputs/UsersDropdown/UsersDropdown.ts +8 -1
- package/components/ui/components/layout/Card/Card.ts +8 -1
- package/components/ui/components/layout/Panel/Panel.ts +8 -1
- package/components/ui/components/layout/Tabs/Tabs.ts +7 -1
- package/components/ui/components/navigation/Menu/Menu.ts +8 -1
- package/components/ui/components/utility/Border/Border.ts +14 -2
- package/components/ui/components/utility/BoxShadow/BoxShadow.ts +14 -2
- package/components/ui/components/utility/Document/Document.ts +9 -2
- package/components/ui/components/utility/Handlers/Handlers.ts +9 -2
- package/components/ui/nuraly-ui/packages/common/dist/constants/index.d.ts +2 -0
- package/components/ui/nuraly-ui/packages/common/dist/constants.d.ts +17 -0
- package/components/ui/nuraly-ui/packages/common/dist/controllers/index.d.ts +2 -0
- package/components/ui/nuraly-ui/packages/common/dist/controllers.d.ts +21 -0
- package/components/ui/nuraly-ui/packages/common/dist/index.d.ts +25 -0
- package/components/ui/nuraly-ui/packages/common/dist/mixins/index.d.ts +2 -0
- package/components/ui/nuraly-ui/packages/common/dist/mixins.d.ts +26 -0
- package/components/ui/nuraly-ui/packages/common/dist/shared/base-mixin.d.ts +42 -0
- package/components/ui/nuraly-ui/packages/common/dist/shared/constants.d.ts +1 -0
- package/components/ui/nuraly-ui/packages/common/dist/shared/controllers/dropdown.controller.d.ts +78 -0
- package/components/ui/nuraly-ui/packages/common/dist/shared/controllers/dropdown.interface.d.ts +39 -0
- package/components/ui/nuraly-ui/packages/common/dist/shared/controllers/index.d.ts +4 -0
- package/components/ui/nuraly-ui/packages/common/dist/shared/controllers/theme.controller.d.ts +49 -0
- package/components/ui/nuraly-ui/packages/common/dist/shared/dependency-mixin.d.ts +37 -0
- package/components/ui/nuraly-ui/packages/common/dist/shared/event-handler-mixin.d.ts +65 -0
- package/components/ui/nuraly-ui/packages/common/dist/shared/index.d.ts +13 -0
- package/components/ui/nuraly-ui/packages/common/dist/shared/theme-mixin.d.ts +79 -0
- package/components/ui/nuraly-ui/packages/common/dist/shared/themes.d.ts +45 -0
- package/components/ui/nuraly-ui/packages/common/dist/themes/index.d.ts +2 -0
- package/components/ui/nuraly-ui/packages/common/dist/themes.d.ts +22 -0
- package/components/ui/nuraly-ui/packages/common/dist/utils/index.d.ts +2 -0
- package/components/ui/nuraly-ui/packages/common/dist/utils.d.ts +21 -0
- package/dist/.claude/settings.local.json +9 -0
- package/dist/micro-app.bundle.umd.cjs +5051 -0
- package/package.json +6 -2
- package/vite.config.ts +3 -6
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { LitElement, html, css } from 'lit';
|
|
2
2
|
import { customElement } from 'lit/decorators.js';
|
|
3
|
-
|
|
3
|
+
|
|
4
|
+
// Safely import @nuralyui/toast
|
|
5
|
+
try {
|
|
6
|
+
await import('@nuralyui/toast');
|
|
7
|
+
} catch (error) {
|
|
8
|
+
console.warn('[@nuralyui/toast] Package not found or failed to load. Toast functionality may be limited.');
|
|
9
|
+
}
|
|
10
|
+
|
|
4
11
|
import { $toasts, type Toast } from '../../../../redux/store/toast';
|
|
5
12
|
import { hideToast } from '../../../../../../services/toast';
|
|
6
13
|
|
|
@@ -3,15 +3,32 @@ import type { ComponentElement } from '../../../../../redux/store/component/comp
|
|
|
3
3
|
import { BaseElementBlock } from "../../base/BaseElement.ts";
|
|
4
4
|
import { html } from "lit";
|
|
5
5
|
import { customElement, property, state } from "lit/decorators.js";
|
|
6
|
-
import "@nuralyui/slider-input";
|
|
7
|
-
import "@nuralyui/button";
|
|
8
|
-
import "@nuralyui/input";
|
|
9
6
|
import styles from "./AIChat.style.ts";
|
|
10
7
|
import { createChat } from '../../../../../redux/handlers/aichat/create-chat.handler.ts';
|
|
11
8
|
import { replaceUUIDs } from "./AIChat.helper.ts";
|
|
12
9
|
import { addGeneratedComponents } from '../../../../../redux/actions/aitchat.ts';
|
|
13
10
|
import { addTempApplication } from '../../../../../redux/actions/application/addTempApplication.ts';
|
|
14
11
|
|
|
12
|
+
// Safely import @nuralyui/slider-input
|
|
13
|
+
try {
|
|
14
|
+
await import("@nuralyui/slider-input");
|
|
15
|
+
} catch (error) {
|
|
16
|
+
console.warn('[@nuralyui/slider-input] Package not found or failed to load.');
|
|
17
|
+
}
|
|
18
|
+
// Safely import @nuralyui/button
|
|
19
|
+
try {
|
|
20
|
+
await import("@nuralyui/button");
|
|
21
|
+
} catch (error) {
|
|
22
|
+
console.warn('[@nuralyui/button] Package not found or failed to load.');
|
|
23
|
+
}
|
|
24
|
+
// Safely import @nuralyui/input
|
|
25
|
+
try {
|
|
26
|
+
await import("@nuralyui/input");
|
|
27
|
+
} catch (error) {
|
|
28
|
+
console.warn('[@nuralyui/input] Package not found or failed to load.');
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
|
|
15
32
|
@customElement("ai-chat-block")
|
|
16
33
|
export class AiChat extends BaseElementBlock {
|
|
17
34
|
static override styles = styles;
|
|
@@ -2,7 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
import { html, nothing, type PropertyValues } from "lit";
|
|
4
4
|
import { BaseElementBlock } from "../../base/BaseElement.ts";
|
|
5
|
-
|
|
5
|
+
|
|
6
|
+
// Safely import @nuralyui/collapse
|
|
7
|
+
try {
|
|
8
|
+
await import("@nuralyui/collapse");
|
|
9
|
+
} catch (error) {
|
|
10
|
+
console.warn('[@nuralyui/collapse] Package not found or failed to load. Collapse functionality may be limited.');
|
|
11
|
+
}
|
|
12
|
+
|
|
6
13
|
import { customElement, state } from "lit/decorators.js";
|
|
7
14
|
import { renderComponent } from '../../../../../utils/render-util';
|
|
8
15
|
import type { ComponentElement } from '../../../../../redux/store/component/component.interface.ts';
|
|
@@ -3,12 +3,19 @@ import { customElement, property } from "lit/decorators.js";
|
|
|
3
3
|
import { styleMap } from "lit/directives/style-map.js";
|
|
4
4
|
import { type ComponentElement } from '../../../../../redux/store/component/component.interface.ts';
|
|
5
5
|
import { BaseElementBlock } from "../../base/BaseElement.ts";
|
|
6
|
-
import "@nuralyui/input";
|
|
7
6
|
import { $environment, type Environment, ViewMode } from '../../../../../redux/store/environment.ts';
|
|
8
7
|
import { $components } from '../../../../../redux/store/component/store.ts';
|
|
9
8
|
import { $microAppCurrentPage } from '../../../../../redux/store/page.ts';
|
|
10
9
|
import { debounce } from '../../../../../utils/time.ts';
|
|
11
10
|
|
|
11
|
+
// Safely import @nuralyui/input
|
|
12
|
+
try {
|
|
13
|
+
await import("@nuralyui/input");
|
|
14
|
+
} catch (error) {
|
|
15
|
+
console.warn('[@nuralyui/input] Package not found or failed to load.');
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
|
|
12
19
|
|
|
13
20
|
@customElement("micro-app-block")
|
|
14
21
|
export class MicroAppBlock extends BaseElementBlock {
|
|
@@ -95,4 +102,4 @@ export class MicroAppBlock extends BaseElementBlock {
|
|
|
95
102
|
`}
|
|
96
103
|
`;
|
|
97
104
|
}
|
|
98
|
-
}
|
|
105
|
+
}
|
|
@@ -3,9 +3,16 @@ import { customElement, property } from "lit/decorators.js";
|
|
|
3
3
|
import { styleMap } from "lit/directives/style-map.js";
|
|
4
4
|
import { type ComponentElement } from '../../../../../redux/store/component/component.interface.ts';
|
|
5
5
|
import { BaseElementBlock } from "../../base/BaseElement.ts";
|
|
6
|
-
import "@nuralyui/badge";
|
|
7
6
|
import { ref } from "lit/directives/ref.js";
|
|
8
7
|
|
|
8
|
+
// Safely import @nuralyui/badge
|
|
9
|
+
try {
|
|
10
|
+
await import("@nuralyui/badge");
|
|
11
|
+
} catch (error) {
|
|
12
|
+
console.warn('[@nuralyui/badge] Package not found or failed to load.');
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
|
|
9
16
|
@customElement("badge-block")
|
|
10
17
|
export class BadgeBlock extends BaseElementBlock {
|
|
11
18
|
static styles = [css``];
|
|
@@ -4,7 +4,14 @@ import { styleMap } from "lit/directives/style-map.js";
|
|
|
4
4
|
import { type ComponentElement } from '../../../../../redux/store/component/component.interface.ts';
|
|
5
5
|
import { BaseElementBlock } from "../../base/BaseElement.ts";
|
|
6
6
|
import { ref } from "lit/directives/ref.js";
|
|
7
|
-
|
|
7
|
+
|
|
8
|
+
// Safely import @nuralyui/divider
|
|
9
|
+
try {
|
|
10
|
+
await import("@nuralyui/divider");
|
|
11
|
+
} catch (error) {
|
|
12
|
+
console.warn('[@nuralyui/divider] Package not found or failed to load.');
|
|
13
|
+
}
|
|
14
|
+
|
|
8
15
|
|
|
9
16
|
@customElement("divider-block")
|
|
10
17
|
export class DividerBlock extends BaseElementBlock {
|
|
@@ -95,4 +102,4 @@ export class DividerBlock extends BaseElementBlock {
|
|
|
95
102
|
` : nothing}
|
|
96
103
|
`;
|
|
97
104
|
}
|
|
98
|
-
}
|
|
105
|
+
}
|
|
@@ -3,9 +3,16 @@ import { customElement, property } from "lit/decorators.js";
|
|
|
3
3
|
import { styleMap } from "lit/directives/style-map.js";
|
|
4
4
|
import { type ComponentElement } from '../../../../../redux/store/component/component.interface.ts';
|
|
5
5
|
import { BaseElementBlock } from "../../base/BaseElement.ts";
|
|
6
|
-
import "@nuralyui/icon";
|
|
7
6
|
import { ref } from "lit/directives/ref.js";
|
|
8
7
|
|
|
8
|
+
// Safely import @nuralyui/icon
|
|
9
|
+
try {
|
|
10
|
+
await import("@nuralyui/icon");
|
|
11
|
+
} catch (error) {
|
|
12
|
+
console.warn('[@nuralyui/icon] Package not found or failed to load.');
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
|
|
9
16
|
|
|
10
17
|
@customElement("icon-block")
|
|
11
18
|
export class IconBlock extends BaseElementBlock {
|
|
@@ -57,4 +64,4 @@ export class IconBlock extends BaseElementBlock {
|
|
|
57
64
|
</nr-icon>
|
|
58
65
|
`;
|
|
59
66
|
}
|
|
60
|
-
}
|
|
67
|
+
}
|
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import { html, nothing } from "lit";
|
|
2
2
|
import { customElement, property } from "lit/decorators.js";
|
|
3
|
-
import "@nuralyui/image";
|
|
4
3
|
import { type ComponentElement } from '../../../../../redux/store/component/component.interface.ts';
|
|
5
4
|
import { BaseElementBlock } from "../../base/BaseElement.ts";
|
|
6
5
|
import { styleMap } from "lit/directives/style-map.js";
|
|
7
6
|
import { ref } from "lit/directives/ref.js";
|
|
8
7
|
|
|
8
|
+
// Safely import @nuralyui/image
|
|
9
|
+
try {
|
|
10
|
+
await import("@nuralyui/image");
|
|
11
|
+
} catch (error) {
|
|
12
|
+
console.warn('[@nuralyui/image] Package not found or failed to load.');
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
|
|
9
16
|
|
|
10
17
|
@customElement("image-block")
|
|
11
18
|
export class ImageBlock extends BaseElementBlock {
|
|
@@ -72,4 +79,4 @@ export class ImageBlock extends BaseElementBlock {
|
|
|
72
79
|
</nr-image>
|
|
73
80
|
`;
|
|
74
81
|
}
|
|
75
|
-
}
|
|
82
|
+
}
|
|
@@ -3,9 +3,16 @@ import { customElement, property, state } from "lit/decorators.js";
|
|
|
3
3
|
import { styleMap } from "lit/directives/style-map.js";
|
|
4
4
|
import { type ComponentElement } from '../../../../../redux/store/component/component.interface.ts';
|
|
5
5
|
import { BaseElementBlock } from "../../base/BaseElement.ts";
|
|
6
|
-
import "@nuralyui/table";
|
|
7
6
|
import { ref } from "lit/directives/ref.js";
|
|
8
7
|
|
|
8
|
+
// Safely import @nuralyui/table
|
|
9
|
+
try {
|
|
10
|
+
await import("@nuralyui/table");
|
|
11
|
+
} catch (error) {
|
|
12
|
+
console.warn('[@nuralyui/table] Package not found or failed to load.');
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
|
|
9
16
|
|
|
10
17
|
|
|
11
18
|
@customElement("table-block")
|
|
@@ -175,4 +182,4 @@ export class TextInputBlock extends BaseElementBlock {
|
|
|
175
182
|
|
|
176
183
|
`;
|
|
177
184
|
}
|
|
178
|
-
}
|
|
185
|
+
}
|
|
@@ -3,9 +3,16 @@ import { customElement, property } from "lit/decorators.js";
|
|
|
3
3
|
import { styleMap } from "lit/directives/style-map.js";
|
|
4
4
|
import { type ComponentElement } from '../../../../../redux/store/component/component.interface.ts';
|
|
5
5
|
import { BaseElementBlock } from "../../base/BaseElement.ts";
|
|
6
|
-
import "@nuralyui/tag";
|
|
7
6
|
import { ref } from "lit/directives/ref.js";
|
|
8
7
|
|
|
8
|
+
// Safely import @nuralyui/tag
|
|
9
|
+
try {
|
|
10
|
+
await import("@nuralyui/tag");
|
|
11
|
+
} catch (error) {
|
|
12
|
+
console.warn('[@nuralyui/tag] Package not found or failed to load.');
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
|
|
9
16
|
@customElement("tag-block")
|
|
10
17
|
export class TagBlock extends BaseElementBlock {
|
|
11
18
|
static styles = [css``];
|
|
@@ -4,7 +4,14 @@ import { customElement, property, state } from "lit/decorators.js";
|
|
|
4
4
|
import { BaseElementBlock } from "../../base/BaseElement.ts";
|
|
5
5
|
import { styles } from "./TextLabel.style.ts";
|
|
6
6
|
import { ref } from "lit/directives/ref.js";
|
|
7
|
-
|
|
7
|
+
|
|
8
|
+
// Safely import @nuralyui/label
|
|
9
|
+
try {
|
|
10
|
+
await import("@nuralyui/label");
|
|
11
|
+
} catch (error) {
|
|
12
|
+
console.warn('[@nuralyui/label] Package not found or failed to load.');
|
|
13
|
+
}
|
|
14
|
+
|
|
8
15
|
|
|
9
16
|
@customElement("text-label-block")
|
|
10
17
|
export class TextLabelBlock extends BaseElementBlock {
|
|
@@ -69,4 +76,4 @@ export class TextLabelBlock extends BaseElementBlock {
|
|
|
69
76
|
}}>${this.inputHandlersValue.value || "Text label"}</nr-label>
|
|
70
77
|
`;
|
|
71
78
|
}
|
|
72
|
-
}
|
|
79
|
+
}
|
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import { html, nothing } from "lit";
|
|
2
2
|
import { customElement, property } from "lit/decorators.js";
|
|
3
|
-
import "@nuralyui/video";
|
|
4
3
|
import { type ComponentElement } from '../../../../../redux/store/component/component.interface.ts';
|
|
5
4
|
import { BaseElementBlock } from "../../base/BaseElement.ts";
|
|
6
5
|
import { styleMap } from "lit/directives/style-map.js";
|
|
7
6
|
import { ref } from "lit/directives/ref.js";
|
|
8
7
|
|
|
8
|
+
// Safely import @nuralyui/video
|
|
9
|
+
try {
|
|
10
|
+
await import("@nuralyui/video");
|
|
11
|
+
} catch (error) {
|
|
12
|
+
console.warn('[@nuralyui/video] Package not found or failed to load.');
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
|
|
9
16
|
|
|
10
17
|
@customElement("video-block")
|
|
11
18
|
export class ImageBlock extends BaseElementBlock {
|
|
@@ -43,4 +50,4 @@ export class ImageBlock extends BaseElementBlock {
|
|
|
43
50
|
</<nr-video-player>
|
|
44
51
|
`;
|
|
45
52
|
}
|
|
46
|
-
}
|
|
53
|
+
}
|
|
@@ -4,7 +4,13 @@ import { styleMap } from "lit/directives/style-map.js";
|
|
|
4
4
|
import { type ComponentElement } from '../../../../../redux/store/component/component.interface.ts';
|
|
5
5
|
import { BaseElementBlock } from "../../base/BaseElement.ts";
|
|
6
6
|
import { ref } from "lit/directives/ref.js";
|
|
7
|
-
|
|
7
|
+
|
|
8
|
+
// Safely import @nuralyui/button
|
|
9
|
+
try {
|
|
10
|
+
await import("@nuralyui/button");
|
|
11
|
+
} catch (error) {
|
|
12
|
+
console.warn('[@nuralyui/button] Package not found or failed to load. Button functionality may be limited.');
|
|
13
|
+
}
|
|
8
14
|
|
|
9
15
|
|
|
10
16
|
|
|
@@ -4,7 +4,14 @@ import { styleMap } from "lit/directives/style-map.js";
|
|
|
4
4
|
import { type ComponentElement } from '../../../../../redux/store/component/component.interface.ts';
|
|
5
5
|
import { BaseElementBlock } from "../../base/BaseElement.ts";
|
|
6
6
|
import { ref } from "lit/directives/ref.js";
|
|
7
|
-
|
|
7
|
+
|
|
8
|
+
// Safely import @nuralyui/checkbox
|
|
9
|
+
try {
|
|
10
|
+
await import("@nuralyui/checkbox");
|
|
11
|
+
} catch (error) {
|
|
12
|
+
console.warn('[@nuralyui/checkbox] Package not found or failed to load.');
|
|
13
|
+
}
|
|
14
|
+
|
|
8
15
|
|
|
9
16
|
@customElement("checkbox-block")
|
|
10
17
|
export class CheckboxBlock extends BaseElementBlock {
|
|
@@ -73,4 +80,4 @@ export class CheckboxBlock extends BaseElementBlock {
|
|
|
73
80
|
</nr-checkbox>
|
|
74
81
|
`;
|
|
75
82
|
}
|
|
76
|
-
}
|
|
83
|
+
}
|
|
@@ -1,14 +1,26 @@
|
|
|
1
1
|
import { html } from "lit";
|
|
2
2
|
import { customElement, property } from "lit/decorators.js";
|
|
3
|
-
import "@nuralyui/select";
|
|
4
3
|
import { styleMap } from "lit/directives/style-map.js";
|
|
5
4
|
import { type ComponentElement } from '../../../../../redux/store/component/component.interface.ts';
|
|
6
5
|
import { BaseElementBlock } from "../../base/BaseElement.ts";
|
|
7
|
-
import "@nuralyui/datepicker";
|
|
8
6
|
import { executeHandler } from '../../../../../state/runtime-context.ts';
|
|
9
7
|
import { getNestedAttribute } from '../../../../../utils/object.utils.ts';
|
|
10
8
|
import { ref } from "lit/directives/ref.js";
|
|
11
9
|
|
|
10
|
+
// Safely import @nuralyui/select
|
|
11
|
+
try {
|
|
12
|
+
await import("@nuralyui/select");
|
|
13
|
+
} catch (error) {
|
|
14
|
+
console.warn('[@nuralyui/select] Package not found or failed to load.');
|
|
15
|
+
}
|
|
16
|
+
// Safely import @nuralyui/datepicker
|
|
17
|
+
try {
|
|
18
|
+
await import("@nuralyui/datepicker");
|
|
19
|
+
} catch (error) {
|
|
20
|
+
console.warn('[@nuralyui/datepicker] Package not found or failed to load.');
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
|
|
12
24
|
@customElement("date-picker-block")
|
|
13
25
|
export class DatepickertBlock extends BaseElementBlock {
|
|
14
26
|
@property({ type: Object })
|
|
@@ -57,4 +69,4 @@ export class DatepickertBlock extends BaseElementBlock {
|
|
|
57
69
|
></nr-datepicker>
|
|
58
70
|
`;
|
|
59
71
|
}
|
|
60
|
-
}
|
|
72
|
+
}
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { html, nothing } from "lit";
|
|
2
2
|
import { customElement, property, state } from "lit/decorators.js";
|
|
3
|
-
|
|
3
|
+
|
|
4
|
+
// Safely import @nuralyui/dropdown
|
|
5
|
+
try {
|
|
6
|
+
await import("@nuralyui/dropdown");
|
|
7
|
+
} catch (error) {
|
|
8
|
+
console.warn('[@nuralyui/dropdown] Package not found or failed to load. Dropdown functionality may be limited.');
|
|
9
|
+
}
|
|
10
|
+
|
|
4
11
|
import { styleMap } from "lit/directives/style-map.js";
|
|
5
12
|
import { type ComponentElement } from '../../../../../redux/store/component/component.interface.ts';
|
|
6
13
|
import { BaseElementBlock } from "../../base/BaseElement.ts";
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
import { customElement } from "lit/decorators.js";
|
|
2
2
|
import { css, html } from "lit";
|
|
3
3
|
import { BaseElementBlock } from '../../base/BaseElement';
|
|
4
|
-
import "@nuralyui/file-upload";
|
|
5
4
|
import { ref } from "lit/directives/ref.js";
|
|
6
5
|
import { styleMap } from "lit/directives/style-map.js";
|
|
7
6
|
|
|
7
|
+
// Safely import @nuralyui/file-upload
|
|
8
|
+
try {
|
|
9
|
+
await import("@nuralyui/file-upload");
|
|
10
|
+
} catch (error) {
|
|
11
|
+
console.warn('[@nuralyui/file-upload] Package not found or failed to load.');
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
|
|
8
15
|
@customElement("file-upload-block")
|
|
9
16
|
export class FileUploadBlock extends BaseElementBlock {
|
|
10
17
|
|
|
@@ -40,4 +47,4 @@ export class FileUploadBlock extends BaseElementBlock {
|
|
|
40
47
|
></nr-file-upload>
|
|
41
48
|
`;
|
|
42
49
|
}
|
|
43
|
-
}
|
|
50
|
+
}
|
|
@@ -6,7 +6,14 @@ import type { ComponentElement } from '../../../../../redux/store/component/comp
|
|
|
6
6
|
import { executeHandler } from '../../../../../state/runtime-context.ts';
|
|
7
7
|
import { getNestedAttribute } from '../../../../../utils/object.utils.ts';
|
|
8
8
|
import { ref } from "lit/directives/ref.js";
|
|
9
|
-
|
|
9
|
+
|
|
10
|
+
// Safely import @nuralyui/button
|
|
11
|
+
try {
|
|
12
|
+
await import("@nuralyui/button");
|
|
13
|
+
} catch (error) {
|
|
14
|
+
console.warn('[@nuralyui/button] Package not found or failed to load.');
|
|
15
|
+
}
|
|
16
|
+
|
|
10
17
|
|
|
11
18
|
@customElement("icon-button-block")
|
|
12
19
|
export class IconButtonBlock extends BaseElementBlock {
|
|
@@ -51,4 +58,4 @@ export class IconButtonBlock extends BaseElementBlock {
|
|
|
51
58
|
</nr-button>
|
|
52
59
|
`;
|
|
53
60
|
}
|
|
54
|
-
}
|
|
61
|
+
}
|
|
@@ -1,8 +1,25 @@
|
|
|
1
1
|
import { css, html, nothing } from "lit";
|
|
2
2
|
import { customElement, property } from "lit/decorators.js";
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
|
|
3
|
+
|
|
4
|
+
// Safely import @nuralyui/button
|
|
5
|
+
try {
|
|
6
|
+
await import("@nuralyui/button");
|
|
7
|
+
} catch (error) {
|
|
8
|
+
console.warn('[@nuralyui/button] Package not found or failed to load.');
|
|
9
|
+
}
|
|
10
|
+
// Safely import @nuralyui/dropdown
|
|
11
|
+
try {
|
|
12
|
+
await import("@nuralyui/dropdown");
|
|
13
|
+
} catch (error) {
|
|
14
|
+
console.warn('[@nuralyui/dropdown] Package not found or failed to load.');
|
|
15
|
+
}
|
|
16
|
+
// Safely import @nuralyui/label
|
|
17
|
+
try {
|
|
18
|
+
await import("@nuralyui/label");
|
|
19
|
+
} catch (error) {
|
|
20
|
+
console.warn('[@nuralyui/label] Package not found or failed to load.');
|
|
21
|
+
}
|
|
22
|
+
|
|
6
23
|
import { type ComponentElement } from '../../../../../redux/store/component/component.interface.ts';
|
|
7
24
|
import { BaseElementBlock } from "../../base/BaseElement.ts";
|
|
8
25
|
import { styleMap } from "lit/directives/style-map.js";
|
|
@@ -3,9 +3,16 @@ import { customElement, property } from "lit/decorators.js";
|
|
|
3
3
|
import { styleMap } from "lit/directives/style-map.js";
|
|
4
4
|
import { type ComponentElement } from '../../../../../redux/store/component/component.interface.ts';
|
|
5
5
|
import { BaseElementBlock } from "../../base/BaseElement.ts";
|
|
6
|
-
import "@nuralyui/input";
|
|
7
6
|
import { ref } from "lit/directives/ref.js";
|
|
8
7
|
|
|
8
|
+
// Safely import @nuralyui/input
|
|
9
|
+
try {
|
|
10
|
+
await import("@nuralyui/input");
|
|
11
|
+
} catch (error) {
|
|
12
|
+
console.warn('[@nuralyui/input] Package not found or failed to load.');
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
|
|
9
16
|
|
|
10
17
|
@customElement("number-input-block")
|
|
11
18
|
export class NumberInputBlock extends BaseElementBlock {
|
|
@@ -81,4 +88,4 @@ export class NumberInputBlock extends BaseElementBlock {
|
|
|
81
88
|
</span>
|
|
82
89
|
`;
|
|
83
90
|
}
|
|
84
|
-
}
|
|
91
|
+
}
|
|
@@ -3,9 +3,16 @@ import { customElement, property } from "lit/decorators.js";
|
|
|
3
3
|
import { styleMap } from "lit/directives/style-map.js";
|
|
4
4
|
import { type ComponentElement } from '../../../../../redux/store/component/component.interface.ts';
|
|
5
5
|
import { BaseElementBlock } from "../../base/BaseElement.ts";
|
|
6
|
-
import "@nuralyui/slider-input";
|
|
7
6
|
import { ref } from "lit/directives/ref.js";
|
|
8
7
|
|
|
8
|
+
// Safely import @nuralyui/slider-input
|
|
9
|
+
try {
|
|
10
|
+
await import("@nuralyui/slider-input");
|
|
11
|
+
} catch (error) {
|
|
12
|
+
console.warn('[@nuralyui/slider-input] Package not found or failed to load.');
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
|
|
9
16
|
@customElement("slider-block")
|
|
10
17
|
export class SliderBlock extends BaseElementBlock {
|
|
11
18
|
static styles = [css``];
|
|
@@ -3,9 +3,16 @@ import { customElement, property, state } from "lit/decorators.js";
|
|
|
3
3
|
import { styleMap } from "lit/directives/style-map.js";
|
|
4
4
|
import { type ComponentElement } from '../../../../../redux/store/component/component.interface.ts';
|
|
5
5
|
import { BaseElementBlock } from "../../base/BaseElement.ts";
|
|
6
|
-
import "@nuralyui/input";
|
|
7
6
|
import { ref } from "lit/directives/ref.js";
|
|
8
7
|
|
|
8
|
+
// Safely import @nuralyui/input
|
|
9
|
+
try {
|
|
10
|
+
await import("@nuralyui/input");
|
|
11
|
+
} catch (error) {
|
|
12
|
+
console.warn('[@nuralyui/input] Package not found or failed to load.');
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
|
|
9
16
|
@customElement("text-input-block")
|
|
10
17
|
export class TextInputBlock extends BaseElementBlock {
|
|
11
18
|
static styles = [css``];
|
|
@@ -150,4 +157,4 @@ export class TextInputBlock extends BaseElementBlock {
|
|
|
150
157
|
</nr-input>
|
|
151
158
|
`;
|
|
152
159
|
}
|
|
153
|
-
}
|
|
160
|
+
}
|
|
@@ -3,9 +3,16 @@ import { customElement, property } from "lit/decorators.js";
|
|
|
3
3
|
import { styleMap } from "lit/directives/style-map.js";
|
|
4
4
|
import { type ComponentElement } from '../../../../../redux/store/component/component.interface.ts';
|
|
5
5
|
import { BaseElementBlock } from "../../base/BaseElement.ts";
|
|
6
|
-
import "@nuralyui/textarea";
|
|
7
6
|
import { ref } from "lit/directives/ref.js";
|
|
8
7
|
|
|
8
|
+
// Safely import @nuralyui/textarea
|
|
9
|
+
try {
|
|
10
|
+
await import("@nuralyui/textarea");
|
|
11
|
+
} catch (error) {
|
|
12
|
+
console.warn('[@nuralyui/textarea] Package not found or failed to load.');
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
|
|
9
16
|
@customElement("textarea-block")
|
|
10
17
|
export class TextareaBlock extends BaseElementBlock {
|
|
11
18
|
static styles = [css``];
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { html, nothing } from "lit";
|
|
2
2
|
import { customElement, property } from "lit/decorators.js";
|
|
3
|
-
|
|
3
|
+
|
|
4
|
+
// Safely import @nuralyui/image
|
|
5
|
+
try {
|
|
6
|
+
await import("@nuralyui/image");
|
|
7
|
+
} catch (error) {
|
|
8
|
+
console.warn('[@nuralyui/image] Package not found or failed to load.');
|
|
9
|
+
}
|
|
10
|
+
|
|
4
11
|
import { type ComponentElement } from '../../../../../redux/store/component/component.interface.ts';
|
|
5
12
|
import { BaseElementBlock } from "../../base/BaseElement.ts";
|
|
6
13
|
|
|
@@ -3,9 +3,16 @@ import { customElement, property } from "lit/decorators.js";
|
|
|
3
3
|
import { styleMap } from "lit/directives/style-map.js";
|
|
4
4
|
import { type ComponentElement } from '../../../../../redux/store/component/component.interface.ts';
|
|
5
5
|
import { BaseElementBlock } from "../../base/BaseElement.ts";
|
|
6
|
-
import "@nuralyui/card";
|
|
7
6
|
import { ref } from "lit/directives/ref.js";
|
|
8
7
|
|
|
8
|
+
// Safely import @nuralyui/card
|
|
9
|
+
try {
|
|
10
|
+
await import("@nuralyui/card");
|
|
11
|
+
} catch (error) {
|
|
12
|
+
console.warn('[@nuralyui/card] Package not found or failed to load.');
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
|
|
9
16
|
@customElement("card-block")
|
|
10
17
|
export class CardBlock extends BaseElementBlock {
|
|
11
18
|
static styles = [css``];
|
|
@@ -3,7 +3,14 @@ import { customElement, property, state } from "lit/decorators.js";
|
|
|
3
3
|
import { styleMap } from "lit/directives/style-map.js";
|
|
4
4
|
import { type ComponentElement } from '../../../../../redux/store/component/component.interface.ts';
|
|
5
5
|
import { BaseElementBlock } from "../../base/BaseElement.ts";
|
|
6
|
-
|
|
6
|
+
|
|
7
|
+
// Safely import @nuralyui/panel
|
|
8
|
+
try {
|
|
9
|
+
await import("@nuralyui/panel");
|
|
10
|
+
} catch (error) {
|
|
11
|
+
console.warn('[@nuralyui/panel] Package not found or failed to load. Panel functionality may be limited.');
|
|
12
|
+
}
|
|
13
|
+
|
|
7
14
|
import { ref } from "lit/directives/ref.js";
|
|
8
15
|
import { PanelMode, PanelSize, PanelPosition, MaximizePosition } from "@nuralyui/panel";
|
|
9
16
|
import { $components } from '../../../../../redux/store/component/store.ts';
|
|
@@ -6,7 +6,13 @@ import { renderComponent } from '../../../../../utils/render-util';
|
|
|
6
6
|
import { BaseElementBlock } from "../../base/BaseElement.ts";
|
|
7
7
|
import { styleMap } from "lit/directives/style-map.js";
|
|
8
8
|
import { EMPTY_STRING } from '../../../../../utils/constants.ts';
|
|
9
|
-
|
|
9
|
+
|
|
10
|
+
// Safely import @nuralyui/tabs
|
|
11
|
+
try {
|
|
12
|
+
await import("@nuralyui/tabs");
|
|
13
|
+
} catch (error) {
|
|
14
|
+
console.warn('[@nuralyui/tabs] Package not found or failed to load. Tab functionality may be limited.');
|
|
15
|
+
}
|
|
10
16
|
@customElement("tabs-block")
|
|
11
17
|
export class TabsBlock extends BaseElementBlock {
|
|
12
18
|
static override styles = css`
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import type { ComponentElement } from '../../../../../redux/store/component/component.interface.ts';
|
|
2
2
|
import { css, html } from "lit";
|
|
3
3
|
import { customElement, property, state } from "lit/decorators.js";
|
|
4
|
-
|
|
4
|
+
|
|
5
|
+
// Safely import @nuralyui/menu
|
|
6
|
+
try {
|
|
7
|
+
await import("@nuralyui/menu");
|
|
8
|
+
} catch (error) {
|
|
9
|
+
console.warn('[@nuralyui/menu] Package not found or failed to load. Menu functionality may be limited.');
|
|
10
|
+
}
|
|
11
|
+
|
|
5
12
|
import { BaseElementBlock } from "../../base/BaseElement.ts";
|
|
6
13
|
import { executeHandler } from '../../../../../state/runtime-context.ts';
|
|
7
14
|
import { getNestedAttribute } from '../../../../../utils/object.utils.ts';
|
|
@@ -2,11 +2,23 @@ import type { ComponentElement } from '../../../../../redux/store/component/comp
|
|
|
2
2
|
import { BaseElementBlock } from '../../base/BaseElement';
|
|
3
3
|
import { css, html } from "lit";
|
|
4
4
|
import { customElement, property, state } from "lit/decorators.js";
|
|
5
|
-
import "@nuralyui/slider-input";
|
|
6
5
|
import { executeHandler } from '../../../../../state/runtime-context';
|
|
7
6
|
import { getNestedAttribute } from '../../../../../utils/object.utils.ts';
|
|
8
7
|
import { styleMap } from "lit/directives/style-map.js";
|
|
9
|
-
|
|
8
|
+
|
|
9
|
+
// Safely import @nuralyui/slider-input
|
|
10
|
+
try {
|
|
11
|
+
await import("@nuralyui/slider-input");
|
|
12
|
+
} catch (error) {
|
|
13
|
+
console.warn('[@nuralyui/slider-input] Package not found or failed to load.');
|
|
14
|
+
}
|
|
15
|
+
// Safely import @nuralyui/color-picker
|
|
16
|
+
try {
|
|
17
|
+
await import("@nuralyui/color-picker");
|
|
18
|
+
} catch (error) {
|
|
19
|
+
console.warn('[@nuralyui/color-picker] Package not found or failed to load.');
|
|
20
|
+
}
|
|
21
|
+
|
|
10
22
|
import {
|
|
11
23
|
SelectTheme,
|
|
12
24
|
SingleButtonTheme,
|