@things-factory/auth-ui 10.1.106 → 10.1.111

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.
Files changed (39) hide show
  1. package/dist-client/bootstrap.js +22 -1
  2. package/dist-client/bootstrap.js.map +1 -1
  3. package/dist-client/components/access-decision-popup.d.ts +30 -0
  4. package/dist-client/components/access-decision-popup.js +228 -0
  5. package/dist-client/components/access-decision-popup.js.map +1 -0
  6. package/dist-client/components/access-request-popup.d.ts +32 -0
  7. package/dist-client/components/access-request-popup.js +211 -0
  8. package/dist-client/components/access-request-popup.js.map +1 -0
  9. package/dist-client/components/user-detail.d.ts +2 -0
  10. package/dist-client/components/user-detail.js +18 -0
  11. package/dist-client/components/user-detail.js.map +1 -1
  12. package/dist-client/pages/access-request/access-requests.d.ts +51 -0
  13. package/dist-client/pages/access-request/access-requests.js +220 -0
  14. package/dist-client/pages/access-request/access-requests.js.map +1 -0
  15. package/dist-client/pages/access-request/my-access-requests.d.ts +26 -0
  16. package/dist-client/pages/access-request/my-access-requests.js +151 -0
  17. package/dist-client/pages/access-request/my-access-requests.js.map +1 -0
  18. package/dist-client/route.js +6 -0
  19. package/dist-client/route.js.map +1 -1
  20. package/dist-client/tsconfig.layout-check.tsbuildinfo +1 -0
  21. package/dist-client/tsconfig.tsbuildinfo +1 -1
  22. package/dist-client/utils/access-request.d.ts +49 -0
  23. package/dist-client/utils/access-request.js +67 -0
  24. package/dist-client/utils/access-request.js.map +1 -0
  25. package/dist-client/utils/access-request.test.d.ts +1 -0
  26. package/dist-client/utils/access-request.test.js +70 -0
  27. package/dist-client/utils/access-request.test.js.map +1 -0
  28. package/dist-client/utils/role-origin.d.ts +8 -0
  29. package/dist-client/utils/role-origin.js +10 -0
  30. package/dist-client/utils/role-origin.js.map +1 -1
  31. package/dist-client/utils/role-origin.test.js +7 -1
  32. package/dist-client/utils/role-origin.test.js.map +1 -1
  33. package/package.json +5 -5
  34. package/things-factory.config.js +3 -1
  35. package/translations/en.json +63 -1
  36. package/translations/ja.json +63 -1
  37. package/translations/ko.json +63 -1
  38. package/translations/ms.json +63 -1
  39. package/translations/zh.json +63 -1
@@ -0,0 +1,151 @@
1
+ import { __decorate, __metadata } from "tslib";
2
+ import '@operato/data-grist/ox-grist.js';
3
+ import gql from 'graphql-tag';
4
+ import { css, html } from 'lit';
5
+ import { customElement, property, query } from 'lit/decorators.js';
6
+ import { client, gqlContext } from '@operato/graphql';
7
+ import { i18next, localize } from '@operato/i18n';
8
+ import { OxPrompt } from '@operato/popup/ox-prompt.js';
9
+ import { PageView } from '@operato/shell';
10
+ import { CommonGristStyles, ScrollbarStyles, WorkSurfacePageStyles } from '@operato/styles';
11
+ import { isMobileDevice } from '@operato/utils';
12
+ import { privilegeWords } from '../../utils/access-request.js';
13
+ import { arrayFromResponse, listOutcome } from '../../utils/list-result.js';
14
+ /**
15
+ * The person's own access requests - what became of each (ADR-0103). A notification may not reach them;
16
+ * this does.
17
+ */
18
+ let MyAccessRequestsPage = class MyAccessRequestsPage extends localize(i18next)(PageView) {
19
+ constructor() {
20
+ super(...arguments);
21
+ this.active = false;
22
+ this.failed = false;
23
+ }
24
+ static { this.styles = [
25
+ WorkSurfacePageStyles,
26
+ CommonGristStyles,
27
+ ScrollbarStyles,
28
+ css `
29
+ [failed] {
30
+ padding: var(--spacing-medium);
31
+ color: var(--md-sys-color-error);
32
+ }
33
+ `
34
+ ]; }
35
+ get context() {
36
+ return { title: i18next.t('access-request.title.my access requests') };
37
+ }
38
+ render() {
39
+ return html `
40
+ <ox-grist class="page-fill" .mode=${isMobileDevice() ? 'CARD' : 'GRID'} .config=${this.config} .fetchHandler=${this.fetchHandler.bind(this)}></ox-grist>
41
+ ${this.failed ? html `<div failed>${i18next.t('text.the list could not be loaded')}</div>` : ''}
42
+ `;
43
+ }
44
+ async pageInitialized() {
45
+ const t = i18next.t.bind(i18next);
46
+ this.config = {
47
+ pagination: { infinite: true },
48
+ rows: { appendable: false, selectable: false },
49
+ columns: [
50
+ {
51
+ type: 'gutter',
52
+ gutterName: 'button',
53
+ icon: 'undo',
54
+ title: t('access-request.button.withdraw'),
55
+ handlers: { click: (_c, _d, _col, record) => record?.state === 'PENDING' && this.withdraw(record) }
56
+ },
57
+ { type: 'string', name: 'needed', header: t('access-request.field.needed'), record: { editable: false }, width: 260 },
58
+ { type: 'string', name: 'stateWords', header: t('field.state'), record: { align: 'center', editable: false }, width: 100 },
59
+ { type: 'string', name: 'grantedRoleName', header: t('access-request.field.granted role'), record: { editable: false }, width: 140 },
60
+ { type: 'string', name: 'decisionReason', header: t('access-request.field.decision reason'), record: { editable: false }, width: 220 },
61
+ { type: 'datetime', name: 'createdAt', header: t('field.created at'), width: 170 }
62
+ ]
63
+ };
64
+ }
65
+ async pageUpdated(_changes, _lifecycle) {
66
+ if (this.active) {
67
+ await this.updateComplete;
68
+ this.grist.fetch();
69
+ }
70
+ }
71
+ async withdraw(record) {
72
+ const confirmed = await OxPrompt.open({
73
+ type: 'warning',
74
+ title: i18next.t('access-request.button.withdraw'),
75
+ text: record.needed,
76
+ confirmButton: { text: i18next.t('access-request.button.withdraw') },
77
+ cancelButton: { text: i18next.t('button.cancel') }
78
+ });
79
+ if (!confirmed)
80
+ return;
81
+ await client.mutate({
82
+ mutation: gql `
83
+ mutation ($id: String!) {
84
+ withdrawAccessRequest(id: $id) {
85
+ id
86
+ }
87
+ }
88
+ `,
89
+ variables: { id: record.id },
90
+ context: gqlContext()
91
+ });
92
+ this.grist.fetch();
93
+ }
94
+ async fetchHandler() {
95
+ const response = await client.query({
96
+ query: gql `
97
+ query {
98
+ myAccessRequests {
99
+ id
100
+ category
101
+ privilege
102
+ state
103
+ expiresAt
104
+ createdAt
105
+ decisionReason
106
+ grantedRole {
107
+ name
108
+ }
109
+ }
110
+ }
111
+ `,
112
+ context: gqlContext(),
113
+ fetchPolicy: 'network-only'
114
+ });
115
+ const { items, failed } = listOutcome(arrayFromResponse(response, 'myAccessRequests'));
116
+ this.failed = failed;
117
+ const t = i18next.t.bind(i18next);
118
+ const records = items.map((item) => {
119
+ const state = item.state === 'PENDING' && item.expiresAt && new Date(item.expiresAt).getTime() <= Date.now() ? 'EXPIRED' : item.state;
120
+ return {
121
+ ...item,
122
+ state,
123
+ stateWords: t(`access-request.state.${state.toLowerCase()}`),
124
+ needed: privilegeWords(t, item.category, item.privilege),
125
+ grantedRoleName: item.grantedRole?.name || ''
126
+ };
127
+ });
128
+ return { total: records.length, records };
129
+ }
130
+ };
131
+ __decorate([
132
+ property({ type: Boolean }),
133
+ __metadata("design:type", Boolean)
134
+ ], MyAccessRequestsPage.prototype, "active", void 0);
135
+ __decorate([
136
+ property({ type: Object }),
137
+ __metadata("design:type", Object)
138
+ ], MyAccessRequestsPage.prototype, "config", void 0);
139
+ __decorate([
140
+ property({ type: Boolean }),
141
+ __metadata("design:type", Boolean)
142
+ ], MyAccessRequestsPage.prototype, "failed", void 0);
143
+ __decorate([
144
+ query('ox-grist'),
145
+ __metadata("design:type", Function)
146
+ ], MyAccessRequestsPage.prototype, "grist", void 0);
147
+ MyAccessRequestsPage = __decorate([
148
+ customElement('my-access-requests-page')
149
+ ], MyAccessRequestsPage);
150
+ export { MyAccessRequestsPage };
151
+ //# sourceMappingURL=my-access-requests.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"my-access-requests.js","sourceRoot":"","sources":["../../../client/pages/access-request/my-access-requests.ts"],"names":[],"mappings":";AAAA,OAAO,iCAAiC,CAAA;AAExC,OAAO,GAAG,MAAM,aAAa,CAAA;AAC7B,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAC/B,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAGlE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACrD,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACjD,OAAO,EAAE,QA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sourcesContent":["import '@operato/data-grist/ox-grist.js'\n\nimport gql from 'graphql-tag'\nimport { css, html } from 'lit'\nimport { customElement, property, query } from 'lit/decorators.js'\n\nimport type { DataGrist } from '@operato/data-grist'\nimport { client, gqlContext } from '@operato/graphql'\nimport { i18next, localize } from '@operato/i18n'\nimport { OxPrompt } from '@operato/popup/ox-prompt.js'\nimport { PageView } from '@operato/shell'\nimport { CommonGristStyles, ScrollbarStyles, WorkSurfacePageStyles } from '@operato/styles'\nimport { isMobileDevice } from '@operato/utils'\n\nimport { privilegeWords } from '../../utils/access-request.js'\nimport { arrayFromResponse, listOutcome } from '../../utils/list-result.js'\n\n/**\n * The person's own access requests - what became of each (ADR-0103). A notification may not reach them;\n * this does.\n */\n@customElement('my-access-requests-page')\nexport class MyAccessRequestsPage extends localize(i18next)(PageView) {\n static styles = [\n WorkSurfacePageStyles,\n CommonGristStyles,\n ScrollbarStyles,\n css`\n [failed] {\n padding: var(--spacing-medium);\n color: var(--md-sys-color-error);\n }\n `\n ]\n\n @property({ type: Boolean }) active: boolean = false\n @property({ type: Object }) config: any\n @property({ type: Boolean }) failed: boolean = false\n\n @query('ox-grist') private grist!: DataGrist\n\n get context() {\n return { title: i18next.t('access-request.title.my access requests') }\n }\n\n render() {\n return html`\n <ox-grist class=\"page-fill\" .mode=${isMobileDevice() ? 'CARD' : 'GRID'} .config=${this.config} .fetchHandler=${this.fetchHandler.bind(this)}></ox-grist>\n ${this.failed ? html`<div failed>${i18next.t('text.the list could not be loaded')}</div>` : ''}\n `\n }\n\n async pageInitialized() {\n const t = i18next.t.bind(i18next)\n this.config = {\n pagination: { infinite: true },\n rows: { appendable: false, selectable: false },\n columns: [\n {\n type: 'gutter',\n gutterName: 'button',\n icon: 'undo',\n title: t('access-request.button.withdraw'),\n handlers: { click: (_c: any, _d: any, _col: any, record: any) => record?.state === 'PENDING' && this.withdraw(record) }\n },\n { type: 'string', name: 'needed', header: t('access-request.field.needed'), record: { editable: false }, width: 260 },\n { type: 'string', name: 'stateWords', header: t('field.state'), record: { align: 'center', editable: false }, width: 100 },\n { type: 'string', name: 'grantedRoleName', header: t('access-request.field.granted role'), record: { editable: false }, width: 140 },\n { type: 'string', name: 'decisionReason', header: t('access-request.field.decision reason'), record: { editable: false }, width: 220 },\n { type: 'datetime', name: 'createdAt', header: t('field.created at'), width: 170 }\n ]\n }\n }\n\n async pageUpdated(_changes: any, _lifecycle: any) {\n if (this.active) {\n await this.updateComplete\n this.grist.fetch()\n }\n }\n\n private async withdraw(record: any) {\n const confirmed = await OxPrompt.open({\n type: 'warning',\n title: i18next.t('access-request.button.withdraw'),\n text: record.needed,\n confirmButton: { text: i18next.t('access-request.button.withdraw') },\n cancelButton: { text: i18next.t('button.cancel') }\n })\n if (!confirmed) return\n\n await client.mutate({\n mutation: gql`\n mutation ($id: String!) {\n withdrawAccessRequest(id: $id) {\n id\n }\n }\n `,\n variables: { id: record.id },\n context: gqlContext()\n })\n this.grist.fetch()\n }\n\n async fetchHandler() {\n const response = await client.query({\n query: gql`\n query {\n myAccessRequests {\n id\n category\n privilege\n state\n expiresAt\n createdAt\n decisionReason\n grantedRole {\n name\n }\n }\n }\n `,\n context: gqlContext(),\n fetchPolicy: 'network-only'\n })\n const { items, failed } = listOutcome(arrayFromResponse(response, 'myAccessRequests'))\n this.failed = failed\n const t = i18next.t.bind(i18next)\n const records = items.map((item: any) => {\n const state = item.state === 'PENDING' && item.expiresAt && new Date(item.expiresAt).getTime() <= Date.now() ? 'EXPIRED' : item.state\n return {\n ...item,\n state,\n stateWords: t(`access-request.state.${state.toLowerCase()}`),\n needed: privilegeWords(t, item.category, item.privilege),\n grantedRoleName: item.grantedRole?.name || ''\n }\n })\n return { total: records.length, records }\n }\n}\n"]}
@@ -48,6 +48,12 @@ export default function route(page) {
48
48
  case 'domain-links':
49
49
  import('./pages/domain-link/domain-link-management.js');
50
50
  return page;
51
+ case 'access-requests':
52
+ import('./pages/access-request/access-requests.js');
53
+ return page;
54
+ case 'my-access-requests':
55
+ import('./pages/access-request/my-access-requests.js');
56
+ return page;
51
57
  }
52
58
  }
53
59
  //# sourceMappingURL=route.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"route.js","sourceRoot":"","sources":["../client/route.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,IAAI;IAChC,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,SAAS;YACZ,MAAM;YACJ,2BAA2B;YAC3B,iCAAiC;YACjC,oBAAoB,CACrB,CAAA;YACD,OAAO,IAAI,CAAA;QAEb,KAAK,cAAc;YACjB,MAAM,CAAC,kCAAkC,CAAC,CAAA;YAC1C,OAAO,IAAI,CAAA;QAEb,KAAK,cAAc;YACjB,MAAM,CAAC,kCAAkC,CAAC,CAAA;YAC1C,OAAO,IAAI,CAAA;QAEb,KAAK,gBAAgB;YACnB,MAAM,CAAC,wBAAwB,CAAC,CAAA;YAChC,OAAO,IAAI,CAAA;QAEb,KAAK,OAAO;YACV,MAAM,CAAC,6BAA6B,CAAC,CAAA;YACrC,OAAO,IAAI,CAAA;QAEb,KAAK,iBAAiB;YACpB,MAAM,CAAC,kCAAkC,CAAC,CAAA;YAC1C,OAAO,IAAI,CAAA;QAEb,KAAK,OAAO;YACV,MAAM,CAAC,6BAA6B,CAAC,CAAA;YACrC,OAAO,IAAI,CAAA;QAEb,KAAK,aAAa;YAChB,MAAM,CAAC,gCAAgC,CAAC,CAAA;YACxC,OAAO,IAAI,CAAA;QAEb,KAAK,UAAU;YACb,MAAM,CAAC,oCAAoC,CAAC,CAAA;YAC5C,OAAO,IAAI,CAAA;QAEb,KAAK,SAAS;YACZ,MAAM,CAAC,kCAAkC,CAAC,CAAA;YAC1C,OAAO,IAAI,CAAA;QAEb,KAAK,eAAe;YAClB,MAAM,CAAC,8CAA8C,CAAC,CAAA;YACtD,OAAO,IAAI,CAAA;QAEb,KAAK,UAAU;YACb,MAAM,CAAC,mCAAmC,CAAC,CAAA;YAC3C,OAAO,IAAI,CAAA;QAEb,KAAK,YAAY;YACf,MAAM,CAAC,+CAA+C,CAAC,CAAA;YACvD,OAAO,IAAI,CAAA;QAEb,KAAK,gBAAgB;YACnB,MAAM,CAAC,mDAAmD,CAAC,CAAA;YAC3D,OAAO,IAAI,CAAA;QAEb,KAAK,cAAc;YACjB,MAAM,CAAC,+CAA+C,CAAC,CAAA;YACvD,OAAO,IAAI,CAAA;IACf,CAAC;AACH,CAAC","sourcesContent":["export default function route(page) {\n switch (page) {\n case 'profile':\n import(\n /* webpackPrefetch: true */\n /* webpackChunkName: \"profile\" */\n './pages/profile.js'\n )\n return page\n\n case 'applications':\n import('./pages/application/applications')\n return page\n\n case 'app-bindings':\n import('./pages/app-binding/app-bindings')\n return page\n\n case 'appliance-home':\n import('./pages/appliance/home')\n return page\n\n case 'roles':\n import('./pages/role/role-list-page')\n return page\n\n case 'role-privileges':\n import('./pages/role/role-privilege-page')\n return page\n\n case 'users':\n import('./pages/user/user-list-page')\n return page\n\n case 'invitations':\n import('./pages/invitation/invitations')\n return page\n\n case 'partners':\n import('./pages/partner/partner-management')\n return page\n\n case 'domains':\n import('./pages/domain/domain-management')\n return page\n\n case 'domain-owners':\n import('./pages/domain-owner/domain-owner-management')\n return page\n\n case 'env-vars':\n import('./pages/env-var/env-var-list-page')\n return page\n\n case 'attributes':\n import('./pages/attribute/attribute-set-management.js')\n return page\n\n case 'auth-providers':\n import('./pages/auth-provider/auth-provider-management.js')\n return page\n\n case 'domain-links':\n import('./pages/domain-link/domain-link-management.js')\n return page\n }\n}\n"]}
1
+ {"version":3,"file":"route.js","sourceRoot":"","sources":["../client/route.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,IAAI;IAChC,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,SAAS;YACZ,MAAM;YACJ,2BAA2B;YAC3B,iCAAiC;YACjC,oBAAoB,CACrB,CAAA;YACD,OAAO,IAAI,CAAA;QAEb,KAAK,cAAc;YACjB,MA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,8CAA8C,CAAC,CAAA;YACtD,OAAO,IAAI,CAAA;IACf,CAAC;AACH,CAAC","sourcesContent":["export default function route(page) {\n switch (page) {\n case 'profile':\n import(\n /* webpackPrefetch: true */\n /* webpackChunkName: \"profile\" */\n './pages/profile.js'\n )\n return page\n\n case 'applications':\n import('./pages/application/applications')\n return page\n\n case 'app-bindings':\n import('./pages/app-binding/app-bindings')\n return page\n\n case 'appliance-home':\n import('./pages/appliance/home')\n return page\n\n case 'roles':\n import('./pages/role/role-list-page')\n return page\n\n case 'role-privileges':\n import('./pages/role/role-privilege-page')\n return page\n\n case 'users':\n import('./pages/user/user-list-page')\n return page\n\n case 'invitations':\n import('./pages/invitation/invitations')\n return page\n\n case 'partners':\n import('./pages/partner/partner-management')\n return page\n\n case 'domains':\n import('./pages/domain/domain-management')\n return page\n\n case 'domain-owners':\n import('./pages/domain-owner/domain-owner-management')\n return page\n\n case 'env-vars':\n import('./pages/env-var/env-var-list-page')\n return page\n\n case 'attributes':\n import('./pages/attribute/attribute-set-management.js')\n return page\n\n case 'auth-providers':\n import('./pages/auth-provider/auth-provider-management.js')\n return page\n\n case 'domain-links':\n import('./pages/domain-link/domain-link-management.js')\n return page\n\n case 'access-requests':\n import('./pages/access-request/access-requests.js')\n return page\n\n case 'my-access-requests':\n import('./pages/access-request/my-access-requests.js')\n return page\n }\n}\n"]}