@redvars/peacock 3.6.1 → 3.6.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.
- package/dist/assets/styles.css +1 -1
- package/dist/assets/styles.css.map +1 -1
- package/dist/assets/tokens.css +1 -1
- package/dist/assets/tokens.css.map +1 -1
- package/dist/{button-colors-Ccys3hvS.js → button-colors-AvGh22Zn.js} +18 -18
- package/dist/{button-colors-Ccys3hvS.js.map → button-colors-AvGh22Zn.js.map} +1 -1
- package/dist/button-group.js +2 -2
- package/dist/button.js +2 -3
- package/dist/button.js.map +1 -1
- package/dist/card.js +1 -1
- package/dist/card.js.map +1 -1
- package/dist/code-highlighter.js +34 -9
- package/dist/code-highlighter.js.map +1 -1
- package/dist/custom-elements-jsdocs.json +661 -73
- package/dist/custom-elements.json +718 -80
- package/dist/flow-designer.js +1402 -8
- package/dist/flow-designer.js.map +1 -1
- package/dist/icon-CueRR7wx.js +260 -0
- package/dist/icon-CueRR7wx.js.map +1 -0
- package/dist/{icon-button-CK1ZuE-2.js → icon-button-ohxHhy4t.js} +2 -2
- package/dist/{icon-button-CK1ZuE-2.js.map → icon-button-ohxHhy4t.js.map} +1 -1
- package/dist/index.js +9 -8
- package/dist/index.js.map +1 -1
- package/dist/modal.js +11 -11
- package/dist/modal.js.map +1 -1
- package/dist/{navigation-rail-DTTkqohi.js → navigation-rail-CD7IrqbN.js} +247 -123
- package/dist/navigation-rail-CD7IrqbN.js.map +1 -0
- package/dist/peacock-loader.js +30 -30
- package/dist/peacock-loader.js.map +1 -1
- package/dist/{popover-NC7b1lTq.js → popover-DUPmMVWS.js} +9 -4
- package/dist/{popover-NC7b1lTq.js.map → popover-DUPmMVWS.js.map} +1 -1
- package/dist/popover.js +1 -1
- package/dist/src/__controllers/floating-controller.d.ts +1 -0
- package/dist/src/avatar/avatar.d.ts +1 -1
- package/dist/src/breadcrumb/breadcrumb/breadcrumb.d.ts +0 -1
- package/dist/src/chip/chip/chip.d.ts +14 -11
- package/dist/src/chip/chip-set/chip-set.d.ts +20 -0
- package/dist/src/chip/chip-set/index.d.ts +1 -0
- package/dist/src/code-highlighter/code-highlighter.d.ts +4 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/menu/menu/menu.d.ts +1 -0
- package/dist/src/modal/modal.d.ts +1 -1
- package/dist/test/chip.test.d.ts +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/readme.md +2 -2
- package/scss/styles.scss +3 -3
- package/scss/tokens.css +1 -1
- package/src/__controllers/floating-controller.ts +9 -3
- package/src/avatar/avatar.scss +4 -4
- package/src/avatar/avatar.ts +1 -1
- package/src/breadcrumb/breadcrumb/breadcrumb.ts +0 -1
- package/src/button/button/button.scss +17 -17
- package/src/button/button/button.ts +1 -2
- package/src/card/card.ts +1 -1
- package/src/chip/chip/chip.scss +119 -45
- package/src/chip/chip/chip.ts +97 -38
- package/src/chip/chip-set/chip-set.scss +13 -0
- package/src/chip/chip-set/chip-set.ts +25 -0
- package/src/chip/chip-set/index.ts +1 -0
- package/src/code-highlighter/code-highlighter.ts +33 -6
- package/src/field/field.scss +1 -1
- package/src/index.ts +1 -0
- package/src/menu/menu/menu.ts +11 -0
- package/src/modal/modal.scss +10 -10
- package/src/modal/modal.ts +1 -1
- package/src/peacock-loader.ts +24 -22
- package/dist/flow-designer-DvTUrDp5.js +0 -1656
- package/dist/flow-designer-DvTUrDp5.js.map +0 -1
- package/dist/navigation-rail-DTTkqohi.js.map +0 -1
- package/src/chip/chip/chip-colors.scss +0 -31
package/src/chip/chip/chip.ts
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import { html,
|
|
2
|
-
import { property } from 'lit/decorators.js';
|
|
1
|
+
import { html, nothing } from 'lit';
|
|
2
|
+
import { property, query, state } from 'lit/decorators.js';
|
|
3
3
|
import { classMap } from 'lit/directives/class-map.js';
|
|
4
|
+
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
5
|
+
import { observerSlotChangesWithCallback } from '@/__utils/observe-slot-change.js';
|
|
6
|
+
import { dispatchActivationClick, isActivationClick } from '@/__utils/dispatch-event-utils.js';
|
|
4
7
|
import styles from './chip.scss';
|
|
5
|
-
import colorStyles from './chip-colors.scss';
|
|
6
8
|
import sizeStyles from './chip-sizes.scss';
|
|
9
|
+
import { spread } from '@/__directive/spread.js';
|
|
10
|
+
import { BaseButton } from '@/button/BaseButton.js';
|
|
7
11
|
|
|
8
12
|
/**
|
|
9
13
|
* @label Chip
|
|
@@ -17,30 +21,41 @@ import sizeStyles from './chip-sizes.scss';
|
|
|
17
21
|
* <wc-chip>Chip content</wc-chip>
|
|
18
22
|
* ```
|
|
19
23
|
*/
|
|
20
|
-
export class Chip extends
|
|
24
|
+
export class Chip extends BaseButton {
|
|
21
25
|
// Define styles (Lit handles Scoping via Shadow DOM by default)
|
|
22
26
|
// You would typically import your tag.scss.js here or use the css tag
|
|
23
|
-
static styles = [styles,
|
|
27
|
+
static styles = [styles, sizeStyles];
|
|
24
28
|
|
|
25
29
|
/** If true, the tag will have a close icon. */
|
|
26
30
|
@property({ type: Boolean }) dismissible = false;
|
|
27
31
|
|
|
28
|
-
/**
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
| 'red'
|
|
34
|
-
| 'yellow' = 'default';
|
|
32
|
+
/**
|
|
33
|
+
* Additional ARIA attributes to pass to the inner button/anchor element.
|
|
34
|
+
*/
|
|
35
|
+
@property({ reflect: true })
|
|
36
|
+
configAria?: { [key: string]: any };
|
|
35
37
|
|
|
36
|
-
|
|
37
|
-
@property({ type: String, reflect: true }) value = '';
|
|
38
|
+
@state() private _hasIconSlotContent = false;
|
|
38
39
|
|
|
39
|
-
|
|
40
|
-
@property({ type: Boolean, reflect: true }) selected = false;
|
|
40
|
+
@state() private _isPressed = false;
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
override focus() {
|
|
43
|
+
this.buttonElement?.focus();
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
override blur() {
|
|
47
|
+
this.buttonElement?.blur();
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
override firstUpdated() {
|
|
51
|
+
observerSlotChangesWithCallback(
|
|
52
|
+
this.renderRoot.querySelector('slot[name="icon"]'),
|
|
53
|
+
hasContent => {
|
|
54
|
+
this._hasIconSlotContent = hasContent;
|
|
55
|
+
this.requestUpdate();
|
|
56
|
+
},
|
|
57
|
+
);
|
|
58
|
+
}
|
|
44
59
|
|
|
45
60
|
private _dismissClickHandler(e: MouseEvent) {
|
|
46
61
|
e.stopPropagation();
|
|
@@ -56,8 +71,9 @@ export class Chip extends LitElement {
|
|
|
56
71
|
);
|
|
57
72
|
}
|
|
58
73
|
|
|
74
|
+
|
|
59
75
|
private _renderCloseButton() {
|
|
60
|
-
if (!this.dismissible) return
|
|
76
|
+
if (!this.dismissible) return nothing;
|
|
61
77
|
|
|
62
78
|
return html`
|
|
63
79
|
<button
|
|
@@ -70,35 +86,78 @@ export class Chip extends LitElement {
|
|
|
70
86
|
`;
|
|
71
87
|
}
|
|
72
88
|
|
|
73
|
-
|
|
74
|
-
if (this.imageSrc)
|
|
75
|
-
return html`<img
|
|
76
|
-
src=${this.imageSrc}
|
|
77
|
-
class="tag-image"
|
|
78
|
-
alt="Tag Logo"
|
|
79
|
-
/>`;
|
|
80
|
-
return nothing;
|
|
81
|
-
}
|
|
89
|
+
|
|
82
90
|
|
|
83
91
|
render() {
|
|
84
|
-
const
|
|
92
|
+
const cssClasses = {
|
|
85
93
|
chip: true,
|
|
94
|
+
button: true,
|
|
86
95
|
selected: this.selected,
|
|
87
96
|
dismissible: this.dismissible,
|
|
88
|
-
|
|
97
|
+
pressed: this._isPressed,
|
|
98
|
+
'icon-slot-has-content': this._hasIconSlotContent,
|
|
89
99
|
};
|
|
90
100
|
|
|
101
|
+
if (!this.__isLink()) {
|
|
102
|
+
return html`<button
|
|
103
|
+
class=${classMap(cssClasses)}
|
|
104
|
+
id="button"
|
|
105
|
+
type=${this.htmlType}
|
|
106
|
+
@click=${this.__dispatchClickWithThrottle}
|
|
107
|
+
@mousedown=${this.__handlePress}
|
|
108
|
+
@keydown=${this.__handlePress}
|
|
109
|
+
@keyup=${this.__handlePress}
|
|
110
|
+
|
|
111
|
+
aria-describedby=${ifDefined(this.softDisabled ? BaseButton.DISABLED_REASON_ID : undefined)}
|
|
112
|
+
?aria-disabled=${this.softDisabled}
|
|
113
|
+
|
|
114
|
+
?disabled=${this.disabled}
|
|
115
|
+
${spread(this.configAria)}
|
|
116
|
+
>
|
|
117
|
+
${this.renderChipContent()}
|
|
118
|
+
</button>`;
|
|
119
|
+
}
|
|
120
|
+
return html`<a
|
|
121
|
+
class=${classMap(cssClasses)}
|
|
122
|
+
id="button"
|
|
123
|
+
href=${this.href}
|
|
124
|
+
target=${this.target}
|
|
125
|
+
tabindex=${this.disabled ? '-1' : '0'}
|
|
126
|
+
|
|
127
|
+
@click=${this.__dispatchClick}
|
|
128
|
+
@mousedown=${this.__handlePress}
|
|
129
|
+
@keydown=${this.__handlePress}
|
|
130
|
+
@keyup=${this.__handlePress}
|
|
131
|
+
role="button"
|
|
132
|
+
|
|
133
|
+
aria-describedby=${ifDefined(this.softDisabled ? BaseButton.DISABLED_REASON_ID : undefined)}
|
|
134
|
+
?aria-disabled=${this.softDisabled}
|
|
135
|
+
|
|
136
|
+
${spread(this.configAria)}
|
|
137
|
+
>
|
|
138
|
+
${this.renderChipContent()}
|
|
139
|
+
</a>`;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
renderChipContent() {
|
|
91
143
|
return html`
|
|
92
|
-
<
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
144
|
+
<wc-focus-ring class="focus-ring" for="button"></wc-focus-ring>
|
|
145
|
+
<wc-elevation class="elevation"></wc-elevation>
|
|
146
|
+
<div class="background"></div>
|
|
147
|
+
<div class="outline"></div>
|
|
148
|
+
<wc-ripple class="ripple"></wc-ripple>
|
|
149
|
+
<div class="tag-content">
|
|
96
150
|
|
|
97
|
-
<div class="
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
151
|
+
<div class="icon-slot-container">
|
|
152
|
+
${this.selected
|
|
153
|
+
? html`<wc-icon class="selected-icon" name="check"></wc-icon>`
|
|
154
|
+
: html`<slot name="icon"></slot>`}
|
|
101
155
|
</div>
|
|
156
|
+
<div class="label-container">
|
|
157
|
+
<slot></slot>
|
|
158
|
+
</div>
|
|
159
|
+
|
|
160
|
+
${this._renderCloseButton()}
|
|
102
161
|
</div>
|
|
103
162
|
`;
|
|
104
163
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { html, LitElement } from 'lit';
|
|
2
|
+
import styles from './chip-set.scss';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @label Chip Set
|
|
6
|
+
* @tag wc-chip-set
|
|
7
|
+
* @rawTag chip-set
|
|
8
|
+
* @summary A layout container for wrapping chips.
|
|
9
|
+
* @tags layout
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```html
|
|
13
|
+
* <wc-chip-set>
|
|
14
|
+
* <wc-chip>One</wc-chip>
|
|
15
|
+
* <wc-chip>Two</wc-chip>
|
|
16
|
+
* </wc-chip-set>
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
export class ChipSet extends LitElement {
|
|
20
|
+
static styles = [styles];
|
|
21
|
+
|
|
22
|
+
override render() {
|
|
23
|
+
return html`<slot></slot>`;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ChipSet } from './chip-set.js';
|
|
@@ -44,6 +44,8 @@ const locale = {
|
|
|
44
44
|
export class CodeHighlighter extends LitElement {
|
|
45
45
|
static styles = [styles];
|
|
46
46
|
|
|
47
|
+
private static readonly COPY_FEEDBACK_DURATION = 3000;
|
|
48
|
+
|
|
47
49
|
@property({ type: String, reflect: true })
|
|
48
50
|
language: BundledLanguage = 'javascript';
|
|
49
51
|
|
|
@@ -61,13 +63,25 @@ export class CodeHighlighter extends LitElement {
|
|
|
61
63
|
|
|
62
64
|
@state() private compiledCode: string | null = null;
|
|
63
65
|
|
|
66
|
+
@state() private _copied = false;
|
|
67
|
+
|
|
64
68
|
private parsedCode: string | null = null;
|
|
65
69
|
|
|
70
|
+
private _copyFeedbackTimeout: number | null = null;
|
|
71
|
+
|
|
66
72
|
async connectedCallback() {
|
|
67
73
|
// eslint-disable-next-line wc/guard-super-call
|
|
68
74
|
super.connectedCallback();
|
|
69
75
|
}
|
|
70
76
|
|
|
77
|
+
disconnectedCallback() {
|
|
78
|
+
if (this._copyFeedbackTimeout !== null) {
|
|
79
|
+
window.clearTimeout(this._copyFeedbackTimeout);
|
|
80
|
+
this._copyFeedbackTimeout = null;
|
|
81
|
+
}
|
|
82
|
+
super.disconnectedCallback();
|
|
83
|
+
}
|
|
84
|
+
|
|
71
85
|
firstUpdated() {
|
|
72
86
|
this.__highlightCode();
|
|
73
87
|
}
|
|
@@ -146,19 +160,32 @@ export class CodeHighlighter extends LitElement {
|
|
|
146
160
|
}
|
|
147
161
|
|
|
148
162
|
private async __handleCopyClick() {
|
|
149
|
-
|
|
163
|
+
if (this.parsedCode == null) {
|
|
164
|
+
return;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
await copyToClipboard(this.parsedCode);
|
|
168
|
+
this._copied = true;
|
|
169
|
+
|
|
170
|
+
if (this._copyFeedbackTimeout !== null) {
|
|
171
|
+
window.clearTimeout(this._copyFeedbackTimeout);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
this._copyFeedbackTimeout = window.setTimeout(() => {
|
|
175
|
+
this._copied = false;
|
|
176
|
+
this._copyFeedbackTimeout = null;
|
|
177
|
+
}, CodeHighlighter.COPY_FEEDBACK_DURATION);
|
|
150
178
|
}
|
|
151
179
|
|
|
152
180
|
render() {
|
|
153
181
|
if (this.compiledCode === null) {
|
|
154
182
|
return html`
|
|
155
183
|
<div class="code-loader">
|
|
156
|
-
<
|
|
184
|
+
<wc-circular-progress indeterminate></wc-circular-progress>
|
|
157
185
|
${locale.loading}
|
|
158
186
|
</div>
|
|
159
187
|
`;
|
|
160
188
|
}
|
|
161
|
-
// @click=${() => this.inline && this.handleCopyClick()}
|
|
162
189
|
|
|
163
190
|
return html`
|
|
164
191
|
<div
|
|
@@ -171,11 +198,11 @@ export class CodeHighlighter extends LitElement {
|
|
|
171
198
|
<div class="header-title">${this.language}</div>
|
|
172
199
|
<div class="header-actions">
|
|
173
200
|
<wc-icon-button
|
|
174
|
-
color
|
|
201
|
+
color=${this._copied ? 'success' : 'surface'}
|
|
175
202
|
variant="text"
|
|
176
203
|
size="xs"
|
|
177
|
-
aria-label=${locale.copyToClipboard}
|
|
178
|
-
tooltip=${locale.copyToClipboard}
|
|
204
|
+
aria-label=${this._copied ? locale.copied : locale.copyToClipboard}
|
|
205
|
+
tooltip=${this._copied ? locale.copied : locale.copyToClipboard}
|
|
179
206
|
@click=${this.__handleCopyClick}
|
|
180
207
|
>
|
|
181
208
|
<wc-icon name="content_copy"></wc-icon>
|
package/src/field/field.scss
CHANGED
package/src/index.ts
CHANGED
|
@@ -16,6 +16,7 @@ export { Accordion } from './accordion/index.js';
|
|
|
16
16
|
export { Link } from './link/index.js';
|
|
17
17
|
export { Tag } from './chip/tag/index.js';
|
|
18
18
|
export { Chip } from './chip/chip/index.js';
|
|
19
|
+
export { ChipSet } from './chip/chip-set/index.js';
|
|
19
20
|
export { LinearProgress } from './progress/linear-progress/index.js';
|
|
20
21
|
export { CircularProgress } from './progress/circular-progress/index.js';
|
|
21
22
|
export { Skeleton } from './skeleton/index.js';
|
package/src/menu/menu/menu.ts
CHANGED
|
@@ -276,6 +276,16 @@ export class Menu extends LitElement {
|
|
|
276
276
|
this._syncRovingTabIndex();
|
|
277
277
|
}
|
|
278
278
|
|
|
279
|
+
private _dispatchItemActivate(item: MenuItem) {
|
|
280
|
+
this.dispatchEvent(
|
|
281
|
+
new CustomEvent('menu-item-activate', {
|
|
282
|
+
bubbles: true,
|
|
283
|
+
composed: true,
|
|
284
|
+
detail: { item },
|
|
285
|
+
}),
|
|
286
|
+
);
|
|
287
|
+
}
|
|
288
|
+
|
|
279
289
|
private _onClick = (event: Event) => {
|
|
280
290
|
if (!this.open) {
|
|
281
291
|
return;
|
|
@@ -287,6 +297,7 @@ export class Menu extends LitElement {
|
|
|
287
297
|
}
|
|
288
298
|
|
|
289
299
|
this._setActiveItem(item);
|
|
300
|
+
this._dispatchItemActivate(item);
|
|
290
301
|
if (item.keepOpen) {
|
|
291
302
|
return;
|
|
292
303
|
}
|
package/src/modal/modal.scss
CHANGED
|
@@ -5,19 +5,19 @@
|
|
|
5
5
|
:host {
|
|
6
6
|
display: contents;
|
|
7
7
|
|
|
8
|
-
--modal-container-color: var(--color-surface-container-high
|
|
9
|
-
--modal-scrim-color:
|
|
10
|
-
--modal-shape: var(--shape-corner-extra-large
|
|
8
|
+
--modal-container-color: var(--color-surface-container-high);
|
|
9
|
+
--modal-scrim-color: color-mix(in srgb, var(--color-scrim), transparent 32%);
|
|
10
|
+
--modal-shape: var(--shape-corner-extra-large);
|
|
11
11
|
--modal-min-width: 280px;
|
|
12
12
|
--modal-max-width: 560px;
|
|
13
13
|
--modal-max-height: 90dvh;
|
|
14
|
-
--modal-transition-duration: var(--duration-medium2
|
|
15
|
-
--modal-transition-easing: var(--easing-emphasized
|
|
16
|
-
--modal-heading-color: var(--color-on-surface
|
|
17
|
-
--modal-subheading-color: var(--color-on-surface-variant
|
|
18
|
-
--modal-content-color: var(--color-on-surface-variant
|
|
19
|
-
--modal-divider-color: var(--color-outline-variant
|
|
20
|
-
--modal-elevation: var(--elevation-level3
|
|
14
|
+
--modal-transition-duration: var(--duration-medium2);
|
|
15
|
+
--modal-transition-easing: var(--easing-emphasized);
|
|
16
|
+
--modal-heading-color: var(--color-on-surface);
|
|
17
|
+
--modal-subheading-color: var(--color-on-surface-variant);
|
|
18
|
+
--modal-content-color: var(--color-on-surface-variant);
|
|
19
|
+
--modal-divider-color: var(--color-outline-variant);
|
|
20
|
+
--modal-elevation: var(--elevation-level3);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
/* Scrim backdrop */
|
package/src/modal/modal.ts
CHANGED
|
@@ -9,7 +9,7 @@ type ModalSize = 'xs' | 'sm' | 'md' | 'lg' | 'fullscreen';
|
|
|
9
9
|
/**
|
|
10
10
|
* @label Modal
|
|
11
11
|
* @tag wc-modal
|
|
12
|
-
* @rawTag modal
|
|
12
|
+
* @rawTag modal
|
|
13
13
|
* @summary A Material Design 3 dialog/modal for displaying content in a layer above the page, with optional header, body, and footer slots.
|
|
14
14
|
*
|
|
15
15
|
* @cssprop --modal-container-color - Background color of the dialog container.
|
package/src/peacock-loader.ts
CHANGED
|
@@ -37,6 +37,7 @@ import { Accordion } from './accordion/accordion.js';
|
|
|
37
37
|
import { Link } from './link/link.js';
|
|
38
38
|
import { Tag } from './chip/tag/tag.js';
|
|
39
39
|
import { Chip } from './chip/chip/chip.js';
|
|
40
|
+
import { ChipSet } from './chip/chip-set/chip-set.js';
|
|
40
41
|
import { LinearProgress } from './progress/linear-progress/linear-progress.js';
|
|
41
42
|
import { CircularProgress } from './progress/circular-progress/circular-progress.js';
|
|
42
43
|
|
|
@@ -80,17 +81,6 @@ import { Search } from './search/search.js';
|
|
|
80
81
|
import { Toolbar } from './toolbar/toolbar.js';
|
|
81
82
|
import { NavigationRail } from './navigation-rail/navigation-rail.js';
|
|
82
83
|
import { NavigationRailItem } from './navigation-rail/navigation-rail-item.js';
|
|
83
|
-
import { Calendar } from './calendar/calendar.js';
|
|
84
|
-
import { CalendarColumnView } from './calendar/calendar-column-view.js';
|
|
85
|
-
import { CalendarMonthView } from './calendar/calendar-month-view.js';
|
|
86
|
-
import { Canvas } from './canvas/canvas.js';
|
|
87
|
-
import { FlowDesigner } from './flow-designer/flow-designer.js';
|
|
88
|
-
import { FlowDesignerNode } from './flow-designer/flow-designer-node.js';
|
|
89
|
-
import { ConditionBuilder } from './condition-builder/condition-builder.js';
|
|
90
|
-
import { CbPredicate } from './condition-builder/cb-predicate.js';
|
|
91
|
-
import { CbCompoundExpression } from './condition-builder/cb-compound-expression.js';
|
|
92
|
-
import { CbExpression } from './condition-builder/cb-expression.js';
|
|
93
|
-
import { CbDivider } from './condition-builder/cb-divider.js';
|
|
94
84
|
|
|
95
85
|
const distDirectory = `${import.meta.url}/..`;
|
|
96
86
|
await loadCSS(`${distDirectory}/assets/styles.css`);
|
|
@@ -190,6 +180,9 @@ const loaderConfig: LoaderConfig = {
|
|
|
190
180
|
'wc-chip': {
|
|
191
181
|
CustomElementClass: Chip,
|
|
192
182
|
},
|
|
183
|
+
'wc-chip-set': {
|
|
184
|
+
CustomElementClass: ChipSet,
|
|
185
|
+
},
|
|
193
186
|
'wc-card': {
|
|
194
187
|
CustomElementClass: Card,
|
|
195
188
|
},
|
|
@@ -256,6 +249,7 @@ const loaderConfig: LoaderConfig = {
|
|
|
256
249
|
},
|
|
257
250
|
'wc-html-editor': {
|
|
258
251
|
importPath: `${distDirectory}/html-editor.js`,
|
|
252
|
+
dependencies: ['wc-code-editor'],
|
|
259
253
|
},
|
|
260
254
|
'wc-code-highlighter': {
|
|
261
255
|
importPath: `${distDirectory}/code-highlighter.js`,
|
|
@@ -354,22 +348,24 @@ const loaderConfig: LoaderConfig = {
|
|
|
354
348
|
CustomElementClass: NavigationRailItem,
|
|
355
349
|
},
|
|
356
350
|
'wc-calendar': {
|
|
357
|
-
|
|
351
|
+
importPath: `${distDirectory}/calendar.js`,
|
|
352
|
+
dependencies: ['wc-calendar-column-view', 'wc-calendar-month-view'],
|
|
358
353
|
},
|
|
359
354
|
'wc-calendar-column-view': {
|
|
360
|
-
|
|
355
|
+
importPath: `${distDirectory}/calendar-column-view.js`,
|
|
361
356
|
},
|
|
362
357
|
'wc-calendar-month-view': {
|
|
363
|
-
|
|
358
|
+
importPath: `${distDirectory}/calendar-month-view.js`,
|
|
364
359
|
},
|
|
365
360
|
'wc-canvas': {
|
|
366
|
-
|
|
361
|
+
importPath: `${distDirectory}/canvas.js`,
|
|
367
362
|
},
|
|
368
363
|
'wc-flow-designer': {
|
|
369
|
-
|
|
364
|
+
importPath: `${distDirectory}/flow-designer.js`,
|
|
365
|
+
dependencies: ['wc-flow-designer-node'],
|
|
370
366
|
},
|
|
371
367
|
'wc-flow-designer-node': {
|
|
372
|
-
|
|
368
|
+
importPath: `${distDirectory}/flow-designer-node.js`,
|
|
373
369
|
},
|
|
374
370
|
'wc-chart-doughnut': {
|
|
375
371
|
importPath: `${distDirectory}/chart-doughnut.js`,
|
|
@@ -384,19 +380,25 @@ const loaderConfig: LoaderConfig = {
|
|
|
384
380
|
importPath: `${distDirectory}/chart-stacked-bar.js`,
|
|
385
381
|
},
|
|
386
382
|
'wc-condition-builder': {
|
|
387
|
-
|
|
383
|
+
importPath: `${distDirectory}/condition-builder.js`,
|
|
384
|
+
dependencies: [
|
|
385
|
+
'wc-cb-predicate',
|
|
386
|
+
'wc-cb-compound-expression',
|
|
387
|
+
'wc-cb-expression',
|
|
388
|
+
'wc-cb-divider',
|
|
389
|
+
],
|
|
388
390
|
},
|
|
389
391
|
'wc-cb-predicate': {
|
|
390
|
-
|
|
392
|
+
importPath: `${distDirectory}/cb-predicate.js`,
|
|
391
393
|
},
|
|
392
394
|
'wc-cb-compound-expression': {
|
|
393
|
-
|
|
395
|
+
importPath: `${distDirectory}/cb-compound-expression.js`,
|
|
394
396
|
},
|
|
395
397
|
'wc-cb-expression': {
|
|
396
|
-
|
|
398
|
+
importPath: `${distDirectory}/cb-expression.js`,
|
|
397
399
|
},
|
|
398
400
|
'wc-cb-divider': {
|
|
399
|
-
|
|
401
|
+
importPath: `${distDirectory}/cb-divider.js`,
|
|
400
402
|
},
|
|
401
403
|
},
|
|
402
404
|
};
|