@atlaskit/link-datasource 4.1.15 → 4.3.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 +20 -0
- package/dist/cjs/ui/common/modal/search-count/index.js +2 -2
- package/dist/cjs/ui/issue-like-table/column-picker/concatenated-menu-list.compiled.css +7 -1
- package/dist/cjs/ui/issue-like-table/column-picker/concatenated-menu-list.js +12 -2
- package/dist/cjs/ui/issue-like-table/column-picker/index.js +13 -5
- package/dist/cjs/ui/table-footer/index.compiled.css +7 -0
- package/dist/cjs/ui/table-footer/index.js +54 -0
- package/dist/cjs/ui/table-footer/provider-link/index.compiled.css +8 -0
- package/dist/cjs/ui/table-footer/provider-link/index.js +69 -0
- package/dist/es2019/ui/common/modal/search-count/index.js +2 -2
- package/dist/es2019/ui/issue-like-table/column-picker/concatenated-menu-list.compiled.css +7 -1
- package/dist/es2019/ui/issue-like-table/column-picker/concatenated-menu-list.js +11 -1
- package/dist/es2019/ui/issue-like-table/column-picker/index.js +14 -6
- package/dist/es2019/ui/table-footer/index.compiled.css +7 -0
- package/dist/es2019/ui/table-footer/index.js +53 -1
- package/dist/es2019/ui/table-footer/provider-link/index.compiled.css +8 -0
- package/dist/es2019/ui/table-footer/provider-link/index.js +60 -0
- package/dist/esm/ui/common/modal/search-count/index.js +2 -2
- package/dist/esm/ui/issue-like-table/column-picker/concatenated-menu-list.compiled.css +7 -1
- package/dist/esm/ui/issue-like-table/column-picker/concatenated-menu-list.js +12 -2
- package/dist/esm/ui/issue-like-table/column-picker/index.js +14 -6
- package/dist/esm/ui/table-footer/index.compiled.css +7 -0
- package/dist/esm/ui/table-footer/index.js +55 -1
- package/dist/esm/ui/table-footer/provider-link/index.compiled.css +8 -0
- package/dist/esm/ui/table-footer/provider-link/index.js +60 -0
- package/dist/types/ui/issue-like-table/column-picker/concatenated-menu-list.d.ts +2 -1
- package/dist/types/ui/table-footer/provider-link/index.d.ts +4 -0
- package/dist/types-ts4.5/ui/issue-like-table/column-picker/concatenated-menu-list.d.ts +2 -1
- package/dist/types-ts4.5/ui/table-footer/provider-link/index.d.ts +4 -0
- package/examples-helpers/buildIssueLikeTable.tsx +14 -5
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/link-datasource
|
|
2
2
|
|
|
3
|
+
## 4.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#140906](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/140906)
|
|
8
|
+
[`339ce976410b9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/339ce976410b9) -
|
|
9
|
+
[ux] EDM-11648 Updating header styles for design refresh phase 2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 4.2.0
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- [#133731](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/133731)
|
|
20
|
+
[`10bd29b685adb`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/10bd29b685adb) -
|
|
21
|
+
[ux] EDM-11648 SLLV Footer design refresh
|
|
22
|
+
|
|
3
23
|
## 4.1.15
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
|
@@ -36,10 +36,10 @@ var ItemCountWrapper = function ItemCountWrapper(_ref) {
|
|
|
36
36
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
37
37
|
,
|
|
38
38
|
style: {
|
|
39
|
-
color: "var(--ds-text-accent-gray, ".concat(_colors.N800, ")"),
|
|
39
|
+
color: (0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-sllv') ? "var(--ds-text-subtlest, #626F86)" : "var(--ds-text-accent-gray, ".concat(_colors.N800, ")"),
|
|
40
40
|
textDecoration: !url ? 'none' : ''
|
|
41
41
|
}
|
|
42
|
-
}, /*#__PURE__*/_react.default.createElement(_heading.default, {
|
|
42
|
+
}, (0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-sllv') ? children : /*#__PURE__*/_react.default.createElement(_heading.default, {
|
|
43
43
|
size: "xxsmall"
|
|
44
44
|
}, children)));
|
|
45
45
|
};
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
+
._16qsglyw{box-shadow:none}
|
|
2
|
+
._bfhkfg4m{background-color:var(--ds-background-selected,#e9f2ff)}
|
|
1
3
|
._k48pi7a9{font-weight:var(--ds-font-weight-regular,400)}
|
|
2
4
|
._syaz1gjq{color:var(--ds-text-subtle,#44546f)}
|
|
3
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}
|
|
4
6
|
._v2glf7ua font{small:normal 400 11px/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif}
|
|
5
7
|
._x3fxnil1 font{medium:normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif}
|
|
6
|
-
._zzcc4f4w font{large:normal 400 1pc/24px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif}
|
|
8
|
+
._zzcc4f4w font{large:normal 400 1pc/24px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif}
|
|
9
|
+
._irr315ej:hover{background-color:var(--ds-background-neutral-hovered,#091e4224)}
|
|
10
|
+
._irr3i1yw:hover{background-color:var(--ds-background-selected-hovered,#cce0ff)}
|
|
11
|
+
._1di619ru:active{background-color:var(--ds-background-selected-pressed,#85b8ff)}
|
|
12
|
+
._1di6ip91:active{background-color:var(--ds-background-neutral-pressed,#091e424f)}
|
|
@@ -6,7 +6,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
6
6
|
Object.defineProperty(exports, "__esModule", {
|
|
7
7
|
value: true
|
|
8
8
|
});
|
|
9
|
-
exports.SELECT_ITEMS_MAXIMUM_THRESHOLD = exports.ConcatenatedMenuList = void 0;
|
|
9
|
+
exports.SELECT_ITEMS_MAXIMUM_THRESHOLD = exports.MenuItem = exports.ConcatenatedMenuList = void 0;
|
|
10
10
|
require("./concatenated-menu-list.compiled.css");
|
|
11
11
|
var React = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _runtime = require("@compiled/react/runtime");
|
|
@@ -16,11 +16,14 @@ var _reactIntlNext = require("react-intl-next");
|
|
|
16
16
|
var _select = require("@atlaskit/select");
|
|
17
17
|
var _typography = require("@atlaskit/theme/typography");
|
|
18
18
|
var _messages = require("./messages");
|
|
19
|
-
var _excluded = ["children"]
|
|
19
|
+
var _excluded = ["children"],
|
|
20
|
+
_excluded2 = ["children"];
|
|
20
21
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
21
22
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
22
23
|
var SELECT_ITEMS_MAXIMUM_THRESHOLD = exports.SELECT_ITEMS_MAXIMUM_THRESHOLD = 200;
|
|
23
24
|
var messageStyles = null;
|
|
25
|
+
var listItemStylesSelected = null;
|
|
26
|
+
var listItemStyles = null;
|
|
24
27
|
var ConcatenatedMenuList = exports.ConcatenatedMenuList = function ConcatenatedMenuList(_ref) {
|
|
25
28
|
var children = _ref.children,
|
|
26
29
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
@@ -41,4 +44,11 @@ var ConcatenatedMenuList = exports.ConcatenatedMenuList = function ConcatenatedM
|
|
|
41
44
|
tagName: 'div'
|
|
42
45
|
}, _messages.columnPickerMessages.maximumItemsShownLine2)));
|
|
43
46
|
return /*#__PURE__*/React.createElement(_select.components.MenuList, props, children.slice(0, SELECT_ITEMS_MAXIMUM_THRESHOLD), maximumLimitReachedMessage);
|
|
47
|
+
};
|
|
48
|
+
var MenuItem = exports.MenuItem = function MenuItem(_ref2) {
|
|
49
|
+
var children = _ref2.children,
|
|
50
|
+
props = (0, _objectWithoutProperties2.default)(_ref2, _excluded2);
|
|
51
|
+
return /*#__PURE__*/React.createElement(_select.CheckboxOption, (0, _extends2.default)({}, props, {
|
|
52
|
+
className: (0, _runtime.ax)([props.isSelected ? "_bfhkfg4m _16qsglyw _irr3i1yw _1di619ru" : "_16qsglyw _irr315ej _1di6ip91"])
|
|
53
|
+
}), children);
|
|
44
54
|
};
|
|
@@ -16,8 +16,11 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
16
16
|
var _react = _interopRequireWildcard(require("react"));
|
|
17
17
|
var _reactIntlNext = require("react-intl-next");
|
|
18
18
|
var _new = _interopRequireDefault(require("@atlaskit/button/new"));
|
|
19
|
+
var _customize = _interopRequireDefault(require("@atlaskit/icon/core/customize"));
|
|
19
20
|
var _board = _interopRequireDefault(require("@atlaskit/icon/core/migration/board"));
|
|
20
|
-
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/utility/
|
|
21
|
+
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/utility/chevron-down"));
|
|
22
|
+
var _chevronDown2 = _interopRequireDefault(require("@atlaskit/icon/utility/migration/chevron-down"));
|
|
23
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
21
24
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
22
25
|
var _select = require("@atlaskit/select");
|
|
23
26
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
@@ -123,11 +126,12 @@ var ColumnPicker = exports.ColumnPicker = function ColumnPicker(_ref) {
|
|
|
123
126
|
}
|
|
124
127
|
}
|
|
125
128
|
}, [allOptions, experienceId]);
|
|
129
|
+
var MenuOption = (0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-sllv') ? _concatenatedMenuList.MenuItem : _select.CheckboxOption;
|
|
126
130
|
return /*#__PURE__*/_react.default.createElement(_select.PopupSelect, {
|
|
127
131
|
classNamePrefix: 'column-picker-popup',
|
|
128
132
|
testId: 'column-picker-popup',
|
|
129
133
|
components: {
|
|
130
|
-
Option:
|
|
134
|
+
Option: MenuOption,
|
|
131
135
|
MenuList: _concatenatedMenuList.ConcatenatedMenuList
|
|
132
136
|
},
|
|
133
137
|
filterOption: (0, _select.createFilter)({
|
|
@@ -158,19 +162,23 @@ var ColumnPicker = exports.ColumnPicker = function ColumnPicker(_ref) {
|
|
|
158
162
|
return /*#__PURE__*/_react.default.createElement(_new.default, (0, _extends2.default)({}, tooltipProps, triggerProps, {
|
|
159
163
|
isSelected: isOpen,
|
|
160
164
|
spacing: "compact",
|
|
161
|
-
appearance: "subtle",
|
|
165
|
+
appearance: (0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-sllv') ? "default" : "subtle",
|
|
162
166
|
testId: "column-picker-trigger-button",
|
|
163
167
|
iconBefore: function iconBefore() {
|
|
164
168
|
return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
165
169
|
as: "span",
|
|
166
170
|
xcss: styles.chevronIconStyles
|
|
167
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
171
|
+
}, (0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-sllv') ? /*#__PURE__*/_react.default.createElement(_customize.default, {
|
|
172
|
+
label: "customize"
|
|
173
|
+
}) : /*#__PURE__*/_react.default.createElement(_board.default, {
|
|
168
174
|
color: "currentColor",
|
|
169
175
|
label: "board",
|
|
170
176
|
LEGACY_size: "medium",
|
|
171
177
|
spacing: "spacious",
|
|
172
178
|
LEGACY_margin: "0 0 0 4px"
|
|
173
|
-
}), /*#__PURE__*/_react.default.createElement(_chevronDown.default, {
|
|
179
|
+
}), (0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-sllv') ? /*#__PURE__*/_react.default.createElement(_chevronDown.default, {
|
|
180
|
+
label: "down"
|
|
181
|
+
}) : /*#__PURE__*/_react.default.createElement(_chevronDown2.default, {
|
|
174
182
|
color: "currentColor",
|
|
175
183
|
label: "down",
|
|
176
184
|
LEGACY_size: "medium"
|
|
@@ -1,6 +1,8 @@
|
|
|
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)}
|
|
1
2
|
._11c8dcr7{font:var(--ds-font-body-UNSAFE_small,normal 400 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
3
|
._2rko1kw7{border-radius:inherit}
|
|
3
4
|
._x3do17u4{border-top:2px solid var(--ds-background-accent-gray-subtler,#dfe1e6)}
|
|
5
|
+
._x3dozgxb{border-top:1px solid var(--ds-border,#091e4224)}
|
|
4
6
|
._13liidpf{border-top-left-radius:0}
|
|
5
7
|
._19bvpxbi{padding-left:var(--ds-space-200,1pc)}
|
|
6
8
|
._19bvze3t{padding-left:var(--ds-space-0,0)}
|
|
@@ -9,12 +11,17 @@
|
|
|
9
11
|
._2hwx12x7{margin-right:var(--ds-space-075,6px)}
|
|
10
12
|
._4cvr1h6o{align-items:center}
|
|
11
13
|
._bfhk1j9a{background-color:var(--ds-background-input,#fff)}
|
|
14
|
+
._bfhkhp5a{background-color:var(--ds-surface-raised,#fff)}
|
|
15
|
+
._ca0q1ejb{padding-top:var(--ds-space-300,24px)}
|
|
12
16
|
._ca0qv47k{padding-top:var(--ds-space-250,20px)}
|
|
13
17
|
._ca0qze3t{padding-top:var(--ds-space-0,0)}
|
|
18
|
+
._n3td1ejb{padding-bottom:var(--ds-space-300,24px)}
|
|
14
19
|
._n3tdv47k{padding-bottom:var(--ds-space-250,20px)}
|
|
15
20
|
._n3tdze3t{padding-bottom:var(--ds-space-0,0)}
|
|
16
21
|
._qrwqidpf{border-top-right-radius:0}
|
|
22
|
+
._syaz131l{color:var(--ds-text-subtlest,#626f86)}
|
|
17
23
|
._syaz1dyx{color:var(--ds-text-accent-gray,#44546f)}
|
|
24
|
+
._syazmuej{color:var(--ds-border,#091e4224)}
|
|
18
25
|
._u5f3pxbi{padding-right:var(--ds-space-200,1pc)}
|
|
19
26
|
._u5f3ze3t{padding-right:var(--ds-space-0,0)}
|
|
20
27
|
._vchhusvi{box-sizing:border-box}
|
|
@@ -16,6 +16,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
16
16
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
17
17
|
var _reactIntlNext = require("react-intl-next");
|
|
18
18
|
var _button = _interopRequireDefault(require("@atlaskit/button"));
|
|
19
|
+
var _new = require("@atlaskit/button/new");
|
|
19
20
|
var _refresh = _interopRequireDefault(require("@atlaskit/icon/core/migration/refresh"));
|
|
20
21
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
21
22
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
@@ -24,6 +25,7 @@ var _assetsModal = require("../assets-modal");
|
|
|
24
25
|
var _searchCount = _interopRequireWildcard(require("../common/modal/search-count"));
|
|
25
26
|
var _messages = require("./messages");
|
|
26
27
|
var _poweredByJsmAssets = require("./powered-by-jsm-assets");
|
|
28
|
+
var _providerLink = require("./provider-link");
|
|
27
29
|
var _syncInfo = require("./sync-info");
|
|
28
30
|
var _excluded = ["as", "style"],
|
|
29
31
|
_excluded2 = ["as", "style"],
|
|
@@ -31,6 +33,11 @@ var _excluded = ["as", "style"],
|
|
|
31
33
|
_excluded4 = ["as", "style"];
|
|
32
34
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
33
35
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
36
|
+
var styles = {
|
|
37
|
+
footer: "_11c81o8v _2rko1kw7 _x3dozgxb _syaz131l _ca0q1ejb _u5f3pxbi _n3td1ejb _19bvpxbi _vchhusvi _13liidpf _qrwqidpf _bfhkhp5a",
|
|
38
|
+
separator: "_syazmuej"
|
|
39
|
+
};
|
|
40
|
+
|
|
34
41
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
35
42
|
var FooterWrapper = (0, _react.forwardRef)(function (_ref, __cmplr) {
|
|
36
43
|
var _ref$as = _ref.as,
|
|
@@ -111,6 +118,53 @@ var TableFooter = exports.TableFooter = function TableFooter(_ref5) {
|
|
|
111
118
|
setLastSyncTime(new Date());
|
|
112
119
|
}
|
|
113
120
|
}, [isLoading]);
|
|
121
|
+
if ((0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-sllv')) {
|
|
122
|
+
return onRefresh || showItemCount ? /*#__PURE__*/React.createElement("div", {
|
|
123
|
+
"data-testid": "table-footer",
|
|
124
|
+
className: (0, _runtime.ax)([styles.footer])
|
|
125
|
+
}, /*#__PURE__*/React.createElement(_compiled.Inline, {
|
|
126
|
+
alignBlock: "center",
|
|
127
|
+
alignInline: "end",
|
|
128
|
+
grow: "hug",
|
|
129
|
+
spread: "space-between"
|
|
130
|
+
}, /*#__PURE__*/React.createElement(_compiled.Box, null, /*#__PURE__*/React.createElement(_providerLink.ProviderLink, {
|
|
131
|
+
datasourceId: datasourceId
|
|
132
|
+
})), /*#__PURE__*/React.createElement(_compiled.Inline, {
|
|
133
|
+
alignBlock: "center",
|
|
134
|
+
space: "space.100",
|
|
135
|
+
separator: /*#__PURE__*/React.createElement("div", {
|
|
136
|
+
className: (0, _runtime.ax)([styles.separator])
|
|
137
|
+
}, "\u2022")
|
|
138
|
+
}, onRefresh && /*#__PURE__*/React.createElement(_compiled.Inline, {
|
|
139
|
+
alignBlock: "center",
|
|
140
|
+
space: "space.050"
|
|
141
|
+
}, /*#__PURE__*/React.createElement(_new.IconButton, {
|
|
142
|
+
appearance: "subtle",
|
|
143
|
+
icon: function icon(iconProps) {
|
|
144
|
+
return /*#__PURE__*/React.createElement(_refresh.default, (0, _extends2.default)({}, iconProps, {
|
|
145
|
+
color: "var(--ds-text-subtlest, #626F86)"
|
|
146
|
+
}));
|
|
147
|
+
},
|
|
148
|
+
isDisabled: isLoading,
|
|
149
|
+
label: intl.formatMessage(_messages.footerMessages.refreshLabel),
|
|
150
|
+
onClick: onRefresh,
|
|
151
|
+
spacing: "compact",
|
|
152
|
+
testId: "refresh-button"
|
|
153
|
+
}), /*#__PURE__*/React.createElement(_compiled.Box, {
|
|
154
|
+
testId: "sync-text"
|
|
155
|
+
}, isLoading ? /*#__PURE__*/React.createElement(_reactIntlNext.FormattedMessage, _messages.footerMessages.loadingText) : /*#__PURE__*/React.createElement(_syncInfo.SyncInfo, {
|
|
156
|
+
lastSyncTime: lastSyncTime
|
|
157
|
+
}))), showItemCount && /*#__PURE__*/React.createElement(_compiled.Flex, null, datasourceId === _assetsModal.ASSETS_LIST_OF_LINKS_DATASOURCE_ID ? /*#__PURE__*/React.createElement(_searchCount.AssetsItemCount, {
|
|
158
|
+
searchCount: itemCount,
|
|
159
|
+
url: url,
|
|
160
|
+
testId: "item-count"
|
|
161
|
+
}) : /*#__PURE__*/React.createElement(_searchCount.default, {
|
|
162
|
+
searchCount: itemCount,
|
|
163
|
+
url: url,
|
|
164
|
+
prefixTextType: "item",
|
|
165
|
+
testId: "item-count"
|
|
166
|
+
}))))) : null;
|
|
167
|
+
}
|
|
114
168
|
|
|
115
169
|
// If only one of the two is passed in, still show the other one (Note: We keep the div encapsulating the one not shown to
|
|
116
170
|
// ensure correct positioning since 'justify-content: space-between' is used).
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
|
|
2
|
+
._1hmsglyw{text-decoration-line:none}
|
|
3
|
+
._4bfu1r31{text-decoration-color:currentColor}
|
|
4
|
+
._ajmmnqa1{text-decoration-style:solid}
|
|
5
|
+
._syaz131l{color:var(--ds-text-subtlest,#626f86)}._1bnxglyw:hover{text-decoration-line:none}
|
|
6
|
+
._30l3131l:hover{color:var(--ds-text-subtlest,#626f86)}
|
|
7
|
+
._9oik1r31:hover{text-decoration-color:currentColor}
|
|
8
|
+
._jf4cnqa1:hover{text-decoration-style:solid}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.ProviderLink = void 0;
|
|
9
|
+
require("./index.compiled.css");
|
|
10
|
+
var _runtime = require("@compiled/react/runtime");
|
|
11
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
12
|
+
var _reactIntlNext = require("react-intl-next");
|
|
13
|
+
var _logo = require("@atlaskit/logo");
|
|
14
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
15
|
+
var _compiled = require("@atlaskit/primitives/compiled");
|
|
16
|
+
var _assets = require("@atlaskit/temp-nav-app-icons/assets");
|
|
17
|
+
var _analytics = require("../../../analytics");
|
|
18
|
+
var _assetsModal = require("../../assets-modal");
|
|
19
|
+
var _messages = require("../messages");
|
|
20
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
21
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
22
|
+
var styles = {
|
|
23
|
+
anchor: "_4bfu1r31 _1hmsglyw _ajmmnqa1 _syaz131l _9oik1r31 _1bnxglyw _jf4cnqa1 _30l3131l"
|
|
24
|
+
};
|
|
25
|
+
var ProviderLink = exports.ProviderLink = function ProviderLink(_ref) {
|
|
26
|
+
var datasourceId = _ref.datasourceId;
|
|
27
|
+
var intl = (0, _reactIntlNext.useIntl)();
|
|
28
|
+
var _useDatasourceAnalyti = (0, _analytics.useDatasourceAnalyticsEvents)(),
|
|
29
|
+
fireEvent = _useDatasourceAnalyti.fireEvent;
|
|
30
|
+
var anchor = (0, _react.useMemo)(function () {
|
|
31
|
+
if (datasourceId === _assetsModal.ASSETS_LIST_OF_LINKS_DATASOURCE_ID) {
|
|
32
|
+
return (0, _platformFeatureFlags.fg)('assets_as_an_app_v2') ? {
|
|
33
|
+
content: intl.formatMessage(_messages.footerMessages.poweredByAssets),
|
|
34
|
+
extensionKey: 'jsm-cmdb-gateway',
|
|
35
|
+
icon: /*#__PURE__*/_react.default.createElement(_assets.AssetsIcon, {
|
|
36
|
+
size: "20"
|
|
37
|
+
}),
|
|
38
|
+
interactionName: 'atlas-link',
|
|
39
|
+
url: '/jira/assets'
|
|
40
|
+
} : {
|
|
41
|
+
content: intl.formatMessage(_messages.footerMessages.powerByJSM),
|
|
42
|
+
extensionKey: 'jsm-cmdb-gateway',
|
|
43
|
+
icon: /*#__PURE__*/_react.default.createElement(_logo.JiraServiceManagementIcon, {
|
|
44
|
+
appearance: "neutral",
|
|
45
|
+
size: "small"
|
|
46
|
+
}),
|
|
47
|
+
interactionName: 'atlas-link',
|
|
48
|
+
url: '/jira/servicedesk/assets'
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
}, [datasourceId, intl]);
|
|
52
|
+
return anchor ? /*#__PURE__*/_react.default.createElement(_compiled.Anchor, {
|
|
53
|
+
href: anchor.url,
|
|
54
|
+
interactionName: anchor.interactionName,
|
|
55
|
+
onClick: function onClick() {
|
|
56
|
+
return fireEvent('ui.link.clicked.poweredBy', {
|
|
57
|
+
componentHierarchy: 'datasourceTable',
|
|
58
|
+
extensionKey: anchor.extensionKey
|
|
59
|
+
});
|
|
60
|
+
},
|
|
61
|
+
rel: "noopener noreferrer",
|
|
62
|
+
target: "_blank",
|
|
63
|
+
testId: "powered-by-jsm-assets-link",
|
|
64
|
+
xcss: styles.anchor
|
|
65
|
+
}, /*#__PURE__*/_react.default.createElement(_compiled.Inline, {
|
|
66
|
+
alignBlock: "center",
|
|
67
|
+
space: "space.075"
|
|
68
|
+
}, anchor.icon, anchor.content)) : null;
|
|
69
|
+
};
|
|
@@ -29,10 +29,10 @@ const ItemCountWrapper = ({
|
|
|
29
29
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
30
30
|
,
|
|
31
31
|
style: {
|
|
32
|
-
color: `var(--ds-text-accent-gray, ${N800})`,
|
|
32
|
+
color: fg('platform-linking-visual-refresh-sllv') ? "var(--ds-text-subtlest, #626F86)" : `var(--ds-text-accent-gray, ${N800})`,
|
|
33
33
|
textDecoration: !url ? 'none' : ''
|
|
34
34
|
}
|
|
35
|
-
}, /*#__PURE__*/React.createElement(Heading, {
|
|
35
|
+
}, fg('platform-linking-visual-refresh-sllv') ? children : /*#__PURE__*/React.createElement(Heading, {
|
|
36
36
|
size: "xxsmall"
|
|
37
37
|
}, children)));
|
|
38
38
|
export const AssetsItemCount = ({
|
|
@@ -1,3 +1,9 @@
|
|
|
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
|
+
._16qsglyw{box-shadow:none}
|
|
3
|
+
._bfhkfg4m{background-color:var(--ds-background-selected,#e9f2ff)}
|
|
2
4
|
._k48pi7a9{font-weight:var(--ds-font-weight-regular,400)}
|
|
3
|
-
._syaz1gjq{color:var(--ds-text-subtle,#44546f)}
|
|
5
|
+
._syaz1gjq{color:var(--ds-text-subtle,#44546f)}
|
|
6
|
+
._irr315ej:hover{background-color:var(--ds-background-neutral-hovered,#091e4224)}
|
|
7
|
+
._irr3i1yw:hover{background-color:var(--ds-background-selected-hovered,#cce0ff)}
|
|
8
|
+
._1di619ru:active{background-color:var(--ds-background-selected-pressed,#85b8ff)}
|
|
9
|
+
._1di6ip91:active{background-color:var(--ds-background-neutral-pressed,#091e424f)}
|
|
@@ -4,11 +4,13 @@ import "./concatenated-menu-list.compiled.css";
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
import { FormattedMessage } from 'react-intl-next';
|
|
7
|
-
import { components } from '@atlaskit/select';
|
|
7
|
+
import { CheckboxOption, components } from '@atlaskit/select';
|
|
8
8
|
import { fontFallback } from '@atlaskit/theme/typography';
|
|
9
9
|
import { columnPickerMessages } from './messages';
|
|
10
10
|
export const SELECT_ITEMS_MAXIMUM_THRESHOLD = 200;
|
|
11
11
|
const messageStyles = null;
|
|
12
|
+
const listItemStylesSelected = null;
|
|
13
|
+
const listItemStyles = null;
|
|
12
14
|
export const ConcatenatedMenuList = ({
|
|
13
15
|
children,
|
|
14
16
|
...props
|
|
@@ -30,4 +32,12 @@ export const ConcatenatedMenuList = ({
|
|
|
30
32
|
tagName: 'div'
|
|
31
33
|
}, columnPickerMessages.maximumItemsShownLine2)));
|
|
32
34
|
return /*#__PURE__*/React.createElement(components.MenuList, props, children.slice(0, SELECT_ITEMS_MAXIMUM_THRESHOLD), maximumLimitReachedMessage);
|
|
35
|
+
};
|
|
36
|
+
export const MenuItem = ({
|
|
37
|
+
children,
|
|
38
|
+
...props
|
|
39
|
+
}) => {
|
|
40
|
+
return /*#__PURE__*/React.createElement(CheckboxOption, _extends({}, props, {
|
|
41
|
+
className: ax([props.isSelected ? "_bfhkfg4m _16qsglyw _irr3i1yw _1di619ru" : "_16qsglyw _irr315ej _1di6ip91"])
|
|
42
|
+
}), children);
|
|
33
43
|
};
|
|
@@ -5,14 +5,17 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
5
5
|
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
6
6
|
import { useIntl } from 'react-intl-next';
|
|
7
7
|
import Button from '@atlaskit/button/new';
|
|
8
|
+
import CustomizeIcon from '@atlaskit/icon/core/customize';
|
|
8
9
|
import BoardIcon from '@atlaskit/icon/core/migration/board';
|
|
9
|
-
import ChevronDownIcon from '@atlaskit/icon/utility/
|
|
10
|
+
import ChevronDownIcon from '@atlaskit/icon/utility/chevron-down';
|
|
11
|
+
import ChevronDownIconOld from '@atlaskit/icon/utility/migration/chevron-down';
|
|
12
|
+
import { fg } from "@atlaskit/platform-feature-flags";
|
|
10
13
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
11
14
|
import { CheckboxOption, createFilter, PopupSelect } from '@atlaskit/select';
|
|
12
15
|
import Tooltip from '@atlaskit/tooltip';
|
|
13
16
|
import { succeedUfoExperience } from '../../../analytics/ufoExperiences';
|
|
14
17
|
import { useDatasourceExperienceId } from '../../../contexts/datasource-experience-id';
|
|
15
|
-
import { ConcatenatedMenuList } from './concatenated-menu-list';
|
|
18
|
+
import { ConcatenatedMenuList, MenuItem } from './concatenated-menu-list';
|
|
16
19
|
import { columnPickerMessages } from './messages';
|
|
17
20
|
const styles = {
|
|
18
21
|
chevronIconStyles: "_1e0c1txw _4cvr1h6o"
|
|
@@ -95,11 +98,12 @@ export const ColumnPicker = ({
|
|
|
95
98
|
}
|
|
96
99
|
}
|
|
97
100
|
}, [allOptions, experienceId]);
|
|
101
|
+
const MenuOption = fg('platform-linking-visual-refresh-sllv') ? MenuItem : CheckboxOption;
|
|
98
102
|
return /*#__PURE__*/React.createElement(PopupSelect, {
|
|
99
103
|
classNamePrefix: 'column-picker-popup',
|
|
100
104
|
testId: 'column-picker-popup',
|
|
101
105
|
components: {
|
|
102
|
-
Option:
|
|
106
|
+
Option: MenuOption,
|
|
103
107
|
MenuList: ConcatenatedMenuList
|
|
104
108
|
},
|
|
105
109
|
filterOption: createFilter({
|
|
@@ -129,18 +133,22 @@ export const ColumnPicker = ({
|
|
|
129
133
|
}, tooltipProps => /*#__PURE__*/React.createElement(Button, _extends({}, tooltipProps, triggerProps, {
|
|
130
134
|
isSelected: isOpen,
|
|
131
135
|
spacing: "compact",
|
|
132
|
-
appearance: "subtle",
|
|
136
|
+
appearance: fg('platform-linking-visual-refresh-sllv') ? "default" : "subtle",
|
|
133
137
|
testId: "column-picker-trigger-button",
|
|
134
138
|
iconBefore: () => /*#__PURE__*/React.createElement(Box, {
|
|
135
139
|
as: "span",
|
|
136
140
|
xcss: styles.chevronIconStyles
|
|
137
|
-
}, /*#__PURE__*/React.createElement(
|
|
141
|
+
}, fg('platform-linking-visual-refresh-sllv') ? /*#__PURE__*/React.createElement(CustomizeIcon, {
|
|
142
|
+
label: "customize"
|
|
143
|
+
}) : /*#__PURE__*/React.createElement(BoardIcon, {
|
|
138
144
|
color: "currentColor",
|
|
139
145
|
label: "board",
|
|
140
146
|
LEGACY_size: "medium",
|
|
141
147
|
spacing: "spacious",
|
|
142
148
|
LEGACY_margin: "0 0 0 4px"
|
|
143
|
-
}), /*#__PURE__*/React.createElement(ChevronDownIcon, {
|
|
149
|
+
}), fg('platform-linking-visual-refresh-sllv') ? /*#__PURE__*/React.createElement(ChevronDownIcon, {
|
|
150
|
+
label: "down"
|
|
151
|
+
}) : /*#__PURE__*/React.createElement(ChevronDownIconOld, {
|
|
144
152
|
color: "currentColor",
|
|
145
153
|
label: "down",
|
|
146
154
|
LEGACY_size: "medium"
|
|
@@ -1,6 +1,8 @@
|
|
|
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)}
|
|
1
2
|
._11c8dcr7{font:var(--ds-font-body-UNSAFE_small,normal 400 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
3
|
._2rko1kw7{border-radius:inherit}
|
|
3
4
|
._x3do17u4{border-top:2px solid var(--ds-background-accent-gray-subtler,#dfe1e6)}
|
|
5
|
+
._x3dozgxb{border-top:1px solid var(--ds-border,#091e4224)}
|
|
4
6
|
._13liidpf{border-top-left-radius:0}
|
|
5
7
|
._19bvpxbi{padding-left:var(--ds-space-200,1pc)}
|
|
6
8
|
._19bvze3t{padding-left:var(--ds-space-0,0)}
|
|
@@ -9,12 +11,17 @@
|
|
|
9
11
|
._2hwx12x7{margin-right:var(--ds-space-075,6px)}
|
|
10
12
|
._4cvr1h6o{align-items:center}
|
|
11
13
|
._bfhk1j9a{background-color:var(--ds-background-input,#fff)}
|
|
14
|
+
._bfhkhp5a{background-color:var(--ds-surface-raised,#fff)}
|
|
15
|
+
._ca0q1ejb{padding-top:var(--ds-space-300,24px)}
|
|
12
16
|
._ca0qv47k{padding-top:var(--ds-space-250,20px)}
|
|
13
17
|
._ca0qze3t{padding-top:var(--ds-space-0,0)}
|
|
18
|
+
._n3td1ejb{padding-bottom:var(--ds-space-300,24px)}
|
|
14
19
|
._n3tdv47k{padding-bottom:var(--ds-space-250,20px)}
|
|
15
20
|
._n3tdze3t{padding-bottom:var(--ds-space-0,0)}
|
|
16
21
|
._qrwqidpf{border-top-right-radius:0}
|
|
22
|
+
._syaz131l{color:var(--ds-text-subtlest,#626f86)}
|
|
17
23
|
._syaz1dyx{color:var(--ds-text-accent-gray,#44546f)}
|
|
24
|
+
._syazmuej{color:var(--ds-border,#091e4224)}
|
|
18
25
|
._u5f3pxbi{padding-right:var(--ds-space-200,1pc)}
|
|
19
26
|
._u5f3ze3t{padding-right:var(--ds-space-0,0)}
|
|
20
27
|
._vchhusvi{box-sizing:border-box}
|
|
@@ -7,15 +7,22 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
7
7
|
import { Fragment, useEffect, useState } from 'react';
|
|
8
8
|
import { FormattedMessage, useIntl } from 'react-intl-next';
|
|
9
9
|
import Button from '@atlaskit/button';
|
|
10
|
+
import { IconButton } from '@atlaskit/button/new';
|
|
10
11
|
import RefreshIcon from '@atlaskit/icon/core/migration/refresh';
|
|
11
12
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
|
-
import { Flex } from '@atlaskit/primitives/compiled';
|
|
13
|
+
import { Box, Flex, Inline } from '@atlaskit/primitives/compiled';
|
|
13
14
|
import { N0, N40 } from '@atlaskit/theme/colors';
|
|
14
15
|
import { ASSETS_LIST_OF_LINKS_DATASOURCE_ID } from '../assets-modal';
|
|
15
16
|
import TableSearchCount, { AssetsItemCount } from '../common/modal/search-count';
|
|
16
17
|
import { footerMessages } from './messages';
|
|
17
18
|
import { PoweredByJSMAssets } from './powered-by-jsm-assets';
|
|
19
|
+
import { ProviderLink } from './provider-link';
|
|
18
20
|
import { SyncInfo } from './sync-info';
|
|
21
|
+
const styles = {
|
|
22
|
+
footer: "_11c81o8v _2rko1kw7 _x3dozgxb _syaz131l _ca0q1ejb _u5f3pxbi _n3td1ejb _19bvpxbi _vchhusvi _13liidpf _qrwqidpf _bfhkhp5a",
|
|
23
|
+
separator: "_syazmuej"
|
|
24
|
+
};
|
|
25
|
+
|
|
19
26
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
20
27
|
const FooterWrapper = forwardRef(({
|
|
21
28
|
as: C = "div",
|
|
@@ -94,6 +101,51 @@ export const TableFooter = ({
|
|
|
94
101
|
setLastSyncTime(new Date());
|
|
95
102
|
}
|
|
96
103
|
}, [isLoading]);
|
|
104
|
+
if (fg('platform-linking-visual-refresh-sllv')) {
|
|
105
|
+
return onRefresh || showItemCount ? /*#__PURE__*/React.createElement("div", {
|
|
106
|
+
"data-testid": "table-footer",
|
|
107
|
+
className: ax([styles.footer])
|
|
108
|
+
}, /*#__PURE__*/React.createElement(Inline, {
|
|
109
|
+
alignBlock: "center",
|
|
110
|
+
alignInline: "end",
|
|
111
|
+
grow: "hug",
|
|
112
|
+
spread: "space-between"
|
|
113
|
+
}, /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(ProviderLink, {
|
|
114
|
+
datasourceId: datasourceId
|
|
115
|
+
})), /*#__PURE__*/React.createElement(Inline, {
|
|
116
|
+
alignBlock: "center",
|
|
117
|
+
space: "space.100",
|
|
118
|
+
separator: /*#__PURE__*/React.createElement("div", {
|
|
119
|
+
className: ax([styles.separator])
|
|
120
|
+
}, "\u2022")
|
|
121
|
+
}, onRefresh && /*#__PURE__*/React.createElement(Inline, {
|
|
122
|
+
alignBlock: "center",
|
|
123
|
+
space: "space.050"
|
|
124
|
+
}, /*#__PURE__*/React.createElement(IconButton, {
|
|
125
|
+
appearance: "subtle",
|
|
126
|
+
icon: iconProps => /*#__PURE__*/React.createElement(RefreshIcon, _extends({}, iconProps, {
|
|
127
|
+
color: "var(--ds-text-subtlest, #626F86)"
|
|
128
|
+
})),
|
|
129
|
+
isDisabled: isLoading,
|
|
130
|
+
label: intl.formatMessage(footerMessages.refreshLabel),
|
|
131
|
+
onClick: onRefresh,
|
|
132
|
+
spacing: "compact",
|
|
133
|
+
testId: "refresh-button"
|
|
134
|
+
}), /*#__PURE__*/React.createElement(Box, {
|
|
135
|
+
testId: "sync-text"
|
|
136
|
+
}, isLoading ? /*#__PURE__*/React.createElement(FormattedMessage, footerMessages.loadingText) : /*#__PURE__*/React.createElement(SyncInfo, {
|
|
137
|
+
lastSyncTime: lastSyncTime
|
|
138
|
+
}))), showItemCount && /*#__PURE__*/React.createElement(Flex, null, datasourceId === ASSETS_LIST_OF_LINKS_DATASOURCE_ID ? /*#__PURE__*/React.createElement(AssetsItemCount, {
|
|
139
|
+
searchCount: itemCount,
|
|
140
|
+
url: url,
|
|
141
|
+
testId: "item-count"
|
|
142
|
+
}) : /*#__PURE__*/React.createElement(TableSearchCount, {
|
|
143
|
+
searchCount: itemCount,
|
|
144
|
+
url: url,
|
|
145
|
+
prefixTextType: "item",
|
|
146
|
+
testId: "item-count"
|
|
147
|
+
}))))) : null;
|
|
148
|
+
}
|
|
97
149
|
|
|
98
150
|
// If only one of the two is passed in, still show the other one (Note: We keep the div encapsulating the one not shown to
|
|
99
151
|
// ensure correct positioning since 'justify-content: space-between' is used).
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
|
|
2
|
+
._1hmsglyw{text-decoration-line:none}
|
|
3
|
+
._4bfu1r31{text-decoration-color:currentColor}
|
|
4
|
+
._ajmmnqa1{text-decoration-style:solid}
|
|
5
|
+
._syaz131l{color:var(--ds-text-subtlest,#626f86)}._1bnxglyw:hover{text-decoration-line:none}
|
|
6
|
+
._30l3131l:hover{color:var(--ds-text-subtlest,#626f86)}
|
|
7
|
+
._9oik1r31:hover{text-decoration-color:currentColor}
|
|
8
|
+
._jf4cnqa1:hover{text-decoration-style:solid}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import "./index.compiled.css";
|
|
3
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
4
|
+
import React, { useMemo } from 'react';
|
|
5
|
+
import { useIntl } from 'react-intl-next';
|
|
6
|
+
import { JiraServiceManagementIcon } from '@atlaskit/logo';
|
|
7
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
|
+
import { Anchor, Inline } from '@atlaskit/primitives/compiled';
|
|
9
|
+
import { AssetsIcon } from '@atlaskit/temp-nav-app-icons/assets';
|
|
10
|
+
import { useDatasourceAnalyticsEvents } from '../../../analytics';
|
|
11
|
+
import { ASSETS_LIST_OF_LINKS_DATASOURCE_ID } from '../../assets-modal';
|
|
12
|
+
import { footerMessages } from '../messages';
|
|
13
|
+
const styles = {
|
|
14
|
+
anchor: "_4bfu1r31 _1hmsglyw _ajmmnqa1 _syaz131l _9oik1r31 _1bnxglyw _jf4cnqa1 _30l3131l"
|
|
15
|
+
};
|
|
16
|
+
export const ProviderLink = ({
|
|
17
|
+
datasourceId
|
|
18
|
+
}) => {
|
|
19
|
+
const intl = useIntl();
|
|
20
|
+
const {
|
|
21
|
+
fireEvent
|
|
22
|
+
} = useDatasourceAnalyticsEvents();
|
|
23
|
+
const anchor = useMemo(() => {
|
|
24
|
+
if (datasourceId === ASSETS_LIST_OF_LINKS_DATASOURCE_ID) {
|
|
25
|
+
return fg('assets_as_an_app_v2') ? {
|
|
26
|
+
content: intl.formatMessage(footerMessages.poweredByAssets),
|
|
27
|
+
extensionKey: 'jsm-cmdb-gateway',
|
|
28
|
+
icon: /*#__PURE__*/React.createElement(AssetsIcon, {
|
|
29
|
+
size: "20"
|
|
30
|
+
}),
|
|
31
|
+
interactionName: 'atlas-link',
|
|
32
|
+
url: '/jira/assets'
|
|
33
|
+
} : {
|
|
34
|
+
content: intl.formatMessage(footerMessages.powerByJSM),
|
|
35
|
+
extensionKey: 'jsm-cmdb-gateway',
|
|
36
|
+
icon: /*#__PURE__*/React.createElement(JiraServiceManagementIcon, {
|
|
37
|
+
appearance: "neutral",
|
|
38
|
+
size: "small"
|
|
39
|
+
}),
|
|
40
|
+
interactionName: 'atlas-link',
|
|
41
|
+
url: '/jira/servicedesk/assets'
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
}, [datasourceId, intl]);
|
|
45
|
+
return anchor ? /*#__PURE__*/React.createElement(Anchor, {
|
|
46
|
+
href: anchor.url,
|
|
47
|
+
interactionName: anchor.interactionName,
|
|
48
|
+
onClick: () => fireEvent('ui.link.clicked.poweredBy', {
|
|
49
|
+
componentHierarchy: 'datasourceTable',
|
|
50
|
+
extensionKey: anchor.extensionKey
|
|
51
|
+
}),
|
|
52
|
+
rel: "noopener noreferrer",
|
|
53
|
+
target: "_blank",
|
|
54
|
+
testId: "powered-by-jsm-assets-link",
|
|
55
|
+
xcss: styles.anchor
|
|
56
|
+
}, /*#__PURE__*/React.createElement(Inline, {
|
|
57
|
+
alignBlock: "center",
|
|
58
|
+
space: "space.075"
|
|
59
|
+
}, anchor.icon, anchor.content)) : null;
|
|
60
|
+
};
|
|
@@ -29,10 +29,10 @@ var ItemCountWrapper = function ItemCountWrapper(_ref) {
|
|
|
29
29
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
30
30
|
,
|
|
31
31
|
style: {
|
|
32
|
-
color: "var(--ds-text-accent-gray, ".concat(N800, ")"),
|
|
32
|
+
color: fg('platform-linking-visual-refresh-sllv') ? "var(--ds-text-subtlest, #626F86)" : "var(--ds-text-accent-gray, ".concat(N800, ")"),
|
|
33
33
|
textDecoration: !url ? 'none' : ''
|
|
34
34
|
}
|
|
35
|
-
}, /*#__PURE__*/React.createElement(Heading, {
|
|
35
|
+
}, fg('platform-linking-visual-refresh-sllv') ? children : /*#__PURE__*/React.createElement(Heading, {
|
|
36
36
|
size: "xxsmall"
|
|
37
37
|
}, children)));
|
|
38
38
|
};
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
+
._16qsglyw{box-shadow:none}
|
|
2
|
+
._bfhkfg4m{background-color:var(--ds-background-selected,#e9f2ff)}
|
|
1
3
|
._k48pi7a9{font-weight:var(--ds-font-weight-regular,400)}
|
|
2
4
|
._syaz1gjq{color:var(--ds-text-subtle,#44546f)}
|
|
3
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}
|
|
4
6
|
._v2glf7ua font{small:normal 400 11px/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif}
|
|
5
7
|
._x3fxnil1 font{medium:normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif}
|
|
6
|
-
._zzcc4f4w font{large:normal 400 1pc/24px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif}
|
|
8
|
+
._zzcc4f4w font{large:normal 400 1pc/24px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif}
|
|
9
|
+
._irr315ej:hover{background-color:var(--ds-background-neutral-hovered,#091e4224)}
|
|
10
|
+
._irr3i1yw:hover{background-color:var(--ds-background-selected-hovered,#cce0ff)}
|
|
11
|
+
._1di619ru:active{background-color:var(--ds-background-selected-pressed,#85b8ff)}
|
|
12
|
+
._1di6ip91:active{background-color:var(--ds-background-neutral-pressed,#091e424f)}
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
/* concatenated-menu-list.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
-
var _excluded = ["children"]
|
|
4
|
+
var _excluded = ["children"],
|
|
5
|
+
_excluded2 = ["children"];
|
|
5
6
|
import "./concatenated-menu-list.compiled.css";
|
|
6
7
|
import * as React from 'react';
|
|
7
8
|
import { ax, ix } from "@compiled/react/runtime";
|
|
8
9
|
import { FormattedMessage } from 'react-intl-next';
|
|
9
|
-
import { components } from '@atlaskit/select';
|
|
10
|
+
import { CheckboxOption, components } from '@atlaskit/select';
|
|
10
11
|
import { fontFallback } from '@atlaskit/theme/typography';
|
|
11
12
|
import { columnPickerMessages } from './messages';
|
|
12
13
|
export var SELECT_ITEMS_MAXIMUM_THRESHOLD = 200;
|
|
13
14
|
var messageStyles = null;
|
|
15
|
+
var listItemStylesSelected = null;
|
|
16
|
+
var listItemStyles = null;
|
|
14
17
|
export var ConcatenatedMenuList = function ConcatenatedMenuList(_ref) {
|
|
15
18
|
var children = _ref.children,
|
|
16
19
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -31,4 +34,11 @@ export var ConcatenatedMenuList = function ConcatenatedMenuList(_ref) {
|
|
|
31
34
|
tagName: 'div'
|
|
32
35
|
}, columnPickerMessages.maximumItemsShownLine2)));
|
|
33
36
|
return /*#__PURE__*/React.createElement(components.MenuList, props, children.slice(0, SELECT_ITEMS_MAXIMUM_THRESHOLD), maximumLimitReachedMessage);
|
|
37
|
+
};
|
|
38
|
+
export var MenuItem = function MenuItem(_ref2) {
|
|
39
|
+
var children = _ref2.children,
|
|
40
|
+
props = _objectWithoutProperties(_ref2, _excluded2);
|
|
41
|
+
return /*#__PURE__*/React.createElement(CheckboxOption, _extends({}, props, {
|
|
42
|
+
className: ax([props.isSelected ? "_bfhkfg4m _16qsglyw _irr3i1yw _1di619ru" : "_16qsglyw _irr315ej _1di6ip91"])
|
|
43
|
+
}), children);
|
|
34
44
|
};
|
|
@@ -9,14 +9,17 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
9
9
|
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
10
10
|
import { useIntl } from 'react-intl-next';
|
|
11
11
|
import Button from '@atlaskit/button/new';
|
|
12
|
+
import CustomizeIcon from '@atlaskit/icon/core/customize';
|
|
12
13
|
import BoardIcon from '@atlaskit/icon/core/migration/board';
|
|
13
|
-
import ChevronDownIcon from '@atlaskit/icon/utility/
|
|
14
|
+
import ChevronDownIcon from '@atlaskit/icon/utility/chevron-down';
|
|
15
|
+
import ChevronDownIconOld from '@atlaskit/icon/utility/migration/chevron-down';
|
|
16
|
+
import { fg } from "@atlaskit/platform-feature-flags";
|
|
14
17
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
15
18
|
import { CheckboxOption, createFilter, PopupSelect } from '@atlaskit/select';
|
|
16
19
|
import Tooltip from '@atlaskit/tooltip';
|
|
17
20
|
import { succeedUfoExperience } from '../../../analytics/ufoExperiences';
|
|
18
21
|
import { useDatasourceExperienceId } from '../../../contexts/datasource-experience-id';
|
|
19
|
-
import { ConcatenatedMenuList } from './concatenated-menu-list';
|
|
22
|
+
import { ConcatenatedMenuList, MenuItem } from './concatenated-menu-list';
|
|
20
23
|
import { columnPickerMessages } from './messages';
|
|
21
24
|
var styles = {
|
|
22
25
|
chevronIconStyles: "_1e0c1txw _4cvr1h6o"
|
|
@@ -113,11 +116,12 @@ export var ColumnPicker = function ColumnPicker(_ref) {
|
|
|
113
116
|
}
|
|
114
117
|
}
|
|
115
118
|
}, [allOptions, experienceId]);
|
|
119
|
+
var MenuOption = fg('platform-linking-visual-refresh-sllv') ? MenuItem : CheckboxOption;
|
|
116
120
|
return /*#__PURE__*/React.createElement(PopupSelect, {
|
|
117
121
|
classNamePrefix: 'column-picker-popup',
|
|
118
122
|
testId: 'column-picker-popup',
|
|
119
123
|
components: {
|
|
120
|
-
Option:
|
|
124
|
+
Option: MenuOption,
|
|
121
125
|
MenuList: ConcatenatedMenuList
|
|
122
126
|
},
|
|
123
127
|
filterOption: createFilter({
|
|
@@ -148,19 +152,23 @@ export var ColumnPicker = function ColumnPicker(_ref) {
|
|
|
148
152
|
return /*#__PURE__*/React.createElement(Button, _extends({}, tooltipProps, triggerProps, {
|
|
149
153
|
isSelected: isOpen,
|
|
150
154
|
spacing: "compact",
|
|
151
|
-
appearance: "subtle",
|
|
155
|
+
appearance: fg('platform-linking-visual-refresh-sllv') ? "default" : "subtle",
|
|
152
156
|
testId: "column-picker-trigger-button",
|
|
153
157
|
iconBefore: function iconBefore() {
|
|
154
158
|
return /*#__PURE__*/React.createElement(Box, {
|
|
155
159
|
as: "span",
|
|
156
160
|
xcss: styles.chevronIconStyles
|
|
157
|
-
}, /*#__PURE__*/React.createElement(
|
|
161
|
+
}, fg('platform-linking-visual-refresh-sllv') ? /*#__PURE__*/React.createElement(CustomizeIcon, {
|
|
162
|
+
label: "customize"
|
|
163
|
+
}) : /*#__PURE__*/React.createElement(BoardIcon, {
|
|
158
164
|
color: "currentColor",
|
|
159
165
|
label: "board",
|
|
160
166
|
LEGACY_size: "medium",
|
|
161
167
|
spacing: "spacious",
|
|
162
168
|
LEGACY_margin: "0 0 0 4px"
|
|
163
|
-
}), /*#__PURE__*/React.createElement(ChevronDownIcon, {
|
|
169
|
+
}), fg('platform-linking-visual-refresh-sllv') ? /*#__PURE__*/React.createElement(ChevronDownIcon, {
|
|
170
|
+
label: "down"
|
|
171
|
+
}) : /*#__PURE__*/React.createElement(ChevronDownIconOld, {
|
|
164
172
|
color: "currentColor",
|
|
165
173
|
label: "down",
|
|
166
174
|
LEGACY_size: "medium"
|
|
@@ -1,6 +1,8 @@
|
|
|
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)}
|
|
1
2
|
._11c8dcr7{font:var(--ds-font-body-UNSAFE_small,normal 400 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
3
|
._2rko1kw7{border-radius:inherit}
|
|
3
4
|
._x3do17u4{border-top:2px solid var(--ds-background-accent-gray-subtler,#dfe1e6)}
|
|
5
|
+
._x3dozgxb{border-top:1px solid var(--ds-border,#091e4224)}
|
|
4
6
|
._13liidpf{border-top-left-radius:0}
|
|
5
7
|
._19bvpxbi{padding-left:var(--ds-space-200,1pc)}
|
|
6
8
|
._19bvze3t{padding-left:var(--ds-space-0,0)}
|
|
@@ -9,12 +11,17 @@
|
|
|
9
11
|
._2hwx12x7{margin-right:var(--ds-space-075,6px)}
|
|
10
12
|
._4cvr1h6o{align-items:center}
|
|
11
13
|
._bfhk1j9a{background-color:var(--ds-background-input,#fff)}
|
|
14
|
+
._bfhkhp5a{background-color:var(--ds-surface-raised,#fff)}
|
|
15
|
+
._ca0q1ejb{padding-top:var(--ds-space-300,24px)}
|
|
12
16
|
._ca0qv47k{padding-top:var(--ds-space-250,20px)}
|
|
13
17
|
._ca0qze3t{padding-top:var(--ds-space-0,0)}
|
|
18
|
+
._n3td1ejb{padding-bottom:var(--ds-space-300,24px)}
|
|
14
19
|
._n3tdv47k{padding-bottom:var(--ds-space-250,20px)}
|
|
15
20
|
._n3tdze3t{padding-bottom:var(--ds-space-0,0)}
|
|
16
21
|
._qrwqidpf{border-top-right-radius:0}
|
|
22
|
+
._syaz131l{color:var(--ds-text-subtlest,#626f86)}
|
|
17
23
|
._syaz1dyx{color:var(--ds-text-accent-gray,#44546f)}
|
|
24
|
+
._syazmuej{color:var(--ds-border,#091e4224)}
|
|
18
25
|
._u5f3pxbi{padding-right:var(--ds-space-200,1pc)}
|
|
19
26
|
._u5f3ze3t{padding-right:var(--ds-space-0,0)}
|
|
20
27
|
._vchhusvi{box-sizing:border-box}
|
|
@@ -13,15 +13,22 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
13
13
|
import { Fragment, useEffect, useState } from 'react';
|
|
14
14
|
import { FormattedMessage, useIntl } from 'react-intl-next';
|
|
15
15
|
import Button from '@atlaskit/button';
|
|
16
|
+
import { IconButton } from '@atlaskit/button/new';
|
|
16
17
|
import RefreshIcon from '@atlaskit/icon/core/migration/refresh';
|
|
17
18
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
18
|
-
import { Flex } from '@atlaskit/primitives/compiled';
|
|
19
|
+
import { Box, Flex, Inline } from '@atlaskit/primitives/compiled';
|
|
19
20
|
import { N0, N40 } from '@atlaskit/theme/colors';
|
|
20
21
|
import { ASSETS_LIST_OF_LINKS_DATASOURCE_ID } from '../assets-modal';
|
|
21
22
|
import TableSearchCount, { AssetsItemCount } from '../common/modal/search-count';
|
|
22
23
|
import { footerMessages } from './messages';
|
|
23
24
|
import { PoweredByJSMAssets } from './powered-by-jsm-assets';
|
|
25
|
+
import { ProviderLink } from './provider-link';
|
|
24
26
|
import { SyncInfo } from './sync-info';
|
|
27
|
+
var styles = {
|
|
28
|
+
footer: "_11c81o8v _2rko1kw7 _x3dozgxb _syaz131l _ca0q1ejb _u5f3pxbi _n3td1ejb _19bvpxbi _vchhusvi _13liidpf _qrwqidpf _bfhkhp5a",
|
|
29
|
+
separator: "_syazmuej"
|
|
30
|
+
};
|
|
31
|
+
|
|
25
32
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
26
33
|
var FooterWrapper = forwardRef(function (_ref, __cmplr) {
|
|
27
34
|
var _ref$as = _ref.as,
|
|
@@ -102,6 +109,53 @@ export var TableFooter = function TableFooter(_ref5) {
|
|
|
102
109
|
setLastSyncTime(new Date());
|
|
103
110
|
}
|
|
104
111
|
}, [isLoading]);
|
|
112
|
+
if (fg('platform-linking-visual-refresh-sllv')) {
|
|
113
|
+
return onRefresh || showItemCount ? /*#__PURE__*/React.createElement("div", {
|
|
114
|
+
"data-testid": "table-footer",
|
|
115
|
+
className: ax([styles.footer])
|
|
116
|
+
}, /*#__PURE__*/React.createElement(Inline, {
|
|
117
|
+
alignBlock: "center",
|
|
118
|
+
alignInline: "end",
|
|
119
|
+
grow: "hug",
|
|
120
|
+
spread: "space-between"
|
|
121
|
+
}, /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(ProviderLink, {
|
|
122
|
+
datasourceId: datasourceId
|
|
123
|
+
})), /*#__PURE__*/React.createElement(Inline, {
|
|
124
|
+
alignBlock: "center",
|
|
125
|
+
space: "space.100",
|
|
126
|
+
separator: /*#__PURE__*/React.createElement("div", {
|
|
127
|
+
className: ax([styles.separator])
|
|
128
|
+
}, "\u2022")
|
|
129
|
+
}, onRefresh && /*#__PURE__*/React.createElement(Inline, {
|
|
130
|
+
alignBlock: "center",
|
|
131
|
+
space: "space.050"
|
|
132
|
+
}, /*#__PURE__*/React.createElement(IconButton, {
|
|
133
|
+
appearance: "subtle",
|
|
134
|
+
icon: function icon(iconProps) {
|
|
135
|
+
return /*#__PURE__*/React.createElement(RefreshIcon, _extends({}, iconProps, {
|
|
136
|
+
color: "var(--ds-text-subtlest, #626F86)"
|
|
137
|
+
}));
|
|
138
|
+
},
|
|
139
|
+
isDisabled: isLoading,
|
|
140
|
+
label: intl.formatMessage(footerMessages.refreshLabel),
|
|
141
|
+
onClick: onRefresh,
|
|
142
|
+
spacing: "compact",
|
|
143
|
+
testId: "refresh-button"
|
|
144
|
+
}), /*#__PURE__*/React.createElement(Box, {
|
|
145
|
+
testId: "sync-text"
|
|
146
|
+
}, isLoading ? /*#__PURE__*/React.createElement(FormattedMessage, footerMessages.loadingText) : /*#__PURE__*/React.createElement(SyncInfo, {
|
|
147
|
+
lastSyncTime: lastSyncTime
|
|
148
|
+
}))), showItemCount && /*#__PURE__*/React.createElement(Flex, null, datasourceId === ASSETS_LIST_OF_LINKS_DATASOURCE_ID ? /*#__PURE__*/React.createElement(AssetsItemCount, {
|
|
149
|
+
searchCount: itemCount,
|
|
150
|
+
url: url,
|
|
151
|
+
testId: "item-count"
|
|
152
|
+
}) : /*#__PURE__*/React.createElement(TableSearchCount, {
|
|
153
|
+
searchCount: itemCount,
|
|
154
|
+
url: url,
|
|
155
|
+
prefixTextType: "item",
|
|
156
|
+
testId: "item-count"
|
|
157
|
+
}))))) : null;
|
|
158
|
+
}
|
|
105
159
|
|
|
106
160
|
// If only one of the two is passed in, still show the other one (Note: We keep the div encapsulating the one not shown to
|
|
107
161
|
// ensure correct positioning since 'justify-content: space-between' is used).
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
|
|
2
|
+
._1hmsglyw{text-decoration-line:none}
|
|
3
|
+
._4bfu1r31{text-decoration-color:currentColor}
|
|
4
|
+
._ajmmnqa1{text-decoration-style:solid}
|
|
5
|
+
._syaz131l{color:var(--ds-text-subtlest,#626f86)}._1bnxglyw:hover{text-decoration-line:none}
|
|
6
|
+
._30l3131l:hover{color:var(--ds-text-subtlest,#626f86)}
|
|
7
|
+
._9oik1r31:hover{text-decoration-color:currentColor}
|
|
8
|
+
._jf4cnqa1:hover{text-decoration-style:solid}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import "./index.compiled.css";
|
|
3
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
4
|
+
import React, { useMemo } from 'react';
|
|
5
|
+
import { useIntl } from 'react-intl-next';
|
|
6
|
+
import { JiraServiceManagementIcon } from '@atlaskit/logo';
|
|
7
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
|
+
import { Anchor, Inline } from '@atlaskit/primitives/compiled';
|
|
9
|
+
import { AssetsIcon } from '@atlaskit/temp-nav-app-icons/assets';
|
|
10
|
+
import { useDatasourceAnalyticsEvents } from '../../../analytics';
|
|
11
|
+
import { ASSETS_LIST_OF_LINKS_DATASOURCE_ID } from '../../assets-modal';
|
|
12
|
+
import { footerMessages } from '../messages';
|
|
13
|
+
var styles = {
|
|
14
|
+
anchor: "_4bfu1r31 _1hmsglyw _ajmmnqa1 _syaz131l _9oik1r31 _1bnxglyw _jf4cnqa1 _30l3131l"
|
|
15
|
+
};
|
|
16
|
+
export var ProviderLink = function ProviderLink(_ref) {
|
|
17
|
+
var datasourceId = _ref.datasourceId;
|
|
18
|
+
var intl = useIntl();
|
|
19
|
+
var _useDatasourceAnalyti = useDatasourceAnalyticsEvents(),
|
|
20
|
+
fireEvent = _useDatasourceAnalyti.fireEvent;
|
|
21
|
+
var anchor = useMemo(function () {
|
|
22
|
+
if (datasourceId === ASSETS_LIST_OF_LINKS_DATASOURCE_ID) {
|
|
23
|
+
return fg('assets_as_an_app_v2') ? {
|
|
24
|
+
content: intl.formatMessage(footerMessages.poweredByAssets),
|
|
25
|
+
extensionKey: 'jsm-cmdb-gateway',
|
|
26
|
+
icon: /*#__PURE__*/React.createElement(AssetsIcon, {
|
|
27
|
+
size: "20"
|
|
28
|
+
}),
|
|
29
|
+
interactionName: 'atlas-link',
|
|
30
|
+
url: '/jira/assets'
|
|
31
|
+
} : {
|
|
32
|
+
content: intl.formatMessage(footerMessages.powerByJSM),
|
|
33
|
+
extensionKey: 'jsm-cmdb-gateway',
|
|
34
|
+
icon: /*#__PURE__*/React.createElement(JiraServiceManagementIcon, {
|
|
35
|
+
appearance: "neutral",
|
|
36
|
+
size: "small"
|
|
37
|
+
}),
|
|
38
|
+
interactionName: 'atlas-link',
|
|
39
|
+
url: '/jira/servicedesk/assets'
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
}, [datasourceId, intl]);
|
|
43
|
+
return anchor ? /*#__PURE__*/React.createElement(Anchor, {
|
|
44
|
+
href: anchor.url,
|
|
45
|
+
interactionName: anchor.interactionName,
|
|
46
|
+
onClick: function onClick() {
|
|
47
|
+
return fireEvent('ui.link.clicked.poweredBy', {
|
|
48
|
+
componentHierarchy: 'datasourceTable',
|
|
49
|
+
extensionKey: anchor.extensionKey
|
|
50
|
+
});
|
|
51
|
+
},
|
|
52
|
+
rel: "noopener noreferrer",
|
|
53
|
+
target: "_blank",
|
|
54
|
+
testId: "powered-by-jsm-assets-link",
|
|
55
|
+
xcss: styles.anchor
|
|
56
|
+
}, /*#__PURE__*/React.createElement(Inline, {
|
|
57
|
+
alignBlock: "center",
|
|
58
|
+
space: "space.075"
|
|
59
|
+
}, anchor.icon, anchor.content)) : null;
|
|
60
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { type MenuListComponentProps, type OptionType } from '@atlaskit/select';
|
|
2
|
+
import { type MenuListComponentProps, type OptionProps, type OptionType } from '@atlaskit/select';
|
|
3
3
|
export declare const SELECT_ITEMS_MAXIMUM_THRESHOLD = 200;
|
|
4
4
|
export declare const ConcatenatedMenuList: ({ children, ...props }: MenuListComponentProps<OptionType, true>) => JSX.Element;
|
|
5
|
+
export declare const MenuItem: ({ children, ...props }: OptionProps<OptionType, true>) => JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { type MenuListComponentProps, type OptionType } from '@atlaskit/select';
|
|
2
|
+
import { type MenuListComponentProps, type OptionProps, type OptionType } from '@atlaskit/select';
|
|
3
3
|
export declare const SELECT_ITEMS_MAXIMUM_THRESHOLD = 200;
|
|
4
4
|
export declare const ConcatenatedMenuList: ({ children, ...props }: MenuListComponentProps<OptionType, true>) => JSX.Element;
|
|
5
|
+
export declare const MenuItem: ({ children, ...props }: OptionProps<OptionType, true>) => JSX.Element;
|
|
@@ -20,16 +20,19 @@ import { type JiraIssueDatasourceParameters } from '../src/ui/jira-issues-modal/
|
|
|
20
20
|
import SmartLinkClient from './smartLinkCustomClient';
|
|
21
21
|
import { useCommonTableProps } from './useCommonTableProps';
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
interface Props {
|
|
23
|
+
type Props = {
|
|
26
24
|
isReadonly?: boolean;
|
|
27
25
|
canResizeColumns?: boolean;
|
|
28
26
|
canControlWrapping?: boolean;
|
|
29
27
|
skipIntl?: boolean;
|
|
30
28
|
forceLoading?: boolean;
|
|
31
29
|
visibleColumnKeys?: string[];
|
|
32
|
-
|
|
30
|
+
/**
|
|
31
|
+
* Use infinity for an infinite delay (promise never resolves or rejects)
|
|
32
|
+
* Default is 600ms
|
|
33
|
+
*/
|
|
34
|
+
mockExecutionDelay?: number;
|
|
35
|
+
};
|
|
33
36
|
|
|
34
37
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
35
38
|
const TableViewWrapper = styled.div({
|
|
@@ -46,6 +49,7 @@ const ExampleBody = ({
|
|
|
46
49
|
canControlWrapping = true,
|
|
47
50
|
forceLoading = false,
|
|
48
51
|
visibleColumnKeys: overrideVisibleColumnKeys,
|
|
52
|
+
mockExecutionDelay = 600,
|
|
49
53
|
}: Props) => {
|
|
50
54
|
const parameters = useMemo<JiraIssueDatasourceParameters>(
|
|
51
55
|
() => ({
|
|
@@ -55,6 +59,11 @@ const ExampleBody = ({
|
|
|
55
59
|
[],
|
|
56
60
|
);
|
|
57
61
|
|
|
62
|
+
useEffect(() => {
|
|
63
|
+
mockDatasourceFetchRequests({ mockExecutionDelay });
|
|
64
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
65
|
+
}, []);
|
|
66
|
+
|
|
58
67
|
const {
|
|
59
68
|
status,
|
|
60
69
|
onNextPage,
|
|
@@ -123,7 +132,7 @@ const ExampleBody = ({
|
|
|
123
132
|
);
|
|
124
133
|
};
|
|
125
134
|
|
|
126
|
-
export const
|
|
135
|
+
export const ExampleIssueLikeTableExample = (props: Props) => {
|
|
127
136
|
return (
|
|
128
137
|
<DatasourceExperienceIdProvider>
|
|
129
138
|
<IntlMessagesProvider loaderFn={fetchMessagesForLocale}>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-datasource",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.0",
|
|
4
4
|
"description": "UI Components to support linking platform dataset feature",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -58,12 +58,12 @@
|
|
|
58
58
|
"@atlaskit/inline-edit": "^15.1.0",
|
|
59
59
|
"@atlaskit/intl-messages-provider": "^2.0.0",
|
|
60
60
|
"@atlaskit/jql-ast": "^3.3.0",
|
|
61
|
-
"@atlaskit/jql-editor": "^5.
|
|
61
|
+
"@atlaskit/jql-editor": "^5.2.0",
|
|
62
62
|
"@atlaskit/jql-editor-autocomplete-rest": "^3.0.0",
|
|
63
63
|
"@atlaskit/layering": "^2.1.0",
|
|
64
64
|
"@atlaskit/link-client-extension": "^4.0.0",
|
|
65
65
|
"@atlaskit/linking-common": "^8.0.0",
|
|
66
|
-
"@atlaskit/linking-types": "^9.
|
|
66
|
+
"@atlaskit/linking-types": "^9.8.0",
|
|
67
67
|
"@atlaskit/logo": "^16.0.0",
|
|
68
68
|
"@atlaskit/lozenge": "^12.2.0",
|
|
69
69
|
"@atlaskit/modal-dialog": "^14.1.0",
|
|
@@ -73,11 +73,11 @@
|
|
|
73
73
|
"@atlaskit/pragmatic-drag-and-drop": "^1.5.0",
|
|
74
74
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.0.0",
|
|
75
75
|
"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-autoscroll": "^2.0.0",
|
|
76
|
-
"@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^3.
|
|
76
|
+
"@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^3.1.0",
|
|
77
77
|
"@atlaskit/primitives": "^14.4.0",
|
|
78
|
-
"@atlaskit/react-select": "^2.
|
|
79
|
-
"@atlaskit/select": "^20.
|
|
80
|
-
"@atlaskit/smart-card": "^36.
|
|
78
|
+
"@atlaskit/react-select": "^2.3.0",
|
|
79
|
+
"@atlaskit/select": "^20.3.0",
|
|
80
|
+
"@atlaskit/smart-card": "^36.6.0",
|
|
81
81
|
"@atlaskit/smart-user-picker": "^8.0.0",
|
|
82
82
|
"@atlaskit/spinner": "^18.0.0",
|
|
83
83
|
"@atlaskit/tag": "^14.0.0",
|