@pathscale/ui 0.0.51 → 0.0.53
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/index.js +413 -147
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3455,7 +3455,7 @@ function CollapseContent(props) {
|
|
|
3455
3455
|
return _el$;
|
|
3456
3456
|
})();
|
|
3457
3457
|
}
|
|
3458
|
-
var Accordion_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div
|
|
3458
|
+
var Accordion_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div>"), Accordion_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<input>"), _tmpl$3 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div class=hidden>");
|
|
3459
3459
|
const Accordion = (props)=>{
|
|
3460
3460
|
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
3461
3461
|
"name",
|
|
@@ -3463,20 +3463,55 @@ const Accordion = (props)=>{
|
|
|
3463
3463
|
"dataTheme",
|
|
3464
3464
|
"class",
|
|
3465
3465
|
"className",
|
|
3466
|
-
"style"
|
|
3466
|
+
"style",
|
|
3467
|
+
"mode",
|
|
3468
|
+
"expanded",
|
|
3469
|
+
"onToggle",
|
|
3470
|
+
"children"
|
|
3467
3471
|
]);
|
|
3472
|
+
const [isExpanded, setIsExpanded] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createSignal)(local.expanded || false);
|
|
3473
|
+
const isControlled = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>"controlled" === local.mode || void 0 !== local.expanded);
|
|
3474
|
+
const expanded = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>isControlled() ? local.expanded : isExpanded());
|
|
3475
|
+
const handleToggle = ()=>{
|
|
3476
|
+
if (!isControlled()) setIsExpanded(!isExpanded());
|
|
3477
|
+
if (local.onToggle) local.onToggle();
|
|
3478
|
+
};
|
|
3468
3479
|
const classes = ()=>twMerge("collapse", clsx({
|
|
3469
3480
|
"collapse-arrow": "arrow" === local.icon,
|
|
3470
|
-
"collapse-plus": "plus" === local.icon
|
|
3481
|
+
"collapse-plus": "plus" === local.icon,
|
|
3482
|
+
"collapse-open": expanded(),
|
|
3483
|
+
"collapse-close": !expanded()
|
|
3471
3484
|
}), local.class, local.className);
|
|
3472
3485
|
return (()=>{
|
|
3473
|
-
var _el$ = Accordion_tmpl$()
|
|
3474
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3486
|
+
var _el$ = Accordion_tmpl$();
|
|
3487
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, (()=>{
|
|
3488
|
+
var _c$ = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>"controlled" !== local.mode);
|
|
3489
|
+
return ()=>_c$() && (()=>{
|
|
3490
|
+
var _el$2 = Accordion_tmpl$2();
|
|
3491
|
+
_el$2.addEventListener("change", handleToggle);
|
|
3492
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$2, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)({
|
|
3493
|
+
get type () {
|
|
3494
|
+
return "checkbox" === local.mode ? "checkbox" : "radio";
|
|
3495
|
+
},
|
|
3496
|
+
get name () {
|
|
3497
|
+
return local.name ?? "accordion";
|
|
3498
|
+
},
|
|
3499
|
+
get checked () {
|
|
3500
|
+
return expanded();
|
|
3501
|
+
}
|
|
3502
|
+
}, others), false, false);
|
|
3503
|
+
return _el$2;
|
|
3504
|
+
})();
|
|
3505
|
+
})(), null);
|
|
3506
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, (()=>{
|
|
3507
|
+
var _c$2 = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>"controlled" === local.mode);
|
|
3508
|
+
return ()=>_c$2() && (()=>{
|
|
3509
|
+
var _el$3 = _tmpl$3();
|
|
3510
|
+
_el$3.$$click = handleToggle;
|
|
3511
|
+
return _el$3;
|
|
3512
|
+
})();
|
|
3513
|
+
})(), null);
|
|
3514
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, ()=>local.children, null);
|
|
3480
3515
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
|
|
3481
3516
|
var _v$ = classes(), _v$2 = local.dataTheme, _v$3 = local.style;
|
|
3482
3517
|
_v$ !== _p$.e && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$, _p$.e = _v$);
|
|
@@ -3494,6 +3529,9 @@ const Accordion = (props)=>{
|
|
|
3494
3529
|
Accordion.Title = CollapseTitle;
|
|
3495
3530
|
Accordion.Content = CollapseContent;
|
|
3496
3531
|
const accordion_Accordion = Accordion;
|
|
3532
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.delegateEvents)([
|
|
3533
|
+
"click"
|
|
3534
|
+
]);
|
|
3497
3535
|
var Alert_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div role=alert>");
|
|
3498
3536
|
const Alert = (props)=>{
|
|
3499
3537
|
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
@@ -3621,7 +3659,7 @@ const AvatarGroup_AvatarGroup = (props)=>{
|
|
|
3621
3659
|
}));
|
|
3622
3660
|
};
|
|
3623
3661
|
const AvatarGroup = AvatarGroup_AvatarGroup;
|
|
3624
|
-
var Avatar_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div><img>"), Avatar_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div><span>"),
|
|
3662
|
+
var Avatar_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div><img>"), Avatar_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div><span>"), Avatar_tmpl$3 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div>");
|
|
3625
3663
|
const Avatar_VoidElementList = [
|
|
3626
3664
|
"area",
|
|
3627
3665
|
"base",
|
|
@@ -3724,7 +3762,7 @@ const Avatar_Avatar = (props)=>{
|
|
|
3724
3762
|
});
|
|
3725
3763
|
return _el$3;
|
|
3726
3764
|
})() : (()=>{
|
|
3727
|
-
var _el$5 =
|
|
3765
|
+
var _el$5 = Avatar_tmpl$3();
|
|
3728
3766
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$5, ()=>local.children);
|
|
3729
3767
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
|
|
3730
3768
|
var _v$6 = imgClasses(), _v$7 = customSizeStyle;
|
|
@@ -4031,7 +4069,14 @@ const Button = (props)=>{
|
|
|
4031
4069
|
"class",
|
|
4032
4070
|
"className",
|
|
4033
4071
|
"style",
|
|
4034
|
-
"as"
|
|
4072
|
+
"as",
|
|
4073
|
+
"aria-label",
|
|
4074
|
+
"aria-describedby",
|
|
4075
|
+
"aria-pressed",
|
|
4076
|
+
"aria-expanded",
|
|
4077
|
+
"aria-controls",
|
|
4078
|
+
"aria-haspopup",
|
|
4079
|
+
"aria-role"
|
|
4035
4080
|
]);
|
|
4036
4081
|
const classes = ()=>twMerge("btn", local.class, local.className, clsx((local.startIcon && !local.loading || local.endIcon) && "gap-2", {
|
|
4037
4082
|
"btn-xl": "xl" === local.size,
|
|
@@ -4077,6 +4122,30 @@ const Button = (props)=>{
|
|
|
4077
4122
|
},
|
|
4078
4123
|
get disabled () {
|
|
4079
4124
|
return local.disabled;
|
|
4125
|
+
},
|
|
4126
|
+
get ["aria-label"] () {
|
|
4127
|
+
return local["aria-label"];
|
|
4128
|
+
},
|
|
4129
|
+
get ["aria-describedby"] () {
|
|
4130
|
+
return local["aria-describedby"];
|
|
4131
|
+
},
|
|
4132
|
+
get ["aria-pressed"] () {
|
|
4133
|
+
return "boolean" == typeof local["aria-pressed"] ? local["aria-pressed"] : void 0;
|
|
4134
|
+
},
|
|
4135
|
+
get ["aria-expanded"] () {
|
|
4136
|
+
return "boolean" == typeof local["aria-expanded"] ? local["aria-expanded"] : void 0;
|
|
4137
|
+
},
|
|
4138
|
+
get ["aria-controls"] () {
|
|
4139
|
+
return local["aria-controls"];
|
|
4140
|
+
},
|
|
4141
|
+
get ["aria-haspopup"] () {
|
|
4142
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>"boolean" == typeof local["aria-haspopup"])() ? String(local["aria-haspopup"]) : local["aria-haspopup"];
|
|
4143
|
+
},
|
|
4144
|
+
get ["aria-disabled"] () {
|
|
4145
|
+
return local.disabled;
|
|
4146
|
+
},
|
|
4147
|
+
get role () {
|
|
4148
|
+
return local["aria-role"];
|
|
4080
4149
|
}
|
|
4081
4150
|
}));
|
|
4082
4151
|
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.Dynamic, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)({
|
|
@@ -4094,6 +4163,30 @@ const Button = (props)=>{
|
|
|
4094
4163
|
get disabled () {
|
|
4095
4164
|
return local.disabled;
|
|
4096
4165
|
},
|
|
4166
|
+
get ["aria-label"] () {
|
|
4167
|
+
return local["aria-label"];
|
|
4168
|
+
},
|
|
4169
|
+
get ["aria-describedby"] () {
|
|
4170
|
+
return local["aria-describedby"];
|
|
4171
|
+
},
|
|
4172
|
+
get ["aria-pressed"] () {
|
|
4173
|
+
return "boolean" == typeof local["aria-pressed"] ? local["aria-pressed"] : void 0;
|
|
4174
|
+
},
|
|
4175
|
+
get ["aria-expanded"] () {
|
|
4176
|
+
return "boolean" == typeof local["aria-expanded"] ? local["aria-expanded"] : void 0;
|
|
4177
|
+
},
|
|
4178
|
+
get ["aria-controls"] () {
|
|
4179
|
+
return local["aria-controls"];
|
|
4180
|
+
},
|
|
4181
|
+
get ["aria-haspopup"] () {
|
|
4182
|
+
return true === local["aria-haspopup"] ? "true" : false === local["aria-haspopup"] ? "false" : local["aria-haspopup"];
|
|
4183
|
+
},
|
|
4184
|
+
get ["aria-disabled"] () {
|
|
4185
|
+
return local.disabled;
|
|
4186
|
+
},
|
|
4187
|
+
get role () {
|
|
4188
|
+
return local["aria-role"];
|
|
4189
|
+
},
|
|
4097
4190
|
get children () {
|
|
4098
4191
|
return [
|
|
4099
4192
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
|
|
@@ -5749,7 +5842,12 @@ const Checkbox = (props)=>{
|
|
|
5749
5842
|
"dataTheme",
|
|
5750
5843
|
"class",
|
|
5751
5844
|
"className",
|
|
5752
|
-
"style"
|
|
5845
|
+
"style",
|
|
5846
|
+
"aria-label",
|
|
5847
|
+
"aria-describedby",
|
|
5848
|
+
"aria-invalid",
|
|
5849
|
+
"aria-required",
|
|
5850
|
+
"aria-labelledby"
|
|
5753
5851
|
]);
|
|
5754
5852
|
const classes = ()=>twMerge("checkbox", local.class, local.className, clsx({
|
|
5755
5853
|
"checkbox-xl": "xl" === local.size,
|
|
@@ -5785,6 +5883,24 @@ const Checkbox = (props)=>{
|
|
|
5785
5883
|
},
|
|
5786
5884
|
get style () {
|
|
5787
5885
|
return local.style;
|
|
5886
|
+
},
|
|
5887
|
+
get ["aria-label"] () {
|
|
5888
|
+
return local["aria-label"];
|
|
5889
|
+
},
|
|
5890
|
+
get ["aria-describedby"] () {
|
|
5891
|
+
return local["aria-describedby"];
|
|
5892
|
+
},
|
|
5893
|
+
get ["aria-invalid"] () {
|
|
5894
|
+
return local["aria-invalid"];
|
|
5895
|
+
},
|
|
5896
|
+
get ["aria-required"] () {
|
|
5897
|
+
return local["aria-required"];
|
|
5898
|
+
},
|
|
5899
|
+
get ["aria-labelledby"] () {
|
|
5900
|
+
return local["aria-labelledby"];
|
|
5901
|
+
},
|
|
5902
|
+
get ["aria-checked"] () {
|
|
5903
|
+
return local.indeterminate ? "mixed" : props.checked ?? props.defaultChecked ?? void 0;
|
|
5788
5904
|
}
|
|
5789
5905
|
}), false, false);
|
|
5790
5906
|
return _el$;
|
|
@@ -6628,6 +6744,40 @@ const FileInput_FileInput = (props)=>{
|
|
|
6628
6744
|
})();
|
|
6629
6745
|
};
|
|
6630
6746
|
const FileInput = FileInput_FileInput;
|
|
6747
|
+
const breakpoints = [
|
|
6748
|
+
"base",
|
|
6749
|
+
"sm",
|
|
6750
|
+
"md",
|
|
6751
|
+
"lg",
|
|
6752
|
+
"xl"
|
|
6753
|
+
];
|
|
6754
|
+
function isJSXElement(node) {
|
|
6755
|
+
return "object" == typeof node && null !== node;
|
|
6756
|
+
}
|
|
6757
|
+
function wrapWithElementIfInvalid({ node, wrapper = "div", className = "" }) {
|
|
6758
|
+
null == node || "string" == typeof node || "number" == typeof node || isJSXElement(node);
|
|
6759
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.Dynamic, {
|
|
6760
|
+
component: wrapper,
|
|
6761
|
+
class: className,
|
|
6762
|
+
children: node
|
|
6763
|
+
});
|
|
6764
|
+
}
|
|
6765
|
+
function mapResponsiveProp(prop, classMap) {
|
|
6766
|
+
if (void 0 === prop) return [];
|
|
6767
|
+
if ("string" == typeof prop || "boolean" == typeof prop) return [
|
|
6768
|
+
classMap[String(prop)]
|
|
6769
|
+
];
|
|
6770
|
+
return breakpoints.flatMap((bp)=>{
|
|
6771
|
+
const value = prop[bp];
|
|
6772
|
+
if (void 0 === value) return [];
|
|
6773
|
+
const className = classMap[String(value)];
|
|
6774
|
+
return "base" === bp ? [
|
|
6775
|
+
className
|
|
6776
|
+
] : [
|
|
6777
|
+
`${bp}:${className}`
|
|
6778
|
+
];
|
|
6779
|
+
});
|
|
6780
|
+
}
|
|
6631
6781
|
const directionMap = {
|
|
6632
6782
|
row: "flex-row",
|
|
6633
6783
|
col: "flex-col",
|
|
@@ -6690,25 +6840,6 @@ const basisMap = {
|
|
|
6690
6840
|
lg: "basis-24",
|
|
6691
6841
|
xl: "basis-32"
|
|
6692
6842
|
};
|
|
6693
|
-
const breakpoints = [
|
|
6694
|
-
"base",
|
|
6695
|
-
"sm",
|
|
6696
|
-
"md",
|
|
6697
|
-
"lg",
|
|
6698
|
-
"xl"
|
|
6699
|
-
];
|
|
6700
|
-
function mapResponsiveProp(prop, map) {
|
|
6701
|
-
if (void 0 === prop) return [];
|
|
6702
|
-
if ("string" == typeof prop || "boolean" == typeof prop) return [
|
|
6703
|
-
map[String(prop)]
|
|
6704
|
-
];
|
|
6705
|
-
return breakpoints.flatMap((bp)=>{
|
|
6706
|
-
const value = prop[bp];
|
|
6707
|
-
if (void 0 === value) return [];
|
|
6708
|
-
const className = map[String(value)];
|
|
6709
|
-
return "base" === bp ? className : `${bp}:${className}`;
|
|
6710
|
-
});
|
|
6711
|
-
}
|
|
6712
6843
|
const Flex = (props)=>{
|
|
6713
6844
|
const [local, rest] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
6714
6845
|
"as",
|
|
@@ -6830,7 +6961,7 @@ function useFormValidation() {
|
|
|
6830
6961
|
if (!context) throw new Error("useFormValidation must be used within a ValidatedForm");
|
|
6831
6962
|
return context;
|
|
6832
6963
|
}
|
|
6833
|
-
function
|
|
6964
|
+
function ValidatedForm_ValidatedForm(props) {
|
|
6834
6965
|
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
6835
6966
|
"children",
|
|
6836
6967
|
"schema",
|
|
@@ -6868,7 +6999,7 @@ function ValidatedForm(props) {
|
|
|
6868
6999
|
}
|
|
6869
7000
|
});
|
|
6870
7001
|
}
|
|
6871
|
-
const
|
|
7002
|
+
const ValidatedForm = ValidatedForm_ValidatedForm;
|
|
6872
7003
|
var Form_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<form role=form>");
|
|
6873
7004
|
const Form = (props)=>{
|
|
6874
7005
|
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
@@ -6895,7 +7026,7 @@ const Form = (props)=>{
|
|
|
6895
7026
|
};
|
|
6896
7027
|
const form_Form = Object.assign(Form, {
|
|
6897
7028
|
Label: form_Label,
|
|
6898
|
-
Validated:
|
|
7029
|
+
Validated: ValidatedForm
|
|
6899
7030
|
});
|
|
6900
7031
|
const colsMap = {
|
|
6901
7032
|
1: "grid-cols-1",
|
|
@@ -6948,18 +7079,7 @@ const autoRowsMap = {
|
|
|
6948
7079
|
max: "auto-rows-max",
|
|
6949
7080
|
fr: "auto-rows-fr"
|
|
6950
7081
|
};
|
|
6951
|
-
|
|
6952
|
-
if (!prop) return [];
|
|
6953
|
-
if ("string" == typeof prop) return classMap[prop] ? [
|
|
6954
|
-
classMap[prop]
|
|
6955
|
-
] : [];
|
|
6956
|
-
return Object.entries(prop).flatMap(([key, val])=>{
|
|
6957
|
-
const className = classMap[val];
|
|
6958
|
-
if (!className) return [];
|
|
6959
|
-
return "base" === key ? className : `${key}:${className}`;
|
|
6960
|
-
});
|
|
6961
|
-
}
|
|
6962
|
-
const Grid = (props)=>{
|
|
7082
|
+
const Grid_Grid = (props)=>{
|
|
6963
7083
|
const merged = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.mergeProps)({
|
|
6964
7084
|
as: "div"
|
|
6965
7085
|
}, props);
|
|
@@ -6967,6 +7087,7 @@ const Grid = (props)=>{
|
|
|
6967
7087
|
"as",
|
|
6968
7088
|
"class",
|
|
6969
7089
|
"className",
|
|
7090
|
+
"children",
|
|
6970
7091
|
"cols",
|
|
6971
7092
|
"rows",
|
|
6972
7093
|
"flow",
|
|
@@ -6974,17 +7095,22 @@ const Grid = (props)=>{
|
|
|
6974
7095
|
"autoCols",
|
|
6975
7096
|
"autoRows"
|
|
6976
7097
|
]);
|
|
6977
|
-
const
|
|
7098
|
+
const resolvedChildren = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.children)(()=>local.children);
|
|
7099
|
+
const classes = dist_clsx("grid", mapResponsiveProp(local.cols, colsMap), mapResponsiveProp(local.rows, rowsMap), mapResponsiveProp(local.flow, flowMap), mapResponsiveProp(local.gap, Grid_gapMap), mapResponsiveProp(local.autoCols, autoColsMap), mapResponsiveProp(local.autoRows, autoRowsMap), local.class, local.className);
|
|
6978
7100
|
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.Dynamic, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)({
|
|
6979
7101
|
get component () {
|
|
6980
7102
|
return local.as;
|
|
6981
7103
|
},
|
|
6982
7104
|
get ["class"] () {
|
|
6983
|
-
return classes
|
|
7105
|
+
return twMerge(classes);
|
|
6984
7106
|
}
|
|
6985
|
-
}, rest
|
|
7107
|
+
}, rest, {
|
|
7108
|
+
get children () {
|
|
7109
|
+
return resolvedChildren();
|
|
7110
|
+
}
|
|
7111
|
+
}));
|
|
6986
7112
|
};
|
|
6987
|
-
const
|
|
7113
|
+
const Grid = Grid_Grid;
|
|
6988
7114
|
var HeroContent_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div>");
|
|
6989
7115
|
const HeroContent = (props)=>{
|
|
6990
7116
|
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
@@ -7167,7 +7293,12 @@ const Input = (props)=>{
|
|
|
7167
7293
|
"style",
|
|
7168
7294
|
"leftIcon",
|
|
7169
7295
|
"rightIcon",
|
|
7170
|
-
"
|
|
7296
|
+
"placeholder",
|
|
7297
|
+
"type",
|
|
7298
|
+
"aria-label",
|
|
7299
|
+
"aria-describedby",
|
|
7300
|
+
"aria-invalid",
|
|
7301
|
+
"aria-required"
|
|
7171
7302
|
]);
|
|
7172
7303
|
const [passwordVisible, setPasswordVisible] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createSignal)(false);
|
|
7173
7304
|
const inputType = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>{
|
|
@@ -7202,6 +7333,21 @@ const Input = (props)=>{
|
|
|
7202
7333
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$2, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(others, {
|
|
7203
7334
|
get type () {
|
|
7204
7335
|
return inputType();
|
|
7336
|
+
},
|
|
7337
|
+
get ["aria-label"] () {
|
|
7338
|
+
return local["aria-label"];
|
|
7339
|
+
},
|
|
7340
|
+
get ["aria-describedby"] () {
|
|
7341
|
+
return local["aria-describedby"];
|
|
7342
|
+
},
|
|
7343
|
+
get ["aria-invalid"] () {
|
|
7344
|
+
return local["aria-invalid"];
|
|
7345
|
+
},
|
|
7346
|
+
get ["aria-required"] () {
|
|
7347
|
+
return local["aria-required"];
|
|
7348
|
+
},
|
|
7349
|
+
get placeholder () {
|
|
7350
|
+
return local["placeholder"];
|
|
7205
7351
|
}
|
|
7206
7352
|
}), false, false);
|
|
7207
7353
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
|
|
@@ -7212,15 +7358,27 @@ const Input = (props)=>{
|
|
|
7212
7358
|
var _el$3 = Input_tmpl$();
|
|
7213
7359
|
_el$3.$$click = ()=>setPasswordVisible(!passwordVisible());
|
|
7214
7360
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$3, ()=>local.rightIcon);
|
|
7215
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)(()=>
|
|
7361
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
|
|
7362
|
+
var _v$ = "password" === local.type ? "cursor-pointer" : "", _v$2 = "password" === local.type ? "button" : void 0, _v$3 = "password" === local.type ? passwordVisible() ? "Hide password" : "Show password" : void 0, _v$4 = "password" === local.type ? 0 : void 0;
|
|
7363
|
+
_v$ !== _p$.e && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$3, _p$.e = _v$);
|
|
7364
|
+
_v$2 !== _p$.t && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$3, "role", _p$.t = _v$2);
|
|
7365
|
+
_v$3 !== _p$.a && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$3, "aria-label", _p$.a = _v$3);
|
|
7366
|
+
_v$4 !== _p$.o && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$3, "tabindex", _p$.o = _v$4);
|
|
7367
|
+
return _p$;
|
|
7368
|
+
}, {
|
|
7369
|
+
e: void 0,
|
|
7370
|
+
t: void 0,
|
|
7371
|
+
a: void 0,
|
|
7372
|
+
o: void 0
|
|
7373
|
+
});
|
|
7216
7374
|
return _el$3;
|
|
7217
7375
|
}
|
|
7218
7376
|
}), null);
|
|
7219
7377
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
|
|
7220
|
-
var _v$ = classes(), _v$
|
|
7221
|
-
_v$ !== _p$.e && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$, _p$.e = _v$);
|
|
7222
|
-
_p$.t = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.style)(_el$, _v$
|
|
7223
|
-
_v$
|
|
7378
|
+
var _v$5 = classes(), _v$6 = local.style, _v$7 = local.dataTheme;
|
|
7379
|
+
_v$5 !== _p$.e && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$, _p$.e = _v$5);
|
|
7380
|
+
_p$.t = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.style)(_el$, _v$6, _p$.t);
|
|
7381
|
+
_v$7 !== _p$.a && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$, "data-theme", _p$.a = _v$7);
|
|
7224
7382
|
return _p$;
|
|
7225
7383
|
}, {
|
|
7226
7384
|
e: void 0,
|
|
@@ -7974,7 +8132,13 @@ const Radio = (props)=>{
|
|
|
7974
8132
|
"size",
|
|
7975
8133
|
"name",
|
|
7976
8134
|
"type",
|
|
7977
|
-
"data-theme"
|
|
8135
|
+
"data-theme",
|
|
8136
|
+
"aria-label",
|
|
8137
|
+
"aria-describedby",
|
|
8138
|
+
"aria-invalid",
|
|
8139
|
+
"aria-required",
|
|
8140
|
+
"aria-labelledby",
|
|
8141
|
+
"aria-checked"
|
|
7978
8142
|
]);
|
|
7979
8143
|
const classes = twMerge("radio", local.class, dist_clsx({
|
|
7980
8144
|
"radio-xs": "xs" === local.size,
|
|
@@ -8000,6 +8164,24 @@ const Radio = (props)=>{
|
|
|
8000
8164
|
class: classes,
|
|
8001
8165
|
get ["data-theme"] () {
|
|
8002
8166
|
return local["data-theme"];
|
|
8167
|
+
},
|
|
8168
|
+
get ["aria-label"] () {
|
|
8169
|
+
return local["aria-label"];
|
|
8170
|
+
},
|
|
8171
|
+
get ["aria-describedby"] () {
|
|
8172
|
+
return local["aria-describedby"];
|
|
8173
|
+
},
|
|
8174
|
+
get ["aria-invalid"] () {
|
|
8175
|
+
return local["aria-invalid"];
|
|
8176
|
+
},
|
|
8177
|
+
get ["aria-required"] () {
|
|
8178
|
+
return local["aria-required"];
|
|
8179
|
+
},
|
|
8180
|
+
get ["aria-labelledby"] () {
|
|
8181
|
+
return local["aria-labelledby"];
|
|
8182
|
+
},
|
|
8183
|
+
get ["aria-checked"] () {
|
|
8184
|
+
return local["aria-checked"];
|
|
8003
8185
|
}
|
|
8004
8186
|
}), false, false);
|
|
8005
8187
|
return _el$;
|
|
@@ -9172,17 +9354,6 @@ function SvgBackground(props) {
|
|
|
9172
9354
|
return _el$;
|
|
9173
9355
|
})();
|
|
9174
9356
|
}
|
|
9175
|
-
function isJSXElement(node) {
|
|
9176
|
-
return "object" == typeof node && null !== node;
|
|
9177
|
-
}
|
|
9178
|
-
function wrapWithElementIfInvalid({ node, wrapper = "div", className = "" }) {
|
|
9179
|
-
null == node || "string" == typeof node || "number" == typeof node || isJSXElement(node);
|
|
9180
|
-
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.Dynamic, {
|
|
9181
|
-
component: wrapper,
|
|
9182
|
-
class: className,
|
|
9183
|
-
children: node
|
|
9184
|
-
});
|
|
9185
|
-
}
|
|
9186
9357
|
var Swap_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<label><input type=checkbox>");
|
|
9187
9358
|
function Swap(props) {
|
|
9188
9359
|
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
@@ -9233,30 +9404,94 @@ function Swap(props) {
|
|
|
9233
9404
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.delegateEvents)([
|
|
9234
9405
|
"click"
|
|
9235
9406
|
]);
|
|
9236
|
-
var
|
|
9407
|
+
var TableCell_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<td>");
|
|
9408
|
+
const TableCell_TableCell = (props)=>{
|
|
9409
|
+
const [local, rest] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
9410
|
+
"children",
|
|
9411
|
+
"colSpan",
|
|
9412
|
+
"class",
|
|
9413
|
+
"className",
|
|
9414
|
+
"dataTheme"
|
|
9415
|
+
]);
|
|
9416
|
+
const classes = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>twMerge(dist_clsx(local.class, local.className)));
|
|
9417
|
+
const resolvedChildren = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.children)(()=>local.children);
|
|
9418
|
+
return (()=>{
|
|
9419
|
+
var _el$ = TableCell_tmpl$();
|
|
9420
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)({
|
|
9421
|
+
get ["class"] () {
|
|
9422
|
+
return classes();
|
|
9423
|
+
},
|
|
9424
|
+
get ["data-theme"] () {
|
|
9425
|
+
return local.dataTheme;
|
|
9426
|
+
},
|
|
9427
|
+
get colSpan () {
|
|
9428
|
+
return local.colSpan;
|
|
9429
|
+
}
|
|
9430
|
+
}, rest), false, true);
|
|
9431
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, resolvedChildren);
|
|
9432
|
+
return _el$;
|
|
9433
|
+
})();
|
|
9434
|
+
};
|
|
9435
|
+
const TableCell = TableCell_TableCell;
|
|
9436
|
+
var TableHeadCell_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<th>");
|
|
9437
|
+
const TableHeadCell = (props)=>{
|
|
9438
|
+
const [local, rest] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
9439
|
+
"children",
|
|
9440
|
+
"colSpan",
|
|
9441
|
+
"class",
|
|
9442
|
+
"className",
|
|
9443
|
+
"dataTheme"
|
|
9444
|
+
]);
|
|
9445
|
+
const classes = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>twMerge(dist_clsx(local.class, local.className)));
|
|
9446
|
+
const resolvedChildren = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.children)(()=>local.children);
|
|
9447
|
+
return (()=>{
|
|
9448
|
+
var _el$ = TableHeadCell_tmpl$();
|
|
9449
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)({
|
|
9450
|
+
get ["class"] () {
|
|
9451
|
+
return classes();
|
|
9452
|
+
},
|
|
9453
|
+
get ["data-theme"] () {
|
|
9454
|
+
return local.dataTheme;
|
|
9455
|
+
},
|
|
9456
|
+
get colSpan () {
|
|
9457
|
+
return local.colSpan;
|
|
9458
|
+
}
|
|
9459
|
+
}, rest), false, true);
|
|
9460
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, resolvedChildren);
|
|
9461
|
+
return _el$;
|
|
9462
|
+
})();
|
|
9463
|
+
};
|
|
9464
|
+
const table_TableHeadCell = TableHeadCell;
|
|
9465
|
+
var TableHead_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<thead><tr>");
|
|
9237
9466
|
const TableHead_TableHead = (props)=>{
|
|
9238
9467
|
const [local, rest] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
9239
9468
|
"children",
|
|
9240
|
-
"noCell"
|
|
9469
|
+
"noCell",
|
|
9470
|
+
"class",
|
|
9471
|
+
"className",
|
|
9472
|
+
"dataTheme"
|
|
9241
9473
|
]);
|
|
9474
|
+
const classes = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>twMerge(dist_clsx(local.class, local.className)));
|
|
9475
|
+
const resolved = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.children)(()=>local.children);
|
|
9242
9476
|
return (()=>{
|
|
9243
9477
|
var _el$ = TableHead_tmpl$(), _el$2 = _el$.firstChild;
|
|
9244
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$,
|
|
9478
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)({
|
|
9479
|
+
get ["class"] () {
|
|
9480
|
+
return classes();
|
|
9481
|
+
},
|
|
9482
|
+
get ["data-theme"] () {
|
|
9483
|
+
return local.dataTheme;
|
|
9484
|
+
}
|
|
9485
|
+
}, rest), false, true);
|
|
9245
9486
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$2, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.For, {
|
|
9246
9487
|
get each () {
|
|
9247
|
-
return
|
|
9248
|
-
local.children
|
|
9249
|
-
];
|
|
9488
|
+
return resolved.toArray();
|
|
9250
9489
|
},
|
|
9251
|
-
children: (child, index)=>local.noCell ? child : index() < 1 ? ((
|
|
9252
|
-
|
|
9253
|
-
|
|
9254
|
-
|
|
9255
|
-
})
|
|
9256
|
-
var _el$4 = TableHead_tmpl$3();
|
|
9257
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$4, child);
|
|
9258
|
-
return _el$4;
|
|
9259
|
-
})()
|
|
9490
|
+
children: (child, index)=>local.noCell ? child : index() < 1 ? (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(table_TableHeadCell, {
|
|
9491
|
+
children: child
|
|
9492
|
+
}) : (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(TableCell, {
|
|
9493
|
+
children: child
|
|
9494
|
+
})
|
|
9260
9495
|
}));
|
|
9261
9496
|
return _el$;
|
|
9262
9497
|
})();
|
|
@@ -9265,17 +9500,29 @@ const TableHead = TableHead_TableHead;
|
|
|
9265
9500
|
var TableBody_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<tbody>");
|
|
9266
9501
|
const TableBody = (props)=>{
|
|
9267
9502
|
const [local, rest] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
9268
|
-
"children"
|
|
9503
|
+
"children",
|
|
9504
|
+
"class",
|
|
9505
|
+
"className",
|
|
9506
|
+
"dataTheme"
|
|
9269
9507
|
]);
|
|
9508
|
+
const classes = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>twMerge(dist_clsx(local.class, local.className)));
|
|
9509
|
+
const resolved = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.children)(()=>local.children);
|
|
9270
9510
|
return (()=>{
|
|
9271
9511
|
var _el$ = TableBody_tmpl$();
|
|
9272
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$,
|
|
9273
|
-
|
|
9512
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)({
|
|
9513
|
+
get ["class"] () {
|
|
9514
|
+
return classes();
|
|
9515
|
+
},
|
|
9516
|
+
get ["data-theme"] () {
|
|
9517
|
+
return local.dataTheme;
|
|
9518
|
+
}
|
|
9519
|
+
}, rest), false, true);
|
|
9520
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, resolved);
|
|
9274
9521
|
return _el$;
|
|
9275
9522
|
})();
|
|
9276
9523
|
};
|
|
9277
9524
|
const table_TableBody = TableBody;
|
|
9278
|
-
var TableRow_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<tr>")
|
|
9525
|
+
var TableRow_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<tr>");
|
|
9279
9526
|
const TableRow = (props)=>{
|
|
9280
9527
|
const [local, rest] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
9281
9528
|
"children",
|
|
@@ -9303,15 +9550,11 @@ const TableRow = (props)=>{
|
|
|
9303
9550
|
get each () {
|
|
9304
9551
|
return resolved.toArray();
|
|
9305
9552
|
},
|
|
9306
|
-
children: (child, i)=>0 === i() ? ((
|
|
9307
|
-
|
|
9308
|
-
|
|
9309
|
-
|
|
9310
|
-
})
|
|
9311
|
-
var _el$3 = TableRow_tmpl$3();
|
|
9312
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$3, child);
|
|
9313
|
-
return _el$3;
|
|
9314
|
-
})()
|
|
9553
|
+
children: (child, i)=>0 === i() ? (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(table_TableHeadCell, {
|
|
9554
|
+
children: child
|
|
9555
|
+
}) : (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(TableCell, {
|
|
9556
|
+
children: child
|
|
9557
|
+
})
|
|
9315
9558
|
});
|
|
9316
9559
|
},
|
|
9317
9560
|
get children () {
|
|
@@ -9322,16 +9565,27 @@ const TableRow = (props)=>{
|
|
|
9322
9565
|
})();
|
|
9323
9566
|
};
|
|
9324
9567
|
const table_TableRow = TableRow;
|
|
9325
|
-
var TableFooter_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<tfoot><tr>")
|
|
9568
|
+
var TableFooter_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<tfoot><tr>");
|
|
9326
9569
|
const TableFooter = (props)=>{
|
|
9327
9570
|
const [local, rest] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
9328
9571
|
"children",
|
|
9329
|
-
"noCell"
|
|
9572
|
+
"noCell",
|
|
9573
|
+
"class",
|
|
9574
|
+
"className",
|
|
9575
|
+
"dataTheme"
|
|
9330
9576
|
]);
|
|
9331
9577
|
const resolved = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.children)(()=>local.children);
|
|
9578
|
+
const classes = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>twMerge(dist_clsx(local.class, local.className)));
|
|
9332
9579
|
return (()=>{
|
|
9333
9580
|
var _el$ = TableFooter_tmpl$(), _el$2 = _el$.firstChild;
|
|
9334
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$,
|
|
9581
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)({
|
|
9582
|
+
get ["class"] () {
|
|
9583
|
+
return classes();
|
|
9584
|
+
},
|
|
9585
|
+
get ["data-theme"] () {
|
|
9586
|
+
return local.dataTheme;
|
|
9587
|
+
}
|
|
9588
|
+
}, rest), false, true);
|
|
9335
9589
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$2, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
|
|
9336
9590
|
get when () {
|
|
9337
9591
|
return local.noCell;
|
|
@@ -9341,15 +9595,11 @@ const TableFooter = (props)=>{
|
|
|
9341
9595
|
get each () {
|
|
9342
9596
|
return resolved.toArray();
|
|
9343
9597
|
},
|
|
9344
|
-
children: (child, i)=>0 === i() ? ((
|
|
9345
|
-
|
|
9346
|
-
|
|
9347
|
-
|
|
9348
|
-
})
|
|
9349
|
-
var _el$4 = TableFooter_tmpl$3();
|
|
9350
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$4, child);
|
|
9351
|
-
return _el$4;
|
|
9352
|
-
})()
|
|
9598
|
+
children: (child, i)=>0 === i() ? (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(table_TableHeadCell, {
|
|
9599
|
+
children: child
|
|
9600
|
+
}) : (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(TableCell, {
|
|
9601
|
+
children: child
|
|
9602
|
+
})
|
|
9353
9603
|
});
|
|
9354
9604
|
},
|
|
9355
9605
|
get children () {
|
|
@@ -9360,7 +9610,7 @@ const TableFooter = (props)=>{
|
|
|
9360
9610
|
})();
|
|
9361
9611
|
};
|
|
9362
9612
|
const table_TableFooter = TableFooter;
|
|
9363
|
-
var EnhancedTable_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<
|
|
9613
|
+
var EnhancedTable_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div class="flex items-center gap-2">'), EnhancedTable_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)(`<span>\u{2191}`), EnhancedTable_tmpl$3 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)(`<span>\u{2193}`);
|
|
9364
9614
|
function EnhancedTable_EnhancedTable(props) {
|
|
9365
9615
|
const [local, tableProps] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
9366
9616
|
"data",
|
|
@@ -9429,21 +9679,27 @@ function EnhancedTable_EnhancedTable(props) {
|
|
|
9429
9679
|
get each () {
|
|
9430
9680
|
return headerGroup.headers;
|
|
9431
9681
|
},
|
|
9432
|
-
children: (header)=>((
|
|
9433
|
-
|
|
9434
|
-
|
|
9435
|
-
|
|
9436
|
-
|
|
9437
|
-
|
|
9438
|
-
|
|
9439
|
-
|
|
9440
|
-
|
|
9441
|
-
|
|
9442
|
-
|
|
9443
|
-
|
|
9444
|
-
|
|
9445
|
-
|
|
9446
|
-
|
|
9682
|
+
children: (header)=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(table_Table.HeadCell, {
|
|
9683
|
+
get ["class"] () {
|
|
9684
|
+
return header.column.getCanSort() ? "cursor-pointer select-none" : "";
|
|
9685
|
+
},
|
|
9686
|
+
get onClick () {
|
|
9687
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>!!header.column.getCanSort())() ? header.column.getToggleSortingHandler() : void 0;
|
|
9688
|
+
},
|
|
9689
|
+
get children () {
|
|
9690
|
+
var _el$ = EnhancedTable_tmpl$();
|
|
9691
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, ()=>(0, __WEBPACK_EXTERNAL_MODULE__tanstack_solid_table_1239d047__.flexRender)(header.column.columnDef.header, header.getContext()), null);
|
|
9692
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, (()=>{
|
|
9693
|
+
var _c$ = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>"asc" === header.column.getIsSorted());
|
|
9694
|
+
return ()=>_c$() && EnhancedTable_tmpl$2();
|
|
9695
|
+
})(), null);
|
|
9696
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, (()=>{
|
|
9697
|
+
var _c$2 = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>"desc" === header.column.getIsSorted());
|
|
9698
|
+
return ()=>_c$2() && EnhancedTable_tmpl$3();
|
|
9699
|
+
})(), null);
|
|
9700
|
+
return _el$;
|
|
9701
|
+
}
|
|
9702
|
+
})
|
|
9447
9703
|
});
|
|
9448
9704
|
}
|
|
9449
9705
|
})
|
|
@@ -9452,12 +9708,19 @@ function EnhancedTable_EnhancedTable(props) {
|
|
|
9452
9708
|
}),
|
|
9453
9709
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(table_Table.Body, {
|
|
9454
9710
|
get children () {
|
|
9455
|
-
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>!!(0 === tableRows().length && local.renderEmpty))() ? ((
|
|
9456
|
-
|
|
9457
|
-
|
|
9458
|
-
|
|
9459
|
-
|
|
9460
|
-
|
|
9711
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>!!(0 === tableRows().length && local.renderEmpty))() ? (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(table_Table.Row, {
|
|
9712
|
+
get children () {
|
|
9713
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(table_Table.Cell, {
|
|
9714
|
+
get colSpan () {
|
|
9715
|
+
return table.getAllColumns().length;
|
|
9716
|
+
},
|
|
9717
|
+
class: "text-center py-4",
|
|
9718
|
+
get children () {
|
|
9719
|
+
return local.renderEmpty();
|
|
9720
|
+
}
|
|
9721
|
+
});
|
|
9722
|
+
}
|
|
9723
|
+
}) : (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.For, {
|
|
9461
9724
|
get each () {
|
|
9462
9725
|
return tableRows();
|
|
9463
9726
|
},
|
|
@@ -9471,22 +9734,26 @@ function EnhancedTable_EnhancedTable(props) {
|
|
|
9471
9734
|
get each () {
|
|
9472
9735
|
return row.getVisibleCells();
|
|
9473
9736
|
},
|
|
9474
|
-
children: (cell)=>((
|
|
9475
|
-
|
|
9476
|
-
|
|
9477
|
-
|
|
9478
|
-
})
|
|
9737
|
+
children: (cell)=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(table_Table.Cell, {
|
|
9738
|
+
get children () {
|
|
9739
|
+
return (0, __WEBPACK_EXTERNAL_MODULE__tanstack_solid_table_1239d047__.flexRender)(cell.column.columnDef.cell, cell.getContext());
|
|
9740
|
+
}
|
|
9741
|
+
})
|
|
9479
9742
|
});
|
|
9480
9743
|
}
|
|
9481
9744
|
}),
|
|
9482
9745
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>!!(row.getIsExpanded() && local.renderRowSubComponent))() && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(table_Table.Row, {
|
|
9483
9746
|
get children () {
|
|
9484
|
-
|
|
9485
|
-
|
|
9486
|
-
row
|
|
9487
|
-
}
|
|
9488
|
-
|
|
9489
|
-
|
|
9747
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(table_Table.Cell, {
|
|
9748
|
+
get colSpan () {
|
|
9749
|
+
return row.getVisibleCells().length;
|
|
9750
|
+
},
|
|
9751
|
+
get children () {
|
|
9752
|
+
return local.renderRowSubComponent({
|
|
9753
|
+
row
|
|
9754
|
+
});
|
|
9755
|
+
}
|
|
9756
|
+
});
|
|
9490
9757
|
}
|
|
9491
9758
|
}))
|
|
9492
9759
|
]
|
|
@@ -9498,9 +9765,6 @@ function EnhancedTable_EnhancedTable(props) {
|
|
|
9498
9765
|
}));
|
|
9499
9766
|
}
|
|
9500
9767
|
const EnhancedTable = EnhancedTable_EnhancedTable;
|
|
9501
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.delegateEvents)([
|
|
9502
|
-
"click"
|
|
9503
|
-
]);
|
|
9504
9768
|
var Table_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<table>");
|
|
9505
9769
|
const Table = (props)=>{
|
|
9506
9770
|
const [local, rest] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
@@ -9543,6 +9807,8 @@ const table_Table = Object.assign(Table, {
|
|
|
9543
9807
|
Body: table_TableBody,
|
|
9544
9808
|
Row: table_TableRow,
|
|
9545
9809
|
Footer: table_TableFooter,
|
|
9810
|
+
Cell: TableCell,
|
|
9811
|
+
HeadCell: table_TableHeadCell,
|
|
9546
9812
|
Enhanced: EnhancedTable
|
|
9547
9813
|
});
|
|
9548
9814
|
var Tab_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<a role=tab>");
|
|
@@ -10092,4 +10358,4 @@ const WindowMockup = (props)=>{
|
|
|
10092
10358
|
})();
|
|
10093
10359
|
};
|
|
10094
10360
|
const windowmockup_WindowMockup = WindowMockup;
|
|
10095
|
-
export { accordion_Accordion as Accordion, alert_Alert as Alert, artboard_Artboard as Artboard, avatar as Avatar, background_Background as Background, Badge, Breadcrumbs, breadcrumbs_BreadcrumbsItem as BreadcrumbsItem, browsermockup_BrowserMockup as BrowserMockup, button_Button as Button, Calendar, card_Card as Card, carousel_Carousel as Carousel, chatbubble_ChatBubble as ChatBubble, checkbox_Checkbox as Checkbox, codemockup_CodeMockup as CodeMockup, CodeMockupLine, collapse_Collapse as Collapse, CollapseContent, CollapseDetails, CollapseTitle, copy_button_CopyButton as CopyButton, countdown_Countdown as Countdown, diff_Diff as Diff, divider as Divider, dock as Dock, Drawer, dropdown as Dropdown, FileInput, flex_Flex as Flex, footer_Footer as Footer, form_Form as Form,
|
|
10361
|
+
export { accordion_Accordion as Accordion, alert_Alert as Alert, artboard_Artboard as Artboard, avatar as Avatar, background_Background as Background, Badge, Breadcrumbs, breadcrumbs_BreadcrumbsItem as BreadcrumbsItem, browsermockup_BrowserMockup as BrowserMockup, button_Button as Button, Calendar, card_Card as Card, carousel_Carousel as Carousel, chatbubble_ChatBubble as ChatBubble, checkbox_Checkbox as Checkbox, codemockup_CodeMockup as CodeMockup, CodeMockupLine, collapse_Collapse as Collapse, CollapseContent, CollapseDetails, CollapseTitle, copy_button_CopyButton as CopyButton, countdown_Countdown as Countdown, diff_Diff as Diff, divider as Divider, dock as Dock, Drawer, dropdown as Dropdown, FileInput, flex_Flex as Flex, footer_Footer as Footer, form_Form as Form, Grid, hero_Hero as Hero, icon_Icon as Icon, indicator_Indicator as Indicator, input_Input as Input, join_Join as Join, kbd_Kbd as Kbd, link_Link as Link, loading_Loading as Loading, mask as Mask, menu_Menu as Menu, modal_Modal as Modal, navbar_Navbar as Navbar, pagination_Pagination as Pagination, phonemockup_PhoneMockup as PhoneMockup, Progress, props_table_PropsTable as PropsTable, radialprogress_RadialProgress as RadialProgress, radio_Radio as Radio, range_Range as Range, Rating, select_Select as Select, showcase_ShowcaseBlock as ShowcaseBlock, ShowcaseSection, sidenav_Sidenav as Sidenav, sidenav_SidenavButton as SidenavButton, sidenav_SidenavGroup as SidenavGroup, sidenav_SidenavItem as SidenavItem, sidenav_SidenavLink as SidenavLink, sidenav_SidenavMenu as SidenavMenu, skeleton_Skeleton as Skeleton, Stack, stats_Stats as Stats, status_Status as Status, steps as Steps, Summary, SvgBackground, Swap, table_Table as Table, tabs_Tabs as Tabs, textarea_Textarea as Textarea, Timeline, timeline_TimelineEnd as TimelineEnd, timeline_TimelineItem as TimelineItem, timeline_TimelineMiddle as TimelineMiddle, timeline_TimelineStart as TimelineStart, toast_Toast as Toast, toggle_Toggle as Toggle, tooltip_Tooltip as Tooltip, windowmockup_WindowMockup as WindowMockup, useFormValidation };
|