overview-components 1.0.46 → 1.0.48
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/dist/assets/illustration/no-content.d.ts +6 -0
- package/dist/assets/illustration/no-content.d.ts.map +1 -0
- package/dist/assets/illustration/no-content.js +167 -0
- package/dist/assets/illustration/no-content.js.map +1 -0
- package/dist/assets/illustration/no-preview.d.ts +6 -0
- package/dist/assets/illustration/no-preview.d.ts.map +1 -0
- package/dist/assets/illustration/no-preview.js +133 -0
- package/dist/assets/illustration/no-preview.js.map +1 -0
- package/dist/assets/illustration/not-found.d.ts +6 -0
- package/dist/assets/illustration/not-found.d.ts.map +1 -0
- package/dist/assets/illustration/not-found.js +106 -0
- package/dist/assets/illustration/not-found.js.map +1 -0
- package/dist/assets/illustration/settings-illustration.d.ts +6 -0
- package/dist/assets/illustration/settings-illustration.d.ts.map +1 -0
- package/dist/assets/illustration/settings-illustration.js +176 -0
- package/dist/assets/illustration/settings-illustration.js.map +1 -0
- package/dist/components/components-settings/section-tab-settings.d.ts +44 -0
- package/dist/components/components-settings/section-tab-settings.d.ts.map +1 -0
- package/dist/components/components-settings/section-tab-settings.js +279 -0
- package/dist/components/components-settings/section-tab-settings.js.map +1 -0
- package/dist/components/lit-attachments-tab.d.ts +2 -2
- package/dist/components/lit-attachments-tab.d.ts.map +1 -1
- package/dist/components/lit-attachments-tab.js +2 -2
- package/dist/components/lit-attachments-tab.js.map +1 -1
- package/dist/components/lit-case-variables-tab.d.ts +1 -2
- package/dist/components/lit-case-variables-tab.d.ts.map +1 -1
- package/dist/components/lit-case-variables-tab.js +31 -34
- package/dist/components/lit-case-variables-tab.js.map +1 -1
- package/dist/components/lit-data-grid-tanstack.d.ts +1 -1
- package/dist/components/lit-data-grid-tanstack.d.ts.map +1 -1
- package/dist/components/lit-data-grid-tanstack.js +1 -1
- package/dist/components/lit-data-grid-tanstack.js.map +1 -1
- package/dist/components/lit-section-tab.d.ts +12 -17
- package/dist/components/lit-section-tab.d.ts.map +1 -1
- package/dist/components/lit-section-tab.js +39 -173
- package/dist/components/lit-section-tab.js.map +1 -1
- package/dist/components/lit-tabs-overview.d.ts +1 -1
- package/dist/components/lit-tabs-overview.d.ts.map +1 -1
- package/dist/components/lit-tabs-overview.js +1 -1
- package/dist/components/lit-tabs-overview.js.map +1 -1
- package/dist/schemas/index.d.ts +2 -1
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +2 -1
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/lit-case-variables-tab-rows.schema.d.ts +87 -93
- package/dist/schemas/lit-case-variables-tab-rows.schema.d.ts.map +1 -1
- package/dist/schemas/lit-case-variables-tab-rows.schema.js +2 -8
- package/dist/schemas/lit-case-variables-tab-rows.schema.js.map +1 -1
- package/dist/schemas/lit-case-variables-tab.schema.d.ts +87 -93
- package/dist/schemas/lit-case-variables-tab.schema.d.ts.map +1 -1
- package/dist/schemas/lit-section-tab-schema.d.ts +20 -0
- package/dist/schemas/lit-section-tab-schema.d.ts.map +1 -0
- package/dist/schemas/lit-section-tab-schema.js +21 -0
- package/dist/schemas/lit-section-tab-schema.js.map +1 -0
- package/dist/shared/lit-icon.d.ts +1 -1
- package/dist/shared/lit-icon.d.ts.map +1 -1
- package/dist/shared/lit-icon.js +0 -3
- package/dist/shared/lit-icon.js.map +1 -1
- package/dist/shared/lit-modal.d.ts +4 -3
- package/dist/shared/lit-modal.d.ts.map +1 -1
- package/dist/shared/lit-modal.js +59 -42
- package/dist/shared/lit-modal.js.map +1 -1
- package/dist/shared/lit-settings.d.ts +25 -0
- package/dist/shared/lit-settings.d.ts.map +1 -0
- package/dist/shared/lit-settings.js +77 -0
- package/dist/shared/lit-settings.js.map +1 -0
- package/dist/shared/lit-text-field.js +1 -1
- package/dist/shared/lit-text-field.js.map +1 -1
- package/dist/shared/simple-popper.d.ts.map +1 -1
- package/dist/shared/simple-popper.js +2 -0
- package/dist/shared/simple-popper.js.map +1 -1
- package/dist/utils/validate-json-schema.d.ts +8 -0
- package/dist/utils/validate-json-schema.d.ts.map +1 -0
- package/dist/utils/validate-json-schema.js +8 -0
- package/dist/utils/validate-json-schema.js.map +1 -0
- package/dist/validators/validator.d.ts +1 -0
- package/dist/validators/validator.d.ts.map +1 -1
- package/dist/validators/validator.js +2 -1
- package/dist/validators/validator.js.map +1 -1
- package/package.json +2 -1
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import { litCaseVariablesTabCellSchema } from './lit-case-variables-tab-cell.schema.js';
|
|
2
2
|
export const litCaseVariablesTabRowsSchema = {
|
|
3
|
-
type: '
|
|
4
|
-
|
|
5
|
-
rows: {
|
|
6
|
-
type: 'array',
|
|
7
|
-
items: litCaseVariablesTabCellSchema,
|
|
8
|
-
},
|
|
9
|
-
},
|
|
10
|
-
additionalProperties: false,
|
|
3
|
+
type: 'array',
|
|
4
|
+
items: litCaseVariablesTabCellSchema,
|
|
11
5
|
};
|
|
12
6
|
//# sourceMappingURL=lit-case-variables-tab-rows.schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lit-case-variables-tab-rows.schema.js","sourceRoot":"","sources":["../../src/schemas/lit-case-variables-tab-rows.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,yCAAyC,CAAC;AAExF,MAAM,CAAC,MAAM,6BAA6B,GAAG;IACzC,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"lit-case-variables-tab-rows.schema.js","sourceRoot":"","sources":["../../src/schemas/lit-case-variables-tab-rows.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,yCAAyC,CAAC;AAExF,MAAM,CAAC,MAAM,6BAA6B,GAAG;IACzC,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,6BAA6B;CAC9B,CAAC"}
|
|
@@ -9,111 +9,105 @@ export declare const litCaseVariablesTabSchema: {
|
|
|
9
9
|
readonly additionalProperties: true;
|
|
10
10
|
};
|
|
11
11
|
readonly rows: {
|
|
12
|
-
readonly type: "
|
|
13
|
-
readonly
|
|
14
|
-
readonly
|
|
15
|
-
|
|
16
|
-
readonly
|
|
12
|
+
readonly type: "array";
|
|
13
|
+
readonly items: {
|
|
14
|
+
readonly type: "object";
|
|
15
|
+
readonly properties: {
|
|
16
|
+
readonly field: {
|
|
17
|
+
readonly type: "string";
|
|
18
|
+
};
|
|
19
|
+
readonly type: {
|
|
20
|
+
readonly type: "string";
|
|
21
|
+
readonly enum: readonly ["string", "button", "link", "date", "currency"];
|
|
22
|
+
};
|
|
23
|
+
readonly headerName: {
|
|
24
|
+
readonly type: "string";
|
|
25
|
+
};
|
|
26
|
+
readonly value: {
|
|
27
|
+
readonly oneOf: readonly [{
|
|
28
|
+
readonly type: "string";
|
|
29
|
+
}, {
|
|
30
|
+
readonly type: "number";
|
|
31
|
+
}, {
|
|
32
|
+
readonly type: "null";
|
|
33
|
+
}];
|
|
34
|
+
};
|
|
35
|
+
readonly size: {
|
|
17
36
|
readonly type: "object";
|
|
18
37
|
readonly properties: {
|
|
19
|
-
readonly
|
|
20
|
-
readonly type: "
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
readonly type: "string";
|
|
24
|
-
readonly enum: readonly ["string", "button", "link", "date", "currency"];
|
|
25
|
-
};
|
|
26
|
-
readonly headerName: {
|
|
27
|
-
readonly type: "string";
|
|
38
|
+
readonly xs: {
|
|
39
|
+
readonly type: "integer";
|
|
40
|
+
readonly minimum: 1;
|
|
41
|
+
readonly maximum: 4;
|
|
28
42
|
};
|
|
29
|
-
readonly
|
|
30
|
-
readonly
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
readonly type: "number";
|
|
34
|
-
}, {
|
|
35
|
-
readonly type: "null";
|
|
36
|
-
}];
|
|
43
|
+
readonly sm: {
|
|
44
|
+
readonly type: "integer";
|
|
45
|
+
readonly minimum: 1;
|
|
46
|
+
readonly maximum: 4;
|
|
37
47
|
};
|
|
38
|
-
readonly
|
|
39
|
-
readonly type: "
|
|
40
|
-
readonly
|
|
41
|
-
|
|
42
|
-
readonly type: "integer";
|
|
43
|
-
readonly minimum: 1;
|
|
44
|
-
readonly maximum: 4;
|
|
45
|
-
};
|
|
46
|
-
readonly sm: {
|
|
47
|
-
readonly type: "integer";
|
|
48
|
-
readonly minimum: 1;
|
|
49
|
-
readonly maximum: 4;
|
|
50
|
-
};
|
|
51
|
-
readonly md: {
|
|
52
|
-
readonly type: "integer";
|
|
53
|
-
readonly minimum: 1;
|
|
54
|
-
readonly maximum: 4;
|
|
55
|
-
};
|
|
56
|
-
readonly lg: {
|
|
57
|
-
readonly type: "integer";
|
|
58
|
-
readonly minimum: 1;
|
|
59
|
-
readonly maximum: 4;
|
|
60
|
-
};
|
|
61
|
-
readonly xl: {
|
|
62
|
-
readonly type: "integer";
|
|
63
|
-
readonly minimum: 1;
|
|
64
|
-
readonly maximum: 4;
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
readonly additionalProperties: false;
|
|
48
|
+
readonly md: {
|
|
49
|
+
readonly type: "integer";
|
|
50
|
+
readonly minimum: 1;
|
|
51
|
+
readonly maximum: 4;
|
|
68
52
|
};
|
|
69
|
-
readonly
|
|
70
|
-
readonly type: "
|
|
53
|
+
readonly lg: {
|
|
54
|
+
readonly type: "integer";
|
|
55
|
+
readonly minimum: 1;
|
|
56
|
+
readonly maximum: 4;
|
|
71
57
|
};
|
|
72
|
-
readonly
|
|
73
|
-
readonly type: "
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
readonly type: readonly ["string"];
|
|
77
|
-
};
|
|
78
|
-
readonly headerStyle: {
|
|
79
|
-
readonly type: readonly ["object"];
|
|
80
|
-
readonly additionalProperties: true;
|
|
81
|
-
};
|
|
82
|
-
readonly valueStyle: {
|
|
83
|
-
readonly type: readonly ["object"];
|
|
84
|
-
readonly additionalProperties: true;
|
|
85
|
-
};
|
|
86
|
-
readonly cellStyle: {
|
|
87
|
-
readonly type: readonly ["object"];
|
|
88
|
-
readonly additionalProperties: true;
|
|
89
|
-
};
|
|
90
|
-
readonly tooltip: {
|
|
91
|
-
readonly type: readonly ["string"];
|
|
58
|
+
readonly xl: {
|
|
59
|
+
readonly type: "integer";
|
|
60
|
+
readonly minimum: 1;
|
|
61
|
+
readonly maximum: 4;
|
|
92
62
|
};
|
|
93
63
|
};
|
|
94
|
-
readonly patternProperties: {
|
|
95
|
-
readonly '^headerName_(cs|en|de|sk|pl|hu|fr|it|es)$': {
|
|
96
|
-
readonly type: "string";
|
|
97
|
-
};
|
|
98
|
-
readonly '^tooltip_(cs|en|de|sk|pl|hu|fr|it|es)$': {
|
|
99
|
-
readonly type: "string";
|
|
100
|
-
};
|
|
101
|
-
readonly '^value_(cs|en|de|sk|pl|hu|fr|it|es)$': {
|
|
102
|
-
readonly oneOf: readonly [{
|
|
103
|
-
readonly type: "string";
|
|
104
|
-
}, {
|
|
105
|
-
readonly type: "number";
|
|
106
|
-
}, {
|
|
107
|
-
readonly type: "null";
|
|
108
|
-
}];
|
|
109
|
-
};
|
|
110
|
-
};
|
|
111
|
-
readonly required: readonly ["field"];
|
|
112
64
|
readonly additionalProperties: false;
|
|
113
65
|
};
|
|
66
|
+
readonly buttonVariant: {
|
|
67
|
+
readonly type: "string";
|
|
68
|
+
};
|
|
69
|
+
readonly buttonFullWidth: {
|
|
70
|
+
readonly type: "boolean";
|
|
71
|
+
};
|
|
72
|
+
readonly href: {
|
|
73
|
+
readonly type: readonly ["string"];
|
|
74
|
+
};
|
|
75
|
+
readonly headerStyle: {
|
|
76
|
+
readonly type: readonly ["object"];
|
|
77
|
+
readonly additionalProperties: true;
|
|
78
|
+
};
|
|
79
|
+
readonly valueStyle: {
|
|
80
|
+
readonly type: readonly ["object"];
|
|
81
|
+
readonly additionalProperties: true;
|
|
82
|
+
};
|
|
83
|
+
readonly cellStyle: {
|
|
84
|
+
readonly type: readonly ["object"];
|
|
85
|
+
readonly additionalProperties: true;
|
|
86
|
+
};
|
|
87
|
+
readonly tooltip: {
|
|
88
|
+
readonly type: readonly ["string"];
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
readonly patternProperties: {
|
|
92
|
+
readonly '^headerName_(cs|en|de|sk|pl|hu|fr|it|es)$': {
|
|
93
|
+
readonly type: "string";
|
|
94
|
+
};
|
|
95
|
+
readonly '^tooltip_(cs|en|de|sk|pl|hu|fr|it|es)$': {
|
|
96
|
+
readonly type: "string";
|
|
97
|
+
};
|
|
98
|
+
readonly '^value_(cs|en|de|sk|pl|hu|fr|it|es)$': {
|
|
99
|
+
readonly oneOf: readonly [{
|
|
100
|
+
readonly type: "string";
|
|
101
|
+
}, {
|
|
102
|
+
readonly type: "number";
|
|
103
|
+
}, {
|
|
104
|
+
readonly type: "null";
|
|
105
|
+
}];
|
|
106
|
+
};
|
|
114
107
|
};
|
|
108
|
+
readonly required: readonly ["field"];
|
|
109
|
+
readonly additionalProperties: false;
|
|
115
110
|
};
|
|
116
|
-
readonly additionalProperties: false;
|
|
117
111
|
};
|
|
118
112
|
readonly hideTabWhen: {
|
|
119
113
|
readonly type: readonly ["boolean"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lit-case-variables-tab.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/lit-case-variables-tab.schema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,yBAAyB
|
|
1
|
+
{"version":3,"file":"lit-case-variables-tab.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/lit-case-variables-tab.schema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqB5B,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const litSectionTabSchema: {
|
|
2
|
+
readonly $id: "SettingsValue";
|
|
3
|
+
readonly type: "object";
|
|
4
|
+
readonly properties: {
|
|
5
|
+
readonly titleIcon: {
|
|
6
|
+
readonly type: "string";
|
|
7
|
+
readonly enum: string[];
|
|
8
|
+
};
|
|
9
|
+
readonly titleLabel: {
|
|
10
|
+
readonly type: "string";
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
readonly patternProperties: {
|
|
14
|
+
readonly '^titleLabel_.*$': {
|
|
15
|
+
readonly type: "string";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
readonly additionalProperties: false;
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=lit-section-tab-schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lit-section-tab-schema.d.ts","sourceRoot":"","sources":["../../src/schemas/lit-section-tab-schema.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;CAkBD,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IconArray } from '../shared/lit-icon.js';
|
|
2
|
+
export const litSectionTabSchema = {
|
|
3
|
+
$id: 'SettingsValue',
|
|
4
|
+
type: 'object',
|
|
5
|
+
properties: {
|
|
6
|
+
titleIcon: {
|
|
7
|
+
type: 'string',
|
|
8
|
+
enum: IconArray,
|
|
9
|
+
},
|
|
10
|
+
titleLabel: {
|
|
11
|
+
type: 'string',
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
patternProperties: {
|
|
15
|
+
'^titleLabel_.*$': {
|
|
16
|
+
type: 'string',
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
additionalProperties: false,
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=lit-section-tab-schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lit-section-tab-schema.js","sourceRoot":"","sources":["../../src/schemas/lit-section-tab-schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,MAAM,CAAC,MAAM,mBAAmB,GAAG;IAC/B,GAAG,EAAE,eAAe;IACpB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,SAAS,EAAE;YACP,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,SAAS;SAClB;QACD,UAAU,EAAE;YACR,IAAI,EAAE,QAAQ;SACjB;KACJ;IACD,iBAAiB,EAAE;QACf,iBAAiB,EAAE;YACf,IAAI,EAAE,QAAQ;SACjB;KACJ;IACD,oBAAoB,EAAE,KAAK;CACA,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
2
|
export declare const IconArray: string[];
|
|
3
|
-
export type Icon = 'account' | 'add' | 'administration' | 'arrow-left' | 'arrow-right' | 'bell' | 'bell-notify' | 'cases' | 'dark-mode' | 'documents' | 'events' | 'favorite' | 'help' | 'home' | 'leave' | 'light-mode' | 'manuals' | 'overviews' | 'planning' | 'reports' | 'roles' | 'search' | 'settings' | 'structure' | 'tasks' | 'templates' | 'users' | 'close' | 'curve-arrow' | 'administrator' | 'delegate' | 'download' | 'assume' | 'calculator' | 'check' | 'chevron-down' | 'handover' | 'flag' | 'filter' | 'favorite-add' | 'note' | 'more' | 'minus' | 'succes' | 'time' | 'trash' | 'pen' | 'unlike' | 'user' | 'puzzle' | 'informative' | 'save' | 'warning' | 'help-1' | 'accomplish' | 'add-document' | 'add-note' | 'checkbox-empty' | 'expand' | 'duplicate' | 'history' | 'instruction' | 'radio-empty' | 'print' | 'zoom-in' | 'view' | 'reading' | 'reload' | 'logs' | 'flow' | 'csv' | 'contat' | 'columns' | 'hamburger' | 'beginning' | 'signal' | 'variable' | 'up' | 'upload' | 'revision' | 'typing' | 'tasksFilled' | 'overviewsFilled' | 'homeFilled' | 'favoriteFilled' | 'flagFilled' | 'dark-modeFilled' | 'bellFilled' | 'administrationFilled' | 'administratorFilled' | 'casesFilled' | '
|
|
3
|
+
export type Icon = 'account' | 'add' | 'administration' | 'arrow-left' | 'arrow-right' | 'bell' | 'bell-notify' | 'cases' | 'dark-mode' | 'documents' | 'events' | 'favorite' | 'help' | 'home' | 'leave' | 'light-mode' | 'manuals' | 'overviews' | 'planning' | 'reports' | 'roles' | 'search' | 'settings' | 'structure' | 'tasks' | 'templates' | 'users' | 'close' | 'curve-arrow' | 'administrator' | 'delegate' | 'download' | 'assume' | 'calculator' | 'check' | 'chevron-down' | 'handover' | 'flag' | 'filter' | 'favorite-add' | 'note' | 'more' | 'minus' | 'succes' | 'time' | 'trash' | 'pen' | 'unlike' | 'user' | 'puzzle' | 'informative' | 'save' | 'warning' | 'help-1' | 'accomplish' | 'add-document' | 'add-note' | 'checkbox-empty' | 'expand' | 'duplicate' | 'history' | 'instruction' | 'radio-empty' | 'print' | 'zoom-in' | 'view' | 'reading' | 'reload' | 'logs' | 'flow' | 'csv' | 'contat' | 'columns' | 'hamburger' | 'beginning' | 'signal' | 'variable' | 'up' | 'upload' | 'revision' | 'typing' | 'tasksFilled' | 'overviewsFilled' | 'homeFilled' | 'favoriteFilled' | 'flagFilled' | 'dark-modeFilled' | 'bellFilled' | 'administrationFilled' | 'administratorFilled' | 'casesFilled' | 'manualsFilled' | 'reportsFilled' | 'structureFilled' | 'usersFilled' | 'userFilled' | 'settingsFilled' | 'lightModeFilled' | 'leaveFilled' | 'searchFilled' | 'checkboxFilled' | 'checkFilled' | 'chevronDownFilled' | 'chevronUpFilled' | 'chevronRightFilled' | 'chevronLeftFilled' | 'logsFilled' | 'radioFilled' | 'historyFilled' | 'reguiredFilled' | 'sortFilled' | 'variableFilled' | 'dangerFilled' | 'eventsFilled' | 'helpFilled' | 'rolesFilled' | 'clean' | 'dms' | 'cog' | 'email' | 'files' | 'chevron' | 'hand' | 'hide' | 'hierarchy' | 'import' | 'index' | 'infinity' | 'infinity-2' | 'reset' | 'rest' | 'sleep' | 'sorting' | 'totake' | 'totakedelegate' | 'shredding' | 'show' | 'share' | 'table' | 'url' | 'schema' | 'stats' | 'zoomout' | 'book' | 'authentication' | 'apphealth' | 'certificate' | 'console' | 'folder' | 'hragenda' | 'script' | 'sequence' | 'serviceoperation' | 'archiveFilled' | 'templatesFilled' | 'planningFilled' | 'approval' | 'certificate1' | 'change' | 'chevrondown' | 'cursor' | 'copylink' | 'column' | 'documentsFilled' | 'filterFilled' | 'filteroff' | 'hr' | 'image' | 'outoftime' | 'newsFilled' | 'morevertical' | 'spinner' | 'userFilled1' | 'tasksii' | 'rowlarge' | 'rowmedium' | 'rowmall' | 'touchid' | 'acces' | 'agenda' | 'annoncement' | 'e-mail2' | 'export' | 'faceid' | 'deviceregister' | 'lock' | 'outoftime2' | 'news' | 'qr' | 'unlock' | 'zastupovany' | 'csvFilled' | 'qrFilled' | 'knowledgeFilled' | 'hragendaFilled' | 'deviceregisterFilled' | 'agregation' | 'code' | 'flowii' | 'cursor-1' | 'drag' | 'link' | 'lang' | 'pinFilled' | 'pin' | 'play' | 'return' | 'sorting-1' | 'switch' | 'test' | 'stop' | 'zoom' | 'wrapitup' | 'web';
|
|
4
4
|
export declare class LitIcon extends LitElement {
|
|
5
5
|
icon?: Icon;
|
|
6
6
|
size?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lit-icon.d.ts","sourceRoot":"","sources":["../../src/shared/lit-icon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAM5C,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"lit-icon.d.ts","sourceRoot":"","sources":["../../src/shared/lit-icon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAM5C,eAAO,MAAM,SAAS,UAuNrB,CAAC;AAEF,MAAM,MAAM,IAAI,GACV,SAAS,GACT,KAAK,GACL,gBAAgB,GAChB,YAAY,GACZ,aAAa,GACb,MAAM,GACN,aAAa,GACb,OAAO,GACP,WAAW,G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E,MAAM,CAAc;IACX,QAAQ,CAAC,EAAE,OAAO,CAAS;IAEvE,OAAO,CAAC,aAAa,CAAyC;IAC9D,MAAM,CAAC,MAAM,4BAeX;IAEF,MAAM;CAkBT;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,UAAU,EAAE,OAAO,CAAC;KACvB;CACJ"}
|
package/dist/shared/lit-icon.js
CHANGED
|
@@ -100,7 +100,6 @@ export const IconArray = [
|
|
|
100
100
|
'administrationFilled',
|
|
101
101
|
'administratorFilled',
|
|
102
102
|
'casesFilled',
|
|
103
|
-
'documentsFilled',
|
|
104
103
|
'manualsFilled',
|
|
105
104
|
'reportsFilled',
|
|
106
105
|
'structureFilled',
|
|
@@ -178,7 +177,6 @@ export const IconArray = [
|
|
|
178
177
|
'filteroff',
|
|
179
178
|
'hr',
|
|
180
179
|
'image',
|
|
181
|
-
'lock',
|
|
182
180
|
'outoftime',
|
|
183
181
|
'news',
|
|
184
182
|
'newsFilled',
|
|
@@ -199,7 +197,6 @@ export const IconArray = [
|
|
|
199
197
|
'deviceregister',
|
|
200
198
|
'lock',
|
|
201
199
|
'outoftime2',
|
|
202
|
-
'news',
|
|
203
200
|
'qr',
|
|
204
201
|
'unlock',
|
|
205
202
|
'zastupovany',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lit-icon.js","sourceRoot":"","sources":["../../src/shared/lit-icon.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE5D,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,MAAM,MAAM,+BAA+B,CAAC;AAEnD,MAAM,CAAC,MAAM,SAAS,GAAG;IACrB,SAAS;IACT,KAAK;IACL,gBAAgB;IAChB,WAAW;IACX,YAAY;IACZ,MAAM;IACN,YAAY;IACZ,OAAO;IACP,UAAU;IACV,WAAW;IACX,QAAQ;IACR,UAAU;IACV,MAAM;IACN,MAAM;IACN,OAAO;IACP,WAAW;IACX,SAAS;IACT,WAAW;IACX,UAAU;IACV,SAAS;IACT,OAAO;IACP,QAAQ;IACR,UAAU;IACV,WAAW;IACX,OAAO;IACP,WAAW;IACX,OAAO;IACP,OAAO;IACP,YAAY;IACZ,eAAe;IACf,UAAU;IACV,UAAU;IACV,QAAQ;IACR,YAAY;IACZ,OAAO;IACP,aAAa;IACb,UAAU;IACV,MAAM;IACN,QAAQ;IACR,aAAa;IACb,MAAM;IACN,MAAM;IACN,OAAO;IACP,QAAQ;IACR,MAAM;IACN,OAAO;IACP,KAAK;IACL,QAAQ;IACR,MAAM;IACN,QAAQ;IACR,aAAa;IACb,MAAM;IACN,SAAS;IACT,OAAO;IACP,YAAY;IACZ,aAAa;IACb,SAAS;IACT,gBAAgB;IAChB,QAAQ;IACR,WAAW;IACX,SAAS;IACT,aAAa;IACb,YAAY;IACZ,OAAO;IACP,QAAQ;IACR,MAAM;IACN,SAAS;IACT,QAAQ;IACR,MAAM;IACN,MAAM;IACN,KAAK;IACL,QAAQ;IACR,SAAS;IACT,WAAW;IACX,WAAW;IACX,QAAQ;IACR,UAAU;IACV,IAAI;IACJ,QAAQ;IACR,UAAU;IACV,QAAQ;IACR,aAAa;IACb,iBAAiB;IACjB,YAAY;IACZ,gBAAgB;IAChB,YAAY;IACZ,gBAAgB;IAChB,YAAY;IACZ,sBAAsB;IACtB,qBAAqB;IACrB,aAAa;IACb,
|
|
1
|
+
{"version":3,"file":"lit-icon.js","sourceRoot":"","sources":["../../src/shared/lit-icon.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE5D,OAAO,MAAM,MAAM,cAAc,CAAC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
|
|
7
7
|
open: boolean;
|
|
8
8
|
closeOnOutsideClick: boolean;
|
|
9
|
+
onClose: (() => void) | undefined;
|
|
10
|
+
fullScreen: boolean;
|
|
9
11
|
private cleanup;
|
|
10
12
|
private triggerRef;
|
|
11
13
|
private modalRef;
|
|
12
14
|
connectedCallback(): void;
|
|
13
15
|
disconnectedCallback(): void;
|
|
14
|
-
|
|
15
|
-
private setupFloating;
|
|
16
|
-
private cleanupFloating;
|
|
16
|
+
firstUpdated(): void;
|
|
17
17
|
openModal(): void;
|
|
18
18
|
closeModal(): void;
|
|
19
19
|
private handleEscapeKey;
|
|
20
20
|
private handleBackdropClick;
|
|
21
|
+
private handleResize;
|
|
21
22
|
static styles: import("lit").CSSResult;
|
|
22
23
|
protected render(): TemplateResult;
|
|
23
24
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lit-modal.d.ts","sourceRoot":"","sources":["../../src/shared/lit-modal.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,UAAU,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"lit-modal.d.ts","sourceRoot":"","sources":["../../src/shared/lit-modal.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,UAAU,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG5D,MAAM,MAAM,YAAY,GAAG;IACvB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,mBAAmB,CAAC,EAAE,OAAO,CAAC;CACjC,CAAC;AAEF,qBACa,QAAS,SAAQ,UAAU;IACQ,IAAI,UAAS;IAC5B,mBAAmB,UAAQ;IAC1B,OAAO,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;IACnC,UAAU,UAAS;IAEvC,OAAO,CAAC,OAAO,CAA6B;IAErD,OAAO,CAAC,UAAU,CAA4B;IAC9C,OAAO,CAAC,QAAQ,CAA4B;IAE5C,iBAAiB;IAMjB,oBAAoB;IAMpB,YAAY;IAIZ,SAAS;IAKT,UAAU;IAQV,OAAO,CAAC,eAAe,CAIrB;IAEF,OAAO,CAAC,mBAAmB;IAM3B,OAAO,CAAC,YAAY,CAMlB;IAEF,MAAM,CAAC,MAAM,0BAwEX;IAEF,SAAS,CAAC,MAAM,IAAI,cAAc;CAkBrC;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,WAAW,EAAE,QAAQ,CAAC;KACzB;CACJ"}
|
package/dist/shared/lit-modal.js
CHANGED
|
@@ -6,15 +6,14 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { customElement, property, state } from 'lit/decorators.js';
|
|
8
8
|
import { css, html, LitElement } from 'lit';
|
|
9
|
-
import { computePosition, autoUpdate, offset, shift } from '@floating-ui/dom';
|
|
10
9
|
import { ref, createRef } from 'lit/directives/ref.js';
|
|
11
10
|
let LitModal = class LitModal extends LitElement {
|
|
12
11
|
constructor() {
|
|
13
12
|
super(...arguments);
|
|
14
13
|
this.open = false;
|
|
15
14
|
this.closeOnOutsideClick = true;
|
|
15
|
+
this.fullScreen = false;
|
|
16
16
|
this.cleanup = null;
|
|
17
|
-
// Refs pre floating-ui
|
|
18
17
|
this.triggerRef = createRef();
|
|
19
18
|
this.modalRef = createRef();
|
|
20
19
|
this.handleEscapeKey = (e) => {
|
|
@@ -22,48 +21,25 @@ let LitModal = class LitModal extends LitElement {
|
|
|
22
21
|
this.closeModal();
|
|
23
22
|
}
|
|
24
23
|
};
|
|
24
|
+
this.handleResize = () => {
|
|
25
|
+
const rootStyles = getComputedStyle(document.documentElement);
|
|
26
|
+
const smBreakpoint = rootStyles.getPropertyValue('--breakpoint-sm').trim();
|
|
27
|
+
const smValue = parseInt(smBreakpoint.replace('px', ''));
|
|
28
|
+
this.fullScreen = window.innerWidth <= smValue;
|
|
29
|
+
};
|
|
25
30
|
}
|
|
26
31
|
connectedCallback() {
|
|
27
32
|
super.connectedCallback();
|
|
28
33
|
document.addEventListener('keydown', this.handleEscapeKey);
|
|
34
|
+
window.addEventListener('resize', this.handleResize);
|
|
29
35
|
}
|
|
30
36
|
disconnectedCallback() {
|
|
31
37
|
super.disconnectedCallback();
|
|
32
38
|
document.removeEventListener('keydown', this.handleEscapeKey);
|
|
33
|
-
this.
|
|
39
|
+
window.removeEventListener('resize', this.handleResize);
|
|
34
40
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
if (this.open) {
|
|
38
|
-
this.setupFloating();
|
|
39
|
-
}
|
|
40
|
-
else {
|
|
41
|
-
this.cleanupFloating();
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
setupFloating() {
|
|
46
|
-
const trigger = this.triggerRef.value;
|
|
47
|
-
const modal = this.modalRef.value;
|
|
48
|
-
if (!trigger || !modal)
|
|
49
|
-
return;
|
|
50
|
-
this.cleanup = autoUpdate(trigger, modal, () => {
|
|
51
|
-
computePosition(trigger, modal, {
|
|
52
|
-
placement: 'bottom-start',
|
|
53
|
-
middleware: [offset(-80), shift({ padding: 0 })],
|
|
54
|
-
}).then(({ x, y }) => {
|
|
55
|
-
Object.assign(modal.style, {
|
|
56
|
-
left: `${x}px`,
|
|
57
|
-
top: `${y}px`,
|
|
58
|
-
});
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
cleanupFloating() {
|
|
63
|
-
if (this.cleanup) {
|
|
64
|
-
this.cleanup();
|
|
65
|
-
this.cleanup = null;
|
|
66
|
-
}
|
|
41
|
+
firstUpdated() {
|
|
42
|
+
this.handleResize();
|
|
67
43
|
}
|
|
68
44
|
openModal() {
|
|
69
45
|
this.open = true;
|
|
@@ -72,6 +48,9 @@ let LitModal = class LitModal extends LitElement {
|
|
|
72
48
|
closeModal() {
|
|
73
49
|
this.open = false;
|
|
74
50
|
this.dispatchEvent(new CustomEvent('open-changed', { detail: this.open }));
|
|
51
|
+
if (this.onClose) {
|
|
52
|
+
this.onClose();
|
|
53
|
+
}
|
|
75
54
|
}
|
|
76
55
|
handleBackdropClick(e) {
|
|
77
56
|
if (this.closeOnOutsideClick && e.target === e.currentTarget) {
|
|
@@ -88,8 +67,10 @@ let LitModal = class LitModal extends LitElement {
|
|
|
88
67
|
class="modal-backdrop ${this.open ? 'open' : ''}"
|
|
89
68
|
@click=${this.handleBackdropClick}
|
|
90
69
|
>
|
|
91
|
-
<div class="modal-container" ${ref(this.modalRef)}>
|
|
92
|
-
<slot></slot>
|
|
70
|
+
<div class="modal-container ${this.fullScreen ? 'fullscreen' : ''}"" ${ref(this.modalRef)}>
|
|
71
|
+
<slot name="header"></slot>
|
|
72
|
+
<slot name="body"></slot>
|
|
73
|
+
<slot name="footer"></slot>
|
|
93
74
|
</div>
|
|
94
75
|
</div>
|
|
95
76
|
`;
|
|
@@ -103,7 +84,6 @@ LitModal.styles = css `
|
|
|
103
84
|
width: 100%;
|
|
104
85
|
height: 100%;
|
|
105
86
|
background-color: rgba(0, 0, 0, 0.5);
|
|
106
|
-
//z-index: 1000;
|
|
107
87
|
display: flex;
|
|
108
88
|
align-items: center;
|
|
109
89
|
justify-content: center;
|
|
@@ -120,23 +100,54 @@ LitModal.styles = css `
|
|
|
120
100
|
}
|
|
121
101
|
|
|
122
102
|
.modal-container {
|
|
123
|
-
background-color: var(--background-
|
|
124
|
-
border-radius:
|
|
103
|
+
background-color: var(--background-paper, #ffffff);
|
|
104
|
+
border-radius: 12px;
|
|
125
105
|
box-shadow:
|
|
126
106
|
0 12px 32px rgba(0, 0, 0, 0.12),
|
|
127
107
|
0 8px 12px rgba(17, 24, 39, 0.08),
|
|
128
108
|
0 2px 2px rgba(0, 0, 0, 0.16);
|
|
129
109
|
|
|
110
|
+
display: flex;
|
|
111
|
+
flex-direction: column;
|
|
112
|
+
|
|
130
113
|
max-width: 90%;
|
|
114
|
+
min-width: 40vw;
|
|
131
115
|
max-height: 90vh;
|
|
132
|
-
|
|
116
|
+
overflow: hidden;
|
|
133
117
|
position: relative;
|
|
134
|
-
overflow: visible;
|
|
135
118
|
}
|
|
136
119
|
|
|
137
120
|
::slotted([slot='trigger']) {
|
|
138
121
|
display: contents;
|
|
139
122
|
}
|
|
123
|
+
|
|
124
|
+
::slotted([slot='header']),
|
|
125
|
+
::slotted([slot='footer']) {
|
|
126
|
+
position: sticky;
|
|
127
|
+
background-color: var(--background-paper, #ffffff);
|
|
128
|
+
z-index: 1;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
::slotted([slot='header']) {
|
|
132
|
+
top: 0;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
::slotted([slot='footer']) {
|
|
136
|
+
bottom: 0;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.modal-container ::slotted([slot='body']) {
|
|
140
|
+
flex: 1;
|
|
141
|
+
overflow: auto;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.modal-container.fullscreen {
|
|
145
|
+
width: 100vw;
|
|
146
|
+
height: 100vh;
|
|
147
|
+
max-width: 100vw;
|
|
148
|
+
max-height: 100vh;
|
|
149
|
+
border-radius: 0;
|
|
150
|
+
}
|
|
140
151
|
`;
|
|
141
152
|
__decorate([
|
|
142
153
|
property({ type: Boolean, reflect: true })
|
|
@@ -144,6 +155,12 @@ __decorate([
|
|
|
144
155
|
__decorate([
|
|
145
156
|
property({ type: Boolean })
|
|
146
157
|
], LitModal.prototype, "closeOnOutsideClick", void 0);
|
|
158
|
+
__decorate([
|
|
159
|
+
property({ type: Function })
|
|
160
|
+
], LitModal.prototype, "onClose", void 0);
|
|
161
|
+
__decorate([
|
|
162
|
+
property({ type: Boolean })
|
|
163
|
+
], LitModal.prototype, "fullScreen", void 0);
|
|
147
164
|
__decorate([
|
|
148
165
|
state()
|
|
149
166
|
], LitModal.prototype, "cleanup", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lit-modal.js","sourceRoot":"","sources":["../../src/shared/lit-modal.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAA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,CAAA;2BACQ,IAAI,CAAC,SAAS,IAAI,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC;;;;;wCAKzB,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE;yBACtC,IAAI,CAAC,mBAAmB;;8CAEH,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,MAAM,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;;;;;;SAMhG,CAAC;IACN,CAAC;;AA3FM,eAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAwElB,AAxEY,CAwEX;AAnI0C;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;sCAAc;AAC5B;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;qDAA4B;AAC1B;IAA7B,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;yCAAmC;AACnC;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;4CAAoB;AAE/B;IAAhB,KAAK,EAAE;yCAA6C;AAN5C,QAAQ;IADpB,aAAa,CAAC,WAAW,CAAC;GACd,QAAQ,CAwJpB"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { LitElement, TemplateResult } from 'lit';
|
|
2
|
+
import './lit-input.js';
|
|
3
|
+
import './lit-checkbox.js';
|
|
4
|
+
import './lit-date-picker.js';
|
|
5
|
+
import './lit-select';
|
|
6
|
+
export type SettingsProps = {
|
|
7
|
+
schema: any;
|
|
8
|
+
value: Record<string, unknown>;
|
|
9
|
+
onSettingsChanged?: (value: Record<string, unknown>) => void;
|
|
10
|
+
};
|
|
11
|
+
export declare class LitSettings extends LitElement {
|
|
12
|
+
schema: any;
|
|
13
|
+
value: Record<string, unknown>;
|
|
14
|
+
onSettingsChanged?: (value: Record<string, unknown>) => void;
|
|
15
|
+
connectedCallback(): void;
|
|
16
|
+
static styles: import("lit").CSSResult[];
|
|
17
|
+
render(): TemplateResult;
|
|
18
|
+
private renderField;
|
|
19
|
+
}
|
|
20
|
+
declare global {
|
|
21
|
+
interface HTMLElementTagNameMap {
|
|
22
|
+
'lit-settings': SettingsProps;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=lit-settings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lit-settings.d.ts","sourceRoot":"","sources":["../../src/shared/lit-settings.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,UAAU,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAE5D,OAAO,gBAAgB,CAAC;AACxB,OAAO,mBAAmB,CAAC;AAC3B,OAAO,sBAAsB,CAAC;AAC9B,OAAO,cAAc,CAAC;AAEtB,MAAM,MAAM,aAAa,GAAG;IACxB,MAAM,EAAE,GAAG,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;CAChE,CAAC;AAEF,qBACa,WAAY,SAAQ,UAAU;IACX,MAAM,EAAE,GAAG,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAM;IAClC,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;IAE3F,iBAAiB;IAIjB,MAAM,CAAC,MAAM,4BAAW;IAExB,MAAM,IAAI,cAAc;IAiBxB,OAAO,CAAC,WAAW;CA+BtB;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,cAAc,EAAE,aAAa,CAAC;KACjC;CACJ"}
|