@ebertjendustries/cswrapper 1.0.3 → 1.0.4
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 +10 -7
- package/dist/index.mjs +5 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1031,7 +1031,8 @@ function CSVEnumRatingView(props) {
|
|
|
1031
1031
|
}
|
|
1032
1032
|
|
|
1033
1033
|
// src/views/CSVNoItemsView.tsx
|
|
1034
|
-
var
|
|
1034
|
+
var import_box2 = __toESM(require("@cloudscape-design/components/box"));
|
|
1035
|
+
var import_space_between = __toESM(require("@cloudscape-design/components/space-between"));
|
|
1035
1036
|
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
1036
1037
|
var CSV_NO_ITEMS_VIEW_SPEC = (ns) => ViewSpec.create("CSVNoItemsView", ns, (spec) => ({
|
|
1037
1038
|
boxHeading: spec.addField(new FieldSpec("boxHeading")),
|
|
@@ -1040,7 +1041,7 @@ var CSV_NO_ITEMS_VIEW_SPEC = (ns) => ViewSpec.create("CSVNoItemsView", ns, (spec
|
|
|
1040
1041
|
function CSVNoItemsView(props) {
|
|
1041
1042
|
const spec = props.viewSpec;
|
|
1042
1043
|
const { elements } = spec;
|
|
1043
|
-
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { "data-testid": spec.getDataTestId(), children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1044
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { "data-testid": spec.getDataTestId(), children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_box2.default, { textAlign: "center", color: "inherit", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_space_between.default, { size: "xxs", direction: "vertical", children: [
|
|
1044
1045
|
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1045
1046
|
CSBox,
|
|
1046
1047
|
{
|
|
@@ -1195,7 +1196,7 @@ function CSVPriceInputView(props) {
|
|
|
1195
1196
|
}
|
|
1196
1197
|
|
|
1197
1198
|
// src/views/CSVSearchFilterView.tsx
|
|
1198
|
-
var
|
|
1199
|
+
var import_space_between2 = __toESM(require("@cloudscape-design/components/space-between"));
|
|
1199
1200
|
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
1200
1201
|
var CSV_SEARCH_FILTER_VIEW_SPEC = (parent, key) => ViewSpec.create(key, parent.ns, (spec) => ({
|
|
1201
1202
|
inputSearch: spec.addField(new FieldSpec("inputSearch")),
|
|
@@ -1204,7 +1205,7 @@ var CSV_SEARCH_FILTER_VIEW_SPEC = (parent, key) => ViewSpec.create(key, parent.n
|
|
|
1204
1205
|
function CSVSearchFilterView(props) {
|
|
1205
1206
|
const spec = props.viewSpec;
|
|
1206
1207
|
const { elements } = spec;
|
|
1207
|
-
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
1208
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_space_between2.default, { size: "s", direction: "horizontal", children: [
|
|
1208
1209
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { style: { minWidth: "320px" }, children: props.inputSearch === void 0 || typeof props.inputSearch === "string" ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1209
1210
|
CSInput,
|
|
1210
1211
|
{
|
|
@@ -1235,7 +1236,9 @@ function CSVSearchFilterView(props) {
|
|
|
1235
1236
|
}
|
|
1236
1237
|
|
|
1237
1238
|
// src/views/CSVTextPromptModalView.tsx
|
|
1238
|
-
var
|
|
1239
|
+
var import_box3 = __toESM(require("@cloudscape-design/components/box"));
|
|
1240
|
+
var import_modal = __toESM(require("@cloudscape-design/components/modal"));
|
|
1241
|
+
var import_space_between3 = __toESM(require("@cloudscape-design/components/space-between"));
|
|
1239
1242
|
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
1240
1243
|
var CSV_TEXT_PROMPT_MODAL_VIEW_SPEC = (parent, key) => ViewSpec.create(key, parent.ns, (spec) => ({
|
|
1241
1244
|
headerHeading: spec.addField(new FieldSpec("headerHeading")),
|
|
@@ -1257,7 +1260,7 @@ function CSVTextPromptModalView(props) {
|
|
|
1257
1260
|
}
|
|
1258
1261
|
) : props.buttonSecondary : /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_jsx_runtime28.Fragment, {});
|
|
1259
1262
|
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1260
|
-
|
|
1263
|
+
import_modal.default,
|
|
1261
1264
|
{
|
|
1262
1265
|
"data-testid": props.viewSpec.getDataTestId(),
|
|
1263
1266
|
onDismiss: props.onDismiss,
|
|
@@ -1270,7 +1273,7 @@ function CSVTextPromptModalView(props) {
|
|
|
1270
1273
|
children: props.headerHeading
|
|
1271
1274
|
}
|
|
1272
1275
|
) : props.headerHeading,
|
|
1273
|
-
footer: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1276
|
+
footer: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_box3.default, { float: "right", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_space_between3.default, { direction: "horizontal", size: "l", children: [
|
|
1274
1277
|
props.buttonPrimary === void 0 || typeof props.buttonPrimary === "string" ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1275
1278
|
CSButton,
|
|
1276
1279
|
{
|
package/dist/index.mjs
CHANGED
|
@@ -912,7 +912,8 @@ function CSVEnumRatingView(props) {
|
|
|
912
912
|
}
|
|
913
913
|
|
|
914
914
|
// src/views/CSVNoItemsView.tsx
|
|
915
|
-
import
|
|
915
|
+
import Box2 from "@cloudscape-design/components/box";
|
|
916
|
+
import SpaceBetween from "@cloudscape-design/components/space-between";
|
|
916
917
|
import { jsx as jsx25, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
917
918
|
var CSV_NO_ITEMS_VIEW_SPEC = (ns) => ViewSpec.create("CSVNoItemsView", ns, (spec) => ({
|
|
918
919
|
boxHeading: spec.addField(new FieldSpec("boxHeading")),
|
|
@@ -1116,7 +1117,9 @@ function CSVSearchFilterView(props) {
|
|
|
1116
1117
|
}
|
|
1117
1118
|
|
|
1118
1119
|
// src/views/CSVTextPromptModalView.tsx
|
|
1119
|
-
import
|
|
1120
|
+
import Box3 from "@cloudscape-design/components/box";
|
|
1121
|
+
import Modal from "@cloudscape-design/components/modal";
|
|
1122
|
+
import SpaceBetween3 from "@cloudscape-design/components/space-between";
|
|
1120
1123
|
import { Fragment, jsx as jsx28, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1121
1124
|
var CSV_TEXT_PROMPT_MODAL_VIEW_SPEC = (parent, key) => ViewSpec.create(key, parent.ns, (spec) => ({
|
|
1122
1125
|
headerHeading: spec.addField(new FieldSpec("headerHeading")),
|