@solostylist/ui-kit 1.0.227 → 1.0.229
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/{FormControl-BbzvApma.js → FormControl-DsRIRfTs.js} +204 -177
- package/dist/{MenuItem-CwAhn4sd.js → MenuItem-IOMcBScJ.js} +2 -2
- package/dist/{MenuList-5C2nFAWS.js → MenuList-vtqACjea.js} +1 -1
- package/dist/{Modal-Cu5Cgh-q.js → Modal-CLdC2-Th.js} +372 -395
- package/dist/Popover-ZneFWo2r.js +333 -0
- package/dist/{checkbox-B5GlJYcB.js → checkbox-DC-OoGvh.js} +1 -1
- package/dist/s-chat-message/index.js +1 -1
- package/dist/s-chat-message/s-chat-message.js +1 -1
- package/dist/{s-chat-message-B9JOBvzP.js → s-chat-message-C-d9amiC.js} +2 -2
- package/dist/s-code-block/index.js +1 -1
- package/dist/s-code-block/s-code-block.js +1 -1
- package/dist/{s-code-block-B5k-1Acd.js → s-code-block-DEojINTt.js} +16 -11
- package/dist/s-comment-message/index.js +1 -1
- package/dist/s-comment-message/s-comment-message.js +1 -1
- package/dist/{s-comment-message-BPE5a6p6.js → s-comment-message-Dum0P6de.js} +2 -2
- package/dist/s-data-table/index.js +1 -1
- package/dist/s-data-table/s-data-table.d.ts +1 -5
- package/dist/s-data-table/s-data-table.js +1 -1
- package/dist/{s-data-table-D-esZw_W.js → s-data-table-DfGYIIvn.js} +202 -172
- package/dist/s-date-picker/index.js +1 -1
- package/dist/s-date-picker/picker-action-bar.d.ts +3 -7
- package/dist/s-date-picker/picker-action-bar.js +33 -19
- package/dist/s-date-picker/s-date-picker.js +1 -1
- package/dist/{s-date-picker-CdH1pta6.js → s-date-picker-C06rlE6_.js} +1 -1
- package/dist/s-datetime-picker/index.js +1 -1
- package/dist/s-datetime-picker/s-datetime-picker.js +1 -1
- package/dist/{s-datetime-picker-BHkWSJKj.js → s-datetime-picker-DnIK-QnQ.js} +24 -24
- package/dist/s-error-layout/s-error-layout.d.ts +2 -2
- package/dist/s-error-layout/s-error-layout.js +1 -1
- package/dist/s-language-switcher/index.js +1 -1
- package/dist/s-language-switcher/s-language-switcher.d.ts +2 -5
- package/dist/s-language-switcher/s-language-switcher.js +1 -1
- package/dist/s-language-switcher-B96dUknj.js +192 -0
- package/dist/s-link/s-link.d.ts +2 -2
- package/dist/s-link/s-link.js +8 -5
- package/dist/s-moving-border/s-moving-border.d.ts +6 -9
- package/dist/s-moving-border/s-moving-border.js +73 -81
- package/dist/s-pagination/s-pagination.js +2 -2
- package/dist/s-review/index.js +1 -1
- package/dist/s-review/s-review.js +1 -1
- package/dist/{s-review-CRnakHRo.js → s-review-CvTVBxTZ.js} +3 -3
- package/dist/s-skeleton/index.d.ts +1 -1
- package/dist/s-skeleton/s-skeleton.d.ts +25 -9
- package/dist/s-skeleton/s-skeleton.js +59 -63
- package/dist/s-text-editor/index.js +1 -1
- package/dist/s-text-editor/s-text-editor-toolbar.js +1 -1
- package/dist/s-text-editor/s-text-editor.js +1 -1
- package/dist/{s-text-editor-toolbar-BEFVwZ-B.js → s-text-editor-toolbar-ChtNCg2A.js} +900 -736
- package/dist/s-theme-demo/index.js +1 -1
- package/dist/s-theme-demo/s-theme-demo.js +1 -1
- package/dist/s-theme-demo-Bnv7lPIh.js +867 -0
- package/dist/theme/components/checkbox.d.ts +0 -9
- package/dist/theme/components/checkbox.js +1 -1
- package/dist/theme/components/components.js +1 -1
- package/dist/theme/components/month-calendar.d.ts +2 -0
- package/dist/theme/components/month-calendar.js +3 -1
- package/dist/theme/components/pickers-calendar-header.d.ts +14 -1
- package/dist/theme/components/pickers-calendar-header.js +5 -2
- package/dist/{useMobilePicker-Dw1IxoE6.js → useMobilePicker-CQA6fYLQ.js} +384 -384
- package/package.json +1 -1
- package/dist/Menu-Ct_sL_Dg.js +0 -497
- package/dist/s-language-switcher-UgSBC_n_.js +0 -199
- package/dist/s-theme-demo-Fktc-UlY.js +0 -857
|
@@ -91,68 +91,68 @@ var ee = (e) => {
|
|
|
91
91
|
default: !!a,
|
|
92
92
|
name: "SwitchBase",
|
|
93
93
|
state: "checked"
|
|
94
|
-
}), M = v(),
|
|
94
|
+
}), M = v(), re = (e) => {
|
|
95
95
|
h && h(e), M && M.onFocus && M.onFocus(e);
|
|
96
|
-
},
|
|
96
|
+
}, ie = (e) => {
|
|
97
97
|
f && f(e), M && M.onBlur && M.onBlur(e);
|
|
98
|
-
},
|
|
98
|
+
}, ae = (e) => {
|
|
99
99
|
if (e.nativeEvent.defaultPrevented || _) return;
|
|
100
100
|
let t = e.target.checked;
|
|
101
101
|
j(t), m && m(e, t);
|
|
102
|
-
},
|
|
103
|
-
M &&
|
|
104
|
-
let
|
|
102
|
+
}, N = o;
|
|
103
|
+
M && N === void 0 && (N = M.disabled);
|
|
104
|
+
let P = x === "checkbox" || x === "radio", F = {
|
|
105
105
|
...e,
|
|
106
106
|
checked: A,
|
|
107
|
-
disabled:
|
|
107
|
+
disabled: N,
|
|
108
108
|
disableFocusRipple: s,
|
|
109
109
|
edge: c
|
|
110
|
-
},
|
|
110
|
+
}, I = ee(F), L = {
|
|
111
111
|
slots: C,
|
|
112
112
|
slotProps: E
|
|
113
|
-
}, [
|
|
113
|
+
}, [R, z] = p("root", {
|
|
114
114
|
ref: t,
|
|
115
115
|
elementType: te,
|
|
116
|
-
className:
|
|
116
|
+
className: I.root,
|
|
117
117
|
shouldForwardComponentProp: !0,
|
|
118
118
|
externalForwardedProps: {
|
|
119
|
-
...
|
|
119
|
+
...L,
|
|
120
120
|
component: "span",
|
|
121
121
|
...k
|
|
122
122
|
},
|
|
123
123
|
getSlotProps: (e) => ({
|
|
124
124
|
...e,
|
|
125
125
|
onFocus: (t) => {
|
|
126
|
-
e.onFocus?.(t),
|
|
126
|
+
e.onFocus?.(t), re(t);
|
|
127
127
|
},
|
|
128
128
|
onBlur: (t) => {
|
|
129
|
-
e.onBlur?.(t),
|
|
129
|
+
e.onBlur?.(t), ie(t);
|
|
130
130
|
}
|
|
131
131
|
}),
|
|
132
|
-
ownerState:
|
|
132
|
+
ownerState: F,
|
|
133
133
|
additionalProps: {
|
|
134
134
|
centerRipple: !0,
|
|
135
135
|
focusRipple: !s,
|
|
136
136
|
role: void 0,
|
|
137
137
|
tabIndex: null
|
|
138
138
|
}
|
|
139
|
-
}), [
|
|
139
|
+
}), [B, V] = p("input", {
|
|
140
140
|
elementType: ne,
|
|
141
|
-
className:
|
|
142
|
-
externalForwardedProps:
|
|
141
|
+
className: I.input,
|
|
142
|
+
externalForwardedProps: L,
|
|
143
143
|
getSlotProps: (e) => ({
|
|
144
144
|
...e,
|
|
145
145
|
onChange: (t) => {
|
|
146
|
-
e.onChange?.(t),
|
|
146
|
+
e.onChange?.(t), ae(t);
|
|
147
147
|
}
|
|
148
148
|
}),
|
|
149
|
-
ownerState:
|
|
149
|
+
ownerState: F,
|
|
150
150
|
additionalProps: {
|
|
151
151
|
autoFocus: n,
|
|
152
152
|
checked: r,
|
|
153
153
|
defaultChecked: a,
|
|
154
|
-
disabled:
|
|
155
|
-
id:
|
|
154
|
+
disabled: N,
|
|
155
|
+
id: P ? u : void 0,
|
|
156
156
|
name: d,
|
|
157
157
|
readOnly: _,
|
|
158
158
|
required: y,
|
|
@@ -161,9 +161,9 @@ var ee = (e) => {
|
|
|
161
161
|
...x === "checkbox" && S === void 0 ? {} : { value: S }
|
|
162
162
|
}
|
|
163
163
|
});
|
|
164
|
-
return /* @__PURE__ */ T(
|
|
165
|
-
...
|
|
166
|
-
children: [/* @__PURE__ */ w(
|
|
164
|
+
return /* @__PURE__ */ T(R, {
|
|
165
|
+
...z,
|
|
166
|
+
children: [/* @__PURE__ */ w(B, { ...V }), A ? i : l]
|
|
167
167
|
});
|
|
168
168
|
});
|
|
169
169
|
process.env.NODE_ENV !== "production" && (O.propTypes = {
|
|
@@ -203,7 +203,7 @@ process.env.NODE_ENV !== "production" && (O.propTypes = {
|
|
|
203
203
|
});
|
|
204
204
|
//#endregion
|
|
205
205
|
//#region ../../node_modules/@mui/icons-material/ArrowDownward.mjs
|
|
206
|
-
var k = h(/* @__PURE__ */ w("path", { d: "m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z" }), "ArrowDownward"), A = h(/* @__PURE__ */ w("path", { d: "M16 17.01V10h-2v7.01h-3L15 21l4-3.99zM9 3 5 6.99h3V14h2V6.99h3z" }), "SwapVert"), j = h(/* @__PURE__ */ w("path", { d: "M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" }), "CheckBoxOutlineBlank"), M = h(/* @__PURE__ */ w("path", { d: "M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" }), "CheckBox"),
|
|
206
|
+
var k = h(/* @__PURE__ */ w("path", { d: "m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z" }), "ArrowDownward"), A = h(/* @__PURE__ */ w("path", { d: "M16 17.01V10h-2v7.01h-3L15 21l4-3.99zM9 3 5 6.99h3V14h2V6.99h3z" }), "SwapVert"), j = h(/* @__PURE__ */ w("path", { d: "M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" }), "CheckBoxOutlineBlank"), M = h(/* @__PURE__ */ w("path", { d: "M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" }), "CheckBox"), re = h(/* @__PURE__ */ w("path", { d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z" }), "IndeterminateCheckBox"), ie = (e) => {
|
|
207
207
|
let { classes: t, indeterminate: i, color: a, size: o } = e, s = r({ root: [
|
|
208
208
|
"root",
|
|
209
209
|
i && "indeterminate",
|
|
@@ -214,7 +214,7 @@ var k = h(/* @__PURE__ */ w("path", { d: "m20 12-1.41-1.41L13 16.17V4h-2v12.17l-
|
|
|
214
214
|
...t,
|
|
215
215
|
...s
|
|
216
216
|
};
|
|
217
|
-
},
|
|
217
|
+
}, ae = d(O, {
|
|
218
218
|
shouldForwardProp: (e) => u(e) || e === "classes",
|
|
219
219
|
name: "MuiCheckbox",
|
|
220
220
|
slot: "Root",
|
|
@@ -256,19 +256,19 @@ var k = h(/* @__PURE__ */ w("path", { d: "m20 12-1.41-1.41L13 16.17V4h-2v12.17l-
|
|
|
256
256
|
style: { "&:hover": { "@media (hover: none)": { backgroundColor: "transparent" } } }
|
|
257
257
|
}
|
|
258
258
|
]
|
|
259
|
-
}))),
|
|
259
|
+
}))), N = /* @__PURE__ */ w(M, {}), P = /* @__PURE__ */ w(j, {}), F = /* @__PURE__ */ w(re, {}), I = /* @__PURE__ */ C.forwardRef(function(e, t) {
|
|
260
260
|
let n = i({
|
|
261
261
|
props: e,
|
|
262
262
|
name: "MuiCheckbox"
|
|
263
|
-
}), { checkedIcon: r =
|
|
263
|
+
}), { checkedIcon: r = N, color: a = "primary", icon: s = P, indeterminate: c = !1, indeterminateIcon: l = F, size: u = "medium", disableRipple: d = !1, className: f, slots: m = {}, slotProps: h = {}, ...g } = n, v = c ? l : s, y = c ? l : r, b = {
|
|
264
264
|
...n,
|
|
265
265
|
disableRipple: d,
|
|
266
266
|
color: a,
|
|
267
267
|
indeterminate: c,
|
|
268
268
|
size: u
|
|
269
|
-
}, x =
|
|
269
|
+
}, x = ie(b), S = h.input, [T, E] = p("root", {
|
|
270
270
|
ref: t,
|
|
271
|
-
elementType:
|
|
271
|
+
elementType: ae,
|
|
272
272
|
className: o(x.root, f),
|
|
273
273
|
shouldForwardComponentProp: !0,
|
|
274
274
|
externalForwardedProps: {
|
|
@@ -294,7 +294,7 @@ var k = h(/* @__PURE__ */ w("path", { d: "m20 12-1.41-1.41L13 16.17V4h-2v12.17l-
|
|
|
294
294
|
classes: x
|
|
295
295
|
});
|
|
296
296
|
});
|
|
297
|
-
process.env.NODE_ENV !== "production" && (
|
|
297
|
+
process.env.NODE_ENV !== "production" && (I.propTypes = {
|
|
298
298
|
checked: E.default.bool,
|
|
299
299
|
checkedIcon: E.default.node,
|
|
300
300
|
classes: E.default.object,
|
|
@@ -339,20 +339,20 @@ process.env.NODE_ENV !== "production" && (R.propTypes = {
|
|
|
339
339
|
});
|
|
340
340
|
//#endregion
|
|
341
341
|
//#region ../../node_modules/@mui/material/Table/TableContext.mjs
|
|
342
|
-
var
|
|
343
|
-
process.env.NODE_ENV !== "production" && (
|
|
342
|
+
var L = /* @__PURE__ */ C.createContext();
|
|
343
|
+
process.env.NODE_ENV !== "production" && (L.displayName = "TableContext");
|
|
344
344
|
//#endregion
|
|
345
345
|
//#region ../../node_modules/@mui/material/Table/tableClasses.mjs
|
|
346
|
-
function
|
|
346
|
+
function R(e) {
|
|
347
347
|
return s("MuiTable", e);
|
|
348
348
|
}
|
|
349
349
|
l("MuiTable", ["root", "stickyHeader"]);
|
|
350
350
|
//#endregion
|
|
351
351
|
//#region ../../node_modules/@mui/material/Table/Table.mjs
|
|
352
|
-
var
|
|
352
|
+
var z = (e) => {
|
|
353
353
|
let { classes: t, stickyHeader: n } = e;
|
|
354
|
-
return r({ root: ["root", n && "stickyHeader"] },
|
|
355
|
-
},
|
|
354
|
+
return r({ root: ["root", n && "stickyHeader"] }, R, t);
|
|
355
|
+
}, B = d("table", {
|
|
356
356
|
name: "MuiTable",
|
|
357
357
|
slot: "Root",
|
|
358
358
|
overridesResolver: (e, t) => {
|
|
@@ -375,17 +375,17 @@ var V = (e) => {
|
|
|
375
375
|
props: ({ ownerState: e }) => e.stickyHeader,
|
|
376
376
|
style: { borderCollapse: "separate" }
|
|
377
377
|
}]
|
|
378
|
-
}))),
|
|
378
|
+
}))), V = "table", H = /* @__PURE__ */ C.forwardRef(function(e, t) {
|
|
379
379
|
let n = i({
|
|
380
380
|
props: e,
|
|
381
381
|
name: "MuiTable"
|
|
382
|
-
}), { className: r, component: a =
|
|
382
|
+
}), { className: r, component: a = V, padding: s = "normal", size: c = "medium", stickyHeader: l = !1, ...u } = n, d = {
|
|
383
383
|
...n,
|
|
384
384
|
component: a,
|
|
385
385
|
padding: s,
|
|
386
386
|
size: c,
|
|
387
387
|
stickyHeader: l
|
|
388
|
-
}, f =
|
|
388
|
+
}, f = z(d), p = C.useMemo(() => ({
|
|
389
389
|
padding: s,
|
|
390
390
|
size: c,
|
|
391
391
|
stickyHeader: l
|
|
@@ -394,11 +394,11 @@ var V = (e) => {
|
|
|
394
394
|
c,
|
|
395
395
|
l
|
|
396
396
|
]);
|
|
397
|
-
return /* @__PURE__ */ w(
|
|
397
|
+
return /* @__PURE__ */ w(L.Provider, {
|
|
398
398
|
value: p,
|
|
399
|
-
children: /* @__PURE__ */ w(
|
|
399
|
+
children: /* @__PURE__ */ w(B, {
|
|
400
400
|
as: a,
|
|
401
|
-
role: a ===
|
|
401
|
+
role: a === V ? null : "table",
|
|
402
402
|
ref: t,
|
|
403
403
|
className: o(f.root, r),
|
|
404
404
|
ownerState: d,
|
|
@@ -406,7 +406,7 @@ var V = (e) => {
|
|
|
406
406
|
})
|
|
407
407
|
});
|
|
408
408
|
});
|
|
409
|
-
process.env.NODE_ENV !== "production" && (
|
|
409
|
+
process.env.NODE_ENV !== "production" && (H.propTypes = {
|
|
410
410
|
children: E.default.node,
|
|
411
411
|
classes: E.default.object,
|
|
412
412
|
className: E.default.string,
|
|
@@ -430,43 +430,43 @@ process.env.NODE_ENV !== "production" && (W.propTypes = {
|
|
|
430
430
|
});
|
|
431
431
|
//#endregion
|
|
432
432
|
//#region ../../node_modules/@mui/material/Table/Tablelvl2Context.mjs
|
|
433
|
-
var
|
|
434
|
-
process.env.NODE_ENV !== "production" && (
|
|
433
|
+
var U = /* @__PURE__ */ C.createContext();
|
|
434
|
+
process.env.NODE_ENV !== "production" && (U.displayName = "Tablelvl2Context");
|
|
435
435
|
//#endregion
|
|
436
436
|
//#region ../../node_modules/@mui/material/TableBody/tableBodyClasses.mjs
|
|
437
|
-
function
|
|
437
|
+
function oe(e) {
|
|
438
438
|
return s("MuiTableBody", e);
|
|
439
439
|
}
|
|
440
440
|
l("MuiTableBody", ["root"]);
|
|
441
441
|
//#endregion
|
|
442
442
|
//#region ../../node_modules/@mui/material/TableBody/TableBody.mjs
|
|
443
|
-
var
|
|
443
|
+
var se = (e) => {
|
|
444
444
|
let { classes: t } = e;
|
|
445
|
-
return r({ root: ["root"] },
|
|
446
|
-
},
|
|
445
|
+
return r({ root: ["root"] }, oe, t);
|
|
446
|
+
}, ce = d("tbody", {
|
|
447
447
|
name: "MuiTableBody",
|
|
448
448
|
slot: "Root"
|
|
449
|
-
})({ display: "table-row-group" }),
|
|
449
|
+
})({ display: "table-row-group" }), le = { variant: "body" }, W = "tbody", G = /* @__PURE__ */ C.forwardRef(function(e, t) {
|
|
450
450
|
let n = i({
|
|
451
451
|
props: e,
|
|
452
452
|
name: "MuiTableBody"
|
|
453
|
-
}), { className: r, component: a =
|
|
453
|
+
}), { className: r, component: a = W, ...s } = n, c = {
|
|
454
454
|
...n,
|
|
455
455
|
component: a
|
|
456
|
-
}, l =
|
|
457
|
-
return /* @__PURE__ */ w(
|
|
458
|
-
value:
|
|
459
|
-
children: /* @__PURE__ */ w(
|
|
456
|
+
}, l = se(c);
|
|
457
|
+
return /* @__PURE__ */ w(U.Provider, {
|
|
458
|
+
value: le,
|
|
459
|
+
children: /* @__PURE__ */ w(ce, {
|
|
460
460
|
className: o(l.root, r),
|
|
461
461
|
as: a,
|
|
462
462
|
ref: t,
|
|
463
|
-
role: a ===
|
|
463
|
+
role: a === W ? null : "rowgroup",
|
|
464
464
|
ownerState: c,
|
|
465
465
|
...s
|
|
466
466
|
})
|
|
467
467
|
});
|
|
468
468
|
});
|
|
469
|
-
process.env.NODE_ENV !== "production" && (
|
|
469
|
+
process.env.NODE_ENV !== "production" && (G.propTypes = {
|
|
470
470
|
children: E.default.node,
|
|
471
471
|
classes: E.default.object,
|
|
472
472
|
className: E.default.string,
|
|
@@ -483,10 +483,10 @@ process.env.NODE_ENV !== "production" && (K.propTypes = {
|
|
|
483
483
|
});
|
|
484
484
|
//#endregion
|
|
485
485
|
//#region ../../node_modules/@mui/material/TableCell/tableCellClasses.mjs
|
|
486
|
-
function
|
|
486
|
+
function ue(e) {
|
|
487
487
|
return s("MuiTableCell", e);
|
|
488
488
|
}
|
|
489
|
-
var
|
|
489
|
+
var de = l("MuiTableCell", [
|
|
490
490
|
"root",
|
|
491
491
|
"head",
|
|
492
492
|
"body",
|
|
@@ -500,7 +500,7 @@ var ue = l("MuiTableCell", [
|
|
|
500
500
|
"alignRight",
|
|
501
501
|
"alignJustify",
|
|
502
502
|
"stickyHeader"
|
|
503
|
-
]),
|
|
503
|
+
]), fe = (e) => {
|
|
504
504
|
let { classes: t, variant: i, align: a, padding: o, size: s, stickyHeader: c } = e;
|
|
505
505
|
return r({ root: [
|
|
506
506
|
"root",
|
|
@@ -509,8 +509,8 @@ var ue = l("MuiTableCell", [
|
|
|
509
509
|
a !== "inherit" && `align${n(a)}`,
|
|
510
510
|
o !== "normal" && `padding${n(o)}`,
|
|
511
511
|
`size${n(s)}`
|
|
512
|
-
] },
|
|
513
|
-
},
|
|
512
|
+
] }, ue, t);
|
|
513
|
+
}, pe = d("td", {
|
|
514
514
|
name: "MuiTableCell",
|
|
515
515
|
slot: "Root",
|
|
516
516
|
overridesResolver: (e, t) => {
|
|
@@ -557,7 +557,7 @@ var ue = l("MuiTableCell", [
|
|
|
557
557
|
props: { size: "small" },
|
|
558
558
|
style: {
|
|
559
559
|
padding: "6px 16px",
|
|
560
|
-
[`&.${
|
|
560
|
+
[`&.${de.paddingCheckbox}`]: {
|
|
561
561
|
width: 24,
|
|
562
562
|
padding: "0 12px 0 16px",
|
|
563
563
|
"& > *": { padding: 0 }
|
|
@@ -604,11 +604,11 @@ var ue = l("MuiTableCell", [
|
|
|
604
604
|
}
|
|
605
605
|
}
|
|
606
606
|
]
|
|
607
|
-
}))),
|
|
607
|
+
}))), K = /* @__PURE__ */ C.forwardRef(function(e, t) {
|
|
608
608
|
let n = i({
|
|
609
609
|
props: e,
|
|
610
610
|
name: "MuiTableCell"
|
|
611
|
-
}), { align: r = "inherit", className: a, component: s, padding: c, scope: l, size: u, sortDirection: d, variant: f, ...p } = n, m = C.useContext(
|
|
611
|
+
}), { align: r = "inherit", className: a, component: s, padding: c, scope: l, size: u, sortDirection: d, variant: f, ...p } = n, m = C.useContext(L), h = C.useContext(U), g = h && h.variant === "head", _;
|
|
612
612
|
_ = s || (g ? "th" : "td");
|
|
613
613
|
let v = l;
|
|
614
614
|
_ === "td" ? v = void 0 : !v && g && (v = "col");
|
|
@@ -621,8 +621,8 @@ var ue = l("MuiTableCell", [
|
|
|
621
621
|
sortDirection: d,
|
|
622
622
|
stickyHeader: y === "head" && m && m.stickyHeader,
|
|
623
623
|
variant: y
|
|
624
|
-
}, x =
|
|
625
|
-
return d && (S = d === "asc" ? "ascending" : "descending"), /* @__PURE__ */ w(
|
|
624
|
+
}, x = fe(b), S = null;
|
|
625
|
+
return d && (S = d === "asc" ? "ascending" : "descending"), /* @__PURE__ */ w(pe, {
|
|
626
626
|
as: _,
|
|
627
627
|
ref: t,
|
|
628
628
|
className: o(x.root, a),
|
|
@@ -632,7 +632,7 @@ var ue = l("MuiTableCell", [
|
|
|
632
632
|
...p
|
|
633
633
|
});
|
|
634
634
|
});
|
|
635
|
-
process.env.NODE_ENV !== "production" && (
|
|
635
|
+
process.env.NODE_ENV !== "production" && (K.propTypes = {
|
|
636
636
|
align: E.default.oneOf([
|
|
637
637
|
"center",
|
|
638
638
|
"inherit",
|
|
@@ -673,39 +673,39 @@ process.env.NODE_ENV !== "production" && (q.propTypes = {
|
|
|
673
673
|
});
|
|
674
674
|
//#endregion
|
|
675
675
|
//#region ../../node_modules/@mui/material/TableHead/tableHeadClasses.mjs
|
|
676
|
-
function
|
|
676
|
+
function me(e) {
|
|
677
677
|
return s("MuiTableHead", e);
|
|
678
678
|
}
|
|
679
679
|
l("MuiTableHead", ["root"]);
|
|
680
680
|
//#endregion
|
|
681
681
|
//#region ../../node_modules/@mui/material/TableHead/TableHead.mjs
|
|
682
|
-
var
|
|
682
|
+
var he = (e) => {
|
|
683
683
|
let { classes: t } = e;
|
|
684
|
-
return r({ root: ["root"] },
|
|
685
|
-
},
|
|
684
|
+
return r({ root: ["root"] }, me, t);
|
|
685
|
+
}, ge = d("thead", {
|
|
686
686
|
name: "MuiTableHead",
|
|
687
687
|
slot: "Root"
|
|
688
|
-
})({ display: "table-header-group" }),
|
|
688
|
+
})({ display: "table-header-group" }), _e = { variant: "head" }, q = "thead", J = /* @__PURE__ */ C.forwardRef(function(e, t) {
|
|
689
689
|
let n = i({
|
|
690
690
|
props: e,
|
|
691
691
|
name: "MuiTableHead"
|
|
692
|
-
}), { className: r, component: a =
|
|
692
|
+
}), { className: r, component: a = q, ...s } = n, c = {
|
|
693
693
|
...n,
|
|
694
694
|
component: a
|
|
695
|
-
}, l =
|
|
696
|
-
return /* @__PURE__ */ w(
|
|
697
|
-
value:
|
|
698
|
-
children: /* @__PURE__ */ w(
|
|
695
|
+
}, l = he(c);
|
|
696
|
+
return /* @__PURE__ */ w(U.Provider, {
|
|
697
|
+
value: _e,
|
|
698
|
+
children: /* @__PURE__ */ w(ge, {
|
|
699
699
|
as: a,
|
|
700
700
|
className: o(l.root, r),
|
|
701
701
|
ref: t,
|
|
702
|
-
role: a ===
|
|
702
|
+
role: a === q ? null : "rowgroup",
|
|
703
703
|
ownerState: c,
|
|
704
704
|
...s
|
|
705
705
|
})
|
|
706
706
|
});
|
|
707
707
|
});
|
|
708
|
-
process.env.NODE_ENV !== "production" && (
|
|
708
|
+
process.env.NODE_ENV !== "production" && (J.propTypes = {
|
|
709
709
|
children: E.default.node,
|
|
710
710
|
classes: E.default.object,
|
|
711
711
|
className: E.default.string,
|
|
@@ -722,16 +722,16 @@ process.env.NODE_ENV !== "production" && (Y.propTypes = {
|
|
|
722
722
|
});
|
|
723
723
|
//#endregion
|
|
724
724
|
//#region ../../node_modules/@mui/material/TableRow/tableRowClasses.mjs
|
|
725
|
-
function
|
|
725
|
+
function ve(e) {
|
|
726
726
|
return s("MuiTableRow", e);
|
|
727
727
|
}
|
|
728
|
-
var
|
|
728
|
+
var Y = l("MuiTableRow", [
|
|
729
729
|
"root",
|
|
730
730
|
"selected",
|
|
731
731
|
"hover",
|
|
732
732
|
"head",
|
|
733
733
|
"footer"
|
|
734
|
-
]),
|
|
734
|
+
]), ye = (e) => {
|
|
735
735
|
let { classes: t, selected: n, hover: i, head: a, footer: o } = e;
|
|
736
736
|
return r({ root: [
|
|
737
737
|
"root",
|
|
@@ -739,8 +739,8 @@ var X = l("MuiTableRow", [
|
|
|
739
739
|
i && "hover",
|
|
740
740
|
a && "head",
|
|
741
741
|
o && "footer"
|
|
742
|
-
] },
|
|
743
|
-
},
|
|
742
|
+
] }, ve, t);
|
|
743
|
+
}, be = d("tr", {
|
|
744
744
|
name: "MuiTableRow",
|
|
745
745
|
slot: "Root",
|
|
746
746
|
overridesResolver: (e, t) => {
|
|
@@ -756,16 +756,16 @@ var X = l("MuiTableRow", [
|
|
|
756
756
|
display: "table-row",
|
|
757
757
|
verticalAlign: "middle",
|
|
758
758
|
outline: 0,
|
|
759
|
-
[`&.${
|
|
760
|
-
[`&.${
|
|
759
|
+
[`&.${Y.hover}:hover`]: { backgroundColor: (e.vars || e).palette.action.hover },
|
|
760
|
+
[`&.${Y.selected}`]: {
|
|
761
761
|
backgroundColor: e.alpha((e.vars || e).palette.primary.main, (e.vars || e).palette.action.selectedOpacity),
|
|
762
762
|
"&:hover": { backgroundColor: e.alpha((e.vars || e).palette.primary.main, `${(e.vars || e).palette.action.selectedOpacity} + ${(e.vars || e).palette.action.hoverOpacity}`) }
|
|
763
763
|
}
|
|
764
|
-
}))),
|
|
764
|
+
}))), X = "tr", Z = /* @__PURE__ */ C.forwardRef(function(e, t) {
|
|
765
765
|
let n = i({
|
|
766
766
|
props: e,
|
|
767
767
|
name: "MuiTableRow"
|
|
768
|
-
}), { className: r, component: a =
|
|
768
|
+
}), { className: r, component: a = X, hover: s = !1, selected: c = !1, ...l } = n, u = C.useContext(U), d = {
|
|
769
769
|
...n,
|
|
770
770
|
component: a,
|
|
771
771
|
hover: s,
|
|
@@ -773,16 +773,16 @@ var X = l("MuiTableRow", [
|
|
|
773
773
|
head: u && u.variant === "head",
|
|
774
774
|
footer: u && u.variant === "footer"
|
|
775
775
|
};
|
|
776
|
-
return /* @__PURE__ */ w(
|
|
776
|
+
return /* @__PURE__ */ w(be, {
|
|
777
777
|
as: a,
|
|
778
778
|
ref: t,
|
|
779
|
-
className: o(
|
|
780
|
-
role: a ===
|
|
779
|
+
className: o(ye(d).root, r),
|
|
780
|
+
role: a === X ? null : "row",
|
|
781
781
|
ownerState: d,
|
|
782
782
|
...l
|
|
783
783
|
});
|
|
784
784
|
});
|
|
785
|
-
process.env.NODE_ENV !== "production" && (
|
|
785
|
+
process.env.NODE_ENV !== "production" && (Z.propTypes = {
|
|
786
786
|
children: E.default.node,
|
|
787
787
|
classes: E.default.object,
|
|
788
788
|
className: E.default.string,
|
|
@@ -801,115 +801,145 @@ process.env.NODE_ENV !== "production" && (Q.propTypes = {
|
|
|
801
801
|
});
|
|
802
802
|
//#endregion
|
|
803
803
|
//#region lib/s-data-table/s-data-table.tsx
|
|
804
|
-
|
|
804
|
+
var xe = {
|
|
805
|
+
width: "40px",
|
|
806
|
+
minWidth: "40px",
|
|
807
|
+
maxWidth: "40px",
|
|
808
|
+
boxSizing: "content-box",
|
|
809
|
+
p: 2
|
|
810
|
+
}, Q = {
|
|
811
|
+
width: "40px",
|
|
812
|
+
display: "flex",
|
|
813
|
+
alignItems: "center",
|
|
814
|
+
justifyContent: "center"
|
|
815
|
+
}, Se = {
|
|
816
|
+
width: "20px",
|
|
817
|
+
height: "20px",
|
|
818
|
+
m: 0,
|
|
819
|
+
p: 0
|
|
820
|
+
}, Ce = { height: "48px" };
|
|
821
|
+
function we(e) {
|
|
805
822
|
return e.sortKey ?? e.field ?? e.name;
|
|
806
823
|
}
|
|
807
|
-
function
|
|
824
|
+
function Te(e, t, n) {
|
|
808
825
|
return e.formatter ? e.formatter(t, n) : e.field ? t[e.field] : null;
|
|
809
826
|
}
|
|
810
827
|
var $ = ({ columns: e, hideHead: t, hover: n, onClick: r, onDeselectAll: i, onDeselectOne: a, onSelectOne: o, onSelectAll: s, onSort: l, rows: u, selectable: d, selected: f, sortBy: p, sortDirection: m, uniqueRowId: h, ...g }) => {
|
|
811
828
|
let _ = (f?.size ?? 0) > 0 && (f?.size ?? 0) < u.length, v = u.length > 0 && f?.size === u.length, b = (e, t) => `${String(e.field ?? e.name ?? "column")}-${t}`, x = (e) => {
|
|
812
|
-
let t =
|
|
829
|
+
let t = we(e);
|
|
813
830
|
l?.(t, p === t && m === "asc" ? "desc" : "asc");
|
|
814
831
|
};
|
|
815
|
-
return /* @__PURE__ */ T(
|
|
832
|
+
return /* @__PURE__ */ T(H, {
|
|
816
833
|
...g,
|
|
817
834
|
sx: { mt: 1 },
|
|
818
|
-
children: [/* @__PURE__ */ w(
|
|
835
|
+
children: [/* @__PURE__ */ w(J, {
|
|
819
836
|
sx: { ...t && {
|
|
820
837
|
visibility: "collapse",
|
|
821
838
|
"--TableCell-borderWidth": 0
|
|
822
839
|
} },
|
|
823
|
-
children: /* @__PURE__ */ T(
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
minWidth: "40px",
|
|
828
|
-
maxWidth: "40px",
|
|
829
|
-
bgcolor: "action.hover",
|
|
830
|
-
backgroundClip: "padding-box",
|
|
831
|
-
borderTop: "1px solid",
|
|
832
|
-
borderColor: "divider"
|
|
833
|
-
},
|
|
834
|
-
children: /* @__PURE__ */ w(R, {
|
|
835
|
-
checked: v,
|
|
836
|
-
indeterminate: _,
|
|
837
|
-
onChange: (e) => {
|
|
838
|
-
v ? i?.(e) : s?.(e);
|
|
839
|
-
}
|
|
840
|
-
})
|
|
841
|
-
}) : null, e.map((e, t) => {
|
|
842
|
-
let n = e.sortable && p === be(e), r = n ? m === "asc" ? "ascending" : "descending" : void 0, i = e.hideName ? null : e.name;
|
|
843
|
-
return /* @__PURE__ */ w(q, {
|
|
844
|
-
"aria-sort": r,
|
|
845
|
-
sortDirection: n ? m : !1,
|
|
840
|
+
children: /* @__PURE__ */ T(Z, {
|
|
841
|
+
sx: Ce,
|
|
842
|
+
children: [d ? /* @__PURE__ */ w(K, {
|
|
843
|
+
padding: "checkbox",
|
|
846
844
|
sx: {
|
|
847
|
-
|
|
848
|
-
minWidth: e.width,
|
|
849
|
-
maxWidth: e.width,
|
|
850
|
-
...e.align && { textAlign: e.align },
|
|
845
|
+
...xe,
|
|
851
846
|
bgcolor: "action.hover",
|
|
852
847
|
backgroundClip: "padding-box",
|
|
853
848
|
borderTop: "1px solid",
|
|
854
849
|
borderColor: "divider"
|
|
855
850
|
},
|
|
856
|
-
children:
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
(
|
|
863
|
-
|
|
851
|
+
children: /* @__PURE__ */ w(c, {
|
|
852
|
+
sx: Q,
|
|
853
|
+
children: /* @__PURE__ */ w(I, {
|
|
854
|
+
checked: v,
|
|
855
|
+
indeterminate: _,
|
|
856
|
+
sx: Se,
|
|
857
|
+
onChange: (e) => {
|
|
858
|
+
v ? i?.(e) : s?.(e);
|
|
859
|
+
}
|
|
860
|
+
})
|
|
861
|
+
})
|
|
862
|
+
}) : null, e.map((e, t) => {
|
|
863
|
+
let n = e.sortable && p === we(e), r = n ? m === "asc" ? "ascending" : "descending" : void 0, i = e.hideName ? null : e.name;
|
|
864
|
+
return /* @__PURE__ */ w(K, {
|
|
865
|
+
"aria-sort": r,
|
|
866
|
+
sortDirection: n ? m : !1,
|
|
864
867
|
sx: {
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
"&:hover .s-sort-icon": { color: n ? "primary.main" : "text.secondary" }
|
|
868
|
+
width: e.width,
|
|
869
|
+
minWidth: e.width,
|
|
870
|
+
maxWidth: e.width,
|
|
871
|
+
...e.align && { textAlign: e.align },
|
|
872
|
+
bgcolor: "action.hover",
|
|
873
|
+
backgroundClip: "padding-box",
|
|
874
|
+
borderTop: "1px solid",
|
|
875
|
+
borderColor: "divider"
|
|
874
876
|
},
|
|
875
|
-
children:
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
877
|
+
children: e.sortable ? /* @__PURE__ */ T(c, {
|
|
878
|
+
component: "span",
|
|
879
|
+
role: "button",
|
|
880
|
+
tabIndex: 0,
|
|
881
|
+
onClick: () => x(e),
|
|
882
|
+
onKeyDown: (t) => {
|
|
883
|
+
(t.key === "Enter" || t.key === " ") && (t.preventDefault(), x(e));
|
|
884
|
+
},
|
|
885
|
+
sx: {
|
|
886
|
+
display: "flex",
|
|
887
|
+
alignItems: "center",
|
|
888
|
+
justifyContent: "space-between",
|
|
889
|
+
gap: 1,
|
|
890
|
+
width: "100%",
|
|
891
|
+
cursor: "pointer",
|
|
892
|
+
userSelect: "none",
|
|
893
|
+
color: n ? "primary.main" : "inherit",
|
|
894
|
+
"&:hover .s-sort-icon": { color: n ? "primary.main" : "text.secondary" }
|
|
895
|
+
},
|
|
896
|
+
children: [i, n ? w(m === "asc" ? y : k, {
|
|
897
|
+
className: "s-sort-icon",
|
|
898
|
+
fontSize: "small",
|
|
899
|
+
sx: { color: "primary.main" }
|
|
900
|
+
}) : /* @__PURE__ */ w(A, {
|
|
901
|
+
className: "s-sort-icon",
|
|
902
|
+
fontSize: "small",
|
|
903
|
+
sx: { color: "text.disabled" }
|
|
904
|
+
})]
|
|
905
|
+
}) : i
|
|
906
|
+
}, b(e, t));
|
|
907
|
+
})]
|
|
908
|
+
})
|
|
909
|
+
}), /* @__PURE__ */ w(G, { children: u.length ? u.map((t, i) => {
|
|
910
|
+
let s = t.id ?? h?.(t), l = s ? f?.has(s) : !1;
|
|
911
|
+
return /* @__PURE__ */ T(Z, {
|
|
890
912
|
hover: n,
|
|
891
|
-
selected:
|
|
913
|
+
selected: l,
|
|
892
914
|
...r && { onClick: (e) => {
|
|
893
915
|
r(e, t);
|
|
894
916
|
} },
|
|
895
|
-
sx: {
|
|
896
|
-
|
|
917
|
+
sx: {
|
|
918
|
+
...Ce,
|
|
919
|
+
...r && { cursor: "pointer" }
|
|
920
|
+
},
|
|
921
|
+
children: [d ? /* @__PURE__ */ w(K, {
|
|
897
922
|
padding: "checkbox",
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
923
|
+
sx: xe,
|
|
924
|
+
children: /* @__PURE__ */ w(c, {
|
|
925
|
+
sx: Q,
|
|
926
|
+
children: /* @__PURE__ */ w(I, {
|
|
927
|
+
checked: s ? l : !1,
|
|
928
|
+
sx: Se,
|
|
929
|
+
onChange: (e) => {
|
|
930
|
+
l ? a?.(e, t) : o?.(e, t);
|
|
931
|
+
},
|
|
932
|
+
onClick: (e) => {
|
|
933
|
+
r && e.stopPropagation();
|
|
934
|
+
}
|
|
935
|
+
})
|
|
906
936
|
})
|
|
907
|
-
}) : null, e.map((e, n) => /* @__PURE__ */ w(
|
|
937
|
+
}) : null, e.map((e, n) => /* @__PURE__ */ w(K, {
|
|
908
938
|
sx: { ...e.align && { textAlign: e.align } },
|
|
909
|
-
children:
|
|
939
|
+
children: Te(e, t, i)
|
|
910
940
|
}, b(e, n)))]
|
|
911
941
|
}, s ?? i);
|
|
912
|
-
}) : /* @__PURE__ */ w(
|
|
942
|
+
}) : /* @__PURE__ */ w(Z, { children: /* @__PURE__ */ w(K, {
|
|
913
943
|
align: "center",
|
|
914
944
|
colSpan: e.length,
|
|
915
945
|
children: /* @__PURE__ */ w(S, {})
|