@weavix/tracker-components 0.1.1 → 0.1.3
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/README.md +29 -1
- package/build/cjs/components/Icon/EntityIcon/EntityIcon.js +2 -3
- package/build/cjs/components/Icon/EntityIcon/EntityIcon.js.map +1 -1
- package/build/cjs/components/Icon/IconRefuge/IconRefuge.classname.js.map +1 -1
- package/build/cjs/components/Icon/IconRefuge/IconRefuge.css +0 -3
- package/build/cjs/components/Icon/IconRefuge/IconRefuge.css.map +1 -1
- package/build/cjs/components/Icon/IssueTypeIcon/IssueTypeIcon.js +30 -50
- package/build/cjs/components/Icon/IssueTypeIcon/IssueTypeIcon.js.map +1 -1
- package/build/cjs/components/Icon/IssueTypeIcon/README.md +42 -0
- package/build/cjs/components/Icon/MetaEntityIcon/README.md +10 -0
- package/build/cjs/components/Icon/PortfolioIcon/PortfolioIcon.d.ts +4 -1
- package/build/cjs/components/Icon/PortfolioIcon/PortfolioIcon.js +1 -0
- package/build/cjs/components/Icon/PortfolioIcon/PortfolioIcon.js.map +1 -1
- package/build/cjs/components/Icon/PortfolioIcon/README.md +7 -0
- package/build/cjs/components/Icon/PriorityIcon/PriorityIcon.classname.d.ts +1 -0
- package/build/cjs/components/Icon/PriorityIcon/PriorityIcon.classname.js +9 -0
- package/build/cjs/components/Icon/PriorityIcon/PriorityIcon.classname.js.map +1 -0
- package/build/cjs/components/Icon/PriorityIcon/PriorityIcon.css +45 -0
- package/build/cjs/components/Icon/PriorityIcon/PriorityIcon.css.map +1 -0
- package/build/cjs/components/Icon/PriorityIcon/PriorityIcon.d.ts +13 -0
- package/build/cjs/components/Icon/PriorityIcon/PriorityIcon.js +80 -0
- package/build/cjs/components/Icon/PriorityIcon/PriorityIcon.js.map +1 -0
- package/build/cjs/components/Icon/PriorityIcon/README.md +172 -0
- package/build/cjs/components/Icon/PriorityIcon/i18n.d.ts +6 -0
- package/build/cjs/components/Icon/PriorityIcon/i18n.js +13 -0
- package/build/cjs/components/Icon/PriorityIcon/i18n.js.map +1 -0
- package/build/cjs/components/Icon/PriorityIcon/index.d.ts +3 -0
- package/build/cjs/components/Icon/PriorityIcon/index.js +13 -0
- package/build/cjs/components/Icon/PriorityIcon/index.js.map +1 -0
- package/build/cjs/components/Icon/PriorityIcon/types.d.ts +1 -0
- package/build/cjs/components/Icon/PriorityIcon/types.js +6 -0
- package/build/cjs/components/Icon/PriorityIcon/types.js.map +1 -0
- package/build/cjs/components/Icon/StatusIcon/README.md +128 -0
- package/build/cjs/components/Icon/StatusIcon/StatusIcon.classname.d.ts +1 -0
- package/build/cjs/components/Icon/StatusIcon/StatusIcon.classname.js +9 -0
- package/build/cjs/components/Icon/StatusIcon/StatusIcon.classname.js.map +1 -0
- package/build/cjs/components/Icon/StatusIcon/StatusIcon.css +28 -0
- package/build/cjs/components/Icon/StatusIcon/StatusIcon.css.map +1 -0
- package/build/cjs/components/Icon/StatusIcon/StatusIcon.d.ts +10 -0
- package/build/cjs/components/Icon/StatusIcon/StatusIcon.js +43 -0
- package/build/cjs/components/Icon/StatusIcon/StatusIcon.js.map +1 -0
- package/build/cjs/components/Icon/StatusIcon/i18n.d.ts +6 -0
- package/build/cjs/components/Icon/StatusIcon/i18n.js +13 -0
- package/build/cjs/components/Icon/StatusIcon/i18n.js.map +1 -0
- package/build/cjs/components/Icon/StatusIcon/index.d.ts +3 -0
- package/build/cjs/components/Icon/StatusIcon/index.js +13 -0
- package/build/cjs/components/Icon/StatusIcon/index.js.map +1 -0
- package/build/cjs/components/Icon/StatusIcon/types.d.ts +3 -0
- package/build/cjs/components/Icon/StatusIcon/types.js +6 -0
- package/build/cjs/components/Icon/StatusIcon/types.js.map +1 -0
- package/build/cjs/components/Icon/StatusIcon/utils.d.ts +3 -0
- package/build/cjs/components/Icon/StatusIcon/utils.js +39 -0
- package/build/cjs/components/Icon/StatusIcon/utils.js.map +1 -0
- package/build/cjs/components/Icon/index.d.ts +2 -0
- package/build/cjs/components/Icon/index.js +22 -0
- package/build/cjs/components/Icon/index.js.map +1 -1
- package/build/cjs/components/MetaEntitiesSelect/README.md +10 -0
- package/build/cjs/components/PluginFieldsSelect/README.md +18 -0
- package/build/cjs/components/QueueSelect/README.md +10 -0
- package/build/esm/components/Icon/EntityIcon/EntityIcon.js +2 -3
- package/build/esm/components/Icon/EntityIcon/EntityIcon.js.map +1 -1
- package/build/esm/components/Icon/IconRefuge/IconRefuge.classname.js.map +1 -1
- package/build/esm/components/Icon/IconRefuge/IconRefuge.css +0 -3
- package/build/esm/components/Icon/IconRefuge/IconRefuge.css.map +1 -1
- package/build/esm/components/Icon/IconRefuge/IconRefuge.scss +0 -4
- package/build/esm/components/Icon/IssueTypeIcon/IssueTypeIcon.js +30 -50
- package/build/esm/components/Icon/IssueTypeIcon/IssueTypeIcon.js.map +1 -1
- package/build/esm/components/Icon/IssueTypeIcon/README.md +42 -0
- package/build/esm/components/Icon/MetaEntityIcon/README.md +10 -0
- package/build/esm/components/Icon/PortfolioIcon/PortfolioIcon.d.ts +4 -1
- package/build/esm/components/Icon/PortfolioIcon/PortfolioIcon.js +1 -0
- package/build/esm/components/Icon/PortfolioIcon/PortfolioIcon.js.map +1 -1
- package/build/esm/components/Icon/PortfolioIcon/README.md +7 -0
- package/build/esm/components/Icon/PriorityIcon/PriorityIcon.classname.d.ts +1 -0
- package/build/esm/components/Icon/PriorityIcon/PriorityIcon.classname.js +3 -0
- package/build/esm/components/Icon/PriorityIcon/PriorityIcon.classname.js.map +1 -0
- package/build/esm/components/Icon/PriorityIcon/PriorityIcon.css +45 -0
- package/build/esm/components/Icon/PriorityIcon/PriorityIcon.css.map +1 -0
- package/build/esm/components/Icon/PriorityIcon/PriorityIcon.d.ts +13 -0
- package/build/esm/components/Icon/PriorityIcon/PriorityIcon.js +73 -0
- package/build/esm/components/Icon/PriorityIcon/PriorityIcon.js.map +1 -0
- package/build/esm/components/Icon/{Icon.scss → PriorityIcon/PriorityIcon.scss} +26 -8
- package/build/esm/components/Icon/PriorityIcon/README.md +172 -0
- package/build/esm/components/Icon/PriorityIcon/i18n.d.ts +6 -0
- package/build/esm/components/Icon/PriorityIcon/i18n.js +7 -0
- package/build/esm/components/Icon/PriorityIcon/i18n.js.map +1 -0
- package/build/esm/components/Icon/PriorityIcon/index.d.ts +3 -0
- package/build/esm/components/Icon/PriorityIcon/index.js +2 -0
- package/build/esm/components/Icon/PriorityIcon/index.js.map +1 -0
- package/build/esm/components/Icon/PriorityIcon/types.d.ts +1 -0
- package/build/esm/components/Icon/PriorityIcon/types.js +2 -0
- package/build/esm/components/Icon/PriorityIcon/types.js.map +1 -0
- package/build/esm/components/Icon/StatusIcon/README.md +128 -0
- package/build/esm/components/Icon/StatusIcon/StatusIcon.classname.d.ts +1 -0
- package/build/esm/components/Icon/StatusIcon/StatusIcon.classname.js +3 -0
- package/build/esm/components/Icon/StatusIcon/StatusIcon.classname.js.map +1 -0
- package/build/esm/components/Icon/StatusIcon/StatusIcon.css +28 -0
- package/build/esm/components/Icon/StatusIcon/StatusIcon.css.map +1 -0
- package/build/esm/components/Icon/StatusIcon/StatusIcon.d.ts +10 -0
- package/build/esm/components/Icon/StatusIcon/StatusIcon.js +36 -0
- package/build/esm/components/Icon/StatusIcon/StatusIcon.js.map +1 -0
- package/build/esm/components/Icon/StatusIcon/StatusIcon.scss +46 -0
- package/build/esm/components/Icon/StatusIcon/i18n.d.ts +6 -0
- package/build/esm/components/Icon/StatusIcon/i18n.js +7 -0
- package/build/esm/components/Icon/StatusIcon/i18n.js.map +1 -0
- package/build/esm/components/Icon/StatusIcon/index.d.ts +3 -0
- package/build/esm/components/Icon/StatusIcon/index.js +2 -0
- package/build/esm/components/Icon/StatusIcon/index.js.map +1 -0
- package/build/esm/components/Icon/StatusIcon/types.d.ts +3 -0
- package/build/esm/components/Icon/StatusIcon/types.js +2 -0
- package/build/esm/components/Icon/StatusIcon/types.js.map +1 -0
- package/build/esm/components/Icon/StatusIcon/utils.d.ts +3 -0
- package/build/esm/components/Icon/StatusIcon/utils.js +33 -0
- package/build/esm/components/Icon/StatusIcon/utils.js.map +1 -0
- package/build/esm/components/Icon/index.d.ts +2 -0
- package/build/esm/components/Icon/index.js +2 -0
- package/build/esm/components/Icon/index.js.map +1 -1
- package/build/esm/components/MetaEntitiesSelect/README.md +10 -0
- package/build/esm/components/PluginFieldsSelect/README.md +18 -0
- package/build/esm/components/QueueSelect/README.md +10 -0
- package/package.json +1 -1
- package/build/cjs/components/Icon/Icon.classname.d.ts +0 -1
- package/build/cjs/components/Icon/Icon.classname.js +0 -9
- package/build/cjs/components/Icon/Icon.classname.js.map +0 -1
- package/build/cjs/components/Icon/Icon.css +0 -33
- package/build/cjs/components/Icon/Icon.css.map +0 -1
- package/build/esm/components/Icon/Icon.classname.d.ts +0 -1
- package/build/esm/components/Icon/Icon.classname.js +0 -3
- package/build/esm/components/Icon/Icon.classname.js.map +0 -1
- package/build/esm/components/Icon/Icon.css +0 -33
- package/build/esm/components/Icon/Icon.css.map +0 -1
|
@@ -5,5 +5,7 @@ export * from "./IssueTypeIcon";
|
|
|
5
5
|
export * from "./KeyResultIcon";
|
|
6
6
|
export * from "./MetaEntityIcon";
|
|
7
7
|
export * from "./PortfolioIcon";
|
|
8
|
+
export * from "./PriorityIcon";
|
|
8
9
|
export * from "./ProjectIcon";
|
|
10
|
+
export * from "./StatusIcon";
|
|
9
11
|
// #sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from './EntityIcon';\nexport * from './GoalIcon';\nexport * from './IconRefuge';\nexport * from './IssueTypeIcon';\nexport * from './KeyResultIcon';\nexport * from './MetaEntityIcon';\nexport * from './PortfolioIcon';\nexport * from './ProjectIcon';\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from './EntityIcon';\nexport * from './GoalIcon';\nexport * from './IconRefuge';\nexport * from './IssueTypeIcon';\nexport * from './KeyResultIcon';\nexport * from './MetaEntityIcon';\nexport * from './PortfolioIcon';\nexport * from './PriorityIcon';\nexport * from './ProjectIcon';\nexport * from './StatusIcon';\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
|
|
@@ -100,6 +100,16 @@ type MetaEntityV2 = {
|
|
|
100
100
|
|
|
101
101
|
`MetaEntitiesSelect` is data-agnostic — it accepts items via the `getItems` prop. You are responsible for fetching data from the Tracker API and passing it to the component.
|
|
102
102
|
|
|
103
|
+
Requires the `"tracker:entities:write"` permission in your plugin's `manifest.json`:
|
|
104
|
+
|
|
105
|
+
```json
|
|
106
|
+
{
|
|
107
|
+
"permissions": {
|
|
108
|
+
"data": ["tracker:entities:write"]
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
```
|
|
112
|
+
|
|
103
113
|
### Getting projects
|
|
104
114
|
|
|
105
115
|
Use the entities search endpoint to fetch projects (or other entity types):
|
|
@@ -235,6 +235,24 @@ type TrackerSelectItem = {
|
|
|
235
235
|
|
|
236
236
|
`PluginFieldsSelect` is data-agnostic — it accepts fields via the `fields` prop. You are responsible for fetching data from the Tracker API and passing it to the component.
|
|
237
237
|
|
|
238
|
+
Add the required permissions to your plugin's `manifest.json`:
|
|
239
|
+
|
|
240
|
+
```json
|
|
241
|
+
{
|
|
242
|
+
"permissions": {
|
|
243
|
+
"data": [
|
|
244
|
+
"tracker:fields:read",
|
|
245
|
+
"tracker:fields:write",
|
|
246
|
+
"tracker:queues:read"
|
|
247
|
+
]
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
- `tracker:fields:read` — required for `GET /fields` and `POST /fields/_suggest`
|
|
253
|
+
- `tracker:fields:write` — required if your plugin writes field values back to Tracker
|
|
254
|
+
- `tracker:queues:read` — required when using `localFields: true` with queue keys (Flow 3)
|
|
255
|
+
|
|
238
256
|
There are three fetch flows depending on whether the user has typed anything and whether local (queue-specific) fields are needed.
|
|
239
257
|
|
|
240
258
|
### Flow 1 — Initial load (no user input)
|
|
@@ -178,6 +178,16 @@ type QueueSuggestItem = {
|
|
|
178
178
|
|
|
179
179
|
`QueueSelect` is data-agnostic — it accepts queues via the `queues` prop and search results via the `onSearch` callback. You are responsible for fetching data from the Tracker API and passing it to the component.
|
|
180
180
|
|
|
181
|
+
Requires the `"tracker:queues:read"` permission in your plugin's `manifest.json`:
|
|
182
|
+
|
|
183
|
+
```json
|
|
184
|
+
{
|
|
185
|
+
"permissions": {
|
|
186
|
+
"data": ["tracker:queues:read"]
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
```
|
|
190
|
+
|
|
181
191
|
There are two fetch flows depending on whether the user has typed anything in the search filter.
|
|
182
192
|
|
|
183
193
|
### Flow 1 — Initial load (no user input)
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const cnIcon: import("@bem-react/classname").ClassNameFormatter;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_cn","require","cnIcon","exports","block"],"sources":["Icon.classname.ts"],"sourcesContent":["import {block} from '~/src/components/cn';\n\nexport const cnIcon = block('Icon');\n"],"mappings":";;;;;;AAAA,IAAAA,GAAA,GAAAC,OAAA;AAEO,IAAMC,MAAM,GAAAC,OAAA,CAAAD,MAAA,GAAG,IAAAE,SAAK,EAAC,MAAM,CAAC","ignoreList":[]}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
.tpc-Icon_priority_blocker {
|
|
2
|
-
color: var(--g-color-text-danger);
|
|
3
|
-
}
|
|
4
|
-
.tpc-Icon_priority_critical {
|
|
5
|
-
color: var(--g-color-text-warning-heavy);
|
|
6
|
-
}
|
|
7
|
-
.tpc-Icon_priority_trivial {
|
|
8
|
-
color: var(--g-color-text-hint);
|
|
9
|
-
}
|
|
10
|
-
.tpc-Icon_priority_normal, .tpc-Icon_priority_minor {
|
|
11
|
-
color: var(--g-color-text-secondary);
|
|
12
|
-
}
|
|
13
|
-
.tpc-Icon-background {
|
|
14
|
-
display: flex;
|
|
15
|
-
align-items: center;
|
|
16
|
-
justify-content: center;
|
|
17
|
-
width: 100%;
|
|
18
|
-
height: 100%;
|
|
19
|
-
border-radius: 50%;
|
|
20
|
-
}
|
|
21
|
-
.tpc-Icon-background_priority_blocker {
|
|
22
|
-
background: var(--g-color-base-danger-light);
|
|
23
|
-
}
|
|
24
|
-
.tpc-Icon-background_priority_critical {
|
|
25
|
-
background: var(--g-color-base-warning-light);
|
|
26
|
-
}
|
|
27
|
-
.tpc-Icon-background_priority_trivial {
|
|
28
|
-
background: var(--g-color-base-neutral-light);
|
|
29
|
-
}
|
|
30
|
-
.tpc-Icon-background_priority_normal, .tpc-Icon-background_priority_minor {
|
|
31
|
-
background: var(--g-color-base-neutral-light);
|
|
32
|
-
}
|
|
33
|
-
/*# sourceMappingURL=Icon.css.map */
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["Icon.scss"],"names":[],"mappings":"AACI;EACI,iCAAA;AAAR;AAGI;EACI,wCAAA;AADR;AAII;EACI,+BAAA;AAFR;AAKI;EAEI,oCAAA;AAJR;AAOI;EACI,aAAA;EACA,mBAAA;EACA,uBAAA;EAEA,WAAA;EACA,YAAA;EAEA,kBAAA;AAPR;AAUI;EACI,4CAAA;AARR;AAWI;EACI,6CAAA;AATR;AAYI;EACI,6CAAA;AAVR;AAaI;EAEI,6CAAA;AAZR","file":"Icon.css","sourcesContent":[".tpc-Icon {\n &_priority_blocker {\n color: var(--g-color-text-danger);\n }\n\n &_priority_critical {\n color: var(--g-color-text-warning-heavy);\n }\n\n &_priority_trivial {\n color: var(--g-color-text-hint);\n }\n\n &_priority_normal,\n &_priority_minor {\n color: var(--g-color-text-secondary);\n }\n\n &-background {\n display: flex;\n align-items: center;\n justify-content: center;\n\n width: 100%;\n height: 100%;\n\n border-radius: 50%;\n }\n\n &-background_priority_blocker {\n background: var(--g-color-base-danger-light);\n }\n\n &-background_priority_critical {\n background: var(--g-color-base-warning-light);\n }\n\n &-background_priority_trivial {\n background: var(--g-color-base-neutral-light);\n }\n\n &-background_priority_normal,\n &-background_priority_minor {\n background: var(--g-color-base-neutral-light);\n }\n}\n"],"sourceRoot":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const cnIcon: import("@bem-react/classname").ClassNameFormatter;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["block","cnIcon"],"sources":["Icon.classname.ts"],"sourcesContent":["import {block} from '~/src/components/cn';\n\nexport const cnIcon = block('Icon');\n"],"mappings":"AAAA,SAAQA,KAAK;AAEb,OAAO,IAAMC,MAAM,GAAGD,KAAK,CAAC,MAAM,CAAC","ignoreList":[]}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
.tpc-Icon_priority_blocker {
|
|
2
|
-
color: var(--g-color-text-danger);
|
|
3
|
-
}
|
|
4
|
-
.tpc-Icon_priority_critical {
|
|
5
|
-
color: var(--g-color-text-warning-heavy);
|
|
6
|
-
}
|
|
7
|
-
.tpc-Icon_priority_trivial {
|
|
8
|
-
color: var(--g-color-text-hint);
|
|
9
|
-
}
|
|
10
|
-
.tpc-Icon_priority_normal, .tpc-Icon_priority_minor {
|
|
11
|
-
color: var(--g-color-text-secondary);
|
|
12
|
-
}
|
|
13
|
-
.tpc-Icon-background {
|
|
14
|
-
display: flex;
|
|
15
|
-
align-items: center;
|
|
16
|
-
justify-content: center;
|
|
17
|
-
width: 100%;
|
|
18
|
-
height: 100%;
|
|
19
|
-
border-radius: 50%;
|
|
20
|
-
}
|
|
21
|
-
.tpc-Icon-background_priority_blocker {
|
|
22
|
-
background: var(--g-color-base-danger-light);
|
|
23
|
-
}
|
|
24
|
-
.tpc-Icon-background_priority_critical {
|
|
25
|
-
background: var(--g-color-base-warning-light);
|
|
26
|
-
}
|
|
27
|
-
.tpc-Icon-background_priority_trivial {
|
|
28
|
-
background: var(--g-color-base-neutral-light);
|
|
29
|
-
}
|
|
30
|
-
.tpc-Icon-background_priority_normal, .tpc-Icon-background_priority_minor {
|
|
31
|
-
background: var(--g-color-base-neutral-light);
|
|
32
|
-
}
|
|
33
|
-
/*# sourceMappingURL=Icon.css.map */
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["Icon.scss"],"names":[],"mappings":"AACI;EACI,iCAAA;AAAR;AAGI;EACI,wCAAA;AADR;AAII;EACI,+BAAA;AAFR;AAKI;EAEI,oCAAA;AAJR;AAOI;EACI,aAAA;EACA,mBAAA;EACA,uBAAA;EAEA,WAAA;EACA,YAAA;EAEA,kBAAA;AAPR;AAUI;EACI,4CAAA;AARR;AAWI;EACI,6CAAA;AATR;AAYI;EACI,6CAAA;AAVR;AAaI;EAEI,6CAAA;AAZR","file":"Icon.css","sourcesContent":[".tpc-Icon {\n &_priority_blocker {\n color: var(--g-color-text-danger);\n }\n\n &_priority_critical {\n color: var(--g-color-text-warning-heavy);\n }\n\n &_priority_trivial {\n color: var(--g-color-text-hint);\n }\n\n &_priority_normal,\n &_priority_minor {\n color: var(--g-color-text-secondary);\n }\n\n &-background {\n display: flex;\n align-items: center;\n justify-content: center;\n\n width: 100%;\n height: 100%;\n\n border-radius: 50%;\n }\n\n &-background_priority_blocker {\n background: var(--g-color-base-danger-light);\n }\n\n &-background_priority_critical {\n background: var(--g-color-base-warning-light);\n }\n\n &-background_priority_trivial {\n background: var(--g-color-base-neutral-light);\n }\n\n &-background_priority_normal,\n &-background_priority_minor {\n background: var(--g-color-base-neutral-light);\n }\n}\n"],"sourceRoot":""}
|