geostyler 10.3.0 → 10.3.1
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/browser/geostyler.css +1 -1
- package/browser/geostyler.js +1 -1
- package/dist/Component/{Removable/RemovableItem → RemovableItem}/RemovableItem.css +0 -0
- package/dist/Component/{Removable/RemovableItem → RemovableItem}/RemovableItem.d.ts +1 -1
- package/dist/Component/{Removable/RemovableItem → RemovableItem}/RemovableItem.js +2 -7
- package/dist/Component/RemovableItem/RemovableItem.js.map +1 -0
- package/dist/Component/RuleCard/RuleCard.d.ts +2 -2
- package/dist/Component/RuleCard/RuleCard.js +4 -3
- package/dist/Component/RuleCard/RuleCard.js.map +1 -1
- package/dist/Component/Rules/Rules.js +31 -41
- package/dist/Component/Rules/Rules.js.map +1 -1
- package/dist/Component/{Removable/Removable.css → SortableItem/SortableItem.css} +0 -0
- package/dist/Component/SortableItem/SortableItem.d.ts +7 -0
- package/dist/Component/{Removable/Removable.js → SortableItem/SortableItem.js} +30 -23
- package/dist/Component/SortableItem/SortableItem.js.map +1 -0
- package/dist/Component/SymbolizerCard/SymbolizerCard.d.ts +1 -1
- package/dist/Component/SymbolizerCard/SymbolizerCard.js +4 -3
- package/dist/Component/SymbolizerCard/SymbolizerCard.js.map +1 -1
- package/dist/Component/Symbolizers/Symbolizers.css +1 -9
- package/dist/Component/Symbolizers/Symbolizers.js +45 -41
- package/dist/Component/Symbolizers/Symbolizers.js.map +1 -1
- package/dist/hook/UseDragDropSensors.d.ts +6 -0
- package/dist/{Component/DropIndicator/DropIndicator.js → hook/UseDragDropSensors.js} +21 -11
- package/dist/hook/UseDragDropSensors.js.map +1 -0
- package/dist/index.d.ts +3 -5
- package/dist/index.js +6 -10
- package/dist/index.js.map +1 -1
- package/package.json +4 -1
- package/dist/Component/CompositionContext/CompositionContext.d.ts +0 -85
- package/dist/Component/CompositionContext/CompositionContext.js +0 -52
- package/dist/Component/CompositionContext/CompositionContext.js.map +0 -1
- package/dist/Component/DefaultValueContext/DefaultValueContext.d.ts +0 -60
- package/dist/Component/DefaultValueContext/DefaultValueContext.js +0 -52
- package/dist/Component/DefaultValueContext/DefaultValueContext.js.map +0 -1
- package/dist/Component/DragDroppable/DragDroppable.css +0 -36
- package/dist/Component/DragDroppable/DragDroppable.d.ts +0 -13
- package/dist/Component/DragDroppable/DragDroppable.js +0 -68
- package/dist/Component/DragDroppable/DragDroppable.js.map +0 -1
- package/dist/Component/DropIndicator/DropIndicator.css +0 -30
- package/dist/Component/DropIndicator/DropIndicator.d.ts +0 -6
- package/dist/Component/DropIndicator/DropIndicator.js.map +0 -1
- package/dist/Component/Legacy/CodeEditor/CodeEditor.css +0 -59
- package/dist/Component/Legacy/CodeEditor/CodeEditor.d.ts +0 -131
- package/dist/Component/Legacy/CodeEditor/CodeEditor.js +0 -317
- package/dist/Component/Legacy/CodeEditor/CodeEditor.js.map +0 -1
- package/dist/Component/Removable/Removable.d.ts +0 -10
- package/dist/Component/Removable/Removable.js.map +0 -1
- package/dist/Component/Removable/RemovableItem/RemovableItem.js.map +0 -1
- package/dist/Component/Rule/TitleField/TitleField.css +0 -30
- package/dist/Component/Rule/TitleField/TitleField.d.ts +0 -25
- package/dist/Component/Rule/TitleField/TitleField.js +0 -100
- package/dist/Component/Rule/TitleField/TitleField.js.map +0 -1
- package/dist/Component/Symbolizer/Field/ColorField/BaseColorField/BaseColorField.css +0 -34
- package/dist/Component/Symbolizer/Field/ColorField/BaseColorField/BaseColorField.d.ts +0 -88
- package/dist/Component/Symbolizer/Field/ColorField/BaseColorField/BaseColorField.js +0 -136
- package/dist/Component/Symbolizer/Field/ColorField/BaseColorField/BaseColorField.js.map +0 -1
- package/dist/Component/Symbolizer/Field/ExpressionField/ExpressionField.d.ts +0 -13
- package/dist/Component/Symbolizer/Field/ExpressionField/ExpressionField.js +0 -73
- package/dist/Component/Symbolizer/Field/ExpressionField/ExpressionField.js.map +0 -1
- package/dist/Util/DndUtil.d.ts +0 -114
- package/dist/Util/DndUtil.js +0 -159
- package/dist/Util/DndUtil.js.map +0 -1
- package/dist/hook/UseDragDrop.d.ts +0 -20
- package/dist/hook/UseDragDrop.js +0 -238
- package/dist/hook/UseDragDrop.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Symbolizers.js","sourceRoot":"","sources":["../../../src/Component/Symbolizers/Symbolizers.tsx"],"names":[],"mappings":";AAAA,8BAA8B;AAC9B;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,6CAAwC;AAMxC,gEAA0D;AAC1D,6DAAuC;AAEvC,8BAA4B;AAC5B,6BAA6C;AAE7C,uCAAwC;AACxC,mEAAuD;AAEvD,+DAA0C;AAC1C,6DAAwC;AAExC,qEAA+C;AAC/C,mEAAuF;AACvF,2CAAiD;AACjD,6EAAuD;AAEvD,4DAAwE;AACxE,iFAA2D;AAqBpD,IAAM,WAAW,GAA+B,UAAC,EAMvD;QALC,cAA0B,EAA1B,MAAM,mBAAG,eAAK,CAAC,WAAW,KAAA,EAC1B,WAAW,iBAAA,EACX,2BAA8B,EAA9B,mBAAmB,mBAAG,cAAO,CAAC,KAAA,EAC9B,6BAAgC,EAAhC,qBAAqB,mBAAG,cAAO,CAAC,KAAA,EAChC,mBAAmB,yBAAA;IAGb,IAAA,KAAwB,IAAA,gBAAQ,EAAC,KAAK,CAAC,EAAtC,OAAO,QAAA,EAAE,UAAU,QAAmB,CAAC;IAE9C,IAAM,aAAa,GAAG;QACpB,UAAU,CAAC,CAAC,OAAO,CAAC,CAAC;IACvB,CAAC,CAAC;IAEF,IAAM,gBAAgB,GAAG,UAAC,aAAqB;QAC7C,+CAA+C;QAC/C,gDAAgD;QAChD,IAAM,gBAAgB,GAAG,IAAA,mBAAU,EAAC,WAAW,CAAC,CAAC;QACjD,gBAAgB,CAAC,MAAM,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC;QAC1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C;YACN,uCAAK,SAAS,EAAC,uBAAuB;gBACpC,8BAAC,aAAM,IACL,IAAI,EAAC,MAAM,EACX,OAAO,EAAE,aAAa,IACtB,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAU,CAC9C,CACM,CACV,CACP,CAAC;AACJ,CAAC,CAAC;AArIW,QAAA,WAAW,eAqItB;AAEF,kBAAe,IAAA,wBAAQ,EAAC,mBAAW,EAAE,aAAa,CAAC,CAAC","sourcesContent":["/* eslint-disable camelcase */\n/* Released under the BSD 2-Clause License\n *\n * Copyright © 2021-present, terrestris GmbH & Co. KG and GeoStyler contributors\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source code must retain the above copyright notice,\n * this list of conditions and the following disclaimer.\n *\n * * Redistributions in binary form must reproduce the above copyright notice,\n * this list of conditions and the following disclaimer in the documentation\n * and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE\n * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\nimport React, { useState } from 'react';\n\nimport {\n Symbolizer as GsSymbolizer\n} from 'geostyler-style';\n\nimport { localize } from '../LocaleWrapper/LocaleWrapper';\nimport en_US from '../../locale/en_US';\n\nimport './Symbolizers.less';\nimport { Button, Card, Divider } from 'antd';\n\nimport { DndProvider } from 'react-dnd';\nimport { HTML5Backend } from 'react-dnd-html5-backend';\n\nimport _cloneDeep from 'lodash/cloneDeep';\nimport _uniqueId from 'lodash/uniqueId';\nimport _merge from 'lodash/merge';\nimport Removable from '../Removable/Removable';\nimport { SymbolizerCard, SymbolizerCardProps } from '../SymbolizerCard/SymbolizerCard';\nimport { PlusOutlined } from '@ant-design/icons';\nimport SymbolizerUtil from '../../Util/SymbolizerUtil';\nimport { GeoStylerLocale } from '../../locale/locale';\nimport DndUtil, { Direction, ItemType, Side } from '../../Util/DndUtil';\nimport DragDroppable from '../DragDroppable/DragDroppable';\nimport { OnDropParams } from '../../hook/UseDragDrop';\n\n// default props\ninterface SymbolizersDefaultProps {\n /** Locale object containing translated text snippets */\n locale: GeoStylerLocale['Symbolizers'];\n /** The callback function that is triggered when the symbolizers change. */\n onSymbolizersChange: (symbolizers: GsSymbolizer[]) => void;\n /** The callback function that is triggered when a symbolizer was clicked. */\n onEditSymbolizerClick: (symbolizerId: number) => void;\n}\n\n// non default props\nexport interface SymbolizersProps extends Partial<SymbolizersDefaultProps> {\n /** List of symbolizers to display */\n symbolizers: GsSymbolizer[];\n /** The passthrough props for the SymbolizerCard component. */\n symbolizerCardProps?: Partial<SymbolizerCardProps>;\n}\n\nexport const Symbolizers: React.FC<SymbolizersProps> = ({\n locale = en_US.Symbolizers,\n symbolizers,\n onSymbolizersChange = () => {},\n onEditSymbolizerClick = () => {},\n symbolizerCardProps\n}) => {\n\n const [showAll, setShowAll] = useState(false);\n\n const toggleShowAll = () => {\n setShowAll(!showAll);\n };\n\n const removeSymbolizer = (symbolizerIdx: number) => {\n // TODO fix removing/rerendering since we added\n // the add-button to the list of removables\n const symbolizersClone = _cloneDeep(symbolizers);\n symbolizersClone.splice(symbolizerIdx, 1);\n onSymbolizersChange(symbolizersClone);\n };\n\n const onAddSymbolizerClick = () => {\n const symbolizersClone = _cloneDeep(symbolizers);\n symbolizersClone.push(SymbolizerUtil.defaultSymbolizer);\n onSymbolizersChange(symbolizersClone);\n };\n\n const onMoveSymbolizer = ({dragIndex: item, dropIndex: target, side, direction}: OnDropParams) => {\n const newSymbolizers = _cloneDeep(symbolizers);\n if (direction === Direction.LEFT) {\n if (side === Side.BEHIND) {\n // moving left behind means moving item before target\n DndUtil.moveElementInPlace(item, target, newSymbolizers);\n } else {\n // moving left !behind means moving item after target\n DndUtil.moveElementInPlace(item, target + 1, newSymbolizers);\n }\n } else if (direction === Direction.RIGHT) {\n // moving right\n if (side === Side.BEFORE) {\n // moving right behind means moving item after target\n DndUtil.moveElementInPlace(item, target, newSymbolizers);\n } else {\n // moving right !behind means moving item before target\n DndUtil.moveElementInPlace(item, target - 1, newSymbolizers);\n }\n }\n\n onSymbolizersChange(newSymbolizers);\n };\n\n const symbolizerCards = symbolizers.map((symbolizer: GsSymbolizer, idx: number) => {\n return (\n <DragDroppable\n position={idx}\n key={_uniqueId('symbolizer')}\n onDrop={onMoveSymbolizer}\n itemType={ItemType.SYMBOLIZER}\n dragOrientation={'horizontal'}\n >\n <SymbolizerCard\n symbolizer={symbolizer}\n onSymbolizerClick={() => {\n onEditSymbolizerClick(idx);\n }}\n // TODO properly handle passthrough props\n {...symbolizerCardProps}\n />\n </DragDroppable>\n );\n });\n\n return (\n <div className='gs-symbolizers'>\n <DndProvider backend={HTML5Backend}>\n <div className='gs-symbolizers-header'>\n <h2>{locale.symbolizersTitle}</h2>\n </div>\n <Divider />\n <div className='gs-symbolizers-content'>\n <div className={`${showAll ? 'gs-symbolizers-grid' : 'gs-symbolizers-list'}`}>\n {\n showAll && (\n <Removable\n onRemoveClick={removeSymbolizer}\n >\n {symbolizerCards}\n <div>\n <Card\n className='gs-symbolizer-card gs-add-button'\n hoverable={true}\n onClick={onAddSymbolizerClick}\n >\n <PlusOutlined />\n </Card>\n </div>\n </Removable>\n )\n }\n {\n !showAll && (\n <Removable\n onRemoveClick={removeSymbolizer}\n >\n {symbolizerCards}\n </Removable>\n )\n }\n </div>\n {\n !showAll && (\n <div className='gs-symbolizer-card'>\n <Card\n className='gs-symbolizer-card gs-add-button'\n hoverable={true}\n onClick={onAddSymbolizerClick}\n >\n <PlusOutlined />\n </Card>\n </div>\n )\n }\n </div>\n <div className='gs-symbolizers-footer'>\n <Button\n type=\"link\"\n onClick={toggleShowAll}\n >{showAll ? locale.hide : locale.showAll}</Button>\n </div>\n </DndProvider>\n </div>\n );\n};\n\nexport default localize(Symbolizers, 'Symbolizers');\n"]}
|
|
1
|
+
{"version":3,"file":"Symbolizers.js","sourceRoot":"","sources":["../../../src/Component/Symbolizers/Symbolizers.tsx"],"names":[],"mappings":";AAAA,8BAA8B;AAC9B;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,6CAAwC;AAMxC,sCAA0D;AAC1D,8CAA+D;AAE/D,gEAA0D;AAC1D,6DAAuC;AAEvC,8BAA4B;AAC5B,6BAA6C;AAE7C,uCAAwC;AACxC,mEAAuD;AAEvD,+DAA0C;AAC1C,6DAAwC;AAExC,mEAAuF;AACvF,2CAAiD;AACjD,6EAAuD;AAEvD,6DAA4D;AAC5D,oEAAmE;AACnE,gEAA+D;AAoBxD,IAAM,WAAW,GAA+B,UAAC,EAMvD;QALC,cAA0B,EAA1B,MAAM,mBAAG,eAAK,CAAC,WAAW,KAAA,EAC1B,WAAW,iBAAA,EACX,2BAA8B,EAA9B,mBAAmB,mBAAG,cAAO,CAAC,KAAA,EAC9B,6BAAgC,EAAhC,qBAAqB,mBAAG,cAAO,CAAC,KAAA,EAChC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jC,8BAAC,0BAAe,IACd,KAAK,EAAE,WAAW,CAAC,GAAG,CAAC,UAAC,CAAC,EAAE,GAAG,IAAK,OAAA,GAAG,GAAG,CAAC,EAAP,CAAO,CAAC;4BAEzC,mCAAmC;4BACrC;gCACE,8BAAC,WAAI,IACH,SAAS,EAAC,kCAAkC,EAC5C,SAAS,EAAE,IAAI,EACf,OAAO,EAAE,oBAAoB;oCAE7B,8BAAC,oBAAY,OAAG,CACX,CACH,CACU,CACP,CACd;oBAGD,CAAC,OAAO,IAAI,CACV,8BAAC,iBAAU,IACT,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,OAAO,EAChB,kBAAkB,EAAE,oBAAa;wBAEjC,8BAAC,0BAAe,IACd,KAAK,EAAE,WAAW,CAAC,GAAG,CAAC,UAAC,CAAC,EAAE,GAAG,IAAK,OAAA,GAAG,GAAG,CAAC,EAAP,CAAO,CAAC,IAEzC,mCAAmC,CACrB,CACP,CACd,CAEC;gBAEJ,CAAC,OAAO,IAAI,CACV,uCAAK,SAAS,EAAC,oBAAoB;oBACjC,8BAAC,WAAI,IACH,SAAS,EAAC,kCAAkC,EAC5C,SAAS,EAAE,IAAI,EACf,OAAO,EAAE,oBAAoB;wBAE7B,8BAAC,oBAAY,OAAG,CACX,CACH,CACP,CAEC;YACN,uCAAK,SAAS,EAAC,uBAAuB;gBACpC,8BAAC,aAAM,IACL,IAAI,EAAC,MAAM,EACX,OAAO,EAAE,aAAa,IACtB,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAU,CAC9C,CACM,CACV,CACP,CAAC;AACJ,CAAC,CAAC;AAvJW,QAAA,WAAW,eAuJtB;AAEF,kBAAe,IAAA,wBAAQ,EAAC,mBAAW,EAAE,aAAa,CAAC,CAAC","sourcesContent":["/* eslint-disable camelcase */\n/* Released under the BSD 2-Clause License\n *\n * Copyright © 2021-present, terrestris GmbH & Co. KG and GeoStyler contributors\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source code must retain the above copyright notice,\n * this list of conditions and the following disclaimer.\n *\n * * Redistributions in binary form must reproduce the above copyright notice,\n * this list of conditions and the following disclaimer in the documentation\n * and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE\n * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\nimport React, { useState } from 'react';\n\nimport {\n Symbolizer as GsSymbolizer\n} from 'geostyler-style';\n\nimport { closestCenter, DndContext } from '@dnd-kit/core';\nimport { arrayMove, SortableContext } from '@dnd-kit/sortable';\n\nimport { localize } from '../LocaleWrapper/LocaleWrapper';\nimport en_US from '../../locale/en_US';\n\nimport './Symbolizers.less';\nimport { Button, Card, Divider } from 'antd';\n\nimport { DndProvider } from 'react-dnd';\nimport { HTML5Backend } from 'react-dnd-html5-backend';\n\nimport _cloneDeep from 'lodash/cloneDeep';\nimport _uniqueId from 'lodash/uniqueId';\nimport _merge from 'lodash/merge';\nimport { SymbolizerCard, SymbolizerCardProps } from '../SymbolizerCard/SymbolizerCard';\nimport { PlusOutlined } from '@ant-design/icons';\nimport SymbolizerUtil from '../../Util/SymbolizerUtil';\nimport { GeoStylerLocale } from '../../locale/locale';\nimport { SortableItem } from '../SortableItem/SortableItem';\nimport { useDragDropSensors } from '../../hook/UseDragDropSensors';\nimport { RemovableItem } from '../RemovableItem/RemovableItem';\n\n// default props\ninterface SymbolizersDefaultProps {\n /** Locale object containing translated text snippets */\n locale: GeoStylerLocale['Symbolizers'];\n /** The callback function that is triggered when the symbolizers change. */\n onSymbolizersChange: (symbolizers: GsSymbolizer[]) => void;\n /** The callback function that is triggered when a symbolizer was clicked. */\n onEditSymbolizerClick: (symbolizerId: number) => void;\n}\n\n// non default props\nexport interface SymbolizersProps extends Partial<SymbolizersDefaultProps> {\n /** List of symbolizers to display */\n symbolizers: GsSymbolizer[];\n /** The passthrough props for the SymbolizerCard component. */\n symbolizerCardProps?: Partial<SymbolizerCardProps>;\n}\n\nexport const Symbolizers: React.FC<SymbolizersProps> = ({\n locale = en_US.Symbolizers,\n symbolizers,\n onSymbolizersChange = () => {},\n onEditSymbolizerClick = () => {},\n symbolizerCardProps\n}) => {\n\n const [showAll, setShowAll] = useState(false);\n\n const toggleShowAll = () => {\n setShowAll(!showAll);\n };\n\n const removeSymbolizer = (symbolizerIdx: number) => {\n const symbolizersClone = _cloneDeep(symbolizers);\n symbolizersClone.splice(symbolizerIdx, 1);\n onSymbolizersChange(symbolizersClone);\n };\n\n const onAddSymbolizerClick = () => {\n const symbolizersClone = _cloneDeep(symbolizers);\n symbolizersClone.push(SymbolizerUtil.defaultSymbolizer);\n onSymbolizersChange(symbolizersClone);\n };\n\n const symbolizerCards = symbolizers.map((symbolizer: GsSymbolizer, idx: number) => {\n return (\n <SymbolizerCard\n key={_uniqueId('symbolizer')}\n symbolizer={symbolizer}\n onSymbolizerClick={() => {\n onEditSymbolizerClick(idx);\n }}\n {...symbolizerCardProps}\n />\n );\n });\n\n const removableSymbolizerCards = symbolizerCards.map((symbolizerCard, idx) => {\n const key = _uniqueId('symbolizer');\n\n return (\n <RemovableItem\n key={key}\n onRemoveClick={() => {\n removeSymbolizer(idx);\n }}\n >\n { symbolizerCard }\n </RemovableItem>\n );\n });\n\n const sortableAndRemovableSymbolizerCards = removableSymbolizerCards.map((symbolizerCard, idx) => {\n const key = _uniqueId('symbolizer');\n // id must be truthy, so we have to increment the index by 1\n const id = idx + 1;\n\n return (\n <SortableItem\n key={key}\n id={id}\n >\n { symbolizerCard }\n </SortableItem>\n );\n });\n\n const onDragEnd = (evt: any) => {\n const { active, over } = evt;\n if (active.id !== over.id) {\n const newOrder = arrayMove([...symbolizers], active.id - 1, over.id - 1);\n onSymbolizersChange(newOrder);\n }\n };\n\n const sensors = useDragDropSensors();\n\n return (\n <div className='gs-symbolizers'>\n <DndProvider backend={HTML5Backend}>\n <div className='gs-symbolizers-header'>\n <h2>{locale.symbolizersTitle}</h2>\n </div>\n <Divider />\n <div className='gs-symbolizers-content'>\n <div className={`${showAll ? 'gs-symbolizers-grid' : 'gs-symbolizers-list'}`}>\n {\n showAll && (\n <DndContext\n onDragEnd={onDragEnd}\n sensors={sensors}\n collisionDetection={closestCenter}\n >\n <SortableContext\n items={symbolizers.map((s, idx) => idx + 1)}\n >\n { sortableAndRemovableSymbolizerCards }\n <div>\n <Card\n className='gs-symbolizer-card gs-add-button'\n hoverable={true}\n onClick={onAddSymbolizerClick}\n >\n <PlusOutlined />\n </Card>\n </div>\n </SortableContext>\n </DndContext>\n )\n }\n {\n !showAll && (\n <DndContext\n onDragEnd={onDragEnd}\n sensors={sensors}\n collisionDetection={closestCenter}\n >\n <SortableContext\n items={symbolizers.map((s, idx) => idx + 1)}\n >\n { sortableAndRemovableSymbolizerCards }\n </SortableContext>\n </DndContext>\n )\n }\n </div>\n {\n !showAll && (\n <div className='gs-symbolizer-card'>\n <Card\n className='gs-symbolizer-card gs-add-button'\n hoverable={true}\n onClick={onAddSymbolizerClick}\n >\n <PlusOutlined />\n </Card>\n </div>\n )\n }\n </div>\n <div className='gs-symbolizers-footer'>\n <Button\n type=\"link\"\n onClick={toggleShowAll}\n >{showAll ? locale.hide : locale.showAll}</Button>\n </div>\n </DndProvider>\n </div>\n );\n};\n\nexport default localize(Symbolizers, 'Symbolizers');\n"]}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
3
|
+
exports.useDragDropSensors = void 0;
|
|
7
4
|
/* Released under the BSD 2-Clause License
|
|
8
5
|
*
|
|
9
6
|
* Copyright © 2022-present, terrestris GmbH & Co. KG and GeoStyler contributors
|
|
@@ -31,11 +28,24 @@ exports.DropIndicator = void 0;
|
|
|
31
28
|
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
32
29
|
* POSSIBILITY OF SUCH DAMAGE.
|
|
33
30
|
*/
|
|
34
|
-
var
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
31
|
+
var core_1 = require("@dnd-kit/core");
|
|
32
|
+
/**
|
|
33
|
+
* Hook to provide a consistent config for the drag and drop sensors.
|
|
34
|
+
*
|
|
35
|
+
* @returns The sensors for drag and drop.
|
|
36
|
+
*/
|
|
37
|
+
var useDragDropSensors = function () {
|
|
38
|
+
var sensors = (0, core_1.useSensors)((0, core_1.useSensor)(core_1.MouseSensor, {
|
|
39
|
+
activationConstraint: {
|
|
40
|
+
distance: 10
|
|
41
|
+
}
|
|
42
|
+
}), (0, core_1.useSensor)(core_1.TouchSensor, {
|
|
43
|
+
activationConstraint: {
|
|
44
|
+
delay: 250,
|
|
45
|
+
tolerance: 5
|
|
46
|
+
}
|
|
47
|
+
}));
|
|
48
|
+
return sensors;
|
|
38
49
|
};
|
|
39
|
-
exports.
|
|
40
|
-
|
|
41
|
-
//# sourceMappingURL=DropIndicator.js.map
|
|
50
|
+
exports.useDragDropSensors = useDragDropSensors;
|
|
51
|
+
//# sourceMappingURL=UseDragDropSensors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UseDragDropSensors.js","sourceRoot":"","sources":["../../src/hook/UseDragDropSensors.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,sCAAgF;AAEhF;;;;GAIG;AACI,IAAM,kBAAkB,GAAG;IAChC,IAAM,OAAO,GAAG,IAAA,iBAAU,EACxB,IAAA,gBAAS,EAAC,kBAAW,EAAE;QACrB,oBAAoB,EAAE;YACpB,QAAQ,EAAE,EAAE;SACb;KACF,CAAC,EACF,IAAA,gBAAS,EAAC,kBAAW,EAAE;QACrB,oBAAoB,EAAE;YACpB,KAAK,EAAE,GAAG;YACV,SAAS,EAAE,CAAC;SACb;KACF,CAAC,CACH,CAAC;IAEF,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAhBW,QAAA,kBAAkB,sBAgB7B","sourcesContent":["/* Released under the BSD 2-Clause License\n *\n * Copyright © 2022-present, terrestris GmbH & Co. KG and GeoStyler contributors\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source code must retain the above copyright notice,\n * this list of conditions and the following disclaimer.\n *\n * * Redistributions in binary form must reproduce the above copyright notice,\n * this list of conditions and the following disclaimer in the documentation\n * and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE\n * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\nimport { MouseSensor, TouchSensor, useSensors, useSensor } from '@dnd-kit/core';\n\n/**\n * Hook to provide a consistent config for the drag and drop sensors.\n *\n * @returns The sensors for drag and drop.\n */\nexport const useDragDropSensors = () => {\n const sensors = useSensors(\n useSensor(MouseSensor, {\n activationConstraint: {\n distance: 10\n }\n }),\n useSensor(TouchSensor, {\n activationConstraint: {\n delay: 250,\n tolerance: 5\n }\n })\n );\n\n return sensors;\n};\n"]}
|
package/dist/index.d.ts
CHANGED
|
@@ -18,8 +18,6 @@ import ContrastEnhancementField from './Component/Symbolizer/Field/ContrastEnhan
|
|
|
18
18
|
import ContrastField from './Component/Symbolizer/Field/ContrastField/ContrastField';
|
|
19
19
|
import DataLoader from './Component/DataInput/DataLoader/DataLoader';
|
|
20
20
|
import DataProvider from './DataProvider/DataProvider';
|
|
21
|
-
import DragDroppable from './Component/DragDroppable/DragDroppable';
|
|
22
|
-
import DropIndicator from './Component/DropIndicator/DropIndicator';
|
|
23
21
|
import Editor from './Component/Symbolizer/Editor/Editor';
|
|
24
22
|
import ExtendedField from './Component/Symbolizer/Field/ExtendedField/ExtendedField';
|
|
25
23
|
import FadeDurationField from './Component/Symbolizer/Field/FadeDurationField/FadeDurationField';
|
|
@@ -58,8 +56,7 @@ import PropTextEditor from './Component/Symbolizer/PropTextEditor/PropTextEditor
|
|
|
58
56
|
import RadiusField from './Component/Symbolizer/Field/RadiusField/RadiusField';
|
|
59
57
|
import RasterChannelEditor from './Component/Symbolizer/RasterChannelEditor/RasterChannelEditor';
|
|
60
58
|
import RasterEditor from './Component/Symbolizer/RasterEditor/RasterEditor';
|
|
61
|
-
import
|
|
62
|
-
import RemovableItem from './Component/Removable/RemovableItem/RemovableItem';
|
|
59
|
+
import RemovableItem from './Component/RemovableItem/RemovableItem';
|
|
63
60
|
import RemoveButton from './Component/Rule/RemoveButton/RemoveButton';
|
|
64
61
|
import LegacyRenderer from './Component/Symbolizer/Renderer/Renderer';
|
|
65
62
|
import Renderer from './Component/Renderer/Renderer';
|
|
@@ -80,6 +77,7 @@ import Selectable from './Component/Selectable/Selectable';
|
|
|
80
77
|
import SelectableItem from './Component/Selectable/SelectableItem/SelectableItem';
|
|
81
78
|
import SizeField from './Component/Symbolizer/Field/SizeField/SizeField';
|
|
82
79
|
import SLDRenderer from './Component/Symbolizer/SLDRenderer/SLDRenderer';
|
|
80
|
+
import SortableItem from './Component/SortableItem/SortableItem';
|
|
83
81
|
import SourceChannelNameField from './Component/Symbolizer/Field/SourceChannelNameField/SourceChannelNameField';
|
|
84
82
|
import Style from './Component/Style/Style';
|
|
85
83
|
import StyleFieldContainer from './Component/StyleFieldContainer/StyleFieldContainer';
|
|
@@ -108,4 +106,4 @@ declare const locale: {
|
|
|
108
106
|
fr_FR: GeoStylerLocale;
|
|
109
107
|
zh_CN: GeoStylerLocale;
|
|
110
108
|
};
|
|
111
|
-
export { AttributeCombo, BoolFilterField, Breadcrumb, BrightnessField, BulkEditModals, BulkEditor, CardStyle, ChannelField, ChannelSelectionField, CodeEditor, ColorField, ColorMapEditor, ColorMapEntryField, ColorMapTypeField, ColorRampCombo, ComparisonFilter, CompositionContext, ConfigProvider, ContrastEnhancementField, ContrastField, DataLoader, DataProvider, DefaultValueContext,
|
|
109
|
+
export { AttributeCombo, BoolFilterField, Breadcrumb, BrightnessField, BulkEditModals, BulkEditor, CardStyle, ChannelField, ChannelSelectionField, CodeEditor, ColorField, ColorMapEditor, ColorMapEntryField, ColorMapTypeField, ColorRampCombo, ComparisonFilter, CompositionContext, ConfigProvider, ContrastEnhancementField, ContrastField, DataLoader, DataProvider, DefaultValueContext, Editor, ExtendedField, FadeDurationField, FieldContainer, FieldSet, FillEditor, FilterEditorWindow, FilterOverview, FilterTree, FontPicker, GammaField, GraphicEditor, GraphicTypeField, GrayChannelField, IconEditor, IconSelector, IconSelectorWindow, ImageField, KindField, LineCapField, LineDashField, LineEditor, LineJoinField, locale, localize, MarkEditor, MaxScaleDenominator, MinScaleDenominator, MultiEditor, NameField, NumberFilterField, OffsetField, OpacityField, OperatorCombo, Preview, PreviewMap, PropTextEditor, RadiusField, RasterChannelEditor, RasterEditor, RemoveButton, RemovableItem, LegacyRenderer, Renderer, RgbChannelField, ResamplingField, RotateField, Rule, RuleCard, RuleFieldContainer, RuleGenerator, RuleGeneratorWindow, RuleOverview, Rules, RuleTable, SaturationField, ScaleDenominator, Selectable, SelectableItem, SizeField, SLDRenderer, SortableItem, SourceChannelNameField, Style, StyleFieldContainer, StyleLoader, StyleOverview, SymbolizerCard, SymbolizerEditorWindow, Symbolizers, TextEditor, TextFilterField, UploadButton, UnsupportedPropertiesContext, WellKnownNameEditor, WellKnownNameField, WidthField, withDefaultsContext, GeoStylerLocale };
|
package/dist/index.js
CHANGED
|
@@ -3,9 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.localize = exports.locale = exports.LineJoinField = exports.LineEditor = exports.LineDashField = exports.LineCapField = exports.KindField = exports.ImageField = exports.IconSelectorWindow = exports.IconSelector = exports.IconEditor = exports.GrayChannelField = exports.GraphicTypeField = exports.GraphicEditor = exports.GammaField = exports.FontPicker = exports.FilterTree = exports.FilterOverview = exports.FilterEditorWindow = exports.FillEditor = exports.FieldSet = exports.FieldContainer = exports.FadeDurationField = exports.ExtendedField = exports.Editor = exports.
|
|
7
|
-
exports.WellKnownNameEditor = exports.UnsupportedPropertiesContext = exports.UploadButton = exports.TextFilterField = exports.TextEditor = exports.Symbolizers = exports.SymbolizerEditorWindow = exports.SymbolizerCard = exports.StyleOverview = exports.StyleLoader = exports.StyleFieldContainer = exports.Style = exports.SourceChannelNameField = exports.SLDRenderer = exports.SizeField = exports.SelectableItem = exports.Selectable = exports.ScaleDenominator = exports.SaturationField = exports.RuleTable = exports.Rules = exports.RuleOverview = exports.RuleGeneratorWindow = exports.RuleGenerator = exports.RuleFieldContainer = exports.RuleCard = exports.Rule = exports.RotateField = exports.ResamplingField = exports.RgbChannelField = exports.Renderer = exports.LegacyRenderer = exports.RemovableItem = exports.
|
|
8
|
-
exports.withDefaultsContext =
|
|
6
|
+
exports.MaxScaleDenominator = exports.MarkEditor = exports.localize = exports.locale = exports.LineJoinField = exports.LineEditor = exports.LineDashField = exports.LineCapField = exports.KindField = exports.ImageField = exports.IconSelectorWindow = exports.IconSelector = exports.IconEditor = exports.GrayChannelField = exports.GraphicTypeField = exports.GraphicEditor = exports.GammaField = exports.FontPicker = exports.FilterTree = exports.FilterOverview = exports.FilterEditorWindow = exports.FillEditor = exports.FieldSet = exports.FieldContainer = exports.FadeDurationField = exports.ExtendedField = exports.Editor = exports.DefaultValueContext = exports.DataProvider = exports.DataLoader = exports.ContrastField = exports.ContrastEnhancementField = exports.ConfigProvider = exports.CompositionContext = exports.ComparisonFilter = exports.ColorRampCombo = exports.ColorMapTypeField = exports.ColorMapEntryField = exports.ColorMapEditor = exports.ColorField = exports.CodeEditor = exports.ChannelSelectionField = exports.ChannelField = exports.CardStyle = exports.BulkEditor = exports.BulkEditModals = exports.BrightnessField = exports.Breadcrumb = exports.BoolFilterField = exports.AttributeCombo = void 0;
|
|
7
|
+
exports.WidthField = exports.WellKnownNameField = exports.WellKnownNameEditor = exports.UnsupportedPropertiesContext = exports.UploadButton = exports.TextFilterField = exports.TextEditor = exports.Symbolizers = exports.SymbolizerEditorWindow = exports.SymbolizerCard = exports.StyleOverview = exports.StyleLoader = exports.StyleFieldContainer = exports.Style = exports.SourceChannelNameField = exports.SortableItem = exports.SLDRenderer = exports.SizeField = exports.SelectableItem = exports.Selectable = exports.ScaleDenominator = exports.SaturationField = exports.RuleTable = exports.Rules = exports.RuleOverview = exports.RuleGeneratorWindow = exports.RuleGenerator = exports.RuleFieldContainer = exports.RuleCard = exports.Rule = exports.RotateField = exports.ResamplingField = exports.RgbChannelField = exports.Renderer = exports.LegacyRenderer = exports.RemovableItem = exports.RemoveButton = exports.RasterEditor = exports.RasterChannelEditor = exports.RadiusField = exports.PropTextEditor = exports.PreviewMap = exports.Preview = exports.OperatorCombo = exports.OpacityField = exports.OffsetField = exports.NumberFilterField = exports.NameField = exports.MultiEditor = exports.MinScaleDenominator = void 0;
|
|
8
|
+
exports.withDefaultsContext = void 0;
|
|
9
9
|
/* eslint-disable camelcase */
|
|
10
10
|
/* Released under the BSD 2-Clause License
|
|
11
11
|
*
|
|
@@ -74,10 +74,6 @@ var DataLoader_1 = __importDefault(require("./Component/DataInput/DataLoader/Dat
|
|
|
74
74
|
exports.DataLoader = DataLoader_1.default;
|
|
75
75
|
var DataProvider_1 = __importDefault(require("./DataProvider/DataProvider"));
|
|
76
76
|
exports.DataProvider = DataProvider_1.default;
|
|
77
|
-
var DragDroppable_1 = __importDefault(require("./Component/DragDroppable/DragDroppable"));
|
|
78
|
-
exports.DragDroppable = DragDroppable_1.default;
|
|
79
|
-
var DropIndicator_1 = __importDefault(require("./Component/DropIndicator/DropIndicator"));
|
|
80
|
-
exports.DropIndicator = DropIndicator_1.default;
|
|
81
77
|
var Editor_1 = __importDefault(require("./Component/Symbolizer/Editor/Editor"));
|
|
82
78
|
exports.Editor = Editor_1.default;
|
|
83
79
|
var ExtendedField_1 = __importDefault(require("./Component/Symbolizer/Field/ExtendedField/ExtendedField"));
|
|
@@ -154,9 +150,7 @@ var RasterChannelEditor_1 = __importDefault(require("./Component/Symbolizer/Rast
|
|
|
154
150
|
exports.RasterChannelEditor = RasterChannelEditor_1.default;
|
|
155
151
|
var RasterEditor_1 = __importDefault(require("./Component/Symbolizer/RasterEditor/RasterEditor"));
|
|
156
152
|
exports.RasterEditor = RasterEditor_1.default;
|
|
157
|
-
var
|
|
158
|
-
exports.Removable = Removable_1.default;
|
|
159
|
-
var RemovableItem_1 = __importDefault(require("./Component/Removable/RemovableItem/RemovableItem"));
|
|
153
|
+
var RemovableItem_1 = __importDefault(require("./Component/RemovableItem/RemovableItem"));
|
|
160
154
|
exports.RemovableItem = RemovableItem_1.default;
|
|
161
155
|
var RemoveButton_1 = __importDefault(require("./Component/Rule/RemoveButton/RemoveButton"));
|
|
162
156
|
exports.RemoveButton = RemoveButton_1.default;
|
|
@@ -199,6 +193,8 @@ var SizeField_1 = __importDefault(require("./Component/Symbolizer/Field/SizeFiel
|
|
|
199
193
|
exports.SizeField = SizeField_1.default;
|
|
200
194
|
var SLDRenderer_1 = __importDefault(require("./Component/Symbolizer/SLDRenderer/SLDRenderer"));
|
|
201
195
|
exports.SLDRenderer = SLDRenderer_1.default;
|
|
196
|
+
var SortableItem_1 = __importDefault(require("./Component/SortableItem/SortableItem"));
|
|
197
|
+
exports.SortableItem = SortableItem_1.default;
|
|
202
198
|
var SourceChannelNameField_1 = __importDefault(require("./Component/Symbolizer/Field/SourceChannelNameField/SourceChannelNameField"));
|
|
203
199
|
exports.SourceChannelNameField = SourceChannelNameField_1.default;
|
|
204
200
|
var Style_1 = __importDefault(require("./Component/Style/Style"));
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,8BAA8B;AAC9B;;;;;;;;;;;;;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FAjCO,qBAAc,OAiCP;AA/BhB,yDAAmC;AACnC,yDAAmC;AACnC,yDAAmC;AACnC,yDAAmC;AACnC,yDAAmC;AACnC,IAAM,MAAM,GAAG;IACb,KAAK,iBAAA;IACL,KAAK,iBAAA;IACL,KAAK,iBAAA;IACL,KAAK,iBAAA;IACL,KAAK,iBAAA;CACN,CAAC;AAmDA,wBAAM","sourcesContent":["/* eslint-disable camelcase */\n/* Released under the BSD 2-Clause License\n *\n * Copyright © 2018-present, terrestris GmbH & Co. KG and GeoStyler contributors\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source code must retain the above copyright notice,\n * this list of conditions and the following disclaimer.\n *\n * * Redistributions in binary form must reproduce the above copyright notice,\n * this list of conditions and the following disclaimer in the documentation\n * and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE\n * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\nimport AttributeCombo from './Component/Filter/AttributeCombo/AttributeCombo';\nimport BoolFilterField from './Component/Filter/BoolFilterField/BoolFilterField';\nimport Breadcrumb from './Component/Breadcrumb/Breadcrumb';\nimport BrightnessField from './Component/Symbolizer/Field/BrightnessField/BrightnessField';\nimport BulkEditModals from './Component/Symbolizer/BulkEditModals/BulkEditModals';\nimport BulkEditor from './Component/BulkEditor/BulkEditor';\nimport CardStyle from './Component/CardStyle/CardStyle';\nimport ChannelField from './Component/Symbolizer/Field/ChannelField/ChannelField';\nimport ChannelSelectionField from './Component/Symbolizer/Field/ChannelSelectionField/ChannelSelectionField';\nimport CodeEditor from './Component/CodeEditor/CodeEditor';\nimport ColorField from './Component/Symbolizer/Field/ColorField/ColorField';\nimport ColorMapEditor from './Component/Symbolizer/ColorMapEditor/ColorMapEditor';\nimport ColorMapEntryField from './Component/Symbolizer/Field/ColorMapEntryField/ColorMapEntryField';\nimport ColorMapTypeField from './Component/Symbolizer/Field/ColorMapTypeField/ColorMapTypeField';\nimport ColorRampCombo from './Component/RuleGenerator/ColorRampCombo/ColorRampCombo';\nimport ComparisonFilter from './Component/Filter/ComparisonFilter/ComparisonFilter';\nimport ContrastEnhancementField from './Component/Symbolizer/Field/ContrastEnhancementField/ContrastEnhancementField';\nimport ContrastField from './Component/Symbolizer/Field/ContrastField/ContrastField';\nimport DataLoader from './Component/DataInput/DataLoader/DataLoader';\nimport DataProvider from './DataProvider/DataProvider';\nimport DragDroppable from './Component/DragDroppable/DragDroppable';\nimport DropIndicator from './Component/DropIndicator/DropIndicator';\nimport Editor from './Component/Symbolizer/Editor/Editor';\nimport ExtendedField from './Component/Symbolizer/Field/ExtendedField/ExtendedField';\nimport FadeDurationField from './Component/Symbolizer/Field/FadeDurationField/FadeDurationField';\nimport FieldSet from './Component/FieldSet/FieldSet';\nimport FieldContainer from './Component/FieldContainer/FieldContainer';\nimport FillEditor from './Component/Symbolizer/FillEditor/FillEditor';\nimport FilterEditorWindow from './Component/Filter/FilterEditorWindow/FilterEditorWindow';\nimport FilterOverview from './Component/FilterOverview/FilterOverview';\nimport FilterTree from './Component/Filter/FilterTree/FilterTree';\nimport FontPicker from './Component/Symbolizer/Field/FontPicker/FontPicker';\nimport GammaField from './Component/Symbolizer/Field/GammaField/GammaField';\nimport GraphicEditor from './Component/Symbolizer/GraphicEditor/GraphicEditor';\nimport GraphicTypeField from './Component/Symbolizer/Field/GraphicTypeField/GraphicTypeField';\nimport GrayChannelField from './Component/Symbolizer/Field/GrayChannelField/GrayChannelField';\nimport IconEditor from './Component/Symbolizer/IconEditor/IconEditor';\nimport IconSelector from './Component/Symbolizer/IconSelector/IconSelector';\nimport IconSelectorWindow from './Component/Symbolizer/IconSelectorWindow/IconSelectorWindow';\nimport ImageField from './Component/Symbolizer/Field/ImageField/ImageField';\nimport KindField from './Component/Symbolizer/Field/KindField/KindField';\nimport LineCapField from './Component/Symbolizer/Field/LineCapField/LineCapField';\nimport LineDashField from './Component/Symbolizer/Field/LineDashField/LineDashField';\nimport LineEditor from './Component/Symbolizer/LineEditor/LineEditor';\nimport LineJoinField from './Component/Symbolizer/Field/LineJoinField/LineJoinField';\nimport MarkEditor from './Component/Symbolizer/MarkEditor/MarkEditor';\nimport MaxScaleDenominator from './Component/ScaleDenominator/MaxScaleDenominator';\nimport MinScaleDenominator from './Component/ScaleDenominator/MinScaleDenominator';\nimport MultiEditor from './Component/Symbolizer/MultiEditor/MultiEditor';\nimport NameField from './Component/NameField/NameField';\nimport NumberFilterField from './Component/Filter/NumberFilterField/NumberFilterField';\nimport OffsetField from './Component/Symbolizer/Field/OffsetField/OffsetField';\nimport OpacityField from './Component/Symbolizer/Field/OpacityField/OpacityField';\nimport OperatorCombo from './Component/Filter/OperatorCombo/OperatorCombo';\nimport Preview from './Component/Symbolizer/Preview/Preview';\nimport PreviewMap from './Component/PreviewMap/PreviewMap';\nimport PropTextEditor from './Component/Symbolizer/PropTextEditor/PropTextEditor';\nimport RadiusField from './Component/Symbolizer/Field/RadiusField/RadiusField';\nimport RasterChannelEditor from './Component/Symbolizer/RasterChannelEditor/RasterChannelEditor';\nimport RasterEditor from './Component/Symbolizer/RasterEditor/RasterEditor';\nimport Removable from './Component/Removable/Removable';\nimport RemovableItem from './Component/Removable/RemovableItem/RemovableItem';\nimport RemoveButton from './Component/Rule/RemoveButton/RemoveButton';\n// TODO This should be renamed to OlRenderer. Files should then be moved to.\nimport LegacyRenderer from './Component/Symbolizer/Renderer/Renderer';\nimport Renderer from './Component/Renderer/Renderer';\nimport RgbChannelField from './Component/Symbolizer/Field/RgbChannelField/RgbChannelField';\nimport ResamplingField from './Component/Symbolizer/Field/ResamplingField/ResamplingField';\nimport RotateField from './Component/Symbolizer/Field/RotateField/RotateField';\nimport Rule from './Component/Rule/Rule';\nimport RuleCard from './Component/RuleCard/RuleCard';\nimport RuleFieldContainer from './Component/RuleFieldContainer/RuleFieldContainer';\nimport RuleGenerator from './Component/RuleGenerator/RuleGenerator';\nimport RuleGeneratorWindow from './Component/RuleGenerator/RuleGeneratorWindow';\nimport RuleOverview from './Component/RuleOverview/RuleOverview';\nimport Rules from './Component/Rules/Rules';\nimport RuleTable from './Component/RuleTable/RuleTable';\nimport SaturationField from './Component/Symbolizer/Field/SaturationField/SaturationField';\nimport ScaleDenominator from './Component/ScaleDenominator/ScaleDenominator';\nimport Selectable from './Component/Selectable/Selectable';\nimport SelectableItem from './Component/Selectable/SelectableItem/SelectableItem';\nimport SizeField from './Component/Symbolizer/Field/SizeField/SizeField';\nimport SLDRenderer from './Component/Symbolizer/SLDRenderer/SLDRenderer';\nimport SourceChannelNameField from './Component/Symbolizer/Field/SourceChannelNameField/SourceChannelNameField';\nimport Style from './Component/Style/Style';\nimport StyleFieldContainer from './Component/StyleFieldContainer/StyleFieldContainer';\nimport StyleLoader from './Component/DataInput/StyleLoader/StyleLoader';\nimport StyleOverview from './Component/StyleOverview/StyleOverview';\nimport SymbolizerCard from './Component/SymbolizerCard/SymbolizerCard';\nimport SymbolizerEditorWindow from './Component/Symbolizer/SymbolizerEditorWindow/SymbolizerEditorWindow';\nimport Symbolizers from './Component/Symbolizers/Symbolizers';\nimport TextEditor from './Component/Symbolizer/TextEditor/TextEditor';\nimport TextFilterField from './Component/Filter/TextFilterField/TextFilterField';\nimport UploadButton from './Component/UploadButton/UploadButton';\nimport WellKnownNameEditor from './Component/Symbolizer/WellKnownNameEditor/WellKnownNameEditor';\nimport WellKnownNameField from './Component/Symbolizer/Field/WellKnownNameField/WellKnownNameField';\nimport WidthField from './Component/Symbolizer/Field/WidthField/WidthField';\nimport withDefaultsContext from './hoc/withDefaultsContext';\nimport { localize } from './Component/LocaleWrapper/LocaleWrapper';\nimport { CompositionContext } from './context/CompositionContext/CompositionContext';\nimport { DefaultValueContext } from './context/DefaultValueContext/DefaultValueContext';\nimport { UnsupportedPropertiesContext } from './context/UnsupportedPropertiesContext/UnsupportedPropertiesContext';\nimport { GeoStylerLocale } from './locale/locale';\n\nimport { ConfigProvider } from 'antd';\n\nimport de_DE from './locale/de_DE';\nimport en_US from './locale/en_US';\nimport es_ES from './locale/es_ES';\nimport fr_FR from './locale/fr_FR';\nimport zh_CN from './locale/zh_CN';\nconst locale = {\n de_DE,\n en_US,\n es_ES,\n fr_FR,\n zh_CN\n};\n\nexport {\n AttributeCombo,\n BoolFilterField,\n Breadcrumb,\n BrightnessField,\n BulkEditModals,\n BulkEditor,\n CardStyle,\n ChannelField,\n ChannelSelectionField,\n CodeEditor,\n ColorField,\n ColorMapEditor,\n ColorMapEntryField,\n ColorMapTypeField,\n ColorRampCombo,\n ComparisonFilter,\n CompositionContext,\n ConfigProvider,\n ContrastEnhancementField,\n ContrastField,\n DataLoader,\n DataProvider,\n DefaultValueContext,\n DragDroppable,\n DropIndicator,\n Editor,\n ExtendedField,\n FadeDurationField,\n FieldContainer,\n FieldSet,\n FillEditor,\n FilterEditorWindow,\n FilterOverview,\n FilterTree,\n FontPicker,\n GammaField,\n GraphicEditor,\n GraphicTypeField,\n GrayChannelField,\n IconEditor,\n IconSelector,\n IconSelectorWindow,\n ImageField,\n KindField,\n LineCapField,\n LineDashField,\n LineEditor,\n LineJoinField,\n locale,\n localize,\n MarkEditor,\n MaxScaleDenominator,\n MinScaleDenominator,\n MultiEditor,\n NameField,\n NumberFilterField,\n OffsetField,\n OpacityField,\n OperatorCombo,\n Preview,\n PreviewMap,\n PropTextEditor,\n RadiusField,\n RasterChannelEditor,\n RasterEditor,\n RemoveButton,\n Removable,\n RemovableItem,\n LegacyRenderer,\n Renderer,\n RgbChannelField,\n ResamplingField,\n RotateField,\n Rule,\n RuleCard,\n RuleFieldContainer,\n RuleGenerator,\n RuleGeneratorWindow,\n RuleOverview,\n Rules,\n RuleTable,\n SaturationField,\n ScaleDenominator,\n Selectable,\n SelectableItem,\n SizeField,\n SLDRenderer,\n SourceChannelNameField,\n Style,\n StyleFieldContainer,\n StyleLoader,\n StyleOverview,\n SymbolizerCard,\n SymbolizerEditorWindow,\n Symbolizers,\n TextEditor,\n TextFilterField,\n UploadButton,\n UnsupportedPropertiesContext,\n WellKnownNameEditor,\n WellKnownNameField,\n WidthField,\n withDefaultsContext,\n GeoStylerLocale\n};\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,8BAA8B;AAC9B;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,oGAA8E;AAsH5E,yBAtHK,wBAAc,CAsHL;AArHhB,uGAAiF;AAsH/E,0BAtHK,yBAAe,CAsHL;AArHjB,iFAA2D;AAsHzD,qBAtHK,oBAAU,CAsHL;AArHZ,iHAA2F;AAsHzF,0BAtHK,yBAAe,CAsHL;AArHjB,wGAAkF;AAsHhF,yBAtHK,wBAAc,CAsHL;AArHhB,iFAA2D;AAsHzD,qBAtHK,oBAAU,CAsHL;AArHZ,8EAAwD;AAsHtD,oBAtHK,mBAAS,CAsHL;AArHX,wGAAkF;AAsHhF,uBAtHK,sBAAY,CAsHL;AArHd,mIAA6G;AAsH3G,gCAtHK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1HK,wBAAc,CA0HL;AAzHhB,gIAA0G;AA0HxG,iCA1HK,gCAAsB,CA0HL;AAzHxB,oFAA8D;AA0H5D,sBA1HK,qBAAW,CA0HL;AAzHb,4FAAsE;AA0HpE,qBA1HK,oBAAU,CA0HL;AAzHZ,uGAAiF;AA0H/E,0BA1HK,yBAAe,CA0HL;AAzHjB,uFAAiE;AA0H/D,uBA1HK,sBAAY,CA0HL;AAzHd,uHAAiG;AA2H/F,8BA3HK,6BAAmB,CA2HL;AA1HrB,0HAAoG;AA2HlG,6BA3HK,4BAAkB,CA2HL;AA1HpB,kGAA4E;AA2H1E,qBA3HK,oBAAU,CA2HL;AA1HZ,kFAA4D;AA2H1D,8BA3HK,6BAAmB,CA2HL;AA1HrB,yEAAmE;AAqEjE,yFArEO,wBAAQ,OAqEP;AApEV,sFAAqF;AAqCnF,mGArCO,uCAAkB,OAqCP;AApCpB,yFAAwF;AA0CtF,oGA1CO,yCAAmB,OA0CP;AAzCrB,oHAAmH;AAmHjH,6GAnHO,2DAA4B,OAmHP;AAhH9B,6BAAsC;AAiCpC,+FAjCO,qBAAc,OAiCP;AA/BhB,yDAAmC;AACnC,yDAAmC;AACnC,yDAAmC;AACnC,yDAAmC;AACnC,yDAAmC;AACnC,IAAM,MAAM,GAAG;IACb,KAAK,iBAAA;IACL,KAAK,iBAAA;IACL,KAAK,iBAAA;IACL,KAAK,iBAAA;IACL,KAAK,iBAAA;CACN,CAAC;AAiDA,wBAAM","sourcesContent":["/* eslint-disable camelcase */\n/* Released under the BSD 2-Clause License\n *\n * Copyright © 2018-present, terrestris GmbH & Co. KG and GeoStyler contributors\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source code must retain the above copyright notice,\n * this list of conditions and the following disclaimer.\n *\n * * Redistributions in binary form must reproduce the above copyright notice,\n * this list of conditions and the following disclaimer in the documentation\n * and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE\n * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\nimport AttributeCombo from './Component/Filter/AttributeCombo/AttributeCombo';\nimport BoolFilterField from './Component/Filter/BoolFilterField/BoolFilterField';\nimport Breadcrumb from './Component/Breadcrumb/Breadcrumb';\nimport BrightnessField from './Component/Symbolizer/Field/BrightnessField/BrightnessField';\nimport BulkEditModals from './Component/Symbolizer/BulkEditModals/BulkEditModals';\nimport BulkEditor from './Component/BulkEditor/BulkEditor';\nimport CardStyle from './Component/CardStyle/CardStyle';\nimport ChannelField from './Component/Symbolizer/Field/ChannelField/ChannelField';\nimport ChannelSelectionField from './Component/Symbolizer/Field/ChannelSelectionField/ChannelSelectionField';\nimport CodeEditor from './Component/CodeEditor/CodeEditor';\nimport ColorField from './Component/Symbolizer/Field/ColorField/ColorField';\nimport ColorMapEditor from './Component/Symbolizer/ColorMapEditor/ColorMapEditor';\nimport ColorMapEntryField from './Component/Symbolizer/Field/ColorMapEntryField/ColorMapEntryField';\nimport ColorMapTypeField from './Component/Symbolizer/Field/ColorMapTypeField/ColorMapTypeField';\nimport ColorRampCombo from './Component/RuleGenerator/ColorRampCombo/ColorRampCombo';\nimport ComparisonFilter from './Component/Filter/ComparisonFilter/ComparisonFilter';\nimport ContrastEnhancementField from './Component/Symbolizer/Field/ContrastEnhancementField/ContrastEnhancementField';\nimport ContrastField from './Component/Symbolizer/Field/ContrastField/ContrastField';\nimport DataLoader from './Component/DataInput/DataLoader/DataLoader';\nimport DataProvider from './DataProvider/DataProvider';\nimport Editor from './Component/Symbolizer/Editor/Editor';\nimport ExtendedField from './Component/Symbolizer/Field/ExtendedField/ExtendedField';\nimport FadeDurationField from './Component/Symbolizer/Field/FadeDurationField/FadeDurationField';\nimport FieldSet from './Component/FieldSet/FieldSet';\nimport FieldContainer from './Component/FieldContainer/FieldContainer';\nimport FillEditor from './Component/Symbolizer/FillEditor/FillEditor';\nimport FilterEditorWindow from './Component/Filter/FilterEditorWindow/FilterEditorWindow';\nimport FilterOverview from './Component/FilterOverview/FilterOverview';\nimport FilterTree from './Component/Filter/FilterTree/FilterTree';\nimport FontPicker from './Component/Symbolizer/Field/FontPicker/FontPicker';\nimport GammaField from './Component/Symbolizer/Field/GammaField/GammaField';\nimport GraphicEditor from './Component/Symbolizer/GraphicEditor/GraphicEditor';\nimport GraphicTypeField from './Component/Symbolizer/Field/GraphicTypeField/GraphicTypeField';\nimport GrayChannelField from './Component/Symbolizer/Field/GrayChannelField/GrayChannelField';\nimport IconEditor from './Component/Symbolizer/IconEditor/IconEditor';\nimport IconSelector from './Component/Symbolizer/IconSelector/IconSelector';\nimport IconSelectorWindow from './Component/Symbolizer/IconSelectorWindow/IconSelectorWindow';\nimport ImageField from './Component/Symbolizer/Field/ImageField/ImageField';\nimport KindField from './Component/Symbolizer/Field/KindField/KindField';\nimport LineCapField from './Component/Symbolizer/Field/LineCapField/LineCapField';\nimport LineDashField from './Component/Symbolizer/Field/LineDashField/LineDashField';\nimport LineEditor from './Component/Symbolizer/LineEditor/LineEditor';\nimport LineJoinField from './Component/Symbolizer/Field/LineJoinField/LineJoinField';\nimport MarkEditor from './Component/Symbolizer/MarkEditor/MarkEditor';\nimport MaxScaleDenominator from './Component/ScaleDenominator/MaxScaleDenominator';\nimport MinScaleDenominator from './Component/ScaleDenominator/MinScaleDenominator';\nimport MultiEditor from './Component/Symbolizer/MultiEditor/MultiEditor';\nimport NameField from './Component/NameField/NameField';\nimport NumberFilterField from './Component/Filter/NumberFilterField/NumberFilterField';\nimport OffsetField from './Component/Symbolizer/Field/OffsetField/OffsetField';\nimport OpacityField from './Component/Symbolizer/Field/OpacityField/OpacityField';\nimport OperatorCombo from './Component/Filter/OperatorCombo/OperatorCombo';\nimport Preview from './Component/Symbolizer/Preview/Preview';\nimport PreviewMap from './Component/PreviewMap/PreviewMap';\nimport PropTextEditor from './Component/Symbolizer/PropTextEditor/PropTextEditor';\nimport RadiusField from './Component/Symbolizer/Field/RadiusField/RadiusField';\nimport RasterChannelEditor from './Component/Symbolizer/RasterChannelEditor/RasterChannelEditor';\nimport RasterEditor from './Component/Symbolizer/RasterEditor/RasterEditor';\nimport RemovableItem from './Component/RemovableItem/RemovableItem';\nimport RemoveButton from './Component/Rule/RemoveButton/RemoveButton';\n// TODO This should be renamed to OlRenderer. Files should then be moved to.\nimport LegacyRenderer from './Component/Symbolizer/Renderer/Renderer';\nimport Renderer from './Component/Renderer/Renderer';\nimport RgbChannelField from './Component/Symbolizer/Field/RgbChannelField/RgbChannelField';\nimport ResamplingField from './Component/Symbolizer/Field/ResamplingField/ResamplingField';\nimport RotateField from './Component/Symbolizer/Field/RotateField/RotateField';\nimport Rule from './Component/Rule/Rule';\nimport RuleCard from './Component/RuleCard/RuleCard';\nimport RuleFieldContainer from './Component/RuleFieldContainer/RuleFieldContainer';\nimport RuleGenerator from './Component/RuleGenerator/RuleGenerator';\nimport RuleGeneratorWindow from './Component/RuleGenerator/RuleGeneratorWindow';\nimport RuleOverview from './Component/RuleOverview/RuleOverview';\nimport Rules from './Component/Rules/Rules';\nimport RuleTable from './Component/RuleTable/RuleTable';\nimport SaturationField from './Component/Symbolizer/Field/SaturationField/SaturationField';\nimport ScaleDenominator from './Component/ScaleDenominator/ScaleDenominator';\nimport Selectable from './Component/Selectable/Selectable';\nimport SelectableItem from './Component/Selectable/SelectableItem/SelectableItem';\nimport SizeField from './Component/Symbolizer/Field/SizeField/SizeField';\nimport SLDRenderer from './Component/Symbolizer/SLDRenderer/SLDRenderer';\nimport SortableItem from './Component/SortableItem/SortableItem';\nimport SourceChannelNameField from './Component/Symbolizer/Field/SourceChannelNameField/SourceChannelNameField';\nimport Style from './Component/Style/Style';\nimport StyleFieldContainer from './Component/StyleFieldContainer/StyleFieldContainer';\nimport StyleLoader from './Component/DataInput/StyleLoader/StyleLoader';\nimport StyleOverview from './Component/StyleOverview/StyleOverview';\nimport SymbolizerCard from './Component/SymbolizerCard/SymbolizerCard';\nimport SymbolizerEditorWindow from './Component/Symbolizer/SymbolizerEditorWindow/SymbolizerEditorWindow';\nimport Symbolizers from './Component/Symbolizers/Symbolizers';\nimport TextEditor from './Component/Symbolizer/TextEditor/TextEditor';\nimport TextFilterField from './Component/Filter/TextFilterField/TextFilterField';\nimport UploadButton from './Component/UploadButton/UploadButton';\nimport WellKnownNameEditor from './Component/Symbolizer/WellKnownNameEditor/WellKnownNameEditor';\nimport WellKnownNameField from './Component/Symbolizer/Field/WellKnownNameField/WellKnownNameField';\nimport WidthField from './Component/Symbolizer/Field/WidthField/WidthField';\nimport withDefaultsContext from './hoc/withDefaultsContext';\nimport { localize } from './Component/LocaleWrapper/LocaleWrapper';\nimport { CompositionContext } from './context/CompositionContext/CompositionContext';\nimport { DefaultValueContext } from './context/DefaultValueContext/DefaultValueContext';\nimport { UnsupportedPropertiesContext } from './context/UnsupportedPropertiesContext/UnsupportedPropertiesContext';\nimport { GeoStylerLocale } from './locale/locale';\n\nimport { ConfigProvider } from 'antd';\n\nimport de_DE from './locale/de_DE';\nimport en_US from './locale/en_US';\nimport es_ES from './locale/es_ES';\nimport fr_FR from './locale/fr_FR';\nimport zh_CN from './locale/zh_CN';\nconst locale = {\n de_DE,\n en_US,\n es_ES,\n fr_FR,\n zh_CN\n};\n\nexport {\n AttributeCombo,\n BoolFilterField,\n Breadcrumb,\n BrightnessField,\n BulkEditModals,\n BulkEditor,\n CardStyle,\n ChannelField,\n ChannelSelectionField,\n CodeEditor,\n ColorField,\n ColorMapEditor,\n ColorMapEntryField,\n ColorMapTypeField,\n ColorRampCombo,\n ComparisonFilter,\n CompositionContext,\n ConfigProvider,\n ContrastEnhancementField,\n ContrastField,\n DataLoader,\n DataProvider,\n DefaultValueContext,\n Editor,\n ExtendedField,\n FadeDurationField,\n FieldContainer,\n FieldSet,\n FillEditor,\n FilterEditorWindow,\n FilterOverview,\n FilterTree,\n FontPicker,\n GammaField,\n GraphicEditor,\n GraphicTypeField,\n GrayChannelField,\n IconEditor,\n IconSelector,\n IconSelectorWindow,\n ImageField,\n KindField,\n LineCapField,\n LineDashField,\n LineEditor,\n LineJoinField,\n locale,\n localize,\n MarkEditor,\n MaxScaleDenominator,\n MinScaleDenominator,\n MultiEditor,\n NameField,\n NumberFilterField,\n OffsetField,\n OpacityField,\n OperatorCombo,\n Preview,\n PreviewMap,\n PropTextEditor,\n RadiusField,\n RasterChannelEditor,\n RasterEditor,\n RemoveButton,\n RemovableItem,\n LegacyRenderer,\n Renderer,\n RgbChannelField,\n ResamplingField,\n RotateField,\n Rule,\n RuleCard,\n RuleFieldContainer,\n RuleGenerator,\n RuleGeneratorWindow,\n RuleOverview,\n Rules,\n RuleTable,\n SaturationField,\n ScaleDenominator,\n Selectable,\n SelectableItem,\n SizeField,\n SLDRenderer,\n SortableItem,\n SourceChannelNameField,\n Style,\n StyleFieldContainer,\n StyleLoader,\n StyleOverview,\n SymbolizerCard,\n SymbolizerEditorWindow,\n Symbolizers,\n TextEditor,\n TextFilterField,\n UploadButton,\n UnsupportedPropertiesContext,\n WellKnownNameEditor,\n WellKnownNameField,\n WidthField,\n withDefaultsContext,\n GeoStylerLocale\n};\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "geostyler",
|
|
3
|
-
"version": "10.3.
|
|
3
|
+
"version": "10.3.1",
|
|
4
4
|
"description": "Framework for styling geodata",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -54,6 +54,9 @@
|
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@babel/polyfill": "^7.12.1",
|
|
57
|
+
"@dnd-kit/core": "^6.0.6",
|
|
58
|
+
"@dnd-kit/sortable": "^7.0.1",
|
|
59
|
+
"@dnd-kit/utilities": "^3.2.1",
|
|
57
60
|
"@monaco-editor/react": "^4.4.6",
|
|
58
61
|
"@types/chroma-js": "^2.1.4",
|
|
59
62
|
"@types/color": "^3.0.3",
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* Creates the CompositionContext used for customising
|
|
4
|
-
* specified components. Components can be replaced or
|
|
5
|
-
* disabled.
|
|
6
|
-
*
|
|
7
|
-
* Definition of the compositions object.
|
|
8
|
-
* This object can be used for a CompositionContext
|
|
9
|
-
* to describe which components should be replaced
|
|
10
|
-
* or disabled. For replacing a component, another
|
|
11
|
-
* React component needs to be set as value. By
|
|
12
|
-
* assigning "false", the component will be disabled.
|
|
13
|
-
*
|
|
14
|
-
* Important: Context overrides the onChange and value
|
|
15
|
-
* properties for a custom component. This may lead to
|
|
16
|
-
* sideeffects if these props are used elsewhere.
|
|
17
|
-
*/
|
|
18
|
-
export interface Compositions {
|
|
19
|
-
Editor?: {
|
|
20
|
-
kindField?: React.ReactElement | false;
|
|
21
|
-
markEditor?: React.ReactElement | false;
|
|
22
|
-
iconEditor?: React.ReactElement | false;
|
|
23
|
-
lineEditor?: React.ReactElement | false;
|
|
24
|
-
fillEditor?: React.ReactElement | false;
|
|
25
|
-
textEditor?: React.ReactElement | false;
|
|
26
|
-
rasterEditor?: React.ReactElement | false;
|
|
27
|
-
};
|
|
28
|
-
LineEditor?: {
|
|
29
|
-
widthField?: React.ReactElement | false;
|
|
30
|
-
colorField?: React.ReactElement | false;
|
|
31
|
-
opacityField?: React.ReactElement | false;
|
|
32
|
-
lineDashField?: React.ReactElement | false;
|
|
33
|
-
dashOffsetField?: React.ReactElement | false;
|
|
34
|
-
capField?: React.ReactElement | false;
|
|
35
|
-
joinField?: React.ReactElement | false;
|
|
36
|
-
graphicStrokeField?: React.ReactElement | false;
|
|
37
|
-
graphicFillField?: React.ReactElement | false;
|
|
38
|
-
};
|
|
39
|
-
IconEditor?: {
|
|
40
|
-
imageField?: React.ReactElement | false;
|
|
41
|
-
sizeField?: React.ReactElement | false;
|
|
42
|
-
rotateField?: React.ReactElement | false;
|
|
43
|
-
opacityField?: React.ReactElement | false;
|
|
44
|
-
};
|
|
45
|
-
FillEditor?: {
|
|
46
|
-
fillColorField?: React.ReactElement | false;
|
|
47
|
-
fillOpacityField?: React.ReactElement | false;
|
|
48
|
-
outlineColorField?: React.ReactElement | false;
|
|
49
|
-
outlineWidthField?: React.ReactElement | false;
|
|
50
|
-
outlineDasharrayField?: React.ReactElement | false;
|
|
51
|
-
graphicEditorField?: React.ReactElement | false;
|
|
52
|
-
};
|
|
53
|
-
TextEditor?: {
|
|
54
|
-
templateField?: React.ReactElement | false;
|
|
55
|
-
colorField?: React.ReactElement | false;
|
|
56
|
-
fontField?: React.ReactElement | false;
|
|
57
|
-
opacityField?: React.ReactElement | false;
|
|
58
|
-
sizeField?: React.ReactElement | false;
|
|
59
|
-
offsetXField?: React.ReactElement | false;
|
|
60
|
-
offsetYField?: React.ReactElement | false;
|
|
61
|
-
rotateField?: React.ReactElement | false;
|
|
62
|
-
haloColorField?: React.ReactElement | false;
|
|
63
|
-
haloWidthField?: React.ReactElement | false;
|
|
64
|
-
};
|
|
65
|
-
RasterEditor?: {
|
|
66
|
-
opacityField?: React.ReactElement | false;
|
|
67
|
-
contrastEnhancementField?: React.ReactElement | false;
|
|
68
|
-
gammaValueField?: React.ReactElement | false;
|
|
69
|
-
rasterChannelField?: React.ReactElement | false;
|
|
70
|
-
colorMapField?: React.ReactElement | false;
|
|
71
|
-
};
|
|
72
|
-
MarkEditor?: {
|
|
73
|
-
wellKnownNameField?: React.ReactElement | false;
|
|
74
|
-
};
|
|
75
|
-
WellKnownNameEditor?: {
|
|
76
|
-
radiusField?: React.ReactElement | false;
|
|
77
|
-
fillColorField?: React.ReactElement | false;
|
|
78
|
-
fillOpacityField?: React.ReactElement | false;
|
|
79
|
-
strokeColorField?: React.ReactElement | false;
|
|
80
|
-
strokeWidthField?: React.ReactElement | false;
|
|
81
|
-
strokeOpacityField?: React.ReactElement | false;
|
|
82
|
-
rotateField?: React.ReactElement | false;
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
export declare const CompositionContext: React.Context<{}>;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* Released under the BSD 2-Clause License
|
|
3
|
-
*
|
|
4
|
-
* Copyright © 2018-present, terrestris GmbH & Co. KG and GeoStyler contributors
|
|
5
|
-
* All rights reserved.
|
|
6
|
-
*
|
|
7
|
-
* Redistribution and use in source and binary forms, with or without
|
|
8
|
-
* modification, are permitted provided that the following conditions are met:
|
|
9
|
-
*
|
|
10
|
-
* * Redistributions of source code must retain the above copyright notice,
|
|
11
|
-
* this list of conditions and the following disclaimer.
|
|
12
|
-
*
|
|
13
|
-
* * Redistributions in binary form must reproduce the above copyright notice,
|
|
14
|
-
* this list of conditions and the following disclaimer in the documentation
|
|
15
|
-
* and/or other materials provided with the distribution.
|
|
16
|
-
*
|
|
17
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
18
|
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
19
|
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
20
|
-
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
|
21
|
-
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
22
|
-
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
23
|
-
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
24
|
-
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
25
|
-
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
26
|
-
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
27
|
-
* POSSIBILITY OF SUCH DAMAGE.
|
|
28
|
-
*/
|
|
29
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
30
|
-
if (k2 === undefined) k2 = k;
|
|
31
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
32
|
-
}) : (function(o, m, k, k2) {
|
|
33
|
-
if (k2 === undefined) k2 = k;
|
|
34
|
-
o[k2] = m[k];
|
|
35
|
-
}));
|
|
36
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
37
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
38
|
-
}) : function(o, v) {
|
|
39
|
-
o["default"] = v;
|
|
40
|
-
});
|
|
41
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
42
|
-
if (mod && mod.__esModule) return mod;
|
|
43
|
-
var result = {};
|
|
44
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
45
|
-
__setModuleDefault(result, mod);
|
|
46
|
-
return result;
|
|
47
|
-
};
|
|
48
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
-
exports.CompositionContext = void 0;
|
|
50
|
-
var React = __importStar(require("react"));
|
|
51
|
-
exports.CompositionContext = React.createContext({});
|
|
52
|
-
//# sourceMappingURL=CompositionContext.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CompositionContext.js","sourceRoot":"","sources":["../../../src/Component/CompositionContext/CompositionContext.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;;;;;;;;;;;;;;;;;;;;;;AAEH,2CAA+B;AAsFlB,QAAA,kBAAkB,GAAG,KAAK,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC"}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { WellKnownName } from 'geostyler-style';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
/**
|
|
4
|
-
* Creates the DefaultValueContext used for customising
|
|
5
|
-
* default values.
|
|
6
|
-
*/
|
|
7
|
-
export interface DefaultValues {
|
|
8
|
-
LineEditor?: {
|
|
9
|
-
defaultWidth?: number;
|
|
10
|
-
defaultColor?: string;
|
|
11
|
-
defaultOpacity?: number;
|
|
12
|
-
defaultDashOffset?: number;
|
|
13
|
-
defaultCap?: string;
|
|
14
|
-
defaultJoin?: string;
|
|
15
|
-
};
|
|
16
|
-
IconEditor?: {
|
|
17
|
-
defaultImage?: string;
|
|
18
|
-
defaultSize?: number;
|
|
19
|
-
defaultRotate?: number;
|
|
20
|
-
defaultOpacity?: number;
|
|
21
|
-
};
|
|
22
|
-
FillEditor?: {
|
|
23
|
-
defaultFillColor?: string;
|
|
24
|
-
defaultFillOpacity?: number;
|
|
25
|
-
defaultOpacity?: number;
|
|
26
|
-
defaultOutlineColor?: string;
|
|
27
|
-
defaultOutlineWidth?: number;
|
|
28
|
-
defaultOutlineOpacity?: number;
|
|
29
|
-
};
|
|
30
|
-
TextEditor?: {
|
|
31
|
-
defaultLabel?: string;
|
|
32
|
-
defaultColor?: string;
|
|
33
|
-
defaultFont?: string;
|
|
34
|
-
defaultOpacity?: number;
|
|
35
|
-
defaultSize?: number;
|
|
36
|
-
defaultOffsetX?: number;
|
|
37
|
-
defaultOffsetY?: number;
|
|
38
|
-
defaultRotate?: number;
|
|
39
|
-
defaultHaloColor?: string;
|
|
40
|
-
defaultHaloWidth?: number;
|
|
41
|
-
};
|
|
42
|
-
RasterEditor?: {
|
|
43
|
-
defaultOpacity?: number;
|
|
44
|
-
defaultGammaValue?: number;
|
|
45
|
-
};
|
|
46
|
-
MarkEditor?: {
|
|
47
|
-
defaultWellKnownName?: WellKnownName;
|
|
48
|
-
};
|
|
49
|
-
WellKnownNameEditor?: {
|
|
50
|
-
defaultRadius?: string;
|
|
51
|
-
defaultColor?: string;
|
|
52
|
-
defaultOpacity?: number;
|
|
53
|
-
defaultFillOpacity?: number;
|
|
54
|
-
defaultStrokeColor?: string;
|
|
55
|
-
defaultStrokeWidth?: number;
|
|
56
|
-
defaultStrokeOpacity?: number;
|
|
57
|
-
defaultRotate?: number;
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
export declare const DefaultValueContext: React.Context<{}>;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* Released under the BSD 2-Clause License
|
|
3
|
-
*
|
|
4
|
-
* Copyright © 2018-present, terrestris GmbH & Co. KG and GeoStyler contributors
|
|
5
|
-
* All rights reserved.
|
|
6
|
-
*
|
|
7
|
-
* Redistribution and use in source and binary forms, with or without
|
|
8
|
-
* modification, are permitted provided that the following conditions are met:
|
|
9
|
-
*
|
|
10
|
-
* * Redistributions of source code must retain the above copyright notice,
|
|
11
|
-
* this list of conditions and the following disclaimer.
|
|
12
|
-
*
|
|
13
|
-
* * Redistributions in binary form must reproduce the above copyright notice,
|
|
14
|
-
* this list of conditions and the following disclaimer in the documentation
|
|
15
|
-
* and/or other materials provided with the distribution.
|
|
16
|
-
*
|
|
17
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
18
|
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
19
|
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
20
|
-
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
|
21
|
-
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
22
|
-
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
23
|
-
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
24
|
-
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
25
|
-
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
26
|
-
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
27
|
-
* POSSIBILITY OF SUCH DAMAGE.
|
|
28
|
-
*/
|
|
29
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
30
|
-
if (k2 === undefined) k2 = k;
|
|
31
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
32
|
-
}) : (function(o, m, k, k2) {
|
|
33
|
-
if (k2 === undefined) k2 = k;
|
|
34
|
-
o[k2] = m[k];
|
|
35
|
-
}));
|
|
36
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
37
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
38
|
-
}) : function(o, v) {
|
|
39
|
-
o["default"] = v;
|
|
40
|
-
});
|
|
41
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
42
|
-
if (mod && mod.__esModule) return mod;
|
|
43
|
-
var result = {};
|
|
44
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
45
|
-
__setModuleDefault(result, mod);
|
|
46
|
-
return result;
|
|
47
|
-
};
|
|
48
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
-
exports.DefaultValueContext = void 0;
|
|
50
|
-
var React = __importStar(require("react"));
|
|
51
|
-
exports.DefaultValueContext = React.createContext({});
|
|
52
|
-
//# sourceMappingURL=DefaultValueContext.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultValueContext.js","sourceRoot":"","sources":["../../../src/Component/DefaultValueContext/DefaultValueContext.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;;;;;;;;;;;;;;;;;;;;;;AAGH,2CAA+B;AA4DlB,QAAA,mBAAmB,GAAG,KAAK,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/* Released under the BSD 2-Clause License
|
|
2
|
-
*
|
|
3
|
-
* Copyright © 2022-present, terrestris GmbH & Co. KG and GeoStyler contributors
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
*
|
|
6
|
-
* Redistribution and use in source and binary forms, with or without
|
|
7
|
-
* modification, are permitted provided that the following conditions are met:
|
|
8
|
-
*
|
|
9
|
-
* * Redistributions of source code must retain the above copyright notice,
|
|
10
|
-
* this list of conditions and the following disclaimer.
|
|
11
|
-
*
|
|
12
|
-
* * Redistributions in binary form must reproduce the above copyright notice,
|
|
13
|
-
* this list of conditions and the following disclaimer in the documentation
|
|
14
|
-
* and/or other materials provided with the distribution.
|
|
15
|
-
*
|
|
16
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
17
|
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
18
|
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
19
|
-
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
|
20
|
-
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
21
|
-
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
22
|
-
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
23
|
-
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
24
|
-
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
25
|
-
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
26
|
-
* POSSIBILITY OF SUCH DAMAGE.
|
|
27
|
-
*/
|
|
28
|
-
.gs-drag-droppable {
|
|
29
|
-
display: flex;
|
|
30
|
-
}
|
|
31
|
-
.gs-drag-droppable.horizontal {
|
|
32
|
-
flex-direction: row;
|
|
33
|
-
}
|
|
34
|
-
.gs-drag-droppable.vertical {
|
|
35
|
-
flex-direction: column;
|
|
36
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { DragOrientation, ItemType } from '../../Util/DndUtil';
|
|
3
|
-
import { OnDropParams } from '../../hook/UseDragDrop';
|
|
4
|
-
import './DragDroppable.css';
|
|
5
|
-
export interface DragDroppableProps extends React.PropsWithChildren {
|
|
6
|
-
position: number;
|
|
7
|
-
itemType: ItemType;
|
|
8
|
-
onDrop?: (opts: OnDropParams) => void;
|
|
9
|
-
dragOrientation?: DragOrientation;
|
|
10
|
-
showIndicator?: boolean;
|
|
11
|
-
}
|
|
12
|
-
export declare const DragDroppable: React.FC<DragDroppableProps>;
|
|
13
|
-
export default DragDroppable;
|