@atlaskit/link-datasource 4.29.3 → 4.30.0
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/CHANGELOG.md +18 -0
- package/dist/cjs/ui/assets-modal/modal/render-assets-content/initial-state-view/index.compiled.css +1 -1
- package/dist/cjs/ui/assets-modal/modal/render-assets-content/initial-state-view/index.js +1 -1
- package/dist/cjs/ui/common/error-state/access-required.compiled.css +1 -1
- package/dist/cjs/ui/common/error-state/access-required.js +1 -1
- package/dist/cjs/ui/common/initial-state-view/index.compiled.css +1 -1
- package/dist/cjs/ui/common/initial-state-view/index.js +1 -1
- package/dist/cjs/ui/common/modal/count-view-smart-link/index.compiled.css +2 -2
- package/dist/cjs/ui/common/modal/count-view-smart-link/index.js +1 -1
- package/dist/cjs/ui/common/modal/mode-switcher/index.compiled.css +5 -5
- package/dist/cjs/ui/common/modal/mode-switcher/index.js +2 -2
- package/dist/cjs/ui/common/modal/popup-select/custom-checkbox-option.compiled.css +6 -6
- package/dist/cjs/ui/common/modal/popup-select/custom-checkbox-option.js +1 -1
- package/dist/cjs/ui/common/modal/popup-select/dropdownIndicator.compiled.css +1 -1
- package/dist/cjs/ui/common/modal/popup-select/dropdownIndicator.js +1 -1
- package/dist/cjs/ui/common/modal/popup-select/footer.compiled.css +1 -1
- package/dist/cjs/ui/common/modal/popup-select/footer.js +1 -1
- package/dist/cjs/ui/common/modal/search-count/index.js +1 -1
- package/dist/cjs/ui/confluence-search-modal/modal/index.js +1 -1
- package/dist/cjs/ui/issue-like-table/column-picker/concatenated-menu-list.compiled.css +5 -5
- package/dist/cjs/ui/issue-like-table/column-picker/concatenated-menu-list.js +1 -1
- package/dist/cjs/ui/issue-like-table/render-type/date-range/index.js +181 -0
- package/dist/cjs/ui/issue-like-table/render-type/date-range/messages.js +24 -0
- package/dist/cjs/ui/issue-like-table/render-type/index.js +19 -0
- package/dist/cjs/ui/jira-issues-modal/modal/index.js +1 -1
- package/dist/cjs/ui/table-footer/index.compiled.css +3 -3
- package/dist/cjs/ui/table-footer/index.js +3 -3
- package/dist/cjs/ui/table-footer/powered-by-jsm-assets/index.compiled.css +2 -2
- package/dist/cjs/ui/table-footer/powered-by-jsm-assets/index.js +1 -1
- package/dist/cjs/ui/table-footer/provider-link/index.compiled.css +2 -2
- package/dist/cjs/ui/table-footer/provider-link/index.js +1 -1
- package/dist/es2019/ui/assets-modal/modal/render-assets-content/initial-state-view/index.compiled.css +1 -1
- package/dist/es2019/ui/assets-modal/modal/render-assets-content/initial-state-view/index.js +1 -1
- package/dist/es2019/ui/common/error-state/access-required.compiled.css +1 -1
- package/dist/es2019/ui/common/error-state/access-required.js +1 -1
- package/dist/es2019/ui/common/initial-state-view/index.compiled.css +1 -1
- package/dist/es2019/ui/common/initial-state-view/index.js +1 -1
- package/dist/es2019/ui/common/modal/count-view-smart-link/index.compiled.css +2 -2
- package/dist/es2019/ui/common/modal/count-view-smart-link/index.js +1 -1
- package/dist/es2019/ui/common/modal/mode-switcher/index.compiled.css +5 -5
- package/dist/es2019/ui/common/modal/mode-switcher/index.js +2 -2
- package/dist/es2019/ui/common/modal/popup-select/custom-checkbox-option.compiled.css +6 -6
- package/dist/es2019/ui/common/modal/popup-select/custom-checkbox-option.js +1 -1
- package/dist/es2019/ui/common/modal/popup-select/dropdownIndicator.compiled.css +1 -1
- package/dist/es2019/ui/common/modal/popup-select/dropdownIndicator.js +1 -1
- package/dist/es2019/ui/common/modal/popup-select/footer.compiled.css +1 -1
- package/dist/es2019/ui/common/modal/popup-select/footer.js +1 -1
- package/dist/es2019/ui/common/modal/search-count/index.js +1 -1
- package/dist/es2019/ui/confluence-search-modal/modal/index.js +1 -1
- package/dist/es2019/ui/issue-like-table/column-picker/concatenated-menu-list.compiled.css +5 -5
- package/dist/es2019/ui/issue-like-table/column-picker/concatenated-menu-list.js +1 -1
- package/dist/es2019/ui/issue-like-table/render-type/date-range/index.js +177 -0
- package/dist/es2019/ui/issue-like-table/render-type/date-range/messages.js +18 -0
- package/dist/es2019/ui/issue-like-table/render-type/index.js +17 -0
- package/dist/es2019/ui/jira-issues-modal/modal/index.js +1 -1
- package/dist/es2019/ui/table-footer/index.compiled.css +3 -3
- package/dist/es2019/ui/table-footer/index.js +3 -3
- package/dist/es2019/ui/table-footer/powered-by-jsm-assets/index.compiled.css +2 -2
- package/dist/es2019/ui/table-footer/powered-by-jsm-assets/index.js +1 -1
- package/dist/es2019/ui/table-footer/provider-link/index.compiled.css +2 -2
- package/dist/es2019/ui/table-footer/provider-link/index.js +1 -1
- package/dist/esm/ui/assets-modal/modal/render-assets-content/initial-state-view/index.compiled.css +1 -1
- package/dist/esm/ui/assets-modal/modal/render-assets-content/initial-state-view/index.js +1 -1
- package/dist/esm/ui/common/error-state/access-required.compiled.css +1 -1
- package/dist/esm/ui/common/error-state/access-required.js +1 -1
- package/dist/esm/ui/common/initial-state-view/index.compiled.css +1 -1
- package/dist/esm/ui/common/initial-state-view/index.js +1 -1
- package/dist/esm/ui/common/modal/count-view-smart-link/index.compiled.css +2 -2
- package/dist/esm/ui/common/modal/count-view-smart-link/index.js +1 -1
- package/dist/esm/ui/common/modal/mode-switcher/index.compiled.css +5 -5
- package/dist/esm/ui/common/modal/mode-switcher/index.js +2 -2
- package/dist/esm/ui/common/modal/popup-select/custom-checkbox-option.compiled.css +6 -6
- package/dist/esm/ui/common/modal/popup-select/custom-checkbox-option.js +1 -1
- package/dist/esm/ui/common/modal/popup-select/dropdownIndicator.compiled.css +1 -1
- package/dist/esm/ui/common/modal/popup-select/dropdownIndicator.js +1 -1
- package/dist/esm/ui/common/modal/popup-select/footer.compiled.css +1 -1
- package/dist/esm/ui/common/modal/popup-select/footer.js +1 -1
- package/dist/esm/ui/common/modal/search-count/index.js +1 -1
- package/dist/esm/ui/confluence-search-modal/modal/index.js +1 -1
- package/dist/esm/ui/issue-like-table/column-picker/concatenated-menu-list.compiled.css +5 -5
- package/dist/esm/ui/issue-like-table/column-picker/concatenated-menu-list.js +1 -1
- package/dist/esm/ui/issue-like-table/render-type/date-range/index.js +173 -0
- package/dist/esm/ui/issue-like-table/render-type/date-range/messages.js +18 -0
- package/dist/esm/ui/issue-like-table/render-type/index.js +19 -0
- package/dist/esm/ui/jira-issues-modal/modal/index.js +1 -1
- package/dist/esm/ui/table-footer/index.compiled.css +3 -3
- package/dist/esm/ui/table-footer/index.js +3 -3
- package/dist/esm/ui/table-footer/powered-by-jsm-assets/index.compiled.css +2 -2
- package/dist/esm/ui/table-footer/powered-by-jsm-assets/index.js +1 -1
- package/dist/esm/ui/table-footer/provider-link/index.compiled.css +2 -2
- package/dist/esm/ui/table-footer/provider-link/index.js +1 -1
- package/dist/types/ui/issue-like-table/render-type/date-range/index.d.ts +11 -0
- package/dist/types/ui/issue-like-table/render-type/date-range/messages.d.ts +17 -0
- package/dist/types-ts4.5/ui/issue-like-table/render-type/date-range/index.d.ts +11 -0
- package/dist/types-ts4.5/ui/issue-like-table/render-type/date-range/messages.d.ts +17 -0
- package/package.json +13 -9
|
@@ -6,7 +6,7 @@ import { FormattedMessage } from 'react-intl-next';
|
|
|
6
6
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
7
7
|
import LinkRenderType from '../../../issue-like-table/render-type/link';
|
|
8
8
|
var styles = {
|
|
9
|
-
placeholderSmartLinkStyles: "_2rko18qm
|
|
9
|
+
placeholderSmartLinkStyles: "_2rko18qm _syaz1oa5 _ca0qze3t _n3tdze3t _19bvv77o _u5f3v77o _16qst7xp",
|
|
10
10
|
smartLinkContainerStyles: "_19bvv77o"
|
|
11
11
|
};
|
|
12
12
|
export var SmartCardPlaceholder = function SmartCardPlaceholder(_ref) {
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
._189ee4h9{border-width:var(--ds-border-width,1px)}
|
|
5
5
|
._1dqonqa1{border-style:solid}
|
|
6
6
|
._1h6d1j28{border-color:transparent}
|
|
7
|
-
.
|
|
8
|
-
.
|
|
7
|
+
._1h6d1l7x{border-color:var(--ds-border,#0b120e24)}
|
|
8
|
+
._1h6dq98m{border-color:var(--ds-border-selected,#1868db)}
|
|
9
9
|
._18u0v47k{margin-left:var(--ds-space-250,20px)}
|
|
10
10
|
._19bv1b66{padding-left:var(--ds-space-050,4px)}
|
|
11
11
|
._19bvutpp{padding-left:var(--ds-space-150,9pt)}
|
|
@@ -17,20 +17,20 @@
|
|
|
17
17
|
._1tke1tcg{min-height:24px}
|
|
18
18
|
._4cvr1h6o{align-items:center}
|
|
19
19
|
._4t3izwfg{height:2pc}
|
|
20
|
-
.
|
|
20
|
+
._bfhk15s3{background-color:var(--ds-background-selected,#e9f2fe)}
|
|
21
21
|
._ca0q1b66{padding-top:var(--ds-space-050,4px)}
|
|
22
22
|
._ca0qv77o{padding-top:var(--ds-space-025,2px)}
|
|
23
23
|
._k48p1wq8{font-weight:var(--ds-font-weight-medium,500)}
|
|
24
24
|
._n3td1b66{padding-bottom:var(--ds-space-050,4px)}
|
|
25
25
|
._n3tdv77o{padding-bottom:var(--ds-space-025,2px)}
|
|
26
26
|
._syaz111d{color:var(--_uz32ib)}
|
|
27
|
-
.
|
|
27
|
+
._syaz6x5g{color:var(--ds-text-selected,#1868db)}
|
|
28
28
|
._syaziwyp{color:var(--_k4gmmg)}
|
|
29
29
|
._u5f31b66{padding-right:var(--ds-space-050,4px)}
|
|
30
30
|
._u5f3utpp{padding-right:var(--ds-space-150,9pt)}
|
|
31
31
|
._vchhusvi{box-sizing:border-box}
|
|
32
32
|
._d0al13gf:hover{cursor:not-allowed}
|
|
33
33
|
._d0altlke:hover{cursor:pointer}
|
|
34
|
+
._irr315s3:hover{background-color:var(--ds-background-selected,#e9f2fe)}
|
|
34
35
|
._irr31j28:hover{background-color:transparent}
|
|
35
|
-
._irr3fg4m:hover{background-color:var(--ds-background-selected,#e9f2ff)}
|
|
36
36
|
._irr3u7au:hover{background-color:var(--_15egq0b)}
|
|
@@ -31,7 +31,7 @@ export var ModeSwitcher = function ModeSwitcher(props) {
|
|
|
31
31
|
return options.length > 0 ? /*#__PURE__*/React.createElement("fieldset", {
|
|
32
32
|
"data-testid": "mode-toggle-container",
|
|
33
33
|
disabled: isDisabled,
|
|
34
|
-
className: ax(["_2rko1b66
|
|
34
|
+
className: ax(["_2rko1b66 _1h6d1l7x _189ee4h9 _1dqonqa1 _4cvr1h6o _vchhusvi _1e0c116y _u5f31b66 _19bv1b66 _18u0v47k _4t3izwfg _1j55105o", isCompact && "_zulpv77o _ca0q1b66 _u5f31b66 _n3td1b66 _19bv1b66"])
|
|
35
35
|
}, options.map(function (_ref) {
|
|
36
36
|
var value = _ref.value,
|
|
37
37
|
label = _ref.label,
|
|
@@ -45,7 +45,7 @@ export var ModeSwitcher = function ModeSwitcher(props) {
|
|
|
45
45
|
return /*#__PURE__*/React.createElement("label", _extends({}, tooltipProps, {
|
|
46
46
|
key: value,
|
|
47
47
|
"data-testid": "mode-toggle-".concat(value),
|
|
48
|
-
className: ax(["_11c82smr _2rko1b66 _1h6d1j28 _189ee4h9 _1dqonqa1 _syaziwyp _vchhusvi _k48p1wq8 _u5f3utpp _19bvutpp _1tke1tcg _1e0c1txw _4cvr1h6o _1bah1h6o _d0altlke _irr3u7au", isCompact && "_ca0qv77o _u5f31b66 _n3tdv77o _19bv1b66", isSelected && "_2rko1b66
|
|
48
|
+
className: ax(["_11c82smr _2rko1b66 _1h6d1j28 _189ee4h9 _1dqonqa1 _syaziwyp _vchhusvi _k48p1wq8 _u5f3utpp _19bvutpp _1tke1tcg _1e0c1txw _4cvr1h6o _1bah1h6o _d0altlke _irr3u7au", isCompact && "_ca0qv77o _u5f31b66 _n3tdv77o _19bv1b66", isSelected && "_2rko1b66 _1h6dq98m _bfhk15s3 _syaz6x5g _d0altlke _irr315s3", isDisabled && "_irr31j28 _d0al13gf", isOptionDisabled && "_syaz111d", isOptionDisabled && "_irr31j28 _d0al13gf"]),
|
|
49
49
|
style: {
|
|
50
50
|
"--_k4gmmg": ix("var(--ds-text-subtlest, ".concat(N700, ")")),
|
|
51
51
|
"--_15egq0b": ix("var(--ds-background-neutral-subtle-hovered, ".concat(N30A, ")")),
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
._189e1dm9{border-width:var(--ds-border-width-selected,2px)}
|
|
3
3
|
._1dqonqa1{border-style:solid}
|
|
4
4
|
._1h6d1j28{border-color:transparent}
|
|
5
|
-
.
|
|
5
|
+
._1h6d1v1w{border-color:var(--ds-border-focused,#4688ec)}._16qsglyw{box-shadow:none}
|
|
6
6
|
._1q511b66{padding-block-start:var(--ds-space-050,4px)}
|
|
7
7
|
._85i51b66{padding-block-end:var(--ds-space-050,4px)}
|
|
8
|
+
._bfhk15s3{background-color:var(--ds-background-selected,#e9f2fe)}
|
|
8
9
|
._bfhk1j9a{background-color:var(--ds-background-input,#fff)}
|
|
9
|
-
._bfhkfg4m{background-color:var(--ds-background-selected,#e9f2ff)}
|
|
10
10
|
._bozgpxbi{padding-inline-start:var(--ds-space-200,1pc)}
|
|
11
11
|
._y4tipxbi{padding-inline-end:var(--ds-space-200,1pc)}
|
|
12
|
-
.
|
|
13
|
-
.
|
|
14
|
-
.
|
|
15
|
-
.
|
|
12
|
+
._irr31dpa:hover{background-color:var(--ds-background-neutral-subtle-hovered,#0515240f)}
|
|
13
|
+
._irr3ufnl:hover{background-color:var(--ds-background-selected-hovered,#cfe1fd)}
|
|
14
|
+
._1di6fcek:active{background-color:var(--ds-background-neutral-subtle-pressed,#0b120e24)}
|
|
15
|
+
._1di6nozp:active{background-color:var(--ds-background-selected-pressed,#8fb8f6)}
|
|
@@ -18,6 +18,6 @@ export var CustomCheckboxOption = function CustomCheckboxOption(_ref) {
|
|
|
18
18
|
}, /*#__PURE__*/React.createElement(CheckboxOption
|
|
19
19
|
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-style-overrides
|
|
20
20
|
, _extends({}, props, {
|
|
21
|
-
className: ax(["_189e1dm9 _1dqonqa1 _1h6d1j28 _16qsglyw _bfhk1j9a _1q511b66 _85i51b66 _bozgpxbi _y4tipxbi
|
|
21
|
+
className: ax(["_189e1dm9 _1dqonqa1 _1h6d1j28 _16qsglyw _bfhk1j9a _1q511b66 _85i51b66 _bozgpxbi _y4tipxbi _irr31dpa _1di6fcek", props.isSelected && "_bfhk15s3 _irr3ufnl _1di6nozp", props.isFocused && "_1h6d1v1w"])
|
|
22
22
|
}), children));
|
|
23
23
|
};
|
|
@@ -8,7 +8,7 @@ import { Pressable } from '@atlaskit/primitives/compiled';
|
|
|
8
8
|
import { components } from '@atlaskit/select';
|
|
9
9
|
var styles = {
|
|
10
10
|
customDropdownIndicatorStylesOld: "_1e0c1txw _80omtlke _1bah1h6o _1bsbzwfg",
|
|
11
|
-
customDropdownIndicatorStyles: "_1e0c1txw _80omtlke _1bah1h6o _1bsbzwfg _bfhk1j28
|
|
11
|
+
customDropdownIndicatorStyles: "_1e0c1txw _80omtlke _1bah1h6o _1bsbzwfg _bfhk1j28 _syazazsu"
|
|
12
12
|
};
|
|
13
13
|
var CustomDropdownIndicator = function CustomDropdownIndicator(props) {
|
|
14
14
|
var selectProps = props.selectProps;
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
._1i53b5v6{border-top-color:var(--ds-border,#dfe1e6)}
|
|
4
4
|
._ca0qutpp{padding-top:var(--ds-space-150,9pt)}
|
|
5
5
|
._n3tdutpp{padding-bottom:var(--ds-space-150,9pt)}
|
|
6
|
-
.
|
|
6
|
+
._syaz1rpy{color:var(--ds-text-subtlest,#6b6e76)}
|
|
7
7
|
._u5f3pxbi{padding-right:var(--ds-space-200,1pc)}
|
|
8
8
|
._uwhke4h9{border-top-width:var(--ds-border-width,1px)}
|
|
@@ -10,7 +10,7 @@ import { N40 } from '@atlaskit/theme/colors';
|
|
|
10
10
|
import { asyncPopupSelectMessages } from './messages';
|
|
11
11
|
var styles = {
|
|
12
12
|
footerContainerStyles: "_ca0qutpp _n3tdutpp _19bvpxbi _u5f3pxbi _uwhke4h9 _15a5nqa1 _1i53b5v6",
|
|
13
|
-
footerPaginationInfoStyles: "
|
|
13
|
+
footerPaginationInfoStyles: "_syaz1rpy"
|
|
14
14
|
};
|
|
15
15
|
var PopupFooter = function PopupFooter(_ref) {
|
|
16
16
|
var currentDisplayCount = _ref.currentDisplayCount,
|
|
@@ -30,7 +30,7 @@ var ItemCountWrapper = function ItemCountWrapper(_ref) {
|
|
|
30
30
|
testId: "item-count-url",
|
|
31
31
|
style: _objectSpread({
|
|
32
32
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
33
|
-
color: "var(--ds-text-subtlest, #
|
|
33
|
+
color: "var(--ds-text-subtlest, #6B6E76)",
|
|
34
34
|
textDecoration: !url ? 'none' : ''
|
|
35
35
|
}, additionalStyles)
|
|
36
36
|
}, children));
|
|
@@ -368,7 +368,7 @@ export var PlainConfluenceSearchConfigModal = function PlainConfluenceSearchConf
|
|
|
368
368
|
prefixTextType: "result",
|
|
369
369
|
testId: "confluence-search-datasource-modal-total-results-count",
|
|
370
370
|
styles: {
|
|
371
|
-
color: "var(--ds-text, #
|
|
371
|
+
color: "var(--ds-text, #292A2E)",
|
|
372
372
|
font: "var(--ds-font-heading-xxsmall, normal 600 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)"
|
|
373
373
|
}
|
|
374
374
|
}), /*#__PURE__*/React.createElement(CancelButton, {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
._16qsglyw{box-shadow:none}
|
|
2
|
-
.
|
|
2
|
+
._bfhk15s3{background-color:var(--ds-background-selected,#e9f2fe)}
|
|
3
3
|
._k48pi7a9{font-weight:var(--ds-font-weight-regular,400)}
|
|
4
4
|
._syaz1gjq{color:var(--ds-text-subtle,#44546f)}
|
|
5
5
|
._u6rdk9i7 font{-u-n-s-a-f-e_small:normal 400 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif}
|
|
6
6
|
._v2glf7ua font{small:normal 400 11px/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif}
|
|
7
7
|
._x3fxnil1 font{medium:normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif}
|
|
8
8
|
._zzcc4f4w font{large:normal 400 1pc/24px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif}
|
|
9
|
-
.
|
|
10
|
-
.
|
|
11
|
-
.
|
|
12
|
-
.
|
|
9
|
+
._irr3plhp:hover{background-color:var(--ds-background-neutral-hovered,#0b120e24)}
|
|
10
|
+
._irr3ufnl:hover{background-color:var(--ds-background-selected-hovered,#cfe1fd)}
|
|
11
|
+
._1di61gdz:active{background-color:var(--ds-background-neutral-pressed,#080f214a)}
|
|
12
|
+
._1di6nozp:active{background-color:var(--ds-background-selected-pressed,#8fb8f6)}
|
|
@@ -39,6 +39,6 @@ export var MenuItem = function MenuItem(_ref2) {
|
|
|
39
39
|
var children = _ref2.children,
|
|
40
40
|
props = _objectWithoutProperties(_ref2, _excluded2);
|
|
41
41
|
return /*#__PURE__*/React.createElement(CheckboxOption, _extends({}, props, {
|
|
42
|
-
className: ax([props.isSelected ? "
|
|
42
|
+
className: ax([props.isSelected ? "_bfhk15s3 _16qsglyw _irr3ufnl _1di6nozp" : "_16qsglyw _irr3plhp _1di61gdz"])
|
|
43
43
|
}), children);
|
|
44
44
|
};
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import addMonths from 'date-fns/addMonths';
|
|
6
|
+
import differenceInDays from 'date-fns/differenceInDays';
|
|
7
|
+
import endOfDay from 'date-fns/endOfDay';
|
|
8
|
+
import getDaysInMonth from 'date-fns/getDaysInMonth';
|
|
9
|
+
import isFirstDayOfMonth from 'date-fns/isFirstDayOfMonth';
|
|
10
|
+
import isLastDayOfMonth from 'date-fns/isLastDayOfMonth';
|
|
11
|
+
import isSameDay from 'date-fns/isSameDay';
|
|
12
|
+
import isSameMonth from 'date-fns/isSameMonth';
|
|
13
|
+
import isSameYear from 'date-fns/isSameYear';
|
|
14
|
+
import startOfDay from 'date-fns/startOfDay';
|
|
15
|
+
import { useIntl } from 'react-intl-next';
|
|
16
|
+
import { Text } from '@atlaskit/primitives/compiled';
|
|
17
|
+
import { messages } from './messages';
|
|
18
|
+
export var DATERANGE_TYPE_TEST_ID = 'link-datasource-render-type--daterange';
|
|
19
|
+
var dateOptions = {
|
|
20
|
+
month: 'short',
|
|
21
|
+
day: 'numeric',
|
|
22
|
+
year: 'numeric'
|
|
23
|
+
};
|
|
24
|
+
var timeOptions = {
|
|
25
|
+
hour12: false,
|
|
26
|
+
hour: '2-digit',
|
|
27
|
+
minute: '2-digit'
|
|
28
|
+
};
|
|
29
|
+
var isDayRange = function isDayRange(startDate, endDate) {
|
|
30
|
+
// Naivly, we could just check
|
|
31
|
+
// return startDate.getTime() === endDate.getTime();
|
|
32
|
+
return isSameYear(startDate, endDate) && isSameMonth(startDate, endDate) && isSameDay(startDate, endDate);
|
|
33
|
+
};
|
|
34
|
+
var isMonthRange = function isMonthRange(startDate, endDate) {
|
|
35
|
+
return isSameYear(startDate, endDate) && isSameMonth(startDate, endDate) && isFirstDayOfMonth(startDate) && isLastDayOfMonth(endDate);
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Checks if the date range is a quarter range.
|
|
40
|
+
* A quarter range is a range of 3 months.
|
|
41
|
+
* The start date must be the first day of the month.
|
|
42
|
+
* The end date must be the last day of the month.
|
|
43
|
+
* Quarters can span across multiple years.
|
|
44
|
+
*/
|
|
45
|
+
var isQuarterRange = function isQuarterRange(startDate, endDate) {
|
|
46
|
+
// We need to add 1 to the difference in days
|
|
47
|
+
// because the differenceInDays method returns the number of full days between the two dates
|
|
48
|
+
// and we want to include the start and end dates
|
|
49
|
+
var diffDays = Math.abs(differenceInDays(startDate, endDate)) + 1;
|
|
50
|
+
var firstMonthDays = getDaysInMonth(startDate);
|
|
51
|
+
var secondMonthDays = getDaysInMonth(addMonths(startDate, 1));
|
|
52
|
+
var thirdMonthDays = getDaysInMonth(endDate);
|
|
53
|
+
return diffDays === firstMonthDays + secondMonthDays + thirdMonthDays && isFirstDayOfMonth(startDate) && isLastDayOfMonth(endDate);
|
|
54
|
+
};
|
|
55
|
+
var getDateScale = function getDateScale(startDate, endDate) {
|
|
56
|
+
if (isDayRange(startDate, endDate)) {
|
|
57
|
+
// start: 2025-11-01
|
|
58
|
+
// end: 2025-11-01
|
|
59
|
+
return 'day';
|
|
60
|
+
}
|
|
61
|
+
if (isMonthRange(startDate, endDate)) {
|
|
62
|
+
// start: 2025-11-01
|
|
63
|
+
// end: 2025-11-30
|
|
64
|
+
return 'month';
|
|
65
|
+
}
|
|
66
|
+
if (isQuarterRange(startDate, endDate)) {
|
|
67
|
+
// start: 2025-11-01
|
|
68
|
+
// end: 2026-01-31
|
|
69
|
+
return 'quarter';
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// start: 2025-11-02
|
|
73
|
+
// end: 2026-05-19
|
|
74
|
+
return 'full';
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
// I decided to reuse the same logic as we use currently in the date-time render type
|
|
78
|
+
// Alternatively, we could also use here `parseISO` from `date-fns`
|
|
79
|
+
var shiftUtcToLocal = function shiftUtcToLocal(dateString) {
|
|
80
|
+
// In some cases we get a value of `2023-12-20` which when parsed by JS assumes meantime timezone, causing the date
|
|
81
|
+
// to be one day off in some timezones. We want it to display the date without converting timezones and a solution
|
|
82
|
+
// is to replace the hyphens with slashes. So it should be 20th Dec regardless of the timezone in this case.
|
|
83
|
+
// See https://stackoverflow.com/a/31732581
|
|
84
|
+
var dateValue = /^\d{4}-\d{2}-\d{2}$/.exec(dateString) ? dateString.replace(/-/g, '/') : dateString;
|
|
85
|
+
return new Date(dateValue);
|
|
86
|
+
};
|
|
87
|
+
var isDateTimeString = function isDateTimeString(dateString) {
|
|
88
|
+
return dateString.match(/^\d{4}-\d{2}-\d{2}/) !== null && dateString.includes('T');
|
|
89
|
+
};
|
|
90
|
+
export function getFormattedDateRange(startValue, endValue, formatDate, formatMessage) {
|
|
91
|
+
if (!startValue || !endValue) {
|
|
92
|
+
return '';
|
|
93
|
+
}
|
|
94
|
+
var isDateTime = isDateTimeString(startValue) && isDateTimeString(endValue);
|
|
95
|
+
var startDate = isDateTime ? new Date(startValue) : startOfDay(shiftUtcToLocal(startValue));
|
|
96
|
+
var endDate = isDateTime ? new Date(endValue) : endOfDay(shiftUtcToLocal(endValue));
|
|
97
|
+
if (isNaN(startDate.getTime()) || isNaN(endDate.getTime())) {
|
|
98
|
+
return '';
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
// If startValue and endValue are valid ISO date strings, we consider it a full range
|
|
102
|
+
var dateScale = isDateTime ? 'full' : getDateScale(startDate, endDate);
|
|
103
|
+
switch (dateScale) {
|
|
104
|
+
case 'day':
|
|
105
|
+
// Nov 1, 2025
|
|
106
|
+
return formatDate(startDate, {
|
|
107
|
+
month: 'short',
|
|
108
|
+
day: 'numeric',
|
|
109
|
+
year: 'numeric'
|
|
110
|
+
});
|
|
111
|
+
case 'month':
|
|
112
|
+
// Nov 2025
|
|
113
|
+
return formatDate(startDate, {
|
|
114
|
+
month: 'short',
|
|
115
|
+
year: 'numeric'
|
|
116
|
+
});
|
|
117
|
+
case 'quarter':
|
|
118
|
+
{
|
|
119
|
+
// Jan-Mar, 2025
|
|
120
|
+
if (isSameYear(startDate, endDate)) {
|
|
121
|
+
return formatMessage(messages.quarterRange, {
|
|
122
|
+
startMonth: formatDate(startDate, {
|
|
123
|
+
month: 'short'
|
|
124
|
+
}),
|
|
125
|
+
endMonth: formatDate(endDate, {
|
|
126
|
+
month: 'short'
|
|
127
|
+
}),
|
|
128
|
+
year: formatDate(startDate, {
|
|
129
|
+
year: 'numeric'
|
|
130
|
+
})
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
// Dec-Feb, 2025-2026
|
|
134
|
+
return formatMessage(messages.quarterRangeOverYears, {
|
|
135
|
+
startMonth: formatDate(startDate, {
|
|
136
|
+
month: 'short'
|
|
137
|
+
}),
|
|
138
|
+
endMonth: formatDate(endDate, {
|
|
139
|
+
month: 'short'
|
|
140
|
+
}),
|
|
141
|
+
startYear: formatDate(startDate, {
|
|
142
|
+
year: 'numeric'
|
|
143
|
+
}),
|
|
144
|
+
endYear: formatDate(endDate, {
|
|
145
|
+
year: 'numeric'
|
|
146
|
+
})
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
case 'full':
|
|
150
|
+
// Nov 1, 2025 - May 19, 2026
|
|
151
|
+
// Jan 1, 2025, 00:00 - Mar 31, 2025, 23:59
|
|
152
|
+
return formatMessage(messages.fullRange, {
|
|
153
|
+
start: formatDate(startDate, _objectSpread(_objectSpread({}, dateOptions), timeOptions)),
|
|
154
|
+
end: formatDate(endDate, _objectSpread(_objectSpread({}, dateOptions), timeOptions))
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
var DateRangeRenderType = function DateRangeRenderType(_ref) {
|
|
159
|
+
var value = _ref.value,
|
|
160
|
+
_ref$testId = _ref.testId,
|
|
161
|
+
testId = _ref$testId === void 0 ? DATERANGE_TYPE_TEST_ID : _ref$testId;
|
|
162
|
+
var _useIntl = useIntl(),
|
|
163
|
+
formatDate = _useIntl.formatDate,
|
|
164
|
+
formatMessage = _useIntl.formatMessage;
|
|
165
|
+
var formattedString = getFormattedDateRange(value.start, value.end, formatDate, formatMessage);
|
|
166
|
+
if (formattedString === '') {
|
|
167
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
168
|
+
}
|
|
169
|
+
return /*#__PURE__*/React.createElement(Text, {
|
|
170
|
+
testId: testId
|
|
171
|
+
}, formattedString);
|
|
172
|
+
};
|
|
173
|
+
export default DateRangeRenderType;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { defineMessages } from 'react-intl-next';
|
|
2
|
+
export var messages = defineMessages({
|
|
3
|
+
quarterRange: {
|
|
4
|
+
id: 'linkDataSource.issueLikeTable.renderType.dateRange.quarterRange',
|
|
5
|
+
description: 'The formatted date range for a quarter range',
|
|
6
|
+
defaultMessage: '{startMonth}-{endMonth}, {year}'
|
|
7
|
+
},
|
|
8
|
+
quarterRangeOverYears: {
|
|
9
|
+
id: 'linkDataSource.issueLikeTable.renderType.dateRange.quarterRangeOverYears',
|
|
10
|
+
description: 'The formatted date range for a quarter range that spans across multiple years',
|
|
11
|
+
defaultMessage: '{startMonth}-{endMonth}, {startYear}-{endYear}'
|
|
12
|
+
},
|
|
13
|
+
fullRange: {
|
|
14
|
+
id: 'linkDataSource.issueLikeTable.renderType.dateRange.fullRange',
|
|
15
|
+
description: 'The formatted date range for a full range (day, month, quarter, or full)',
|
|
16
|
+
defaultMessage: '{start} - {end}'
|
|
17
|
+
}
|
|
18
|
+
});
|
|
@@ -2,6 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
4
|
import BooleanRenderType from './boolean';
|
|
5
|
+
import DateRangeRenderType, { getFormattedDateRange } from './date-range';
|
|
5
6
|
import DateTimeRenderType, { getFormattedDate } from './date-time';
|
|
6
7
|
import IconRenderType from './icon';
|
|
7
8
|
import LinkRenderType from './link';
|
|
@@ -23,6 +24,13 @@ export var stringifyType = function stringifyType(_ref, formatMessage, formatDat
|
|
|
23
24
|
return getFormattedDate(value, 'date', formatDate);
|
|
24
25
|
case 'datetime':
|
|
25
26
|
return getFormattedDate(value, 'datetime', formatDate);
|
|
27
|
+
case 'daterange':
|
|
28
|
+
{
|
|
29
|
+
if (fg('jpd_confluence_date_fields_improvements')) {
|
|
30
|
+
return getFormattedDateRange(value.start, value.end, formatDate, formatMessage);
|
|
31
|
+
}
|
|
32
|
+
return '';
|
|
33
|
+
}
|
|
26
34
|
case 'time':
|
|
27
35
|
return getFormattedDate(value, 'time', formatDate);
|
|
28
36
|
case 'icon':
|
|
@@ -69,6 +77,17 @@ export var renderType = function renderType(item) {
|
|
|
69
77
|
display: "datetime"
|
|
70
78
|
});
|
|
71
79
|
});
|
|
80
|
+
case 'daterange':
|
|
81
|
+
{
|
|
82
|
+
if (fg('jpd_confluence_date_fields_improvements')) {
|
|
83
|
+
return item.values.map(function (dateRangeValue) {
|
|
84
|
+
return /*#__PURE__*/React.createElement(DateRangeRenderType, {
|
|
85
|
+
value: dateRangeValue
|
|
86
|
+
});
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
90
|
+
}
|
|
72
91
|
case 'icon':
|
|
73
92
|
return item.values.map(function (iconValue) {
|
|
74
93
|
return /*#__PURE__*/React.createElement(IconRenderType, iconValue);
|
|
@@ -410,7 +410,7 @@ var PlainJiraIssuesConfigModal = function PlainJiraIssuesConfigModal(props) {
|
|
|
410
410
|
prefixTextType: "issue",
|
|
411
411
|
testId: "jira-datasource-modal-total-issues-count",
|
|
412
412
|
styles: {
|
|
413
|
-
color: "var(--ds-text, #
|
|
413
|
+
color: "var(--ds-text, #292A2E)",
|
|
414
414
|
font: "var(--ds-font-heading-xxsmall, normal 600 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)"
|
|
415
415
|
}
|
|
416
416
|
}), /*#__PURE__*/React.createElement(CancelButton, {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
._11c81o8v{font:var(--ds-font-body-small,normal 400 11px/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
2
|
._2rko1kw7{border-radius:inherit}
|
|
3
|
-
.
|
|
3
|
+
._x3doia51{border-top:var(--ds-border-width,1px) solid var(--ds-border,#0b120e24)}
|
|
4
4
|
._13liidpf{border-top-left-radius:0}
|
|
5
5
|
._19bvpxbi{padding-left:var(--ds-space-200,1pc)}
|
|
6
6
|
._bfhkhp5a{background-color:var(--ds-surface-raised,#fff)}
|
|
7
7
|
._ca0qu2gc{padding-top:var(--ds-space-100,8px)}
|
|
8
8
|
._n3tdu2gc{padding-bottom:var(--ds-space-100,8px)}
|
|
9
9
|
._qrwqidpf{border-top-right-radius:0}
|
|
10
|
-
.
|
|
11
|
-
.
|
|
10
|
+
._syaz1l7x{color:var(--ds-border,#0b120e24)}
|
|
11
|
+
._syaz1rpy{color:var(--ds-text-subtlest,#6b6e76)}
|
|
12
12
|
._u5f3pxbi{padding-right:var(--ds-space-200,1pc)}
|
|
13
13
|
._vchhusvi{box-sizing:border-box}
|
|
@@ -15,8 +15,8 @@ import { footerMessages } from './messages';
|
|
|
15
15
|
import { ProviderLink } from './provider-link';
|
|
16
16
|
import { SyncInfo } from './sync-info';
|
|
17
17
|
var styles = {
|
|
18
|
-
footer: "_11c81o8v _2rko1kw7
|
|
19
|
-
separator: "
|
|
18
|
+
footer: "_11c81o8v _2rko1kw7 _x3doia51 _syaz1rpy _ca0qu2gc _u5f3pxbi _n3tdu2gc _19bvpxbi _vchhusvi _13liidpf _qrwqidpf _bfhkhp5a",
|
|
19
|
+
separator: "_syaz1l7x"
|
|
20
20
|
};
|
|
21
21
|
export var TableFooter = function TableFooter(_ref) {
|
|
22
22
|
var datasourceId = _ref.datasourceId,
|
|
@@ -58,7 +58,7 @@ export var TableFooter = function TableFooter(_ref) {
|
|
|
58
58
|
appearance: "subtle",
|
|
59
59
|
icon: function icon(iconProps) {
|
|
60
60
|
return /*#__PURE__*/React.createElement(RefreshIcon, _extends({}, iconProps, {
|
|
61
|
-
color: "var(--ds-text-subtlest, #
|
|
61
|
+
color: "var(--ds-text-subtlest, #6B6E76)"
|
|
62
62
|
}));
|
|
63
63
|
},
|
|
64
64
|
isDisabled: isLoading,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
._18u012x7{margin-left:var(--ds-space-075,6px)}
|
|
2
2
|
._1e0c1txw{display:flex}
|
|
3
3
|
._2lx21sbv{flex-direction:row-reverse}
|
|
4
|
-
.
|
|
5
|
-
.
|
|
4
|
+
._syazazsu{color:var(--ds-text-subtle,#505258)}
|
|
5
|
+
._30l312zz:hover{color:var(--ds-link-pressed,#1558bc)}
|
|
@@ -8,7 +8,7 @@ import { fg } from '@atlaskit/platform-feature-flags';
|
|
|
8
8
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
9
9
|
import { useDatasourceAnalyticsEvents } from '../../../analytics';
|
|
10
10
|
var styles = {
|
|
11
|
-
jsmTextStyles: "
|
|
11
|
+
jsmTextStyles: "_syazazsu _18u012x7 _30l312zz",
|
|
12
12
|
jsmContainerStyles: "_1e0c1txw _2lx21sbv"
|
|
13
13
|
};
|
|
14
14
|
export var PoweredByJSMAssets = function PoweredByJSMAssets(props) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
._1hmsglyw{text-decoration-line:none}
|
|
3
3
|
._4bfu1r31{text-decoration-color:currentColor}
|
|
4
4
|
._ajmmnqa1{text-decoration-style:solid}
|
|
5
|
-
.
|
|
6
|
-
.
|
|
5
|
+
._syaz1rpy{color:var(--ds-text-subtlest,#6b6e76)}._1bnxglyw:hover{text-decoration-line:none}
|
|
6
|
+
._30l31rpy:hover{color:var(--ds-text-subtlest,#6b6e76)}
|
|
7
7
|
._9oik1r31:hover{text-decoration-color:currentColor}
|
|
8
8
|
._jf4cnqa1:hover{text-decoration-style:solid}
|
|
@@ -11,7 +11,7 @@ import { useDatasourceAnalyticsEvents } from '../../../analytics';
|
|
|
11
11
|
import { ASSETS_LIST_OF_LINKS_DATASOURCE_ID } from '../../assets-modal';
|
|
12
12
|
import { footerMessages } from '../messages';
|
|
13
13
|
var styles = {
|
|
14
|
-
anchor: "_4bfu1r31 _1hmsglyw _ajmmnqa1
|
|
14
|
+
anchor: "_4bfu1r31 _1hmsglyw _ajmmnqa1 _syaz1rpy _9oik1r31 _1bnxglyw _jf4cnqa1 _30l31rpy"
|
|
15
15
|
};
|
|
16
16
|
export var ProviderLink = function ProviderLink(_ref) {
|
|
17
17
|
var datasourceId = _ref.datasourceId;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type IntlShape } from 'react-intl-next';
|
|
3
|
+
import { type DateRangeType } from '@atlaskit/linking-types';
|
|
4
|
+
export interface DateRangeProps {
|
|
5
|
+
testId?: string;
|
|
6
|
+
value: DateRangeType['value'];
|
|
7
|
+
}
|
|
8
|
+
export declare const DATERANGE_TYPE_TEST_ID = "link-datasource-render-type--daterange";
|
|
9
|
+
export declare function getFormattedDateRange(startValue: string, endValue: string, formatDate: IntlShape['formatDate'], formatMessage: IntlShape['formatMessage']): string;
|
|
10
|
+
declare const DateRangeRenderType: ({ value, testId }: DateRangeProps) => React.JSX.Element;
|
|
11
|
+
export default DateRangeRenderType;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const messages: {
|
|
2
|
+
quarterRange: {
|
|
3
|
+
id: string;
|
|
4
|
+
description: string;
|
|
5
|
+
defaultMessage: string;
|
|
6
|
+
};
|
|
7
|
+
quarterRangeOverYears: {
|
|
8
|
+
id: string;
|
|
9
|
+
description: string;
|
|
10
|
+
defaultMessage: string;
|
|
11
|
+
};
|
|
12
|
+
fullRange: {
|
|
13
|
+
id: string;
|
|
14
|
+
description: string;
|
|
15
|
+
defaultMessage: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type IntlShape } from 'react-intl-next';
|
|
3
|
+
import { type DateRangeType } from '@atlaskit/linking-types';
|
|
4
|
+
export interface DateRangeProps {
|
|
5
|
+
testId?: string;
|
|
6
|
+
value: DateRangeType['value'];
|
|
7
|
+
}
|
|
8
|
+
export declare const DATERANGE_TYPE_TEST_ID = "link-datasource-render-type--daterange";
|
|
9
|
+
export declare function getFormattedDateRange(startValue: string, endValue: string, formatDate: IntlShape['formatDate'], formatMessage: IntlShape['formatMessage']): string;
|
|
10
|
+
declare const DateRangeRenderType: ({ value, testId }: DateRangeProps) => React.JSX.Element;
|
|
11
|
+
export default DateRangeRenderType;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const messages: {
|
|
2
|
+
quarterRange: {
|
|
3
|
+
id: string;
|
|
4
|
+
description: string;
|
|
5
|
+
defaultMessage: string;
|
|
6
|
+
};
|
|
7
|
+
quarterRangeOverYears: {
|
|
8
|
+
id: string;
|
|
9
|
+
description: string;
|
|
10
|
+
defaultMessage: string;
|
|
11
|
+
};
|
|
12
|
+
fullRange: {
|
|
13
|
+
id: string;
|
|
14
|
+
description: string;
|
|
15
|
+
defaultMessage: string;
|
|
16
|
+
};
|
|
17
|
+
};
|