es-application-template 0.0.7 → 0.0.11

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,56 @@
1
+ export type SettingKeyValueType = 'boolean' | 'number' | 'string' | 'json' | 'date' | 'datetime' | 'guid';
2
+ export type SettingKeyDefaultValue = boolean | number | string | null;
3
+ export type SettingKeyRule = {
4
+ id: string;
5
+ section: string;
6
+ category: string;
7
+ pattern: string;
8
+ type: SettingKeyValueType;
9
+ defaultValue?: SettingKeyDefaultValue;
10
+ sampleValue?: unknown;
11
+ examples: string[];
12
+ description: string;
13
+ };
14
+ export type SettingKeyRuleSection = {
15
+ id: string;
16
+ title: string;
17
+ description: string;
18
+ };
19
+ export type SettingKeyCategory = {
20
+ value: string;
21
+ label: string;
22
+ };
23
+ export type SettingConventionSection = {
24
+ title: string;
25
+ paragraphs?: string[];
26
+ items?: string[];
27
+ examples?: string[];
28
+ };
29
+ export type SettingKeyConvention = {
30
+ id: string;
31
+ version: number;
32
+ title: string;
33
+ objective: string[];
34
+ keyStructure: {
35
+ pattern: string;
36
+ explanation: string[];
37
+ examples: string[];
38
+ };
39
+ categories: SettingKeyCategory[];
40
+ ruleSections: SettingKeyRuleSection[];
41
+ rules: SettingKeyRule[];
42
+ guidance: SettingConventionSection[];
43
+ };
44
+ export declare const SETTING_KEY_RULES: SettingKeyRule[];
45
+ export declare const SETTING_KEY_CONVENTION: SettingKeyConvention;
46
+ export declare const formatSettingKeyConvention: (convention?: SettingKeyConvention) => string;
47
+ export declare const serializeSettingKeyConvention: (convention?: SettingKeyConvention) => string;
48
+ export type SettingImportLeaf = {
49
+ type: SettingKeyValueType;
50
+ value: unknown;
51
+ description: string;
52
+ };
53
+ export type SettingImportDocument = Record<string, Record<string, unknown>>;
54
+ export declare const buildSettingImportExample: (resourceCode?: string, convention?: SettingKeyConvention) => SettingImportDocument;
55
+ export declare const serializeSettingImportExample: (resourceCode?: string, convention?: SettingKeyConvention) => string;
56
+ export declare const filterSettingKeyRules: (rows: SettingKeyRule[], searchTerm: string, category?: string, type?: string) => SettingKeyRule[];
@@ -179,48 +179,100 @@
179
179
  text-overflow: ellipsis;
180
180
  white-space: nowrap;
181
181
  }
182
- .customizer.config-tree-rules-drawer {
182
+ .es-application-sidebar-root.is-hidden,
183
+ .es-application-sidebar-backdrop.is-hidden {
184
+ display: none;
185
+ }
186
+
187
+ .es-application-sidebar-backdrop {
188
+ position: fixed;
189
+ inset: 0;
190
+ background: rgba(0, 0, 0, 0.5);
191
+ opacity: 0;
192
+ transition: opacity 0.3s ease;
193
+ }
194
+
195
+ .es-application-sidebar-backdrop.show {
196
+ opacity: 1;
197
+ }
198
+
199
+ .es-application-sidebar {
200
+ position: fixed;
201
+ top: 0;
202
+ right: 0;
203
+ width: min(var(--es-application-sidebar-width, 600px), 100vw);
204
+ max-width: 100vw;
205
+ height: 100vh;
206
+ overflow: hidden;
207
+ background: #fff;
208
+ box-shadow: -4px 0 18px rgba(0, 0, 0, 0.16);
209
+ transform: translateX(100%);
210
+ transition: transform 0.4s ease;
211
+ }
212
+
213
+ .es-application-sidebar.open {
214
+ transform: translateX(0);
215
+ }
216
+
217
+ .es-application-sidebar.fullscreen {
218
+ width: 100vw;
219
+ }
220
+ .config-tree-rules-drawer {
183
221
  width: min(1000px, 100vw);
184
222
  max-width: 100vw;
185
223
  color: #000 !important;
186
224
  background: #fff !important;
187
225
  }
188
- .customizer.config-tree-rules-drawer .config-key-sample-layout,
189
- .customizer.config-tree-rules-drawer .config-key-sample-content,
190
- .customizer.config-tree-rules-drawer .config-key-sample-toolbar,
191
- .customizer.config-tree-rules-drawer .table,
192
- .customizer.config-tree-rules-drawer .table thead th,
193
- .customizer.config-tree-rules-drawer .table tbody td {
226
+ .config-tree-rules-drawer .config-key-sample-layout,
227
+ .config-tree-rules-drawer .config-key-sample-content,
228
+ .config-tree-rules-drawer .config-key-sample-toolbar,
229
+ .config-tree-rules-drawer .config-key-sample-tabs,
230
+ .config-tree-rules-drawer .table,
231
+ .config-tree-rules-drawer .table thead th,
232
+ .config-tree-rules-drawer .table tbody td {
194
233
  color: #000 !important;
195
234
  background: #fff !important;
196
235
  }
197
- .customizer.config-tree-rules-drawer .modal-title,
198
- .customizer.config-tree-rules-drawer h6,
199
- .customizer.config-tree-rules-drawer th,
200
- .customizer.config-tree-rules-drawer td,
201
- .customizer.config-tree-rules-drawer strong,
202
- .customizer.config-tree-rules-drawer .config-key-sample-text,
203
- .customizer.config-tree-rules-drawer .config-key-sample-empty,
204
- .customizer.config-tree-rules-drawer .form-control {
236
+ .config-tree-rules-drawer .modal-title,
237
+ .config-tree-rules-drawer h6,
238
+ .config-tree-rules-drawer th,
239
+ .config-tree-rules-drawer td,
240
+ .config-tree-rules-drawer strong,
241
+ .config-tree-rules-drawer .config-key-sample-text,
242
+ .config-tree-rules-drawer .config-key-sample-empty,
243
+ .config-tree-rules-drawer .form-control {
205
244
  color: #000 !important;
206
245
  }
207
- .customizer.config-tree-rules-drawer .config-key-sample-text {
246
+ .config-tree-rules-drawer .config-key-convention-text {
247
+ min-width: 720px;
248
+ padding: 1rem;
249
+ color: #000;
250
+ background: #f8f8f8;
251
+ border: 1px solid #ebe9f1;
252
+ border-radius: 0.357rem;
253
+ font-family: monospace;
254
+ font-size: 12px;
255
+ line-height: 1.55;
256
+ white-space: pre-wrap;
257
+ overflow-wrap: anywhere;
258
+ }
259
+ .config-tree-rules-drawer .config-key-sample-text {
208
260
  padding: 0;
209
261
  background: transparent !important;
210
262
  font-family: monospace;
211
263
  font-size: 12px;
212
264
  overflow-wrap: anywhere;
213
265
  }
214
- .customizer.config-tree-rules-drawer .config-key-sample-copy-row {
266
+ .config-tree-rules-drawer .config-key-sample-copy-row {
215
267
  display: flex;
216
268
  align-items: center;
217
269
  justify-content: space-between;
218
270
  gap: 8px;
219
271
  }
220
- .customizer.config-tree-rules-drawer .config-key-sample-copy-row + .config-key-sample-copy-row {
272
+ .config-tree-rules-drawer .config-key-sample-copy-row + .config-key-sample-copy-row {
221
273
  margin-top: 2px;
222
274
  }
223
- .customizer.config-tree-rules-drawer .config-key-sample-copy-button {
275
+ .config-tree-rules-drawer .config-key-sample-copy-button {
224
276
  display: inline-flex;
225
277
  flex: 0 0 28px;
226
278
  width: 28px;
@@ -234,21 +286,21 @@
234
286
  border-radius: 4px;
235
287
  cursor: pointer;
236
288
  }
237
- .customizer.config-tree-rules-drawer .config-key-sample-copy-button:hover {
289
+ .config-tree-rules-drawer .config-key-sample-copy-button:hover {
238
290
  background: #f2f2f2;
239
291
  }
240
- .customizer.config-tree-rules-drawer .config-key-sample-copy-button:focus-visible {
292
+ .config-tree-rules-drawer .config-key-sample-copy-button:focus-visible {
241
293
  outline: 2px solid #000;
242
294
  outline-offset: 1px;
243
295
  }
244
- .customizer.config-tree-rules-drawer .form-control::placeholder {
296
+ .config-tree-rules-drawer .form-control::placeholder {
245
297
  color: #000;
246
298
  opacity: 1;
247
299
  }
248
- .customizer.config-tree-rules-drawer .select__single-value,
249
- .customizer.config-tree-rules-drawer .select__placeholder,
250
- .customizer.config-tree-rules-drawer .select__input-container,
251
- .customizer.config-tree-rules-drawer .select__option {
300
+ .config-tree-rules-drawer .select__single-value,
301
+ .config-tree-rules-drawer .select__placeholder,
302
+ .config-tree-rules-drawer .select__input-container,
303
+ .config-tree-rules-drawer .select__option {
252
304
  color: #000 !important;
253
305
  }
254
306
  @charset "UTF-8";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "es-application-template",
3
- "version": "0.0.7",
3
+ "version": "0.0.11",
4
4
  "description": "Reusable Setting and Shortcut runtime/management package for ES applications.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",