@redvars/peacock 4.3.4 → 4.4.0
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/{BaseField-DPyW5Zm5.js → BaseField-Cj2rNVeC.js} +3 -3
- package/dist/{BaseField-DPyW5Zm5.js.map → BaseField-Cj2rNVeC.js.map} +1 -1
- package/dist/{BaseInput-FhjvfMjF.js → BaseInput-CSOLv2-i.js} +2 -2
- package/dist/{BaseInput-FhjvfMjF.js.map → BaseInput-CSOLv2-i.js.map} +1 -1
- package/dist/ai-badge.js +2 -2
- package/dist/ai-summary.js +2 -2
- package/dist/alert.js +2 -2
- package/dist/anchor-nav.js +2 -2
- package/dist/app-shell.js +2 -2
- package/dist/assistant-panel.js +2 -2
- package/dist/assistant-step.js +2 -2
- package/dist/assistant-steps.js +2 -2
- package/dist/avatar-group.js +2 -2
- package/dist/banner.js +2 -2
- package/dist/{base-progress-D8-x6XS4.js → base-progress-DduJjUeq.js} +2 -2
- package/dist/{base-progress-D8-x6XS4.js.map → base-progress-DduJjUeq.js.map} +1 -1
- package/dist/bottom-sheet.js +2 -2
- package/dist/breadcrumb.js +2 -2
- package/dist/calendar.js +2 -2
- package/dist/{canvas-base-CjxNdEsR.js → canvas-base-Bfpv5_HJ.js} +2 -2
- package/dist/{canvas-base-CjxNdEsR.js.map → canvas-base-Bfpv5_HJ.js.map} +1 -1
- package/dist/carousel.js +2 -2
- package/dist/{cartesian-chart-D30aTNVm.js → cartesian-chart-SnqFbbXV.js} +2 -2
- package/dist/{cartesian-chart-D30aTNVm.js.map → cartesian-chart-SnqFbbXV.js.map} +1 -1
- package/dist/{cb-group-base-BhWC78b0.js → cb-group-base-DZIzMlen.js} +2 -2
- package/dist/{cb-group-base-BhWC78b0.js.map → cb-group-base-DZIzMlen.js.map} +1 -1
- package/dist/cb-group.js +3 -3
- package/dist/cb-rule.js +3 -3
- package/dist/chart-area.js +4 -4
- package/dist/chart-bar.js +4 -4
- package/dist/{chart-base-D2kPte5J.js → chart-base-C2N0WQLI.js} +2 -2
- package/dist/{chart-base-D2kPte5J.js.map → chart-base-C2N0WQLI.js.map} +1 -1
- package/dist/chart-doughnut.js +3 -3
- package/dist/chart-line.js +4 -4
- package/dist/chart-pie.js +3 -3
- package/dist/chat-event.js +2 -2
- package/dist/chat-message.js +2 -2
- package/dist/chat-thread.js +2 -2
- package/dist/checkbox-group.js +3 -3
- package/dist/checkbox.js +3 -3
- package/dist/chip-set.js +2 -2
- package/dist/chip.js +2 -2
- package/dist/circular-progress.js +3 -3
- package/dist/citation.js +2 -2
- package/dist/code-editor.js +3 -3
- package/dist/code-highlighter.js +2 -2
- package/dist/color-field.js +4 -4
- package/dist/color-picker.js +2 -2
- package/dist/command-palette.js +2 -2
- package/dist/comment-composer.js +4 -4
- package/dist/condition-builder.js +3 -3
- package/dist/confirm-dialog.js +2 -2
- package/dist/copy-button.js +2 -2
- package/dist/currency-field.js +4 -4
- package/dist/custom-elements.json +1 -1
- package/dist/date-field.js +5 -5
- package/dist/date-picker.js +2 -2
- package/dist/date-range-field.js +5 -5
- package/dist/datetime-field.js +5 -5
- package/dist/dependency-map.js +3 -3
- package/dist/description-item.js +2 -2
- package/dist/description-list.js +2 -2
- package/dist/{diagram-BFGq2POp.js → diagram-W_Kddt7I.js} +2 -2
- package/dist/{diagram-BFGq2POp.js.map → diagram-W_Kddt7I.js.map} +1 -1
- package/dist/diagram-controls.js +2 -2
- package/dist/diagram-minimap.js +2 -2
- package/dist/diagram.js +4 -4
- package/dist/diff-viewer.js +2 -2
- package/dist/discussion-activity.js +2 -2
- package/dist/discussion-comment.js +2 -2
- package/dist/discussion.js +4 -4
- package/dist/{document-editor-CC7MTHMO.js → document-editor-dBgmcyUW.js} +2 -2
- package/dist/{document-editor-CC7MTHMO.js.map → document-editor-dBgmcyUW.js.map} +1 -1
- package/dist/document-editor.js +3 -3
- package/dist/draft-card.js +2 -2
- package/dist/erd.js +3 -3
- package/dist/file-upload.js +3 -3
- package/dist/filter-bar.js +2 -2
- package/dist/flow.js +4 -4
- package/dist/form.js +2 -2
- package/dist/{generative-view-DoT9YwHL.js → generative-view-CfW6yMpY.js} +2 -2
- package/dist/{generative-view-DoT9YwHL.js.map → generative-view-CfW6yMpY.js.map} +1 -1
- package/dist/generative-view.js +3 -3
- package/dist/html-editor.js +4 -4
- package/dist/{i18n-controller-Co6pasNo.js → i18n-controller-DNAjVSIP.js} +2 -2
- package/dist/{i18n-controller-Co6pasNo.js.map → i18n-controller-DNAjVSIP.js.map} +1 -1
- package/dist/image.js +2 -2
- package/dist/index.js +17 -17
- package/dist/inline-edit.js +2 -2
- package/dist/input.js +3 -3
- package/dist/json-viewer.js +2 -2
- package/dist/kanban.js +2 -2
- package/dist/kbd.js +2 -2
- package/dist/linear-progress.js +3 -3
- package/dist/listbox.js +2 -2
- package/dist/loader-full.js +10 -10
- package/dist/loader.js +10 -10
- package/dist/markdown-editor.js +4 -4
- package/dist/mention-input.js +4 -4
- package/dist/modal.js +2 -2
- package/dist/navigation-bar.js +2 -2
- package/dist/navigation-drawer.js +2 -2
- package/dist/navigation-rail.js +2 -2
- package/dist/notification-center.js +2 -2
- package/dist/number-field.js +4 -4
- package/dist/page-header.js +2 -2
- package/dist/pagination.js +2 -2
- package/dist/password-field.js +4 -4
- package/dist/password-rules.js +2 -2
- package/dist/phone-field.js +4 -4
- package/dist/{picker-field-BliKNENo.js → picker-field-Mi7_hbo8.js} +3 -3
- package/dist/{picker-field-BliKNENo.js.map → picker-field-Mi7_hbo8.js.map} +1 -1
- package/dist/pin-input.js +4 -4
- package/dist/presence-indicator.js +2 -2
- package/dist/prompt-input.js +4 -4
- package/dist/radio.js +3 -3
- package/dist/rating.js +3 -3
- package/dist/redvars-loader.js +2 -2
- package/dist/relative-time.js +2 -2
- package/dist/resizable-panels.js +2 -2
- package/dist/{rich-text-input-YeqK1or-.js → rich-text-input-O1ku1q-J.js} +3 -3
- package/dist/{rich-text-input-YeqK1or-.js.map → rich-text-input-O1ku1q-J.js.map} +1 -1
- package/dist/{schema-CuHBNpzo.js → schema-BWH1ANdE.js} +2 -2
- package/dist/{schema-CuHBNpzo.js.map → schema-BWH1ANdE.js.map} +1 -1
- package/dist/search.js +3 -3
- package/dist/select.js +4 -4
- package/dist/side-sheet.js +2 -2
- package/dist/signature-pad.js +3 -3
- package/dist/site-header.js +2 -2
- package/dist/slider.js +3 -3
- package/dist/snackbar.js +2 -2
- package/dist/sparkline.js +2 -2
- package/dist/split-button.js +2 -2
- package/dist/src/__internal/i18n/strings.d.ts +4 -0
- package/dist/src/workflow/workflow-model.d.ts +12 -3
- package/dist/stat.js +2 -2
- package/dist/status-indicator.js +2 -2
- package/dist/step.js +2 -2
- package/dist/stepper.js +2 -2
- package/dist/{strings-DYwXSSu_.js → strings-BpCoUL0V.js} +5 -1
- package/dist/{strings-DYwXSSu_.js.map → strings-BpCoUL0V.js.map} +1 -1
- package/dist/svg.js +2 -2
- package/dist/switch.js +3 -3
- package/dist/table.js +2 -2
- package/dist/textarea.js +4 -4
- package/dist/time-field.js +5 -5
- package/dist/time-picker.js +2 -2
- package/dist/timeline-item.js +2 -2
- package/dist/timeline.js +2 -2
- package/dist/{toggle-base-B-HOnUIy.js → toggle-base-BRNNka2o.js} +2 -2
- package/dist/{toggle-base-B-HOnUIy.js.map → toggle-base-BRNNka2o.js.map} +1 -1
- package/dist/tour.js +2 -2
- package/dist/transfer-list.js +3 -3
- package/dist/tree-chart.js +3 -3
- package/dist/tree-item.js +2 -2
- package/dist/tree.js +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/typing-indicator.js +2 -2
- package/dist/url-field.js +4 -4
- package/dist/user-menu.js +2 -2
- package/dist/{video-u-Vs7M9g.js → video-DBdRuyh4.js} +2 -2
- package/dist/{video-u-Vs7M9g.js.map → video-DBdRuyh4.js.map} +1 -1
- package/dist/video.js +3 -3
- package/dist/virtual-list.js +2 -2
- package/dist/workflow-model-CauduOG2.js.map +1 -1
- package/dist/workflow-timeline.js +2 -2
- package/dist/workflow.js +16 -5
- package/dist/workflow.js.map +1 -1
- package/dist/workspace-switcher.js +2 -2
- package/package.json +1 -1
- package/src/__internal/i18n/strings.ts +4 -0
- package/src/workflow/workflow-model.ts +12 -3
- package/src/workflow/workflow.scss +5 -0
- package/src/workflow/workflow.ts +10 -2
|
@@ -3,11 +3,11 @@ import { n } from './property-B2TG3KEE.js';
|
|
|
3
3
|
import { r } from './state-BCeDVCI9.js';
|
|
4
4
|
import { e } from './query-CHb9Ft_d.js';
|
|
5
5
|
import { e as e$1 } from './class-map-NDIkZErE.js';
|
|
6
|
-
import { I as I18nController } from './i18n-controller-
|
|
6
|
+
import { I as I18nController } from './i18n-controller-DNAjVSIP.js';
|
|
7
7
|
import { M as MenuTriggerController } from './menu-trigger-controller-CEJq1ugC.js';
|
|
8
8
|
import './base-Cl6v8-BZ.js';
|
|
9
9
|
import './directive-ZPhl09Yt.js';
|
|
10
|
-
import './strings-
|
|
10
|
+
import './strings-BpCoUL0V.js';
|
|
11
11
|
import './locale-DEsJZCQG.js';
|
|
12
12
|
|
|
13
13
|
var css_248z = i`* {
|
package/package.json
CHANGED
|
@@ -986,6 +986,7 @@ export const defaultStrings = {
|
|
|
986
986
|
workflowNoSteps: 'No matching steps',
|
|
987
987
|
workflowOnError: 'On error',
|
|
988
988
|
workflowWaitForAll: 'Wait for all',
|
|
989
|
+
workflowFirstToFinish: 'First to finish',
|
|
989
990
|
workflowEnd: 'End',
|
|
990
991
|
workflowMoreActions: 'More actions',
|
|
991
992
|
workflowDuplicate: 'Duplicate',
|
|
@@ -1003,6 +1004,9 @@ export const defaultStrings = {
|
|
|
1003
1004
|
count === 1 ? '1 problem' : `${count} problems`,
|
|
1004
1005
|
workflowUnreachable: 'This step never runs: the path before it ends.',
|
|
1005
1006
|
workflowLoopForEach: 'For each',
|
|
1007
|
+
workflowLoopTimes: 'Repeat',
|
|
1008
|
+
/** After a `times` loop's count, for example "3 times". */
|
|
1009
|
+
workflowLoopTimesSuffix: 'times',
|
|
1006
1010
|
workflowLoopWhile: 'While',
|
|
1007
1011
|
workflowLoopUntil: 'Repeat until',
|
|
1008
1012
|
/** Announced after a step is added, for example "Send email added". */
|
|
@@ -83,15 +83,24 @@ export interface WorkflowPath {
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
export interface WorkflowBranchStep extends WorkflowStepBase {
|
|
86
|
-
/** `branch` runs the first path whose condition holds; `parallel` runs every path
|
|
86
|
+
/** `branch` runs the first path whose condition holds; `parallel` runs every path. */
|
|
87
87
|
type: 'branch' | 'parallel';
|
|
88
|
+
/**
|
|
89
|
+
* For `parallel`: `all` (the default) goes on when every path has ended; `first` goes on when one
|
|
90
|
+
* has, and stops the others.
|
|
91
|
+
*/
|
|
92
|
+
mode?: 'all' | 'first';
|
|
88
93
|
paths: WorkflowPath[];
|
|
89
94
|
}
|
|
90
95
|
|
|
91
96
|
export interface WorkflowLoopStep extends WorkflowStepBase {
|
|
92
97
|
type: 'loop';
|
|
93
|
-
|
|
94
|
-
|
|
98
|
+
/** `for-each` item of a list, `times` a number of passes, `while` or `until` a condition. */
|
|
99
|
+
mode?: 'for-each' | 'times' | 'while' | 'until';
|
|
100
|
+
/**
|
|
101
|
+
* What the loop goes over, counts or tests: `{{Trigger.line_items}}`, `3` or
|
|
102
|
+
* `{{Settings.levels}}` for `times`, a condition for `while` and `until`.
|
|
103
|
+
*/
|
|
95
104
|
over?: string;
|
|
96
105
|
steps: WorkflowStep[];
|
|
97
106
|
}
|
|
@@ -512,6 +512,11 @@
|
|
|
512
512
|
background: var(--color-surface-container-high);
|
|
513
513
|
color: var(--color-on-surface-variant);
|
|
514
514
|
border: 2px solid var(--workflow-connector-color);
|
|
515
|
+
|
|
516
|
+
// `mode: 'first'`: the first path to end wins, so the bar is drawn open.
|
|
517
|
+
&.is-first {
|
|
518
|
+
border-style: dashed;
|
|
519
|
+
}
|
|
515
520
|
}
|
|
516
521
|
}
|
|
517
522
|
|
package/src/workflow/workflow.ts
CHANGED
|
@@ -2312,13 +2312,18 @@ export class Workflow extends DiagramCanvasElement {
|
|
|
2312
2312
|
class=${classMap({
|
|
2313
2313
|
'wf-join': true,
|
|
2314
2314
|
'is-bar': step.type === 'parallel',
|
|
2315
|
+
'is-first': step.type === 'parallel' && step.mode === 'first',
|
|
2315
2316
|
})}
|
|
2316
2317
|
data-join-for=${step.id}
|
|
2317
2318
|
data-out-for=${step.id}
|
|
2318
2319
|
data-flip=${`join:${step.id}`}
|
|
2319
2320
|
>
|
|
2320
2321
|
${step.type === 'parallel'
|
|
2321
|
-
? html`<span
|
|
2322
|
+
? html`<span
|
|
2323
|
+
>${step.mode === 'first'
|
|
2324
|
+
? this.i18n.t('workflowFirstToFinish')
|
|
2325
|
+
: this.i18n.t('workflowWaitForAll')}</span
|
|
2326
|
+
>`
|
|
2322
2327
|
: nothing}
|
|
2323
2328
|
</div>`}
|
|
2324
2329
|
</div>`;
|
|
@@ -2326,6 +2331,7 @@ export class Workflow extends DiagramCanvasElement {
|
|
|
2326
2331
|
if (step.type === 'loop' && !collapsed) {
|
|
2327
2332
|
const mode = {
|
|
2328
2333
|
'for-each': this.i18n.t('workflowLoopForEach'),
|
|
2334
|
+
times: this.i18n.t('workflowLoopTimes'),
|
|
2329
2335
|
while: this.i18n.t('workflowLoopWhile'),
|
|
2330
2336
|
until: this.i18n.t('workflowLoopUntil'),
|
|
2331
2337
|
}[step.mode ?? 'for-each'];
|
|
@@ -2343,7 +2349,9 @@ export class Workflow extends DiagramCanvasElement {
|
|
|
2343
2349
|
)}
|
|
2344
2350
|
${step.over
|
|
2345
2351
|
? html`<span class="wf-loop-over"
|
|
2346
|
-
>${this.renderValue(step.over)}
|
|
2352
|
+
>${this.renderValue(step.over)}${step.mode === 'times'
|
|
2353
|
+
? ` ${this.i18n.t('workflowLoopTimesSuffix')}`
|
|
2354
|
+
: nothing}</span
|
|
2347
2355
|
>`
|
|
2348
2356
|
: nothing}
|
|
2349
2357
|
${this.renderIterations(step.id)}
|