@synergy-design-system/components 0.1.0 → 1.0.0-main.2

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.
Files changed (80) hide show
  1. package/package.json +29 -10
  2. package/dist/chunks/chunk.2A3352EO.js +0 -10
  3. package/dist/chunks/chunk.2CFEYJLE.js +0 -29
  4. package/dist/chunks/chunk.2DA7CIOQ.js +0 -44
  5. package/dist/chunks/chunk.4NMNW5OM.js +0 -22
  6. package/dist/chunks/chunk.7XI5LKCC.js +0 -14
  7. package/dist/chunks/chunk.HQUF2ZAX.js +0 -62
  8. package/dist/chunks/chunk.HSF5YXAS.js +0 -294
  9. package/dist/chunks/chunk.KHU4AFPL.js +0 -11
  10. package/dist/chunks/chunk.MAS2SHYD.js +0 -41
  11. package/dist/chunks/chunk.NBKDLFEY.js +0 -201
  12. package/dist/chunks/chunk.O3LUPMYG.js +0 -372
  13. package/dist/chunks/chunk.PM7NIY3M.js +0 -35
  14. package/dist/chunks/chunk.Q5SD5LHE.js +0 -607
  15. package/dist/chunks/chunk.QPNUJNT5.js +0 -70
  16. package/dist/chunks/chunk.SVIWEI6P.js +0 -27
  17. package/dist/chunks/chunk.VRTJZYIC.js +0 -127
  18. package/dist/chunks/chunk.XVEDHRRP.js +0 -500
  19. package/dist/chunks/chunk.Y5USHY74.js +0 -31
  20. package/dist/chunks/chunk.Z6AW3P62.js +0 -317
  21. package/dist/components/button/button.component.d.ts +0 -132
  22. package/dist/components/button/button.component.js +0 -21
  23. package/dist/components/button/button.d.ts +0 -8
  24. package/dist/components/button/button.js +0 -25
  25. package/dist/components/button/button.styles.d.ts +0 -2
  26. package/dist/components/button/button.styles.js +0 -8
  27. package/dist/components/icon/icon.component.d.ts +0 -42
  28. package/dist/components/icon/icon.component.js +0 -14
  29. package/dist/components/icon/icon.d.ts +0 -8
  30. package/dist/components/icon/icon.js +0 -18
  31. package/dist/components/icon/icon.styles.d.ts +0 -2
  32. package/dist/components/icon/icon.styles.js +0 -8
  33. package/dist/components/icon/library.d.ts +0 -19
  34. package/dist/components/icon/library.default.d.ts +0 -3
  35. package/dist/components/icon/library.default.js +0 -8
  36. package/dist/components/icon/library.js +0 -18
  37. package/dist/components/icon/library.system.d.ts +0 -3
  38. package/dist/components/icon/library.system.js +0 -7
  39. package/dist/components/input/input.component.d.ts +0 -179
  40. package/dist/components/input/input.component.js +0 -19
  41. package/dist/components/input/input.d.ts +0 -8
  42. package/dist/components/input/input.js +0 -20
  43. package/dist/components/input/input.styles.d.ts +0 -2
  44. package/dist/components/input/input.styles.js +0 -8
  45. package/dist/components/spinner/spinner.component.d.ts +0 -20
  46. package/dist/components/spinner/spinner.component.js +0 -12
  47. package/dist/components/spinner/spinner.styles.d.ts +0 -2
  48. package/dist/components/spinner/spinner.styles.js +0 -8
  49. package/dist/custom-elements.json +0 -1967
  50. package/dist/events/events.d.ts +0 -8
  51. package/dist/events/syn-blur.d.ts +0 -6
  52. package/dist/events/syn-change.d.ts +0 -6
  53. package/dist/events/syn-clear.d.ts +0 -6
  54. package/dist/events/syn-error.d.ts +0 -8
  55. package/dist/events/syn-focus.d.ts +0 -6
  56. package/dist/events/syn-input.d.ts +0 -6
  57. package/dist/events/syn-invalid.d.ts +0 -6
  58. package/dist/events/syn-load.d.ts +0 -6
  59. package/dist/internal/default-value.d.ts +0 -2
  60. package/dist/internal/form.d.ts +0 -73
  61. package/dist/internal/slot.d.ts +0 -23
  62. package/dist/internal/synergy-element.d.ts +0 -47
  63. package/dist/internal/test/form-control-base-tests.d.ts +0 -7
  64. package/dist/internal/watch.d.ts +0 -26
  65. package/dist/styles/component.styles.d.ts +0 -2
  66. package/dist/styles/form-control.styles.d.ts +0 -2
  67. package/dist/synergy-autoloader.d.ts +0 -4
  68. package/dist/synergy-autoloader.js +0 -40
  69. package/dist/synergy.d.ts +0 -2
  70. package/dist/synergy.js +0 -20
  71. package/dist/translations/de.d.ts +0 -3
  72. package/dist/translations/de.js +0 -45
  73. package/dist/translations/en.d.ts +0 -3
  74. package/dist/translations/en.js +0 -7
  75. package/dist/utilities/base-path.d.ts +0 -18
  76. package/dist/utilities/base-path.js +0 -9
  77. package/dist/utilities/localize.d.ts +0 -33
  78. package/dist/utilities/localize.js +0 -10
  79. package/dist/vscode.html-custom-data.json +0 -400
  80. package/dist/web-types.json +0 -790
@@ -1,201 +0,0 @@
1
- import {
2
- icon_styles_default
3
- } from "./chunk.SVIWEI6P.js";
4
- import {
5
- getIconLibrary,
6
- unwatchIcon,
7
- watchIcon
8
- } from "./chunk.2DA7CIOQ.js";
9
- import {
10
- SynergyElement
11
- } from "./chunk.HQUF2ZAX.js";
12
- import {
13
- __decorateClass,
14
- __spreadValues
15
- } from "./chunk.PM7NIY3M.js";
16
-
17
- // src/components/icon/icon.component.ts
18
- import { html } from "lit";
19
- import { isTemplateResult } from "lit/directive-helpers.js";
20
- import { property, state } from "lit/decorators.js";
21
-
22
- // src/internal/watch.ts
23
- function watch(propertyName, options) {
24
- const resolvedOptions = __spreadValues({
25
- waitUntilFirstUpdate: false
26
- }, options);
27
- return (proto, decoratedFnName) => {
28
- const { update } = proto;
29
- const watchedProperties = Array.isArray(propertyName) ? propertyName : [propertyName];
30
- proto.update = function(changedProps) {
31
- watchedProperties.forEach((property2) => {
32
- const key = property2;
33
- if (changedProps.has(key)) {
34
- const oldValue = changedProps.get(key);
35
- const newValue = this[key];
36
- if (oldValue !== newValue) {
37
- if (!resolvedOptions.waitUntilFirstUpdate || this.hasUpdated) {
38
- this[decoratedFnName](oldValue, newValue);
39
- }
40
- }
41
- }
42
- });
43
- update.call(this, changedProps);
44
- };
45
- };
46
- }
47
-
48
- // src/components/icon/icon.component.ts
49
- var CACHEABLE_ERROR = Symbol();
50
- var RETRYABLE_ERROR = Symbol();
51
- var parser;
52
- var iconCache = /* @__PURE__ */ new Map();
53
- var SynIcon = class extends SynergyElement {
54
- constructor() {
55
- super(...arguments);
56
- this.initialRender = false;
57
- this.svg = null;
58
- this.label = "";
59
- this.library = "default";
60
- }
61
- /** Given a URL, this function returns the resulting SVG element or an appropriate error symbol. */
62
- async resolveIcon(url, library) {
63
- var _a;
64
- let fileData;
65
- if (library == null ? void 0 : library.spriteSheet) {
66
- return html`<svg part="svg">
67
- <use part="use" href="${url}"></use>
68
- </svg>`;
69
- }
70
- try {
71
- fileData = await fetch(url, { mode: "cors" });
72
- if (!fileData.ok)
73
- return fileData.status === 410 ? CACHEABLE_ERROR : RETRYABLE_ERROR;
74
- } catch (e) {
75
- return RETRYABLE_ERROR;
76
- }
77
- try {
78
- const div = document.createElement("div");
79
- div.innerHTML = await fileData.text();
80
- const svg = div.firstElementChild;
81
- if (((_a = svg == null ? void 0 : svg.tagName) == null ? void 0 : _a.toLowerCase()) !== "svg")
82
- return CACHEABLE_ERROR;
83
- if (!parser)
84
- parser = new DOMParser();
85
- const doc = parser.parseFromString(svg.outerHTML, "text/html");
86
- const svgEl = doc.body.querySelector("svg");
87
- if (!svgEl)
88
- return CACHEABLE_ERROR;
89
- svgEl.part.add("svg");
90
- return document.adoptNode(svgEl);
91
- } catch (e) {
92
- return CACHEABLE_ERROR;
93
- }
94
- }
95
- connectedCallback() {
96
- super.connectedCallback();
97
- watchIcon(this);
98
- }
99
- firstUpdated() {
100
- this.initialRender = true;
101
- this.setIcon();
102
- }
103
- disconnectedCallback() {
104
- super.disconnectedCallback();
105
- unwatchIcon(this);
106
- }
107
- getIconSource() {
108
- const library = getIconLibrary(this.library);
109
- if (this.name && library) {
110
- return {
111
- url: library.resolver(this.name),
112
- fromLibrary: true
113
- };
114
- }
115
- return {
116
- url: this.src,
117
- fromLibrary: false
118
- };
119
- }
120
- handleLabelChange() {
121
- const hasLabel = typeof this.label === "string" && this.label.length > 0;
122
- if (hasLabel) {
123
- this.setAttribute("role", "img");
124
- this.setAttribute("aria-label", this.label);
125
- this.removeAttribute("aria-hidden");
126
- } else {
127
- this.removeAttribute("role");
128
- this.removeAttribute("aria-label");
129
- this.setAttribute("aria-hidden", "true");
130
- }
131
- }
132
- async setIcon() {
133
- var _a;
134
- const { url, fromLibrary } = this.getIconSource();
135
- const library = fromLibrary ? getIconLibrary(this.library) : void 0;
136
- if (!url) {
137
- this.svg = null;
138
- return;
139
- }
140
- let iconResolver = iconCache.get(url);
141
- if (!iconResolver) {
142
- iconResolver = this.resolveIcon(url, library);
143
- iconCache.set(url, iconResolver);
144
- }
145
- if (!this.initialRender) {
146
- return;
147
- }
148
- const svg = await iconResolver;
149
- if (svg === RETRYABLE_ERROR) {
150
- iconCache.delete(url);
151
- }
152
- if (url !== this.getIconSource().url) {
153
- return;
154
- }
155
- if (isTemplateResult(svg)) {
156
- this.svg = svg;
157
- return;
158
- }
159
- switch (svg) {
160
- case RETRYABLE_ERROR:
161
- case CACHEABLE_ERROR:
162
- this.svg = null;
163
- this.emit("syn-error");
164
- break;
165
- default:
166
- this.svg = svg.cloneNode(true);
167
- (_a = library == null ? void 0 : library.mutator) == null ? void 0 : _a.call(library, this.svg);
168
- this.emit("syn-load");
169
- }
170
- }
171
- render() {
172
- return this.svg;
173
- }
174
- };
175
- SynIcon.styles = icon_styles_default;
176
- __decorateClass([
177
- state()
178
- ], SynIcon.prototype, "svg", 2);
179
- __decorateClass([
180
- property({ reflect: true })
181
- ], SynIcon.prototype, "name", 2);
182
- __decorateClass([
183
- property()
184
- ], SynIcon.prototype, "src", 2);
185
- __decorateClass([
186
- property()
187
- ], SynIcon.prototype, "label", 2);
188
- __decorateClass([
189
- property({ reflect: true })
190
- ], SynIcon.prototype, "library", 2);
191
- __decorateClass([
192
- watch("label")
193
- ], SynIcon.prototype, "handleLabelChange", 1);
194
- __decorateClass([
195
- watch(["name", "src", "library"])
196
- ], SynIcon.prototype, "setIcon", 1);
197
-
198
- export {
199
- watch,
200
- SynIcon
201
- };
@@ -1,372 +0,0 @@
1
- import {
2
- component_styles_default
3
- } from "./chunk.4NMNW5OM.js";
4
-
5
- // src/components/input/input.styles.ts
6
- import { css as css2 } from "lit";
7
-
8
- // src/styles/form-control.styles.ts
9
- import { css } from "lit";
10
- var form_control_styles_default = css`
11
- /* stylelint-disable */
12
- .form-control .form-control__label {
13
- display: none;
14
- }
15
-
16
- .form-control .form-control__help-text {
17
- display: none;
18
- }
19
-
20
- /* Label */
21
- .form-control--has-label .form-control__label {
22
- display: inline-block;
23
- color: var(--syn-input-label-color);
24
- margin-bottom: var(--syn-spacing-3x-small);
25
- }
26
-
27
- .form-control--has-label.form-control--small .form-control__label {
28
- font-size: var(--syn-input-label-font-size-small);
29
- }
30
-
31
- .form-control--has-label.form-control--medium .form-control__label {
32
- font-size: var(--syn-input-label-font-size-medium);
33
- }
34
-
35
- .form-control--has-label.form-control--large .form-control__label {
36
- font-size: var(--syn-input-label-font-size-large);
37
- }
38
-
39
- :host([required]) .form-control--has-label .form-control__label::after {
40
- content: var(--syn-input-required-content);
41
- margin-inline-start: var(--syn-input-required-content-offset);
42
- color: var(--syn-input-required-content-color);
43
- }
44
-
45
- /* Help text */
46
- .form-control--has-help-text .form-control__help-text {
47
- display: block;
48
- color: var(--syn-input-help-text-color);
49
- margin-top: var(--syn-spacing-3x-small);
50
- }
51
-
52
- .form-control--has-help-text.form-control--small .form-control__help-text {
53
- font-size: var(--syn-input-help-text-font-size-small);
54
- }
55
-
56
- .form-control--has-help-text.form-control--medium .form-control__help-text {
57
- font-size: var(--syn-input-help-text-font-size-medium);
58
- }
59
-
60
- .form-control--has-help-text.form-control--large .form-control__help-text {
61
- font-size: var(--syn-input-help-text-font-size-large);
62
- }
63
-
64
- .form-control--has-help-text.form-control--radio-group .form-control__help-text {
65
- margin-top: var(--syn-spacing-2x-small);
66
- }
67
- `;
68
-
69
- // src/components/input/input.styles.ts
70
- var input_styles_default = css2`
71
- /* stylelint-disable */
72
- ${component_styles_default}
73
- ${form_control_styles_default}
74
-
75
- :host {
76
- display: block;
77
- }
78
-
79
- .input {
80
- flex: 1 1 auto;
81
- display: inline-flex;
82
- align-items: stretch;
83
- justify-content: start;
84
- position: relative;
85
- width: 100%;
86
- font-family: var(--syn-input-font-family);
87
- font-weight: var(--syn-input-font-weight);
88
- letter-spacing: var(--syn-input-letter-spacing);
89
- vertical-align: middle;
90
- overflow: hidden;
91
- cursor: text;
92
- transition:
93
- var(--syn-transition-fast) color,
94
- var(--syn-transition-fast) border,
95
- var(--syn-transition-fast) box-shadow,
96
- var(--syn-transition-fast) background-color;
97
- }
98
-
99
- /* Standard inputs */
100
- .input--standard {
101
- background-color: var(--syn-input-background-color);
102
- border: solid var(--syn-input-border-width) var(--syn-input-border-color);
103
- }
104
-
105
- .input--standard:hover:not(.input--disabled) {
106
- background-color: var(--syn-input-background-color-hover);
107
- border-color: var(--syn-input-border-color-hover);
108
- }
109
-
110
- .input--standard.input--focused:not(.input--disabled) {
111
- background-color: var(--syn-input-background-color-focus);
112
- border-color: var(--syn-input-border-color-focus);
113
- box-shadow: 0 0 0 var(--syn-focus-ring-width) var(--syn-input-focus-ring-color);
114
- }
115
-
116
- .input--standard.input--focused:not(.input--disabled) .input__control {
117
- color: var(--syn-input-color-focus);
118
- }
119
-
120
- .input--standard.input--disabled {
121
- background-color: var(--syn-input-background-color-disabled);
122
- border-color: var(--syn-input-border-color-disabled);
123
- opacity: 0.5;
124
- cursor: not-allowed;
125
- }
126
-
127
- .input--standard.input--disabled .input__control {
128
- color: var(--syn-input-color-disabled);
129
- }
130
-
131
- .input--standard.input--disabled .input__control::placeholder {
132
- color: var(--syn-input-placeholder-color-disabled);
133
- }
134
-
135
- /* Filled inputs */
136
- .input--filled {
137
- border: none;
138
- background-color: var(--syn-input-filled-background-color);
139
- color: var(--syn-input-color);
140
- }
141
-
142
- .input--filled:hover:not(.input--disabled) {
143
- background-color: var(--syn-input-filled-background-color-hover);
144
- }
145
-
146
- .input--filled.input--focused:not(.input--disabled) {
147
- background-color: var(--syn-input-filled-background-color-focus);
148
- outline: var(--syn-focus-ring);
149
- outline-offset: var(--syn-focus-ring-offset);
150
- }
151
-
152
- .input--filled.input--disabled {
153
- background-color: var(--syn-input-filled-background-color-disabled);
154
- opacity: 0.5;
155
- cursor: not-allowed;
156
- }
157
-
158
- .input__control {
159
- flex: 1 1 auto;
160
- font-family: inherit;
161
- font-size: inherit;
162
- font-weight: inherit;
163
- min-width: 0;
164
- height: 100%;
165
- color: var(--syn-input-color);
166
- border: none;
167
- background: inherit;
168
- box-shadow: none;
169
- padding: 0;
170
- margin: 0;
171
- cursor: inherit;
172
- -webkit-appearance: none;
173
- }
174
-
175
- .input__control::-webkit-search-decoration,
176
- .input__control::-webkit-search-cancel-button,
177
- .input__control::-webkit-search-results-button,
178
- .input__control::-webkit-search-results-decoration {
179
- -webkit-appearance: none;
180
- }
181
-
182
- .input__control:-webkit-autofill,
183
- .input__control:-webkit-autofill:hover,
184
- .input__control:-webkit-autofill:focus,
185
- .input__control:-webkit-autofill:active {
186
- box-shadow: 0 0 0 var(--syn-input-height-large) var(--syn-input-background-color-hover) inset !important;
187
- -webkit-text-fill-color: var(--syn-color-primary-500);
188
- caret-color: var(--syn-input-color);
189
- }
190
-
191
- .input--filled .input__control:-webkit-autofill,
192
- .input--filled .input__control:-webkit-autofill:hover,
193
- .input--filled .input__control:-webkit-autofill:focus,
194
- .input--filled .input__control:-webkit-autofill:active {
195
- box-shadow: 0 0 0 var(--syn-input-height-large) var(--syn-input-filled-background-color) inset !important;
196
- }
197
-
198
- .input__control::placeholder {
199
- color: var(--syn-input-placeholder-color);
200
- user-select: none;
201
- -webkit-user-select: none;
202
- }
203
-
204
- .input:hover:not(.input--disabled) .input__control {
205
- color: var(--syn-input-color-hover);
206
- }
207
-
208
- .input__control:focus {
209
- outline: none;
210
- }
211
-
212
- .input__prefix,
213
- .input__suffix {
214
- display: inline-flex;
215
- flex: 0 0 auto;
216
- align-items: center;
217
- cursor: default;
218
- }
219
-
220
- .input__prefix ::slotted(syn-icon),
221
- .input__suffix ::slotted(syn-icon) {
222
- color: var(--syn-input-icon-color);
223
- }
224
-
225
- /*
226
- * Size modifiers
227
- */
228
-
229
- .input--small {
230
- border-radius: var(--syn-input-border-radius-small);
231
- font-size: var(--syn-input-font-size-small);
232
- height: var(--syn-input-height-small);
233
- }
234
-
235
- .input--small .input__control {
236
- height: calc(var(--syn-input-height-small) - var(--syn-input-border-width) * 2);
237
- padding: 0 var(--syn-input-spacing-small);
238
- }
239
-
240
- .input--small .input__clear,
241
- .input--small .input__password-toggle {
242
- width: calc(1em + var(--syn-input-spacing-small) * 2);
243
- }
244
-
245
- .input--small .input__prefix ::slotted(*) {
246
- margin-inline-start: var(--syn-input-spacing-small);
247
- }
248
-
249
- .input--small .input__suffix ::slotted(*) {
250
- margin-inline-end: var(--syn-input-spacing-small);
251
- }
252
-
253
- .input--medium {
254
- border-radius: var(--syn-input-border-radius-medium);
255
- font-size: var(--syn-input-font-size-medium);
256
- height: var(--syn-input-height-medium);
257
- }
258
-
259
- .input--medium .input__control {
260
- height: calc(var(--syn-input-height-medium) - var(--syn-input-border-width) * 2);
261
- padding: 0 var(--syn-input-spacing-medium);
262
- }
263
-
264
- .input--medium .input__clear,
265
- .input--medium .input__password-toggle {
266
- width: calc(1em + var(--syn-input-spacing-medium) * 2);
267
- }
268
-
269
- .input--medium .input__prefix ::slotted(*) {
270
- margin-inline-start: var(--syn-input-spacing-medium);
271
- }
272
-
273
- .input--medium .input__suffix ::slotted(*) {
274
- margin-inline-end: var(--syn-input-spacing-medium);
275
- }
276
-
277
- .input--large {
278
- border-radius: var(--syn-input-border-radius-large);
279
- font-size: var(--syn-input-font-size-large);
280
- height: var(--syn-input-height-large);
281
- }
282
-
283
- .input--large .input__control {
284
- height: calc(var(--syn-input-height-large) - var(--syn-input-border-width) * 2);
285
- padding: 0 var(--syn-input-spacing-large);
286
- }
287
-
288
- .input--large .input__clear,
289
- .input--large .input__password-toggle {
290
- width: calc(1em + var(--syn-input-spacing-large) * 2);
291
- }
292
-
293
- .input--large .input__prefix ::slotted(*) {
294
- margin-inline-start: var(--syn-input-spacing-large);
295
- }
296
-
297
- .input--large .input__suffix ::slotted(*) {
298
- margin-inline-end: var(--syn-input-spacing-large);
299
- }
300
-
301
- /*
302
- * Pill modifier
303
- */
304
-
305
- .input--pill.input--small {
306
- border-radius: var(--syn-input-height-small);
307
- }
308
-
309
- .input--pill.input--medium {
310
- border-radius: var(--syn-input-height-medium);
311
- }
312
-
313
- .input--pill.input--large {
314
- border-radius: var(--syn-input-height-large);
315
- }
316
-
317
- /*
318
- * Clearable + Password Toggle
319
- */
320
-
321
- .input__clear:not(.input__clear--visible) {
322
- visibility: hidden;
323
- }
324
-
325
- .input__clear,
326
- .input__password-toggle {
327
- display: inline-flex;
328
- align-items: center;
329
- justify-content: center;
330
- font-size: inherit;
331
- color: var(--syn-input-icon-color);
332
- border: none;
333
- background: none;
334
- padding: 0;
335
- transition: var(--syn-transition-fast) color;
336
- cursor: pointer;
337
- }
338
-
339
- .input__clear:hover,
340
- .input__password-toggle:hover {
341
- color: var(--syn-input-icon-color-hover);
342
- }
343
-
344
- .input__clear:focus,
345
- .input__password-toggle:focus {
346
- outline: none;
347
- }
348
-
349
- .input--empty .input__clear {
350
- visibility: hidden;
351
- }
352
-
353
- /* Don't show the browser's password toggle in Edge */
354
- ::-ms-reveal {
355
- display: none;
356
- }
357
-
358
- /* Hide the built-in number spinner */
359
- .input--no-spin-buttons input[type='number']::-webkit-outer-spin-button,
360
- .input--no-spin-buttons input[type='number']::-webkit-inner-spin-button {
361
- -webkit-appearance: none;
362
- display: none;
363
- }
364
-
365
- .input--no-spin-buttons input[type='number'] {
366
- -moz-appearance: textfield;
367
- }
368
- `;
369
-
370
- export {
371
- input_styles_default
372
- };
@@ -1,35 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __defProps = Object.defineProperties;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
5
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
8
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
9
- var __spreadValues = (a, b) => {
10
- for (var prop in b || (b = {}))
11
- if (__hasOwnProp.call(b, prop))
12
- __defNormalProp(a, prop, b[prop]);
13
- if (__getOwnPropSymbols)
14
- for (var prop of __getOwnPropSymbols(b)) {
15
- if (__propIsEnum.call(b, prop))
16
- __defNormalProp(a, prop, b[prop]);
17
- }
18
- return a;
19
- };
20
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
21
- var __decorateClass = (decorators, target, key, kind) => {
22
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
23
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
24
- if (decorator = decorators[i])
25
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
26
- if (kind && result)
27
- __defProp(target, key, result);
28
- return result;
29
- };
30
-
31
- export {
32
- __spreadValues,
33
- __spreadProps,
34
- __decorateClass
35
- };