@nuraly/runtime 0.1.9 → 0.1.10

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.
Files changed (113) hide show
  1. package/components/ui/components/inputs/ColorPicker/colorpicker.ts +1 -7
  2. package/components/ui/components/inputs/Form/Form.ts +3 -11
  3. package/components/ui/components/inputs/RadioButton/Radio-button.ts +1 -7
  4. package/components/ui/components/inputs/Select/Select.ts +1 -7
  5. package/components/ui/components/layout/Grid/Col.ts +2 -6
  6. package/components/ui/components/layout/Grid/Row.ts +2 -6
  7. package/components/ui/components/studio/FunctionsPanel/FunctionsPanel.ts +4 -16
  8. package/dist/AIChat-DP3ZdLL3.js +220 -0
  9. package/dist/AIChat-km1IYaR-.js +260 -0
  10. package/dist/Badge-BR94MUt5.js +48 -0
  11. package/dist/Badge-DzNZFKtC.js +70 -0
  12. package/dist/{BaseElement-BNBn_IJk.js → BaseElement-pS6m_x6Q.js} +153 -24
  13. package/dist/Button-BHAN7npC.js +92 -0
  14. package/dist/Button-DCqgsxrL.js +80 -0
  15. package/dist/Card-B70c8NFb.js +150 -0
  16. package/dist/Card-DhOCsGKC.js +120 -0
  17. package/dist/Checkbox-BZTcPwew.js +59 -0
  18. package/dist/Checkbox-LYTIBAUV.js +65 -0
  19. package/dist/Code-BWbiciC8.js +123 -0
  20. package/dist/Code-Ds0vFclr.js +109 -0
  21. package/dist/{CodeEditor-B1gNuvPb.js → CodeEditor-ChuFC0ex.js} +22 -22
  22. package/dist/Col-B_wpWUcU.js +217 -0
  23. package/dist/Col-DYs8_65c.js +193 -0
  24. package/dist/Collapse-4kxbQ74u.js +74 -0
  25. package/dist/Collapse-Dkw6Ner6.js +96 -0
  26. package/dist/Collections-BSF-PqBz.js +122 -0
  27. package/dist/Collections-D5rwMFbv.js +151 -0
  28. package/dist/Container-DMNh5U4Y.js +204 -0
  29. package/dist/DatePicker-BmEOONiA.js +99 -0
  30. package/dist/DatePicker-VuUroOT4.js +80 -0
  31. package/dist/Divider-BfxR3rVl.js +86 -0
  32. package/dist/Divider-etMTYU3d.js +106 -0
  33. package/dist/Document-CHBcJciR.js +74 -0
  34. package/dist/Document-Cj-TmjAf.js +90 -0
  35. package/dist/Dropdown-BRtHvDa3.js +133 -0
  36. package/dist/Dropdown-C47Y11dj.js +112 -0
  37. package/dist/EmbedURL-BwbJRnY1.js +142 -0
  38. package/dist/EmbedURL-Ci5X1vQG.js +114 -0
  39. package/dist/FileUpload-BBgPcRag.js +54 -0
  40. package/dist/FileUpload-BgkhxtNe.js +47 -0
  41. package/dist/Form-BLq6U3In.js +339 -0
  42. package/dist/Form-E6zXqgsm.js +286 -0
  43. package/dist/Icon-CcLuhz6B.js +64 -0
  44. package/dist/Icon-_UiLblGb.js +74 -0
  45. package/dist/Image-B_VERIvH.js +111 -0
  46. package/dist/Image-hI8kIx8U.js +93 -0
  47. package/dist/Link-BVTo43Cc.js +76 -0
  48. package/dist/Link-xSrPxOLt.js +95 -0
  49. package/dist/Menu-CembLIjO.js +83 -0
  50. package/dist/Menu-D9ZjIOMg.js +73 -0
  51. package/dist/MicroApp-DI1kQwJk.js +100 -0
  52. package/dist/MicroApp-DJw57sLE.js +75 -0
  53. package/dist/NumberInput-DftAAKEs.js +84 -0
  54. package/dist/NumberInput-eOAk0-fb.js +95 -0
  55. package/dist/Panel-Bso5fv4i.js +127 -0
  56. package/dist/Panel-CwzW9iuA.js +161 -0
  57. package/dist/Radio-button-Sii5iveh.js +71 -0
  58. package/dist/Radio-button-YXsVqipQ.js +53 -0
  59. package/dist/RefComponent-Bwk_I0mK.js +79 -0
  60. package/dist/RefComponent-ZxafRVhZ.js +96 -0
  61. package/dist/RichText-CgYXXC_a.js +485 -0
  62. package/dist/RichText-DV46U7fI.js +449 -0
  63. package/dist/Row-Bb95f5DI.js +229 -0
  64. package/dist/Row-Dmd_61mR.js +202 -0
  65. package/dist/Select-Cma8JHAj.js +77 -0
  66. package/dist/Select-DqA08VYb.js +87 -0
  67. package/dist/Slider-B2_Qecjz.js +74 -0
  68. package/dist/Slider-DVY0N2YX.js +55 -0
  69. package/dist/Table-0WjrBnz-.js +159 -0
  70. package/dist/Table-dEma50kw.js +184 -0
  71. package/dist/Tabs-BDKEv1jn.js +131 -0
  72. package/dist/Tabs-Cvt3Q8vx.js +116 -0
  73. package/dist/Tag-BcZvQkE_.js +47 -0
  74. package/dist/Tag-DMZ0mu8y.js +61 -0
  75. package/dist/TextInput-KI6r9xET.js +193 -0
  76. package/dist/TextInput-hxK-HhJi.js +148 -0
  77. package/dist/TextLabel-DkV26yaL.js +102 -0
  78. package/dist/Textarea-Bzs3jSUm.js +117 -0
  79. package/dist/Textarea-CwK3SYbz.js +83 -0
  80. package/dist/Video-C4uBWCBb.js +100 -0
  81. package/dist/Video-CL1lgcvB.js +120 -0
  82. package/dist/aitchat-DjX5s7_8.js +23 -0
  83. package/dist/colorpicker-B-KETfWw.js +64 -0
  84. package/dist/colorpicker-DhB0AygJ.js +75 -0
  85. package/dist/constants-Bs_KQRi_.js +4 -0
  86. package/dist/constants-CXdpxgF2.js +4 -0
  87. package/dist/{cssMode-D82-gS78.js → cssMode-CV7QbFJv.js} +1 -1
  88. package/dist/{freemarker2-CYRLpyjt.js → freemarker2-CqQxSEZa.js} +1 -1
  89. package/dist/{handlebars-R8Efxi60.js → handlebars-a71LdN7X.js} +1 -1
  90. package/dist/{html-czhjovcp.js → html-D8UaB7IC.js} +1 -1
  91. package/dist/{htmlMode-DpyKDYYs.js → htmlMode-CqWQMFWX.js} +1 -1
  92. package/dist/iconbutton-DfnrRmmB.js +69 -0
  93. package/dist/iconbutton-DvIQHV8o.js +53 -0
  94. package/dist/{javascript-DwqkMEdb.js → javascript-D_jGqcRD.js} +1 -1
  95. package/dist/{jsonMode-Cmxxe0W9.js → jsonMode-C3-m5xts.js} +1 -1
  96. package/dist/{liquid-2spuEcBh.js → liquid-DLwYj6Te.js} +1 -1
  97. package/dist/{mdx-BjBXyEeR.js → mdx-DhYjhxkW.js} +1 -1
  98. package/dist/micro-app-entry-DiNqE6xi.js +12042 -0
  99. package/dist/micro-app.bundle.js +1 -1
  100. package/dist/micro-app.js +6 -4969
  101. package/dist/{python-DLI1ji08.js → python-B-WcGqFq.js} +1 -1
  102. package/dist/{razor-oAnIJsrL.js → razor-JGACy1mz.js} +1 -1
  103. package/dist/runtime.js +4 -2
  104. package/dist/{tsMode-D_PMsbjK.js → tsMode-lzBM1oT2.js} +1 -1
  105. package/dist/{typescript-Bu3ZbtQI.js → typescript-CuL5pdO2.js} +1 -1
  106. package/dist/{xml-CNSSkPqy.js → xml-D1tacAKD.js} +1 -1
  107. package/dist/{yaml-5RF_PGNe.js → yaml-CjPB1g7v.js} +1 -1
  108. package/package.json +1 -1
  109. package/utils/index.ts +4 -1
  110. package/utils/lazy-component-loader.ts +120 -0
  111. package/utils/register-components.ts +14 -40
  112. package/utils/render-util.ts +84 -0
  113. package/dist/micro-app-entry-DYAnCRDo.js +0 -15860
@@ -0,0 +1,202 @@
1
+ import { i as f, B as w, e as g, $ as y, r as $, A as s, s as C, b as d, n as c, o as h, a as j, c as u, d as m, t as b } from "./micro-app-entry-DiNqE6xi.js";
2
+ import "@nuralyui/grid";
3
+ const x = f`
4
+ :host {
5
+ display: block;
6
+ width: 100%;
7
+ }
8
+
9
+ .grid-row {
10
+ display: flex;
11
+ flex-flow: row wrap;
12
+ min-width: 0;
13
+ width: 100%;
14
+ }
15
+
16
+ .grid-row.no-wrap {
17
+ flex-wrap: nowrap;
18
+ }
19
+
20
+ /* Alignment */
21
+ .grid-row.align-top {
22
+ align-items: flex-start;
23
+ }
24
+
25
+ .grid-row.align-middle {
26
+ align-items: center;
27
+ }
28
+
29
+ .grid-row.align-bottom {
30
+ align-items: flex-end;
31
+ }
32
+
33
+ .grid-row.align-stretch {
34
+ align-items: stretch;
35
+ }
36
+
37
+ /* Justify */
38
+ .grid-row.justify-start {
39
+ justify-content: flex-start;
40
+ }
41
+
42
+ .grid-row.justify-end {
43
+ justify-content: flex-end;
44
+ }
45
+
46
+ .grid-row.justify-center {
47
+ justify-content: center;
48
+ }
49
+
50
+ .grid-row.justify-space-around {
51
+ justify-content: space-around;
52
+ }
53
+
54
+ .grid-row.justify-space-between {
55
+ justify-content: space-between;
56
+ }
57
+
58
+ .grid-row.justify-space-evenly {
59
+ justify-content: space-evenly;
60
+ }
61
+
62
+ .empty-message {
63
+ display: flex;
64
+ justify-content: center;
65
+ align-items: center;
66
+ width: 100%;
67
+ min-height: 100px;
68
+ border: 2px dashed #ccc;
69
+ color: #999;
70
+ font-size: 14px;
71
+ position: relative;
72
+ }
73
+ `;
74
+ var v = Object.defineProperty, R = Object.getOwnPropertyDescriptor, r = (t, e, a, o) => {
75
+ for (var i = o > 1 ? void 0 : o ? R(e, a) : e, p = t.length - 1, l; p >= 0; p--)
76
+ (l = t[p]) && (i = (o ? l(e, a, i) : l(i)) || i);
77
+ return o && i && v(e, a, i), i;
78
+ };
79
+ const _ = ["gutter", "align", "justify", "wrap"];
80
+ let n = class extends w {
81
+ constructor() {
82
+ super(...arguments), this.isViewMode = !1, this.childrenComponents = [], this.containerRef = g();
83
+ }
84
+ connectedCallback() {
85
+ super.connectedCallback(), this.updateChildrenComponents(), _.forEach((t) => this.registerCallback(t, () => this.requestUpdate()));
86
+ }
87
+ willUpdate(t) {
88
+ super.willUpdate(t), t.has("component") && this.updateChildrenComponents();
89
+ }
90
+ updateChildrenComponents() {
91
+ this.childrenComponents = this.component?.childrenIds?.map((t) => y.get()[this.component?.application_id]?.find((e) => e.uuid === t)).filter(Boolean) ?? [];
92
+ }
93
+ /**
94
+ * Parse gutter value - supports number, [h, v] array, or responsive object
95
+ */
96
+ parseGutter(t) {
97
+ return t ? typeof t == "number" || Array.isArray(t) ? t : typeof t == "string" && !isNaN(Number(t)) ? Number(t) : t : 0;
98
+ }
99
+ /**
100
+ * Get all row properties from input handlers
101
+ */
102
+ getRowProps() {
103
+ const t = this.inputHandlersValue;
104
+ return {
105
+ gutter: this.parseGutter(t?.gutter),
106
+ align: t?.align || "",
107
+ justify: t?.justify || "",
108
+ wrap: t?.wrap !== !1
109
+ };
110
+ }
111
+ /**
112
+ * Render children components
113
+ */
114
+ renderChildren() {
115
+ return this.childrenComponents.length ? $(
116
+ this.childrenComponents.map((t) => ({ ...t, item: this.item })),
117
+ this.item,
118
+ this.isViewMode,
119
+ { ...this.component, uniqueUUID: this.uniqueUUID }
120
+ ) : s;
121
+ }
122
+ /**
123
+ * Render empty state placeholder for editor mode
124
+ */
125
+ renderEmptyState() {
126
+ return d`
127
+ <div
128
+ class="empty-message"
129
+ @click="${() => C(this.component?.uuid)}"
130
+ >
131
+ Add Grid Columns (nr-col) to this row
132
+ <drag-wrapper
133
+ .where=${"inside"}
134
+ .message=${"Drop inside"}
135
+ .component=${{ ...this.component }}
136
+ .inputRef=${this.inputRef}
137
+ .isDragInitiator=${this.isDragInitiator}
138
+ >
139
+ </drag-wrapper>
140
+ </div>
141
+ `;
142
+ }
143
+ renderComponent() {
144
+ const t = this.getRowProps();
145
+ return this.isViewMode ? d`
146
+ <nr-row
147
+ ${c(this.inputRef)}
148
+ data-component-uuid=${this.component?.uuid}
149
+ data-component-name=${this.component?.name}
150
+ style=${h(this.getStyles())}
151
+ .gutter=${t.gutter}
152
+ align=${t.align || s}
153
+ justify=${t.justify || s}
154
+ ?wrap=${t.wrap}
155
+ >
156
+ ${this.renderChildren()}
157
+ </nr-row>
158
+ ` : d`
159
+ <nr-row
160
+ ${c(this.inputRef)}
161
+ ${c(this.containerRef)}
162
+ data-component-uuid=${this.component?.uuid}
163
+ data-component-name=${this.component?.name}
164
+ @click="${(e) => {
165
+ j(null), this.executeEvent("onClick", e);
166
+ }}"
167
+ style=${h({
168
+ ...this.getStyles(),
169
+ "min-height": this.childrenComponents.length ? "auto" : "100px"
170
+ })}
171
+ .gutter=${t.gutter}
172
+ align=${t.align || s}
173
+ justify=${t.justify || s}
174
+ ?wrap=${t.wrap}
175
+ >
176
+ ${this.childrenComponents.length ? this.renderChildren() : this.renderEmptyState()}
177
+ </nr-row>
178
+ `;
179
+ }
180
+ };
181
+ n.styles = x;
182
+ r([
183
+ u({ type: Object })
184
+ ], n.prototype, "component", 2);
185
+ r([
186
+ u({ type: Object })
187
+ ], n.prototype, "item", 2);
188
+ r([
189
+ u({ type: Boolean })
190
+ ], n.prototype, "isViewMode", 2);
191
+ r([
192
+ m()
193
+ ], n.prototype, "childrenComponents", 2);
194
+ r([
195
+ m()
196
+ ], n.prototype, "containerRef", 2);
197
+ n = r([
198
+ b("grid-row-block")
199
+ ], n);
200
+ export {
201
+ n as GridRow
202
+ };
@@ -0,0 +1,77 @@
1
+ import { B as c, n as d, o as h, A as a, b as $, c as b, t as v } from "./micro-app-entry-DiNqE6xi.js";
2
+ import { E as o } from "./constants-CXdpxgF2.js";
3
+ import "@nuralyui/select";
4
+ var V = Object.defineProperty, H = Object.getOwnPropertyDescriptor, p = (e, l, n, s) => {
5
+ for (var t = s > 1 ? void 0 : s ? H(l, n) : l, i = e.length - 1, r; i >= 0; i--)
6
+ (r = e[i]) && (t = (s ? r(l, n, t) : r(t)) || t);
7
+ return s && t && V(l, n, t), t;
8
+ };
9
+ let u = class extends c {
10
+ constructor() {
11
+ super();
12
+ }
13
+ connectedCallback() {
14
+ super.connectedCallback(), this.registerCallback("value", (e) => {
15
+ this.requestUpdate();
16
+ });
17
+ }
18
+ renderComponent() {
19
+ return $`
20
+ <nr-select
21
+ ${d(this.inputRef)}
22
+ style=${h({
23
+ ...this.getStyles(),
24
+ "--nuraly-select-width": this.getStyles()["--nuraly-select-width"] ?? this.getStyles().width
25
+ })}
26
+ ?multiple=${this.inputHandlersValue?.selectionMode === "multiple"}
27
+ ?searchable=${this.inputHandlersValue?.searchable ?? !1}
28
+ ?clearable=${this.inputHandlersValue?.clearable ?? !1}
29
+ ?required=${this.inputHandlersValue?.required ?? !1}
30
+ ?block=${this.inputHandlersValue?.block ?? !1}
31
+ .options=${this.inputHandlersValue?.options ?? []}
32
+ .value=${this.inputHandlersValue?.value ?? o}
33
+ .placeholder=${this.inputHandlersValue?.placeholder || "Select an option"}
34
+ .searchPlaceholder=${this.inputHandlersValue?.searchPlaceholder || "Search options..."}
35
+ .status=${this.inputHandlersValue?.state ?? a}
36
+ .size=${this.inputHandlersValue?.size ?? a}
37
+ .disabled=${this.inputHandlersValue?.disabled ?? this.inputHandlersValue.state == "disabled"}
38
+ .type=${this.inputHandlersValue?.type || "default"}
39
+ @nr-change=${(e) => {
40
+ this.executeEvent("onChange", e, {
41
+ value: e.detail.value ?? o
42
+ });
43
+ }}
44
+ @nr-focus=${(e) => {
45
+ this.executeEvent("onFocus", e);
46
+ }}
47
+ @nr-blur=${(e) => {
48
+ this.executeEvent("onBlur", e);
49
+ }}
50
+ @nr-dropdown-open=${(e) => {
51
+ this.executeEvent("onDropdownOpen", e);
52
+ }}
53
+ @nr-dropdown-close=${(e) => {
54
+ this.executeEvent("onDropdownClose", e);
55
+ }}
56
+ @nr-validation=${(e) => {
57
+ this.executeEvent("onValidation", e, {
58
+ isValid: e.detail.isValid,
59
+ message: e.detail.message
60
+ });
61
+ }}
62
+ >
63
+ <span slot="label">${this.inputHandlersValue.label ?? a}</span>
64
+ <span slot="helper-text">${this.inputHandlersValue.helper ?? a}</span>
65
+ </nr-select>
66
+ `;
67
+ }
68
+ };
69
+ p([
70
+ b({ type: Object })
71
+ ], u.prototype, "component", 2);
72
+ u = p([
73
+ v("select-block")
74
+ ], u);
75
+ export {
76
+ u as SelectBlock
77
+ };
@@ -0,0 +1,87 @@
1
+ import { nothing, html } from 'lit';
2
+ import { property, customElement } from 'lit/decorators.js';
3
+ import { styleMap } from 'lit/directives/style-map.js';
4
+ import { ae as BaseElementBlock } from './BaseElement-pS6m_x6Q.js';
5
+ import { E as EMPTY_STRING } from './constants-Bs_KQRi_.js';
6
+ import { ref } from 'lit/directives/ref.js';
7
+ import '@nuralyui/select';
8
+
9
+ var __defProp = Object.defineProperty;
10
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
11
+ var __decorateClass = (decorators, target, key, kind) => {
12
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
13
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
14
+ if (decorator = decorators[i])
15
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
16
+ if (kind && result) __defProp(target, key, result);
17
+ return result;
18
+ };
19
+ let SelectBlock = class extends BaseElementBlock {
20
+ constructor() {
21
+ super();
22
+ }
23
+ connectedCallback() {
24
+ super.connectedCallback();
25
+ this.registerCallback("value", (v) => {
26
+ this.requestUpdate();
27
+ });
28
+ }
29
+ renderComponent() {
30
+ return html`
31
+ <nr-select
32
+ ${ref(this.inputRef)}
33
+ style=${styleMap({
34
+ ...this.getStyles(),
35
+ "--nuraly-select-width": this.getStyles()["--nuraly-select-width"] ?? this.getStyles().width
36
+ })}
37
+ ?multiple=${this.inputHandlersValue?.selectionMode === "multiple"}
38
+ ?searchable=${this.inputHandlersValue?.searchable ?? false}
39
+ ?clearable=${this.inputHandlersValue?.clearable ?? false}
40
+ ?required=${this.inputHandlersValue?.required ?? false}
41
+ ?block=${this.inputHandlersValue?.block ?? false}
42
+ .options=${this.inputHandlersValue?.options ?? []}
43
+ .value=${this.inputHandlersValue?.value ?? EMPTY_STRING}
44
+ .placeholder=${this.inputHandlersValue?.placeholder || "Select an option"}
45
+ .searchPlaceholder=${this.inputHandlersValue?.searchPlaceholder || "Search options..."}
46
+ .status=${this.inputHandlersValue?.state ?? nothing}
47
+ .size=${this.inputHandlersValue?.size ?? nothing}
48
+ .disabled=${this.inputHandlersValue?.disabled ?? this.inputHandlersValue.state == "disabled"}
49
+ .type=${this.inputHandlersValue?.type || "default"}
50
+ @nr-change=${(e) => {
51
+ this.executeEvent("onChange", e, {
52
+ value: e.detail.value ?? EMPTY_STRING
53
+ });
54
+ }}
55
+ @nr-focus=${(e) => {
56
+ this.executeEvent("onFocus", e);
57
+ }}
58
+ @nr-blur=${(e) => {
59
+ this.executeEvent("onBlur", e);
60
+ }}
61
+ @nr-dropdown-open=${(e) => {
62
+ this.executeEvent("onDropdownOpen", e);
63
+ }}
64
+ @nr-dropdown-close=${(e) => {
65
+ this.executeEvent("onDropdownClose", e);
66
+ }}
67
+ @nr-validation=${(e) => {
68
+ this.executeEvent("onValidation", e, {
69
+ isValid: e.detail.isValid,
70
+ message: e.detail.message
71
+ });
72
+ }}
73
+ >
74
+ <span slot="label">${this.inputHandlersValue.label ?? nothing}</span>
75
+ <span slot="helper-text">${this.inputHandlersValue.helper ?? nothing}</span>
76
+ </nr-select>
77
+ `;
78
+ }
79
+ };
80
+ __decorateClass([
81
+ property({ type: Object })
82
+ ], SelectBlock.prototype, "component", 2);
83
+ SelectBlock = __decorateClass([
84
+ customElement("select-block")
85
+ ], SelectBlock);
86
+
87
+ export { SelectBlock };
@@ -0,0 +1,74 @@
1
+ import { html, css } from 'lit';
2
+ import { property, customElement } from 'lit/decorators.js';
3
+ import { styleMap } from 'lit/directives/style-map.js';
4
+ import { ae as BaseElementBlock } from './BaseElement-pS6m_x6Q.js';
5
+ import { ref } from 'lit/directives/ref.js';
6
+
7
+ var __defProp = Object.defineProperty;
8
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
9
+ var __decorateClass = (decorators, target, key, kind) => {
10
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
11
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
12
+ if (decorator = decorators[i])
13
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
14
+ if (kind && result) __defProp(target, key, result);
15
+ return result;
16
+ };
17
+ try {
18
+ await import('@nuralyui/slider-input');
19
+ } catch (error) {
20
+ console.warn("[@nuralyui/slider-input] Package not found or failed to load.");
21
+ }
22
+ let SliderBlock = class extends BaseElementBlock {
23
+ renderComponent() {
24
+ const sliderStyles = this.component?.style || {};
25
+ const value = this.component?.input?.value?.value ?? this.inputHandlersValue?.value ?? 0;
26
+ const min = this.component?.input?.min?.value ?? this.inputHandlersValue?.min ?? 0;
27
+ const max = this.component?.input?.max?.value ?? this.inputHandlersValue?.max ?? 100;
28
+ const step = this.component?.input?.step?.value ?? this.inputHandlersValue?.step ?? 1;
29
+ const disabled = this.component?.input?.disabled?.value ?? this.inputHandlersValue?.disabled ?? false;
30
+ const vertical = this.component?.input?.vertical?.value ?? this.inputHandlersValue?.vertical ?? false;
31
+ const showTooltip = this.component?.input?.showTooltip?.value ?? this.inputHandlersValue?.showTooltip ?? true;
32
+ const showMarks = this.component?.input?.showMarks?.value ?? this.inputHandlersValue?.showMarks ?? false;
33
+ const range = this.component?.input?.range?.value ?? this.inputHandlersValue?.range ?? false;
34
+ const marks = this.inputHandlersValue?.marks;
35
+ return html`
36
+ <nr-slider-input
37
+ ${ref(this.inputRef)}
38
+ style=${styleMap(sliderStyles)}
39
+ .value=${value}
40
+ .min=${min}
41
+ .max=${max}
42
+ .step=${step}
43
+ .marks=${marks}
44
+ ?disabled=${disabled}
45
+ ?vertical=${vertical}
46
+ ?showTooltip=${showTooltip}
47
+ ?showMarks=${showMarks}
48
+ ?range=${range}
49
+ @nr-change=${(e) => {
50
+ this.executeEvent("onChange", e, {
51
+ value: e.detail.value
52
+ });
53
+ }}
54
+ @nr-after-change=${(e) => {
55
+ this.executeEvent("onAfterChange", e, {
56
+ value: e.detail.value
57
+ });
58
+ }}
59
+ ></nr-slider-input>
60
+ `;
61
+ }
62
+ };
63
+ SliderBlock.styles = [css``];
64
+ __decorateClass([
65
+ property({ type: Object })
66
+ ], SliderBlock.prototype, "component", 2);
67
+ __decorateClass([
68
+ property({ type: Object })
69
+ ], SliderBlock.prototype, "item", 2);
70
+ SliderBlock = __decorateClass([
71
+ customElement("slider-block")
72
+ ], SliderBlock);
73
+
74
+ export { SliderBlock };
@@ -0,0 +1,55 @@
1
+ import { B as m, n as f, o as $, b as w, i as b, c as p, t as y } from "./micro-app-entry-DiNqE6xi.js";
2
+ var H = Object.defineProperty, V = Object.getOwnPropertyDescriptor, u = (s, t, a, n) => {
3
+ for (var e = n > 1 ? void 0 : n ? V(t, a) : t, l = s.length - 1, i; l >= 0; l--)
4
+ (i = s[l]) && (e = (n ? i(t, a, e) : i(e)) || e);
5
+ return n && e && H(t, a, e), e;
6
+ };
7
+ try {
8
+ await import("@nuralyui/slider-input");
9
+ } catch {
10
+ console.warn("[@nuralyui/slider-input] Package not found or failed to load.");
11
+ }
12
+ let r = class extends m {
13
+ renderComponent() {
14
+ const s = this.component?.style || {}, t = this.component?.input?.value?.value ?? this.inputHandlersValue?.value ?? 0, a = this.component?.input?.min?.value ?? this.inputHandlersValue?.min ?? 0, n = this.component?.input?.max?.value ?? this.inputHandlersValue?.max ?? 100, e = this.component?.input?.step?.value ?? this.inputHandlersValue?.step ?? 1, l = this.component?.input?.disabled?.value ?? this.inputHandlersValue?.disabled ?? !1, i = this.component?.input?.vertical?.value ?? this.inputHandlersValue?.vertical ?? !1, c = this.component?.input?.showTooltip?.value ?? this.inputHandlersValue?.showTooltip ?? !0, h = this.component?.input?.showMarks?.value ?? this.inputHandlersValue?.showMarks ?? !1, d = this.component?.input?.range?.value ?? this.inputHandlersValue?.range ?? !1, v = this.inputHandlersValue?.marks;
15
+ return w`
16
+ <nr-slider-input
17
+ ${f(this.inputRef)}
18
+ style=${$(s)}
19
+ .value=${t}
20
+ .min=${a}
21
+ .max=${n}
22
+ .step=${e}
23
+ .marks=${v}
24
+ ?disabled=${l}
25
+ ?vertical=${i}
26
+ ?showTooltip=${c}
27
+ ?showMarks=${h}
28
+ ?range=${d}
29
+ @nr-change=${(o) => {
30
+ this.executeEvent("onChange", o, {
31
+ value: o.detail.value
32
+ });
33
+ }}
34
+ @nr-after-change=${(o) => {
35
+ this.executeEvent("onAfterChange", o, {
36
+ value: o.detail.value
37
+ });
38
+ }}
39
+ ></nr-slider-input>
40
+ `;
41
+ }
42
+ };
43
+ r.styles = [b``];
44
+ u([
45
+ p({ type: Object })
46
+ ], r.prototype, "component", 2);
47
+ u([
48
+ p({ type: Object })
49
+ ], r.prototype, "item", 2);
50
+ r = u([
51
+ y("slider-block")
52
+ ], r);
53
+ export {
54
+ r as SliderBlock
55
+ };
@@ -0,0 +1,159 @@
1
+ import { B as H, n as x, o as $, A as p, b as C, i as w, c as u, d as c, t as v } from "./micro-app-entry-DiNqE6xi.js";
2
+ var O = Object.defineProperty, D = Object.getOwnPropertyDescriptor, d = (t, s, l, i) => {
3
+ for (var e = i > 1 ? void 0 : i ? D(s, l) : s, o = t.length - 1, r; o >= 0; o--)
4
+ (r = t[o]) && (e = (i ? r(s, l, e) : r(e)) || e);
5
+ return i && e && O(s, l, e), e;
6
+ };
7
+ try {
8
+ await import("@nuralyui/table");
9
+ } catch {
10
+ console.warn("[@nuralyui/table] Package not found or failed to load.");
11
+ }
12
+ let n = class extends H {
13
+ constructor() {
14
+ super(...arguments), this.headers = [
15
+ {
16
+ name: "Id",
17
+ key: "id"
18
+ },
19
+ {
20
+ name: "Status",
21
+ key: "status"
22
+ },
23
+ {
24
+ name: "Priority",
25
+ key: "priority"
26
+ },
27
+ {
28
+ name: "Title",
29
+ key: "title"
30
+ },
31
+ {
32
+ name: "Assignee",
33
+ key: "assignee"
34
+ }
35
+ ], this.rows = [
36
+ {
37
+ id: 1,
38
+ status: "Open",
39
+ priority: "Normal",
40
+ title: "Product Details Page - Variant Component (1)",
41
+ assignee: "William Jones"
42
+ },
43
+ {
44
+ id: 2,
45
+ status: "Open",
46
+ priority: "High",
47
+ title: "Product Details Page - Variant Component (2)",
48
+ assignee: "Natalia Hayward"
49
+ },
50
+ {
51
+ id: 3,
52
+ status: "Closed",
53
+ priority: "Normal",
54
+ title: "Product Details Page - Variant Component (3)",
55
+ assignee: "Jess Plant"
56
+ },
57
+ {
58
+ id: 4,
59
+ status: "Open",
60
+ priority: "Normal",
61
+ title: "Product Details Page - Variant Component (4)",
62
+ assignee: "William Jones"
63
+ },
64
+ {
65
+ id: 5,
66
+ status: "Open",
67
+ priority: "Normal",
68
+ title: "Product Details Page - Variant Component (5)",
69
+ assignee: "Kathleen Knowles"
70
+ },
71
+ {
72
+ id: 6,
73
+ status: "Open",
74
+ priority: "High",
75
+ title: "Product Details Page - Variant Component (6)",
76
+ assignee: "Mel Young"
77
+ },
78
+ {
79
+ id: 7,
80
+ status: "Closed",
81
+ priority: "Normal",
82
+ title: "Product Details Page - Variant Component (7)",
83
+ assignee: "Zahid Allison"
84
+ },
85
+ {
86
+ id: 8,
87
+ status: "Closed",
88
+ priority: "High",
89
+ title: "Product Details Page - Variant Component (8)",
90
+ assignee: "William Jones"
91
+ }
92
+ ];
93
+ }
94
+ disconnectedCallback() {
95
+ super.disconnectedCallback(), this.unsubscribe && this.unsubscribe();
96
+ }
97
+ renderComponent() {
98
+ const t = this.component?.style || {}, s = this.inputHandlersValue?.width;
99
+ this.inputHandlersValue?.height;
100
+ const l = this.inputHandlersValue?.data ? this.inputHandlersValue?.data?.headers : this.headers, i = this.inputHandlersValue?.data ? this.inputHandlersValue?.data?.rows : this.rows, e = t.size || "normal", o = this.component?.input?.selectionMode?.value || this.inputHandlersValue?.selectionMode, r = o === "multiple" ? "multiple" : o === "single" ? "single" : void 0, h = this.inputHandlersValue?.filter, m = this.inputHandlersValue?.fixedHeader ?? !1, g = this.inputHandlersValue?.loading ?? !1, y = this.inputHandlersValue?.expandable ?? !1, P = this.inputHandlersValue?.emptyText ?? "No data available", V = this.inputHandlersValue?.emptyIcon, f = this.inputHandlersValue?.expansionRenderer, b = this.inputHandlersValue?.scrollConfig;
101
+ return C`
102
+ <nr-table
103
+ ${x(this.inputRef)}
104
+ style=${$({
105
+ ...t,
106
+ width: s ? "auto" : t.width,
107
+ overflow: "auto"
108
+ })}
109
+ .headers="${l}"
110
+ .rows="${i}"
111
+ .size=${e}
112
+ .withFilter=${h === "filter"}
113
+ .expandable=${y ?? p}
114
+ .expansionRenderer=${f ?? p}
115
+ .selectionMode=${r}
116
+ .fixedHeader=${m}
117
+ .scrollConfig=${b ?? p}
118
+ .loading=${g}
119
+ .emptyText=${P}
120
+ .emptyIcon=${V ?? p}
121
+ @onPaginate=${(a) => {
122
+ this.executeEvent("onPaginate", a);
123
+ }}
124
+ @nr-select=${(a) => {
125
+ this.executeEvent("onSelect", a);
126
+ }}
127
+ @onSearch=${(a) => {
128
+ this.executeEvent("onSearch", a);
129
+ }}
130
+ @onSort=${(a) => {
131
+ this.executeEvent("onSort", a);
132
+ }}
133
+ >
134
+ </nr-table>
135
+
136
+ `;
137
+ }
138
+ };
139
+ n.styles = [
140
+ w``
141
+ ];
142
+ d([
143
+ u({ type: Object })
144
+ ], n.prototype, "component", 2);
145
+ d([
146
+ u({ type: Object })
147
+ ], n.prototype, "item", 2);
148
+ d([
149
+ c()
150
+ ], n.prototype, "headers", 2);
151
+ d([
152
+ c()
153
+ ], n.prototype, "rows", 2);
154
+ n = d([
155
+ v("table-block")
156
+ ], n);
157
+ export {
158
+ n as TextInputBlock
159
+ };