@things-factory/setting-ui 10.1.303 → 10.1.314

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.
@@ -0,0 +1,35 @@
1
+ import '@material/web/button/filled-button.js';
2
+ import '@material/web/button/outlined-button.js';
3
+ import '@material/web/button/text-button.js';
4
+ import '@material/web/switch/switch.js';
5
+ import '@operato/input/ox-input-select-buttons.js';
6
+ import '@things-factory/setting-base';
7
+ import { LitElement } from 'lit';
8
+ import { type DomainSettingEntry } from './domain-setting-entry.js';
9
+ declare const DomainSettingCard_base: (new (...args: any[]) => LitElement) & typeof LitElement;
10
+ /**
11
+ * One card of the domain Settings page (ADR-0224) - the settings a module declared under one card, drawn from their
12
+ * declarations. The card is saved as one: changes wait in the card until 「저장」, and the page asks before leaving
13
+ * while a card holds some. A setting one may only read is shown, not changed; a secret is never shown.
14
+ */
15
+ export declare class DomainSettingCard extends DomainSettingCard_base {
16
+ static styles: import("lit").CSSResult[];
17
+ /** The settings of this card, in their order. */
18
+ entries: DomainSettingEntry[];
19
+ private edits;
20
+ private replacing;
21
+ private saving;
22
+ /** Whether this card holds changes not yet saved. */
23
+ get dirty(): boolean;
24
+ private set;
25
+ private shown;
26
+ render(): import("lit-html").TemplateResult<1>;
27
+ private renderField;
28
+ private renderInput;
29
+ private renderSource;
30
+ private stopReplacing;
31
+ /** Puts the card back as it was saved. */
32
+ cancel(): void;
33
+ private save;
34
+ }
35
+ export {};
@@ -0,0 +1,301 @@
1
+ import { __decorate, __metadata } from "tslib";
2
+ import '@material/web/button/filled-button.js';
3
+ import '@material/web/button/outlined-button.js';
4
+ import '@material/web/button/text-button.js';
5
+ import '@material/web/switch/switch.js';
6
+ import '@operato/input/ox-input-select-buttons.js';
7
+ import '@things-factory/setting-base';
8
+ import gql from 'graphql-tag';
9
+ import { css, html, LitElement, nothing } from 'lit';
10
+ import { customElement, property, state } from 'lit/decorators.js';
11
+ import { MutationController } from '@operato/graphql';
12
+ import { i18next, localize } from '@operato/i18n';
13
+ import { notify } from '@operato/layout';
14
+ import { FormFieldStyles } from '@operato/styles';
15
+ import { ENTRY_FIELDS } from './domain-setting-entry.js';
16
+ /**
17
+ * One card of the domain Settings page (ADR-0224) - the settings a module declared under one card, drawn from their
18
+ * declarations. The card is saved as one: changes wait in the card until 「저장」, and the page asks before leaving
19
+ * while a card holds some. A setting one may only read is shown, not changed; a secret is never shown.
20
+ */
21
+ let DomainSettingCard = class DomainSettingCard extends localize(i18next)(LitElement) {
22
+ constructor() {
23
+ super(...arguments);
24
+ /** The settings of this card, in their order. */
25
+ this.entries = [];
26
+ /* What was changed and not saved: a name to its new text, `null` to clear the domain's own value. */
27
+ this.edits = new Map();
28
+ /* The secrets being replaced - their input shows only after 「변경」. */
29
+ this.replacing = new Set();
30
+ this.saving = new MutationController(this, gql `mutation ($values: [DomainSettingValue!]!) { updateDomainSettings(values: $values) { ${ENTRY_FIELDS} } }`);
31
+ }
32
+ /* The fields take the shared form field styles (@operato/styles FormFieldStyles), as every form and popup does. */
33
+ static { this.styles = [
34
+ FormFieldStyles,
35
+ css `
36
+ :host {
37
+ display: block;
38
+ }
39
+
40
+ /* setting-let capitalizes its slots; a value, an address or a sentence is shown as written. */
41
+ [slot='content'] {
42
+ text-transform: none;
43
+ }
44
+
45
+ .fields {
46
+ display: grid;
47
+ grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
48
+ gap: var(--spacing-large, 12px) var(--spacing-huge, 24px);
49
+ }
50
+
51
+ .field {
52
+ display: flex;
53
+ flex-direction: column;
54
+ gap: var(--spacing-small, 4px);
55
+ min-width: 0;
56
+ }
57
+
58
+ .field.wide {
59
+ grid-column: 1 / -1;
60
+ }
61
+
62
+ label {
63
+ font: var(--label-font);
64
+ color: var(--md-sys-color-on-surface);
65
+ text-transform: none;
66
+ }
67
+
68
+ input,
69
+ textarea {
70
+ width: 100%;
71
+ }
72
+
73
+ textarea {
74
+ resize: vertical;
75
+ }
76
+
77
+ input[inputmode='numeric'] {
78
+ text-align: right;
79
+ }
80
+
81
+ .row {
82
+ display: flex;
83
+ align-items: center;
84
+ gap: var(--spacing-small, 4px);
85
+ }
86
+
87
+ .secret {
88
+ flex: 1;
89
+ min-width: 0;
90
+ font: var(--input-font);
91
+ color: var(--md-sys-color-on-surface-variant);
92
+ }
93
+
94
+ .under {
95
+ display: flex;
96
+ flex-wrap: wrap;
97
+ align-items: center;
98
+ gap: 2px var(--spacing-medium, 8px);
99
+ font-size: var(--ui-t-small, 11.5px);
100
+ line-height: 1.5;
101
+ color: var(--md-sys-color-on-surface-variant);
102
+ }
103
+
104
+
105
+ .over {
106
+ color: var(--md-sys-color-error);
107
+ }
108
+
109
+ .foot {
110
+ display: flex;
111
+ flex-wrap: wrap;
112
+ align-items: center;
113
+ justify-content: flex-end;
114
+ gap: var(--spacing-medium, 8px);
115
+ margin-top: var(--spacing-large, 12px);
116
+ }
117
+
118
+ .changed {
119
+ margin-right: auto;
120
+ font-size: var(--ui-t-small, 11.5px);
121
+ color: var(--md-sys-color-on-surface-variant);
122
+ }
123
+
124
+ .pending {
125
+ font-size: var(--ui-t-small, 11.5px);
126
+ color: var(--md-sys-color-tertiary, var(--md-sys-color-primary));
127
+ }
128
+
129
+ .readonly {
130
+ font-size: var(--ui-t-small, 11.5px);
131
+ color: var(--md-sys-color-on-surface-variant);
132
+ }
133
+ `
134
+ ]; }
135
+ /** Whether this card holds changes not yet saved. */
136
+ get dirty() {
137
+ return this.edits.size > 0;
138
+ }
139
+ set(name, value) {
140
+ const entry = this.entries.find(one => one.name === name);
141
+ const edits = new Map(this.edits);
142
+ const before = entry.type === 'secret' ? null : (entry.source === 'own' ? (entry.value ?? '') : '');
143
+ if (entry.type !== 'secret' && (value ?? '') === before)
144
+ edits.delete(name);
145
+ else
146
+ edits.set(name, value);
147
+ this.edits = edits;
148
+ this.dispatchEvent(new CustomEvent('dirty-change', { bubbles: true, composed: true, detail: { dirty: this.dirty } }));
149
+ }
150
+ shown(entry) {
151
+ if (this.edits.has(entry.name))
152
+ return this.edits.get(entry.name) ?? '';
153
+ /* An amount reads with its thousands separated until it is edited; what is kept is the number alone. */
154
+ if (entry.type === 'money' && entry.value && /^-?\d+$/.test(entry.value))
155
+ return Number(entry.value).toLocaleString();
156
+ return entry.value ?? '';
157
+ }
158
+ render() {
159
+ const editable = this.entries.some(one => one.editable);
160
+ const title = this.entries[0]?.card;
161
+ const latest = [...this.entries].filter(one => one.updatedAt).sort((a, b) => String(b.updatedAt).localeCompare(String(a.updatedAt)))[0];
162
+ return html `<setting-let>
163
+ <span slot="title">${title ? i18next.t(title) : ''}</span>
164
+ <div slot="content">
165
+ <div class="fields">${this.entries.map(entry => this.renderField(entry))}</div>
166
+ <div class="foot">
167
+ ${latest
168
+ ? html `<span class="changed"
169
+ >${latest.updaterName
170
+ ? i18next.t('text.domain-setting-last-change', { name: latest.updaterName, at: new Date(latest.updatedAt).toLocaleString(i18next.language, { dateStyle: 'medium', timeStyle: 'short' }) })
171
+ : i18next.t('text.domain-setting-last-change-at', { at: new Date(latest.updatedAt).toLocaleString(i18next.language, { dateStyle: 'medium', timeStyle: 'short' }) })}</span
172
+ >`
173
+ : nothing}
174
+ ${editable
175
+ ? this.dirty
176
+ ? html `<span class="pending">${i18next.t('text.domain-setting-pending', { count: this.edits.size })}</span>
177
+ <md-text-button ?disabled=${this.saving.pending} @click=${() => this.cancel()}>${i18next.t('button.cancel')}</md-text-button>
178
+ <md-filled-button ?disabled=${this.saving.pending} @click=${() => this.save()}>${i18next.t('button.save')}</md-filled-button>`
179
+ : nothing
180
+ : html `<span class="readonly">${i18next.t('text.domain-setting-read-only')}</span>`}
181
+ </div>
182
+ </div>
183
+ </setting-let>`;
184
+ }
185
+ renderField(entry) {
186
+ const disabled = !entry.editable || this.saving.pending;
187
+ const value = this.shown(entry);
188
+ const id = `f-${entry.name.replace(/[^A-Za-z0-9]/g, '-')}`;
189
+ const length = [...value].length;
190
+ const wide = entry.type === 'text' || entry.type === 'json';
191
+ return html `<div class="field ${wide ? 'wide' : ''}">
192
+ <label for=${id}>${i18next.t(entry.label)}</label>
193
+ ${this.renderInput(entry, id, value, disabled)}
194
+ <div class="under">
195
+ ${this.renderSource(entry)}
196
+ ${entry.maxLength && entry.type !== 'secret'
197
+ ? html `<span class=${length > entry.maxLength ? 'over' : ''}>${i18next.t('text.domain-setting-length', { length, limit: entry.maxLength })}</span>`
198
+ : nothing}
199
+ ${entry.hint ? html `<span>${i18next.t(entry.hint, { limit: entry.maxLength, length })}</span>` : nothing}
200
+ </div>
201
+ </div>`;
202
+ }
203
+ renderInput(entry, id, value, disabled) {
204
+ const input = (e) => this.set(entry.name, e.target.value);
205
+ switch (entry.type) {
206
+ case 'text':
207
+ case 'json':
208
+ return html `<textarea id=${id} rows="4" .value=${value} ?disabled=${disabled} @input=${input}></textarea>`;
209
+ case 'integer':
210
+ case 'money':
211
+ return html `<input id=${id} inputmode="numeric" autocomplete="off" .value=${value} ?disabled=${disabled} @input=${input} />`;
212
+ case 'boolean':
213
+ return html `<md-switch id=${id} ?selected=${value === 'true'} ?disabled=${disabled} @change=${(e) => this.set(entry.name, e.target.selected ? 'true' : 'false')}></md-switch>`;
214
+ case 'choice':
215
+ return html `<ox-input-select-buttons
216
+ id=${id}
217
+ required
218
+ .options=${(entry.choices ?? []).map((one) => ({ value: one.value, display: i18next.t(one.label) }))}
219
+ .value=${value}
220
+ ?disabled=${disabled}
221
+ @change=${(e) => this.set(entry.name, String(e.detail ?? ''))}
222
+ ></ox-input-select-buttons>`;
223
+ case 'secret':
224
+ return this.replacing.has(entry.name)
225
+ ? html `<div class="row">
226
+ <input id=${id} type="password" autocomplete="new-password" .value=${value} ?disabled=${disabled} @input=${input} />
227
+ <md-text-button ?disabled=${disabled} @click=${() => this.stopReplacing(entry)}>${i18next.t('button.cancel')}</md-text-button>
228
+ </div>`
229
+ : html `<div class="row">
230
+ <span class="secret" id=${id}
231
+ >${this.edits.has(entry.name) && this.edits.get(entry.name) === null
232
+ ? i18next.t('text.domain-setting-secret-cleared')
233
+ : entry.secretSet
234
+ ? i18next.t('text.domain-setting-secret-set', { hint: entry.secretHint ? `…${entry.secretHint}` : '' })
235
+ : i18next.t('text.domain-setting-secret-unset')}</span
236
+ >
237
+ ${entry.editable
238
+ ? html `<md-outlined-button ?disabled=${disabled} @click=${() => (this.replacing = new Set([...this.replacing, entry.name]))}
239
+ >${i18next.t('button.domain-setting-replace')}</md-outlined-button
240
+ >
241
+ ${entry.secretSet ? html `<md-text-button ?disabled=${disabled} @click=${() => this.set(entry.name, null)}>${i18next.t('button.domain-setting-clear')}</md-text-button>` : nothing}`
242
+ : nothing}
243
+ </div>`;
244
+ default:
245
+ return html `<input id=${id} autocomplete="off" maxlength=${entry.maxLength ?? 1000} .value=${value} ?disabled=${disabled} @input=${input} />`;
246
+ }
247
+ }
248
+ /* Where the value comes from, when it is not the domain's own - and a way back to the inherited one. */
249
+ renderSource(entry) {
250
+ if (this.edits.has(entry.name))
251
+ return nothing;
252
+ if (entry.source === 'inherited')
253
+ return html `<span>${i18next.t('text.domain-setting-inherited')}</span>`;
254
+ if (entry.source === 'fallback')
255
+ return html `<span>${i18next.t('text.domain-setting-fallback')}</span>`;
256
+ return nothing;
257
+ }
258
+ stopReplacing(entry) {
259
+ const replacing = new Set(this.replacing);
260
+ replacing.delete(entry.name);
261
+ this.replacing = replacing;
262
+ const edits = new Map(this.edits);
263
+ edits.delete(entry.name);
264
+ this.edits = edits;
265
+ this.dispatchEvent(new CustomEvent('dirty-change', { bubbles: true, composed: true, detail: { dirty: this.dirty } }));
266
+ }
267
+ /** Puts the card back as it was saved. */
268
+ cancel() {
269
+ this.edits = new Map();
270
+ this.replacing = new Set();
271
+ this.dispatchEvent(new CustomEvent('dirty-change', { bubbles: true, composed: true, detail: { dirty: false } }));
272
+ }
273
+ async save() {
274
+ const values = [...this.edits].map(([name, value]) => ({ name, value: value === null || value.trim() === '' ? null : value }));
275
+ const saved = await this.saving.run({ values });
276
+ if (!saved)
277
+ return;
278
+ this.edits = new Map();
279
+ this.replacing = new Set();
280
+ notify({ level: 'info', message: i18next.t('text.saved') });
281
+ this.dispatchEvent(new CustomEvent('dirty-change', { bubbles: true, composed: true, detail: { dirty: false } }));
282
+ this.dispatchEvent(new CustomEvent('domain-settings-saved', { bubbles: true, composed: true, detail: saved.updateDomainSettings }));
283
+ }
284
+ };
285
+ __decorate([
286
+ property({ attribute: false }),
287
+ __metadata("design:type", Array)
288
+ ], DomainSettingCard.prototype, "entries", void 0);
289
+ __decorate([
290
+ state(),
291
+ __metadata("design:type", Object)
292
+ ], DomainSettingCard.prototype, "edits", void 0);
293
+ __decorate([
294
+ state(),
295
+ __metadata("design:type", Object)
296
+ ], DomainSettingCard.prototype, "replacing", void 0);
297
+ DomainSettingCard = __decorate([
298
+ customElement('domain-setting-card')
299
+ ], DomainSettingCard);
300
+ export { DomainSettingCard };
301
+ //# sourceMappingURL=domain-setting-card.js.map
@@ -0,0 +1,31 @@
1
+ /** A domain setting as the page reads it (setting-base `DomainSettingEntry`, ADR-0224). */
2
+ export interface DomainSettingEntry {
3
+ name: string;
4
+ module: string;
5
+ type: 'string' | 'text' | 'integer' | 'money' | 'boolean' | 'choice' | 'json' | 'secret';
6
+ level: 'domain' | 'work';
7
+ section: 'company' | 'connection' | 'security' | 'work';
8
+ card: string;
9
+ label: string;
10
+ hint?: string;
11
+ order?: number;
12
+ maxLength?: number;
13
+ min?: number;
14
+ max?: number;
15
+ choices?: {
16
+ value: string;
17
+ label: string;
18
+ }[];
19
+ screen?: string;
20
+ value?: string;
21
+ source: 'own' | 'inherited' | 'fallback' | 'none';
22
+ secretSet: boolean;
23
+ secretHint?: string;
24
+ editable: boolean;
25
+ writeCategory?: string;
26
+ updatedAt?: string;
27
+ updaterName?: string;
28
+ }
29
+ export declare const ENTRY_FIELDS = "name module type level section card label hint order maxLength min max choices screen value source secretSet secretHint editable writeCategory updatedAt updaterName";
30
+ /** The page's groups, in order. */
31
+ export declare const SECTIONS: readonly ["company", "connection", "security", "work"];
@@ -0,0 +1,4 @@
1
+ export const ENTRY_FIELDS = `name module type level section card label hint order maxLength min max choices screen value source secretSet secretHint editable writeCategory updatedAt updaterName`;
2
+ /** The page's groups, in order. */
3
+ export const SECTIONS = ['company', 'connection', 'security', 'work'];
4
+ //# sourceMappingURL=domain-setting-entry.js.map
@@ -0,0 +1,9 @@
1
+ /** Whether this person may open the domain Settings page's declared settings. */
2
+ export declare const mayReadDomainSettings: () => Promise<any>;
3
+ /**
4
+ * The domain Settings page in the management menu (ADR-0224 decision 3), for an app whose domain cards have no menu entry
5
+ * of their own - the cards a module draws itself (`scope: 'tenant'`) are on that page now, not on the personal one.
6
+ * Shown to whoever may read the declared settings or keep the domain's settings; an app that places the page in a menu
7
+ * group of its own (Office: 기준정보) does not call this.
8
+ */
9
+ export declare function addDomainSettingMenu(): Promise<void>;
@@ -0,0 +1,26 @@
1
+ import { html } from 'lit';
2
+ import { store } from '@operato/shell';
3
+ import { hasPrivilege } from '@things-factory/auth-base/dist-client';
4
+ import { ADD_MORENDA } from '@things-factory/more-base/client/index.js';
5
+ /** Whether this person may open the domain Settings page's declared settings. */
6
+ export const mayReadDomainSettings = () => hasPrivilege({ category: 'domain-setting', privilege: 'query', domainOwnerGranted: true });
7
+ /**
8
+ * The domain Settings page in the management menu (ADR-0224 decision 3), for an app whose domain cards have no menu entry
9
+ * of their own - the cards a module draws itself (`scope: 'tenant'`) are on that page now, not on the personal one.
10
+ * Shown to whoever may read the declared settings or keep the domain's settings; an app that places the page in a menu
11
+ * group of its own (Office: 기준정보) does not call this.
12
+ */
13
+ export async function addDomainSettingMenu() {
14
+ const may = (await mayReadDomainSettings()) || (await hasPrivilege({ category: 'setting', privilege: 'mutation', domainOwnerGranted: true }));
15
+ if (!may)
16
+ return;
17
+ store.dispatch({
18
+ type: ADD_MORENDA,
19
+ morenda: {
20
+ icon: html `<md-icon>tune</md-icon>`,
21
+ name: html `<ox-i18n msgid="title.domain-setting"></ox-i18n>`,
22
+ page: 'domain-settings'
23
+ }
24
+ });
25
+ }
26
+ //# sourceMappingURL=domain-setting-menu.js.map
@@ -1,6 +1,9 @@
1
1
  export * from './fetch-setting-value';
2
2
  export { SettingPage } from './pages/setting';
3
3
  export { SettingList } from './pages/setting-list';
4
+ export { DomainSettingPage } from './pages/domain-setting-page';
5
+ export * from './domain-settings/domain-setting-entry';
6
+ export * from './domain-settings/domain-setting-menu';
4
7
  export * from './setting-lets/domain-switch-let';
5
8
  export * from './setting-lets/secure-iplist-setting-let';
6
9
  export * from './setting-lets/theme-mode-setting-let';
@@ -1,6 +1,9 @@
1
1
  export * from './fetch-setting-value';
2
2
  export { SettingPage } from './pages/setting';
3
3
  export { SettingList } from './pages/setting-list';
4
+ export { DomainSettingPage } from './pages/domain-setting-page';
5
+ export * from './domain-settings/domain-setting-entry';
6
+ export * from './domain-settings/domain-setting-menu';
4
7
  export * from './setting-lets/domain-switch-let';
5
8
  export * from './setting-lets/secure-iplist-setting-let';
6
9
  export * from './setting-lets/theme-mode-setting-let';
@@ -0,0 +1,43 @@
1
+ import '@operato/input/ox-input-select-buttons.js';
2
+ import '../domain-settings/domain-setting-card.js';
3
+ import { PageView } from '@operato/shell';
4
+ declare const DomainSettingPage_base: (new (...args: any[]) => import("lit").LitElement) & typeof PageView;
5
+ /**
6
+ * **The domain Settings page** (ADR-0224 decision 3) - the domain's settings apart from the person's own. Each card is saved
7
+ * as one.
8
+ * The groups are pills above the cards, as a list screen narrows its rows; the search is the title bar's. Cards come from two places: the settings the modules declared, drawn here from their declarations, and the cards a
9
+ * module draws itself for what a form cannot say (the company's seal, the AI agents). A person sees only the settings
10
+ * they may see, and changes only those they may change.
11
+ */
12
+ export declare class DomainSettingPage extends DomainSettingPage_base {
13
+ static styles: import("lit").CSSResult[];
14
+ private search;
15
+ private section;
16
+ private ownCards;
17
+ private dirtyCards;
18
+ private mayRead;
19
+ private entries;
20
+ private unsubscribe?;
21
+ connectedCallback(): void;
22
+ disconnectedCallback(): void;
23
+ private applyState;
24
+ get context(): {
25
+ title: string;
26
+ frame: string;
27
+ search: {
28
+ handler: (search: string) => string;
29
+ value: string;
30
+ placeholder: string;
31
+ };
32
+ };
33
+ get addressDirty(): boolean;
34
+ private words;
35
+ private found;
36
+ /** The declared settings of a section, by card, in order - narrowed by the search. */
37
+ private cardsOf;
38
+ /** The cards modules drew themselves, in a section - a card that names no words is left out while searching. */
39
+ private ownCardsOf;
40
+ render(): import("lit-html").TemplateResult<1>;
41
+ private dirtyChanged;
42
+ }
43
+ export {};
@@ -0,0 +1,188 @@
1
+ import { __decorate, __metadata } from "tslib";
2
+ import '@operato/input/ox-input-select-buttons.js';
3
+ import '../domain-settings/domain-setting-card.js';
4
+ import gql from 'graphql-tag';
5
+ import { css, html, nothing } from 'lit';
6
+ import { customElement, state } from 'lit/decorators.js';
7
+ import { QueryController } from '@operato/graphql';
8
+ import { i18next, localize } from '@operato/i18n';
9
+ import { PageView, store } from '@operato/shell';
10
+ import { DocumentPageStyles } from '@operato/styles';
11
+ import { ENTRY_FIELDS, SECTIONS } from '../domain-settings/domain-setting-entry.js';
12
+ import { mayReadDomainSettings } from '../domain-settings/domain-setting-menu.js';
13
+ /**
14
+ * **The domain Settings page** (ADR-0224 decision 3) - the domain's settings apart from the person's own. Each card is saved
15
+ * as one.
16
+ * The groups are pills above the cards, as a list screen narrows its rows; the search is the title bar's. Cards come from two places: the settings the modules declared, drawn here from their declarations, and the cards a
17
+ * module draws itself for what a form cannot say (the company's seal, the AI agents). A person sees only the settings
18
+ * they may see, and changes only those they may change.
19
+ */
20
+ let DomainSettingPage = class DomainSettingPage extends localize(i18next)(PageView) {
21
+ constructor() {
22
+ super(...arguments);
23
+ this.search = '';
24
+ /* The group the pills narrow to - empty: every group. */
25
+ this.section = '';
26
+ this.ownCards = [];
27
+ /* The cards holding changes not yet saved - the page asks before leaving while there are any. */
28
+ this.dirtyCards = new Set();
29
+ /* The declared settings are asked only by whoever may read them; anyone else sees the cards their modules draw. */
30
+ this.mayRead = false;
31
+ this.entries = new QueryController(this, gql `query { domainSettings { ${ENTRY_FIELDS} } }`, { variables: () => (this.active && this.mayRead ? {} : undefined) });
32
+ }
33
+ static { this.styles = [
34
+ DocumentPageStyles,
35
+ css `
36
+ :host {
37
+ --setting-let-margin: 0;
38
+ }
39
+
40
+ /* The groups as pills above the cards - as a list screen narrows its rows. */
41
+ .filters {
42
+ display: flex;
43
+ flex-wrap: wrap;
44
+ align-items: center;
45
+ gap: var(--spacing-medium, 8px) var(--spacing-large, 12px);
46
+ }
47
+
48
+ .sections {
49
+ display: flex;
50
+ flex-direction: column;
51
+ gap: var(--spacing-huge, 24px);
52
+ min-width: 0;
53
+ }
54
+
55
+ section {
56
+ display: flex;
57
+ flex-direction: column;
58
+ gap: var(--spacing-large, 12px);
59
+ }
60
+
61
+ section h3 {
62
+ margin: 0;
63
+ font-size: var(--ui-t-title, 15px);
64
+ font-weight: 600;
65
+ color: var(--ui-ink, var(--md-sys-color-on-surface));
66
+ }
67
+
68
+ .empty,
69
+ .note {
70
+ margin: 0;
71
+ color: var(--md-sys-color-on-surface-variant);
72
+ }
73
+ `
74
+ ]; }
75
+ connectedCallback() {
76
+ super.connectedCallback();
77
+ void mayReadDomainSettings().then(may => (this.mayRead = may), () => { });
78
+ this.applyState();
79
+ this.unsubscribe = store.subscribe(() => this.applyState());
80
+ }
81
+ disconnectedCallback() {
82
+ super.disconnectedCallback();
83
+ this.unsubscribe?.();
84
+ }
85
+ applyState() {
86
+ this.ownCards = (store.getState().setting?.settings ?? []).filter((one) => one?.scope === 'tenant');
87
+ }
88
+ /* The search is the title bar's pill, as on every list screen (ox-page-title-bar reads `context.search`). */
89
+ get context() {
90
+ return {
91
+ title: i18next.t('title.domain-setting'),
92
+ frame: 'document',
93
+ search: { handler: (search) => (this.search = search), value: this.search, placeholder: i18next.t('text.domain-setting-search') }
94
+ };
95
+ }
96
+ get addressDirty() {
97
+ return super.addressDirty || this.dirtyCards.size > 0;
98
+ }
99
+ words(entry) {
100
+ return [entry.card, entry.label, entry.hint].filter(Boolean).map(key => i18next.t(key));
101
+ }
102
+ found(words) {
103
+ const asked = this.search.trim().toLowerCase();
104
+ return !asked || words.some(word => word.toLowerCase().includes(asked));
105
+ }
106
+ /** The declared settings of a section, by card, in order - narrowed by the search. */
107
+ cardsOf(section) {
108
+ const all = this.entries.data?.domainSettings ?? [];
109
+ const cards = new Map();
110
+ for (const entry of all.filter(one => one.section === section)) {
111
+ const card = cards.get(entry.card) ?? [];
112
+ card.push(entry);
113
+ cards.set(entry.card, card);
114
+ }
115
+ return [...cards.values()]
116
+ .filter(card => this.found(card.flatMap(entry => this.words(entry))))
117
+ .map(card => card.sort((a, b) => (a.order ?? 0) - (b.order ?? 0)));
118
+ }
119
+ /** The cards modules drew themselves, in a section - a card that names no words is left out while searching. */
120
+ ownCardsOf(section) {
121
+ return this.ownCards
122
+ .filter(one => (one.section ?? 'company') === section)
123
+ .filter(one => !this.search.trim() || this.found([one.title, ...(one.keywords ?? [])].filter(Boolean).map(key => i18next.t(key))))
124
+ .sort((a, b) => (a.seq ?? 0) - (b.seq ?? 0));
125
+ }
126
+ render() {
127
+ const counts = new Map(SECTIONS.map(section => [section, this.cardsOf(section).flat().length + this.ownCardsOf(section).length]));
128
+ const shown = SECTIONS.filter(section => counts.get(section) > 0 && (!this.section || this.section === section));
129
+ return html `<div class="page">
130
+ <div class="filters">
131
+ <ox-input-select-buttons
132
+ .options=${SECTIONS.filter(section => counts.get(section) > 0).map(section => ({ value: section, display: i18next.t(`label.domain-setting-section-${section}`), count: counts.get(section) }))}
133
+ .value=${this.section}
134
+ all-label=${i18next.t('label.all')}
135
+ @change=${(e) => (this.section = (e.detail ?? ''))}
136
+ ></ox-input-select-buttons>
137
+ </div>
138
+ <div class="sections" @dirty-change=${this.dirtyChanged} @domain-settings-saved=${() => this.entries.refetch()}>
139
+ ${this.entries.error ? html `<p class="note">${i18next.t('text.domain-setting-read-failed')}</p>` : nothing}
140
+ ${shown.length
141
+ ? shown.map(section => html `<section>
142
+ <h3>${i18next.t(`label.domain-setting-section-${section}`)}</h3>
143
+ ${this.cardsOf(section).map(card => html `<domain-setting-card data-card=${card[0].card} .entries=${card}></domain-setting-card>`)}
144
+ ${this.ownCardsOf(section).map(one => one.template)}
145
+ </section>`)
146
+ : this.entries.loading
147
+ ? nothing
148
+ : html `<p class="empty">${i18next.t(this.search.trim() ? 'text.domain-setting-no-match' : 'text.domain-setting-none')}</p>`}
149
+ </div>
150
+ </div>`;
151
+ }
152
+ dirtyChanged(e) {
153
+ const card = e.composedPath()[0]?.dataset?.card;
154
+ if (!card)
155
+ return;
156
+ const dirty = new Set(this.dirtyCards);
157
+ if (e.detail?.dirty)
158
+ dirty.add(card);
159
+ else
160
+ dirty.delete(card);
161
+ this.dirtyCards = dirty;
162
+ }
163
+ };
164
+ __decorate([
165
+ state(),
166
+ __metadata("design:type", Object)
167
+ ], DomainSettingPage.prototype, "search", void 0);
168
+ __decorate([
169
+ state(),
170
+ __metadata("design:type", String)
171
+ ], DomainSettingPage.prototype, "section", void 0);
172
+ __decorate([
173
+ state(),
174
+ __metadata("design:type", Array)
175
+ ], DomainSettingPage.prototype, "ownCards", void 0);
176
+ __decorate([
177
+ state(),
178
+ __metadata("design:type", Object)
179
+ ], DomainSettingPage.prototype, "dirtyCards", void 0);
180
+ __decorate([
181
+ state(),
182
+ __metadata("design:type", Object)
183
+ ], DomainSettingPage.prototype, "mayRead", void 0);
184
+ DomainSettingPage = __decorate([
185
+ customElement('domain-setting-page')
186
+ ], DomainSettingPage);
187
+ export { DomainSettingPage };
188
+ //# sourceMappingURL=domain-setting-page.js.map
@@ -2,6 +2,7 @@ import '@operato/data-grist/ox-grist.js';
2
2
  import '@operato/data-grist/ox-filters-form.js';
3
3
  import '@operato/data-grist/ox-sorters-control.js';
4
4
  import '@operato/data-grist/ox-record-creator.js';
5
+ import '@things-factory/ai-assistant/dist-client/index.js';
5
6
  import { PageView } from '@operato/shell';
6
7
  declare const SettingList_base: (new (...args: any[]) => import("lit").LitElement) & typeof PageView;
7
8
  export declare class SettingList extends SettingList_base {
@@ -3,6 +3,7 @@ import '@operato/data-grist/ox-grist.js';
3
3
  import '@operato/data-grist/ox-filters-form.js';
4
4
  import '@operato/data-grist/ox-sorters-control.js';
5
5
  import '@operato/data-grist/ox-record-creator.js';
6
+ import '@things-factory/ai-assistant/dist-client/index.js';
6
7
  import { getEditor, getRenderer } from '@operato/data-grist';
7
8
  import { i18next, localize } from '@operato/i18n';
8
9
  import { PageView, store } from '@operato/shell';
@@ -40,6 +41,14 @@ let SettingList = class SettingList extends localize(i18next)(PageView) {
40
41
  .config=${this.config}
41
42
  .fetchHandler=${this.fetchHandler.bind(this)}
42
43
  >
44
+ <!-- What is done to the picked rows: over the column heads while rows are picked (ADR-0225). -->
45
+ <ox-assistant-selection-bar
46
+ slot="selection"
47
+ .gridOf=${() => this.dataGrist}
48
+ name=${i18next.t('title.setting')}
49
+ .assistant=${false}
50
+ .actions=${[{ id: 'delete', title: i18next.t('button.delete'), icon: 'delete_outline', emphasis: { danger: true }, action: () => this._deleteSettings() }]}
51
+ ></ox-assistant-selection-bar>
43
52
  <div slot="headroom" class="header">
44
53
  <div class="filters">
45
54
  <ox-filters-form without-search></ox-filters-form>
@@ -68,11 +77,6 @@ let SettingList = class SettingList extends localize(i18next)(PageView) {
68
77
  title: i18next.t('button.save'),
69
78
  action: this._saveSettings.bind(this),
70
79
  ...CommonButtonStyles.save
71
- },
72
- {
73
- title: i18next.t('button.delete'),
74
- action: this._deleteSettings.bind(this),
75
- ...CommonButtonStyles.delete
76
80
  }
77
81
  ],
78
82
  exportable: {
@@ -3,31 +3,11 @@ declare const SettingPage_base: (new (...args: any[]) => import("lit").LitElemen
3
3
  export declare class SettingPage extends SettingPage_base {
4
4
  static styles: import("lit").CSSResult[];
5
5
  private _settings;
6
- private _tab;
7
6
  /**
8
- * 설정은 둘로 갈린다 — **내 것과 이 테넌트의 것.**
9
- *
10
- * 주소가 `/domain/<이곳>/setting` 인데 안에 있던 것은 전부 그 사람 브라우저 취향(테마 · 알림 ·
11
- * MDI · 메뉴)이었다. 테넌트 단위로 정하는 것이 들어오면 둘이 섞여서, 사람은 자기 취향을 고치는
12
- * 줄 알고 그 테넌트 전체를 바꾼다.
13
- *
14
- * ⚠ **이 화면은 모든 앱이 쓴다** — plant · twin · warehouse · figure.
15
- *
16
- * ── 부르는 말은 앱이 바꾼다 ────────────────────────────────────────────
17
- * 기본은 **사업장**이다. 「도메인」은 보통 사람에게 웹 주소이고 「테넌트」는 업계 말이라 현장에서
18
- * 안 읽힌다. 사용자가 겪는 것은 로그인해서 자기 회사·현장을 고르는 일이다.
19
- *
20
- * ⚠ **키는 뜻이고 값은 그 앱의 말이다.** 번역이 한 평면에 병합되고 마지막이 이기므로, 앱이
21
- * `label.tenant-setting` 을 자기 번역에 적으면 그 말로 뜬다 — plant 는 「공장」, warehouse 는
22
- * 「창고」로 둘 수 있다. 그래서 **기본값은 앱을 안 가리는 말**이어야 한다.
23
- *
24
- * ⚠ 로그인 화면은 아직 같은 것을 「도메인 선택」이라 부른다. 한 가지를 두 이름으로 부르는
25
- * 것이라 언젠가 맞춰야 한다(2026-09-22).
26
- *
27
- * 등록하는 쪽이 `scope: 'tenant'` 라고 말하지 않으면 개인 것으로 본다 — 지금까지 붙은 것들이
28
- * 그래서 그대로 돈다.
7
+ * The person's own settings - theme, notifications, whether the menu hides (ADR-0224 decision 3). The domain's settings
8
+ * are their own page (`domain-settings`, setting-ui's `domain-setting-page`): a card registered with `scope: 'tenant'`
9
+ * is drawn there, not here.
29
10
  */
30
- private scopeOf;
31
11
  render(): import("lit-html").TemplateResult<1>;
32
12
  private _unsubscribe?;
33
13
  connectedCallback(): void;
@@ -8,7 +8,6 @@ let SettingPage = class SettingPage extends localize(i18next)(PageView) {
8
8
  constructor() {
9
9
  super(...arguments);
10
10
  this._settings = [];
11
- this._tab = 'personal';
12
11
  }
13
12
  static { this.styles = [
14
13
  DocumentPageStyles,
@@ -24,87 +23,16 @@ let SettingPage = class SettingPage extends localize(i18next)(PageView) {
24
23
  --setting-let-margin: 0;
25
24
  }
26
25
 
27
- /*
28
- * 탭은 page 안에 둔다. 밖에 두면 page 의 max-width 와 좌우 여백을 안 받아서 카드들과
29
- * 기준선이 어긋난다 — 처음에 그렇게 만들었다.
30
- *
31
- * ── 모양은 밑줄이다 ─────────────────────────────────────────────────
32
- * 이 제품의 탭은 대부분 밑줄이다 — board-ui 의 board-info, figure-ui 의 figure-side,
33
- * ai-assistant 의 세션 탭. 알약으로 채우는 것은 성숙도 화면 하나뿐이고, 그것은 점수를 단
34
- * 필터 조각이라 성격이 다르다.
35
- *
36
- * 고른 것은 on-surface 글자에 primary 밑줄, 안 고른 것은 on-surface-variant 에 투명 밑줄이다.
37
- * 자리가 안 흔들리게 안 고른 쪽도 같은 두께의 투명 선을 든다.
38
- */
39
- .tabs {
40
- display: flex;
41
- gap: var(--spacing-large, 16px);
42
- }
43
-
44
- .tabs button {
45
- padding: var(--spacing-small, 4px) 0;
46
- border: none;
47
- border-bottom: 2px solid transparent;
48
- background: none;
49
- color: var(--md-sys-color-on-surface-variant);
50
- font: inherit;
51
- cursor: pointer;
52
- }
53
-
54
- .tabs button.on {
55
- color: var(--md-sys-color-on-surface);
56
- border-bottom-color: var(--md-sys-color-primary);
57
- }
58
26
  `
59
27
  ]; }
60
28
  /**
61
- * 설정은 둘로 갈린다 — **내 것과 이 테넌트의 것.**
62
- *
63
- * 주소가 `/domain/<이곳>/setting` 인데 안에 있던 것은 전부 그 사람 브라우저 취향(테마 · 알림 ·
64
- * MDI · 메뉴)이었다. 테넌트 단위로 정하는 것이 들어오면 둘이 섞여서, 사람은 자기 취향을 고치는
65
- * 줄 알고 그 테넌트 전체를 바꾼다.
66
- *
67
- * ⚠ **이 화면은 모든 앱이 쓴다** — plant · twin · warehouse · figure.
68
- *
69
- * ── 부르는 말은 앱이 바꾼다 ────────────────────────────────────────────
70
- * 기본은 **사업장**이다. 「도메인」은 보통 사람에게 웹 주소이고 「테넌트」는 업계 말이라 현장에서
71
- * 안 읽힌다. 사용자가 겪는 것은 로그인해서 자기 회사·현장을 고르는 일이다.
72
- *
73
- * ⚠ **키는 뜻이고 값은 그 앱의 말이다.** 번역이 한 평면에 병합되고 마지막이 이기므로, 앱이
74
- * `label.tenant-setting` 을 자기 번역에 적으면 그 말로 뜬다 — plant 는 「공장」, warehouse 는
75
- * 「창고」로 둘 수 있다. 그래서 **기본값은 앱을 안 가리는 말**이어야 한다.
76
- *
77
- * ⚠ 로그인 화면은 아직 같은 것을 「도메인 선택」이라 부른다. 한 가지를 두 이름으로 부르는
78
- * 것이라 언젠가 맞춰야 한다(2026-09-22).
79
- *
80
- * 등록하는 쪽이 `scope: 'tenant'` 라고 말하지 않으면 개인 것으로 본다 — 지금까지 붙은 것들이
81
- * 그래서 그대로 돈다.
29
+ * The person's own settings - theme, notifications, whether the menu hides (ADR-0224 decision 3). The domain's settings
30
+ * are their own page (`domain-settings`, setting-ui's `domain-setting-page`): a card registered with `scope: 'tenant'`
31
+ * is drawn there, not here.
82
32
  */
83
- scopeOf(setting) {
84
- return setting?.scope === 'tenant' ? 'tenant' : 'personal';
85
- }
86
33
  render() {
87
- const sorted = [...this._settings].sort((a, b) => a.seq - b.seq);
88
- const personal = sorted.filter(one => this.scopeOf(one) === 'personal');
89
- const forTenant = sorted.filter(one => this.scopeOf(one) === 'tenant');
90
- /* 테넌트 설정이 하나도 없으면 탭을 안 만든다 — 탭 하나짜리 탭줄은 자리만 먹는다. */
91
- if (!forTenant.length) {
92
- return html `<div class="page">${personal.map(one => html `${one.template}`)}</div>`;
93
- }
94
- const showing = this._tab === 'tenant' ? forTenant : personal;
95
- return html `
96
- <div class="page">
97
- <div class="tabs">
98
- <button class=${this._tab === 'personal' ? 'on' : ''} @click=${() => (this._tab = 'personal')}>
99
- ${i18next.t('label.personal-setting')}
100
- </button>
101
- <button class=${this._tab === 'tenant' ? 'on' : ''} @click=${() => (this._tab = 'tenant')}>
102
- ${i18next.t('label.tenant-setting')}
103
- </button>
104
- </div>
105
- ${showing.map(one => html `${one.template}`)}
106
- </div>
107
- `;
34
+ const personal = [...this._settings].filter(one => one?.scope !== 'tenant').sort((a, b) => a.seq - b.seq);
35
+ return html `<div class="page">${personal.map(one => html `${one.template}`)}</div>`;
108
36
  }
109
37
  connectedCallback() {
110
38
  super.connectedCallback();
@@ -134,10 +62,6 @@ __decorate([
134
62
  state(),
135
63
  __metadata("design:type", Array)
136
64
  ], SettingPage.prototype, "_settings", void 0);
137
- __decorate([
138
- state(),
139
- __metadata("design:type", String)
140
- ], SettingPage.prototype, "_tab", void 0);
141
65
  SettingPage = __decorate([
142
66
  customElement('setting-page')
143
67
  ], SettingPage);
@@ -3,6 +3,9 @@ export default function route(page) {
3
3
  case 'setting':
4
4
  import('./pages/setting');
5
5
  return page;
6
+ case 'domain-settings':
7
+ import('./pages/domain-setting-page');
8
+ return page;
6
9
  case 'settings':
7
10
  import('./pages/setting-list');
8
11
  return page;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/setting-ui",
3
- "version": "10.1.303",
3
+ "version": "10.1.314",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "dist-client/index.js",
6
6
  "files": [
@@ -51,13 +51,15 @@
51
51
  "@operato/shell": "^10.29.69",
52
52
  "@operato/styles": "^10.0.0",
53
53
  "@operato/utils": "^10.0.0",
54
- "@things-factory/apptool-base": "^10.1.303",
54
+ "@things-factory/ai-assistant": "^10.1.314",
55
+ "@things-factory/apptool-base": "^10.1.304",
56
+ "@things-factory/auth-base": "^10.1.314",
55
57
  "@things-factory/form-ui": "^10.1.281",
56
- "@things-factory/i18n-base": "^10.1.303",
57
- "@things-factory/more-base": "^10.1.303",
58
- "@things-factory/setting-base": "^10.1.303",
58
+ "@things-factory/i18n-base": "^10.1.314",
59
+ "@things-factory/more-base": "^10.1.304",
60
+ "@things-factory/setting-base": "^10.1.314",
59
61
  "@things-factory/styles": "^10.1.281",
60
62
  "@things-factory/utils": "^10.1.281"
61
63
  },
62
- "gitHead": "2d5888ebfc0a004b000a4aa3dfb8ff9561e75ff9"
64
+ "gitHead": "8d74df0a0618131ff17309638a6aa0affbd4c77d"
63
65
  }
@@ -12,6 +12,10 @@ export default {
12
12
  {
13
13
  tagname: 'setting-list',
14
14
  page: 'settings'
15
+ },
16
+ {
17
+ tagname: 'domain-setting-page',
18
+ page: 'domain-settings'
15
19
  }
16
20
  ]
17
21
  }
@@ -15,5 +15,26 @@
15
15
  "label.theme-mode-dark": "dark",
16
16
  "label.theme-mode-light": "light",
17
17
  "label.theme-mode-auto": "follow the device",
18
- "label.check-all": "check all"
18
+ "label.check-all": "check all",
19
+ "title.domain-setting": "$t(term.domain) settings",
20
+ "label.domain-setting-section-company": "Company",
21
+ "label.domain-setting-section-connection": "Connections",
22
+ "label.domain-setting-section-security": "Security",
23
+ "label.domain-setting-section-work": "Work defaults",
24
+ "text.domain-setting-search": "Search settings",
25
+ "text.domain-setting-length": "{length}/{limit} characters",
26
+ "text.domain-setting-inherited": "Using the parent $t(term.domain)'s value",
27
+ "text.domain-setting-fallback": "Using the default",
28
+ "text.domain-setting-secret-set": "Set {hint}",
29
+ "text.domain-setting-secret-unset": "Not set",
30
+ "text.domain-setting-secret-cleared": "Cleared when saved",
31
+ "button.domain-setting-replace": "Change",
32
+ "button.domain-setting-clear": "Clear",
33
+ "text.domain-setting-pending": "{count} unsaved changes",
34
+ "text.domain-setting-read-only": "View only. You may not change the settings of this card.",
35
+ "text.domain-setting-last-change": "Last changed: {name} · {at}",
36
+ "text.domain-setting-none": "There are no $t(term.domain) settings you may see.",
37
+ "text.domain-setting-no-match": "No setting matches the search.",
38
+ "text.domain-setting-read-failed": "The settings could not be loaded.",
39
+ "text.domain-setting-last-change-at": "Last changed: {at}"
19
40
  }
@@ -15,5 +15,26 @@
15
15
  "label.theme-mode-dark": "oscuro",
16
16
  "label.theme-mode-light": "claro",
17
17
  "label.theme-mode-auto": "según el dispositivo",
18
- "label.check-all": "marcar todo"
18
+ "label.check-all": "marcar todo",
19
+ "title.domain-setting": "Configuración de $t(term.domain)",
20
+ "label.domain-setting-section-company": "Empresa",
21
+ "label.domain-setting-section-connection": "Conexiones",
22
+ "label.domain-setting-section-security": "Seguridad",
23
+ "label.domain-setting-section-work": "Valores de trabajo",
24
+ "text.domain-setting-search": "Buscar configuración",
25
+ "text.domain-setting-length": "{length}/{limit} caracteres",
26
+ "text.domain-setting-inherited": "Usa el valor de $t(term.domain) superior",
27
+ "text.domain-setting-fallback": "Usa el valor predeterminado",
28
+ "text.domain-setting-secret-set": "Registrado {hint}",
29
+ "text.domain-setting-secret-unset": "No registrado",
30
+ "text.domain-setting-secret-cleared": "Se borrará al guardar",
31
+ "button.domain-setting-replace": "Cambiar",
32
+ "button.domain-setting-clear": "Borrar",
33
+ "text.domain-setting-pending": "{count} cambios sin guardar",
34
+ "text.domain-setting-read-only": "Solo lectura. No tiene permiso para cambiar la configuración de esta tarjeta.",
35
+ "text.domain-setting-last-change": "Último cambio: {name} · {at}",
36
+ "text.domain-setting-none": "No hay configuración de $t(term.domain) que pueda ver.",
37
+ "text.domain-setting-no-match": "Ninguna configuración coincide con la búsqueda.",
38
+ "text.domain-setting-read-failed": "No se pudo cargar la configuración.",
39
+ "text.domain-setting-last-change-at": "Último cambio: {at}"
19
40
  }
@@ -15,5 +15,26 @@
15
15
  "label.theme-mode-dark": "ダーク",
16
16
  "label.theme-mode-light": "ライト",
17
17
  "label.theme-mode-auto": "端末の設定に合わせる",
18
- "label.check-all": "すべて選択"
18
+ "label.check-all": "すべて選択",
19
+ "title.domain-setting": "$t(term.domain)設定",
20
+ "label.domain-setting-section-company": "会社",
21
+ "label.domain-setting-section-connection": "連携",
22
+ "label.domain-setting-section-security": "セキュリティ",
23
+ "label.domain-setting-section-work": "業務の既定値",
24
+ "text.domain-setting-search": "設定を検索",
25
+ "text.domain-setting-length": "{length}/{limit}文字",
26
+ "text.domain-setting-inherited": "上位$t(term.domain)の値を使用中",
27
+ "text.domain-setting-fallback": "既定値を使用中",
28
+ "text.domain-setting-secret-set": "登録済み {hint}",
29
+ "text.domain-setting-secret-unset": "未登録",
30
+ "text.domain-setting-secret-cleared": "保存すると削除されます",
31
+ "button.domain-setting-replace": "変更",
32
+ "button.domain-setting-clear": "削除",
33
+ "text.domain-setting-pending": "未保存の変更 {count}件",
34
+ "text.domain-setting-read-only": "表示のみ可能です。このカードの設定を変更する権限がありません。",
35
+ "text.domain-setting-last-change": "最終変更: {name} · {at}",
36
+ "text.domain-setting-none": "表示できる$t(term.domain)設定がありません。",
37
+ "text.domain-setting-no-match": "検索に一致する設定がありません。",
38
+ "text.domain-setting-read-failed": "設定を読み込めませんでした。",
39
+ "text.domain-setting-last-change-at": "最終変更: {at}"
19
40
  }
@@ -15,5 +15,26 @@
15
15
  "label.theme-mode-dark": "어둡게",
16
16
  "label.theme-mode-light": "밝게",
17
17
  "label.theme-mode-auto": "기기 설정 따르기",
18
- "label.check-all": "모두 선택"
18
+ "label.check-all": "모두 선택",
19
+ "title.domain-setting": "$t(term.domain) 설정",
20
+ "label.domain-setting-section-company": "회사",
21
+ "label.domain-setting-section-connection": "연결",
22
+ "label.domain-setting-section-security": "보안",
23
+ "label.domain-setting-section-work": "업무 기본값",
24
+ "text.domain-setting-search": "설정 검색",
25
+ "text.domain-setting-length": "{length}/{limit}자",
26
+ "text.domain-setting-inherited": "상위 $t(term.domain) 값 사용 중",
27
+ "text.domain-setting-fallback": "기본값 사용 중",
28
+ "text.domain-setting-secret-set": "등록됨 {hint}",
29
+ "text.domain-setting-secret-unset": "등록되지 않음",
30
+ "text.domain-setting-secret-cleared": "저장하면 지워집니다",
31
+ "button.domain-setting-replace": "변경",
32
+ "button.domain-setting-clear": "지우기",
33
+ "text.domain-setting-pending": "저장하지 않은 변경 {count}건",
34
+ "text.domain-setting-read-only": "보기만 가능합니다. 이 카드의 설정을 변경할 권한이 없습니다.",
35
+ "text.domain-setting-last-change": "마지막 변경: {name} · {at}",
36
+ "text.domain-setting-none": "볼 수 있는 $t(term.domain) 설정이 없습니다.",
37
+ "text.domain-setting-no-match": "검색 조건에 맞는 설정이 없습니다.",
38
+ "text.domain-setting-read-failed": "설정을 불러오지 못했습니다.",
39
+ "text.domain-setting-last-change-at": "마지막 변경: {at}"
19
40
  }
@@ -15,5 +15,26 @@
15
15
  "label.theme-mode-dark": "gelap",
16
16
  "label.theme-mode-light": "cerah",
17
17
  "label.theme-mode-auto": "ikut peranti",
18
- "label.check-all": "tanda semua"
18
+ "label.check-all": "tanda semua",
19
+ "title.domain-setting": "Tetapan $t(term.domain)",
20
+ "label.domain-setting-section-company": "Syarikat",
21
+ "label.domain-setting-section-connection": "Sambungan",
22
+ "label.domain-setting-section-security": "Keselamatan",
23
+ "label.domain-setting-section-work": "Lalai kerja",
24
+ "text.domain-setting-search": "Cari tetapan",
25
+ "text.domain-setting-length": "{length}/{limit} aksara",
26
+ "text.domain-setting-inherited": "Menggunakan nilai $t(term.domain) induk",
27
+ "text.domain-setting-fallback": "Menggunakan nilai lalai",
28
+ "text.domain-setting-secret-set": "Didaftarkan {hint}",
29
+ "text.domain-setting-secret-unset": "Belum didaftarkan",
30
+ "text.domain-setting-secret-cleared": "Dipadam apabila disimpan",
31
+ "button.domain-setting-replace": "Tukar",
32
+ "button.domain-setting-clear": "Padam",
33
+ "text.domain-setting-pending": "{count} perubahan belum disimpan",
34
+ "text.domain-setting-read-only": "Lihat sahaja. Anda tiada kebenaran untuk menukar tetapan kad ini.",
35
+ "text.domain-setting-last-change": "Perubahan terakhir: {name} · {at}",
36
+ "text.domain-setting-none": "Tiada tetapan $t(term.domain) yang boleh anda lihat.",
37
+ "text.domain-setting-no-match": "Tiada tetapan sepadan dengan carian.",
38
+ "text.domain-setting-read-failed": "Tetapan tidak dapat dimuatkan.",
39
+ "text.domain-setting-last-change-at": "Perubahan terakhir: {at}"
19
40
  }
@@ -15,5 +15,26 @@
15
15
  "label.theme-mode-dark": "深色",
16
16
  "label.theme-mode-light": "浅色",
17
17
  "label.theme-mode-auto": "跟随设备设置",
18
- "label.check-all": "全选"
18
+ "label.check-all": "全选",
19
+ "title.domain-setting": "$t(term.domain)设置",
20
+ "label.domain-setting-section-company": "公司",
21
+ "label.domain-setting-section-connection": "连接",
22
+ "label.domain-setting-section-security": "安全",
23
+ "label.domain-setting-section-work": "业务默认值",
24
+ "text.domain-setting-search": "搜索设置",
25
+ "text.domain-setting-length": "{length}/{limit}字",
26
+ "text.domain-setting-inherited": "正在使用上级$t(term.domain)的值",
27
+ "text.domain-setting-fallback": "正在使用默认值",
28
+ "text.domain-setting-secret-set": "已登记 {hint}",
29
+ "text.domain-setting-secret-unset": "未登记",
30
+ "text.domain-setting-secret-cleared": "保存后将删除",
31
+ "button.domain-setting-replace": "更改",
32
+ "button.domain-setting-clear": "删除",
33
+ "text.domain-setting-pending": "未保存的更改 {count}项",
34
+ "text.domain-setting-read-only": "仅可查看。您没有更改此卡片设置的权限。",
35
+ "text.domain-setting-last-change": "最后更改: {name} · {at}",
36
+ "text.domain-setting-none": "没有您可查看的$t(term.domain)设置。",
37
+ "text.domain-setting-no-match": "没有与搜索匹配的设置。",
38
+ "text.domain-setting-read-failed": "无法加载设置。",
39
+ "text.domain-setting-last-change-at": "最后更改: {at}"
19
40
  }