@zohodesk/dot 1.0.0-temp-187.15 → 1.0.0-temp-200.6
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/.cli/propValidation_report.html +1 -1
- package/README.md +5 -0
- package/es/Attachment/Attachment.module.css +7 -3
- package/es/AttachmentViewer/Attachment.js +208 -3
- package/es/AttachmentViewer/AttachmentViewer.js +81 -24
- package/es/AttachmentViewer/AttachmentViewer.module.css +55 -9
- package/es/AttachmentViewer/props/propTypes.js +3 -1
- package/es/AttachmentViewer/utils.js +36 -2
- package/es/Onboarding/Onboarding.js +4 -3
- package/es/Onboarding/__tests__/Onboarding.spec.js +12 -0
- package/es/Onboarding/__tests__/__snapshots__/Onboarding.spec.js.snap +137 -20
- package/es/Onboarding/props/propTypes.js +1 -0
- package/es/VideoLookup/VideoLookup.js +1 -1
- package/es/form/fields/Fields.module.css +0 -4
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +4 -8
- package/es/form/fields/TagsMultiSelect/props/propTypes.js +1 -2
- package/es/list/DepartmentDropDown/DepartmentDropDown.js +2 -7
- package/es/list/DepartmentDropDown/props/defaultProps.js +1 -2
- package/es/list/DepartmentDropDown/props/propTypes.js +0 -3
- package/es/list/status/StatusDropdown/StatusDropdown.js +2 -7
- package/es/list/status/StatusDropdown/props/defaultProps.js +1 -2
- package/es/list/status/StatusDropdown/props/propTypes.js +1 -4
- package/es/list/status/StatusListItem/StatusListItem.module.css +6 -5
- package/es/utils/General.js +23 -1
- package/lib/Attachment/Attachment.module.css +7 -3
- package/lib/AttachmentViewer/Attachment.js +226 -3
- package/lib/AttachmentViewer/AttachmentViewer.js +82 -21
- package/lib/AttachmentViewer/AttachmentViewer.module.css +55 -9
- package/lib/AttachmentViewer/props/propTypes.js +3 -1
- package/lib/AttachmentViewer/utils.js +47 -1
- package/lib/Onboarding/Onboarding.js +5 -4
- package/lib/Onboarding/__tests__/Onboarding.spec.js +12 -0
- package/lib/Onboarding/__tests__/__snapshots__/Onboarding.spec.js.snap +137 -20
- package/lib/Onboarding/props/propTypes.js +1 -0
- package/lib/VideoLookup/VideoLookup.js +2 -2
- package/lib/form/fields/Fields.module.css +0 -4
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +5 -10
- package/lib/form/fields/TagsMultiSelect/props/propTypes.js +1 -2
- package/lib/list/DepartmentDropDown/DepartmentDropDown.js +3 -8
- package/lib/list/DepartmentDropDown/props/defaultProps.js +1 -2
- package/lib/list/DepartmentDropDown/props/propTypes.js +0 -2
- package/lib/list/status/StatusDropdown/StatusDropdown.js +2 -6
- package/lib/list/status/StatusDropdown/props/defaultProps.js +1 -2
- package/lib/list/status/StatusDropdown/props/propTypes.js +1 -3
- package/lib/list/status/StatusListItem/StatusListItem.module.css +6 -5
- package/lib/utils/General.js +25 -1
- package/package.json +4 -4
- package/result.json +1 -1
- package/unittest/index.html +4 -12
- package/es/common/dot_common.module.css +0 -4
- package/lib/common/dot_common.module.css +0 -4
- /package/es/Onboarding/css/{CardOnboarding.module.css → Onboarding.module.css} +0 -0
- /package/es/VideoLookup/css/{VideoLookupStyles.module.css → VideoLookup.module.css} +0 -0
- /package/lib/Onboarding/css/{CardOnboarding.module.css → Onboarding.module.css} +0 -0
- /package/lib/VideoLookup/css/{VideoLookupStyles.module.css → VideoLookup.module.css} +0 -0
|
@@ -432,4 +432,16 @@ describe('Onboarding', function () {
|
|
|
432
432
|
|
|
433
433
|
expect(asFragment()).toMatchSnapshot();
|
|
434
434
|
});
|
|
435
|
+
test('rendering data with mediaElement', function () {
|
|
436
|
+
var _render35 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Onboarding["default"], {
|
|
437
|
+
sliderData: [{
|
|
438
|
+
tabName: "description",
|
|
439
|
+
description: "Discover innovative tools and solutions to streamline your processes and boost productivity on Slide 1.",
|
|
440
|
+
mediaElement: /*#__PURE__*/_react["default"].createElement("div", null, "Custom Element")
|
|
441
|
+
}]
|
|
442
|
+
})),
|
|
443
|
+
asFragment = _render35.asFragment;
|
|
444
|
+
|
|
445
|
+
expect(asFragment()).toMatchSnapshot();
|
|
446
|
+
});
|
|
435
447
|
});
|
|
@@ -40,7 +40,7 @@ exports[`Onboarding rendering data of customprops for Secondarybuttonprops 1`]
|
|
|
40
40
|
data-test-id="flex"
|
|
41
41
|
>
|
|
42
42
|
<div
|
|
43
|
-
class="innerHead
|
|
43
|
+
class="innerHead "
|
|
44
44
|
/>
|
|
45
45
|
</div>
|
|
46
46
|
<div
|
|
@@ -159,7 +159,7 @@ exports[`Onboarding rendering data of customprops for descriptionProps 1`] = `
|
|
|
159
159
|
data-test-id="flex"
|
|
160
160
|
>
|
|
161
161
|
<div
|
|
162
|
-
class="innerHead
|
|
162
|
+
class="innerHead "
|
|
163
163
|
/>
|
|
164
164
|
</div>
|
|
165
165
|
<div
|
|
@@ -344,7 +344,7 @@ exports[`Onboarding rendering data of customprops for headingProps 1`] = `
|
|
|
344
344
|
data-test-id="flex"
|
|
345
345
|
>
|
|
346
346
|
<div
|
|
347
|
-
class="innerHead
|
|
347
|
+
class="innerHead "
|
|
348
348
|
/>
|
|
349
349
|
</div>
|
|
350
350
|
<div
|
|
@@ -457,7 +457,7 @@ exports[`Onboarding rendering data of customprops for primarybuttonprops 1`] =
|
|
|
457
457
|
data-test-id="flex"
|
|
458
458
|
>
|
|
459
459
|
<div
|
|
460
|
-
class="innerHead
|
|
460
|
+
class="innerHead "
|
|
461
461
|
/>
|
|
462
462
|
</div>
|
|
463
463
|
<div
|
|
@@ -645,7 +645,7 @@ exports[`Onboarding rendering data of customprops for secondaryButtonLinkProps
|
|
|
645
645
|
data-test-id="flex"
|
|
646
646
|
>
|
|
647
647
|
<div
|
|
648
|
-
class="innerHead
|
|
648
|
+
class="innerHead "
|
|
649
649
|
/>
|
|
650
650
|
</div>
|
|
651
651
|
<div
|
|
@@ -900,7 +900,7 @@ exports[`Onboarding rendering data of image without hasVideoPlayButton 1`] = `
|
|
|
900
900
|
data-test-id="flex"
|
|
901
901
|
>
|
|
902
902
|
<div
|
|
903
|
-
class="innerHead
|
|
903
|
+
class="innerHead "
|
|
904
904
|
>
|
|
905
905
|
<img
|
|
906
906
|
class=" mediaElement image imgMaxFullSize "
|
|
@@ -1015,7 +1015,7 @@ exports[`Onboarding rendering data of videoSource 1`] = `
|
|
|
1015
1015
|
data-test-id="flex"
|
|
1016
1016
|
>
|
|
1017
1017
|
<div
|
|
1018
|
-
class="innerHead
|
|
1018
|
+
class="innerHead "
|
|
1019
1019
|
>
|
|
1020
1020
|
<video
|
|
1021
1021
|
autoplay=""
|
|
@@ -1136,7 +1136,7 @@ exports[`Onboarding rendering data of SecondaryButton as link 1`] = `
|
|
|
1136
1136
|
data-test-id="flex"
|
|
1137
1137
|
>
|
|
1138
1138
|
<div
|
|
1139
|
-
class="innerHead
|
|
1139
|
+
class="innerHead "
|
|
1140
1140
|
/>
|
|
1141
1141
|
</div>
|
|
1142
1142
|
<div
|
|
@@ -1541,7 +1541,7 @@ exports[`Onboarding rendering data of primaryButtonText 1`] = `
|
|
|
1541
1541
|
data-test-id="flex"
|
|
1542
1542
|
>
|
|
1543
1543
|
<div
|
|
1544
|
-
class="innerHead
|
|
1544
|
+
class="innerHead "
|
|
1545
1545
|
/>
|
|
1546
1546
|
</div>
|
|
1547
1547
|
<div
|
|
@@ -1651,7 +1651,7 @@ exports[`Onboarding rendering data of secondaryButtonText 1`] = `
|
|
|
1651
1651
|
data-test-id="flex"
|
|
1652
1652
|
>
|
|
1653
1653
|
<div
|
|
1654
|
-
class="innerHead
|
|
1654
|
+
class="innerHead "
|
|
1655
1655
|
/>
|
|
1656
1656
|
</div>
|
|
1657
1657
|
<div
|
|
@@ -1771,7 +1771,7 @@ exports[`Onboarding rendering data of sliderData with heading and description 1`
|
|
|
1771
1771
|
data-test-id="flex"
|
|
1772
1772
|
>
|
|
1773
1773
|
<div
|
|
1774
|
-
class="innerHead
|
|
1774
|
+
class="innerHead "
|
|
1775
1775
|
/>
|
|
1776
1776
|
</div>
|
|
1777
1777
|
<div
|
|
@@ -1887,7 +1887,7 @@ exports[`Onboarding rendering data of sliderData with image 1`] = `
|
|
|
1887
1887
|
data-test-id="flex"
|
|
1888
1888
|
>
|
|
1889
1889
|
<div
|
|
1890
|
-
class="innerHead
|
|
1890
|
+
class="innerHead "
|
|
1891
1891
|
>
|
|
1892
1892
|
<img
|
|
1893
1893
|
class=" mediaElement image imgMaxFullSize "
|
|
@@ -2002,7 +2002,7 @@ exports[`Onboarding rendering data of two sliderData 1`] = `
|
|
|
2002
2002
|
data-test-id="flex"
|
|
2003
2003
|
>
|
|
2004
2004
|
<div
|
|
2005
|
-
class="innerHead
|
|
2005
|
+
class="innerHead "
|
|
2006
2006
|
/>
|
|
2007
2007
|
</div>
|
|
2008
2008
|
<div
|
|
@@ -2032,7 +2032,7 @@ exports[`Onboarding rendering data of two sliderData 1`] = `
|
|
|
2032
2032
|
data-test-id="flex"
|
|
2033
2033
|
>
|
|
2034
2034
|
<div
|
|
2035
|
-
class="innerHead
|
|
2035
|
+
class="innerHead "
|
|
2036
2036
|
/>
|
|
2037
2037
|
</div>
|
|
2038
2038
|
<div
|
|
@@ -2233,7 +2233,7 @@ exports[`Onboarding rendering data with hasExpandedButton - hasSecondaryButton a
|
|
|
2233
2233
|
data-test-id="flex"
|
|
2234
2234
|
>
|
|
2235
2235
|
<div
|
|
2236
|
-
class="innerHead
|
|
2236
|
+
class="innerHead "
|
|
2237
2237
|
/>
|
|
2238
2238
|
</div>
|
|
2239
2239
|
<div
|
|
@@ -2352,7 +2352,7 @@ exports[`Onboarding rendering data with hasExpandedButton by hasSecondaryButton,
|
|
|
2352
2352
|
data-test-id="flex"
|
|
2353
2353
|
>
|
|
2354
2354
|
<div
|
|
2355
|
-
class="innerHead
|
|
2355
|
+
class="innerHead "
|
|
2356
2356
|
/>
|
|
2357
2357
|
</div>
|
|
2358
2358
|
<div
|
|
@@ -2430,6 +2430,123 @@ exports[`Onboarding rendering data with hasExpandedButton by hasSecondaryButton,
|
|
|
2430
2430
|
</DocumentFragment>
|
|
2431
2431
|
`;
|
|
2432
2432
|
|
|
2433
|
+
exports[`Onboarding rendering data with mediaElement 1`] = `
|
|
2434
|
+
<DocumentFragment>
|
|
2435
|
+
<div
|
|
2436
|
+
class="mainContainer mainContainerAnimation"
|
|
2437
|
+
data-id="onboarding_container"
|
|
2438
|
+
data-test-id="onboarding_container"
|
|
2439
|
+
>
|
|
2440
|
+
<div
|
|
2441
|
+
class="mainWrapper"
|
|
2442
|
+
>
|
|
2443
|
+
<div
|
|
2444
|
+
class="gradientLayer"
|
|
2445
|
+
>
|
|
2446
|
+
<div
|
|
2447
|
+
class="circleBlur circleBlurOne"
|
|
2448
|
+
/>
|
|
2449
|
+
<div
|
|
2450
|
+
class="circleBlur circleBlurTwo"
|
|
2451
|
+
/>
|
|
2452
|
+
</div>
|
|
2453
|
+
<div
|
|
2454
|
+
class="carousel"
|
|
2455
|
+
>
|
|
2456
|
+
<div
|
|
2457
|
+
class="flex row carouselInner"
|
|
2458
|
+
data-id="flex"
|
|
2459
|
+
data-test-id="flex"
|
|
2460
|
+
style="--local_translate_movement: 0%;"
|
|
2461
|
+
>
|
|
2462
|
+
<div
|
|
2463
|
+
class="flex column noShrink carouselItem"
|
|
2464
|
+
data-id="flex"
|
|
2465
|
+
data-test-id="flex"
|
|
2466
|
+
>
|
|
2467
|
+
<div
|
|
2468
|
+
class="flex row alignItems_center justifyContent_center fullSize header"
|
|
2469
|
+
data-id="flex"
|
|
2470
|
+
data-test-id="flex"
|
|
2471
|
+
>
|
|
2472
|
+
<div
|
|
2473
|
+
class="innerHead "
|
|
2474
|
+
>
|
|
2475
|
+
<div>
|
|
2476
|
+
Custom Element
|
|
2477
|
+
</div>
|
|
2478
|
+
</div>
|
|
2479
|
+
</div>
|
|
2480
|
+
<div
|
|
2481
|
+
class="scroll_vertical content"
|
|
2482
|
+
data-id="flex"
|
|
2483
|
+
data-test-id="flex"
|
|
2484
|
+
>
|
|
2485
|
+
<div
|
|
2486
|
+
class="size20 lineclamp_3 lineheight_1_4 font_bold heading"
|
|
2487
|
+
/>
|
|
2488
|
+
<div
|
|
2489
|
+
class="size14 lineclamp_4 lineheight_1_6 description"
|
|
2490
|
+
data-title="Discover innovative tools and solutions to streamline your processes and boost productivity on Slide 1."
|
|
2491
|
+
>
|
|
2492
|
+
Discover innovative tools and solutions to streamline your processes and boost productivity on Slide 1.
|
|
2493
|
+
</div>
|
|
2494
|
+
</div>
|
|
2495
|
+
</div>
|
|
2496
|
+
</div>
|
|
2497
|
+
</div>
|
|
2498
|
+
<div
|
|
2499
|
+
class="flex row alignItems_center footer"
|
|
2500
|
+
data-id="flex"
|
|
2501
|
+
data-test-id="flex"
|
|
2502
|
+
>
|
|
2503
|
+
<div
|
|
2504
|
+
class="flex row justifyContent_end flexible basis_zero shrink btnWrapper"
|
|
2505
|
+
data-id="flex"
|
|
2506
|
+
data-test-id="flex"
|
|
2507
|
+
>
|
|
2508
|
+
<button
|
|
2509
|
+
class="primaryButton footerButton bold primaryfilled medium"
|
|
2510
|
+
data-id="onboarding_primary_button"
|
|
2511
|
+
data-selector-id="button"
|
|
2512
|
+
data-test-id="onboarding_primary_button"
|
|
2513
|
+
data-title="Got it"
|
|
2514
|
+
type="button"
|
|
2515
|
+
>
|
|
2516
|
+
Got it
|
|
2517
|
+
</button>
|
|
2518
|
+
</div>
|
|
2519
|
+
</div>
|
|
2520
|
+
<button
|
|
2521
|
+
class="flex row alignItems_center justifyContent_center fullSize closeIconContainer buttonReset"
|
|
2522
|
+
data-id="onboarding_close_icon"
|
|
2523
|
+
data-test-id="onboarding_close_icon"
|
|
2524
|
+
>
|
|
2525
|
+
<i
|
|
2526
|
+
aria-hidden="true"
|
|
2527
|
+
class="zd_font_icons basic icon-inapp-close closeIcon "
|
|
2528
|
+
data-id="fontIcon"
|
|
2529
|
+
data-selector-id="fontIcon"
|
|
2530
|
+
data-test-id="fontIcon"
|
|
2531
|
+
/>
|
|
2532
|
+
</button>
|
|
2533
|
+
<span
|
|
2534
|
+
class="basic newRibbon palette_primary medium flag"
|
|
2535
|
+
data-id="onboarding_ribbon"
|
|
2536
|
+
data-selector-id="ribbon"
|
|
2537
|
+
data-test-id="onboarding_ribbon"
|
|
2538
|
+
>
|
|
2539
|
+
<span
|
|
2540
|
+
class="childText"
|
|
2541
|
+
>
|
|
2542
|
+
New
|
|
2543
|
+
</span>
|
|
2544
|
+
</span>
|
|
2545
|
+
</div>
|
|
2546
|
+
</div>
|
|
2547
|
+
</DocumentFragment>
|
|
2548
|
+
`;
|
|
2549
|
+
|
|
2433
2550
|
exports[`Onboarding rendering data without SecondaryButton as link 1`] = `
|
|
2434
2551
|
<DocumentFragment>
|
|
2435
2552
|
<div
|
|
@@ -2470,7 +2587,7 @@ exports[`Onboarding rendering data without SecondaryButton as link 1`] = `
|
|
|
2470
2587
|
data-test-id="flex"
|
|
2471
2588
|
>
|
|
2472
2589
|
<div
|
|
2473
|
-
class="innerHead
|
|
2590
|
+
class="innerHead "
|
|
2474
2591
|
/>
|
|
2475
2592
|
</div>
|
|
2476
2593
|
<div
|
|
@@ -2793,7 +2910,7 @@ exports[`Onboarding rendering data without primaryButtonText 1`] = `
|
|
|
2793
2910
|
data-test-id="flex"
|
|
2794
2911
|
>
|
|
2795
2912
|
<div
|
|
2796
|
-
class="innerHead
|
|
2913
|
+
class="innerHead "
|
|
2797
2914
|
/>
|
|
2798
2915
|
</div>
|
|
2799
2916
|
<div
|
|
@@ -2892,7 +3009,7 @@ exports[`Onboarding rendering data without secondaryButtonText 1`] = `
|
|
|
2892
3009
|
data-test-id="flex"
|
|
2893
3010
|
>
|
|
2894
3011
|
<div
|
|
2895
|
-
class="innerHead
|
|
3012
|
+
class="innerHead "
|
|
2896
3013
|
/>
|
|
2897
3014
|
</div>
|
|
2898
3015
|
<div
|
|
@@ -3206,7 +3323,7 @@ exports[`Onboarding rendering with customId - hasSecondaryButtonLink 1`] = `
|
|
|
3206
3323
|
data-test-id="flex"
|
|
3207
3324
|
>
|
|
3208
3325
|
<div
|
|
3209
|
-
class="innerHead
|
|
3326
|
+
class="innerHead "
|
|
3210
3327
|
/>
|
|
3211
3328
|
</div>
|
|
3212
3329
|
<div
|
|
@@ -42,6 +42,7 @@ var propTypes = {
|
|
|
42
42
|
link: _propTypes["default"].string,
|
|
43
43
|
videoFormat: _propTypes["default"].string
|
|
44
44
|
}),
|
|
45
|
+
mediaElement: _propTypes["default"].node,
|
|
45
46
|
description: _propTypes["default"].string,
|
|
46
47
|
hasPrimaryButton: _propTypes["default"].bool,
|
|
47
48
|
hasVideoPlayButton: _propTypes["default"].bool,
|
|
@@ -23,7 +23,7 @@ var _defaultProps = require("./props/defaultProps");
|
|
|
23
23
|
|
|
24
24
|
var _propTypes = require("./props/propTypes");
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _VideoLookupModule = _interopRequireDefault(require("./css/VideoLookup.module.css"));
|
|
27
27
|
|
|
28
28
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
29
29
|
|
|
@@ -46,7 +46,7 @@ function VideoLookup(props) {
|
|
|
46
46
|
testId = props.testId,
|
|
47
47
|
customId = props.customId,
|
|
48
48
|
videoFormat = props.videoFormat;
|
|
49
|
-
var style = (0, _utils.mergeStyle)(
|
|
49
|
+
var style = (0, _utils.mergeStyle)(_VideoLookupModule["default"], customStyle);
|
|
50
50
|
var handleKeyPress = (0, _react.useCallback)(function (e) {
|
|
51
51
|
if (e.keyCode == '27') {
|
|
52
52
|
onClose(e);
|
|
@@ -222,17 +222,13 @@ var TagsMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
222
222
|
_customClass$listItem = customClass.listItemClass,
|
|
223
223
|
listItemClass = _customClass$listItem === void 0 ? '' : _customClass$listItem,
|
|
224
224
|
_customClass$textBoxI = customClass.textBoxIconWrapperClass,
|
|
225
|
-
textBoxIconWrapperClass = _customClass$textBoxI === void 0 ? '' : _customClass$textBoxI
|
|
226
|
-
_customClass$dropBoxC = customClass.dropBoxClass,
|
|
227
|
-
dropBoxClass = _customClass$dropBoxC === void 0 ? '' : _customClass$dropBoxC;
|
|
225
|
+
textBoxIconWrapperClass = _customClass$textBoxI === void 0 ? '' : _customClass$textBoxI;
|
|
228
226
|
var _customProps$TextBoxI = customProps.TextBoxIconProps,
|
|
229
227
|
TextBoxIconProps = _customProps$TextBoxI === void 0 ? {} : _customProps$TextBoxI,
|
|
230
228
|
_customProps$TagWrapp = customProps.TagWrapperProps,
|
|
231
229
|
TagWrapperProps = _customProps$TagWrapp === void 0 ? {} : _customProps$TagWrapp,
|
|
232
230
|
_customProps$TagProps = customProps.TagProps,
|
|
233
|
-
TagProps = _customProps$TagProps === void 0 ? {} : _customProps$TagProps
|
|
234
|
-
_customProps$ListItem = customProps.ListItemProps,
|
|
235
|
-
ListItemProps = _customProps$ListItem === void 0 ? {} : _customProps$ListItem;
|
|
231
|
+
TagProps = _customProps$TagProps === void 0 ? {} : _customProps$TagProps;
|
|
236
232
|
var isEditable = !isReadOnly;
|
|
237
233
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
238
234
|
className: "".concat(_TagsMultiSelectModule["default"].container, " ").concat(!isReadOnly ? " ".concat(needBorder ? _TagsMultiSelectModule["default"].hasBorder : '', "\n ").concat(needBorder ? _TagsMultiSelectModule["default"]["borderColor_".concat(borderColor)] : _TagsMultiSelectModule["default"].borderColor_transparent, " ").concat(isPopupReady && needBorder || isEditable && isFocus ? _TagsMultiSelectModule["default"].active : '') : '', " ").concat(className),
|
|
@@ -310,8 +306,7 @@ var TagsMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
310
306
|
boxPosition: boxPosition,
|
|
311
307
|
isPadding: false,
|
|
312
308
|
customClass: {
|
|
313
|
-
customDropBoxWrap: _TagsMultiSelectModule["default"].dropdown
|
|
314
|
-
customDropBox: dropBoxClass
|
|
309
|
+
customDropBoxWrap: _TagsMultiSelectModule["default"].dropdown
|
|
315
310
|
},
|
|
316
311
|
dataId: "".concat(dataId, "_dropbox"),
|
|
317
312
|
isResponsivePadding: true,
|
|
@@ -343,7 +338,7 @@ var TagsMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
343
338
|
var name = item.name,
|
|
344
339
|
isNew = item.isNew,
|
|
345
340
|
listItemProps = item.listItemProps;
|
|
346
|
-
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, searchList.length > 1 && isNew ? /*#__PURE__*/_react["default"].createElement(_DropDownSeparator["default"], null) : null, /*#__PURE__*/_react["default"].createElement(_ListItem["default"],
|
|
341
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, searchList.length > 1 && isNew ? /*#__PURE__*/_react["default"].createElement(_DropDownSeparator["default"], null) : null, /*#__PURE__*/_react["default"].createElement(_ListItem["default"], {
|
|
347
342
|
key: index,
|
|
348
343
|
index: index,
|
|
349
344
|
autoHover: true,
|
|
@@ -356,7 +351,7 @@ var TagsMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
356
351
|
isDisabled: listDisabled,
|
|
357
352
|
customProps: listItemProps,
|
|
358
353
|
customClass: listItemClass
|
|
359
|
-
},
|
|
354
|
+
}, isNew ? /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
360
355
|
alignBox: "row",
|
|
361
356
|
align: "vertical"
|
|
362
357
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
@@ -62,8 +62,7 @@ var propTypes = {
|
|
|
62
62
|
customProps: _propTypes["default"].shape({
|
|
63
63
|
TextBoxIconProps: _propTypes["default"].object,
|
|
64
64
|
TagWrapperProps: _propTypes["default"].object,
|
|
65
|
-
TagProps: _propTypes["default"].object
|
|
66
|
-
ListItemProps: _propTypes["default"].object
|
|
65
|
+
TagProps: _propTypes["default"].object
|
|
67
66
|
}),
|
|
68
67
|
isFocus: _propTypes["default"].bool
|
|
69
68
|
};
|
|
@@ -25,8 +25,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
25
25
|
|
|
26
26
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
27
27
|
|
|
28
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
29
|
-
|
|
30
28
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
31
29
|
|
|
32
30
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
@@ -102,10 +100,7 @@ var DepartmentDropDown = /*#__PURE__*/function (_Component) {
|
|
|
102
100
|
onSearch = _this$props3.onSearch,
|
|
103
101
|
needSearchFetching = _this$props3.needSearchFetching,
|
|
104
102
|
searchStr = _this$props3.searchStr,
|
|
105
|
-
i18nKeys = _this$props3.i18nKeys
|
|
106
|
-
customProps = _this$props3.customProps;
|
|
107
|
-
var _customProps$ToggleDr = customProps.ToggleDropDownProps,
|
|
108
|
-
ToggleDropDownProps = _customProps$ToggleDr === void 0 ? {} : _customProps$ToggleDr;
|
|
103
|
+
i18nKeys = _this$props3.i18nKeys;
|
|
109
104
|
var _i18nKeys$title = i18nKeys.title,
|
|
110
105
|
title = _i18nKeys$title === void 0 ? 'Move Department' : _i18nKeys$title,
|
|
111
106
|
_i18nKeys$searchEmpty = i18nKeys.searchEmptyText,
|
|
@@ -114,7 +109,7 @@ var DepartmentDropDown = /*#__PURE__*/function (_Component) {
|
|
|
114
109
|
searchErrorText = _i18nKeys$searchError === void 0 ? 'No results' : _i18nKeys$searchError,
|
|
115
110
|
_i18nKeys$placeholder = i18nKeys.placeholder,
|
|
116
111
|
placeholder = _i18nKeys$placeholder === void 0 ? 'Search Department' : _i18nKeys$placeholder;
|
|
117
|
-
return /*#__PURE__*/_react["default"].createElement(_ToggleDropDown["default"],
|
|
112
|
+
return /*#__PURE__*/_react["default"].createElement(_ToggleDropDown["default"], {
|
|
118
113
|
title: title,
|
|
119
114
|
options: departmentList,
|
|
120
115
|
value: /*#__PURE__*/_react["default"].createElement(_SecondaryText.DepartmentText, {
|
|
@@ -143,7 +138,7 @@ var DepartmentDropDown = /*#__PURE__*/function (_Component) {
|
|
|
143
138
|
isNextOptions: isNextOptions,
|
|
144
139
|
onSearch: onSearch,
|
|
145
140
|
needSearchFetching: needSearchFetching
|
|
146
|
-
}
|
|
141
|
+
});
|
|
147
142
|
}
|
|
148
143
|
}]);
|
|
149
144
|
|
|
@@ -31,7 +31,5 @@ var propTypes = (_propTypes = {
|
|
|
31
31
|
searchEmptyText: _propTypes2["default"].string,
|
|
32
32
|
searchErrorText: _propTypes2["default"].string,
|
|
33
33
|
placeholder: _propTypes2["default"].string
|
|
34
|
-
})), _defineProperty(_propTypes, "customProps", _propTypes2["default"].shape({
|
|
35
|
-
ToggleDropDownProps: _propTypes2["default"].object
|
|
36
34
|
})), _propTypes);
|
|
37
35
|
exports.propTypes = propTypes;
|
|
@@ -247,10 +247,7 @@ var StatusDropdown = /*#__PURE__*/function (_React$Component) {
|
|
|
247
247
|
renderTargetElement = _this$props4.renderTargetElement,
|
|
248
248
|
renderFooterElement = _this$props4.renderFooterElement,
|
|
249
249
|
_this$props4$a11y = _this$props4.a11y,
|
|
250
|
-
a11y = _this$props4$a11y === void 0 ? {} : _this$props4$a11y
|
|
251
|
-
customClass = _this$props4.customClass;
|
|
252
|
-
var _customClass$dropBoxC = customClass.dropBoxClass,
|
|
253
|
-
dropBoxClass = _customClass$dropBoxC === void 0 ? '' : _customClass$dropBoxC;
|
|
250
|
+
a11y = _this$props4$a11y === void 0 ? {} : _this$props4$a11y;
|
|
254
251
|
var _a11y$tabIndex = a11y.tabIndex,
|
|
255
252
|
tabIndex = _a11y$tabIndex === void 0 ? 0 : _a11y$tabIndex,
|
|
256
253
|
ariaLabelledby = a11y.ariaLabelledby,
|
|
@@ -313,8 +310,7 @@ var StatusDropdown = /*#__PURE__*/function (_React$Component) {
|
|
|
313
310
|
isAnimate: true,
|
|
314
311
|
getRef: getContainerRef,
|
|
315
312
|
customClass: {
|
|
316
|
-
customDropBoxWrap: _StatusDropdownModule["default"].dropBoxContainer
|
|
317
|
-
customDropBox: dropBoxClass
|
|
313
|
+
customDropBoxWrap: _StatusDropdownModule["default"].dropBoxContainer
|
|
318
314
|
},
|
|
319
315
|
needResponsive: needResponsive,
|
|
320
316
|
isResponsivePadding: true,
|
|
@@ -30,7 +30,5 @@ var propTypes = (_propTypes = {
|
|
|
30
30
|
idName: _propTypes2["default"].string,
|
|
31
31
|
isArrow: _propTypes2["default"].bool,
|
|
32
32
|
isDataLoaded: _propTypes2["default"].bool
|
|
33
|
-
}, _defineProperty(_propTypes, "isDataLoaded", _propTypes2["default"].bool), _defineProperty(_propTypes, "isDisabled", _propTypes2["default"].bool), _defineProperty(_propTypes, "isEditable", _propTypes2["default"].bool), _defineProperty(_propTypes, "isFetchingOptions", _propTypes2["default"].bool), _defineProperty(_propTypes, "isPopupActive", _propTypes2["default"].bool), _defineProperty(_propTypes, "isPopupOpen", _propTypes2["default"].bool), _defineProperty(_propTypes, "isPopupReady", _propTypes2["default"].bool), _defineProperty(_propTypes, "isReadOnly", _propTypes2["default"].bool), _defineProperty(_propTypes, "isSearch", _propTypes2["default"].bool), _defineProperty(_propTypes, "keyName", _propTypes2["default"].string), _defineProperty(_propTypes, "left", _propTypes2["default"].number), _defineProperty(_propTypes, "needExternalPopupState", _propTypes2["default"].bool), _defineProperty(_propTypes, "needResponsive", _propTypes2["default"].bool), _defineProperty(_propTypes, "needTick", _propTypes2["default"].bool), _defineProperty(_propTypes, "onClick", _propTypes2["default"].func), _defineProperty(_propTypes, "onTogglePopup", _propTypes2["default"].func), _defineProperty(_propTypes, "options", _propTypes2["default"].array.isRequired), _defineProperty(_propTypes, "placeHolderText", _propTypes2["default"].string), _defineProperty(_propTypes, "position", _propTypes2["default"].string), _defineProperty(_propTypes, "removeClose", _propTypes2["default"].func), _defineProperty(_propTypes, "right", _propTypes2["default"].number), _defineProperty(_propTypes, "searchBoxSize", _propTypes2["default"].oneOf(['small', 'medium', 'xmedium'])), _defineProperty(_propTypes, "searchEmptyHint", _propTypes2["default"].string), _defineProperty(_propTypes, "searchErrorText", _propTypes2["default"].string), _defineProperty(_propTypes, "showIconOnHover", _propTypes2["default"].bool), _defineProperty(_propTypes, "showOnHover", _propTypes2["default"].bool), _defineProperty(_propTypes, "statusColor", _propTypes2["default"].string), _defineProperty(_propTypes, "targetAlign", _propTypes2["default"].oneOf(['vertical', 'horizontal', 'both', 'top', 'right', 'bottom', 'left', 'between', 'around'])), _defineProperty(_propTypes, "title", _propTypes2["default"].string), _defineProperty(_propTypes, "togglePopup", _propTypes2["default"].func), _defineProperty(_propTypes, "value", _propTypes2["default"].node), _defineProperty(_propTypes, "needMultiLineText", _propTypes2["default"].bool), _defineProperty(_propTypes, "onSelectLabel", _propTypes2["default"].func), _defineProperty(_propTypes, "top", _propTypes2["default"].number), _defineProperty(_propTypes, "a11y", _propTypes2["default"].object), _defineProperty(_propTypes, "isAbsolutePositioningNeeded", _propTypes2["default"].bool), _defineProperty(_propTypes, "isRestrictScroll", _propTypes2["default"].bool), _defineProperty(_propTypes, "positionsOffset", _propTypes2["default"].object), _defineProperty(_propTypes, "renderTargetElement", _propTypes2["default"].func), _defineProperty(_propTypes, "renderFooterElement", _propTypes2["default"].node), _defineProperty(_propTypes, "targetOffset", _propTypes2["default"].object),
|
|
34
|
-
dropBoxClass: _propTypes2["default"].string
|
|
35
|
-
})), _propTypes);
|
|
33
|
+
}, _defineProperty(_propTypes, "isDataLoaded", _propTypes2["default"].bool), _defineProperty(_propTypes, "isDisabled", _propTypes2["default"].bool), _defineProperty(_propTypes, "isEditable", _propTypes2["default"].bool), _defineProperty(_propTypes, "isFetchingOptions", _propTypes2["default"].bool), _defineProperty(_propTypes, "isPopupActive", _propTypes2["default"].bool), _defineProperty(_propTypes, "isPopupOpen", _propTypes2["default"].bool), _defineProperty(_propTypes, "isPopupReady", _propTypes2["default"].bool), _defineProperty(_propTypes, "isReadOnly", _propTypes2["default"].bool), _defineProperty(_propTypes, "isSearch", _propTypes2["default"].bool), _defineProperty(_propTypes, "keyName", _propTypes2["default"].string), _defineProperty(_propTypes, "left", _propTypes2["default"].number), _defineProperty(_propTypes, "needExternalPopupState", _propTypes2["default"].bool), _defineProperty(_propTypes, "needResponsive", _propTypes2["default"].bool), _defineProperty(_propTypes, "needTick", _propTypes2["default"].bool), _defineProperty(_propTypes, "onClick", _propTypes2["default"].func), _defineProperty(_propTypes, "onTogglePopup", _propTypes2["default"].func), _defineProperty(_propTypes, "options", _propTypes2["default"].array.isRequired), _defineProperty(_propTypes, "placeHolderText", _propTypes2["default"].string), _defineProperty(_propTypes, "position", _propTypes2["default"].string), _defineProperty(_propTypes, "removeClose", _propTypes2["default"].func), _defineProperty(_propTypes, "right", _propTypes2["default"].number), _defineProperty(_propTypes, "searchBoxSize", _propTypes2["default"].oneOf(['small', 'medium', 'xmedium'])), _defineProperty(_propTypes, "searchEmptyHint", _propTypes2["default"].string), _defineProperty(_propTypes, "searchErrorText", _propTypes2["default"].string), _defineProperty(_propTypes, "showIconOnHover", _propTypes2["default"].bool), _defineProperty(_propTypes, "showOnHover", _propTypes2["default"].bool), _defineProperty(_propTypes, "statusColor", _propTypes2["default"].string), _defineProperty(_propTypes, "targetAlign", _propTypes2["default"].oneOf(['vertical', 'horizontal', 'both', 'top', 'right', 'bottom', 'left', 'between', 'around'])), _defineProperty(_propTypes, "title", _propTypes2["default"].string), _defineProperty(_propTypes, "togglePopup", _propTypes2["default"].func), _defineProperty(_propTypes, "value", _propTypes2["default"].node), _defineProperty(_propTypes, "needMultiLineText", _propTypes2["default"].bool), _defineProperty(_propTypes, "onSelectLabel", _propTypes2["default"].func), _defineProperty(_propTypes, "top", _propTypes2["default"].number), _defineProperty(_propTypes, "a11y", _propTypes2["default"].object), _defineProperty(_propTypes, "isAbsolutePositioningNeeded", _propTypes2["default"].bool), _defineProperty(_propTypes, "isRestrictScroll", _propTypes2["default"].bool), _defineProperty(_propTypes, "positionsOffset", _propTypes2["default"].object), _defineProperty(_propTypes, "renderTargetElement", _propTypes2["default"].func), _defineProperty(_propTypes, "renderFooterElement", _propTypes2["default"].node), _defineProperty(_propTypes, "targetOffset", _propTypes2["default"].object), _propTypes);
|
|
36
34
|
exports.propTypes = propTypes;
|
|
@@ -36,8 +36,9 @@
|
|
|
36
36
|
.value {
|
|
37
37
|
composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
|
|
38
38
|
}
|
|
39
|
-
.multiLineValue
|
|
40
|
-
|
|
39
|
+
.multiLineValue{
|
|
40
|
+
word-break: break-word;
|
|
41
|
+
composes: clamp from '~@zohodesk/components/lib/common/common.module.css';
|
|
41
42
|
}
|
|
42
43
|
[dir=ltr] .withBorder.active {
|
|
43
44
|
border-left-color: var(--zdt_statuslistitem_default_active_border);
|
|
@@ -45,6 +46,7 @@
|
|
|
45
46
|
[dir=rtl] .withBorder.active {
|
|
46
47
|
border-right-color: var(--zdt_statuslistitem_default_active_border);
|
|
47
48
|
}
|
|
49
|
+
|
|
48
50
|
.default.hover, .default.effect:hover {
|
|
49
51
|
background-color: var(--zdt_statuslistitem_default_effect_bg);
|
|
50
52
|
}
|
|
@@ -88,9 +90,8 @@
|
|
|
88
90
|
}
|
|
89
91
|
/* Status Type */
|
|
90
92
|
.statusType {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
font-size: var(--zd_font_size8) ;
|
|
93
|
+
width: var(--zd_size8) ;
|
|
94
|
+
height: var(--zd_size8) ;
|
|
94
95
|
border-radius: 50%;
|
|
95
96
|
}
|
|
96
97
|
[dir=ltr] .statusType {
|
package/lib/utils/General.js
CHANGED
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.DUMMY_OBJECT = void 0;
|
|
7
7
|
exports.formatPhoneUrl = formatPhoneUrl;
|
|
8
|
+
exports.getBrowserWithVersion = getBrowserWithVersion;
|
|
8
9
|
exports.getFullName = getFullName;
|
|
9
10
|
exports.shallowDiff = shallowDiff;
|
|
10
11
|
exports.stopBubbling = stopBubbling;
|
|
@@ -59,4 +60,27 @@ function formatPhoneUrl(phone) {
|
|
|
59
60
|
}
|
|
60
61
|
|
|
61
62
|
var DUMMY_OBJECT = Object.freeze({});
|
|
62
|
-
exports.DUMMY_OBJECT = DUMMY_OBJECT;
|
|
63
|
+
exports.DUMMY_OBJECT = DUMMY_OBJECT;
|
|
64
|
+
|
|
65
|
+
function getBrowserWithVersion() {
|
|
66
|
+
var userAgent = navigator.userAgent;
|
|
67
|
+
var tempMatch;
|
|
68
|
+
var browserMatch = userAgent.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*([\d\.]+)/i) || [];
|
|
69
|
+
|
|
70
|
+
if (userAgent.toLowerCase().indexOf('edge') !== -1) {
|
|
71
|
+
return userAgent.substring(userAgent.toLowerCase().indexOf('edge'));
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
if (/trident/i.test(browserMatch[1])) {
|
|
75
|
+
tempMatch = /\brv[ :]+(\d+(\.\d+)?)/g.exec(userAgent) || [];
|
|
76
|
+
return "IE ".concat(tempMatch[1] || '');
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
browserMatch = browserMatch[2] ? [browserMatch[1], browserMatch[2]] : [navigator.appName, navigator.appVersion, '-?'];
|
|
80
|
+
|
|
81
|
+
if ((tempMatch = userAgent.match(/version\/([\.\d]+)/i)) !== null) {
|
|
82
|
+
browserMatch[2] = tempMatch[1];
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return browserMatch.join(' ');
|
|
86
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zohodesk/dot",
|
|
3
|
-
"version": "1.0.0-temp-
|
|
3
|
+
"version": "1.0.0-temp-200.6",
|
|
4
4
|
"main": "lib/index",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"private": false,
|
|
@@ -63,9 +63,9 @@
|
|
|
63
63
|
"@zohodesk-private/node-plugins": "1.1.8",
|
|
64
64
|
"@zohodesk-private/react-prop-validator": "1.2.3",
|
|
65
65
|
"@zohodesk/a11y": "2.3.4",
|
|
66
|
-
"@zohodesk/components": "
|
|
66
|
+
"@zohodesk/components": "1.2.63",
|
|
67
67
|
"@zohodesk/hooks": "2.0.5",
|
|
68
|
-
"@zohodesk/icons": "1.0.
|
|
68
|
+
"@zohodesk/icons": "1.0.75",
|
|
69
69
|
"@zohodesk/layout": "^3.1.0",
|
|
70
70
|
"@zohodesk/svg": "1.1.22",
|
|
71
71
|
"@zohodesk/utils": "1.3.14",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"velocity-react": "1.4.3",
|
|
79
79
|
"@zohodesk/variables": "1.0.0",
|
|
80
80
|
"@zohodesk/components": "1.2.63",
|
|
81
|
-
"@zohodesk/icons": "1.0.
|
|
81
|
+
"@zohodesk/icons": "1.0.75",
|
|
82
82
|
"@zohodesk/svg": "1.1.22",
|
|
83
83
|
"@zohodesk/virtualizer": "1.0.3",
|
|
84
84
|
"react-sortable-hoc": "^0.8.3",
|