camunda-bpmn-js 0.13.1 → 0.13.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/CHANGELOG.md +13 -0
- package/dist/base-modeler.development.js +187 -189
- package/dist/base-modeler.production.min.js +1 -1
- package/dist/camunda-cloud-modeler.development.js +291 -268
- package/dist/camunda-cloud-modeler.production.min.js +1 -1
- package/dist/camunda-platform-modeler.development.js +234 -236
- package/dist/camunda-platform-modeler.production.min.js +1 -1
- package/package.json +10 -4
|
@@ -61707,19 +61707,19 @@
|
|
|
61707
61707
|
getDescriptionForId: () => {}
|
|
61708
61708
|
});
|
|
61709
61709
|
|
|
61710
|
-
/**
|
|
61711
|
-
* @typedef {Function} <propertiesPanel.showEntry> callback
|
|
61712
|
-
*
|
|
61713
|
-
* @example
|
|
61714
|
-
*
|
|
61715
|
-
* useEvent('propertiesPanel.showEntry', ({ focus = false, ...rest }) => {
|
|
61716
|
-
* // ...
|
|
61717
|
-
* });
|
|
61718
|
-
*
|
|
61719
|
-
* @param {Object} context
|
|
61720
|
-
* @param {boolean} [context.focus]
|
|
61721
|
-
*
|
|
61722
|
-
* @returns void
|
|
61710
|
+
/**
|
|
61711
|
+
* @typedef {Function} <propertiesPanel.showEntry> callback
|
|
61712
|
+
*
|
|
61713
|
+
* @example
|
|
61714
|
+
*
|
|
61715
|
+
* useEvent('propertiesPanel.showEntry', ({ focus = false, ...rest }) => {
|
|
61716
|
+
* // ...
|
|
61717
|
+
* });
|
|
61718
|
+
*
|
|
61719
|
+
* @param {Object} context
|
|
61720
|
+
* @param {boolean} [context.focus]
|
|
61721
|
+
*
|
|
61722
|
+
* @returns void
|
|
61723
61723
|
*/
|
|
61724
61724
|
const EventContext = q({
|
|
61725
61725
|
eventBus: null
|
|
@@ -61732,20 +61732,20 @@
|
|
|
61732
61732
|
setLayoutForKey: () => {}
|
|
61733
61733
|
});
|
|
61734
61734
|
|
|
61735
|
-
/**
|
|
61736
|
-
* Accesses the global DescriptionContext and returns a description for a given id and element.
|
|
61737
|
-
*
|
|
61738
|
-
* @example
|
|
61739
|
-
* ```jsx
|
|
61740
|
-
* function TextField(props) {
|
|
61741
|
-
* const description = useDescriptionContext('input1', element);
|
|
61742
|
-
* }
|
|
61743
|
-
* ```
|
|
61744
|
-
*
|
|
61745
|
-
* @param {string} id
|
|
61746
|
-
* @param {djs.model.Base} element
|
|
61747
|
-
*
|
|
61748
|
-
* @returns {string}
|
|
61735
|
+
/**
|
|
61736
|
+
* Accesses the global DescriptionContext and returns a description for a given id and element.
|
|
61737
|
+
*
|
|
61738
|
+
* @example
|
|
61739
|
+
* ```jsx
|
|
61740
|
+
* function TextField(props) {
|
|
61741
|
+
* const description = useDescriptionContext('input1', element);
|
|
61742
|
+
* }
|
|
61743
|
+
* ```
|
|
61744
|
+
*
|
|
61745
|
+
* @param {string} id
|
|
61746
|
+
* @param {djs.model.Base} element
|
|
61747
|
+
*
|
|
61748
|
+
* @returns {string}
|
|
61749
61749
|
*/
|
|
61750
61750
|
|
|
61751
61751
|
function useDescriptionContext(id, element) {
|
|
@@ -61756,14 +61756,14 @@
|
|
|
61756
61756
|
}
|
|
61757
61757
|
|
|
61758
61758
|
const DEFAULT_PRIORITY$6 = 1000;
|
|
61759
|
-
/**
|
|
61760
|
-
* Subscribe to an event.
|
|
61761
|
-
*
|
|
61762
|
-
* @param {string} event
|
|
61763
|
-
* @param {Function} callback
|
|
61764
|
-
* @param {number} [priority]
|
|
61765
|
-
*
|
|
61766
|
-
* @returns {import('preact').Ref}
|
|
61759
|
+
/**
|
|
61760
|
+
* Subscribe to an event.
|
|
61761
|
+
*
|
|
61762
|
+
* @param {string} event
|
|
61763
|
+
* @param {Function} callback
|
|
61764
|
+
* @param {number} [priority]
|
|
61765
|
+
*
|
|
61766
|
+
* @returns {import('preact').Ref}
|
|
61767
61767
|
*/
|
|
61768
61768
|
|
|
61769
61769
|
function useEvent(event, callback, priority = DEFAULT_PRIORITY$6) {
|
|
@@ -61781,11 +61781,11 @@
|
|
|
61781
61781
|
}
|
|
61782
61782
|
|
|
61783
61783
|
const HIGH_PRIORITY$l = 10000;
|
|
61784
|
-
/**
|
|
61785
|
-
* Buffer events and re-fire during passive effect phase.
|
|
61786
|
-
*
|
|
61787
|
-
* @param {string[]} bufferedEvents
|
|
61788
|
-
* @param {Object} [eventBus]
|
|
61784
|
+
/**
|
|
61785
|
+
* Buffer events and re-fire during passive effect phase.
|
|
61786
|
+
*
|
|
61787
|
+
* @param {string[]} bufferedEvents
|
|
61788
|
+
* @param {Object} [eventBus]
|
|
61789
61789
|
*/
|
|
61790
61790
|
|
|
61791
61791
|
function useEventBuffer(bufferedEvents, eventBus) {
|
|
@@ -61834,24 +61834,24 @@
|
|
|
61834
61834
|
}
|
|
61835
61835
|
|
|
61836
61836
|
const KEY_LENGTH = 6;
|
|
61837
|
-
/**
|
|
61838
|
-
* Create a persistent key factory for plain objects without id.
|
|
61839
|
-
*
|
|
61840
|
-
* @example
|
|
61841
|
-
* ```jsx
|
|
61842
|
-
* function List({ objects }) {
|
|
61843
|
-
* const getKey = useKeyFactory();
|
|
61844
|
-
* return (<ol>{
|
|
61845
|
-
* objects.map(obj => {
|
|
61846
|
-
* const key = getKey(obj);
|
|
61847
|
-
* return <li key={key}>obj.name</li>
|
|
61848
|
-
* })
|
|
61849
|
-
* }</ol>);
|
|
61850
|
-
* }
|
|
61851
|
-
* ```
|
|
61852
|
-
*
|
|
61853
|
-
* @param {any[]} dependencies
|
|
61854
|
-
* @returns {(element: object) => string}
|
|
61837
|
+
/**
|
|
61838
|
+
* Create a persistent key factory for plain objects without id.
|
|
61839
|
+
*
|
|
61840
|
+
* @example
|
|
61841
|
+
* ```jsx
|
|
61842
|
+
* function List({ objects }) {
|
|
61843
|
+
* const getKey = useKeyFactory();
|
|
61844
|
+
* return (<ol>{
|
|
61845
|
+
* objects.map(obj => {
|
|
61846
|
+
* const key = getKey(obj);
|
|
61847
|
+
* return <li key={key}>obj.name</li>
|
|
61848
|
+
* })
|
|
61849
|
+
* }</ol>);
|
|
61850
|
+
* }
|
|
61851
|
+
* ```
|
|
61852
|
+
*
|
|
61853
|
+
* @param {any[]} dependencies
|
|
61854
|
+
* @returns {(element: object) => string}
|
|
61855
61855
|
*/
|
|
61856
61856
|
|
|
61857
61857
|
function useKeyFactory(dependencies = []) {
|
|
@@ -61871,20 +61871,20 @@
|
|
|
61871
61871
|
return getKey;
|
|
61872
61872
|
}
|
|
61873
61873
|
|
|
61874
|
-
/**
|
|
61875
|
-
* Creates a state that persists in the global LayoutContext.
|
|
61876
|
-
*
|
|
61877
|
-
* @example
|
|
61878
|
-
* ```jsx
|
|
61879
|
-
* function Group(props) {
|
|
61880
|
-
* const [ open, setOpen ] = useLayoutState([ 'groups', 'foo', 'open' ], false);
|
|
61881
|
-
* }
|
|
61882
|
-
* ```
|
|
61883
|
-
*
|
|
61884
|
-
* @param {(string|number)[]} path
|
|
61885
|
-
* @param {any} [defaultValue]
|
|
61886
|
-
*
|
|
61887
|
-
* @returns {[ any, Function ]}
|
|
61874
|
+
/**
|
|
61875
|
+
* Creates a state that persists in the global LayoutContext.
|
|
61876
|
+
*
|
|
61877
|
+
* @example
|
|
61878
|
+
* ```jsx
|
|
61879
|
+
* function Group(props) {
|
|
61880
|
+
* const [ open, setOpen ] = useLayoutState([ 'groups', 'foo', 'open' ], false);
|
|
61881
|
+
* }
|
|
61882
|
+
* ```
|
|
61883
|
+
*
|
|
61884
|
+
* @param {(string|number)[]} path
|
|
61885
|
+
* @param {any} [defaultValue]
|
|
61886
|
+
*
|
|
61887
|
+
* @returns {[ any, Function ]}
|
|
61888
61888
|
*/
|
|
61889
61889
|
|
|
61890
61890
|
function useLayoutState(path, defaultValue) {
|
|
@@ -61905,11 +61905,11 @@
|
|
|
61905
61905
|
return [value, setState];
|
|
61906
61906
|
}
|
|
61907
61907
|
|
|
61908
|
-
/**
|
|
61909
|
-
* @pinussilvestrus: we need to introduce our own hook to persist the previous
|
|
61910
|
-
* state on updates.
|
|
61911
|
-
*
|
|
61912
|
-
* cf. https://reactjs.org/docs/hooks-faq.html#how-to-get-the-previous-props-or-state
|
|
61908
|
+
/**
|
|
61909
|
+
* @pinussilvestrus: we need to introduce our own hook to persist the previous
|
|
61910
|
+
* state on updates.
|
|
61911
|
+
*
|
|
61912
|
+
* cf. https://reactjs.org/docs/hooks-faq.html#how-to-get-the-previous-props-or-state
|
|
61913
61913
|
*/
|
|
61914
61914
|
|
|
61915
61915
|
function usePrevious(value) {
|
|
@@ -61920,12 +61920,12 @@
|
|
|
61920
61920
|
return ref.current;
|
|
61921
61921
|
}
|
|
61922
61922
|
|
|
61923
|
-
/**
|
|
61924
|
-
* Subscribe to `propertiesPanel.showEntry`.
|
|
61925
|
-
*
|
|
61926
|
-
* @param {Function} show
|
|
61927
|
-
*
|
|
61928
|
-
* @returns {import('preact').Ref}
|
|
61923
|
+
/**
|
|
61924
|
+
* Subscribe to `propertiesPanel.showEntry`.
|
|
61925
|
+
*
|
|
61926
|
+
* @param {Function} show
|
|
61927
|
+
*
|
|
61928
|
+
* @returns {import('preact').Ref}
|
|
61929
61929
|
*/
|
|
61930
61930
|
|
|
61931
61931
|
function useShowEntryEvent(show) {
|
|
@@ -61962,14 +61962,14 @@
|
|
|
61962
61962
|
return ref;
|
|
61963
61963
|
}
|
|
61964
61964
|
|
|
61965
|
-
/**
|
|
61966
|
-
* Subscribe to `propertiesPanel.showError`. On `propertiesPanel.showError` set
|
|
61967
|
-
* temporary error. Fire `propertiesPanel.showEntry` for temporary error to be
|
|
61968
|
-
* visible. Unset error on `propertiesPanel.updated`.
|
|
61969
|
-
*
|
|
61970
|
-
* @param {Function} show
|
|
61971
|
-
*
|
|
61972
|
-
* @returns {import('preact').Ref}
|
|
61965
|
+
/**
|
|
61966
|
+
* Subscribe to `propertiesPanel.showError`. On `propertiesPanel.showError` set
|
|
61967
|
+
* temporary error. Fire `propertiesPanel.showEntry` for temporary error to be
|
|
61968
|
+
* visible. Unset error on `propertiesPanel.updated`.
|
|
61969
|
+
*
|
|
61970
|
+
* @param {Function} show
|
|
61971
|
+
*
|
|
61972
|
+
* @returns {import('preact').Ref}
|
|
61973
61973
|
*/
|
|
61974
61974
|
|
|
61975
61975
|
function useShowErrorEvent(show) {
|
|
@@ -62080,66 +62080,66 @@
|
|
|
62080
62080
|
};
|
|
62081
62081
|
const DEFAULT_DESCRIPTION = {};
|
|
62082
62082
|
const bufferedEvents = ['propertiesPanel.showEntry', 'propertiesPanel.showError'];
|
|
62083
|
-
/**
|
|
62084
|
-
* @typedef { {
|
|
62085
|
-
* component: import('preact').Component,
|
|
62086
|
-
* id: String,
|
|
62087
|
-
* isEdited?: Function
|
|
62088
|
-
* } } EntryDefinition
|
|
62089
|
-
*
|
|
62090
|
-
* @typedef { {
|
|
62091
|
-
* autoFocusEntry: String,
|
|
62092
|
-
* autoOpen?: Boolean,
|
|
62093
|
-
* entries: Array<EntryDefinition>,
|
|
62094
|
-
* id: String,
|
|
62095
|
-
* label: String,
|
|
62096
|
-
* remove: (event: MouseEvent) => void
|
|
62097
|
-
* } } ListItemDefinition
|
|
62098
|
-
*
|
|
62099
|
-
* @typedef { {
|
|
62100
|
-
* add: (event: MouseEvent) => void,
|
|
62101
|
-
* component: import('preact').Component,
|
|
62102
|
-
* element: Object,
|
|
62103
|
-
* id: String,
|
|
62104
|
-
* items: Array<ListItemDefinition>,
|
|
62105
|
-
* label: String,
|
|
62106
|
-
* shouldSort?: Boolean,
|
|
62107
|
-
* shouldOpen?: Boolean
|
|
62108
|
-
* } } ListGroupDefinition
|
|
62109
|
-
*
|
|
62110
|
-
* @typedef { {
|
|
62111
|
-
* component?: import('preact').Component,
|
|
62112
|
-
* entries: Array<EntryDefinition>,
|
|
62113
|
-
* id: String,
|
|
62114
|
-
* label: String,
|
|
62115
|
-
* shouldOpen?: Boolean
|
|
62116
|
-
* } } GroupDefinition
|
|
62117
|
-
*
|
|
62118
|
-
* @typedef { {
|
|
62119
|
-
* [id: String]: GetDescriptionFunction
|
|
62120
|
-
* } } DescriptionConfig
|
|
62121
|
-
*
|
|
62122
|
-
* @callback { {
|
|
62123
|
-
* @param {string} id
|
|
62124
|
-
* @param {djs.model.base} element
|
|
62125
|
-
* @returns {string}
|
|
62126
|
-
* } } GetDescriptionFunction
|
|
62127
|
-
*
|
|
62083
|
+
/**
|
|
62084
|
+
* @typedef { {
|
|
62085
|
+
* component: import('preact').Component,
|
|
62086
|
+
* id: String,
|
|
62087
|
+
* isEdited?: Function
|
|
62088
|
+
* } } EntryDefinition
|
|
62089
|
+
*
|
|
62090
|
+
* @typedef { {
|
|
62091
|
+
* autoFocusEntry: String,
|
|
62092
|
+
* autoOpen?: Boolean,
|
|
62093
|
+
* entries: Array<EntryDefinition>,
|
|
62094
|
+
* id: String,
|
|
62095
|
+
* label: String,
|
|
62096
|
+
* remove: (event: MouseEvent) => void
|
|
62097
|
+
* } } ListItemDefinition
|
|
62098
|
+
*
|
|
62099
|
+
* @typedef { {
|
|
62100
|
+
* add: (event: MouseEvent) => void,
|
|
62101
|
+
* component: import('preact').Component,
|
|
62102
|
+
* element: Object,
|
|
62103
|
+
* id: String,
|
|
62104
|
+
* items: Array<ListItemDefinition>,
|
|
62105
|
+
* label: String,
|
|
62106
|
+
* shouldSort?: Boolean,
|
|
62107
|
+
* shouldOpen?: Boolean
|
|
62108
|
+
* } } ListGroupDefinition
|
|
62109
|
+
*
|
|
62110
|
+
* @typedef { {
|
|
62111
|
+
* component?: import('preact').Component,
|
|
62112
|
+
* entries: Array<EntryDefinition>,
|
|
62113
|
+
* id: String,
|
|
62114
|
+
* label: String,
|
|
62115
|
+
* shouldOpen?: Boolean
|
|
62116
|
+
* } } GroupDefinition
|
|
62117
|
+
*
|
|
62118
|
+
* @typedef { {
|
|
62119
|
+
* [id: String]: GetDescriptionFunction
|
|
62120
|
+
* } } DescriptionConfig
|
|
62121
|
+
*
|
|
62122
|
+
* @callback { {
|
|
62123
|
+
* @param {string} id
|
|
62124
|
+
* @param {djs.model.base} element
|
|
62125
|
+
* @returns {string}
|
|
62126
|
+
* } } GetDescriptionFunction
|
|
62127
|
+
*
|
|
62128
62128
|
*/
|
|
62129
62129
|
|
|
62130
|
-
/**
|
|
62131
|
-
* A basic properties panel component. Describes *how* content will be rendered, accepts
|
|
62132
|
-
* data from implementor to describe *what* will be rendered.
|
|
62133
|
-
*
|
|
62134
|
-
* @param {Object} props
|
|
62135
|
-
* @param {Object} props.element
|
|
62136
|
-
* @param {import('./components/Header').HeaderProvider} props.headerProvider
|
|
62137
|
-
* @param {Array<GroupDefinition|ListGroupDefinition>} props.groups
|
|
62138
|
-
* @param {Object} [props.layoutConfig]
|
|
62139
|
-
* @param {Function} [props.layoutChanged]
|
|
62140
|
-
* @param {DescriptionConfig} [props.descriptionConfig]
|
|
62141
|
-
* @param {Function} [props.descriptionLoaded]
|
|
62142
|
-
* @param {Object} [props.eventBus]
|
|
62130
|
+
/**
|
|
62131
|
+
* A basic properties panel component. Describes *how* content will be rendered, accepts
|
|
62132
|
+
* data from implementor to describe *what* will be rendered.
|
|
62133
|
+
*
|
|
62134
|
+
* @param {Object} props
|
|
62135
|
+
* @param {Object} props.element
|
|
62136
|
+
* @param {import('./components/Header').HeaderProvider} props.headerProvider
|
|
62137
|
+
* @param {Array<GroupDefinition|ListGroupDefinition>} props.groups
|
|
62138
|
+
* @param {Object} [props.layoutConfig]
|
|
62139
|
+
* @param {Function} [props.layoutChanged]
|
|
62140
|
+
* @param {DescriptionConfig} [props.descriptionConfig]
|
|
62141
|
+
* @param {Function} [props.descriptionLoaded]
|
|
62142
|
+
* @param {Object} [props.eventBus]
|
|
62143
62143
|
*/
|
|
62144
62144
|
|
|
62145
62145
|
function PropertiesPanel(props) {
|
|
@@ -62320,17 +62320,17 @@
|
|
|
62320
62320
|
children: item.entry
|
|
62321
62321
|
});
|
|
62322
62322
|
}
|
|
62323
|
-
/**
|
|
62324
|
-
*
|
|
62325
|
-
* @param {Array<null | Element>} ignoredElements
|
|
62326
|
-
* @param {Function} callback
|
|
62323
|
+
/**
|
|
62324
|
+
*
|
|
62325
|
+
* @param {Array<null | Element>} ignoredElements
|
|
62326
|
+
* @param {Function} callback
|
|
62327
62327
|
*/
|
|
62328
62328
|
|
|
62329
62329
|
|
|
62330
62330
|
function useGlobalClick(ignoredElements, callback) {
|
|
62331
62331
|
y$1(() => {
|
|
62332
|
-
/**
|
|
62333
|
-
* @param {MouseEvent} event
|
|
62332
|
+
/**
|
|
62333
|
+
* @param {MouseEvent} event
|
|
62334
62334
|
*/
|
|
62335
62335
|
function listener(event) {
|
|
62336
62336
|
if (ignoredElements.some(element => element && element.contains(event.target))) {
|
|
@@ -62460,8 +62460,8 @@
|
|
|
62460
62460
|
}
|
|
62461
62461
|
|
|
62462
62462
|
const noop$3 = () => {};
|
|
62463
|
-
/**
|
|
62464
|
-
* @param {import('../PropertiesPanel').ListGroupDefinition} props
|
|
62463
|
+
/**
|
|
62464
|
+
* @param {import('../PropertiesPanel').ListGroupDefinition} props
|
|
62465
62465
|
*/
|
|
62466
62466
|
|
|
62467
62467
|
|
|
@@ -62614,8 +62614,8 @@
|
|
|
62614
62614
|
});
|
|
62615
62615
|
} // helpers ////////////////////
|
|
62616
62616
|
|
|
62617
|
-
/**
|
|
62618
|
-
* Sorts given items alphanumeric by label
|
|
62617
|
+
/**
|
|
62618
|
+
* Sorts given items alphanumeric by label
|
|
62619
62619
|
*/
|
|
62620
62620
|
|
|
62621
62621
|
function sortItems(items) {
|
|
@@ -62684,15 +62684,15 @@
|
|
|
62684
62684
|
})]
|
|
62685
62685
|
});
|
|
62686
62686
|
}
|
|
62687
|
-
/**
|
|
62688
|
-
* @param {Object} props
|
|
62689
|
-
* @param {Object} props.element
|
|
62690
|
-
* @param {String} props.id
|
|
62691
|
-
* @param {String} props.description
|
|
62692
|
-
* @param {String} props.label
|
|
62693
|
-
* @param {Function} props.getValue
|
|
62694
|
-
* @param {Function} props.setValue
|
|
62695
|
-
* @param {boolean} [props.disabled]
|
|
62687
|
+
/**
|
|
62688
|
+
* @param {Object} props
|
|
62689
|
+
* @param {Object} props.element
|
|
62690
|
+
* @param {String} props.id
|
|
62691
|
+
* @param {String} props.description
|
|
62692
|
+
* @param {String} props.label
|
|
62693
|
+
* @param {Function} props.getValue
|
|
62694
|
+
* @param {Function} props.setValue
|
|
62695
|
+
* @param {boolean} [props.disabled]
|
|
62696
62696
|
*/
|
|
62697
62697
|
|
|
62698
62698
|
|
|
@@ -62765,8 +62765,8 @@
|
|
|
62765
62765
|
setOpen(false);
|
|
62766
62766
|
}
|
|
62767
62767
|
}, [open, hasItems]);
|
|
62768
|
-
/**
|
|
62769
|
-
* @param {MouseEvent} event
|
|
62768
|
+
/**
|
|
62769
|
+
* @param {MouseEvent} event
|
|
62770
62770
|
*/
|
|
62771
62771
|
|
|
62772
62772
|
function addItem(event) {
|
|
@@ -62876,14 +62876,14 @@
|
|
|
62876
62876
|
})
|
|
62877
62877
|
});
|
|
62878
62878
|
}
|
|
62879
|
-
/**
|
|
62880
|
-
* Place new items in the beginning of the list and sort the rest with provided function.
|
|
62881
|
-
*
|
|
62882
|
-
* @template Item
|
|
62883
|
-
* @param {Item[]} currentItems
|
|
62884
|
-
* @param {(a: Item, b: Item) => 0 | 1 | -1} [compareFn] function used to sort items
|
|
62885
|
-
* @param {boolean} [shouldReset=false] set to `true` to reset state of the hook
|
|
62886
|
-
* @returns {Item[]}
|
|
62879
|
+
/**
|
|
62880
|
+
* Place new items in the beginning of the list and sort the rest with provided function.
|
|
62881
|
+
*
|
|
62882
|
+
* @template Item
|
|
62883
|
+
* @param {Item[]} currentItems
|
|
62884
|
+
* @param {(a: Item, b: Item) => 0 | 1 | -1} [compareFn] function used to sort items
|
|
62885
|
+
* @param {boolean} [shouldReset=false] set to `true` to reset state of the hook
|
|
62886
|
+
* @returns {Item[]}
|
|
62887
62887
|
*/
|
|
62888
62888
|
|
|
62889
62889
|
|
|
@@ -62924,21 +62924,21 @@
|
|
|
62924
62924
|
}
|
|
62925
62925
|
|
|
62926
62926
|
const noop$1 = () => {};
|
|
62927
|
-
/**
|
|
62928
|
-
* @typedef { { value: string, label: string, disabled: boolean } } Option
|
|
62927
|
+
/**
|
|
62928
|
+
* @typedef { { value: string, label: string, disabled: boolean } } Option
|
|
62929
62929
|
*/
|
|
62930
62930
|
|
|
62931
|
-
/**
|
|
62932
|
-
* Provides basic select input.
|
|
62933
|
-
*
|
|
62934
|
-
* @param {object} props
|
|
62935
|
-
* @param {string} props.id
|
|
62936
|
-
* @param {string[]} props.path
|
|
62937
|
-
* @param {string} props.label
|
|
62938
|
-
* @param {Function} props.onChange
|
|
62939
|
-
* @param {Array<Option>} [props.options]
|
|
62940
|
-
* @param {string} props.value
|
|
62941
|
-
* @param {boolean} [props.disabled]
|
|
62931
|
+
/**
|
|
62932
|
+
* Provides basic select input.
|
|
62933
|
+
*
|
|
62934
|
+
* @param {object} props
|
|
62935
|
+
* @param {string} props.id
|
|
62936
|
+
* @param {string[]} props.path
|
|
62937
|
+
* @param {string} props.label
|
|
62938
|
+
* @param {Function} props.onChange
|
|
62939
|
+
* @param {Array<Option>} [props.options]
|
|
62940
|
+
* @param {string} props.value
|
|
62941
|
+
* @param {boolean} [props.disabled]
|
|
62942
62942
|
*/
|
|
62943
62943
|
|
|
62944
62944
|
|
|
@@ -62984,16 +62984,16 @@
|
|
|
62984
62984
|
})]
|
|
62985
62985
|
});
|
|
62986
62986
|
}
|
|
62987
|
-
/**
|
|
62988
|
-
* @param {object} props
|
|
62989
|
-
* @param {object} props.element
|
|
62990
|
-
* @param {string} props.id
|
|
62991
|
-
* @param {string} [props.description]
|
|
62992
|
-
* @param {string} props.label
|
|
62993
|
-
* @param {Function} props.getValue
|
|
62994
|
-
* @param {Function} props.setValue
|
|
62995
|
-
* @param {Function} props.getOptions
|
|
62996
|
-
* @param {boolean} [props.disabled]
|
|
62987
|
+
/**
|
|
62988
|
+
* @param {object} props
|
|
62989
|
+
* @param {object} props.element
|
|
62990
|
+
* @param {string} props.id
|
|
62991
|
+
* @param {string} [props.description]
|
|
62992
|
+
* @param {string} props.label
|
|
62993
|
+
* @param {Function} props.getValue
|
|
62994
|
+
* @param {Function} props.setValue
|
|
62995
|
+
* @param {Function} props.getOptions
|
|
62996
|
+
* @param {boolean} [props.disabled]
|
|
62997
62997
|
*/
|
|
62998
62998
|
|
|
62999
62999
|
|
|
@@ -63135,18 +63135,18 @@
|
|
|
63135
63135
|
})]
|
|
63136
63136
|
});
|
|
63137
63137
|
}
|
|
63138
|
-
/**
|
|
63139
|
-
* @param {object} props
|
|
63140
|
-
* @param {object} props.element
|
|
63141
|
-
* @param {string} props.id
|
|
63142
|
-
* @param {string} props.description
|
|
63143
|
-
* @param {boolean} props.debounce
|
|
63144
|
-
* @param {string} props.label
|
|
63145
|
-
* @param {Function} props.getValue
|
|
63146
|
-
* @param {Function} props.setValue
|
|
63147
|
-
* @param {number} props.rows
|
|
63148
|
-
* @param {boolean} props.monospace
|
|
63149
|
-
* @param {boolean} [props.disabled]
|
|
63138
|
+
/**
|
|
63139
|
+
* @param {object} props
|
|
63140
|
+
* @param {object} props.element
|
|
63141
|
+
* @param {string} props.id
|
|
63142
|
+
* @param {string} props.description
|
|
63143
|
+
* @param {boolean} props.debounce
|
|
63144
|
+
* @param {string} props.label
|
|
63145
|
+
* @param {Function} props.getValue
|
|
63146
|
+
* @param {Function} props.setValue
|
|
63147
|
+
* @param {number} props.rows
|
|
63148
|
+
* @param {boolean} props.monospace
|
|
63149
|
+
* @param {boolean} [props.disabled]
|
|
63150
63150
|
*/
|
|
63151
63151
|
|
|
63152
63152
|
|
|
@@ -63237,17 +63237,17 @@
|
|
|
63237
63237
|
})]
|
|
63238
63238
|
});
|
|
63239
63239
|
}
|
|
63240
|
-
/**
|
|
63241
|
-
* @param {Object} props
|
|
63242
|
-
* @param {Object} props.element
|
|
63243
|
-
* @param {String} props.id
|
|
63244
|
-
* @param {String} props.description
|
|
63245
|
-
* @param {Boolean} props.debounce
|
|
63246
|
-
* @param {Boolean} props.disabled
|
|
63247
|
-
* @param {String} props.label
|
|
63248
|
-
* @param {Function} props.getValue
|
|
63249
|
-
* @param {Function} props.setValue
|
|
63250
|
-
* @param {Function} props.validate
|
|
63240
|
+
/**
|
|
63241
|
+
* @param {Object} props
|
|
63242
|
+
* @param {Object} props.element
|
|
63243
|
+
* @param {String} props.id
|
|
63244
|
+
* @param {String} props.description
|
|
63245
|
+
* @param {Boolean} props.debounce
|
|
63246
|
+
* @param {Boolean} props.disabled
|
|
63247
|
+
* @param {String} props.label
|
|
63248
|
+
* @param {Function} props.getValue
|
|
63249
|
+
* @param {Function} props.setValue
|
|
63250
|
+
* @param {Function} props.validate
|
|
63251
63251
|
*/
|
|
63252
63252
|
|
|
63253
63253
|
|
|
@@ -63368,15 +63368,15 @@
|
|
|
63368
63368
|
})]
|
|
63369
63369
|
});
|
|
63370
63370
|
}
|
|
63371
|
-
/**
|
|
63372
|
-
* @param {Object} props
|
|
63373
|
-
* @param {Object} props.element
|
|
63374
|
-
* @param {String} props.id
|
|
63375
|
-
* @param {String} props.description
|
|
63376
|
-
* @param {String} props.label
|
|
63377
|
-
* @param {String} props.switcherLabel
|
|
63378
|
-
* @param {Function} props.getValue
|
|
63379
|
-
* @param {Function} props.setValue
|
|
63371
|
+
/**
|
|
63372
|
+
* @param {Object} props
|
|
63373
|
+
* @param {Object} props.element
|
|
63374
|
+
* @param {String} props.id
|
|
63375
|
+
* @param {String} props.description
|
|
63376
|
+
* @param {String} props.label
|
|
63377
|
+
* @param {String} props.switcherLabel
|
|
63378
|
+
* @param {Function} props.getValue
|
|
63379
|
+
* @param {Function} props.setValue
|
|
63380
63380
|
*/
|
|
63381
63381
|
|
|
63382
63382
|
|
|
@@ -66562,9 +66562,7 @@
|
|
|
66562
66562
|
}
|
|
66563
66563
|
|
|
66564
66564
|
function getTemplate(element, elementTemplates) {
|
|
66565
|
-
|
|
66566
|
-
|
|
66567
|
-
return templateId && elementTemplates.get(templateId);
|
|
66565
|
+
return elementTemplates.get(element);
|
|
66568
66566
|
}
|
|
66569
66567
|
|
|
66570
66568
|
function getTemplateDocumentation(element, elementTemplates) {
|