aq-fe-framework 0.1.303 → 0.1.304

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.
@@ -232,8 +232,8 @@ import { Button as Button2 } from "@mantine/core";
232
232
  import { IconDeviceFloppy as IconDeviceFloppy2, IconEdit as IconEdit2, IconFileExport, IconFileImport, IconPlus as IconPlus2, IconPrinter, IconTrash as IconTrash2, IconX } from "@tabler/icons-react";
233
233
  import { jsx as jsx7 } from "react/jsx-runtime";
234
234
  function MyButton(_a) {
235
- var _b = _a, { children, crudType } = _b, rest = __objRest(_b, ["children", "crudType"]);
236
- if (!crudType) {
235
+ var _b = _a, { children, crudType = "default" } = _b, rest = __objRest(_b, ["children", "crudType"]);
236
+ if (crudType == "default") {
237
237
  return /* @__PURE__ */ jsx7(Button2, __spreadProps(__spreadValues({ color: "indigo" }, rest), { children }));
238
238
  }
239
239
  if (crudType == "create") {
@@ -817,7 +817,7 @@ import { Fragment as Fragment6, jsx as jsx17, jsxs as jsxs9 } from "react/jsx-ru
817
817
  function MyButtonModal(_a) {
818
818
  var _b = _a, {
819
819
  fullScreen = false,
820
- crudType,
820
+ crudType = "default",
821
821
  disclosure,
822
822
  modalSize,
823
823
  title,
@@ -835,7 +835,7 @@ function MyButtonModal(_a) {
835
835
  "objectName"
836
836
  ]);
837
837
  const objectNameLower = objectName == null ? void 0 : objectName.toLowerCase();
838
- if (!crudType) {
838
+ if (crudType = "default") {
839
839
  return /* @__PURE__ */ jsxs9(Fragment6, { children: [
840
840
  /* @__PURE__ */ jsx17(Button3, __spreadProps(__spreadValues({ onClick: disclosure == null ? void 0 : disclosure[1].open, color: "indigo" }, rest), { children: label })),
841
841
  /* @__PURE__ */ jsx17(
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import React$1, { ReactNode, ComponentProps } from 'react';
3
- import { t as type_action, T as TYPES_MANTINE_SIZE } from '../types-CxfyEk70.mjs';
3
+ import { t as type_action, T as TYPES_MANTINE_SIZE } from '../types-B5rmBuXz.mjs';
4
4
  import { ActionIconProps, ButtonProps, useModalsStack, CheckboxProps, SelectProps, NumberFormatterProps, FieldsetProps, FileInputProps, NumberInputProps, TextareaProps, MantineSize, InputWrapperProps, TextInputProps, ContainerProps, FlexProps, GroupProps, TypographyStylesProviderProps, TabsProps, SkeletonProps } from '@mantine/core';
5
5
  import { M as MyApiResponse } from '../createBaseApi-BAYnbGVT.mjs';
6
6
  import { AxiosResponse } from 'axios';
@@ -65,7 +65,7 @@ import {
65
65
  useS_BasicAppShell,
66
66
  useS_ButtonImport,
67
67
  utils_layout_getItemsWithoutLinks
68
- } from "../chunk-KOCCXYVV.mjs";
68
+ } from "../chunk-EPFONDHC.mjs";
69
69
  import "../chunk-5U2JSHSJ.mjs";
70
70
  import "../chunk-NWBLJ3W3.mjs";
71
71
  import {
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { t as type_action } from '../types-CxfyEk70.mjs';
2
+ import { t as type_action } from '../types-B5rmBuXz.mjs';
3
3
  import { ActionIconProps, ButtonProps, ModalProps } from '@mantine/core';
4
4
  import { ReactNode } from 'react';
5
5
  import { M as MyApiResponse } from '../createBaseApi-BAYnbGVT.mjs';
@@ -29,6 +29,7 @@ import {
29
29
  } from "@tabler/icons-react";
30
30
  import { jsx } from "react/jsx-runtime";
31
31
  var actionConfig = {
32
+ default: {},
32
33
  create: {
33
34
  color: "indigo",
34
35
  type: "submit",
@@ -103,6 +104,9 @@ import {
103
104
  } from "@tabler/icons-react";
104
105
  import { jsx as jsx2 } from "react/jsx-runtime";
105
106
  var actionConfig2 = {
107
+ default: {
108
+ defaultText: ""
109
+ },
106
110
  create: {
107
111
  color: "blue",
108
112
  type: "submit",
@@ -30,7 +30,7 @@ import {
30
30
  useS_BasicAppShell,
31
31
  useS_authenticate,
32
32
  utils_layout_getItemsWithoutLinks
33
- } from "../chunk-KOCCXYVV.mjs";
33
+ } from "../chunk-EPFONDHC.mjs";
34
34
  import "../chunk-5U2JSHSJ.mjs";
35
35
  import {
36
36
  const_object_documentTypes
@@ -1,6 +1,6 @@
1
1
  import { MantineSize } from '@mantine/core';
2
2
 
3
3
  type TYPES_MANTINE_SIZE = number | MantineSize | (string & {}) | undefined;
4
- type type_action = "create" | "update" | "delete" | "save" | "createMultiple" | "check" | "import" | "print" | "cancel" | "export" | "select";
4
+ type type_action = "default" | "create" | "update" | "delete" | "save" | "createMultiple" | "check" | "import" | "print" | "cancel" | "export" | "select";
5
5
 
6
6
  export type { TYPES_MANTINE_SIZE as T, type_action as t };
package/package.json CHANGED
@@ -38,7 +38,7 @@
38
38
  "types": "./dist/core/index.d.mts"
39
39
  }
40
40
  },
41
- "version": "0.1.303",
41
+ "version": "0.1.304",
42
42
  "private": false,
43
43
  "files": [
44
44
  "dist"