@webority/ui-elements 0.11.1 → 0.11.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/dist/ui-elements.global.js +25 -25
- package/dist/ui-elements.js +90 -56
- package/package.json +3 -3
package/dist/ui-elements.js
CHANGED
|
@@ -115,6 +115,7 @@ var f = {
|
|
|
115
115
|
"external-link": "<path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" d=\"M13 11l8.2-8.2M22 6.8V2h-4.8M11 2H9C4 2 2 4 2 9v6c0 5 2 7 7 7h6c5 0 7-2 7-7v-2\"></path>",
|
|
116
116
|
eye: "<path d=\"M15.58 12c0 1.98-1.6 3.58-3.58 3.58S8.42 13.98 8.42 12s1.6-3.58 3.58-3.58 3.58 1.6 3.58 3.58Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path><path d=\"M12 20.27c3.53 0 6.82-2.08 9.11-5.68.9-1.41.9-3.78 0-5.19-2.29-3.6-5.58-5.68-9.11-5.68-3.53 0-6.82 2.08-9.11 5.68-.9 1.41-.9 3.78 0 5.19 2.29 3.6 5.58 5.68 9.11 5.68Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
|
|
117
117
|
"eye-off": "<path d=\"m14.53 9.47-5.06 5.06a3.576 3.576 0 1 1 5.06-5.06Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path><path d=\"M17.82 5.77C16.07 4.45 14.07 3.73 12 3.73c-3.53 0-6.82 2.08-9.11 5.68-.9 1.41-.9 3.78 0 5.19.79 1.24 1.71 2.31 2.71 3.17M8.42 19.53c1.14.48 2.35.74 3.58.74 3.53 0 6.82-2.08 9.11-5.68.9-1.41.9-3.78 0-5.19-.33-.52-.69-1.01-1.06-1.47\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path><path d=\"M15.51 12.7a3.565 3.565 0 0 1-2.82 2.82M9.47 14.53 2 22M22 2l-7.47 7.47\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
|
|
118
|
+
facebook: "<path d=\"M14 9.3v2.9h2.6c.2 0 .3.2.3.4l-.4 1.9c0 .1-.2.2-.3.2H14V22h-3v-7.2H9.3c-.2 0-.3-.1-.3-.3v-1.9c0-.2.1-.3.3-.3H11V9c0-1.7 1.3-3 3-3h2.7c.2 0 .3.1.3.3v2.4c0 .2-.1.3-.3.3h-2.4c-.2 0-.3.1-.3.3Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-miterlimit=\"10\" stroke-linecap=\"round\"></path><path d=\"M15 22H9c-5 0-7-2-7-7V9c0-5 2-7 7-7h6c5 0 7 2 7 7v6c0 5-2 7-7 7Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
|
|
118
119
|
factory: "<path d=\"M13 22H5c-2 0-3-1-3-3v-8c0-2 1-3 3-3h5v11c0 2 1 3 3 3ZM10.11 4c-.08.3-.11.63-.11 1v3H5V6c0-1.1.9-2 2-2h3.11ZM14 8v5M18 8v5M17 17h-2c-.55 0-1 .45-1 1v4h4v-4c0-.55-.45-1-1-1ZM6 13v4\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-miterlimit=\"10\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path><path d=\"M10 19V5c0-2 1-3 3-3h6c2 0 3 1 3 3v14c0 2-1 3-3 3h-6c-2 0-3-1-3-3Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-miterlimit=\"10\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
|
|
119
120
|
"file-plus-2": "<path d=\"M9.56 18v-5M12 15.5H7M8 2v3M16 2v3M15.81 3.42c3.34.12 5.03 1.35 5.13 6.05l.13 6.17c.08 4.12-.87 6.19-5.87 6.3l-6 .12c-5 .1-6.04-1.94-6.12-6.05l-.14-6.18c-.1-4.7 1.55-6 4.87-6.25l8-.16Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-miterlimit=\"10\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
|
|
120
121
|
"file-text": "<path d=\"M21 7v10c0 3-1.5 5-5 5H8c-3.5 0-5-2-5-5V7c0-3 1.5-5 5-5h8c3.5 0 5 2 5 5Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-miterlimit=\"10\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path><path d=\"M14.5 4.5v2c0 1.1.9 2 2 2h2M8 13h4M8 17h8\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-miterlimit=\"10\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
|
|
@@ -129,6 +130,7 @@ var f = {
|
|
|
129
130
|
gift: "<path d=\"M19.97 10h-16v8c0 3 1 4 4 4h8c3 0 4-1 4-4v-8ZM21.5 7v1c0 1.1-.53 2-2 2h-15c-1.53 0-2-.9-2-2V7c0-1.1.47-2 2-2h15c1.47 0 2 .9 2 2ZM11.64 5H6.12a.936.936 0 0 1 .03-1.3l1.42-1.42a.96.96 0 0 1 1.35 0L11.64 5ZM17.87 5h-5.52l2.72-2.72a.96.96 0 0 1 1.35 0l1.42 1.42c.36.36.37.93.03 1.3Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-miterlimit=\"10\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path><path d=\"M8.94 10v5.14c0 .8.88 1.27 1.55.84l.94-.62a1 1 0 0 1 1.1 0l.89.6a.997.997 0 0 0 1.55-.83V10H8.94Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-miterlimit=\"10\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
|
|
130
131
|
globe: "<path d=\"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path><path d=\"M8 3h1a28.424 28.424 0 0 0 0 18H8M15 3a28.424 28.424 0 0 1 0 18\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path><path d=\"M3 16v-1a28.424 28.424 0 0 0 18 0v1M3 9a28.424 28.424 0 0 1 18 0\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
|
|
131
132
|
globe2: "<path d=\"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path><path d=\"M8 3h1a28.424 28.424 0 0 0 0 18H8M15 3a28.424 28.424 0 0 1 0 18\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path><path d=\"M3 16v-1a28.424 28.424 0 0 0 18 0v1M3 9a28.424 28.424 0 0 1 18 0\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
|
|
133
|
+
google: "<path d=\"M21.6 10.2h-9.4v3.7h5.5c-.1.9-.7 2.3-2 3.2-.8.6-2 1-3.5 1-2.6 0-4.9-1.7-5.7-4.2-.2-.6-.3-1.3-.3-2s.1-1.4.3-2c.1-.2.1-.4.2-.5.9-2.1 3-3.6 5.5-3.6 1.9 0 3.1.8 3.9 1.5l2.8-2.8C17.2 3 14.9 2 12.2 2 8.3 2 4.9 4.2 3.3 7.5c-.7 1.4-1.1 2.9-1.1 4.5s.4 3.1 1.1 4.5c1.6 3.3 5 5.5 8.9 5.5 2.7 0 5-.9 6.6-2.4 1.9-1.7 3-4.3 3-7.4 0-.8-.1-1.4-.2-2Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-miterlimit=\"10\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
|
|
132
134
|
grid: "<path d=\"M22 8.52V3.98C22 2.57 21.36 2 19.77 2h-4.04c-1.59 0-2.23.57-2.23 1.98v4.53c0 1.42.64 1.98 2.23 1.98h4.04c1.59.01 2.23-.56 2.23-1.97ZM22 19.77v-4.04c0-1.59-.64-2.23-2.23-2.23h-4.04c-1.59 0-2.23.64-2.23 2.23v4.04c0 1.59.64 2.23 2.23 2.23h4.04c1.59 0 2.23-.64 2.23-2.23ZM10.5 8.52V3.98C10.5 2.57 9.86 2 8.27 2H4.23C2.64 2 2 2.57 2 3.98v4.53c0 1.42.64 1.98 2.23 1.98h4.04c1.59.01 2.23-.56 2.23-1.97ZM10.5 19.77v-4.04c0-1.59-.64-2.23-2.23-2.23H4.23c-1.59 0-2.23.64-2.23 2.23v4.04C2 21.36 2.64 22 4.23 22h4.04c1.59 0 2.23-.64 2.23-2.23Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
|
|
133
135
|
heart: "<path d=\"M12.62 20.81c-.34.12-.9.12-1.24 0C8.48 19.82 2 15.69 2 8.69 2 5.6 4.49 3.1 7.56 3.1c1.82 0 3.43.88 4.44 2.24a5.53 5.53 0 0 1 4.44-2.24C19.51 3.1 22 5.6 22 8.69c0 7-6.48 11.13-9.38 12.12Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
|
|
134
136
|
history: "<path d=\"M20.75 13.25c0 4.83-3.92 8.75-8.75 8.75s-8.75-3.92-8.75-8.75S7.17 4.5 12 4.5s8.75 3.92 8.75 8.75ZM12 8v5\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path><path d=\"M9 2h6\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-miterlimit=\"10\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
|
|
@@ -136,6 +138,7 @@ var f = {
|
|
|
136
138
|
image: "<path d=\"M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path><path d=\"M9 10a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM2.67 18.95l4.93-3.31c.79-.53 1.93-.47 2.64.14l.33.29c.78.67 2.04.67 2.82 0l4.16-3.57c.78-.67 2.04-.67 2.82 0L22 13.9\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
|
|
137
139
|
inbox: "<path d=\"M12 2v7l2-2M12 9l-2-2M1.98 13h4.41c.38 0 .72.21.89.55l1.17 2.34A2 2 0 0 0 10.24 17h3.53a2 2 0 0 0 1.79-1.11l1.17-2.34a1 1 0 0 1 .89-.55h4.36\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path><path d=\"M7 4.13c-3.54.52-5 2.6-5 6.87v4c0 5 2 7 7 7h6c5 0 7-2 7-7v-4c0-4.27-1.46-6.35-5-6.87\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
|
|
138
140
|
info: "<g transform=\"rotate(180 12 12)\"><path d=\"M12 22c5.5 0 10-4.5 10-10S17.5 2 12 2 2 6.5 2 12s4.5 10 10 10ZM12 8v5\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path><path d=\"M11.995 16h.009\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path></g>",
|
|
141
|
+
instagram: "<path d=\"M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path><path d=\"M12 15.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path><path d=\"M17.636 7h.012\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
|
|
139
142
|
key: "<path d=\"M19.79 14.93a7.575 7.575 0 0 1-7.6 1.87l-4.71 4.7c-.34.35-1.01.56-1.49.49l-2.18-.3c-.72-.1-1.39-.78-1.5-1.5l-.3-2.18c-.07-.48.16-1.15.49-1.49l4.7-4.7c-.8-2.6-.18-5.55 1.88-7.6 2.95-2.95 7.74-2.95 10.7 0 2.96 2.95 2.96 7.76.01 10.71ZM6.89 17.49l2.3 2.3\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-miterlimit=\"10\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path><path d=\"M14.5 11a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
|
|
140
143
|
"layout-dashboard": "<path d=\"M5 10h2c2 0 3-1 3-3V5c0-2-1-3-3-3H5C3 2 2 3 2 5v2c0 2 1 3 3 3ZM17 10h2c2 0 3-1 3-3V5c0-2-1-3-3-3h-2c-2 0-3 1-3 3v2c0 2 1 3 3 3ZM17 22h2c2 0 3-1 3-3v-2c0-2-1-3-3-3h-2c-2 0-3 1-3 3v2c0 2 1 3 3 3ZM5 22h2c2 0 3-1 3-3v-2c0-2-1-3-3-3H5c-2 0-3 1-3 3v2c0 2 1 3 3 3Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-miterlimit=\"10\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
|
|
141
144
|
"layout-grid": "<path d=\"M17 10h2c2 0 3-1 3-3V5c0-2-1-3-3-3h-2c-2 0-3 1-3 3v2c0 2 1 3 3 3ZM5 22h2c2 0 3-1 3-3v-2c0-2-1-3-3-3H5c-2 0-3 1-3 3v2c0 2 1 3 3 3ZM6 10a4 4 0 1 0 0-8 4 4 0 0 0 0 8ZM18 22a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-miterlimit=\"10\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
|
|
@@ -198,6 +201,7 @@ var f = {
|
|
|
198
201
|
whatsapp: "<path d=\"M6.9 20.6c1.5.9 3.3 1.4 5.1 1.4 5.5 0 10-4.5 10-10S17.5 2 12 2 2 6.5 2 12c0 1.8.5 3.5 1.3 5l-.86 3.306a1 1 0 0 0 1.243 1.213L6.9 20.6Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-miterlimit=\"10\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path><path d=\"M16.5 14.848c0 .162-.036.329-.113.491a1.856 1.856 0 0 1-.306.459c-.221.243-.464.418-.74.531-.27.113-.563.171-.878.171-.46 0-.951-.108-1.47-.328a7.922 7.922 0 0 1-1.55-.892 12.95 12.95 0 0 1-1.478-1.26 12.79 12.79 0 0 1-1.257-1.471 8.02 8.02 0 0 1-.884-1.534C7.608 10.5 7.5 10.01 7.5 9.543c0-.306.054-.598.162-.868.108-.275.28-.527.519-.752.288-.284.603-.423.937-.423.126 0 .252.027.365.081.117.054.22.135.302.252l1.046 1.472c.08.112.14.216.18.315.04.094.063.189.063.274a.61.61 0 0 1-.095.32 1.53 1.53 0 0 1-.252.319l-.343.356a.24.24 0 0 0-.072.18c0 .035.005.067.014.103.013.036.027.063.036.09.08.149.22.342.419.576.203.234.419.473.653.711.244.239.478.459.717.662.234.197.428.332.581.413l.082.037a.311.311 0 0 0 .112.018.248.248 0 0 0 .185-.077l.342-.338c.113-.112.221-.197.325-.252a.6.6 0 0 1 .32-.094.72.72 0 0 1 .275.059c.099.04.203.098.315.175l1.492 1.058a.683.683 0 0 1 .248.287.921.921 0 0 1 .072.351Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-miterlimit=\"10\"></path>",
|
|
199
202
|
x: "<path d=\"M6.4 6.4l11.2 11.2M17.6 6.4 6.4 17.6\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>",
|
|
200
203
|
"x-circle": "<path d=\"M12 22c5.5 0 10-4.5 10-10S17.5 2 12 2 2 6.5 2 12s4.5 10 10 10ZM9.17 14.83l5.66-5.66M14.83 14.83 9.17 9.17\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
|
|
204
|
+
youtube: "<path d=\"M17 20H7c-3 0-5-2-5-5V9c0-3 2-5 5-5h10c3 0 5 2 5 5v6c0 3-2 5-5 5Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-miterlimit=\"10\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path><path d=\"m11.4 9.5 2.5 1.5c.9.6.9 1.5 0 2.1l-2.5 1.5c-1 .6-1.8.1-1.8-1v-3c0-1.3.8-1.7 1.8-1.1Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-miterlimit=\"10\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
|
|
201
205
|
zap: "<path d=\"M6.09 13.28h3.09v7.2c0 1.68.91 2.02 2.02.76l7.57-8.6c.93-1.05.54-1.92-.87-1.92h-3.09v-7.2c0-1.68-.91-2.02-2.02-.76l-7.57 8.6c-.92 1.06-.53 1.92.87 1.92Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-miterlimit=\"10\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
|
|
202
206
|
"zoom-in": "<path d=\"M11 20a9 9 0 1 0 0-18 9 9 0 0 0 0 18ZM8.5 11h5M11 13.5v-5M18.93 20.69c.53 1.6 1.74 1.76 2.67.36.85-1.28.29-2.33-1.25-2.33-1.14-.01-1.78.88-1.42 1.97Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
|
|
203
207
|
"zoom-out": "<path d=\"M9 11.7h5M11.5 21a9.5 9.5 0 1 0 0-19 9.5 9.5 0 0 0 0 19ZM22 22l-2-2\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>"
|
|
@@ -3106,6 +3110,7 @@ var M = (e, t) => t.some((t) => String(e ?? "").includes(t)), me = class extends
|
|
|
3106
3110
|
AR: [
|
|
3107
3111
|
"America/Argentina/Buenos_Aires",
|
|
3108
3112
|
"America/Argentina/Catamarca",
|
|
3113
|
+
"America/Argentina/ComodRivadavia",
|
|
3109
3114
|
"America/Argentina/Cordoba",
|
|
3110
3115
|
"America/Argentina/Jujuy",
|
|
3111
3116
|
"America/Argentina/La_Rioja",
|
|
@@ -3120,7 +3125,8 @@ var M = (e, t) => t.some((t) => String(e ?? "").includes(t)), me = class extends
|
|
|
3120
3125
|
"America/Catamarca",
|
|
3121
3126
|
"America/Cordoba",
|
|
3122
3127
|
"America/Jujuy",
|
|
3123
|
-
"America/Mendoza"
|
|
3128
|
+
"America/Mendoza",
|
|
3129
|
+
"America/Rosario"
|
|
3124
3130
|
],
|
|
3125
3131
|
AS: [
|
|
3126
3132
|
"Pacific/Pago_Pago",
|
|
@@ -3133,6 +3139,8 @@ var M = (e, t) => t.some((t) => String(e ?? "").includes(t)), me = class extends
|
|
|
3133
3139
|
"Australia/Adelaide",
|
|
3134
3140
|
"Australia/Brisbane",
|
|
3135
3141
|
"Australia/Broken_Hill",
|
|
3142
|
+
"Australia/Canberra",
|
|
3143
|
+
"Australia/Currie",
|
|
3136
3144
|
"Australia/Darwin",
|
|
3137
3145
|
"Australia/Eucla",
|
|
3138
3146
|
"Australia/Hobart",
|
|
@@ -3180,6 +3188,7 @@ var M = (e, t) => t.some((t) => String(e ?? "").includes(t)), me = class extends
|
|
|
3180
3188
|
"America/Maceio",
|
|
3181
3189
|
"America/Manaus",
|
|
3182
3190
|
"America/Noronha",
|
|
3191
|
+
"America/Porto_Acre",
|
|
3183
3192
|
"America/Porto_Velho",
|
|
3184
3193
|
"America/Recife",
|
|
3185
3194
|
"America/Rio_Branco",
|
|
@@ -3194,7 +3203,7 @@ var M = (e, t) => t.some((t) => String(e ?? "").includes(t)), me = class extends
|
|
|
3194
3203
|
BW: ["Africa/Gaborone"],
|
|
3195
3204
|
BY: ["Europe/Minsk"],
|
|
3196
3205
|
BZ: ["America/Belize"],
|
|
3197
|
-
CA: /* @__PURE__ */ "America/Atikokan.America/Blanc-Sablon.America/Cambridge_Bay.America/Creston.America/Dawson.America/Dawson_Creek.America/Edmonton.America/Fort_Nelson.America/Glace_Bay.America/Goose_Bay.America/Halifax.America/Inuvik.America/Iqaluit.America/Moncton.America/Rankin_Inlet.America/Regina.America/Resolute.America/St_Johns.America/Swift_Current.America/Toronto.America/Vancouver.America/Whitehorse.America/Winnipeg.Canada/Atlantic.Canada/Central.Canada/Eastern.Canada/Mountain.Canada/Newfoundland.Canada/Pacific.Canada/Saskatchewan.Canada/Yukon".split("."),
|
|
3206
|
+
CA: /* @__PURE__ */ "America/Atikokan.America/Blanc-Sablon.America/Cambridge_Bay.America/Coral_Harbour.America/Creston.America/Dawson.America/Dawson_Creek.America/Edmonton.America/Fort_Nelson.America/Glace_Bay.America/Goose_Bay.America/Halifax.America/Inuvik.America/Iqaluit.America/Moncton.America/Montreal.America/Nipigon.America/Pangnirtung.America/Rainy_River.America/Rankin_Inlet.America/Regina.America/Resolute.America/St_Johns.America/Swift_Current.America/Thunder_Bay.America/Toronto.America/Vancouver.America/Whitehorse.America/Winnipeg.America/Yellowknife.Canada/Atlantic.Canada/Central.Canada/Eastern.Canada/Mountain.Canada/Newfoundland.Canada/Pacific.Canada/Saskatchewan.Canada/Yukon".split("."),
|
|
3198
3207
|
CC: ["Indian/Cocos"],
|
|
3199
3208
|
CD: ["Africa/Kinshasa", "Africa/Lubumbashi"],
|
|
3200
3209
|
CF: ["Africa/Bangui"],
|
|
@@ -3211,7 +3220,13 @@ var M = (e, t) => t.some((t) => String(e ?? "").includes(t)), me = class extends
|
|
|
3211
3220
|
"Pacific/Easter"
|
|
3212
3221
|
],
|
|
3213
3222
|
CM: ["Africa/Douala"],
|
|
3214
|
-
CN: [
|
|
3223
|
+
CN: [
|
|
3224
|
+
"Asia/Chongqing",
|
|
3225
|
+
"Asia/Harbin",
|
|
3226
|
+
"Asia/Kashgar",
|
|
3227
|
+
"Asia/Shanghai",
|
|
3228
|
+
"Asia/Urumqi"
|
|
3229
|
+
],
|
|
3215
3230
|
CO: ["America/Bogota"],
|
|
3216
3231
|
CR: ["America/Costa_Rica"],
|
|
3217
3232
|
CU: ["America/Havana"],
|
|
@@ -3249,12 +3264,13 @@ var M = (e, t) => t.some((t) => String(e ?? "").includes(t)), me = class extends
|
|
|
3249
3264
|
"Pacific/Kosrae",
|
|
3250
3265
|
"Pacific/Pohnpei",
|
|
3251
3266
|
"Pacific/Ponape",
|
|
3252
|
-
"Pacific/Truk"
|
|
3267
|
+
"Pacific/Truk",
|
|
3268
|
+
"Pacific/Yap"
|
|
3253
3269
|
],
|
|
3254
3270
|
FO: ["Atlantic/Faeroe", "Atlantic/Faroe"],
|
|
3255
3271
|
FR: ["Europe/Paris"],
|
|
3256
3272
|
GA: ["Africa/Libreville"],
|
|
3257
|
-
GB: ["Europe/London"],
|
|
3273
|
+
GB: ["Europe/Belfast", "Europe/London"],
|
|
3258
3274
|
GD: ["America/Grenada"],
|
|
3259
3275
|
GE: ["Asia/Tbilisi"],
|
|
3260
3276
|
GF: ["America/Cayenne"],
|
|
@@ -3290,7 +3306,7 @@ var M = (e, t) => t.some((t) => String(e ?? "").includes(t)), me = class extends
|
|
|
3290
3306
|
"Asia/Ujung_Pandang"
|
|
3291
3307
|
],
|
|
3292
3308
|
IE: ["Europe/Dublin"],
|
|
3293
|
-
IL: ["Asia/Jerusalem"],
|
|
3309
|
+
IL: ["Asia/Jerusalem", "Asia/Tel_Aviv"],
|
|
3294
3310
|
IM: ["Europe/Isle_of_Man"],
|
|
3295
3311
|
IN: ["Asia/Calcutta", "Asia/Kolkata"],
|
|
3296
3312
|
IO: ["Indian/Chagos"],
|
|
@@ -3306,6 +3322,7 @@ var M = (e, t) => t.some((t) => String(e ?? "").includes(t)), me = class extends
|
|
|
3306
3322
|
KG: ["Asia/Bishkek"],
|
|
3307
3323
|
KH: ["Asia/Phnom_Penh"],
|
|
3308
3324
|
KI: [
|
|
3325
|
+
"Pacific/Enderbury",
|
|
3309
3326
|
"Pacific/Kanton",
|
|
3310
3327
|
"Pacific/Kiritimati",
|
|
3311
3328
|
"Pacific/Tarawa"
|
|
@@ -3338,15 +3355,16 @@ var M = (e, t) => t.some((t) => String(e ?? "").includes(t)), me = class extends
|
|
|
3338
3355
|
LY: ["Africa/Tripoli"],
|
|
3339
3356
|
MA: ["Africa/Casablanca"],
|
|
3340
3357
|
MC: ["Europe/Monaco"],
|
|
3341
|
-
MD: ["Europe/Chisinau"],
|
|
3358
|
+
MD: ["Europe/Chisinau", "Europe/Tiraspol"],
|
|
3342
3359
|
ME: ["Europe/Podgorica"],
|
|
3343
3360
|
MF: ["America/Marigot"],
|
|
3344
3361
|
MG: ["Indian/Antananarivo"],
|
|
3345
3362
|
MH: ["Pacific/Kwajalein", "Pacific/Majuro"],
|
|
3346
3363
|
MK: ["Europe/Skopje"],
|
|
3347
|
-
ML: ["Africa/Bamako"],
|
|
3364
|
+
ML: ["Africa/Bamako", "Africa/Timbuktu"],
|
|
3348
3365
|
MM: ["Asia/Rangoon", "Asia/Yangon"],
|
|
3349
3366
|
MN: [
|
|
3367
|
+
"Asia/Choibalsan",
|
|
3350
3368
|
"Asia/Hovd",
|
|
3351
3369
|
"Asia/Ulaanbaatar",
|
|
3352
3370
|
"Asia/Ulan_Bator"
|
|
@@ -3365,6 +3383,7 @@ var M = (e, t) => t.some((t) => String(e ?? "").includes(t)), me = class extends
|
|
|
3365
3383
|
"America/Cancun",
|
|
3366
3384
|
"America/Chihuahua",
|
|
3367
3385
|
"America/Ciudad_Juarez",
|
|
3386
|
+
"America/Ensenada",
|
|
3368
3387
|
"America/Hermosillo",
|
|
3369
3388
|
"America/Matamoros",
|
|
3370
3389
|
"America/Mazatlan",
|
|
@@ -3372,6 +3391,7 @@ var M = (e, t) => t.some((t) => String(e ?? "").includes(t)), me = class extends
|
|
|
3372
3391
|
"America/Mexico_City",
|
|
3373
3392
|
"America/Monterrey",
|
|
3374
3393
|
"America/Ojinaga",
|
|
3394
|
+
"America/Santa_Isabel",
|
|
3375
3395
|
"America/Tijuana",
|
|
3376
3396
|
"Mexico/BajaNorte",
|
|
3377
3397
|
"Mexico/BajaSur",
|
|
@@ -3427,7 +3447,7 @@ var M = (e, t) => t.some((t) => String(e ?? "").includes(t)), me = class extends
|
|
|
3427
3447
|
SG: ["Asia/Singapore"],
|
|
3428
3448
|
SH: ["Atlantic/St_Helena"],
|
|
3429
3449
|
SI: ["Europe/Ljubljana"],
|
|
3430
|
-
SJ: ["Arctic/Longyearbyen"],
|
|
3450
|
+
SJ: ["Arctic/Longyearbyen", "Atlantic/Jan_Mayen"],
|
|
3431
3451
|
SK: ["Europe/Bratislava"],
|
|
3432
3452
|
SL: ["Africa/Freetown"],
|
|
3433
3453
|
SM: ["Europe/San_Marino"],
|
|
@@ -3458,10 +3478,12 @@ var M = (e, t) => t.some((t) => String(e ?? "").includes(t)), me = class extends
|
|
|
3458
3478
|
UA: [
|
|
3459
3479
|
"Europe/Kiev",
|
|
3460
3480
|
"Europe/Kyiv",
|
|
3461
|
-
"Europe/Simferopol"
|
|
3481
|
+
"Europe/Simferopol",
|
|
3482
|
+
"Europe/Uzhgorod",
|
|
3483
|
+
"Europe/Zaporozhye"
|
|
3462
3484
|
],
|
|
3463
3485
|
UG: ["Africa/Kampala"],
|
|
3464
|
-
US: /* @__PURE__ */ "America/Adak.America/Anchorage.America/Boise.America/Chicago.America/Denver.America/Detroit.America/Indiana/Indianapolis.America/Indiana/Knox.America/Indiana/Marengo.America/Indiana/Petersburg.America/Indiana/Tell_City.America/Indiana/Vevay.America/Indiana/Vincennes.America/Indiana/Winamac.America/Indianapolis.America/Juneau.America/Kentucky/Louisville.America/Kentucky/Monticello.America/Knox_IN.America/Los_Angeles.America/Louisville.America/Menominee.America/Metlakatla.America/New_York.America/Nome.America/North_Dakota/Beulah.America/North_Dakota/Center.America/North_Dakota/New_Salem.America/Phoenix.America/Sitka.America/Yakutat.Pacific/Honolulu.US/Alaska.US/Aleutian.US/Arizona.US/Central.US/East-Indiana.US/Eastern.US/Hawaii.US/Indiana-Starke.US/Michigan.US/Mountain.US/Pacific".split("."),
|
|
3486
|
+
US: /* @__PURE__ */ "America/Adak.America/Anchorage.America/Atka.America/Boise.America/Chicago.America/Denver.America/Detroit.America/Fort_Wayne.America/Indiana/Indianapolis.America/Indiana/Knox.America/Indiana/Marengo.America/Indiana/Petersburg.America/Indiana/Tell_City.America/Indiana/Vevay.America/Indiana/Vincennes.America/Indiana/Winamac.America/Indianapolis.America/Juneau.America/Kentucky/Louisville.America/Kentucky/Monticello.America/Knox_IN.America/Los_Angeles.America/Louisville.America/Menominee.America/Metlakatla.America/New_York.America/Nome.America/North_Dakota/Beulah.America/North_Dakota/Center.America/North_Dakota/New_Salem.America/Phoenix.America/Shiprock.America/Sitka.America/Yakutat.Pacific/Honolulu.US/Alaska.US/Aleutian.US/Arizona.US/Central.US/East-Indiana.US/Eastern.US/Hawaii.US/Indiana-Starke.US/Michigan.US/Mountain.US/Pacific".split("."),
|
|
3465
3487
|
UY: ["America/Montevideo"],
|
|
3466
3488
|
UZ: ["Asia/Samarkand", "Asia/Tashkent"],
|
|
3467
3489
|
VA: ["Europe/Vatican"],
|
|
@@ -3561,7 +3583,15 @@ function Fe(e) {
|
|
|
3561
3583
|
return null;
|
|
3562
3584
|
}
|
|
3563
3585
|
}
|
|
3564
|
-
function Ie(e) {
|
|
3586
|
+
function Ie(e, t, n) {
|
|
3587
|
+
try {
|
|
3588
|
+
let r = B.parsePhoneNumber(t, e), i = r?.nationalNumber;
|
|
3589
|
+
return !i || r.country !== e || i.length > n || !t.endsWith(i) ? null : i;
|
|
3590
|
+
} catch {
|
|
3591
|
+
return null;
|
|
3592
|
+
}
|
|
3593
|
+
}
|
|
3594
|
+
function Le(e) {
|
|
3565
3595
|
if (!B || !e?.trim().startsWith("+")) return null;
|
|
3566
3596
|
try {
|
|
3567
3597
|
let t = new B.AsYouType();
|
|
@@ -3575,7 +3605,7 @@ function Ie(e) {
|
|
|
3575
3605
|
return null;
|
|
3576
3606
|
}
|
|
3577
3607
|
}
|
|
3578
|
-
var
|
|
3608
|
+
var Re = class extends e {
|
|
3579
3609
|
static formAssociated = !0;
|
|
3580
3610
|
static get observedAttributes() {
|
|
3581
3611
|
return [
|
|
@@ -3625,7 +3655,7 @@ var Le = class extends e {
|
|
|
3625
3655
|
return this._national ? `+${R(this._country)}${this._national}` : "";
|
|
3626
3656
|
}
|
|
3627
3657
|
set value(e) {
|
|
3628
|
-
let t = String(e ?? "").trim(), n =
|
|
3658
|
+
let t = String(e ?? "").trim(), n = Le(t);
|
|
3629
3659
|
if (n) this._country = n.country, this._national = n.national.replace(/[^0-9]/g, "");
|
|
3630
3660
|
else if (t.startsWith("+")) {
|
|
3631
3661
|
let e = t.replace(/[^0-9]/g, ""), n = String(R(this._country));
|
|
@@ -3741,7 +3771,11 @@ var Le = class extends e {
|
|
|
3741
3771
|
o.addEventListener("input", (e) => {
|
|
3742
3772
|
e.stopPropagation();
|
|
3743
3773
|
let t = o.selectionStart ?? o.value.length, n = o.value.slice(0, t).replace(/[^0-9]/g, "").length, r = o.value.replace(/[^0-9]/g, ""), i = Fe(this._country);
|
|
3744
|
-
i && r.length > i
|
|
3774
|
+
if (i && r.length > i) {
|
|
3775
|
+
let e = Ie(this._country, r, i);
|
|
3776
|
+
e ? (n = Math.max(0, n - (r.length - e.length)), r = e) : r = r.slice(0, i);
|
|
3777
|
+
}
|
|
3778
|
+
this._national = r;
|
|
3745
3779
|
let a = V(this._country, this._national);
|
|
3746
3780
|
if (o.value !== a) {
|
|
3747
3781
|
o.value = a;
|
|
@@ -3752,7 +3786,7 @@ var Le = class extends e {
|
|
|
3752
3786
|
}), o.addEventListener("change", (e) => e.stopPropagation()), o.addEventListener("blur", () => {
|
|
3753
3787
|
x(this._national.length > 0 && Pe(this.value) === !1), this.value !== this._committedValue && this._emitChange();
|
|
3754
3788
|
}), o.addEventListener("paste", (e) => {
|
|
3755
|
-
let t =
|
|
3789
|
+
let t = Le(e.clipboardData?.getData("text"));
|
|
3756
3790
|
t && (e.preventDefault(), this._national = t.national.replace(/[^0-9]/g, ""), t.country === this._country ? o.value = V(this._country, this._national) : this.setAttribute("country", t.country), this._syncMirror(), this._emitInput(), this._emitChange(), this.querySelector("input[type=tel]")?.focus());
|
|
3757
3791
|
}), this._bindGlobal = () => {
|
|
3758
3792
|
this._teardownGlobals?.(), this._onDocClick = (e) => {
|
|
@@ -3775,7 +3809,7 @@ var Le = class extends e {
|
|
|
3775
3809
|
disconnectedCallback() {
|
|
3776
3810
|
this._teardown();
|
|
3777
3811
|
}
|
|
3778
|
-
}, U = (e) => String(e ?? "").replace(/"/g, """).replace(/</g, "<"),
|
|
3812
|
+
}, U = (e) => String(e ?? "").replace(/"/g, """).replace(/</g, "<"), ze = class extends e {
|
|
3779
3813
|
static formAssociated = !0;
|
|
3780
3814
|
static get observedAttributes() {
|
|
3781
3815
|
return [
|
|
@@ -3981,7 +4015,7 @@ var Le = class extends e {
|
|
|
3981
4015
|
disconnectedCallback() {
|
|
3982
4016
|
this._teardown();
|
|
3983
4017
|
}
|
|
3984
|
-
}, W = (e) => String(e ?? "").replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<"),
|
|
4018
|
+
}, W = (e) => String(e ?? "").replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<"), Be = class extends e {
|
|
3985
4019
|
static formAssociated = !0;
|
|
3986
4020
|
static get observedAttributes() {
|
|
3987
4021
|
return [
|
|
@@ -4123,7 +4157,7 @@ var Le = class extends e {
|
|
|
4123
4157
|
aria-valuenow="${this._value}"
|
|
4124
4158
|
aria-valuetext="${this._formatValue(this._value)}"
|
|
4125
4159
|
${a ? "disabled" : ""}
|
|
4126
|
-
aria-label="${
|
|
4160
|
+
aria-label="${Ve(this.getAttribute("aria-label") || "Value")}"
|
|
4127
4161
|
></button>
|
|
4128
4162
|
`}
|
|
4129
4163
|
${this.hasAttribute("show-value") ? n ? `<span class="slider-value">${this._formatValue(this._start)} – ${this._formatValue(this._end)}</span>` : `<span class="slider-value">${this._formatValue(this._value)}</span>` : ""}
|
|
@@ -4226,7 +4260,7 @@ var Le = class extends e {
|
|
|
4226
4260
|
}, G = (e, t) => {
|
|
4227
4261
|
let n = Number.parseFloat(e);
|
|
4228
4262
|
return Number.isFinite(n) ? n : t;
|
|
4229
|
-
},
|
|
4263
|
+
}, Ve = (e) => String(e ?? "").replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<"), He = class extends e {
|
|
4230
4264
|
static formAssociated = !0;
|
|
4231
4265
|
_accessibleName() {
|
|
4232
4266
|
return this.getAttribute("aria-label") || this.getAttribute("placeholder") || "Add tags";
|
|
@@ -4311,7 +4345,7 @@ var Le = class extends e {
|
|
|
4311
4345
|
e.innerHTML = "";
|
|
4312
4346
|
return;
|
|
4313
4347
|
}
|
|
4314
|
-
e.innerHTML = this._values.map((e) => `<span class="chip chip-sm"><span class="chip-label">${
|
|
4348
|
+
e.innerHTML = this._values.map((e) => `<span class="chip chip-sm"><span class="chip-label">${Ue(e)}</span><button type="button" class="chip-remove" data-remove="${K(e)}" aria-label="Remove ${K(e)}">${p("x")}</button></span>`).join("");
|
|
4315
4349
|
}
|
|
4316
4350
|
}
|
|
4317
4351
|
_wire() {
|
|
@@ -4380,7 +4414,7 @@ var Le = class extends e {
|
|
|
4380
4414
|
disconnectedCallback() {
|
|
4381
4415
|
this._teardown();
|
|
4382
4416
|
}
|
|
4383
|
-
},
|
|
4417
|
+
}, Ue = (e) => String(e ?? "").replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"), K = (e) => String(e ?? "").replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<"), q = (e) => String(e).padStart(2, "0"), We = (e, t) => `${q(e)}:${q(t)}`, J = (e) => {
|
|
4384
4418
|
let t = /^(\d{2}):(\d{2})$/.exec(e || "");
|
|
4385
4419
|
return t ? {
|
|
4386
4420
|
h: +t[1],
|
|
@@ -4388,10 +4422,10 @@ var Le = class extends e {
|
|
|
4388
4422
|
} : null;
|
|
4389
4423
|
}, Y = (e, t = "24") => {
|
|
4390
4424
|
if (!e) return "";
|
|
4391
|
-
if (t === "24") return
|
|
4425
|
+
if (t === "24") return We(e.h, e.m);
|
|
4392
4426
|
let n = e.h % 12 || 12, r = e.h >= 12 ? "PM" : "AM";
|
|
4393
4427
|
return `${n}:${q(e.m)} ${r}`;
|
|
4394
|
-
},
|
|
4428
|
+
}, Ge = class extends e {
|
|
4395
4429
|
static formAssociated = !0;
|
|
4396
4430
|
static get observedAttributes() {
|
|
4397
4431
|
return [
|
|
@@ -4476,7 +4510,7 @@ var Le = class extends e {
|
|
|
4476
4510
|
if (!e) return;
|
|
4477
4511
|
let t = this.getAttribute("format") || "24", n = this._buildTimes(), r = J(this._value), i = this._focus, a = "";
|
|
4478
4512
|
for (let e = 0; e < n.length; e++) {
|
|
4479
|
-
let o = n[e], s =
|
|
4513
|
+
let o = n[e], s = We(o.h, o.m), c = r && r.h === o.h && r.m === o.m;
|
|
4480
4514
|
a += `<button type="button" class="timepicker-option${c ? " is-selected" : ""}" data-hm="${s}" role="option" tabindex="${i === e ? "0" : "-1"}"${c ? " aria-selected=\"true\"" : ""}>${Y(o, t)}</button>`;
|
|
4481
4515
|
}
|
|
4482
4516
|
e.innerHTML = a, this._focusActive();
|
|
@@ -4575,7 +4609,7 @@ var Le = class extends e {
|
|
|
4575
4609
|
disconnectedCallback() {
|
|
4576
4610
|
this._teardown();
|
|
4577
4611
|
}
|
|
4578
|
-
},
|
|
4612
|
+
}, Ke = "wui-wizard-step", qe = class extends e {
|
|
4579
4613
|
static get observedAttributes() {
|
|
4580
4614
|
return [
|
|
4581
4615
|
"active",
|
|
@@ -4609,7 +4643,7 @@ var Le = class extends e {
|
|
|
4609
4643
|
this._beforeNext = typeof e == "function" ? e : null;
|
|
4610
4644
|
}
|
|
4611
4645
|
get _steps() {
|
|
4612
|
-
return [...this.querySelectorAll(`:scope > ${
|
|
4646
|
+
return [...this.querySelectorAll(`:scope > ${Ke}`)];
|
|
4613
4647
|
}
|
|
4614
4648
|
refresh() {
|
|
4615
4649
|
this._rendered && this._renderChrome();
|
|
@@ -4742,7 +4776,7 @@ var Le = class extends e {
|
|
|
4742
4776
|
_reflectActive(e) {
|
|
4743
4777
|
this._reflecting = !0, this.setAttribute("active", String(e)), this._reflecting = !1;
|
|
4744
4778
|
}
|
|
4745
|
-
}, X = (e) => String(e ?? "").replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"),
|
|
4779
|
+
}, X = (e) => String(e ?? "").replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"), Je = class extends e {
|
|
4746
4780
|
static get observedAttributes() {
|
|
4747
4781
|
return [
|
|
4748
4782
|
"label",
|
|
@@ -4756,8 +4790,8 @@ var Le = class extends e {
|
|
|
4756
4790
|
let e = this.closest("wui-wizard");
|
|
4757
4791
|
e && typeof e.refresh == "function" && e.refresh();
|
|
4758
4792
|
}
|
|
4759
|
-
},
|
|
4760
|
-
async function
|
|
4793
|
+
}, Ye = 2e3;
|
|
4794
|
+
async function Xe(e) {
|
|
4761
4795
|
try {
|
|
4762
4796
|
if (navigator.clipboard?.writeText) return await navigator.clipboard.writeText(e), !0;
|
|
4763
4797
|
} catch {}
|
|
@@ -4772,14 +4806,14 @@ async function Ye(e) {
|
|
|
4772
4806
|
}
|
|
4773
4807
|
//#endregion
|
|
4774
4808
|
//#region src/fileValidation.js
|
|
4775
|
-
var
|
|
4809
|
+
var Ze = "image/png,image/jpeg,image/webp", Qe = 5, $e = {
|
|
4776
4810
|
"image/png": [".png"],
|
|
4777
4811
|
"image/jpeg": [".jpg", ".jpeg"],
|
|
4778
4812
|
"image/webp": [".webp"],
|
|
4779
4813
|
"image/gif": [".gif"],
|
|
4780
4814
|
"image/svg+xml": [".svg"],
|
|
4781
4815
|
"application/pdf": [".pdf"]
|
|
4782
|
-
},
|
|
4816
|
+
}, et = {
|
|
4783
4817
|
"image/png": "PNG",
|
|
4784
4818
|
"image/jpeg": "JPG",
|
|
4785
4819
|
"image/webp": "WEBP",
|
|
@@ -4793,7 +4827,7 @@ var Xe = "image/png,image/jpeg,image/webp", Ze = 5, Qe = {
|
|
|
4793
4827
|
".gif": "GIF",
|
|
4794
4828
|
".svg": "SVG",
|
|
4795
4829
|
".pdf": "PDF"
|
|
4796
|
-
}, Z = (e) => String(e || "").split(",").map((e) => e.trim().toLowerCase()).filter(Boolean),
|
|
4830
|
+
}, Z = (e) => String(e || "").split(",").map((e) => e.trim().toLowerCase()).filter(Boolean), tt = [
|
|
4797
4831
|
".png",
|
|
4798
4832
|
".jpg",
|
|
4799
4833
|
".jpeg",
|
|
@@ -4804,35 +4838,35 @@ var Xe = "image/png,image/jpeg,image/webp", Ze = 5, Qe = {
|
|
|
4804
4838
|
".avif",
|
|
4805
4839
|
".heic"
|
|
4806
4840
|
];
|
|
4807
|
-
function
|
|
4841
|
+
function nt(e) {
|
|
4808
4842
|
if (!e) return !1;
|
|
4809
4843
|
let t = typeof e == "object" && e.type ? String(e.type).toLowerCase() : "";
|
|
4810
4844
|
if (t) return t.startsWith("image/");
|
|
4811
4845
|
let n = typeof e == "string" ? e : e.name || e.url || "", r = String(n).toLowerCase();
|
|
4812
|
-
return
|
|
4846
|
+
return tt.some((e) => r.endsWith(e));
|
|
4813
4847
|
}
|
|
4814
|
-
function
|
|
4848
|
+
function rt(e) {
|
|
4815
4849
|
let t = Z(e);
|
|
4816
|
-
return t.length ? t.every((e) => e.startsWith(".") ?
|
|
4850
|
+
return t.length ? t.every((e) => e.startsWith(".") ? tt.includes(e) : e === "image/*" || e.startsWith("image/")) : !1;
|
|
4817
4851
|
}
|
|
4818
|
-
function
|
|
4852
|
+
function it(e) {
|
|
4819
4853
|
let t = [];
|
|
4820
4854
|
for (let n of Z(e)) {
|
|
4821
|
-
let e =
|
|
4855
|
+
let e = et[n] || (n.startsWith(".") ? n.slice(1).toUpperCase() : n.toUpperCase());
|
|
4822
4856
|
t.includes(e) || t.push(e);
|
|
4823
4857
|
}
|
|
4824
4858
|
return t.length <= 1 ? t[0] || "supported" : `${t.slice(0, -1).join(", ")} or ${t[t.length - 1]}`;
|
|
4825
4859
|
}
|
|
4826
|
-
function
|
|
4860
|
+
function at(e, t) {
|
|
4827
4861
|
let n = Z(t);
|
|
4828
4862
|
if (!n.length) return !0;
|
|
4829
4863
|
let r = (e.type || "").toLowerCase(), i = (e.name || "").toLowerCase();
|
|
4830
|
-
return n.some((e) => e.startsWith(".") ? i.endsWith(e) : e.endsWith("/*") ? r.startsWith(e.slice(0, -1)) : r && r === e ? !0 : !r && (
|
|
4864
|
+
return n.some((e) => e.startsWith(".") ? i.endsWith(e) : e.endsWith("/*") ? r.startsWith(e.slice(0, -1)) : r && r === e ? !0 : !r && ($e[e] || []).some((e) => i.endsWith(e)));
|
|
4831
4865
|
}
|
|
4832
|
-
function
|
|
4866
|
+
function ot(e, t = {}) {
|
|
4833
4867
|
if (!e) return null;
|
|
4834
|
-
let n = t.accept === void 0 ?
|
|
4835
|
-
return
|
|
4868
|
+
let n = t.accept === void 0 ? Ze : t.accept, r = t.maxSizeMb || 5;
|
|
4869
|
+
return at(e, n) ? e.size > r * 1024 * 1024 ? `Keep the file under ${r} MB.` : null : `Choose a ${it(n)} file.`;
|
|
4836
4870
|
}
|
|
4837
4871
|
//#endregion
|
|
4838
4872
|
//#region src/passwordRules.js
|
|
@@ -4843,15 +4877,15 @@ var Q = {
|
|
|
4843
4877
|
digit: !0,
|
|
4844
4878
|
special: !0,
|
|
4845
4879
|
uniqueChars: 0
|
|
4846
|
-
},
|
|
4847
|
-
function
|
|
4880
|
+
}, st = "Password Requirements";
|
|
4881
|
+
function ct(e) {
|
|
4848
4882
|
return e === !0 || e == null ? { ...Q } : {
|
|
4849
4883
|
...Q,
|
|
4850
4884
|
...e
|
|
4851
4885
|
};
|
|
4852
4886
|
}
|
|
4853
|
-
function
|
|
4854
|
-
let t =
|
|
4887
|
+
function lt(e) {
|
|
4888
|
+
let t = ct(e), n = [];
|
|
4855
4889
|
if (t.minLength > 0 && n.push({
|
|
4856
4890
|
key: "length",
|
|
4857
4891
|
label: `At least ${t.minLength} characters long`,
|
|
@@ -4882,25 +4916,25 @@ function ct(e) {
|
|
|
4882
4916
|
}
|
|
4883
4917
|
return n;
|
|
4884
4918
|
}
|
|
4885
|
-
function
|
|
4919
|
+
function ut(e, t) {
|
|
4886
4920
|
let n = e == null ? "" : String(e);
|
|
4887
|
-
return
|
|
4921
|
+
return lt(t).map((e) => ({
|
|
4888
4922
|
key: e.key,
|
|
4889
4923
|
label: e.label,
|
|
4890
4924
|
met: e.test(n)
|
|
4891
4925
|
}));
|
|
4892
4926
|
}
|
|
4893
|
-
function
|
|
4894
|
-
return
|
|
4927
|
+
function dt(e, t) {
|
|
4928
|
+
return ut(e, t).every((e) => e.met);
|
|
4895
4929
|
}
|
|
4896
4930
|
//#endregion
|
|
4897
4931
|
//#region src/index.js
|
|
4898
4932
|
var $ = (e, t) => {
|
|
4899
4933
|
typeof customElements < "u" && !customElements.get(e) && customElements.define(e, t);
|
|
4900
4934
|
};
|
|
4901
|
-
function
|
|
4902
|
-
$("wui-select",
|
|
4935
|
+
function ft() {
|
|
4936
|
+
$("wui-select", ze), $("wui-phone", Re), $("wui-datepicker", ee), $("wui-date-range", te), $("wui-dock", ne), $("wui-feedback", oe), $("wui-slider", Be), $("wui-timepicker", Ge), $("wui-autocomplete", y), $("wui-multiselect", me), $("wui-taginput", He), $("wui-otp", Ce), $("wui-status-icon", r), $("wui-wizard-step", Je), $("wui-wizard", qe);
|
|
4903
4937
|
}
|
|
4904
|
-
|
|
4938
|
+
ft();
|
|
4905
4939
|
//#endregion
|
|
4906
|
-
export {
|
|
4940
|
+
export { Ye as COPY_FEEDBACK_MS, Ze as DEFAULT_IMAGE_ACCEPT, Qe as DEFAULT_MAX_SIZE_MB, Q as DEFAULT_PASSWORD_RULES, st as DEFAULT_REQUIREMENTS_TITLE, n as STATUS_TONES, y as WuiAutocomplete, ee as WuiDatePicker, te as WuiDateRange, ne as WuiDock, oe as WuiFeedback, me as WuiMultiSelect, Ce as WuiOtp, Re as WuiPhone, ze as WuiSelect, Be as WuiSlider, r as WuiStatusIcon, He as WuiTagInput, Ge as WuiTimePicker, qe as WuiWizard, Je as WuiWizardStep, it as acceptLabel, lt as buildPasswordRules, Xe as copyTextToClipboard, ft as defineWeborityElements, ut as evaluatePassword, p as glyphSvg, nt as isImageFile, rt as isImageOnlyAccept, at as matchesAccept, dt as passwordSatisfies, ot as validateFile };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webority/ui-elements",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.3",
|
|
4
4
|
"description": "Webority framework-agnostic UI custom elements (<wui-*>) — the single implementation of the interactive components, styled by @webority/theme. Used natively in Razor and wrapped by @webority/ui-react.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"type": "module",
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"libphonenumber-js": "^1.13.9"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@vitest/coverage-v8": "^
|
|
33
|
+
"@vitest/coverage-v8": "^4.1.11",
|
|
34
34
|
"jsdom": "^26.0.0",
|
|
35
35
|
"vite": "^8.0.12",
|
|
36
|
-
"vitest": "^
|
|
36
|
+
"vitest": "^4.1.11"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"build": "vite build && node ../../scripts/sync-rcl-assets.mjs elements",
|