@limetech/lime-elements 35.1.0-next.1 → 35.1.0-next.4

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.
@@ -24072,9 +24072,20 @@ function renderCollapsibleField(props) {
24072
24072
  const defaultOpen = !isCollapsed(props.schema);
24073
24073
  return react.createElement('limel-collapsible-section', {
24074
24074
  header: props.title,
24075
+ id: getSchemaObjectPropertyPath(props.formContext.schema, props.idSchema),
24075
24076
  'is-open': defaultOpen,
24076
24077
  }, renderDescription(props.description), renderProperties(props.properties, props.schema));
24077
24078
  }
24079
+ function getSchemaObjectPropertyPath(schema, subSchema) {
24080
+ var _a;
24081
+ const refPrefixLength = 2;
24082
+ const matchAllForwardSlashes = /\//g;
24083
+ const rootPath = schema.$ref
24084
+ .replace(matchAllForwardSlashes, '.')
24085
+ .slice(refPrefixLength);
24086
+ const subSchemaPath = (_a = subSchema.$id) === null || _a === void 0 ? void 0 : _a.replace('_', '.properties.');
24087
+ return subSchemaPath.replace('root', rootPath);
24088
+ }
24078
24089
  function renderProperties(properties, schema) {
24079
24090
  var _a;
24080
24091
  const layout = (_a = schema.lime) === null || _a === void 0 ? void 0 : _a.layout;
@@ -29643,6 +29654,7 @@ const Form = class {
29643
29654
  const errors = originalErrors.map((error) => {
29644
29655
  return {
29645
29656
  name: error.name,
29657
+ params: error.params,
29646
29658
  property: error.property,
29647
29659
  message: error.message,
29648
29660
  // For some reason 'schemaPath' is missing from the AjvError type definition:
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-2a28697b.js');
6
6
 
7
- const progressFlowCss = ":host{--step-height:2.5rem;--selected-indicator-right:-0.5rem;--max-text-width:10rem;box-sizing:border-box;width:100%;display:flex;flex-direction:row;align-items:flex-start;overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none;padding:0.25rem}:host::-webkit-scrollbar{display:none}:host(.is-narrow){--step-height:1.5rem;--selected-indicator-right:0}";
7
+ const progressFlowCss = ":host{--step-height:2.5rem;--selected-indicator-right:-0.5rem;--max-text-width:10rem;isolation:isolate;box-sizing:border-box;width:100%;display:flex;flex-direction:row;align-items:flex-start;overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none;padding:0.25rem}:host::-webkit-scrollbar{display:none}:host(.is-narrow){--step-height:1.5rem;--selected-indicator-right:0}";
8
8
 
9
9
  const ProgressFlow = class {
10
10
  constructor(hostRef) {
@@ -163,6 +163,7 @@ export class Form {
163
163
  const errors = originalErrors.map((error) => {
164
164
  return {
165
165
  name: error.name,
166
+ params: error.params,
166
167
  property: error.property,
167
168
  message: error.message,
168
169
  // For some reason 'schemaPath' is missing from the AjvError type definition:
@@ -19,9 +19,20 @@ function renderCollapsibleField(props) {
19
19
  const defaultOpen = !isCollapsed(props.schema);
20
20
  return React.createElement('limel-collapsible-section', {
21
21
  header: props.title,
22
+ id: getSchemaObjectPropertyPath(props.formContext.schema, props.idSchema),
22
23
  'is-open': defaultOpen,
23
24
  }, renderDescription(props.description), renderProperties(props.properties, props.schema));
24
25
  }
26
+ function getSchemaObjectPropertyPath(schema, subSchema) {
27
+ var _a;
28
+ const refPrefixLength = 2;
29
+ const matchAllForwardSlashes = /\//g;
30
+ const rootPath = schema.$ref
31
+ .replace(matchAllForwardSlashes, '.')
32
+ .slice(refPrefixLength);
33
+ const subSchemaPath = (_a = subSchema.$id) === null || _a === void 0 ? void 0 : _a.replace('_', '.properties.');
34
+ return subSchemaPath.replace('root', rootPath);
35
+ }
25
36
  function renderProperties(properties, schema) {
26
37
  var _a;
27
38
  const layout = (_a = schema.lime) === null || _a === void 0 ? void 0 : _a.layout;
@@ -24,6 +24,7 @@
24
24
  --step-height: 2.5rem;
25
25
  --selected-indicator-right: -0.5rem;
26
26
  --max-text-width: 10rem;
27
+ isolation: isolate;
27
28
  box-sizing: border-box;
28
29
  width: 100%;
29
30
  display: flex;
@@ -14,6 +14,4 @@ $table--limel-table--row-selector: 1 !default;
14
14
  $popover-before: -1 !default;
15
15
  $button-group-radio-button-keyboard-focused: 1 !default;
16
16
  $list-mdc-list-item: 0 !default;
17
- $limel-progress-flow-step-content: 2 !default;
18
- $limel-progress-flow-divider: 1 !default;
19
17
  $limel-circular-progress-value: 1 !default;
@@ -24068,9 +24068,20 @@ function renderCollapsibleField(props) {
24068
24068
  const defaultOpen = !isCollapsed(props.schema);
24069
24069
  return react.createElement('limel-collapsible-section', {
24070
24070
  header: props.title,
24071
+ id: getSchemaObjectPropertyPath(props.formContext.schema, props.idSchema),
24071
24072
  'is-open': defaultOpen,
24072
24073
  }, renderDescription(props.description), renderProperties(props.properties, props.schema));
24073
24074
  }
24075
+ function getSchemaObjectPropertyPath(schema, subSchema) {
24076
+ var _a;
24077
+ const refPrefixLength = 2;
24078
+ const matchAllForwardSlashes = /\//g;
24079
+ const rootPath = schema.$ref
24080
+ .replace(matchAllForwardSlashes, '.')
24081
+ .slice(refPrefixLength);
24082
+ const subSchemaPath = (_a = subSchema.$id) === null || _a === void 0 ? void 0 : _a.replace('_', '.properties.');
24083
+ return subSchemaPath.replace('root', rootPath);
24084
+ }
24074
24085
  function renderProperties(properties, schema) {
24075
24086
  var _a;
24076
24087
  const layout = (_a = schema.lime) === null || _a === void 0 ? void 0 : _a.layout;
@@ -29639,6 +29650,7 @@ const Form = class {
29639
29650
  const errors = originalErrors.map((error) => {
29640
29651
  return {
29641
29652
  name: error.name,
29653
+ params: error.params,
29642
29654
  property: error.property,
29643
29655
  message: error.message,
29644
29656
  // For some reason 'schemaPath' is missing from the AjvError type definition:
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, c as createEvent, h, g as getElement } from './index-11cd0b60.js';
2
2
 
3
- const progressFlowCss = ":host{--step-height:2.5rem;--selected-indicator-right:-0.5rem;--max-text-width:10rem;box-sizing:border-box;width:100%;display:flex;flex-direction:row;align-items:flex-start;overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none;padding:0.25rem}:host::-webkit-scrollbar{display:none}:host(.is-narrow){--step-height:1.5rem;--selected-indicator-right:0}";
3
+ const progressFlowCss = ":host{--step-height:2.5rem;--selected-indicator-right:-0.5rem;--max-text-width:10rem;isolation:isolate;box-sizing:border-box;width:100%;display:flex;flex-direction:row;align-items:flex-start;overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none;padding:0.25rem}:host::-webkit-scrollbar{display:none}:host(.is-narrow){--step-height:1.5rem;--selected-indicator-right:0}";
4
4
 
5
5
  const ProgressFlow = class {
6
6
  constructor(hostRef) {
@@ -1 +1 @@
1
- import{p as e,b as l}from"./p-e9a95b8f.js";(()=>{const l=import.meta.url,i={};return""!==l&&(i.resourcesUrl=new URL(".",l).href),e(i)})().then((e=>l([["p-5908c21d",[[1,"limel-color-picker",{value:[513],label:[513],helperText:[513,"helper-text"],tooltipLabel:[513,"tooltip-label"],required:[516],readonly:[516],isOpen:[32]}]]],["p-84f933f7",[[1,"limel-picker",{disabled:[4],readonly:[516],label:[1],searchLabel:[1,"search-label"],helperText:[513,"helper-text"],leadingIcon:[1,"leading-icon"],emptyResultMessage:[1,"empty-result-message"],required:[4],value:[16],searcher:[16],multiple:[4],delimiter:[513],actions:[16],actionPosition:[1,"action-position"],actionScrollBehavior:[1,"action-scroll-behavior"],badgeIcons:[516,"badge-icons"],items:[32],textValue:[32],loading:[32],chips:[32]}]]],["p-4d5a874a",[[1,"limel-date-picker",{disabled:[516],readonly:[516],invalid:[516],label:[513],helperText:[513,"helper-text"],required:[516],value:[16],type:[513],format:[513],language:[513],formattedValue:[32],internalFormat:[32],showPortal:[32]}]]],["p-95f275ab",[[1,"limel-button-group",{value:[16],disabled:[516],selectedButtonId:[32]}]]],["p-d1ee4501",[[1,"limel-select",{disabled:[516],readonly:[516],invalid:[516],required:[516],label:[513],helperText:[513,"helper-text"],value:[16],options:[16],multiple:[4],menuOpen:[32]}]]],["p-440454ed",[[1,"limel-tab-panel",{tabs:[1040]}]]],["p-94899019",[[1,"limel-file",{value:[16],label:[513],required:[516],disabled:[516],readonly:[516],accept:[513],language:[1],isDraggingOverDropZone:[32]}]]],["p-e80dd2ff",[[1,"limel-menu",{items:[16],disabled:[516],openDirection:[513,"open-direction"],open:[1540],badgeIcons:[516,"badge-icons"],gridLayout:[516,"grid-layout"]}]]],["p-404e1465",[[1,"limel-button",{label:[513],primary:[516],outlined:[516],icon:[513],disabled:[516],loading:[516]}]]],["p-97d6c4a6",[[1,"limel-collapsible-section",{isOpen:[1540,"is-open"],header:[513],actions:[16]}]]],["p-f9bfbeb3",[[1,"limel-dialog",{heading:[1],fullscreen:[516],open:[1540],closingActions:[16]}]]],["p-dfbe015e",[[1,"limel-progress-flow",{flowItems:[16],disabled:[4],readonly:[4]}]]],["p-2639edf9",[[1,"limel-checkbox",{disabled:[516],readonly:[516],label:[513],helperText:[513,"helper-text"],checked:[516],indeterminate:[516],required:[516],modified:[32]}]]],["p-b95e80c9",[[1,"limel-table",{data:[16],columns:[16],mode:[1],pageSize:[2,"page-size"],totalRows:[2,"total-rows"],sorting:[16],activeRow:[1040],movableColumns:[4,"movable-columns"],loading:[4],page:[2],emptyMessage:[1,"empty-message"],aggregates:[16],selectable:[4],selection:[16]}]]],["p-63e25a0a",[[1,"limel-banner",{message:[513],icon:[513],isOpen:[32],open:[64],close:[64]}]]],["p-53e01330",[[1,"limel-circular-progress",{value:[2],maxValue:[2,"max-value"],suffix:[1],displayPercentageColors:[4,"display-percentage-colors"],size:[513]}]]],["p-6966b5df",[[1,"limel-code-editor",{value:[1],language:[1],readonly:[4],lineNumbers:[4,"line-numbers"],colorScheme:[1,"color-scheme"],random:[32]}]]],["p-d74fa89e",[[1,"limel-config",{config:[16]}]]],["p-a5af84a7",[[1,"limel-flex-container",{direction:[513],justify:[513],align:[513],reverse:[516]}]]],["p-1a9a961a",[[1,"limel-form",{schema:[16],value:[16],disabled:[4],propsFactory:[16],transformErrors:[16],errors:[16]}]]],["p-6e7809a6",[[1,"limel-grid"]]],["p-71efe2ca",[[1,"limel-linear-progress",{value:[2],indeterminate:[4]}]]],["p-c80acfb2",[[1,"limel-slider",{disabled:[516],readonly:[516],factor:[514],label:[513],helperText:[513,"helper-text"],unit:[513],value:[514],valuemax:[514],valuemin:[514],step:[514],percentageClass:[32]}]]],["p-e98d76e8",[[1,"limel-snackbar",{message:[1],timeout:[2],actionText:[1,"action-text"],dismissible:[4],multiline:[4],language:[1],show:[64]}]]],["p-a465084b",[[1,"limel-switch",{label:[513],disabled:[516],readonly:[516],value:[516],fieldId:[32]}]]],["p-8827628d",[[1,"limel-tab-bar",{tabs:[1040],canScrollLeft:[32],canScrollRight:[32]},[[9,"resize","handleWindowResize"]]]]],["p-b0046fcd",[[1,"limel-header",{icon:[1],heading:[1],subheading:[1],supportingText:[1,"supporting-text"]}]]],["p-83ea517b",[[0,"limel-progress-flow-item",{item:[16],disabled:[4],readonly:[4]}]]],["p-af0ec482",[[1,"limel-flatpickr-adapter",{value:[16],type:[1],format:[1],isOpen:[4,"is-open"],inputElement:[16],language:[1]}]]],["p-c7953a05",[[1,"limel-menu-list",{items:[16],badgeIcons:[4,"badge-icons"],iconSize:[1,"icon-size"],type:[1],maxLinesSecondaryText:[2,"max-lines-secondary-text"]}]]],["p-705334c1",[[1,"limel-popover-surface",{contentCollection:[16]}]]],["p-f0c9dadd",[[1,"limel-icon",{size:[513],name:[513],badge:[516]}]]],["p-7ee4b825",[[1,"limel-input-field",{disabled:[516],readonly:[516],invalid:[516],label:[513],helperText:[513,"helper-text"],prefix:[513],suffix:[513],required:[516],value:[513],trailingIcon:[513,"trailing-icon"],leadingIcon:[513,"leading-icon"],pattern:[513],type:[513],formatNumber:[516,"format-number"],step:[520],max:[514],min:[514],maxlength:[514],minlength:[514],completions:[16],showLink:[516,"show-link"],isFocused:[32],isModified:[32],showCompletions:[32]}]]],["p-2754e134",[[1,"limel-color-picker-palette",{value:[513],label:[513],helperText:[513,"helper-text"],required:[516]}],[1,"limel-popover",{open:[4]}]]],["p-42b67933",[[1,"limel-badge",{label:[514]}]]],["p-e83dddcd",[[1,"limel-chip-set",{value:[16],type:[513],label:[513],helperText:[513,"helper-text"],disabled:[516],readonly:[516],maxItems:[514,"max-items"],required:[516],searchLabel:[513,"search-label"],emptyInputOnBlur:[516,"empty-input-on-blur"],clearAllButton:[4,"clear-all-button"],leadingIcon:[513,"leading-icon"],delimiter:[513],language:[1],editMode:[32],textValue:[32],blurred:[32],inputChipIndexSelected:[32],getEditMode:[64],setFocus:[64],emptyInput:[64]}]]],["p-bd8c9384",[[1,"limel-icon-button",{icon:[513],elevated:[516],label:[513],disabled:[516],relayout:[64]}]]],["p-ed65468d",[[1,"limel-spinner",{size:[513],limeBranded:[4,"lime-branded"]}]]],["p-b91dc1ef",[[1,"limel-list",{items:[16],badgeIcons:[4,"badge-icons"],iconSize:[1,"icon-size"],type:[1],maxLinesSecondaryText:[2,"max-lines-secondary-text"]}],[1,"limel-menu-surface",{open:[4],allowClicksElement:[16]}],[1,"limel-portal",{openDirection:[1,"open-direction"],position:[1],containerId:[1,"container-id"],containerStyle:[16],parent:[16],inheritParentWidth:[4,"inherit-parent-width"],visible:[4]}]]],["p-36ecbd03",[[1,"limel-tooltip",{elementId:[513,"element-id"],label:[513],helperLabel:[513,"helper-label"],maxlength:[514],open:[32]}],[1,"limel-tooltip-content",{label:[513],helperLabel:[513,"helper-label"],maxlength:[514]}]]]],e)));
1
+ import{p as e,b as l}from"./p-e9a95b8f.js";(()=>{const l=import.meta.url,i={};return""!==l&&(i.resourcesUrl=new URL(".",l).href),e(i)})().then((e=>l([["p-5908c21d",[[1,"limel-color-picker",{value:[513],label:[513],helperText:[513,"helper-text"],tooltipLabel:[513,"tooltip-label"],required:[516],readonly:[516],isOpen:[32]}]]],["p-84f933f7",[[1,"limel-picker",{disabled:[4],readonly:[516],label:[1],searchLabel:[1,"search-label"],helperText:[513,"helper-text"],leadingIcon:[1,"leading-icon"],emptyResultMessage:[1,"empty-result-message"],required:[4],value:[16],searcher:[16],multiple:[4],delimiter:[513],actions:[16],actionPosition:[1,"action-position"],actionScrollBehavior:[1,"action-scroll-behavior"],badgeIcons:[516,"badge-icons"],items:[32],textValue:[32],loading:[32],chips:[32]}]]],["p-4d5a874a",[[1,"limel-date-picker",{disabled:[516],readonly:[516],invalid:[516],label:[513],helperText:[513,"helper-text"],required:[516],value:[16],type:[513],format:[513],language:[513],formattedValue:[32],internalFormat:[32],showPortal:[32]}]]],["p-95f275ab",[[1,"limel-button-group",{value:[16],disabled:[516],selectedButtonId:[32]}]]],["p-d1ee4501",[[1,"limel-select",{disabled:[516],readonly:[516],invalid:[516],required:[516],label:[513],helperText:[513,"helper-text"],value:[16],options:[16],multiple:[4],menuOpen:[32]}]]],["p-440454ed",[[1,"limel-tab-panel",{tabs:[1040]}]]],["p-94899019",[[1,"limel-file",{value:[16],label:[513],required:[516],disabled:[516],readonly:[516],accept:[513],language:[1],isDraggingOverDropZone:[32]}]]],["p-e80dd2ff",[[1,"limel-menu",{items:[16],disabled:[516],openDirection:[513,"open-direction"],open:[1540],badgeIcons:[516,"badge-icons"],gridLayout:[516,"grid-layout"]}]]],["p-404e1465",[[1,"limel-button",{label:[513],primary:[516],outlined:[516],icon:[513],disabled:[516],loading:[516]}]]],["p-97d6c4a6",[[1,"limel-collapsible-section",{isOpen:[1540,"is-open"],header:[513],actions:[16]}]]],["p-f9bfbeb3",[[1,"limel-dialog",{heading:[1],fullscreen:[516],open:[1540],closingActions:[16]}]]],["p-9af0704c",[[1,"limel-progress-flow",{flowItems:[16],disabled:[4],readonly:[4]}]]],["p-2639edf9",[[1,"limel-checkbox",{disabled:[516],readonly:[516],label:[513],helperText:[513,"helper-text"],checked:[516],indeterminate:[516],required:[516],modified:[32]}]]],["p-b95e80c9",[[1,"limel-table",{data:[16],columns:[16],mode:[1],pageSize:[2,"page-size"],totalRows:[2,"total-rows"],sorting:[16],activeRow:[1040],movableColumns:[4,"movable-columns"],loading:[4],page:[2],emptyMessage:[1,"empty-message"],aggregates:[16],selectable:[4],selection:[16]}]]],["p-63e25a0a",[[1,"limel-banner",{message:[513],icon:[513],isOpen:[32],open:[64],close:[64]}]]],["p-53e01330",[[1,"limel-circular-progress",{value:[2],maxValue:[2,"max-value"],suffix:[1],displayPercentageColors:[4,"display-percentage-colors"],size:[513]}]]],["p-6966b5df",[[1,"limel-code-editor",{value:[1],language:[1],readonly:[4],lineNumbers:[4,"line-numbers"],colorScheme:[1,"color-scheme"],random:[32]}]]],["p-d74fa89e",[[1,"limel-config",{config:[16]}]]],["p-a5af84a7",[[1,"limel-flex-container",{direction:[513],justify:[513],align:[513],reverse:[516]}]]],["p-b8a0454f",[[1,"limel-form",{schema:[16],value:[16],disabled:[4],propsFactory:[16],transformErrors:[16],errors:[16]}]]],["p-6e7809a6",[[1,"limel-grid"]]],["p-71efe2ca",[[1,"limel-linear-progress",{value:[2],indeterminate:[4]}]]],["p-c80acfb2",[[1,"limel-slider",{disabled:[516],readonly:[516],factor:[514],label:[513],helperText:[513,"helper-text"],unit:[513],value:[514],valuemax:[514],valuemin:[514],step:[514],percentageClass:[32]}]]],["p-e98d76e8",[[1,"limel-snackbar",{message:[1],timeout:[2],actionText:[1,"action-text"],dismissible:[4],multiline:[4],language:[1],show:[64]}]]],["p-a465084b",[[1,"limel-switch",{label:[513],disabled:[516],readonly:[516],value:[516],fieldId:[32]}]]],["p-8827628d",[[1,"limel-tab-bar",{tabs:[1040],canScrollLeft:[32],canScrollRight:[32]},[[9,"resize","handleWindowResize"]]]]],["p-b0046fcd",[[1,"limel-header",{icon:[1],heading:[1],subheading:[1],supportingText:[1,"supporting-text"]}]]],["p-83ea517b",[[0,"limel-progress-flow-item",{item:[16],disabled:[4],readonly:[4]}]]],["p-af0ec482",[[1,"limel-flatpickr-adapter",{value:[16],type:[1],format:[1],isOpen:[4,"is-open"],inputElement:[16],language:[1]}]]],["p-c7953a05",[[1,"limel-menu-list",{items:[16],badgeIcons:[4,"badge-icons"],iconSize:[1,"icon-size"],type:[1],maxLinesSecondaryText:[2,"max-lines-secondary-text"]}]]],["p-705334c1",[[1,"limel-popover-surface",{contentCollection:[16]}]]],["p-f0c9dadd",[[1,"limel-icon",{size:[513],name:[513],badge:[516]}]]],["p-7ee4b825",[[1,"limel-input-field",{disabled:[516],readonly:[516],invalid:[516],label:[513],helperText:[513,"helper-text"],prefix:[513],suffix:[513],required:[516],value:[513],trailingIcon:[513,"trailing-icon"],leadingIcon:[513,"leading-icon"],pattern:[513],type:[513],formatNumber:[516,"format-number"],step:[520],max:[514],min:[514],maxlength:[514],minlength:[514],completions:[16],showLink:[516,"show-link"],isFocused:[32],isModified:[32],showCompletions:[32]}]]],["p-2754e134",[[1,"limel-color-picker-palette",{value:[513],label:[513],helperText:[513,"helper-text"],required:[516]}],[1,"limel-popover",{open:[4]}]]],["p-42b67933",[[1,"limel-badge",{label:[514]}]]],["p-e83dddcd",[[1,"limel-chip-set",{value:[16],type:[513],label:[513],helperText:[513,"helper-text"],disabled:[516],readonly:[516],maxItems:[514,"max-items"],required:[516],searchLabel:[513,"search-label"],emptyInputOnBlur:[516,"empty-input-on-blur"],clearAllButton:[4,"clear-all-button"],leadingIcon:[513,"leading-icon"],delimiter:[513],language:[1],editMode:[32],textValue:[32],blurred:[32],inputChipIndexSelected:[32],getEditMode:[64],setFocus:[64],emptyInput:[64]}]]],["p-bd8c9384",[[1,"limel-icon-button",{icon:[513],elevated:[516],label:[513],disabled:[516],relayout:[64]}]]],["p-ed65468d",[[1,"limel-spinner",{size:[513],limeBranded:[4,"lime-branded"]}]]],["p-b91dc1ef",[[1,"limel-list",{items:[16],badgeIcons:[4,"badge-icons"],iconSize:[1,"icon-size"],type:[1],maxLinesSecondaryText:[2,"max-lines-secondary-text"]}],[1,"limel-menu-surface",{open:[4],allowClicksElement:[16]}],[1,"limel-portal",{openDirection:[1,"open-direction"],position:[1],containerId:[1,"container-id"],containerStyle:[16],parent:[16],inheritParentWidth:[4,"inherit-parent-width"],visible:[4]}]]],["p-36ecbd03",[[1,"limel-tooltip",{elementId:[513,"element-id"],label:[513],helperLabel:[513,"helper-label"],maxlength:[514],open:[32]}],[1,"limel-tooltip-content",{label:[513],helperLabel:[513,"helper-label"],maxlength:[514]}]]]],e)));
@@ -1 +1 @@
1
- import{r as t,c as e,h as s,g as i}from"./p-e9a95b8f.js";const o=class{constructor(i){t(this,i),this.change=e(this,"change",7),this.flowItems=[],this.disabled=!1,this.readonly=!1,this.renderRegularFlowItem=(t,e,i)=>s("limel-progress-flow-item",{class:{"flow-item":!0,first:0===e,last:e===i.length-1,passed:e<this.selectedItemIndex,selected:t.selected},style:this.getItemStyle(t),disabled:this.disabled||this.readonly,readonly:this.readonly,item:t,onInteract:this.handleFlowItemClick(t)}),this.renderEndPhaseItem=(t,e,i)=>s("limel-progress-flow-item",{class:{"flow-item":!0,"off-progress-item":!0,selected:t.selected,"first-off-progress-item":0===e,"last-off-progress-item":e===i.length-1},style:this.getItemStyle(t),disabled:this.disabled||this.readonly,readonly:this.readonly,item:t,onInteract:this.handleFlowItemClick(t)}),this.handleFlowItemClick=t=>()=>{t.selected||t.disabled||this.disabled||this.change.emit(t)}}componentDidRender(){this.scrollToSelectedItem()}render(){const t=this.flowItems.filter((t=>!t.isOffProgress)),e=this.flowItems.filter((t=>t.isOffProgress));return this.selectedItemIndex=t.findIndex((t=>t.selected)),[t.map(this.renderRegularFlowItem),e.map(this.renderEndPhaseItem)]}getItemStyle(t){const e={};return(null==t?void 0:t.selectedColor)&&(e["--progress-flow-step-background-color--selected"]=t.selectedColor),(null==t?void 0:t.passedColor)&&(e["--progress-flow-step-background-color--passed"]=t.passedColor),(null==t?void 0:t.iconColor)&&(e["--progress-flow-icon-color--inactive"]=t.iconColor),e}scrollToSelectedItem(){const t=this.getElementForSelectedItem();t&&this.element.scrollTo({behavior:"smooth",left:t.offsetLeft-this.element.offsetLeft-this.element.offsetWidth/2+t.offsetWidth/2})}getElementForSelectedItem(){return this.element.shadowRoot.querySelector(".flow-item.selected")}get element(){return i(this)}};o.style=":host{--step-height:2.5rem;--selected-indicator-right:-0.5rem;--max-text-width:10rem;box-sizing:border-box;width:100%;display:flex;flex-direction:row;align-items:flex-start;overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none;padding:0.25rem}:host::-webkit-scrollbar{display:none}:host(.is-narrow){--step-height:1.5rem;--selected-indicator-right:0}";export{o as limel_progress_flow}
1
+ import{r as t,c as e,h as s,g as i}from"./p-e9a95b8f.js";const o=class{constructor(i){t(this,i),this.change=e(this,"change",7),this.flowItems=[],this.disabled=!1,this.readonly=!1,this.renderRegularFlowItem=(t,e,i)=>s("limel-progress-flow-item",{class:{"flow-item":!0,first:0===e,last:e===i.length-1,passed:e<this.selectedItemIndex,selected:t.selected},style:this.getItemStyle(t),disabled:this.disabled||this.readonly,readonly:this.readonly,item:t,onInteract:this.handleFlowItemClick(t)}),this.renderEndPhaseItem=(t,e,i)=>s("limel-progress-flow-item",{class:{"flow-item":!0,"off-progress-item":!0,selected:t.selected,"first-off-progress-item":0===e,"last-off-progress-item":e===i.length-1},style:this.getItemStyle(t),disabled:this.disabled||this.readonly,readonly:this.readonly,item:t,onInteract:this.handleFlowItemClick(t)}),this.handleFlowItemClick=t=>()=>{t.selected||t.disabled||this.disabled||this.change.emit(t)}}componentDidRender(){this.scrollToSelectedItem()}render(){const t=this.flowItems.filter((t=>!t.isOffProgress)),e=this.flowItems.filter((t=>t.isOffProgress));return this.selectedItemIndex=t.findIndex((t=>t.selected)),[t.map(this.renderRegularFlowItem),e.map(this.renderEndPhaseItem)]}getItemStyle(t){const e={};return(null==t?void 0:t.selectedColor)&&(e["--progress-flow-step-background-color--selected"]=t.selectedColor),(null==t?void 0:t.passedColor)&&(e["--progress-flow-step-background-color--passed"]=t.passedColor),(null==t?void 0:t.iconColor)&&(e["--progress-flow-icon-color--inactive"]=t.iconColor),e}scrollToSelectedItem(){const t=this.getElementForSelectedItem();t&&this.element.scrollTo({behavior:"smooth",left:t.offsetLeft-this.element.offsetLeft-this.element.offsetWidth/2+t.offsetWidth/2})}getElementForSelectedItem(){return this.element.shadowRoot.querySelector(".flow-item.selected")}get element(){return i(this)}};o.style=":host{--step-height:2.5rem;--selected-indicator-right:-0.5rem;--max-text-width:10rem;isolation:isolate;box-sizing:border-box;width:100%;display:flex;flex-direction:row;align-items:flex-start;overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none;padding:0.25rem}:host::-webkit-scrollbar{display:none}:host(.is-narrow){--step-height:1.5rem;--selected-indicator-right:0}";export{o as limel_progress_flow}