@solidstarters/solid-core-ui 1.1.77 → 1.1.79
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/components/core/chatter/SolidChatter.js +7 -3
- package/dist/components/core/chatter/SolidChatter.js.map +1 -1
- package/dist/components/core/form/SolidFormActionHeader.js +47 -3
- package/dist/components/core/form/SolidFormActionHeader.js.map +1 -1
- package/dist/components/core/form/SolidFormView.js +2 -1
- package/dist/components/core/form/SolidFormView.js.map +1 -1
- package/dist/components/core/form/fields/SolidIntegerField.js +29 -0
- package/dist/components/core/form/fields/SolidIntegerField.js.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.js +93 -24
- package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.js.map +1 -1
- package/dist/components/core/list/SolidListView.js +2 -2
- package/dist/components/core/list/SolidListView.js.map +1 -1
- package/dist/helpers/registry.js +2 -1
- package/dist/helpers/registry.js.map +1 -1
- package/package.json +1 -1
- package/tsconfig.json +1 -1
- package/dist/components/core/common/SolidConfigureLayoutElement.d.ts +0 -2
- package/dist/components/core/common/SolidConfigureLayoutElement.d.ts.map +0 -1
- package/dist/components/core/common/SolidConfigureLayoutElement.js +0 -77
- package/dist/components/core/common/SolidConfigureLayoutElement.js.map +0 -1
- package/dist/components/core/form/fields/relations/widgets/SolidRelationManyToManyAutocompleteWidget.d.ts +0 -3
- package/dist/components/core/form/fields/relations/widgets/SolidRelationManyToManyAutocompleteWidget.d.ts.map +0 -1
- package/dist/components/core/form/fields/relations/widgets/SolidRelationManyToManyAutocompleteWidget.js +0 -38
- package/dist/components/core/form/fields/relations/widgets/SolidRelationManyToManyAutocompleteWidget.js.map +0 -1
- package/dist/components/core/form/fields/relations/widgets/SolidRelationManyToManyCheckboxWidget.d.ts +0 -3
- package/dist/components/core/form/fields/relations/widgets/SolidRelationManyToManyCheckboxWidget.d.ts.map +0 -1
- package/dist/components/core/form/fields/relations/widgets/SolidRelationManyToManyCheckboxWidget.js +0 -48
- package/dist/components/core/form/fields/relations/widgets/SolidRelationManyToManyCheckboxWidget.js.map +0 -1
- package/dist/components/core/form/fields/widgets/SolidBooleanCheckboxFieldWidget.d.ts +0 -3
- package/dist/components/core/form/fields/widgets/SolidBooleanCheckboxFieldWidget.d.ts.map +0 -1
- package/dist/components/core/form/fields/widgets/SolidBooleanCheckboxFieldWidget.js +0 -57
- package/dist/components/core/form/fields/widgets/SolidBooleanCheckboxFieldWidget.js.map +0 -1
- package/dist/components/core/form/fields/widgets/SolidBooleanSelectFieldWidget.d.ts +0 -3
- package/dist/components/core/form/fields/widgets/SolidBooleanSelectFieldWidget.d.ts.map +0 -1
- package/dist/components/core/form/fields/widgets/SolidBooleanSelectFieldWidget.js +0 -30
- package/dist/components/core/form/fields/widgets/SolidBooleanSelectFieldWidget.js.map +0 -1
- package/dist/components/core/form/fields/widgets/SolidFormFieldJsonViewModeWidget.d.ts +0 -2
- package/dist/components/core/form/fields/widgets/SolidFormFieldJsonViewModeWidget.d.ts.map +0 -1
- package/dist/components/core/form/fields/widgets/SolidFormFieldJsonViewModeWidget.js +0 -9
- package/dist/components/core/form/fields/widgets/SolidFormFieldJsonViewModeWidget.js.map +0 -1
- package/dist/components/core/form/fields/widgets/SolidFormFieldMediaViewModeWidget.d.ts +0 -2
- package/dist/components/core/form/fields/widgets/SolidFormFieldMediaViewModeWidget.d.ts.map +0 -1
- package/dist/components/core/form/fields/widgets/SolidFormFieldMediaViewModeWidget.js +0 -8
- package/dist/components/core/form/fields/widgets/SolidFormFieldMediaViewModeWidget.js.map +0 -1
- package/dist/components/core/form/fields/widgets/SolidFormFieldPasswordViewModeWidget.d.ts +0 -2
- package/dist/components/core/form/fields/widgets/SolidFormFieldPasswordViewModeWidget.d.ts.map +0 -1
- package/dist/components/core/form/fields/widgets/SolidFormFieldPasswordViewModeWidget.js +0 -9
- package/dist/components/core/form/fields/widgets/SolidFormFieldPasswordViewModeWidget.js.map +0 -1
- package/dist/components/core/form/fields/widgets/SolidFormFieldRelationViewModeWidget.d.ts +0 -2
- package/dist/components/core/form/fields/widgets/SolidFormFieldRelationViewModeWidget.d.ts.map +0 -1
- package/dist/components/core/form/fields/widgets/SolidFormFieldRelationViewModeWidget.js +0 -20
- package/dist/components/core/form/fields/widgets/SolidFormFieldRelationViewModeWidget.js.map +0 -1
- package/dist/components/core/form/fields/widgets/SolidFormFieldRichTextViewModeWidget.d.ts +0 -2
- package/dist/components/core/form/fields/widgets/SolidFormFieldRichTextViewModeWidget.d.ts.map +0 -1
- package/dist/components/core/form/fields/widgets/SolidFormFieldRichTextViewModeWidget.js +0 -7
- package/dist/components/core/form/fields/widgets/SolidFormFieldRichTextViewModeWidget.js.map +0 -1
- package/dist/components/core/form/fields/widgets/SolidFormFieldViewMediaMultipleWidget.d.ts +0 -3
- package/dist/components/core/form/fields/widgets/SolidFormFieldViewMediaMultipleWidget.d.ts.map +0 -1
- package/dist/components/core/form/fields/widgets/SolidFormFieldViewMediaMultipleWidget.js +0 -90
- package/dist/components/core/form/fields/widgets/SolidFormFieldViewMediaMultipleWidget.js.map +0 -1
- package/dist/components/core/form/fields/widgets/SolidFormFieldViewMediaSingleWidget.d.ts +0 -3
- package/dist/components/core/form/fields/widgets/SolidFormFieldViewMediaSingleWidget.d.ts.map +0 -1
- package/dist/components/core/form/fields/widgets/SolidFormFieldViewMediaSingleWidget.js +0 -74
- package/dist/components/core/form/fields/widgets/SolidFormFieldViewMediaSingleWidget.js.map +0 -1
- package/dist/components/core/form/fields/widgets/SolidFormFieldViewModeWidget.d.ts +0 -2
- package/dist/components/core/form/fields/widgets/SolidFormFieldViewModeWidget.d.ts.map +0 -1
- package/dist/components/core/form/fields/widgets/SolidFormFieldViewModeWidget.js +0 -6
- package/dist/components/core/form/fields/widgets/SolidFormFieldViewModeWidget.js.map +0 -1
- package/dist/components/core/form/fields/widgets/SolidSelectionStaticAutocompleteFieldWidget.d.ts +0 -3
- package/dist/components/core/form/fields/widgets/SolidSelectionStaticAutocompleteFieldWidget.d.ts.map +0 -1
- package/dist/components/core/form/fields/widgets/SolidSelectionStaticAutocompleteFieldWidget.js +0 -50
- package/dist/components/core/form/fields/widgets/SolidSelectionStaticAutocompleteFieldWidget.js.map +0 -1
- package/dist/components/core/form/fields/widgets/SolidSelectionStaticRadioFieldWidget.d.ts +0 -3
- package/dist/components/core/form/fields/widgets/SolidSelectionStaticRadioFieldWidget.d.ts.map +0 -1
- package/dist/components/core/form/fields/widgets/SolidSelectionStaticRadioFieldWidget.js +0 -34
- package/dist/components/core/form/fields/widgets/SolidSelectionStaticRadioFieldWidget.js.map +0 -1
- package/dist/components/core/list/widgets/SolidShortTextFieldTextRenderModeWidget copy.d.ts +0 -2
- package/dist/components/core/list/widgets/SolidShortTextFieldTextRenderModeWidget copy.d.ts.map +0 -1
- package/dist/components/core/list/widgets/SolidShortTextFieldTextRenderModeWidget copy.js +0 -7
- package/dist/components/core/list/widgets/SolidShortTextFieldTextRenderModeWidget copy.js.map +0 -1
- package/dist/components/core/list/widgets/SolidShortTextFieldTextRenderModeWidget.d.ts +0 -2
- package/dist/components/core/list/widgets/SolidShortTextFieldTextRenderModeWidget.d.ts.map +0 -1
- package/dist/components/core/list/widgets/SolidShortTextFieldTextRenderModeWidget.js +0 -7
- package/dist/components/core/list/widgets/SolidShortTextFieldTextRenderModeWidget.js.map +0 -1
- package/dist/components/core/list/widgets/SolidUserNameAvatarWidget.d.ts +0 -2
- package/dist/components/core/list/widgets/SolidUserNameAvatarWidget.d.ts.map +0 -1
- package/dist/components/core/list/widgets/SolidUserNameAvatarWidget.js +0 -36
- package/dist/components/core/list/widgets/SolidUserNameAvatarWidget.js.map +0 -1
- package/dist/stylesheets/globals.css +0 -2476
- package/dist/stylesheets/styles/SF-Pro-Display-Regular.otf +0 -0
- package/dist/stylesheets/styles/layout/_config.scss +0 -54
- package/dist/stylesheets/styles/layout/_content.scss +0 -77
- package/dist/stylesheets/styles/layout/_footer.scss +0 -8
- package/dist/stylesheets/styles/layout/_main.scss +0 -47
- package/dist/stylesheets/styles/layout/_menu.scss +0 -185
- package/dist/stylesheets/styles/layout/_mixins.scss +0 -13
- package/dist/stylesheets/styles/layout/_responsive.scss +0 -99
- package/dist/stylesheets/styles/layout/_topbar.scss +0 -149
- package/dist/stylesheets/styles/layout/_typography.scss +0 -63
- package/dist/stylesheets/styles/layout/_utils.scss +0 -27
- package/dist/stylesheets/styles/layout/_variables.scss +0 -3
- package/dist/stylesheets/styles/layout/layout.scss +0 -11
- package/dist/stylesheets/themes/solid-dark-purple/fonts/SF-Pro-Display-Black.otf +0 -0
- package/dist/stylesheets/themes/solid-dark-purple/fonts/SF-Pro-Display-Bold.otf +0 -0
- package/dist/stylesheets/themes/solid-dark-purple/fonts/SF-Pro-Display-Heavy.otf +0 -0
- package/dist/stylesheets/themes/solid-dark-purple/fonts/SF-Pro-Display-Light.otf +0 -0
- package/dist/stylesheets/themes/solid-dark-purple/fonts/SF-Pro-Display-Medium.otf +0 -0
- package/dist/stylesheets/themes/solid-dark-purple/fonts/SF-Pro-Display-Regular.otf +0 -0
- package/dist/stylesheets/themes/solid-dark-purple/fonts/SF-Pro-Display-Semibold.otf +0 -0
- package/dist/stylesheets/themes/solid-dark-purple/fonts/SF-Pro-Display-Thin.otf +0 -0
- package/dist/stylesheets/themes/solid-dark-purple/fonts/SF-Pro-Display-Ultralight.otf +0 -0
- package/dist/stylesheets/themes/solid-dark-purple/theme.css +0 -9051
- package/dist/stylesheets/themes/solid-light-purple/fonts/SF-Pro-Display-Black.otf +0 -0
- package/dist/stylesheets/themes/solid-light-purple/fonts/SF-Pro-Display-Bold.otf +0 -0
- package/dist/stylesheets/themes/solid-light-purple/fonts/SF-Pro-Display-Heavy.otf +0 -0
- package/dist/stylesheets/themes/solid-light-purple/fonts/SF-Pro-Display-Light.otf +0 -0
- package/dist/stylesheets/themes/solid-light-purple/fonts/SF-Pro-Display-Medium.otf +0 -0
- package/dist/stylesheets/themes/solid-light-purple/fonts/SF-Pro-Display-Regular.otf +0 -0
- package/dist/stylesheets/themes/solid-light-purple/fonts/SF-Pro-Display-Semibold.otf +0 -0
- package/dist/stylesheets/themes/solid-light-purple/fonts/SF-Pro-Display-Thin.otf +0 -0
- package/dist/stylesheets/themes/solid-light-purple/fonts/SF-Pro-Display-Ultralight.otf +0 -0
- package/dist/stylesheets/themes/solid-light-purple/theme.css +0 -9077
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SolidUserNameAvatarWidget.d.ts","sourceRoot":"","sources":["../../../../../src/components/core/list/widgets/SolidUserNameAvatarWidget.tsx"],"names":[],"mappings":"AACA,eAAO,MAAM,yBAAyB,cAAe,GAAG,4CAiDvD,CAAC"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
export var SolidUserNameAvatarWidget = function (_a) {
|
|
3
|
-
// use "widget": "SolidUserNameAvatarWidget" in the list view field
|
|
4
|
-
var value = _a.value;
|
|
5
|
-
var getInitials = function (fullName) {
|
|
6
|
-
var names = fullName.trim().split(' ');
|
|
7
|
-
var initials = names.length === 1
|
|
8
|
-
? names[0][0]
|
|
9
|
-
: names[0][0] + names[names.length - 1][0];
|
|
10
|
-
return initials.toUpperCase();
|
|
11
|
-
};
|
|
12
|
-
var getColorFromInitials = function (initials) {
|
|
13
|
-
var hash = 0;
|
|
14
|
-
for (var i = 0; i < initials.length; i++) {
|
|
15
|
-
hash = initials.charCodeAt(i) + ((hash << 5) - hash);
|
|
16
|
-
}
|
|
17
|
-
var hue = Math.abs(hash) % 360;
|
|
18
|
-
return "hsl(".concat(hue, ", 60%, 60%)"); // nice pastel color
|
|
19
|
-
};
|
|
20
|
-
var initials = getInitials(value);
|
|
21
|
-
var bgColor = getColorFromInitials(initials);
|
|
22
|
-
return (_jsx("div", { className: "solid-table-row", children: _jsxs("div", { style: { display: 'flex', alignItems: 'center', gap: '0.5rem' }, children: [_jsx("div", { style: {
|
|
23
|
-
width: 25,
|
|
24
|
-
height: 25,
|
|
25
|
-
borderRadius: '50%',
|
|
26
|
-
backgroundColor: bgColor,
|
|
27
|
-
color: 'white',
|
|
28
|
-
display: 'flex',
|
|
29
|
-
alignItems: 'center',
|
|
30
|
-
justifyContent: 'center',
|
|
31
|
-
fontWeight: 600,
|
|
32
|
-
fontSize: 25 * 0.4,
|
|
33
|
-
boxShadow: '0 0 0 2px rgba(0,0,0,0.1)',
|
|
34
|
-
}, children: initials }), _jsx("span", { children: value })] }) }));
|
|
35
|
-
};
|
|
36
|
-
//# sourceMappingURL=SolidUserNameAvatarWidget.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SolidUserNameAvatarWidget.js","sourceRoot":"","sources":["../../../../../src/components/core/list/widgets/SolidUserNameAvatarWidget.tsx"],"names":[],"mappings":";AACA,MAAM,CAAC,IAAM,yBAAyB,GAAG,UAAC,EAAc;IAEpD,oEAAoE;QAF5B,KAAK,WAAA;IAI7C,IAAM,WAAW,GAAG,UAAC,QAAgB;QACjC,IAAM,KAAK,GAAG,QAAQ,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACzC,IAAM,QAAQ,GACV,KAAK,CAAC,MAAM,KAAK,CAAC;YACd,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YACb,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACnD,OAAO,QAAQ,CAAC,WAAW,EAAE,CAAC;IAClC,CAAC,CAAC;IAEF,IAAM,oBAAoB,GAAG,UAAC,QAAgB;QAC1C,IAAI,IAAI,GAAG,CAAC,CAAC;QACb,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YACtC,IAAI,GAAG,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;SACxD;QACD,IAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC;QACjC,OAAO,cAAO,GAAG,gBAAa,CAAC,CAAC,oBAAoB;IACxD,CAAC,CAAC;IAEF,IAAM,QAAQ,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC;IACpC,IAAM,OAAO,GAAG,oBAAoB,CAAC,QAAQ,CAAC,CAAC;IAE/C,OAAO,CACH,cAAK,SAAS,EAAC,iBAAiB,YAC5B,eAAK,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,EAAE,QAAQ,EAAE,aAChE,cACI,KAAK,EAAE;wBACH,KAAK,EAAE,EAAE;wBACT,MAAM,EAAE,EAAE;wBACV,YAAY,EAAE,KAAK;wBACnB,eAAe,EAAE,OAAO;wBACxB,KAAK,EAAE,OAAO;wBACd,OAAO,EAAE,MAAM;wBACf,UAAU,EAAE,QAAQ;wBACpB,cAAc,EAAE,QAAQ;wBACxB,UAAU,EAAE,GAAG;wBACf,QAAQ,EAAE,EAAE,GAAG,GAAG;wBAClB,SAAS,EAAE,2BAA2B;qBACzC,YAEA,QAAQ,GACP,EACN,yBAAO,KAAK,GAAQ,IAClB,GACJ,CACT,CAAC;AACN,CAAC,CAAC"}
|