@solidstarters/solid-core-ui 1.1.128 → 1.1.129

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solidstarters/solid-core-ui",
3
- "version": "1.1.128",
3
+ "version": "1.1.129",
4
4
  "scripts": {
5
5
  "prebuild": "npm run copy-resources && npm run copy-styles",
6
6
  "build": "tsc && tsc-alias",
@@ -1,2 +0,0 @@
1
- export declare const useHandleCustomButtonClick: () => (buttonAttrs: any, event: any) => void;
2
- //# sourceMappingURL=useHandleCustomButtonClick.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useHandleCustomButtonClick.d.ts","sourceRoot":"","sources":["../../../src/components/common/useHandleCustomButtonClick.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,0BAA0B,sBAGd,GAAG,SAAS,GAAG,SAkBvC,CAAC"}
@@ -1,34 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import { useDispatch } from "react-redux";
13
- import { getExtensionFunction } from "../../helpers/registry";
14
- import { openPopup } from "../../redux/features/popupSlice";
15
- export var useHandleCustomButtonClick = function () {
16
- var dispatch = useDispatch();
17
- return function (buttonAttrs, event) {
18
- var action = buttonAttrs.action, openInPopup = buttonAttrs.openInPopup;
19
- if (openInPopup === true) {
20
- var eventData = __assign(__assign({}, event), { action: action });
21
- dispatch(openPopup(eventData));
22
- }
23
- else {
24
- var eventData = __assign(__assign({}, event), { action: action });
25
- var dynamicFunction = getExtensionFunction(action);
26
- if (!dynamicFunction) {
27
- console.error("Action function \"".concat(action, "\" not found."));
28
- return;
29
- }
30
- dynamicFunction(eventData);
31
- }
32
- };
33
- };
34
- //# sourceMappingURL=useHandleCustomButtonClick.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useHandleCustomButtonClick.js","sourceRoot":"","sources":["../../../src/components/common/useHandleCustomButtonClick.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAyB,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AACjF,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAaxD,MAAM,CAAC,IAAM,0BAA0B,GAAG;IACtC,IAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAE/B,OAAO,UAAC,WAAgB,EAAE,KAAU;QACxB,IAAA,MAAM,GAAoC,WAAW,OAA/C,EAAE,WAAW,GAAuB,WAAW,YAAlC,CAAmC;QAE9D,IAAI,WAAW,KAAK,IAAI,EAAE;YACtB,IAAM,SAAS,yBAAQ,KAAK,KAAE,MAAM,EAAE,MAAM,GAAE,CAAC;YAC/C,QAAQ,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC;SAElC;aAAM;YACH,IAAM,SAAS,yBAAQ,KAAK,KAAE,MAAM,EAAE,MAAM,GAAE,CAAC;YAC/C,IAAM,eAAe,GAAG,oBAAoB,CAAC,MAAM,CAAC,CAAC;YACrD,IAAI,CAAC,eAAe,EAAE;gBAClB,OAAO,CAAC,KAAK,CAAC,4BAAoB,MAAM,kBAAc,CAAC,CAAC;gBACxD,OAAO;aACV;YACD,eAAe,CAAC,SAAS,CAAC,CAAC;SAC9B;IAEL,CAAC,CAAC;AACN,CAAC,CAAC"}
@@ -1,25 +0,0 @@
1
- .model-table {
2
- width: 100%;
3
- border-collapse: collapse;
4
- margin-bottom: 20px;
5
- font-family: Arial, sans-serif;
6
- font-size: 14px;
7
- }
8
-
9
- .model-table th,
10
- .model-table td {
11
- border: 1px solid #ccc;
12
- padding: 12px;
13
- text-align: left;
14
- vertical-align: top;
15
- }
16
-
17
- .model-table thead th {
18
- background-color: #f2f2f2;
19
- }
20
-
21
- .model-table .manual {
22
- color: #d32f2f;
23
- /* red for manual intervention */
24
- font-weight: bold;
25
- }
@@ -1,2 +0,0 @@
1
- export declare const SolidFormViewHeaderButton: ({ button, params, solidListViewMetaData, handleCustomButtonClick }: any) => import("react/jsx-runtime").JSX.Element | null;
2
- //# sourceMappingURL=SolidFormViewHeaderButton.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SolidFormViewHeaderButton.d.ts","sourceRoot":"","sources":["../../../../src/components/core/form/SolidFormViewHeaderButton.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,yBAAyB,uEAAwE,GAAG,mDAyBhH,CAAC"}
@@ -1,20 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { useHasAnyRole } from "../../../helpers/rolesHelper";
3
- import { Button } from "primereact/button";
4
- export var SolidFormViewHeaderButton = function (_a) {
5
- var _b, _c;
6
- var button = _a.button, params = _a.params, solidListViewMetaData = _a.solidListViewMetaData, handleCustomButtonClick = _a.handleCustomButtonClick;
7
- var hasRole = !button.attrs.roles || button.attrs.roles.length === 0
8
- ? true
9
- : useHasAnyRole(button.attrs.roles);
10
- if (!hasRole)
11
- return null;
12
- return (_jsx(Button, { text: true, type: "button", className: "w-full text-left gap-2", label: button.attrs.label, size: "small", iconPos: "left", icon: ((_b = button === null || button === void 0 ? void 0 : button.attrs) === null || _b === void 0 ? void 0 : _b.className) ? (_c = button === null || button === void 0 ? void 0 : button.attrs) === null || _c === void 0 ? void 0 : _c.className : "pi pi-pencil", onClick: function () {
13
- var event = {
14
- params: params,
15
- solidListViewMetaData: solidListViewMetaData.data,
16
- };
17
- handleCustomButtonClick(button.attrs, event);
18
- } }));
19
- };
20
- //# sourceMappingURL=SolidFormViewHeaderButton.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SolidFormViewHeaderButton.js","sourceRoot":"","sources":["../../../../src/components/core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idListViewRowButtonColumn.d.ts","sourceRoot":"","sources":["../../../../src/components/core/list/SolidListViewRowButtonColumn.tsx"],"names":[],"mappings":""}
@@ -1,34 +0,0 @@
1
- "use strict";
2
- // const SolidListViewRowButtonColumn = ( {button, index, params, solidListViewMetaData, handleCustomButtonClick}:any ) => {
3
- // const hasRole =
4
- // !button.attrs.roles || button.attrs.roles.length === 0
5
- // ? true
6
- // : useHasAnyRole(button.attrs.roles);
7
- // if (!hasRole) return null;
8
- // return (
9
- // <Column
10
- // key={index}
11
- // header={button.attrs.label}
12
- // body={(rowData) => (
13
- // <Button
14
- // text
15
- // type="button"
16
- // className=""
17
- // label={button.attrs.showLabel !== false ? button.attrs.label : ''}
18
- // size="small"
19
- // iconPos="left"
20
- // icon={button?.attrs?.className ? button?.attrs?.className : "pi pi-pencil"}
21
- // onClick={() => {
22
- // const event = {
23
- // params,
24
- // rowData,
25
- // solidListViewMetaData: solidListViewMetaData.data,
26
- // };
27
- // handleCustomButtonClick(button.attrs, event);
28
- // }}
29
- // />
30
- // )}
31
- // />
32
- // );
33
- // };
34
- //# sourceMappingURL=SolidListViewRowButtonColumn.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SolidListViewRowButtonColumn.js","sourceRoot":"","sources":["../../../../src/components/core/list/SolidListViewRowButtonColumn.tsx"],"names":[],"mappings":";AACA,4HAA4H;AAE5H,oBAAoB;AACpB,6DAA6D;AAC7D,eAAe;AACf,6CAA6C;AAE7C,+BAA+B;AAE/B,aAAa;AACb,cAAc;AACd,oBAAoB;AACpB,oCAAoC;AACpC,6BAA6B;AAC7B,kBAAkB;AAClB,iBAAiB;AACjB,0BAA0B;AAC1B,yBAAyB;AACzB,+EAA+E;AAC/E,yBAAyB;AACzB,2BAA2B;AAC3B,wFAAwF;AACxF,6BAA6B;AAC7B,8BAA8B;AAC9B,wBAAwB;AACxB,yBAAyB;AACzB,mEAAmE;AACnE,iBAAiB;AACjB,4DAA4D;AAC5D,eAAe;AACf,aAAa;AACb,WAAW;AACX,SAAS;AACT,OAAO;AACP,KAAK"}