@elliemae/ds-shuttle-v2 3.57.0-next.6 → 3.57.0-next.7

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.
@@ -0,0 +1,142 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from === "object" || typeof from === "function") {
10
+ for (let key of __getOwnPropNames(from))
11
+ if (!__hasOwnProp.call(to, key) && key !== except)
12
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
+ }
14
+ return to;
15
+ };
16
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
+ // If the importer is in node compatibility mode or this is not an ESM
18
+ // file that has been converted to a CommonJS file using a Babel-
19
+ // compatible transform (i.e. "__esModule" has not been set), then set
20
+ // "default" to the CommonJS "module.exports" for node compatibility.
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
+ mod
23
+ ));
24
+ var React = __toESM(require("react"));
25
+ var import_jsx_runtime = require("react/jsx-runtime");
26
+ var import__ = require("../index.js");
27
+ var import_react_desc_prop_types = require("../react-desc-prop-types.js");
28
+ const testRequiredProps = {
29
+ destinationData: [],
30
+ sourceData: [],
31
+ DestinationHeader: () => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: "Destination" }),
32
+ SourceHeader: () => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: "Source" }),
33
+ destinationSelectedItems: {},
34
+ sourceSelectedItems: {},
35
+ onDestinationSelectionChange: () => null,
36
+ onSourceSelectionChange: () => null,
37
+ getId: (item) => item.dsId,
38
+ getLabel: (item) => item.label,
39
+ onDestinationDrilldown: () => null,
40
+ onSourceDrilldown: () => null
41
+ };
42
+ const testOptionalProps = {
43
+ sourceItemProps: {},
44
+ destinationItemProps: {},
45
+ sourceHeaderProps: {},
46
+ destinationHeaderProps: {},
47
+ // filtering
48
+ sourceShowSearchbar: true,
49
+ destinationShowSearchbar: true,
50
+ onSourceOpenSearchbar: () => null,
51
+ onDesinationOpenSearchbar: () => null,
52
+ sourceFilterValue: "",
53
+ destinationFilterValue: "",
54
+ onSourceFilterChange: (value) => null,
55
+ onDestinationFilterChange: (value) => null,
56
+ moveButtonProps: () => ({}),
57
+ drillDownButtonProps: () => ({}),
58
+ checkboxSelectAllProps: () => ({}),
59
+ dsShuttleV2ListWrapperMid: () => ({}),
60
+ areaSearchBarProps: () => ({})
61
+ };
62
+ const testPartialDefaults = import_react_desc_prop_types.defaultProps;
63
+ const testProps = {
64
+ ...testRequiredProps,
65
+ ...testOptionalProps,
66
+ ...testPartialDefaults
67
+ };
68
+ const testPropsAsSyntax = {
69
+ ...testRequiredProps,
70
+ ...testOptionalProps,
71
+ ...testPartialDefaults
72
+ };
73
+ const testCompleteDefaults = import_react_desc_prop_types.defaultProps;
74
+ const testInternalProps = {
75
+ ...testRequiredProps,
76
+ ...testOptionalProps,
77
+ ...testCompleteDefaults
78
+ };
79
+ const testInternalPropsAsSyntax = {
80
+ ...testRequiredProps,
81
+ ...testOptionalProps,
82
+ ...testCompleteDefaults
83
+ };
84
+ const testExplicitDefinition = {
85
+ destinationData: [],
86
+ sourceData: [],
87
+ DestinationHeader: () => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: "Destination" }),
88
+ SourceHeader: () => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: "Source" }),
89
+ destinationSelectedItems: {},
90
+ sourceSelectedItems: {},
91
+ onDestinationSelectionChange: () => null,
92
+ onSourceSelectionChange: () => null,
93
+ getId: (item) => item.dsId,
94
+ getLabel: (item) => item.label,
95
+ onDestinationDrilldown: () => null,
96
+ onSourceDrilldown: () => null
97
+ };
98
+ const testInferedTypeCompatibility = {
99
+ destinationData: [],
100
+ sourceData: [],
101
+ DestinationHeader: () => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: "Destination" }),
102
+ SourceHeader: () => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: "Source" }),
103
+ destinationSelectedItems: {},
104
+ sourceSelectedItems: {},
105
+ onDestinationSelectionChange: () => null,
106
+ onSourceSelectionChange: () => null,
107
+ getId: (item) => item.dsId,
108
+ getLabel: (item) => item.label,
109
+ onDestinationDrilldown: () => null,
110
+ onSourceDrilldown: () => null
111
+ };
112
+ const BreadCrumb = () => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: "Breadcrumb" });
113
+ const ExampleUsageComponent = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
114
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.DSShuttleV2, { ...testExplicitDefinition }),
115
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.DSShuttleV2, { ...testInferedTypeCompatibility }),
116
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
117
+ import__.DSShuttleV2,
118
+ {
119
+ destinationData: [],
120
+ sourceData: [],
121
+ DestinationHeader: BreadCrumb,
122
+ SourceHeader: BreadCrumb,
123
+ destinationSelectedItems: {},
124
+ sourceSelectedItems: {},
125
+ onDestinationSelectionChange: () => null,
126
+ onSourceSelectionChange: () => null,
127
+ getId: (item) => item.dsId,
128
+ getLabel: (item) => item.label,
129
+ onDestinationDrilldown: () => null,
130
+ onSourceDrilldown: () => null,
131
+ sourceShowSearchbar: true,
132
+ destinationShowSearchbar: true,
133
+ onSourceOpenSearchbar: () => null,
134
+ onDesinationOpenSearchbar: () => null,
135
+ sourceFilterValue: "",
136
+ destinationFilterValue: "",
137
+ onSourceFilterChange: (value) => null,
138
+ onDestinationFilterChange: (value) => null
139
+ }
140
+ )
141
+ ] });
142
+ //# sourceMappingURL=typescript-shuttle-v2-valid.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/typescript-testing/typescript-shuttle-v2-valid.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-unused-vars, no-unused-vars */\nimport { DSShuttleV2 } from '../index.js';\nimport type { DSShuttleV2T } from '../index.js';\nimport { defaultProps } from '../react-desc-prop-types.js';\n\n// test we expose the namespace and the namespace follows our deliverable conventions\ntype ComponentPropsForApp = DSShuttleV2T.Props<object, object, object, object>;\ntype ComponentPropsInternals = DSShuttleV2T.InternalProps<object, object, object, object>;\ntype ComponentPropsDefaultProps = DSShuttleV2T.DefaultProps<object>;\ntype ComponentPropsOptionalProps = DSShuttleV2T.OptionalProps;\ntype ComponentPropsRequiredProps = DSShuttleV2T.RequiredProps<object, object, object>;\n\nconst testRequiredProps: ComponentPropsRequiredProps = {\n destinationData: [],\n sourceData: [],\n DestinationHeader: () => <div>Destination</div>,\n SourceHeader: () => <div>Source</div>,\n destinationSelectedItems: {},\n sourceSelectedItems: {},\n onDestinationSelectionChange: () => null,\n onSourceSelectionChange: () => null,\n getId: (item) => (item as { dsId: string }).dsId,\n getLabel: (item) => (item as { label: string }).label,\n onDestinationDrilldown: () => null,\n onSourceDrilldown: () => null,\n};\nconst testOptionalProps: ComponentPropsOptionalProps = {\n sourceItemProps: {},\n destinationItemProps: {},\n sourceHeaderProps: {},\n destinationHeaderProps: {},\n // filtering\n sourceShowSearchbar: true,\n destinationShowSearchbar: true,\n onSourceOpenSearchbar: () => null,\n onDesinationOpenSearchbar: () => null,\n sourceFilterValue: '',\n destinationFilterValue: '',\n onSourceFilterChange: (value: string) => null,\n onDestinationFilterChange: (value: string) => null,\n\n moveButtonProps: () => ({}),\n drillDownButtonProps: () => ({}),\n\n checkboxSelectAllProps: () => ({}),\n dsShuttleV2ListWrapperMid: () => ({}),\n areaSearchBarProps: () => ({}),\n};\n\n// difference Props and InternalProps is that InternalProps has all the default props filled in\n// Props allows for partial defaults\nconst testPartialDefaults: Partial<ComponentPropsDefaultProps> = defaultProps;\nconst testProps: ComponentPropsForApp = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testPartialDefaults,\n};\nconst testPropsAsSyntax = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testPartialDefaults,\n} as ComponentPropsForApp;\n// InternalProps requires all defaults to be filled in\nconst testCompleteDefaults: Required<ComponentPropsDefaultProps> = defaultProps;\nconst testInternalProps: ComponentPropsInternals = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testCompleteDefaults,\n};\nconst testInternalPropsAsSyntax = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testCompleteDefaults,\n} as ComponentPropsInternals;\n\n// using the explicit type definition, if there is an error, it will be marked on the key that is wrong\nconst testExplicitDefinition: ComponentPropsForApp = {\n destinationData: [],\n sourceData: [],\n DestinationHeader: () => <div>Destination</div>,\n SourceHeader: () => <div>Source</div>,\n destinationSelectedItems: {},\n sourceSelectedItems: {},\n onDestinationSelectionChange: () => null,\n onSourceSelectionChange: () => null,\n getId: (item) => (item as { dsId: string }).dsId,\n getLabel: (item) => (item as { label: string }).label,\n onDestinationDrilldown: () => null,\n onSourceDrilldown: () => null,\n};\n\n// using the \"as\" syntax, if there is an error, it will be marking the whole object as wrong because it is not compatible with the type\nconst testInferedTypeCompatibility = {\n destinationData: [],\n sourceData: [],\n DestinationHeader: () => <div>Destination</div>,\n SourceHeader: () => <div>Source</div>,\n destinationSelectedItems: {},\n sourceSelectedItems: {},\n onDestinationSelectionChange: () => null,\n onSourceSelectionChange: () => null,\n getId: (item) => (item as { dsId: string }).dsId,\n getLabel: (item) => (item as { label: string }).label,\n onDestinationDrilldown: () => null,\n onSourceDrilldown: () => null,\n} as ComponentPropsForApp;\n\nconst BreadCrumb = () => <div>Breadcrumb</div>;\n\nconst ExampleUsageComponent = () => (\n <>\n {/* works with explicitly casted props, all syntaxes */}\n <DSShuttleV2 {...testExplicitDefinition} />\n <DSShuttleV2 {...testInferedTypeCompatibility} />\n {/* works with inline values */}\n <DSShuttleV2\n destinationData={[]}\n sourceData={[]}\n DestinationHeader={BreadCrumb}\n SourceHeader={BreadCrumb}\n destinationSelectedItems={{}}\n sourceSelectedItems={{}}\n onDestinationSelectionChange={() => null}\n onSourceSelectionChange={() => null}\n getId={(item) => (item as { dsId: string }).dsId}\n getLabel={(item) => (item as { label: string }).label}\n onDestinationDrilldown={() => null}\n onSourceDrilldown={() => null}\n sourceShowSearchbar\n destinationShowSearchbar\n onSourceOpenSearchbar={() => null}\n onDesinationOpenSearchbar={() => null}\n sourceFilterValue=\"\"\n destinationFilterValue=\"\"\n onSourceFilterChange={(value: string) => null}\n onDestinationFilterChange={(value: string) => null}\n />\n </>\n);\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA,YAAuB;ACeI;AAd3B,eAA4B;AAE5B,mCAA6B;AAS7B,MAAM,oBAAiD;AAAA,EACrD,iBAAiB,CAAC;AAAA,EAClB,YAAY,CAAC;AAAA,EACb,mBAAmB,MAAM,4CAAC,SAAI,yBAAW;AAAA,EACzC,cAAc,MAAM,4CAAC,SAAI,oBAAM;AAAA,EAC/B,0BAA0B,CAAC;AAAA,EAC3B,qBAAqB,CAAC;AAAA,EACtB,8BAA8B,MAAM;AAAA,EACpC,yBAAyB,MAAM;AAAA,EAC/B,OAAO,CAAC,SAAU,KAA0B;AAAA,EAC5C,UAAU,CAAC,SAAU,KAA2B;AAAA,EAChD,wBAAwB,MAAM;AAAA,EAC9B,mBAAmB,MAAM;AAC3B;AACA,MAAM,oBAAiD;AAAA,EACrD,iBAAiB,CAAC;AAAA,EAClB,sBAAsB,CAAC;AAAA,EACvB,mBAAmB,CAAC;AAAA,EACpB,wBAAwB,CAAC;AAAA;AAAA,E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,yBAAW;AAAA,EACzC,cAAc,MAAM,4CAAC,SAAI,oBAAM;AAAA,EAC/B,0BAA0B,CAAC;AAAA,EAC3B,qBAAqB,CAAC;AAAA,EACtB,8BAA8B,MAAM;AAAA,EACpC,yBAAyB,MAAM;AAAA,EAC/B,OAAO,CAAC,SAAU,KAA0B;AAAA,EAC5C,UAAU,CAAC,SAAU,KAA2B;AAAA,EAChD,wBAAwB,MAAM;AAAA,EAC9B,mBAAmB,MAAM;AAC3B;AAEA,MAAM,aAAa,MAAM,4CAAC,SAAI,wBAAU;AAExC,MAAM,wBAAwB,MAC5B,4EAEE;AAAA,8CAAC,wBAAa,GAAG,wBAAwB;AAAA,EACzC,4CAAC,wBAAa,GAAG,8BAA8B;AAAA,EAE/C;AAAA,IAAC;AAAA;AAAA,MACC,iBAAiB,CAAC;AAAA,MAClB,YAAY,CAAC;AAAA,MACb,mBAAmB;AAAA,MACnB,cAAc;AAAA,MACd,0BAA0B,CAAC;AAAA,MAC3B,qBAAqB,CAAC;AAAA,MACtB,8BAA8B,MAAM;AAAA,MACpC,yBAAyB,MAAM;AAAA,MAC/B,OAAO,CAAC,SAAU,KAA0B;AAAA,MAC5C,UAAU,CAAC,SAAU,KAA2B;AAAA,MAChD,wBAAwB,MAAM;AAAA,MAC9B,mBAAmB,MAAM;AAAA,MACzB,qBAAmB;AAAA,MACnB,0BAAwB;AAAA,MACxB,uBAAuB,MAAM;AAAA,MAC7B,2BAA2B,MAAM;AAAA,MACjC,mBAAkB;AAAA,MAClB,wBAAuB;AAAA,MACvB,sBAAsB,CAAC,UAAkB;AAAA,MACzC,2BAA2B,CAAC,UAAkB;AAAA;AAAA,EAChD;AAAA,GACF;",
6
+ "names": []
7
+ }
@@ -0,0 +1,119 @@
1
+ import * as React from "react";
2
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
+ import { DSShuttleV2 } from "../index.js";
4
+ import { defaultProps } from "../react-desc-prop-types.js";
5
+ const testRequiredProps = {
6
+ destinationData: [],
7
+ sourceData: [],
8
+ DestinationHeader: () => /* @__PURE__ */ jsx("div", { children: "Destination" }),
9
+ SourceHeader: () => /* @__PURE__ */ jsx("div", { children: "Source" }),
10
+ destinationSelectedItems: {},
11
+ sourceSelectedItems: {},
12
+ onDestinationSelectionChange: () => null,
13
+ onSourceSelectionChange: () => null,
14
+ getId: (item) => item.dsId,
15
+ getLabel: (item) => item.label,
16
+ onDestinationDrilldown: () => null,
17
+ onSourceDrilldown: () => null
18
+ };
19
+ const testOptionalProps = {
20
+ sourceItemProps: {},
21
+ destinationItemProps: {},
22
+ sourceHeaderProps: {},
23
+ destinationHeaderProps: {},
24
+ // filtering
25
+ sourceShowSearchbar: true,
26
+ destinationShowSearchbar: true,
27
+ onSourceOpenSearchbar: () => null,
28
+ onDesinationOpenSearchbar: () => null,
29
+ sourceFilterValue: "",
30
+ destinationFilterValue: "",
31
+ onSourceFilterChange: (value) => null,
32
+ onDestinationFilterChange: (value) => null,
33
+ moveButtonProps: () => ({}),
34
+ drillDownButtonProps: () => ({}),
35
+ checkboxSelectAllProps: () => ({}),
36
+ dsShuttleV2ListWrapperMid: () => ({}),
37
+ areaSearchBarProps: () => ({})
38
+ };
39
+ const testPartialDefaults = defaultProps;
40
+ const testProps = {
41
+ ...testRequiredProps,
42
+ ...testOptionalProps,
43
+ ...testPartialDefaults
44
+ };
45
+ const testPropsAsSyntax = {
46
+ ...testRequiredProps,
47
+ ...testOptionalProps,
48
+ ...testPartialDefaults
49
+ };
50
+ const testCompleteDefaults = defaultProps;
51
+ const testInternalProps = {
52
+ ...testRequiredProps,
53
+ ...testOptionalProps,
54
+ ...testCompleteDefaults
55
+ };
56
+ const testInternalPropsAsSyntax = {
57
+ ...testRequiredProps,
58
+ ...testOptionalProps,
59
+ ...testCompleteDefaults
60
+ };
61
+ const testExplicitDefinition = {
62
+ destinationData: [],
63
+ sourceData: [],
64
+ DestinationHeader: () => /* @__PURE__ */ jsx("div", { children: "Destination" }),
65
+ SourceHeader: () => /* @__PURE__ */ jsx("div", { children: "Source" }),
66
+ destinationSelectedItems: {},
67
+ sourceSelectedItems: {},
68
+ onDestinationSelectionChange: () => null,
69
+ onSourceSelectionChange: () => null,
70
+ getId: (item) => item.dsId,
71
+ getLabel: (item) => item.label,
72
+ onDestinationDrilldown: () => null,
73
+ onSourceDrilldown: () => null
74
+ };
75
+ const testInferedTypeCompatibility = {
76
+ destinationData: [],
77
+ sourceData: [],
78
+ DestinationHeader: () => /* @__PURE__ */ jsx("div", { children: "Destination" }),
79
+ SourceHeader: () => /* @__PURE__ */ jsx("div", { children: "Source" }),
80
+ destinationSelectedItems: {},
81
+ sourceSelectedItems: {},
82
+ onDestinationSelectionChange: () => null,
83
+ onSourceSelectionChange: () => null,
84
+ getId: (item) => item.dsId,
85
+ getLabel: (item) => item.label,
86
+ onDestinationDrilldown: () => null,
87
+ onSourceDrilldown: () => null
88
+ };
89
+ const BreadCrumb = () => /* @__PURE__ */ jsx("div", { children: "Breadcrumb" });
90
+ const ExampleUsageComponent = () => /* @__PURE__ */ jsxs(Fragment, { children: [
91
+ /* @__PURE__ */ jsx(DSShuttleV2, { ...testExplicitDefinition }),
92
+ /* @__PURE__ */ jsx(DSShuttleV2, { ...testInferedTypeCompatibility }),
93
+ /* @__PURE__ */ jsx(
94
+ DSShuttleV2,
95
+ {
96
+ destinationData: [],
97
+ sourceData: [],
98
+ DestinationHeader: BreadCrumb,
99
+ SourceHeader: BreadCrumb,
100
+ destinationSelectedItems: {},
101
+ sourceSelectedItems: {},
102
+ onDestinationSelectionChange: () => null,
103
+ onSourceSelectionChange: () => null,
104
+ getId: (item) => item.dsId,
105
+ getLabel: (item) => item.label,
106
+ onDestinationDrilldown: () => null,
107
+ onSourceDrilldown: () => null,
108
+ sourceShowSearchbar: true,
109
+ destinationShowSearchbar: true,
110
+ onSourceOpenSearchbar: () => null,
111
+ onDesinationOpenSearchbar: () => null,
112
+ sourceFilterValue: "",
113
+ destinationFilterValue: "",
114
+ onSourceFilterChange: (value) => null,
115
+ onDestinationFilterChange: (value) => null
116
+ }
117
+ )
118
+ ] });
119
+ //# sourceMappingURL=typescript-shuttle-v2-valid.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/typescript-testing/typescript-shuttle-v2-valid.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-unused-vars, no-unused-vars */\nimport { DSShuttleV2 } from '../index.js';\nimport type { DSShuttleV2T } from '../index.js';\nimport { defaultProps } from '../react-desc-prop-types.js';\n\n// test we expose the namespace and the namespace follows our deliverable conventions\ntype ComponentPropsForApp = DSShuttleV2T.Props<object, object, object, object>;\ntype ComponentPropsInternals = DSShuttleV2T.InternalProps<object, object, object, object>;\ntype ComponentPropsDefaultProps = DSShuttleV2T.DefaultProps<object>;\ntype ComponentPropsOptionalProps = DSShuttleV2T.OptionalProps;\ntype ComponentPropsRequiredProps = DSShuttleV2T.RequiredProps<object, object, object>;\n\nconst testRequiredProps: ComponentPropsRequiredProps = {\n destinationData: [],\n sourceData: [],\n DestinationHeader: () => <div>Destination</div>,\n SourceHeader: () => <div>Source</div>,\n destinationSelectedItems: {},\n sourceSelectedItems: {},\n onDestinationSelectionChange: () => null,\n onSourceSelectionChange: () => null,\n getId: (item) => (item as { dsId: string }).dsId,\n getLabel: (item) => (item as { label: string }).label,\n onDestinationDrilldown: () => null,\n onSourceDrilldown: () => null,\n};\nconst testOptionalProps: ComponentPropsOptionalProps = {\n sourceItemProps: {},\n destinationItemProps: {},\n sourceHeaderProps: {},\n destinationHeaderProps: {},\n // filtering\n sourceShowSearchbar: true,\n destinationShowSearchbar: true,\n onSourceOpenSearchbar: () => null,\n onDesinationOpenSearchbar: () => null,\n sourceFilterValue: '',\n destinationFilterValue: '',\n onSourceFilterChange: (value: string) => null,\n onDestinationFilterChange: (value: string) => null,\n\n moveButtonProps: () => ({}),\n drillDownButtonProps: () => ({}),\n\n checkboxSelectAllProps: () => ({}),\n dsShuttleV2ListWrapperMid: () => ({}),\n areaSearchBarProps: () => ({}),\n};\n\n// difference Props and InternalProps is that InternalProps has all the default props filled in\n// Props allows for partial defaults\nconst testPartialDefaults: Partial<ComponentPropsDefaultProps> = defaultProps;\nconst testProps: ComponentPropsForApp = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testPartialDefaults,\n};\nconst testPropsAsSyntax = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testPartialDefaults,\n} as ComponentPropsForApp;\n// InternalProps requires all defaults to be filled in\nconst testCompleteDefaults: Required<ComponentPropsDefaultProps> = defaultProps;\nconst testInternalProps: ComponentPropsInternals = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testCompleteDefaults,\n};\nconst testInternalPropsAsSyntax = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testCompleteDefaults,\n} as ComponentPropsInternals;\n\n// using the explicit type definition, if there is an error, it will be marked on the key that is wrong\nconst testExplicitDefinition: ComponentPropsForApp = {\n destinationData: [],\n sourceData: [],\n DestinationHeader: () => <div>Destination</div>,\n SourceHeader: () => <div>Source</div>,\n destinationSelectedItems: {},\n sourceSelectedItems: {},\n onDestinationSelectionChange: () => null,\n onSourceSelectionChange: () => null,\n getId: (item) => (item as { dsId: string }).dsId,\n getLabel: (item) => (item as { label: string }).label,\n onDestinationDrilldown: () => null,\n onSourceDrilldown: () => null,\n};\n\n// using the \"as\" syntax, if there is an error, it will be marking the whole object as wrong because it is not compatible with the type\nconst testInferedTypeCompatibility = {\n destinationData: [],\n sourceData: [],\n DestinationHeader: () => <div>Destination</div>,\n SourceHeader: () => <div>Source</div>,\n destinationSelectedItems: {},\n sourceSelectedItems: {},\n onDestinationSelectionChange: () => null,\n onSourceSelectionChange: () => null,\n getId: (item) => (item as { dsId: string }).dsId,\n getLabel: (item) => (item as { label: string }).label,\n onDestinationDrilldown: () => null,\n onSourceDrilldown: () => null,\n} as ComponentPropsForApp;\n\nconst BreadCrumb = () => <div>Breadcrumb</div>;\n\nconst ExampleUsageComponent = () => (\n <>\n {/* works with explicitly casted props, all syntaxes */}\n <DSShuttleV2 {...testExplicitDefinition} />\n <DSShuttleV2 {...testInferedTypeCompatibility} />\n {/* works with inline values */}\n <DSShuttleV2\n destinationData={[]}\n sourceData={[]}\n DestinationHeader={BreadCrumb}\n SourceHeader={BreadCrumb}\n destinationSelectedItems={{}}\n sourceSelectedItems={{}}\n onDestinationSelectionChange={() => null}\n onSourceSelectionChange={() => null}\n getId={(item) => (item as { dsId: string }).dsId}\n getLabel={(item) => (item as { label: string }).label}\n onDestinationDrilldown={() => null}\n onSourceDrilldown={() => null}\n sourceShowSearchbar\n destinationShowSearchbar\n onSourceOpenSearchbar={() => null}\n onDesinationOpenSearchbar={() => null}\n sourceFilterValue=\"\"\n destinationFilterValue=\"\"\n onSourceFilterChange={(value: string) => null}\n onDestinationFilterChange={(value: string) => null}\n />\n </>\n);\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACeI,SA+FzB,UA/FyB,KA+FzB,YA/FyB;AAd3B,SAAS,mBAAmB;AAE5B,SAAS,oBAAoB;AAS7B,MAAM,oBAAiD;AAAA,EACrD,iBAAiB,CAAC;AAAA,EAClB,YAAY,CAAC;AAAA,EACb,mBAAmB,MAAM,oBAAC,SAAI,yBAAW;AAAA,EACzC,cAAc,MAAM,oBAAC,SAAI,oBAAM;AAAA,EAC/B,0BAA0B,CAAC;AAAA,EAC3B,qBAAqB,CAAC;AAAA,EACtB,8BAA8B,MAAM;AAAA,EACpC,yBAAyB,MAAM;AAAA,EAC/B,OAAO,CAAC,SAAU,KAA0B;AAAA,EAC5C,UAAU,CAAC,SAAU,KAA2B;AAAA,EAChD,wBAAwB,MAAM;AAAA,EAC9B,mBAAmB,MAAM;AAC3B;AACA,MAAM,oBAAiD;AAAA,EACrD,iBAAiB,CAAC;AAAA,EAClB,sBAAsB,CAAC;AAAA,EACvB,mBAAmB,CAAC;AAAA,EACpB,wBAAw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mB,MAAM,oBAAC,SAAI,yBAAW;AAAA,EACzC,cAAc,MAAM,oBAAC,SAAI,oBAAM;AAAA,EAC/B,0BAA0B,CAAC;AAAA,EAC3B,qBAAqB,CAAC;AAAA,EACtB,8BAA8B,MAAM;AAAA,EACpC,yBAAyB,MAAM;AAAA,EAC/B,OAAO,CAAC,SAAU,KAA0B;AAAA,EAC5C,UAAU,CAAC,SAAU,KAA2B;AAAA,EAChD,wBAAwB,MAAM;AAAA,EAC9B,mBAAmB,MAAM;AAC3B;AAEA,MAAM,aAAa,MAAM,oBAAC,SAAI,wBAAU;AAExC,MAAM,wBAAwB,MAC5B,iCAEE;AAAA,sBAAC,eAAa,GAAG,wBAAwB;AAAA,EACzC,oBAAC,eAAa,GAAG,8BAA8B;AAAA,EAE/C;AAAA,IAAC;AAAA;AAAA,MACC,iBAAiB,CAAC;AAAA,MAClB,YAAY,CAAC;AAAA,MACb,mBAAmB;AAAA,MACnB,cAAc;AAAA,MACd,0BAA0B,CAAC;AAAA,MAC3B,qBAAqB,CAAC;AAAA,MACtB,8BAA8B,MAAM;AAAA,MACpC,yBAAyB,MAAM;AAAA,MAC/B,OAAO,CAAC,SAAU,KAA0B;AAAA,MAC5C,UAAU,CAAC,SAAU,KAA2B;AAAA,MAChD,wBAAwB,MAAM;AAAA,MAC9B,mBAAmB,MAAM;AAAA,MACzB,qBAAmB;AAAA,MACnB,0BAAwB;AAAA,MACxB,uBAAuB,MAAM;AAAA,MAC7B,2BAA2B,MAAM;AAAA,MACjC,mBAAkB;AAAA,MAClB,wBAAuB;AAAA,MACvB,sBAAsB,CAAC,UAAkB;AAAA,MACzC,2BAA2B,CAAC,UAAkB;AAAA;AAAA,EAChD;AAAA,GACF;",
6
+ "names": []
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-shuttle-v2",
3
- "version": "3.57.0-next.6",
3
+ "version": "3.57.0-next.7",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Shuttle v2",
6
6
  "files": [
@@ -38,34 +38,34 @@
38
38
  "dependencies": {
39
39
  "fast-deep-equal": "~3.1.3",
40
40
  "uid": "^2.0.2",
41
- "@elliemae/ds-button-v2": "3.57.0-next.6",
42
- "@elliemae/ds-circular-progress-indicator": "3.57.0-next.6",
43
- "@elliemae/ds-drag-and-drop": "3.57.0-next.6",
44
- "@elliemae/ds-form-checkbox": "3.57.0-next.6",
45
- "@elliemae/ds-fast-list": "3.57.0-next.6",
46
- "@elliemae/ds-form-input-text": "3.57.0-next.6",
47
- "@elliemae/ds-grid": "3.57.0-next.6",
48
- "@elliemae/ds-hooks-fontsize-detector": "3.57.0-next.6",
49
- "@elliemae/ds-hooks-headless-tooltip": "3.57.0-next.6",
50
- "@elliemae/ds-hooks-on-blur-out": "3.57.0-next.6",
51
- "@elliemae/ds-popperjs": "3.57.0-next.6",
52
- "@elliemae/ds-icons": "3.57.0-next.6",
53
- "@elliemae/ds-props-helpers": "3.57.0-next.6",
54
- "@elliemae/ds-system": "3.57.0-next.6",
55
- "@elliemae/ds-indeterminate-progress-indicator": "3.57.0-next.6",
56
- "@elliemae/ds-typescript-helpers": "3.57.0-next.6",
57
- "@elliemae/ds-typography": "3.57.0-next.6",
58
- "@elliemae/ds-zustand-helpers": "3.57.0-next.6"
41
+ "@elliemae/ds-button-v2": "3.57.0-next.7",
42
+ "@elliemae/ds-circular-progress-indicator": "3.57.0-next.7",
43
+ "@elliemae/ds-drag-and-drop": "3.57.0-next.7",
44
+ "@elliemae/ds-fast-list": "3.57.0-next.7",
45
+ "@elliemae/ds-form-checkbox": "3.57.0-next.7",
46
+ "@elliemae/ds-form-input-text": "3.57.0-next.7",
47
+ "@elliemae/ds-hooks-fontsize-detector": "3.57.0-next.7",
48
+ "@elliemae/ds-grid": "3.57.0-next.7",
49
+ "@elliemae/ds-hooks-headless-tooltip": "3.57.0-next.7",
50
+ "@elliemae/ds-hooks-on-blur-out": "3.57.0-next.7",
51
+ "@elliemae/ds-indeterminate-progress-indicator": "3.57.0-next.7",
52
+ "@elliemae/ds-icons": "3.57.0-next.7",
53
+ "@elliemae/ds-popperjs": "3.57.0-next.7",
54
+ "@elliemae/ds-props-helpers": "3.57.0-next.7",
55
+ "@elliemae/ds-system": "3.57.0-next.7",
56
+ "@elliemae/ds-typescript-helpers": "3.57.0-next.7",
57
+ "@elliemae/ds-typography": "3.57.0-next.7",
58
+ "@elliemae/ds-zustand-helpers": "3.57.0-next.7"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@elliemae/pui-cli": "9.0.0-next.65",
62
62
  "jest": "~29.7.0",
63
63
  "lodash-es": "^4.17.21",
64
64
  "styled-components": "~5.3.9",
65
- "@elliemae/ds-monorepo-devops": "3.57.0-next.6",
66
- "@elliemae/ds-test-utils": "3.57.0-next.6",
67
- "@elliemae/ds-tree-model": "3.57.0-next.6",
68
- "@elliemae/ds-breadcrumb": "3.57.0-next.6"
65
+ "@elliemae/ds-breadcrumb": "3.57.0-next.7",
66
+ "@elliemae/ds-monorepo-devops": "3.57.0-next.7",
67
+ "@elliemae/ds-test-utils": "3.57.0-next.7",
68
+ "@elliemae/ds-tree-model": "3.57.0-next.7"
69
69
  },
70
70
  "peerDependencies": {
71
71
  "lodash-es": "^4.17.21",