sag_components 1.0.490 → 1.0.492
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/stories/CampaignTool/Popup.stories.js +651 -39
- package/dist/stories/CampaignTool/PopupContent.stories.js +284 -0
- package/dist/stories/components/AttachedFile.js +2 -2
- package/dist/stories/components/CampaignTool/FormInput.js +40 -0
- package/dist/stories/components/CampaignTool/FormSelect.js +44 -0
- package/dist/stories/components/CampaignTool/Popup.js +92 -28
- package/dist/stories/components/CampaignTool/Popup.style.js +14 -12
- package/dist/stories/components/CampaignTool/PopupContent.js +110 -0
- package/dist/stories/components/CampaignTool/PopupContent.style.js +21 -0
- package/dist/stories/components/CampaignTool/PopupFieldsRules.js +168 -0
- package/dist/stories/components/Input.js +2 -3
- package/dist/stories/components/SagButton.js +66 -0
- package/dist/stories/components/SagButton.style.js +13 -0
- package/dist/stories/components/Select.js +84 -0
- package/dist/stories/components/Select.style.js +17 -0
- package/dist/stories/components/icons/MenuItemClosedIcon.js +27 -0
- package/dist/stories/components/icons/MenuItemOpenIcon.js +27 -0
- package/package.json +1 -1
- package/.history/.env_20231001120549 +0 -0
- package/.history/.env_20231001120613 +0 -1
- package/.history/.env_20231003143620 +0 -1
- package/.history/.eslintrc_20230928112617.js +0 -26
- package/.history/.eslintrc_20230928130534.js +0 -27
- package/.history/.eslintrc_20230928133400.js +0 -28
- package/.history/.eslintrc_20230928133404.js +0 -28
- package/.history/.eslintrc_20230928133416.js +0 -28
- package/.history/.eslintrc_20230928133419.js +0 -28
- package/.history/.eslintrc_20230928133432.js +0 -28
- package/.history/.eslintrc_20230928133439.js +0 -28
- package/.history/.eslintrc_20230928133458.js +0 -29
- package/.history/.eslintrc_20230928133500.js +0 -28
- package/.history/.eslintrc_20230928134009.js +0 -28
- package/.history/.eslintrc_20230928135318.js +0 -34
- package/.history/.eslintrc_20230928135321.js +0 -34
- package/.history/.eslintrc_20230928135323.js +0 -34
- package/.history/.eslintrc_20230928135332.js +0 -34
- package/.history/.eslintrc_20230928135333.js +0 -34
- package/.history/.eslintrc_20230928135352.js +0 -29
- package/.history/.eslintrc_20230928135353.js +0 -29
- package/.history/.eslintrc_20230928135355.js +0 -29
- package/.history/.eslintrc_20230928135408.js +0 -29
- package/.history/.eslintrc_20230928135538.js +0 -30
- package/.history/.eslintrc_20230928135539.js +0 -30
- package/.history/.eslintrc_20230928135543.js +0 -30
- package/.history/.gitignore_20230921093332 +0 -119
- package/.history/.gitignore_20230921111638 +0 -120
- package/.history/.gitignore_20230921111650 +0 -120
- package/.history/.gitignore_20230921111810 +0 -121
- package/.history/package-lock_20231114111138.json +0 -47810
- package/.history/package-lock_20231114111158.json +0 -47802
- package/.history/package_20231029152422.json +0 -82
- package/.history/package_20231029153420.json +0 -82
- package/.history/package_20231029154416.json +0 -82
- package/.history/package_20231030094127.json +0 -82
- package/.history/package_20231030114707.json +0 -82
- package/.history/package_20231030130704.json +0 -82
- package/.history/package_20231030132422.json +0 -82
- package/.history/package_20231030134051.json +0 -82
- package/.history/package_20231030142913.json +0 -82
- package/.history/package_20231030143556.json +0 -82
- package/.history/package_20231030144210.json +0 -82
- package/.history/package_20231101113942.json +0 -82
- package/.history/package_20231101114544.json +0 -82
- package/.history/package_20231101151518.json +0 -82
- package/.history/package_20231101154501.json +0 -82
- package/.history/package_20231101155811.json +0 -82
- package/.history/package_20231101160235.json +0 -82
- package/.history/package_20231101160406.json +0 -82
- package/.history/package_20231101161325.json +0 -82
- package/.history/package_20231101161333.json +0 -82
- package/.history/package_20231102123623.json +0 -82
- package/.history/package_20231102125741.json +0 -82
- package/.history/package_20231102130857.json +0 -82
- package/.history/package_20231102132227.json +0 -82
- package/.history/package_20231102142340.json +0 -82
- package/.history/package_20231102143256.json +0 -82
- package/.history/package_20231105153539.json +0 -82
- package/.history/package_20231105154332.json +0 -82
- package/.history/package_20231105171201.json +0 -82
- package/.history/package_20231106123849.json +0 -82
- package/.history/package_20231107170638.json +0 -82
- package/.history/package_20231109103647.json +0 -82
- package/.history/package_20231109103911.json +0 -82
- package/.history/package_20231109105426.json +0 -82
- package/.history/package_20231109132014.json +0 -82
- package/.history/package_20231109132115.json +0 -82
- package/.history/package_20231114100517.json +0 -82
- package/.history/package_20231114100859.json +0 -82
- package/.history/package_20231114101553.json +0 -82
- package/.history/package_20231114102545.json +0 -82
- package/.history/package_20231114111208.json +0 -83
- package/.history/package_20231114111515.json +0 -83
- package/.history/package_20231114112931.json +0 -83
- package/.history/package_20231114113014.json +0 -83
- package/.history/package_20231114113155.json +0 -83
- package/.history/package_20231114124318.json +0 -83
- package/.history/package_20231114125107.json +0 -83
- package/.history/package_20231114125510.json +0 -83
- package/.history/package_20231114132634.json +0 -83
- package/.history/package_20231116165815.json +0 -83
- package/.history/package_20231116165916.json +0 -83
- package/.history/package_20231119113637.json +0 -83
- package/.history/package_20231120100907.json +0 -83
- package/.history/package_20231121151523.json +0 -77
- package/.history/package_20231121155513.json +0 -77
- package/.history/package_20231121162434.json +0 -77
- package/.history/package_20231122100718.json +0 -77
- package/.history/package_20231128125149.json +0 -82
- package/.history/package_20231128125208.json +0 -82
|
@@ -7,79 +7,691 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = exports.ExamplePopup = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _Popup = _interopRequireDefault(require("../components/CampaignTool/Popup"));
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
////////////////////////////////////////////////// OFFER DETAILS DATA - START /////////////////////////////////////////////
|
|
11
|
+
const FieldsDataRow1OfferDetails = [{
|
|
12
|
+
name: "FundationSource",
|
|
13
|
+
label: "Fundation Source",
|
|
14
|
+
disabled: false,
|
|
15
|
+
required: true,
|
|
16
|
+
inputType: "dropdown",
|
|
17
|
+
showInfo: true,
|
|
18
|
+
infoText: "This is one of the Popup content's fields",
|
|
19
|
+
placeHolder: "Select Source",
|
|
20
|
+
dropdownOptions: [{
|
|
21
|
+
value: 1,
|
|
22
|
+
label: "Source 1"
|
|
23
|
+
}, {
|
|
24
|
+
value: 2,
|
|
25
|
+
label: "Source 2"
|
|
26
|
+
}, {
|
|
27
|
+
value: 3,
|
|
28
|
+
label: "Source 3"
|
|
29
|
+
}],
|
|
30
|
+
dropdownDefaultValue: null
|
|
13
31
|
}, {
|
|
14
|
-
|
|
15
|
-
|
|
32
|
+
name: "Category",
|
|
33
|
+
label: "Category",
|
|
34
|
+
disabled: false,
|
|
35
|
+
required: true,
|
|
36
|
+
inputType: "dropdown",
|
|
37
|
+
showInfo: true,
|
|
38
|
+
infoText: "This is one of the Popup content's fields",
|
|
39
|
+
placeHolder: "Select Category",
|
|
40
|
+
dropdownOptions: [{
|
|
41
|
+
value: 1,
|
|
42
|
+
label: "Category 1"
|
|
43
|
+
}, {
|
|
44
|
+
value: 2,
|
|
45
|
+
label: "Category 2"
|
|
46
|
+
}, {
|
|
47
|
+
value: 3,
|
|
48
|
+
label: "Category 3"
|
|
49
|
+
}],
|
|
50
|
+
dropdownDefaultValue: null
|
|
16
51
|
}, {
|
|
17
|
-
|
|
18
|
-
|
|
52
|
+
name: "Supplier",
|
|
53
|
+
label: "Supplier",
|
|
54
|
+
disabled: false,
|
|
55
|
+
required: true,
|
|
56
|
+
inputType: "dropdown",
|
|
57
|
+
showInfo: true,
|
|
58
|
+
infoText: "This is one of the Popup content's fields",
|
|
59
|
+
placeHolder: "Select Supplier",
|
|
60
|
+
dropdownOptions: [{
|
|
61
|
+
value: 1,
|
|
62
|
+
label: "Supplier 1"
|
|
63
|
+
}, {
|
|
64
|
+
value: 2,
|
|
65
|
+
label: "Supplier 2"
|
|
66
|
+
}, {
|
|
67
|
+
value: 3,
|
|
68
|
+
label: "Supplier 3"
|
|
69
|
+
}],
|
|
70
|
+
dropdownDefaultValue: null
|
|
71
|
+
}, {
|
|
72
|
+
name: "ContactName",
|
|
73
|
+
label: "Contact Name",
|
|
74
|
+
disabled: false,
|
|
75
|
+
required: true,
|
|
76
|
+
inputType: "textbox",
|
|
77
|
+
showInfo: true,
|
|
78
|
+
infoText: "This is one of the Popup content's fields",
|
|
79
|
+
placeHolder: "Enter Contact Name",
|
|
80
|
+
dropdownOptions: null,
|
|
81
|
+
dropdownDefaultValue: null
|
|
82
|
+
}];
|
|
83
|
+
const FieldsDataRow2OfferDetails = [{
|
|
84
|
+
name: "BrandName",
|
|
85
|
+
label: "Brand Name",
|
|
86
|
+
disabled: false,
|
|
87
|
+
required: false,
|
|
88
|
+
inputType: "dropdown",
|
|
89
|
+
showInfo: true,
|
|
90
|
+
infoText: "This is one of the Popup content's fields",
|
|
91
|
+
placeHolder: "Select Brand",
|
|
92
|
+
dropdownOptions: [{
|
|
93
|
+
value: 1,
|
|
94
|
+
label: "Brand 1"
|
|
95
|
+
}, {
|
|
96
|
+
value: 2,
|
|
97
|
+
label: "Brand 2"
|
|
98
|
+
}, {
|
|
99
|
+
value: 3,
|
|
100
|
+
label: "Brand 3"
|
|
101
|
+
}],
|
|
102
|
+
dropdownDefaultValue: null
|
|
103
|
+
}, {
|
|
104
|
+
name: "Budget",
|
|
105
|
+
label: "Budget",
|
|
106
|
+
disabled: false,
|
|
107
|
+
required: false,
|
|
108
|
+
inputType: "dropdown",
|
|
109
|
+
showInfo: true,
|
|
110
|
+
infoText: "This is one of the Popup content's fields",
|
|
111
|
+
placeHolder: "Select Budget",
|
|
112
|
+
dropdownOptions: [{
|
|
113
|
+
value: 1,
|
|
114
|
+
label: "Budget 1"
|
|
115
|
+
}, {
|
|
116
|
+
value: 2,
|
|
117
|
+
label: "Budget 2"
|
|
118
|
+
}, {
|
|
119
|
+
value: 3,
|
|
120
|
+
label: "Budget 3"
|
|
121
|
+
}],
|
|
122
|
+
dropdownDefaultValue: {
|
|
123
|
+
value: 1,
|
|
124
|
+
label: "Budget 1"
|
|
125
|
+
}
|
|
126
|
+
}, {
|
|
127
|
+
name: "CategoryManager",
|
|
128
|
+
label: "Category Manager",
|
|
129
|
+
disabled: false,
|
|
130
|
+
required: false,
|
|
131
|
+
inputType: "dropdown",
|
|
132
|
+
showInfo: true,
|
|
133
|
+
infoText: "This is one of the Popup content's fields",
|
|
134
|
+
placeHolder: "Select Category Manager",
|
|
135
|
+
dropdownOptions: [{
|
|
136
|
+
value: 1,
|
|
137
|
+
label: "Category Manager 1"
|
|
138
|
+
}, {
|
|
139
|
+
value: 2,
|
|
140
|
+
label: "Category Manager 2"
|
|
141
|
+
}, {
|
|
142
|
+
value: 3,
|
|
143
|
+
label: "Category Manager 3"
|
|
144
|
+
}],
|
|
145
|
+
dropdownDefaultValue: {
|
|
146
|
+
value: 3,
|
|
147
|
+
label: "Category Manager 3"
|
|
148
|
+
}
|
|
149
|
+
}, {
|
|
150
|
+
name: "ContactEmail",
|
|
151
|
+
label: "Contact Email",
|
|
152
|
+
disabled: false,
|
|
153
|
+
required: true,
|
|
154
|
+
inputType: "textbox",
|
|
155
|
+
showInfo: true,
|
|
156
|
+
infoText: "This is one of the Popup content's fields",
|
|
157
|
+
placeHolder: "Enter Contact Email",
|
|
158
|
+
dropdownOptions: null,
|
|
159
|
+
dropdownDefaultValue: null
|
|
160
|
+
}];
|
|
161
|
+
const FieldsDataRow3OfferDetails = [{
|
|
162
|
+
name: "Broker",
|
|
163
|
+
label: "Broker",
|
|
164
|
+
disabled: false,
|
|
165
|
+
required: false,
|
|
166
|
+
inputType: "dropdown",
|
|
167
|
+
showInfo: true,
|
|
168
|
+
infoText: "This is one of the Popup content's fields",
|
|
169
|
+
placeHolder: "Select Broker",
|
|
170
|
+
dropdownOptions: [{
|
|
171
|
+
value: 1,
|
|
172
|
+
label: "Broker 1"
|
|
173
|
+
}, {
|
|
174
|
+
value: 2,
|
|
175
|
+
label: "Broker 2"
|
|
176
|
+
}, {
|
|
177
|
+
value: 3,
|
|
178
|
+
label: "Broker 3"
|
|
179
|
+
}],
|
|
180
|
+
dropdownDefaultValue: null
|
|
181
|
+
}, {
|
|
182
|
+
name: "SupplierOfferID",
|
|
183
|
+
label: "Supplier Offer ID",
|
|
184
|
+
disabled: false,
|
|
185
|
+
required: false,
|
|
186
|
+
inputType: "textbox",
|
|
187
|
+
showInfo: true,
|
|
188
|
+
infoText: "This is one of the Popup content's fields",
|
|
189
|
+
placeHolder: "Enter Supplier Offer ID",
|
|
190
|
+
dropdownOptions: null,
|
|
191
|
+
dropdownDefaultValue: null
|
|
192
|
+
}, {
|
|
193
|
+
name: "VendorID",
|
|
194
|
+
label: "Vendor ID",
|
|
195
|
+
disabled: false,
|
|
196
|
+
required: false,
|
|
197
|
+
inputType: "textbox",
|
|
198
|
+
showInfo: true,
|
|
199
|
+
infoText: "This is one of the Popup content's fields",
|
|
200
|
+
placeHolder: "Enter Vendor ID",
|
|
201
|
+
dropdownOptions: null,
|
|
202
|
+
dropdownDefaultValue: null
|
|
203
|
+
}, {
|
|
204
|
+
name: "ContactPhone",
|
|
205
|
+
label: "Contact Phone",
|
|
206
|
+
disabled: false,
|
|
207
|
+
required: true,
|
|
208
|
+
inputType: "textbox",
|
|
209
|
+
showInfo: true,
|
|
210
|
+
infoText: "This is one of the Popup content's fields",
|
|
211
|
+
placeHolder: "Enter Contact Phone",
|
|
212
|
+
dropdownOptions: null,
|
|
213
|
+
dropdownDefaultValue: null
|
|
214
|
+
}];
|
|
215
|
+
const RowsDataOfferDetails = [{
|
|
216
|
+
fieldsArray: FieldsDataRow1OfferDetails
|
|
217
|
+
}, {
|
|
218
|
+
fieldsArray: FieldsDataRow2OfferDetails
|
|
219
|
+
}, {
|
|
220
|
+
fieldsArray: FieldsDataRow3OfferDetails
|
|
221
|
+
}];
|
|
222
|
+
////////////////////////////////////////////////// OFFER DETAILS DATA - END /////////////////////////////////////////////
|
|
223
|
+
|
|
224
|
+
////////////////////////////////////////////////// TARGETING DATA - START /////////////////////////////////////////////
|
|
225
|
+
const FieldsDataRow1Targeting = [{
|
|
226
|
+
name: "TargetAudienceType",
|
|
227
|
+
label: "Target Audience Type",
|
|
228
|
+
disabled: false,
|
|
229
|
+
required: false,
|
|
230
|
+
inputType: "dropdown",
|
|
231
|
+
showInfo: true,
|
|
232
|
+
infoText: "This is one of the Popup content's fields",
|
|
233
|
+
placeHolder: "Select Audience Type",
|
|
234
|
+
dropdownOptions: [{
|
|
235
|
+
value: 1,
|
|
236
|
+
label: "Audience Type 1"
|
|
237
|
+
}, {
|
|
238
|
+
value: 2,
|
|
239
|
+
label: "Audience Type 2"
|
|
240
|
+
}, {
|
|
241
|
+
value: 3,
|
|
242
|
+
label: "Audience Type 3"
|
|
243
|
+
}],
|
|
244
|
+
dropdownDefaultValue: null
|
|
245
|
+
}, {
|
|
246
|
+
name: "MaxIssuances",
|
|
247
|
+
label: "Max Issuances",
|
|
248
|
+
disabled: false,
|
|
249
|
+
required: false,
|
|
250
|
+
inputType: "textbox",
|
|
251
|
+
showInfo: true,
|
|
252
|
+
infoText: "This is one of the Popup content's fields",
|
|
253
|
+
placeHolder: "Enter Max Issuances",
|
|
254
|
+
dropdownOptions: null,
|
|
255
|
+
dropdownDefaultValue: null
|
|
256
|
+
}, {
|
|
257
|
+
name: "RedemptionID",
|
|
258
|
+
label: "Redemption ID",
|
|
259
|
+
disabled: false,
|
|
260
|
+
required: false,
|
|
261
|
+
inputType: "textbox",
|
|
262
|
+
showInfo: true,
|
|
263
|
+
infoText: "This is one of the Popup content's fields",
|
|
264
|
+
placeHolder: "Enter Redemption ID",
|
|
265
|
+
dropdownOptions: null,
|
|
266
|
+
dropdownDefaultValue: null
|
|
267
|
+
}];
|
|
268
|
+
const FieldsDataRow2Targeting = [{
|
|
269
|
+
name: "AllowInStoreGroups",
|
|
270
|
+
label: "Allow In Store Groups",
|
|
271
|
+
disabled: false,
|
|
272
|
+
required: false,
|
|
273
|
+
inputType: "dropdown",
|
|
274
|
+
showInfo: true,
|
|
275
|
+
infoText: "This is one of the Popup content's fields",
|
|
276
|
+
placeHolder: "Select",
|
|
277
|
+
dropdownOptions: [{
|
|
278
|
+
value: 1,
|
|
279
|
+
label: "Total"
|
|
280
|
+
}, {
|
|
281
|
+
value: 2,
|
|
282
|
+
label: "In Store"
|
|
283
|
+
}, {
|
|
284
|
+
value: 3,
|
|
285
|
+
label: "Online"
|
|
286
|
+
}],
|
|
287
|
+
dropdownDefaultValue: null
|
|
288
|
+
}, {
|
|
289
|
+
name: "BlockInStoreGroups",
|
|
290
|
+
label: "Block In Store Groups",
|
|
291
|
+
disabled: false,
|
|
292
|
+
required: false,
|
|
293
|
+
inputType: "dropdown",
|
|
294
|
+
showInfo: true,
|
|
295
|
+
infoText: "This is one of the Popup content's fields",
|
|
296
|
+
placeHolder: "Select",
|
|
297
|
+
dropdownOptions: [{
|
|
298
|
+
value: 1,
|
|
299
|
+
label: "Total"
|
|
300
|
+
}, {
|
|
301
|
+
value: 2,
|
|
302
|
+
label: "In Store"
|
|
303
|
+
}, {
|
|
304
|
+
value: 3,
|
|
305
|
+
label: "Online"
|
|
306
|
+
}],
|
|
307
|
+
dropdownDefaultValue: null
|
|
308
|
+
}, {
|
|
309
|
+
name: "ConsiderStoreAvailability",
|
|
310
|
+
label: "Consider Store Availability",
|
|
311
|
+
disabled: false,
|
|
312
|
+
required: false,
|
|
313
|
+
inputType: "dropdown",
|
|
314
|
+
showInfo: true,
|
|
315
|
+
infoText: "This is one of the Popup content's fields",
|
|
316
|
+
placeHolder: "Select",
|
|
317
|
+
dropdownOptions: [{
|
|
318
|
+
value: 1,
|
|
319
|
+
label: "YES"
|
|
320
|
+
}, {
|
|
321
|
+
value: 2,
|
|
322
|
+
label: "NO"
|
|
323
|
+
}],
|
|
324
|
+
dropdownDefaultValue: null
|
|
325
|
+
}];
|
|
326
|
+
const FieldsDataRow3Targeting = [{
|
|
327
|
+
name: "TargetingNotes",
|
|
328
|
+
label: "Targeting Notes",
|
|
329
|
+
disabled: false,
|
|
330
|
+
required: false,
|
|
331
|
+
inputType: "textbox",
|
|
332
|
+
showInfo: true,
|
|
333
|
+
infoText: "This is one of the Popup content's fields",
|
|
334
|
+
placeHolder: "Enter Note",
|
|
335
|
+
dropdownOptions: null,
|
|
336
|
+
dropdownDefaultValue: null
|
|
337
|
+
}];
|
|
338
|
+
const RowsDataTargeting = [{
|
|
339
|
+
fieldsArray: FieldsDataRow1Targeting
|
|
340
|
+
}, {
|
|
341
|
+
fieldsArray: FieldsDataRow2Targeting
|
|
342
|
+
}, {
|
|
343
|
+
fieldsArray: FieldsDataRow3Targeting
|
|
344
|
+
}];
|
|
345
|
+
////////////////////////////////////////////////// TARGETING DATA - END /////////////////////////////////////////////
|
|
346
|
+
|
|
347
|
+
////////////////////////////////////////////////// MORE DATA - START /////////////////////////////////////////////
|
|
348
|
+
const FieldsDataRow1More = [{
|
|
349
|
+
name: "SummaryPodHeader)",
|
|
350
|
+
label: "Summary (Pod Header)",
|
|
351
|
+
disabled: false,
|
|
352
|
+
required: false,
|
|
353
|
+
inputType: "textbox",
|
|
354
|
+
showInfo: true,
|
|
355
|
+
infoText: "This is one of the Popup content's fields",
|
|
356
|
+
placeHolder: "Enter Summary (Pod Header)",
|
|
357
|
+
dropdownOptions: null,
|
|
358
|
+
dropdownDefaultValue: null
|
|
359
|
+
}, {
|
|
360
|
+
name: "CategoryLevel1",
|
|
361
|
+
label: "Category Level 1",
|
|
362
|
+
disabled: false,
|
|
363
|
+
required: false,
|
|
364
|
+
inputType: "dropdown",
|
|
365
|
+
showInfo: true,
|
|
366
|
+
infoText: "This is one of the Popup content's fields",
|
|
367
|
+
placeHolder: "Select",
|
|
368
|
+
dropdownOptions: [{
|
|
369
|
+
value: 1,
|
|
370
|
+
label: "Category Level 1 1"
|
|
371
|
+
}, {
|
|
372
|
+
value: 2,
|
|
373
|
+
label: "Category Level 1 2"
|
|
374
|
+
}, {
|
|
375
|
+
value: 3,
|
|
376
|
+
label: "Category Level 1 3"
|
|
377
|
+
}],
|
|
378
|
+
dropdownDefaultValue: null
|
|
379
|
+
}, {
|
|
380
|
+
name: "ConditionMinQuantityPurchased",
|
|
381
|
+
label: "Condition-Min Quantity Purchased",
|
|
382
|
+
disabled: false,
|
|
383
|
+
required: false,
|
|
384
|
+
inputType: "textbox",
|
|
385
|
+
showInfo: true,
|
|
386
|
+
infoText: "This is one of the Popup content's fields",
|
|
387
|
+
placeHolder: "Enter Condition-Min Quantity Purchased",
|
|
388
|
+
dropdownOptions: null,
|
|
389
|
+
dropdownDefaultValue: null
|
|
390
|
+
}];
|
|
391
|
+
const FieldsDataRow2More = [{
|
|
392
|
+
name: "BrandDescription",
|
|
393
|
+
label: "Brand Description",
|
|
394
|
+
disabled: false,
|
|
395
|
+
required: false,
|
|
396
|
+
inputType: "textbox",
|
|
397
|
+
showInfo: true,
|
|
398
|
+
infoText: "This is one of the Popup content's fields",
|
|
399
|
+
placeHolder: "Enter Brand Description",
|
|
400
|
+
dropdownOptions: null,
|
|
401
|
+
dropdownDefaultValue: null
|
|
402
|
+
}, {
|
|
403
|
+
name: "StartDatetimePDN",
|
|
404
|
+
label: "Start Datetime PDN",
|
|
405
|
+
disabled: false,
|
|
406
|
+
required: false,
|
|
407
|
+
inputType: "datepicker",
|
|
408
|
+
showInfo: true,
|
|
409
|
+
infoText: "This is one of the Popup content's fields",
|
|
410
|
+
placeHolder: "MM/DD/YYYY",
|
|
411
|
+
dropdownOptions: null,
|
|
412
|
+
dropdownDefaultValue: null
|
|
413
|
+
}, {
|
|
414
|
+
name: "ConditionMinBasketValue",
|
|
415
|
+
label: "Condition-Min Basket Value",
|
|
416
|
+
disabled: false,
|
|
417
|
+
required: false,
|
|
418
|
+
inputType: "textbox",
|
|
419
|
+
showInfo: true,
|
|
420
|
+
infoText: "This is one of the Popup content's fields",
|
|
421
|
+
placeHolder: "Enter Condition-Min Basket Value",
|
|
422
|
+
dropdownOptions: null,
|
|
423
|
+
dropdownDefaultValue: null
|
|
424
|
+
}];
|
|
425
|
+
const FieldsDataRow3More = [{
|
|
426
|
+
name: "DescriptionLowCase",
|
|
427
|
+
label: "Description lowCase",
|
|
428
|
+
disabled: false,
|
|
429
|
+
required: false,
|
|
430
|
+
inputType: "dropdown",
|
|
431
|
+
showInfo: true,
|
|
432
|
+
infoText: "This is one of the Popup content's fields",
|
|
433
|
+
placeHolder: "Select",
|
|
434
|
+
dropdownOptions: [{
|
|
435
|
+
value: 1,
|
|
436
|
+
label: "Description lowCase 1"
|
|
437
|
+
}, {
|
|
438
|
+
value: 2,
|
|
439
|
+
label: "Description lowCase 2"
|
|
440
|
+
}, {
|
|
441
|
+
value: 3,
|
|
442
|
+
label: "Description lowCase 3"
|
|
443
|
+
}],
|
|
444
|
+
dropdownDefaultValue: null
|
|
445
|
+
}, {
|
|
446
|
+
name: "ShutoffDatetimePDN",
|
|
447
|
+
label: "Shutoff Datetime PDN",
|
|
448
|
+
disabled: false,
|
|
449
|
+
required: false,
|
|
450
|
+
inputType: "datepicker",
|
|
451
|
+
showInfo: true,
|
|
452
|
+
infoText: "This is one of the Popup content's fields",
|
|
453
|
+
placeHolder: "MM/DD/YYYY",
|
|
454
|
+
dropdownOptions: null,
|
|
455
|
+
dropdownDefaultValue: null
|
|
456
|
+
}, {
|
|
457
|
+
name: "ShutoffDatetimePDN2",
|
|
458
|
+
label: "Shutoff Datetime PDN2",
|
|
459
|
+
disabled: false,
|
|
460
|
+
required: false,
|
|
461
|
+
inputType: "datepicker",
|
|
462
|
+
showInfo: true,
|
|
463
|
+
infoText: "This is one of the Popup content's fields",
|
|
464
|
+
placeHolder: "MM/DD/YYYY",
|
|
465
|
+
dropdownOptions: null,
|
|
466
|
+
dropdownDefaultValue: null
|
|
467
|
+
}];
|
|
468
|
+
const FieldsDataRow4More = [{
|
|
469
|
+
name: "DiscountType",
|
|
470
|
+
label: "Discount Type",
|
|
471
|
+
disabled: false,
|
|
472
|
+
required: false,
|
|
473
|
+
inputType: "dropdown",
|
|
474
|
+
showInfo: true,
|
|
475
|
+
infoText: "This is one of the Popup content's fields",
|
|
476
|
+
placeHolder: "Select Discount Type",
|
|
477
|
+
dropdownOptions: [{
|
|
478
|
+
value: 1,
|
|
479
|
+
label: "Discount Type 1"
|
|
480
|
+
}, {
|
|
481
|
+
value: 2,
|
|
482
|
+
label: "Discount Type 2"
|
|
483
|
+
}, {
|
|
484
|
+
value: 3,
|
|
485
|
+
label: "Discount Type 3"
|
|
486
|
+
}],
|
|
487
|
+
dropdownDefaultValue: null
|
|
488
|
+
}, {
|
|
489
|
+
name: "ExpirationDatetimePDN",
|
|
490
|
+
label: "Expiration Datetime PDN",
|
|
491
|
+
disabled: false,
|
|
492
|
+
required: false,
|
|
493
|
+
inputType: "datepicker",
|
|
494
|
+
showInfo: true,
|
|
495
|
+
infoText: "This is one of the Popup content's fields",
|
|
496
|
+
placeHolder: "MM/DD/YYYY",
|
|
497
|
+
dropdownOptions: null,
|
|
498
|
+
dropdownDefaultValue: null
|
|
499
|
+
}, {
|
|
500
|
+
name: "TypeReward",
|
|
501
|
+
label: "Type (Reward)",
|
|
502
|
+
disabled: false,
|
|
503
|
+
required: false,
|
|
504
|
+
inputType: "dropdown",
|
|
505
|
+
showInfo: true,
|
|
506
|
+
infoText: "This is one of the Popup content's fields",
|
|
507
|
+
placeHolder: "Select Type",
|
|
508
|
+
dropdownOptions: [{
|
|
509
|
+
value: 1,
|
|
510
|
+
label: "Type 1"
|
|
511
|
+
}, {
|
|
512
|
+
value: 2,
|
|
513
|
+
label: "Type 2"
|
|
514
|
+
}, {
|
|
515
|
+
value: 3,
|
|
516
|
+
label: "Type 3"
|
|
517
|
+
}],
|
|
518
|
+
dropdownDefaultValue: null
|
|
519
|
+
}];
|
|
520
|
+
const FieldsDataRow5More = [{
|
|
521
|
+
name: "RewardQuantity",
|
|
522
|
+
label: "Reward Quantity",
|
|
523
|
+
disabled: false,
|
|
524
|
+
required: false,
|
|
525
|
+
inputType: "textbox",
|
|
526
|
+
showInfo: true,
|
|
527
|
+
infoText: "This is one of the Popup content's fields",
|
|
528
|
+
placeHolder: "Enter Reward Quantity",
|
|
529
|
+
dropdownOptions: null,
|
|
530
|
+
dropdownDefaultValue: null
|
|
531
|
+
}, {
|
|
532
|
+
name: "PurchaseOrderPDN",
|
|
533
|
+
label: "Purchase Order PDN",
|
|
534
|
+
disabled: false,
|
|
535
|
+
required: false,
|
|
536
|
+
inputType: "textbox",
|
|
537
|
+
showInfo: true,
|
|
538
|
+
infoText: "This is one of the Popup content's fields",
|
|
539
|
+
placeHolder: "Enter Purchase Order PDN",
|
|
540
|
+
dropdownOptions: null,
|
|
541
|
+
dropdownDefaultValue: null
|
|
542
|
+
}, {
|
|
543
|
+
name: "PurchaseOrder",
|
|
544
|
+
label: "Purchase Order",
|
|
545
|
+
disabled: false,
|
|
546
|
+
required: false,
|
|
547
|
+
inputType: "textbox",
|
|
548
|
+
showInfo: true,
|
|
549
|
+
infoText: "This is one of the Popup content's fields",
|
|
550
|
+
placeHolder: "Enter Purchase Order",
|
|
551
|
+
dropdownOptions: null,
|
|
552
|
+
dropdownDefaultValue: null
|
|
553
|
+
}];
|
|
554
|
+
const FieldsDataRow6More = [{
|
|
555
|
+
name: "OfferInventory",
|
|
556
|
+
label: "Offer Inventory",
|
|
557
|
+
disabled: false,
|
|
558
|
+
required: false,
|
|
559
|
+
inputType: "textbox",
|
|
560
|
+
showInfo: true,
|
|
561
|
+
infoText: "This is one of the Popup content's fields",
|
|
562
|
+
placeHolder: "Enter Offer Inventory",
|
|
563
|
+
dropdownOptions: null,
|
|
564
|
+
dropdownDefaultValue: null
|
|
565
|
+
}, {
|
|
566
|
+
name: "Image",
|
|
567
|
+
label: "Image",
|
|
568
|
+
disabled: false,
|
|
569
|
+
required: false,
|
|
570
|
+
inputType: "textbox",
|
|
571
|
+
showInfo: true,
|
|
572
|
+
infoText: "This is one of the Popup content's fields",
|
|
573
|
+
placeHolder: "Add Image",
|
|
574
|
+
dropdownOptions: null,
|
|
575
|
+
dropdownDefaultValue: null
|
|
576
|
+
}, {
|
|
577
|
+
name: "MaxTransactions",
|
|
578
|
+
label: "Max Transactions",
|
|
579
|
+
disabled: false,
|
|
580
|
+
required: false,
|
|
581
|
+
inputType: "textbox",
|
|
582
|
+
showInfo: true,
|
|
583
|
+
infoText: "This is one of the Popup content's fields",
|
|
584
|
+
placeHolder: "Enter Max Transactions",
|
|
585
|
+
dropdownOptions: null,
|
|
586
|
+
dropdownDefaultValue: null
|
|
587
|
+
}];
|
|
588
|
+
const RowsDataMore = [{
|
|
589
|
+
fieldsArray: FieldsDataRow1More
|
|
590
|
+
}, {
|
|
591
|
+
fieldsArray: FieldsDataRow2More
|
|
592
|
+
}, {
|
|
593
|
+
fieldsArray: FieldsDataRow3More
|
|
594
|
+
}, {
|
|
595
|
+
fieldsArray: FieldsDataRow4More
|
|
596
|
+
}, {
|
|
597
|
+
fieldsArray: FieldsDataRow5More
|
|
598
|
+
}, {
|
|
599
|
+
fieldsArray: FieldsDataRow6More
|
|
600
|
+
}];
|
|
601
|
+
////////////////////////////////////////////////// MORE DATA - END /////////////////////////////////////////////
|
|
602
|
+
|
|
603
|
+
const popupItemsData1 = [{
|
|
604
|
+
title: "Offer Details",
|
|
605
|
+
rowsData: RowsDataOfferDetails
|
|
606
|
+
}, {
|
|
607
|
+
title: "Campaigns",
|
|
608
|
+
rowsData: []
|
|
609
|
+
}, {
|
|
610
|
+
title: "Products",
|
|
611
|
+
rowsData: []
|
|
612
|
+
}, {
|
|
613
|
+
title: "Targeting",
|
|
614
|
+
rowsData: RowsDataTargeting
|
|
615
|
+
}, {
|
|
616
|
+
title: "More",
|
|
617
|
+
rowsData: RowsDataMore
|
|
19
618
|
}];
|
|
20
619
|
var _default = exports.default = {
|
|
21
|
-
title:
|
|
620
|
+
title: "Campaign Tool/Popup",
|
|
22
621
|
component: _Popup.default,
|
|
23
|
-
tags: [
|
|
622
|
+
tags: ["autodocs"],
|
|
24
623
|
argTypes: {
|
|
25
624
|
title: {
|
|
26
|
-
name:
|
|
625
|
+
name: "title",
|
|
27
626
|
control: {
|
|
28
|
-
type:
|
|
627
|
+
type: "text"
|
|
29
628
|
},
|
|
30
|
-
description:
|
|
629
|
+
description: "title"
|
|
31
630
|
},
|
|
32
631
|
isPopupOpen: {
|
|
33
|
-
name:
|
|
632
|
+
name: "isPopupOpen",
|
|
34
633
|
control: {
|
|
35
|
-
type:
|
|
634
|
+
type: "boolean"
|
|
36
635
|
},
|
|
37
|
-
description:
|
|
636
|
+
description: "true/false - open or close popup"
|
|
38
637
|
},
|
|
39
638
|
width: {
|
|
40
|
-
name:
|
|
639
|
+
name: "width",
|
|
41
640
|
control: {
|
|
42
|
-
type:
|
|
641
|
+
type: "text"
|
|
43
642
|
},
|
|
44
|
-
description:
|
|
643
|
+
description: "width of the form"
|
|
45
644
|
},
|
|
46
645
|
height: {
|
|
47
|
-
name:
|
|
646
|
+
name: "height",
|
|
48
647
|
control: {
|
|
49
|
-
type:
|
|
648
|
+
type: "text"
|
|
50
649
|
},
|
|
51
|
-
description:
|
|
650
|
+
description: "height of the form"
|
|
52
651
|
},
|
|
53
|
-
|
|
54
|
-
name:
|
|
55
|
-
description:
|
|
652
|
+
borderColor: {
|
|
653
|
+
name: "borderColor",
|
|
654
|
+
description: "Sets the border color",
|
|
56
655
|
control: {
|
|
57
|
-
type:
|
|
58
|
-
presetColors: [
|
|
656
|
+
type: "color",
|
|
657
|
+
presetColors: ["#ffffff", "#ff0000", "#00ff00", "#0000ff"]
|
|
658
|
+
}
|
|
659
|
+
},
|
|
660
|
+
subtitleTextColor: {
|
|
661
|
+
name: "subtitleTextColor",
|
|
662
|
+
description: "Sets the subtitle Text Color",
|
|
663
|
+
control: {
|
|
664
|
+
type: "color",
|
|
665
|
+
presetColors: ["#ffffff", "#ff0000", "#00ff00", "#0000ff"]
|
|
59
666
|
}
|
|
60
667
|
},
|
|
61
668
|
onSaveClick: {
|
|
62
|
-
name:
|
|
63
|
-
action:
|
|
64
|
-
description:
|
|
669
|
+
name: "Click on save event",
|
|
670
|
+
action: "onClick",
|
|
671
|
+
description: "Click on save event"
|
|
65
672
|
},
|
|
66
673
|
onCancelClick: {
|
|
67
|
-
name:
|
|
68
|
-
action:
|
|
69
|
-
description:
|
|
674
|
+
name: "Click on cancel event",
|
|
675
|
+
action: "onClick",
|
|
676
|
+
description: "Click on cancel event"
|
|
677
|
+
},
|
|
678
|
+
onChange: {
|
|
679
|
+
action: "onChange",
|
|
680
|
+
description: "onChange event "
|
|
70
681
|
},
|
|
71
|
-
|
|
72
|
-
description:
|
|
682
|
+
popupItemsData: {
|
|
683
|
+
description: "array [] of objects: {title: string, content } to fill the accordion items. "
|
|
73
684
|
}
|
|
74
685
|
}
|
|
75
686
|
};
|
|
76
687
|
const Template = args => /*#__PURE__*/_react.default.createElement(_Popup.default, args);
|
|
77
688
|
const ExamplePopup = exports.ExamplePopup = Template.bind({});
|
|
78
689
|
ExamplePopup.args = {
|
|
79
|
-
title:
|
|
690
|
+
title: "Offer Details",
|
|
80
691
|
isPopupOpen: true,
|
|
81
|
-
|
|
82
|
-
width:
|
|
83
|
-
height:
|
|
84
|
-
|
|
692
|
+
popupItemsData: popupItemsData1,
|
|
693
|
+
width: "1000px",
|
|
694
|
+
height: "800px",
|
|
695
|
+
borderColor: "#9BAFCE",
|
|
696
|
+
subtitleTextColor: "#7E7E7E"
|
|
85
697
|
};
|