@schwarzdavid/ui-kit 0.0.1-alpha.2 → 0.0.1-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +201 -201
- package/README.md +1 -1
- package/dist/style.css +1 -1
- package/dist/ui-kit.js +118 -118
- package/package.json +87 -87
package/LICENSE.md
CHANGED
|
@@ -1,201 +1,201 @@
|
|
|
1
|
-
Apache License
|
|
2
|
-
Version 2.0, January 2004
|
|
3
|
-
http://www.apache.org/licenses/
|
|
4
|
-
|
|
5
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
-
|
|
7
|
-
1. Definitions.
|
|
8
|
-
|
|
9
|
-
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
-
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
-
|
|
12
|
-
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
-
the copyright owner that is granting the License.
|
|
14
|
-
|
|
15
|
-
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
-
other entities that control, are controlled by, or are under common
|
|
17
|
-
control with that entity. For the purposes of this definition,
|
|
18
|
-
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
-
direction or management of such entity, whether by contract or
|
|
20
|
-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
-
|
|
23
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
-
exercising permissions granted by this License.
|
|
25
|
-
|
|
26
|
-
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
-
including but not limited to software source code, documentation
|
|
28
|
-
source, and configuration files.
|
|
29
|
-
|
|
30
|
-
"Object" form shall mean any form resulting from mechanical
|
|
31
|
-
transformation or translation of a Source form, including but
|
|
32
|
-
not limited to compiled object code, generated documentation,
|
|
33
|
-
and conversions to other media types.
|
|
34
|
-
|
|
35
|
-
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
-
Object form, made available under the License, as indicated by a
|
|
37
|
-
copyright notice that is included in or attached to the work
|
|
38
|
-
(an example is provided in the Appendix below).
|
|
39
|
-
|
|
40
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
-
form, that is based on (or derived from) the Work and for which the
|
|
42
|
-
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
-
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
-
of this License, Derivative Works shall not include works that remain
|
|
45
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
-
the Work and Derivative Works thereof.
|
|
47
|
-
|
|
48
|
-
"Contribution" shall mean any work of authorship, including
|
|
49
|
-
the original version of the Work and any modifications or additions
|
|
50
|
-
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
-
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
-
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
-
means any form of electronic, verbal, or written communication sent
|
|
55
|
-
to the Licensor or its representatives, including but not limited to
|
|
56
|
-
communication on electronic mailing lists, source code control systems,
|
|
57
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
-
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
-
excluding communication that is conspicuously marked or otherwise
|
|
60
|
-
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
-
|
|
62
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
-
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
-
subsequently incorporated within the Work.
|
|
65
|
-
|
|
66
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
-
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
-
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
-
Work and such Derivative Works in Source or Object form.
|
|
72
|
-
|
|
73
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
-
(except as stated in this section) patent license to make, have made,
|
|
77
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
-
where such license applies only to those patent claims licensable
|
|
79
|
-
by such Contributor that are necessarily infringed by their
|
|
80
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
-
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
-
institute patent litigation against any entity (including a
|
|
83
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
-
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
-
or contributory patent infringement, then any patent licenses
|
|
86
|
-
granted to You under this License for that Work shall terminate
|
|
87
|
-
as of the date such litigation is filed.
|
|
88
|
-
|
|
89
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
-
modifications, and in Source or Object form, provided that You
|
|
92
|
-
meet the following conditions:
|
|
93
|
-
|
|
94
|
-
(a) You must give any other recipients of the Work or
|
|
95
|
-
Derivative Works a copy of this License; and
|
|
96
|
-
|
|
97
|
-
(b) You must cause any modified files to carry prominent notices
|
|
98
|
-
stating that You changed the files; and
|
|
99
|
-
|
|
100
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
-
that You distribute, all copyright, patent, trademark, and
|
|
102
|
-
attribution notices from the Source form of the Work,
|
|
103
|
-
excluding those notices that do not pertain to any part of
|
|
104
|
-
the Derivative Works; and
|
|
105
|
-
|
|
106
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
-
distribution, then any Derivative Works that You distribute must
|
|
108
|
-
include a readable copy of the attribution notices contained
|
|
109
|
-
within such NOTICE file, excluding those notices that do not
|
|
110
|
-
pertain to any part of the Derivative Works, in at least one
|
|
111
|
-
of the following places: within a NOTICE text file distributed
|
|
112
|
-
as part of the Derivative Works; within the Source form or
|
|
113
|
-
documentation, if provided along with the Derivative Works; or,
|
|
114
|
-
within a display generated by the Derivative Works, if and
|
|
115
|
-
wherever such third-party notices normally appear. The contents
|
|
116
|
-
of the NOTICE file are for informational purposes only and
|
|
117
|
-
do not modify the License. You may add Your own attribution
|
|
118
|
-
notices within Derivative Works that You distribute, alongside
|
|
119
|
-
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
-
that such additional attribution notices cannot be construed
|
|
121
|
-
as modifying the License.
|
|
122
|
-
|
|
123
|
-
You may add Your own copyright statement to Your modifications and
|
|
124
|
-
may provide additional or different license terms and conditions
|
|
125
|
-
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
-
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
-
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
-
the conditions stated in this License.
|
|
129
|
-
|
|
130
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
-
this License, without any additional terms or conditions.
|
|
134
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
-
the terms of any separate license agreement you may have executed
|
|
136
|
-
with Licensor regarding such Contributions.
|
|
137
|
-
|
|
138
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
-
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
-
except as required for reasonable and customary use in describing the
|
|
141
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
-
|
|
143
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
-
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
-
implied, including, without limitation, any warranties or conditions
|
|
148
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
-
appropriateness of using or redistributing the Work and assume any
|
|
151
|
-
risks associated with Your exercise of permissions under this License.
|
|
152
|
-
|
|
153
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
-
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
-
unless required by applicable law (such as deliberate and grossly
|
|
156
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
-
liable to You for damages, including any direct, indirect, special,
|
|
158
|
-
incidental, or consequential damages of any character arising as a
|
|
159
|
-
result of this License or out of the use or inability to use the
|
|
160
|
-
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
-
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
-
other commercial damages or losses), even if such Contributor
|
|
163
|
-
has been advised of the possibility of such damages.
|
|
164
|
-
|
|
165
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
-
or other liability obligations and/or rights consistent with this
|
|
169
|
-
License. However, in accepting such obligations, You may act only
|
|
170
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
-
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
-
defend, and hold each Contributor harmless for any liability
|
|
173
|
-
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
-
of your accepting any such warranty or additional liability.
|
|
175
|
-
|
|
176
|
-
END OF TERMS AND CONDITIONS
|
|
177
|
-
|
|
178
|
-
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
-
|
|
180
|
-
To apply the Apache License to your work, attach the following
|
|
181
|
-
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
-
replaced with your own identifying information. (Don't include
|
|
183
|
-
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
-
comment syntax for the file format. We also recommend that a
|
|
185
|
-
file or class name and description of purpose be included on the
|
|
186
|
-
same "printed page" as the copyright notice for easier
|
|
187
|
-
identification within third-party archives.
|
|
188
|
-
|
|
189
|
-
Copyright 2024 David Schwarz
|
|
190
|
-
|
|
191
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
-
you may not use this file except in compliance with the License.
|
|
193
|
-
You may obtain a copy of the License at
|
|
194
|
-
|
|
195
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
-
|
|
197
|
-
Unless required by applicable law or agreed to in writing, software
|
|
198
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
-
See the License for the specific language governing permissions and
|
|
201
|
-
limitations under the License.
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2024 David Schwarz
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
# @schwarzdavid/ui-kit
|
|
1
|
+
# @schwarzdavid/ui-kit
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.toast-entry[data-v-
|
|
1
|
+
.toast-entry[data-v-ad30c2cc]{pointer-events:all}.toast-outlet[data-v-98dd8b51]{position:fixed;z-index:9999;bottom:8px;right:8px;left:8px;display:flex;flex-direction:column;row-gap:8px;pointer-events:none}.fade-move[data-v-98dd8b51],.fade-enter-active[data-v-98dd8b51],.fade-leave-active[data-v-98dd8b51]{transition:all .3s cubic-bezier(.4,0,.2,1)}.fade-enter-from[data-v-98dd8b51],.fade-leave-to[data-v-98dd8b51]{opacity:0;transform:translate(50%) scaleY(.5)}.fade-leave-active[data-v-98dd8b51]{position:absolute}.info-dialog-card[data-v-48bbcd24]>.v-card-text{padding-left:16px!important;padding-right:16px!important}.prompt-dialog-card[data-v-aa6b77b6]>.v-card-item{padding-left:16px!important;padding-right:16px!important}.prompt-dialog-toolbar-slot[data-v-aa6b77b6]{display:contents}.confirm-dialog-card[data-v-e571516e]>.v-card-text{padding-left:16px!important;padding-right:16px!important}
|
package/dist/ui-kit.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { VAlert as Ce, VOverlay as
|
|
1
|
+
import { ref as T, readonly as J, markRaw as le, defineComponent as A, openBlock as m, createElementBlock as L, Fragment as R, renderList as Z, unref as u, createBlock as g, resolveDynamicComponent as B, mergeProps as G, onMounted as fe, withCtx as i, createTextVNode as H, toDisplayString as K, getCurrentInstance as ve, inject as ge, computed as f, TransitionGroup as _e, normalizeClass as re, isRef as ye, createVNode as s, createElementVNode as Q, createCommentVNode as k, normalizeProps as ue, toValue as X } from "vue";
|
|
2
|
+
import { VAlert as Ce, VOverlay as be, VProgressCircular as Te, VDialog as Y, VCard as ee, VCardTitle as se, VBtn as x, VCardText as ce, VCardActions as te, VToolbar as he, VToolbarTitle as we, VSpacer as ae, VDivider as xe } from "vuetify/components";
|
|
3
3
|
import { merge as $ } from "lodash";
|
|
4
4
|
import { useI18n as Ae } from "vue-i18n";
|
|
5
5
|
const v = [];
|
|
@@ -18,29 +18,29 @@ function ke() {
|
|
|
18
18
|
}
|
|
19
19
|
return q(De);
|
|
20
20
|
}
|
|
21
|
-
const
|
|
22
|
-
function
|
|
21
|
+
const Ie = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), oe = { randomUUID: Ie };
|
|
22
|
+
function ie(e, n, t) {
|
|
23
23
|
if (oe.randomUUID && !n && !e)
|
|
24
24
|
return oe.randomUUID();
|
|
25
25
|
e = e || {};
|
|
26
26
|
const a = e.random || (e.rng || ke)();
|
|
27
27
|
return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, Ve(a);
|
|
28
28
|
}
|
|
29
|
-
const U =
|
|
29
|
+
const U = T([]);
|
|
30
30
|
function de() {
|
|
31
31
|
function e() {
|
|
32
32
|
let a;
|
|
33
33
|
for (; ; )
|
|
34
|
-
if (a =
|
|
34
|
+
if (a = ie(), !U.value.some((o) => o.id === a))
|
|
35
35
|
return a;
|
|
36
36
|
}
|
|
37
37
|
function n(a) {
|
|
38
|
-
const o = e(),
|
|
38
|
+
const o = e(), c = le({ ...a, id: o, resolve: (d) => {
|
|
39
39
|
t(o), a.resolve(d);
|
|
40
40
|
}, reject: (d) => {
|
|
41
41
|
t(o), a.reject(d);
|
|
42
42
|
} });
|
|
43
|
-
return U.value.push(
|
|
43
|
+
return U.value.push(c), c;
|
|
44
44
|
}
|
|
45
45
|
function t(a) {
|
|
46
46
|
const o = typeof a == "string" ? a : a.id, l = U.value.findIndex((r) => r.id === o);
|
|
@@ -52,11 +52,11 @@ function de() {
|
|
|
52
52
|
removeFromQueue: t
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
|
-
const
|
|
55
|
+
const Ee = /* @__PURE__ */ A({
|
|
56
56
|
__name: "DialogOutlet",
|
|
57
57
|
setup(e) {
|
|
58
58
|
const { queue: n } = de();
|
|
59
|
-
return (t, a) => (m(!0), L(R, null,
|
|
59
|
+
return (t, a) => (m(!0), L(R, null, Z(u(n), (o) => (m(), g(B(o.component), G({
|
|
60
60
|
key: o.id,
|
|
61
61
|
ref_for: !0
|
|
62
62
|
}, o.props, {
|
|
@@ -64,26 +64,26 @@ const Ie = /* @__PURE__ */ A({
|
|
|
64
64
|
onReject: o.reject
|
|
65
65
|
}), null, 16, ["onResolve", "onReject"]))), 128));
|
|
66
66
|
}
|
|
67
|
-
}),
|
|
67
|
+
}), O = T([]);
|
|
68
68
|
function ne() {
|
|
69
69
|
function e() {
|
|
70
70
|
let a;
|
|
71
71
|
for (; ; )
|
|
72
|
-
if (a =
|
|
72
|
+
if (a = ie(), !O.value.some((o) => o.id === a))
|
|
73
73
|
return a;
|
|
74
74
|
}
|
|
75
75
|
function n(a) {
|
|
76
76
|
const o = e(), r = le({ ...a, id: o, resolve: () => {
|
|
77
77
|
t(o), a.resolve();
|
|
78
78
|
} });
|
|
79
|
-
return
|
|
79
|
+
return O.value.unshift(r), r;
|
|
80
80
|
}
|
|
81
81
|
function t(a) {
|
|
82
|
-
const o = typeof a == "string" ? a : a.id, l =
|
|
83
|
-
l >= 0 &&
|
|
82
|
+
const o = typeof a == "string" ? a : a.id, l = O.value.findIndex((r) => r.id === o);
|
|
83
|
+
l >= 0 && O.value.splice(l, 1);
|
|
84
84
|
}
|
|
85
85
|
return {
|
|
86
|
-
queue: J(
|
|
86
|
+
queue: J(O),
|
|
87
87
|
addToQueue: n,
|
|
88
88
|
removeFromQueue: t
|
|
89
89
|
};
|
|
@@ -94,7 +94,7 @@ const Le = /* @__PURE__ */ A({
|
|
|
94
94
|
entry: {}
|
|
95
95
|
},
|
|
96
96
|
setup(e) {
|
|
97
|
-
const n = e, t = ne(), a =
|
|
97
|
+
const n = e, t = ne(), a = T(-1);
|
|
98
98
|
function o() {
|
|
99
99
|
window.clearTimeout(a.value), t.removeFromQueue(n.entry.id);
|
|
100
100
|
}
|
|
@@ -108,7 +108,7 @@ const Le = /* @__PURE__ */ A({
|
|
|
108
108
|
closable: "",
|
|
109
109
|
"onClick:close": o
|
|
110
110
|
}, {
|
|
111
|
-
default:
|
|
111
|
+
default: i(() => [
|
|
112
112
|
H(K(l.entry.message), 1)
|
|
113
113
|
]),
|
|
114
114
|
_: 1
|
|
@@ -119,14 +119,14 @@ const Le = /* @__PURE__ */ A({
|
|
|
119
119
|
for (const [a, o] of n)
|
|
120
120
|
t[a] = o;
|
|
121
121
|
return t;
|
|
122
|
-
}, Re = /* @__PURE__ */ N(Le, [["__scopeId", "data-v-
|
|
123
|
-
function
|
|
122
|
+
}, Re = /* @__PURE__ */ N(Le, [["__scopeId", "data-v-ad30c2cc"]]);
|
|
123
|
+
function P() {
|
|
124
124
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
|
|
125
|
-
if (
|
|
125
|
+
if (P.cache.has(e)) return P.cache.get(e);
|
|
126
126
|
const n = e.replace(/[^a-z]/gi, "-").replace(/\B([A-Z])/g, "-$1").toLowerCase();
|
|
127
|
-
return
|
|
127
|
+
return P.cache.set(e, n), n;
|
|
128
128
|
}
|
|
129
|
-
|
|
129
|
+
P.cache = /* @__PURE__ */ new Map();
|
|
130
130
|
function je(e, n) {
|
|
131
131
|
const t = ve();
|
|
132
132
|
if (!t)
|
|
@@ -136,12 +136,12 @@ function je(e, n) {
|
|
|
136
136
|
function Ue() {
|
|
137
137
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "composables";
|
|
138
138
|
const n = je(e).type;
|
|
139
|
-
return
|
|
139
|
+
return P((n == null ? void 0 : n.aliasName) || (n == null ? void 0 : n.name));
|
|
140
140
|
}
|
|
141
|
-
const
|
|
141
|
+
const Oe = Symbol.for("vuetify:display");
|
|
142
142
|
function me() {
|
|
143
143
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Ue();
|
|
144
|
-
const t = ge(
|
|
144
|
+
const t = ge(Oe);
|
|
145
145
|
if (!t) throw new Error("Could not find Vuetify display injection");
|
|
146
146
|
const a = f(() => {
|
|
147
147
|
if (e.mobile != null) return e.mobile;
|
|
@@ -157,7 +157,7 @@ function me() {
|
|
|
157
157
|
mobile: a
|
|
158
158
|
};
|
|
159
159
|
}
|
|
160
|
-
const
|
|
160
|
+
const Se = /* @__PURE__ */ A({
|
|
161
161
|
__name: "ToastOutlet",
|
|
162
162
|
setup(e) {
|
|
163
163
|
const { queue: n } = ne(), { mobile: t } = me(), a = f(() => t.value ? "" : "toast-outlet--desktop");
|
|
@@ -171,16 +171,16 @@ const Oe = /* @__PURE__ */ A({
|
|
|
171
171
|
class: re(["toast-outlet", a.value]),
|
|
172
172
|
onBeforeLeave: o
|
|
173
173
|
}, {
|
|
174
|
-
default:
|
|
175
|
-
(m(!0), L(R, null,
|
|
176
|
-
key:
|
|
177
|
-
entry:
|
|
174
|
+
default: i(() => [
|
|
175
|
+
(m(!0), L(R, null, Z(u(n), (c) => (m(), g(Re, {
|
|
176
|
+
key: c.id,
|
|
177
|
+
entry: c
|
|
178
178
|
}, null, 8, ["entry"]))), 128))
|
|
179
179
|
]),
|
|
180
180
|
_: 1
|
|
181
181
|
}, 8, ["class"]));
|
|
182
182
|
}
|
|
183
|
-
}),
|
|
183
|
+
}), Pe = /* @__PURE__ */ N(Se, [["__scopeId", "data-v-98dd8b51"]]), Qe = T(!1);
|
|
184
184
|
function pe() {
|
|
185
185
|
return Qe;
|
|
186
186
|
}
|
|
@@ -188,14 +188,14 @@ const $e = /* @__PURE__ */ A({
|
|
|
188
188
|
__name: "LoadingOverlay",
|
|
189
189
|
setup(e) {
|
|
190
190
|
const n = pe();
|
|
191
|
-
return (t, a) => (m(), g(u(
|
|
191
|
+
return (t, a) => (m(), g(u(be), {
|
|
192
192
|
modelValue: u(n),
|
|
193
193
|
"onUpdate:modelValue": a[0] || (a[0] = (o) => ye(n) ? n.value = o : null),
|
|
194
194
|
persistent: "",
|
|
195
195
|
class: "d-flex align-center justify-center"
|
|
196
196
|
}, {
|
|
197
|
-
default:
|
|
198
|
-
s(u(
|
|
197
|
+
default: i(() => [
|
|
198
|
+
s(u(Te), {
|
|
199
199
|
indeterminate: "",
|
|
200
200
|
color: "primary",
|
|
201
201
|
size: "100"
|
|
@@ -208,8 +208,8 @@ const $e = /* @__PURE__ */ A({
|
|
|
208
208
|
__name: "UiKitOutlet",
|
|
209
209
|
setup(e) {
|
|
210
210
|
return (n, t) => (m(), L(R, null, [
|
|
211
|
-
s(
|
|
212
|
-
s(
|
|
211
|
+
s(Ee),
|
|
212
|
+
s(Pe),
|
|
213
213
|
s($e)
|
|
214
214
|
], 64));
|
|
215
215
|
}
|
|
@@ -240,7 +240,7 @@ const $e = /* @__PURE__ */ A({
|
|
|
240
240
|
value: null
|
|
241
241
|
};
|
|
242
242
|
let l = null;
|
|
243
|
-
const r =
|
|
243
|
+
const r = T(!0), c = f(() => Object.hasOwn(t.data, "content") ? {
|
|
244
244
|
content: t.data.content,
|
|
245
245
|
translateContent: t.data.translateContent
|
|
246
246
|
} : null), d = f(() => Object.hasOwn(t.data, "component") ? {
|
|
@@ -248,29 +248,29 @@ const $e = /* @__PURE__ */ A({
|
|
|
248
248
|
props: t.data.props
|
|
249
249
|
} : null), _ = f(() => t.data.defaultCta === !1 ? null : $({}, o, t.data.defaultCta));
|
|
250
250
|
function V(p) {
|
|
251
|
-
|
|
251
|
+
I(p) ? p.action() : h(p.value);
|
|
252
252
|
}
|
|
253
|
-
function
|
|
253
|
+
function I(p) {
|
|
254
254
|
return Object.hasOwn(p, "action");
|
|
255
255
|
}
|
|
256
256
|
function h(p = null) {
|
|
257
257
|
l = p, r.value = !1;
|
|
258
258
|
}
|
|
259
|
-
function
|
|
259
|
+
function E() {
|
|
260
260
|
a("resolve", l);
|
|
261
261
|
}
|
|
262
|
-
return (p, w) => (m(), g(u(
|
|
262
|
+
return (p, w) => (m(), g(u(Y), {
|
|
263
263
|
modelValue: r.value,
|
|
264
264
|
"onUpdate:modelValue": w[1] || (w[1] = (y) => r.value = y),
|
|
265
265
|
"max-width": p.data.width ?? Fe,
|
|
266
|
-
onAfterLeave:
|
|
266
|
+
onAfterLeave: E
|
|
267
267
|
}, {
|
|
268
|
-
default:
|
|
268
|
+
default: i(() => [
|
|
269
269
|
s(u(ee), { class: "info-dialog-card" }, {
|
|
270
|
-
default:
|
|
270
|
+
default: i(() => [
|
|
271
271
|
Q("div", Ne, [
|
|
272
272
|
s(u(se), null, {
|
|
273
|
-
default:
|
|
273
|
+
default: i(() => [
|
|
274
274
|
s(C, {
|
|
275
275
|
translate: p.data.translateTitle,
|
|
276
276
|
content: p.data.title
|
|
@@ -284,12 +284,12 @@ const $e = /* @__PURE__ */ A({
|
|
|
284
284
|
onClick: w[0] || (w[0] = (y) => h(null))
|
|
285
285
|
})
|
|
286
286
|
]),
|
|
287
|
-
|
|
288
|
-
default:
|
|
287
|
+
c.value ? (m(), g(u(ce), { key: 0 }, {
|
|
288
|
+
default: i(() => [
|
|
289
289
|
Q("p", null, [
|
|
290
290
|
s(C, {
|
|
291
|
-
translate:
|
|
292
|
-
content:
|
|
291
|
+
translate: c.value.translateContent,
|
|
292
|
+
content: c.value.content
|
|
293
293
|
}, null, 8, ["translate", "content"])
|
|
294
294
|
])
|
|
295
295
|
]),
|
|
@@ -297,14 +297,14 @@ const $e = /* @__PURE__ */ A({
|
|
|
297
297
|
})) : k("", !0),
|
|
298
298
|
d.value ? (m(), g(B(d.value.component), ue(G({ key: 1 }, d.value.props)), null, 16)) : k("", !0),
|
|
299
299
|
s(u(te), { class: "justify-end" }, {
|
|
300
|
-
default:
|
|
301
|
-
(m(!0), L(R, null,
|
|
302
|
-
key:
|
|
300
|
+
default: i(() => [
|
|
301
|
+
(m(!0), L(R, null, Z(p.data.additionalCta ?? [], (y, b) => (m(), g(u(x), {
|
|
302
|
+
key: b,
|
|
303
303
|
color: "primary",
|
|
304
304
|
variant: "text",
|
|
305
305
|
onClick: () => V(y)
|
|
306
306
|
}, {
|
|
307
|
-
default:
|
|
307
|
+
default: i(() => [
|
|
308
308
|
s(C, {
|
|
309
309
|
translate: y.translateText,
|
|
310
310
|
content: y.text
|
|
@@ -318,7 +318,7 @@ const $e = /* @__PURE__ */ A({
|
|
|
318
318
|
variant: "elevated",
|
|
319
319
|
onClick: h
|
|
320
320
|
}, {
|
|
321
|
-
default:
|
|
321
|
+
default: i(() => [
|
|
322
322
|
s(C, {
|
|
323
323
|
translate: _.value.translateText,
|
|
324
324
|
content: _.value.text
|
|
@@ -336,7 +336,7 @@ const $e = /* @__PURE__ */ A({
|
|
|
336
336
|
_: 1
|
|
337
337
|
}, 8, ["modelValue", "max-width"]));
|
|
338
338
|
}
|
|
339
|
-
}), Be = /* @__PURE__ */ N(Me, [["__scopeId", "data-v-
|
|
339
|
+
}), Be = /* @__PURE__ */ N(Me, [["__scopeId", "data-v-48bbcd24"]]);
|
|
340
340
|
var D = /* @__PURE__ */ ((e) => (e.SMALL = "sm", e.LARGE = "lg", e))(D || {});
|
|
341
341
|
const Ge = /* @__PURE__ */ A({
|
|
342
342
|
__name: "PromptDialog",
|
|
@@ -354,12 +354,12 @@ const Ge = /* @__PURE__ */ A({
|
|
|
354
354
|
}, r = {
|
|
355
355
|
text: "APP.SAVE",
|
|
356
356
|
translateText: !0
|
|
357
|
-
},
|
|
358
|
-
function
|
|
359
|
-
d.value = X(t.data.initialValue) ?? null,
|
|
357
|
+
}, c = T(!0), d = T(X(t.data.initialValue) ?? null), _ = T(null), { mobile: V } = me(), I = f(() => t.data.required && !d.value), h = f(() => o[t.data.size ?? D.SMALL]), E = f(() => t.data.size === D.LARGE ? V.value : !1), p = f(() => $({}, l, t.data.abortCta)), w = f(() => $({}, r, t.data.saveCta)), y = f(() => t.data.size === D.LARGE ? "secondary" : "primary");
|
|
358
|
+
function b() {
|
|
359
|
+
d.value = X(t.data.initialValue) ?? null, c.value = !1;
|
|
360
360
|
}
|
|
361
361
|
function F() {
|
|
362
|
-
|
|
362
|
+
c.value = !1;
|
|
363
363
|
}
|
|
364
364
|
function W() {
|
|
365
365
|
if (t.data.required && !d.value) {
|
|
@@ -368,21 +368,21 @@ const Ge = /* @__PURE__ */ A({
|
|
|
368
368
|
}
|
|
369
369
|
a("resolve", d.value);
|
|
370
370
|
}
|
|
371
|
-
return (j, M) => (m(), g(u(
|
|
372
|
-
modelValue:
|
|
373
|
-
"onUpdate:modelValue": M[1] || (M[1] = (z) =>
|
|
371
|
+
return (j, M) => (m(), g(u(Y), {
|
|
372
|
+
modelValue: c.value,
|
|
373
|
+
"onUpdate:modelValue": M[1] || (M[1] = (z) => c.value = z),
|
|
374
374
|
"max-width": h.value,
|
|
375
|
-
fullscreen:
|
|
375
|
+
fullscreen: E.value,
|
|
376
376
|
scrollable: j.data.size === u(D).LARGE,
|
|
377
377
|
onAfterLeave: W
|
|
378
378
|
}, {
|
|
379
|
-
default:
|
|
379
|
+
default: i(() => [
|
|
380
380
|
s(u(ee), { class: "prompt-dialog-card" }, {
|
|
381
|
-
default:
|
|
381
|
+
default: i(() => [
|
|
382
382
|
s(u(he), { color: "primary" }, {
|
|
383
|
-
default:
|
|
383
|
+
default: i(() => [
|
|
384
384
|
s(u(we), null, {
|
|
385
|
-
default:
|
|
385
|
+
default: i(() => [
|
|
386
386
|
s(C, {
|
|
387
387
|
translate: j.data.translateTitle,
|
|
388
388
|
content: j.data.title
|
|
@@ -398,7 +398,7 @@ const Ge = /* @__PURE__ */ A({
|
|
|
398
398
|
}, null, 512),
|
|
399
399
|
s(u(x), {
|
|
400
400
|
icon: "mdi-close",
|
|
401
|
-
onClick:
|
|
401
|
+
onClick: b
|
|
402
402
|
})
|
|
403
403
|
]),
|
|
404
404
|
_: 1
|
|
@@ -410,13 +410,13 @@ const Ge = /* @__PURE__ */ A({
|
|
|
410
410
|
}), null, 16, ["modelValue", "toolbar"])) : k("", !0),
|
|
411
411
|
s(u(xe)),
|
|
412
412
|
s(u(te), null, {
|
|
413
|
-
default:
|
|
413
|
+
default: i(() => [
|
|
414
414
|
s(u(ae)),
|
|
415
415
|
s(u(x), {
|
|
416
416
|
color: y.value,
|
|
417
|
-
onClick:
|
|
417
|
+
onClick: b
|
|
418
418
|
}, {
|
|
419
|
-
default:
|
|
419
|
+
default: i(() => [
|
|
420
420
|
s(C, {
|
|
421
421
|
translate: p.value.translateText,
|
|
422
422
|
content: p.value.text
|
|
@@ -427,10 +427,10 @@ const Ge = /* @__PURE__ */ A({
|
|
|
427
427
|
s(u(x), {
|
|
428
428
|
variant: "elevated",
|
|
429
429
|
color: y.value,
|
|
430
|
-
disabled:
|
|
430
|
+
disabled: I.value,
|
|
431
431
|
onClick: F
|
|
432
432
|
}, {
|
|
433
|
-
default:
|
|
433
|
+
default: i(() => [
|
|
434
434
|
s(C, {
|
|
435
435
|
translate: w.value.translateText,
|
|
436
436
|
content: w.value.text
|
|
@@ -448,7 +448,7 @@ const Ge = /* @__PURE__ */ A({
|
|
|
448
448
|
_: 1
|
|
449
449
|
}, 8, ["modelValue", "max-width", "fullscreen", "scrollable"]));
|
|
450
450
|
}
|
|
451
|
-
}), We = /* @__PURE__ */ N(Ge, [["__scopeId", "data-v-
|
|
451
|
+
}), We = /* @__PURE__ */ N(Ge, [["__scopeId", "data-v-aa6b77b6"]]), ze = { class: "d-flex justify-space-between pr-2 py-2" }, qe = 550, He = /* @__PURE__ */ A({
|
|
452
452
|
__name: "ConfirmDialog",
|
|
453
453
|
props: {
|
|
454
454
|
data: {}
|
|
@@ -456,25 +456,25 @@ const Ge = /* @__PURE__ */ A({
|
|
|
456
456
|
emits: ["resolve", "reject"],
|
|
457
457
|
setup(e, { emit: n }) {
|
|
458
458
|
const t = e, a = n, o = {
|
|
459
|
-
text: "
|
|
459
|
+
text: "common.yes",
|
|
460
460
|
translateText: !0
|
|
461
461
|
}, l = {
|
|
462
|
-
text: "
|
|
462
|
+
text: "common.no",
|
|
463
463
|
translateText: !0
|
|
464
464
|
};
|
|
465
465
|
let r = !1;
|
|
466
|
-
const
|
|
466
|
+
const c = T(!0), d = f(() => Object.hasOwn(t.data, "content") ? {
|
|
467
467
|
content: t.data.content,
|
|
468
468
|
translateContent: t.data.translateContent
|
|
469
469
|
} : null), _ = f(() => Object.hasOwn(t.data, "component") ? {
|
|
470
470
|
component: t.data.component,
|
|
471
471
|
props: t.data.props
|
|
472
|
-
} : null), V = f(() => $({}, o, t.data.confirmCta)),
|
|
472
|
+
} : null), V = f(() => $({}, o, t.data.confirmCta)), I = f(() => $({}, l, t.data.rejectCta)), h = f(() => t.data.highlightCta ?? "confirm"), E = f(() => t.data.level ?? "primary");
|
|
473
473
|
function p() {
|
|
474
|
-
|
|
474
|
+
c.value = !1;
|
|
475
475
|
}
|
|
476
476
|
function w() {
|
|
477
|
-
r = !0,
|
|
477
|
+
r = !0, c.value = !1;
|
|
478
478
|
}
|
|
479
479
|
function y() {
|
|
480
480
|
if (t.data.throwOnReject && !r) {
|
|
@@ -483,35 +483,35 @@ const Ge = /* @__PURE__ */ A({
|
|
|
483
483
|
}
|
|
484
484
|
a("resolve", r);
|
|
485
485
|
}
|
|
486
|
-
return (
|
|
487
|
-
modelValue:
|
|
488
|
-
"onUpdate:modelValue": F[0] || (F[0] = (W) =>
|
|
489
|
-
persistent: !!
|
|
490
|
-
"max-width":
|
|
486
|
+
return (b, F) => (m(), g(u(Y), {
|
|
487
|
+
modelValue: c.value,
|
|
488
|
+
"onUpdate:modelValue": F[0] || (F[0] = (W) => c.value = W),
|
|
489
|
+
persistent: !!b.data.permanent,
|
|
490
|
+
"max-width": b.data.maxWidth ?? qe,
|
|
491
491
|
onAfterLeave: y
|
|
492
492
|
}, {
|
|
493
|
-
default:
|
|
493
|
+
default: i(() => [
|
|
494
494
|
s(u(ee), { class: "confirm-dialog-card" }, {
|
|
495
|
-
default:
|
|
495
|
+
default: i(() => [
|
|
496
496
|
Q("div", ze, [
|
|
497
497
|
s(u(se), null, {
|
|
498
|
-
default:
|
|
498
|
+
default: i(() => [
|
|
499
499
|
s(C, {
|
|
500
|
-
translate:
|
|
501
|
-
content:
|
|
500
|
+
translate: b.data.translateTitle,
|
|
501
|
+
content: b.data.title
|
|
502
502
|
}, null, 8, ["translate", "content"])
|
|
503
503
|
]),
|
|
504
504
|
_: 1
|
|
505
505
|
}),
|
|
506
|
-
|
|
506
|
+
b.data.permanent ? k("", !0) : (m(), g(u(x), {
|
|
507
507
|
key: 0,
|
|
508
508
|
icon: "$close",
|
|
509
509
|
variant: "text",
|
|
510
510
|
onClick: p
|
|
511
511
|
}))
|
|
512
512
|
]),
|
|
513
|
-
d.value ? (m(), g(u(
|
|
514
|
-
default:
|
|
513
|
+
d.value ? (m(), g(u(ce), { key: 0 }, {
|
|
514
|
+
default: i(() => [
|
|
515
515
|
s(C, {
|
|
516
516
|
translate: d.value.translateContent,
|
|
517
517
|
content: d.value.content
|
|
@@ -521,29 +521,29 @@ const Ge = /* @__PURE__ */ A({
|
|
|
521
521
|
})) : k("", !0),
|
|
522
522
|
_.value ? (m(), g(B(_.value.component), ue(G({ key: 1 }, _.value.props)), null, 16)) : k("", !0),
|
|
523
523
|
s(u(te), { class: "justify-end" }, {
|
|
524
|
-
default:
|
|
524
|
+
default: i(() => [
|
|
525
525
|
Q("div", {
|
|
526
526
|
class: re(["d-flex align-center", h.value === "confirm" ? "" : "flex-row-reverse"])
|
|
527
527
|
}, [
|
|
528
528
|
s(u(x), {
|
|
529
529
|
variant: h.value === "reject" ? "elevated" : "text",
|
|
530
|
-
color:
|
|
530
|
+
color: E.value,
|
|
531
531
|
onClick: p
|
|
532
532
|
}, {
|
|
533
|
-
default:
|
|
533
|
+
default: i(() => [
|
|
534
534
|
s(C, {
|
|
535
|
-
translate:
|
|
536
|
-
content:
|
|
535
|
+
translate: I.value.translateText,
|
|
536
|
+
content: I.value.text
|
|
537
537
|
}, null, 8, ["translate", "content"])
|
|
538
538
|
]),
|
|
539
539
|
_: 1
|
|
540
540
|
}, 8, ["variant", "color"]),
|
|
541
541
|
s(u(x), {
|
|
542
542
|
variant: h.value === "confirm" ? "elevated" : "text",
|
|
543
|
-
color:
|
|
543
|
+
color: E.value,
|
|
544
544
|
onClick: w
|
|
545
545
|
}, {
|
|
546
|
-
default:
|
|
546
|
+
default: i(() => [
|
|
547
547
|
s(C, {
|
|
548
548
|
translate: V.value.translateText,
|
|
549
549
|
content: V.value.text
|
|
@@ -562,7 +562,7 @@ const Ge = /* @__PURE__ */ A({
|
|
|
562
562
|
_: 1
|
|
563
563
|
}, 8, ["modelValue", "persistent", "max-width"]));
|
|
564
564
|
}
|
|
565
|
-
}), Ke = /* @__PURE__ */ N(He, [["__scopeId", "data-v-
|
|
565
|
+
}), Ke = /* @__PURE__ */ N(He, [["__scopeId", "data-v-e571516e"]]);
|
|
566
566
|
function nt() {
|
|
567
567
|
const e = de();
|
|
568
568
|
function n(o, l) {
|
|
@@ -570,13 +570,13 @@ function nt() {
|
|
|
570
570
|
return typeof o == "string" ? r = {
|
|
571
571
|
title: o,
|
|
572
572
|
content: l ?? ""
|
|
573
|
-
} : r = o, new Promise((
|
|
573
|
+
} : r = o, new Promise((c) => {
|
|
574
574
|
const d = {
|
|
575
575
|
component: Be,
|
|
576
576
|
props: { data: r },
|
|
577
|
-
resolve:
|
|
577
|
+
resolve: c,
|
|
578
578
|
reject: () => {
|
|
579
|
-
|
|
579
|
+
c(null);
|
|
580
580
|
}
|
|
581
581
|
};
|
|
582
582
|
e.addToQueue(d);
|
|
@@ -584,25 +584,25 @@ function nt() {
|
|
|
584
584
|
}
|
|
585
585
|
function t(o) {
|
|
586
586
|
return new Promise((l, r) => {
|
|
587
|
-
const
|
|
587
|
+
const c = {
|
|
588
588
|
component: We,
|
|
589
589
|
props: { data: o },
|
|
590
590
|
resolve: l,
|
|
591
591
|
reject: r
|
|
592
592
|
};
|
|
593
|
-
e.addToQueue(
|
|
593
|
+
e.addToQueue(c);
|
|
594
594
|
});
|
|
595
595
|
}
|
|
596
596
|
function a(o, l, r) {
|
|
597
|
-
let
|
|
598
|
-
return typeof o == "string" && typeof l == "string" && (
|
|
597
|
+
let c = o;
|
|
598
|
+
return typeof o == "string" && typeof l == "string" && (c = {
|
|
599
599
|
title: o,
|
|
600
600
|
content: l,
|
|
601
601
|
level: r
|
|
602
602
|
}), new Promise((d, _) => {
|
|
603
603
|
const V = {
|
|
604
604
|
component: Ke,
|
|
605
|
-
props: { data:
|
|
605
|
+
props: { data: c },
|
|
606
606
|
resolve: d,
|
|
607
607
|
reject: _
|
|
608
608
|
};
|
|
@@ -615,7 +615,7 @@ function nt() {
|
|
|
615
615
|
confirm: a
|
|
616
616
|
};
|
|
617
617
|
}
|
|
618
|
-
var Xe = /* @__PURE__ */ ((e) => (e.DEFAULT = "primary", e.WARNING = "warning", e.DANGER = "error", e))(Xe || {}),
|
|
618
|
+
var Xe = /* @__PURE__ */ ((e) => (e.DEFAULT = "primary", e.WARNING = "warning", e.DANGER = "error", e))(Xe || {}), S = /* @__PURE__ */ ((e) => (e.SUCCESS = "success", e.INFO = "info", e.WARNING = "warning", e.ERROR = "error", e))(S || {});
|
|
619
619
|
function at() {
|
|
620
620
|
const e = ne();
|
|
621
621
|
function n(l) {
|
|
@@ -624,7 +624,7 @@ function at() {
|
|
|
624
624
|
message: l,
|
|
625
625
|
resolve: r,
|
|
626
626
|
timeout: 4e3,
|
|
627
|
-
type:
|
|
627
|
+
type: S.INFO
|
|
628
628
|
});
|
|
629
629
|
});
|
|
630
630
|
}
|
|
@@ -634,7 +634,7 @@ function at() {
|
|
|
634
634
|
message: l,
|
|
635
635
|
resolve: r,
|
|
636
636
|
timeout: 4e3,
|
|
637
|
-
type:
|
|
637
|
+
type: S.WARNING
|
|
638
638
|
});
|
|
639
639
|
});
|
|
640
640
|
}
|
|
@@ -644,7 +644,7 @@ function at() {
|
|
|
644
644
|
message: l,
|
|
645
645
|
resolve: r,
|
|
646
646
|
timeout: 4e3,
|
|
647
|
-
type:
|
|
647
|
+
type: S.ERROR
|
|
648
648
|
});
|
|
649
649
|
});
|
|
650
650
|
}
|
|
@@ -654,7 +654,7 @@ function at() {
|
|
|
654
654
|
message: l,
|
|
655
655
|
resolve: r,
|
|
656
656
|
timeout: 4e3,
|
|
657
|
-
type:
|
|
657
|
+
type: S.SUCCESS
|
|
658
658
|
});
|
|
659
659
|
});
|
|
660
660
|
}
|
|
@@ -666,14 +666,14 @@ function at() {
|
|
|
666
666
|
};
|
|
667
667
|
}
|
|
668
668
|
function ot(e, { overlay: n } = {}) {
|
|
669
|
-
const t =
|
|
669
|
+
const t = T(!1), a = pe();
|
|
670
670
|
async function o(...l) {
|
|
671
671
|
const r = X(n);
|
|
672
672
|
t.value = !0, r && (a.value = !0);
|
|
673
673
|
try {
|
|
674
674
|
return await e(...l);
|
|
675
|
-
} catch (
|
|
676
|
-
throw
|
|
675
|
+
} catch (c) {
|
|
676
|
+
throw c;
|
|
677
677
|
} finally {
|
|
678
678
|
t.value = !1, r && (a.value = !1);
|
|
679
679
|
}
|
package/package.json
CHANGED
|
@@ -1,87 +1,87 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@schwarzdavid/ui-kit",
|
|
3
|
-
"version": "0.0.1-alpha.
|
|
4
|
-
"type": "module",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"preview": "vite preview",
|
|
7
|
-
"check": "vue-tsc --build --force",
|
|
8
|
-
"docs": "storybook dev -p 6006 --no-open",
|
|
9
|
-
"build:lib": "vue-tsc && vite build",
|
|
10
|
-
"build:docs": "storybook build",
|
|
11
|
-
"lint": "eslint .",
|
|
12
|
-
"lint:fix": "eslint . --fix",
|
|
13
|
-
"prepublishOnly": "npm run build:lib"
|
|
14
|
-
},
|
|
15
|
-
"author": "David Schwarz <david@ists-wurscht.at>",
|
|
16
|
-
"license": "Apache-2.0",
|
|
17
|
-
"files": [
|
|
18
|
-
"dist",
|
|
19
|
-
"lib/types/ui-kit.d.ts"
|
|
20
|
-
],
|
|
21
|
-
"module": "./dist/ui-kit.js",
|
|
22
|
-
"exports": {
|
|
23
|
-
".": {
|
|
24
|
-
"import": "./dist/ui-kit.js"
|
|
25
|
-
},
|
|
26
|
-
"./styles": {
|
|
27
|
-
"import": "./dist/style.css"
|
|
28
|
-
},
|
|
29
|
-
"./types": {
|
|
30
|
-
"import": "./lib/types/ui-kit.d.ts"
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
"peerDependencies": {
|
|
34
|
-
"pinia": ">=2",
|
|
35
|
-
"vue": ">=3",
|
|
36
|
-
"vue-i18n": ">=9",
|
|
37
|
-
"vuetify": ">=3"
|
|
38
|
-
},
|
|
39
|
-
"devDependencies": {
|
|
40
|
-
"@chromatic-com/storybook": "^3.2.2",
|
|
41
|
-
"@eslint/js": "^9.14.0",
|
|
42
|
-
"@intlify/unplugin-vue-i18n": "^4.0.0",
|
|
43
|
-
"@laynezh/vite-plugin-lib-assets": "^0.5.24",
|
|
44
|
-
"@mdi/font": "^7.4.47",
|
|
45
|
-
"@storybook/addon-essentials": "^8.4.5",
|
|
46
|
-
"@storybook/addon-interactions": "^8.4.5",
|
|
47
|
-
"@storybook/addon-links": "^8.4.5",
|
|
48
|
-
"@storybook/addon-onboarding": "^8.4.5",
|
|
49
|
-
"@storybook/blocks": "^8.4.5",
|
|
50
|
-
"@storybook/manager-api": "^8.4.5",
|
|
51
|
-
"@storybook/test": "^8.4.5",
|
|
52
|
-
"@storybook/theming": "^8.4.5",
|
|
53
|
-
"@storybook/vue3": "^8.4.5",
|
|
54
|
-
"@storybook/vue3-vite": "^8.4.5",
|
|
55
|
-
"@stylistic/eslint-plugin": "^2.10.1",
|
|
56
|
-
"@tsconfig/node20": "^20.1.4",
|
|
57
|
-
"@types/jsdom": "^21.1.7",
|
|
58
|
-
"@types/lodash": "^4.17.13",
|
|
59
|
-
"@types/node": "^22.9.0",
|
|
60
|
-
"@types/uuid": "^10.0.0",
|
|
61
|
-
"@vitejs/plugin-vue": "^5.1.4",
|
|
62
|
-
"@vitejs/plugin-vue-jsx": "^4.0.1",
|
|
63
|
-
"@vitest/eslint-plugin": "^1.1.7",
|
|
64
|
-
"@vue/test-utils": "^2.4.6",
|
|
65
|
-
"@vue/tsconfig": "^0.5.1",
|
|
66
|
-
"eslint": "^9.14.0",
|
|
67
|
-
"eslint-plugin-vue": "^9.30.0",
|
|
68
|
-
"jsdom": "^25.0.1",
|
|
69
|
-
"pinia": "^2.2.6",
|
|
70
|
-
"sass": "^1.80.6",
|
|
71
|
-
"storybook": "^8.4.5",
|
|
72
|
-
"typescript": "~5.6.3",
|
|
73
|
-
"typescript-eslint": "^8.13.0",
|
|
74
|
-
"vite": "^5.4.10",
|
|
75
|
-
"vite-plugin-dts": "^4.3.0",
|
|
76
|
-
"vitest": "^2.1.4",
|
|
77
|
-
"vue-component-type-helpers": "^2.1.10",
|
|
78
|
-
"vue-eslint-parser": "^9.4.3",
|
|
79
|
-
"vue-i18n": "^10.0.4",
|
|
80
|
-
"vue-tsc": "^2.1.10",
|
|
81
|
-
"vuetify": "^3.7.4"
|
|
82
|
-
},
|
|
83
|
-
"dependencies": {
|
|
84
|
-
"lodash": "^4.17.21",
|
|
85
|
-
"uuid": "^11.0.2"
|
|
86
|
-
}
|
|
87
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@schwarzdavid/ui-kit",
|
|
3
|
+
"version": "0.0.1-alpha.3",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"preview": "vite preview",
|
|
7
|
+
"check": "vue-tsc --build --force",
|
|
8
|
+
"docs": "storybook dev -p 6006 --no-open",
|
|
9
|
+
"build:lib": "vue-tsc && vite build",
|
|
10
|
+
"build:docs": "storybook build",
|
|
11
|
+
"lint": "eslint .",
|
|
12
|
+
"lint:fix": "eslint . --fix",
|
|
13
|
+
"prepublishOnly": "npm run build:lib"
|
|
14
|
+
},
|
|
15
|
+
"author": "David Schwarz <david@ists-wurscht.at>",
|
|
16
|
+
"license": "Apache-2.0",
|
|
17
|
+
"files": [
|
|
18
|
+
"dist",
|
|
19
|
+
"lib/types/ui-kit.d.ts"
|
|
20
|
+
],
|
|
21
|
+
"module": "./dist/ui-kit.js",
|
|
22
|
+
"exports": {
|
|
23
|
+
".": {
|
|
24
|
+
"import": "./dist/ui-kit.js"
|
|
25
|
+
},
|
|
26
|
+
"./styles": {
|
|
27
|
+
"import": "./dist/style.css"
|
|
28
|
+
},
|
|
29
|
+
"./types": {
|
|
30
|
+
"import": "./lib/types/ui-kit.d.ts"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"peerDependencies": {
|
|
34
|
+
"pinia": ">=2",
|
|
35
|
+
"vue": ">=3",
|
|
36
|
+
"vue-i18n": ">=9",
|
|
37
|
+
"vuetify": ">=3"
|
|
38
|
+
},
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"@chromatic-com/storybook": "^3.2.2",
|
|
41
|
+
"@eslint/js": "^9.14.0",
|
|
42
|
+
"@intlify/unplugin-vue-i18n": "^4.0.0",
|
|
43
|
+
"@laynezh/vite-plugin-lib-assets": "^0.5.24",
|
|
44
|
+
"@mdi/font": "^7.4.47",
|
|
45
|
+
"@storybook/addon-essentials": "^8.4.5",
|
|
46
|
+
"@storybook/addon-interactions": "^8.4.5",
|
|
47
|
+
"@storybook/addon-links": "^8.4.5",
|
|
48
|
+
"@storybook/addon-onboarding": "^8.4.5",
|
|
49
|
+
"@storybook/blocks": "^8.4.5",
|
|
50
|
+
"@storybook/manager-api": "^8.4.5",
|
|
51
|
+
"@storybook/test": "^8.4.5",
|
|
52
|
+
"@storybook/theming": "^8.4.5",
|
|
53
|
+
"@storybook/vue3": "^8.4.5",
|
|
54
|
+
"@storybook/vue3-vite": "^8.4.5",
|
|
55
|
+
"@stylistic/eslint-plugin": "^2.10.1",
|
|
56
|
+
"@tsconfig/node20": "^20.1.4",
|
|
57
|
+
"@types/jsdom": "^21.1.7",
|
|
58
|
+
"@types/lodash": "^4.17.13",
|
|
59
|
+
"@types/node": "^22.9.0",
|
|
60
|
+
"@types/uuid": "^10.0.0",
|
|
61
|
+
"@vitejs/plugin-vue": "^5.1.4",
|
|
62
|
+
"@vitejs/plugin-vue-jsx": "^4.0.1",
|
|
63
|
+
"@vitest/eslint-plugin": "^1.1.7",
|
|
64
|
+
"@vue/test-utils": "^2.4.6",
|
|
65
|
+
"@vue/tsconfig": "^0.5.1",
|
|
66
|
+
"eslint": "^9.14.0",
|
|
67
|
+
"eslint-plugin-vue": "^9.30.0",
|
|
68
|
+
"jsdom": "^25.0.1",
|
|
69
|
+
"pinia": "^2.2.6",
|
|
70
|
+
"sass": "^1.80.6",
|
|
71
|
+
"storybook": "^8.4.5",
|
|
72
|
+
"typescript": "~5.6.3",
|
|
73
|
+
"typescript-eslint": "^8.13.0",
|
|
74
|
+
"vite": "^5.4.10",
|
|
75
|
+
"vite-plugin-dts": "^4.3.0",
|
|
76
|
+
"vitest": "^2.1.4",
|
|
77
|
+
"vue-component-type-helpers": "^2.1.10",
|
|
78
|
+
"vue-eslint-parser": "^9.4.3",
|
|
79
|
+
"vue-i18n": "^10.0.4",
|
|
80
|
+
"vue-tsc": "^2.1.10",
|
|
81
|
+
"vuetify": "^3.7.4"
|
|
82
|
+
},
|
|
83
|
+
"dependencies": {
|
|
84
|
+
"lodash": "^4.17.21",
|
|
85
|
+
"uuid": "^11.0.2"
|
|
86
|
+
}
|
|
87
|
+
}
|