@modelform/react-native 0.2.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -25,3 +25,4 @@ export * from './layoutEdit';
25
25
  export * from './mappings';
26
26
  export * from './panelOptions';
27
27
  export * from './sample';
28
+ export * from './snippets';
@@ -189,7 +189,6 @@
189
189
 
190
190
 
191
191
 
192
- var _chunkM5R44SAFjs = require('../chunk-M5R44SAF.js');
193
192
 
194
193
 
195
194
 
@@ -201,6 +200,7 @@ var _chunkM5R44SAFjs = require('../chunk-M5R44SAF.js');
201
200
 
202
201
 
203
202
 
203
+ var _chunkWMRDOYPVjs = require('../chunk-WMRDOYPV.js');
204
204
 
205
205
 
206
206
 
@@ -381,4 +381,26 @@ var _chunkM5R44SAFjs = require('../chunk-M5R44SAF.js');
381
381
 
382
382
 
383
383
 
384
- exports.ALL = _chunkM5R44SAFjs.ALL; exports.BUNDLE_ACCEPT = _chunkM5R44SAFjs.BUNDLE_ACCEPT; exports.BUNDLE_TYPE = _chunkM5R44SAFjs.BUNDLE_TYPE; exports.CANVAS_GAP = _chunkM5R44SAFjs.CANVAS_GAP; exports.CANVAS_ROW_HEADER = _chunkM5R44SAFjs.CANVAS_ROW_HEADER; exports.ConfigLoader = _chunkM5R44SAFjs.ConfigLoader; exports.DASHBOARD_DS = _chunkM5R44SAFjs.DASHBOARD_DS; exports.DEFAULT_GAZETTEER = _chunkM5R44SAFjs.DEFAULT_GAZETTEER; exports.EDITABLE_VARIABLE_TYPES = _chunkM5R44SAFjs.EDITABLE_VARIABLE_TYPES; exports.GRID_COLUMNS = _chunkM5R44SAFjs.GRID_COLUMNS; exports.GrafanaClient = _chunkM5R44SAFjs.GrafanaClient; exports.GrafanaDataSource = _chunkM5R44SAFjs.GrafanaDataSource; exports.GrafanaError = _chunkM5R44SAFjs.GrafanaError; exports.HttpConfigFiles = _chunkM5R44SAFjs.HttpConfigFiles; exports.INPUT_OPTION_KEYS = _chunkM5R44SAFjs.INPUT_OPTION_KEYS; exports.INPUT_TYPES = _chunkM5R44SAFjs.INPUT_TYPES; exports.LOCAL_DATASOURCE_TYPE = _chunkM5R44SAFjs.LOCAL_DATASOURCE_TYPE; exports.LocalDataSource = _chunkM5R44SAFjs.LocalDataSource; exports.MANIFEST_VERSION = _chunkM5R44SAFjs.MANIFEST_VERSION; exports.MAPPING_TYPES = _chunkM5R44SAFjs.MAPPING_TYPES; exports.MemoryEntryStore = _chunkM5R44SAFjs.MemoryEntryStore; exports.NAMED_COLORS = _chunkM5R44SAFjs.NAMED_COLORS; exports.OPTION_CATEGORIES = _chunkM5R44SAFjs.OPTION_CATEGORIES; exports.OVERRIDE_MATCHERS = _chunkM5R44SAFjs.OVERRIDE_MATCHERS; exports.PANEL_TYPES = _chunkM5R44SAFjs.PANEL_TYPES; exports.REDUCER_LABELS = _chunkM5R44SAFjs.REDUCER_LABELS; exports.REFRESH_CHOICES = _chunkM5R44SAFjs.REFRESH_CHOICES; exports.RELATIVE_RANGES = _chunkM5R44SAFjs.RELATIVE_RANGES; exports.SERIES_PALETTE = _chunkM5R44SAFjs.SERIES_PALETTE; exports.SPECIAL_MATCHES = _chunkM5R44SAFjs.SPECIAL_MATCHES; exports.SaveConflictError = _chunkM5R44SAFjs.SaveConflictError; exports.TIME_PRESETS = _chunkM5R44SAFjs.TIME_PRESETS; exports.UNIT_CHOICES = _chunkM5R44SAFjs.UNIT_CHOICES; exports.addTime = _chunkM5R44SAFjs.addTime; exports.appSchema = _chunkM5R44SAFjs.appSchema; exports.applyDashboardLink = _chunkM5R44SAFjs.applyDashboardLink; exports.applyJsonEdits = _chunkM5R44SAFjs.applyJsonEdits; exports.applyTransformations = _chunkM5R44SAFjs.applyTransformations; exports.assembleBundle = _chunkM5R44SAFjs.assembleBundle; exports.assembleFromResponse = _chunkM5R44SAFjs.assembleFromResponse; exports.buildFrames = _chunkM5R44SAFjs.buildFrames; exports.bundleFromFiles = _chunkM5R44SAFjs.bundleFromFiles; exports.bundleRoot = _chunkM5R44SAFjs.bundleRoot; exports.calculateInterval = _chunkM5R44SAFjs.calculateInterval; exports.checkFiles = _chunkM5R44SAFjs.checkFiles; exports.cleanDashboard = _chunkM5R44SAFjs.cleanDashboard; exports.cleanPanelOptions = _chunkM5R44SAFjs.cleanPanelOptions; exports.dashboardSchema = _chunkM5R44SAFjs.dashboardSchema; exports.dashboardSchemaIssues = _chunkM5R44SAFjs.dashboardSchemaIssues; exports.dashboardSourceIds = _chunkM5R44SAFjs.dashboardSourceIds; exports.defaultFetchJson = _chunkM5R44SAFjs.defaultFetchJson; exports.describeRange = _chunkM5R44SAFjs.describeRange; exports.diffJson = _chunkM5R44SAFjs.diffJson; exports.documentIdFor = _chunkM5R44SAFjs.documentIdFor; exports.documentUses = _chunkM5R44SAFjs.documentUses; exports.dropTarget = _chunkM5R44SAFjs.dropTarget; exports.duplicatePanel = _chunkM5R44SAFjs.duplicatePanel; exports.entriesSavedWith = _chunkM5R44SAFjs.entriesSavedWith; exports.entryToInputValue = _chunkM5R44SAFjs.entryToInputValue; exports.expandRow = _chunkM5R44SAFjs.expandRow; exports.fetchBundle = _chunkM5R44SAFjs.fetchBundle; exports.fetchJsonWithToken = _chunkM5R44SAFjs.fetchJsonWithToken; exports.fieldDisplayName = _chunkM5R44SAFjs.fieldDisplayName; exports.fieldMatches = _chunkM5R44SAFjs.fieldMatches; exports.formatClock = _chunkM5R44SAFjs.formatClock; exports.formatDisplay = _chunkM5R44SAFjs.formatDisplay; exports.formatDuration = _chunkM5R44SAFjs.formatDuration; exports.formatJsonText = _chunkM5R44SAFjs.formatJsonText; exports.formatLocalDateTime = _chunkM5R44SAFjs.formatLocalDateTime; exports.formatValue = _chunkM5R44SAFjs.formatValue; exports.frameLength = _chunkM5R44SAFjs.frameLength; exports.framesToOptions = _chunkM5R44SAFjs.framesToOptions; exports.fromWire = _chunkM5R44SAFjs.fromWire; exports.getPath = _chunkM5R44SAFjs.getPath; exports.gridUnitsToPx = _chunkM5R44SAFjs.gridUnitsToPx; exports.httpFetchJson = _chunkM5R44SAFjs.httpFetchJson; exports.initialVariableValues = _chunkM5R44SAFjs.initialVariableValues; exports.inputPanels = _chunkM5R44SAFjs.inputPanels; exports.inputProblem = _chunkM5R44SAFjs.inputProblem; exports.insertPanel = _chunkM5R44SAFjs.insertPanel; exports.interpolate = _chunkM5R44SAFjs.interpolate; exports.interpolateDeep = _chunkM5R44SAFjs.interpolateDeep; exports.isBundleResponse = _chunkM5R44SAFjs.isBundleResponse; exports.isEditableVariableType = _chunkM5R44SAFjs.isEditableVariableType; exports.isInputPanel = _chunkM5R44SAFjs.isInputPanel; exports.isInputType = _chunkM5R44SAFjs.isInputType; exports.isLocalDatasource = _chunkM5R44SAFjs.isLocalDatasource; exports.isReducer = _chunkM5R44SAFjs.isReducer; exports.isRow = _chunkM5R44SAFjs.isRow; exports.isSqlDatasource = _chunkM5R44SAFjs.isSqlDatasource; exports.layoutCanvas = _chunkM5R44SAFjs.layoutCanvas; exports.layoutDashboard = _chunkM5R44SAFjs.layoutDashboard; exports.lineColumn = _chunkM5R44SAFjs.lineColumn; exports.loadGazetteer = _chunkM5R44SAFjs.loadGazetteer; exports.locate = _chunkM5R44SAFjs.locate; exports.manifestSchemaIssues = _chunkM5R44SAFjs.manifestSchemaIssues; exports.mappedResult = _chunkM5R44SAFjs.mappedResult; exports.mappingProblem = _chunkM5R44SAFjs.mappingProblem; exports.mappingRow = _chunkM5R44SAFjs.mappingRow; exports.mappingRows = _chunkM5R44SAFjs.mappingRows; exports.metricChanges = _chunkM5R44SAFjs.metricChanges; exports.movePanel = _chunkM5R44SAFjs.movePanel; exports.newDocument = _chunkM5R44SAFjs.newDocument; exports.newPanel = _chunkM5R44SAFjs.newPanel; exports.newVariable = _chunkM5R44SAFjs.newVariable; exports.nextPanelId = _chunkM5R44SAFjs.nextPanelId; exports.normalizeRef = _chunkM5R44SAFjs.normalizeRef; exports.numberFields = _chunkM5R44SAFjs.numberFields; exports.optionValue = _chunkM5R44SAFjs.optionValue; exports.overrideProperties = _chunkM5R44SAFjs.overrideProperties; exports.panelEdits = _chunkM5R44SAFjs.panelEdits; exports.panelHasQueries = _chunkM5R44SAFjs.panelHasQueries; exports.panelKey = _chunkM5R44SAFjs.panelKey; exports.panelOptions = _chunkM5R44SAFjs.panelOptions; exports.panelOverrides = _chunkM5R44SAFjs.panelOverrides; exports.panelSize = _chunkM5R44SAFjs.panelSize; exports.panelSpan = _chunkM5R44SAFjs.panelSpan; exports.parseClockDigits = _chunkM5R44SAFjs.parseClockDigits; exports.parseDashboardLink = _chunkM5R44SAFjs.parseDashboardLink; exports.parseDuration = _chunkM5R44SAFjs.parseDuration; exports.parseGazetteer = _chunkM5R44SAFjs.parseGazetteer; exports.parseJsonText = _chunkM5R44SAFjs.parseJsonText; exports.parseLocalDateTime = _chunkM5R44SAFjs.parseLocalDateTime; exports.parseRange = _chunkM5R44SAFjs.parseRange; exports.parseTime = _chunkM5R44SAFjs.parseTime; exports.pointerToPath = _chunkM5R44SAFjs.pointerToPath; exports.prepareDashboard = _chunkM5R44SAFjs.prepareDashboard; exports.queryPanel = _chunkM5R44SAFjs.queryPanel; exports.queryParam = _chunkM5R44SAFjs.queryParam; exports.readConfigFiles = _chunkM5R44SAFjs.readConfigFiles; exports.readingOrder = _chunkM5R44SAFjs.readingOrder; exports.reduce = _chunkM5R44SAFjs.reduce; exports.refineOptions = _chunkM5R44SAFjs.refineOptions; exports.refreshedVariables = _chunkM5R44SAFjs.refreshedVariables; exports.removeDocumentFromManifest = _chunkM5R44SAFjs.removeDocumentFromManifest; exports.removePanel = _chunkM5R44SAFjs.removePanel; exports.renameDocumentInManifest = _chunkM5R44SAFjs.renameDocumentInManifest; exports.renameVariableInPanels = _chunkM5R44SAFjs.renameVariableInPanels; exports.repack = _chunkM5R44SAFjs.repack; exports.repeatOptions = _chunkM5R44SAFjs.repeatOptions; exports.resizePanel = _chunkM5R44SAFjs.resizePanel; exports.resolveColor = _chunkM5R44SAFjs.resolveColor; exports.resolveFieldConfig = _chunkM5R44SAFjs.resolveFieldConfig; exports.resolveLinks = _chunkM5R44SAFjs.resolveLinks; exports.resolveTimezone = _chunkM5R44SAFjs.resolveTimezone; exports.resolveUrl = _chunkM5R44SAFjs.resolveUrl; exports.resolveVariables = _chunkM5R44SAFjs.resolveVariables; exports.revalidateBundle = _chunkM5R44SAFjs.revalidateBundle; exports.rowsToMappings = _chunkM5R44SAFjs.rowsToMappings; exports.sampleEntries = _chunkM5R44SAFjs.sampleEntries; exports.screenDocuments = _chunkM5R44SAFjs.screenDocuments; exports.screenOfType = _chunkM5R44SAFjs.screenOfType; exports.selectValue = _chunkM5R44SAFjs.selectValue; exports.seriesColor = _chunkM5R44SAFjs.seriesColor; exports.setHiddenOnPhones = _chunkM5R44SAFjs.setHiddenOnPhones; exports.setJsonValue = _chunkM5R44SAFjs.setJsonValue; exports.setOption = _chunkM5R44SAFjs.setOption; exports.setOptionValue = _chunkM5R44SAFjs.setOptionValue; exports.setOverrides = _chunkM5R44SAFjs.setOverrides; exports.splitPath = _chunkM5R44SAFjs.splitPath; exports.startOf = _chunkM5R44SAFjs.startOf; exports.stringifyCompact = _chunkM5R44SAFjs.stringifyCompact; exports.tabIdFor = _chunkM5R44SAFjs.tabIdFor; exports.textSuggestions = _chunkM5R44SAFjs.textSuggestions; exports.thresholdStep = _chunkM5R44SAFjs.thresholdStep; exports.timeExprError = _chunkM5R44SAFjs.timeExprError; exports.timeField = _chunkM5R44SAFjs.timeField; exports.toEntries = _chunkM5R44SAFjs.toEntries; exports.toMillis = _chunkM5R44SAFjs.toMillis; exports.toSeries = _chunkM5R44SAFjs.toSeries; exports.toXYSeries = _chunkM5R44SAFjs.toXYSeries; exports.uniqueNames = _chunkM5R44SAFjs.uniqueNames; exports.validateBundle = _chunkM5R44SAFjs.validateBundle; exports.validateDashboard = _chunkM5R44SAFjs.validateDashboard; exports.validateManifest = _chunkM5R44SAFjs.validateManifest; exports.valueColor = _chunkM5R44SAFjs.valueColor; exports.valueText = _chunkM5R44SAFjs.valueText; exports.variableDependents = _chunkM5R44SAFjs.variableDependents; exports.variableInfo = _chunkM5R44SAFjs.variableInfo; exports.variableNameError = _chunkM5R44SAFjs.variableNameError; exports.variableOptions = _chunkM5R44SAFjs.variableOptions; exports.variableOrder = _chunkM5R44SAFjs.variableOrder; exports.variableReferences = _chunkM5R44SAFjs.variableReferences; exports.variableUses = _chunkM5R44SAFjs.variableUses; exports.variableWithCurrent = _chunkM5R44SAFjs.variableWithCurrent; exports.variableWithFlags = _chunkM5R44SAFjs.variableWithFlags; exports.variableWithQuery = _chunkM5R44SAFjs.variableWithQuery; exports.variableWithType = _chunkM5R44SAFjs.variableWithType; exports.visibleVariables = _chunkM5R44SAFjs.visibleVariables; exports.zoomRange = _chunkM5R44SAFjs.zoomRange;
384
+
385
+
386
+
387
+
388
+
389
+
390
+
391
+
392
+
393
+
394
+
395
+
396
+
397
+
398
+
399
+
400
+
401
+
402
+
403
+
404
+
405
+
406
+ exports.ALL = _chunkWMRDOYPVjs.ALL; exports.BUNDLE_ACCEPT = _chunkWMRDOYPVjs.BUNDLE_ACCEPT; exports.BUNDLE_TYPE = _chunkWMRDOYPVjs.BUNDLE_TYPE; exports.CANVAS_GAP = _chunkWMRDOYPVjs.CANVAS_GAP; exports.CANVAS_ROW_HEADER = _chunkWMRDOYPVjs.CANVAS_ROW_HEADER; exports.ConfigLoader = _chunkWMRDOYPVjs.ConfigLoader; exports.DASHBOARD_DS = _chunkWMRDOYPVjs.DASHBOARD_DS; exports.DEFAULT_GAZETTEER = _chunkWMRDOYPVjs.DEFAULT_GAZETTEER; exports.EDITABLE_VARIABLE_TYPES = _chunkWMRDOYPVjs.EDITABLE_VARIABLE_TYPES; exports.GRID_COLUMNS = _chunkWMRDOYPVjs.GRID_COLUMNS; exports.GrafanaClient = _chunkWMRDOYPVjs.GrafanaClient; exports.GrafanaDataSource = _chunkWMRDOYPVjs.GrafanaDataSource; exports.GrafanaError = _chunkWMRDOYPVjs.GrafanaError; exports.HttpConfigFiles = _chunkWMRDOYPVjs.HttpConfigFiles; exports.INPUT_OPTION_KEYS = _chunkWMRDOYPVjs.INPUT_OPTION_KEYS; exports.INPUT_TYPES = _chunkWMRDOYPVjs.INPUT_TYPES; exports.LOCAL_DATASOURCE_TYPE = _chunkWMRDOYPVjs.LOCAL_DATASOURCE_TYPE; exports.LocalDataSource = _chunkWMRDOYPVjs.LocalDataSource; exports.MANIFEST_VERSION = _chunkWMRDOYPVjs.MANIFEST_VERSION; exports.MAPPING_TYPES = _chunkWMRDOYPVjs.MAPPING_TYPES; exports.MemoryEntryStore = _chunkWMRDOYPVjs.MemoryEntryStore; exports.NAMED_COLORS = _chunkWMRDOYPVjs.NAMED_COLORS; exports.OPTION_CATEGORIES = _chunkWMRDOYPVjs.OPTION_CATEGORIES; exports.OVERRIDE_MATCHERS = _chunkWMRDOYPVjs.OVERRIDE_MATCHERS; exports.PANEL_TYPES = _chunkWMRDOYPVjs.PANEL_TYPES; exports.REDUCER_LABELS = _chunkWMRDOYPVjs.REDUCER_LABELS; exports.REFRESH_CHOICES = _chunkWMRDOYPVjs.REFRESH_CHOICES; exports.RELATIVE_RANGES = _chunkWMRDOYPVjs.RELATIVE_RANGES; exports.SERIES_PALETTE = _chunkWMRDOYPVjs.SERIES_PALETTE; exports.SNIPPET_VERSION = _chunkWMRDOYPVjs.SNIPPET_VERSION; exports.SPECIAL_MATCHES = _chunkWMRDOYPVjs.SPECIAL_MATCHES; exports.SaveConflictError = _chunkWMRDOYPVjs.SaveConflictError; exports.TIME_PRESETS = _chunkWMRDOYPVjs.TIME_PRESETS; exports.UNIT_CHOICES = _chunkWMRDOYPVjs.UNIT_CHOICES; exports.addTime = _chunkWMRDOYPVjs.addTime; exports.appSchema = _chunkWMRDOYPVjs.appSchema; exports.applyDashboardLink = _chunkWMRDOYPVjs.applyDashboardLink; exports.applyJsonEdits = _chunkWMRDOYPVjs.applyJsonEdits; exports.applyTransformations = _chunkWMRDOYPVjs.applyTransformations; exports.assembleBundle = _chunkWMRDOYPVjs.assembleBundle; exports.assembleFromResponse = _chunkWMRDOYPVjs.assembleFromResponse; exports.buildFrames = _chunkWMRDOYPVjs.buildFrames; exports.bundleFromFiles = _chunkWMRDOYPVjs.bundleFromFiles; exports.bundleRoot = _chunkWMRDOYPVjs.bundleRoot; exports.calculateInterval = _chunkWMRDOYPVjs.calculateInterval; exports.checkFiles = _chunkWMRDOYPVjs.checkFiles; exports.cleanDashboard = _chunkWMRDOYPVjs.cleanDashboard; exports.cleanPanelOptions = _chunkWMRDOYPVjs.cleanPanelOptions; exports.collapseRow = _chunkWMRDOYPVjs.collapseRow; exports.compactGrid = _chunkWMRDOYPVjs.compactGrid; exports.copyPanels = _chunkWMRDOYPVjs.copyPanels; exports.dashboardSchema = _chunkWMRDOYPVjs.dashboardSchema; exports.dashboardSchemaIssues = _chunkWMRDOYPVjs.dashboardSchemaIssues; exports.dashboardSourceIds = _chunkWMRDOYPVjs.dashboardSourceIds; exports.defaultFetchJson = _chunkWMRDOYPVjs.defaultFetchJson; exports.describeRange = _chunkWMRDOYPVjs.describeRange; exports.diffJson = _chunkWMRDOYPVjs.diffJson; exports.documentIdFor = _chunkWMRDOYPVjs.documentIdFor; exports.documentUses = _chunkWMRDOYPVjs.documentUses; exports.dropTarget = _chunkWMRDOYPVjs.dropTarget; exports.duplicatePanel = _chunkWMRDOYPVjs.duplicatePanel; exports.entriesSavedWith = _chunkWMRDOYPVjs.entriesSavedWith; exports.entryToInputValue = _chunkWMRDOYPVjs.entryToInputValue; exports.expandRow = _chunkWMRDOYPVjs.expandRow; exports.fetchBundle = _chunkWMRDOYPVjs.fetchBundle; exports.fetchJsonWithToken = _chunkWMRDOYPVjs.fetchJsonWithToken; exports.fieldDisplayName = _chunkWMRDOYPVjs.fieldDisplayName; exports.fieldMatches = _chunkWMRDOYPVjs.fieldMatches; exports.formatClock = _chunkWMRDOYPVjs.formatClock; exports.formatDisplay = _chunkWMRDOYPVjs.formatDisplay; exports.formatDuration = _chunkWMRDOYPVjs.formatDuration; exports.formatJsonText = _chunkWMRDOYPVjs.formatJsonText; exports.formatLocalDateTime = _chunkWMRDOYPVjs.formatLocalDateTime; exports.formatValue = _chunkWMRDOYPVjs.formatValue; exports.frameLength = _chunkWMRDOYPVjs.frameLength; exports.framesToOptions = _chunkWMRDOYPVjs.framesToOptions; exports.fromWire = _chunkWMRDOYPVjs.fromWire; exports.getPath = _chunkWMRDOYPVjs.getPath; exports.gridOffsetPx = _chunkWMRDOYPVjs.gridOffsetPx; exports.gridUnitsToPx = _chunkWMRDOYPVjs.gridUnitsToPx; exports.httpFetchJson = _chunkWMRDOYPVjs.httpFetchJson; exports.initialVariableValues = _chunkWMRDOYPVjs.initialVariableValues; exports.inputPanels = _chunkWMRDOYPVjs.inputPanels; exports.inputProblem = _chunkWMRDOYPVjs.inputProblem; exports.insertPanel = _chunkWMRDOYPVjs.insertPanel; exports.interpolate = _chunkWMRDOYPVjs.interpolate; exports.interpolateDeep = _chunkWMRDOYPVjs.interpolateDeep; exports.isBundleResponse = _chunkWMRDOYPVjs.isBundleResponse; exports.isEditableVariableType = _chunkWMRDOYPVjs.isEditableVariableType; exports.isInputPanel = _chunkWMRDOYPVjs.isInputPanel; exports.isInputType = _chunkWMRDOYPVjs.isInputType; exports.isLocalDatasource = _chunkWMRDOYPVjs.isLocalDatasource; exports.isReducer = _chunkWMRDOYPVjs.isReducer; exports.isRow = _chunkWMRDOYPVjs.isRow; exports.isSqlDatasource = _chunkWMRDOYPVjs.isSqlDatasource; exports.layoutCanvas = _chunkWMRDOYPVjs.layoutCanvas; exports.layoutDashboard = _chunkWMRDOYPVjs.layoutDashboard; exports.lineColumn = _chunkWMRDOYPVjs.lineColumn; exports.loadGazetteer = _chunkWMRDOYPVjs.loadGazetteer; exports.locate = _chunkWMRDOYPVjs.locate; exports.manifestSchemaIssues = _chunkWMRDOYPVjs.manifestSchemaIssues; exports.mappedResult = _chunkWMRDOYPVjs.mappedResult; exports.mappingProblem = _chunkWMRDOYPVjs.mappingProblem; exports.mappingRow = _chunkWMRDOYPVjs.mappingRow; exports.mappingRows = _chunkWMRDOYPVjs.mappingRows; exports.metricChanges = _chunkWMRDOYPVjs.metricChanges; exports.movePanel = _chunkWMRDOYPVjs.movePanel; exports.newDocument = _chunkWMRDOYPVjs.newDocument; exports.newPanel = _chunkWMRDOYPVjs.newPanel; exports.newVariable = _chunkWMRDOYPVjs.newVariable; exports.nextPanelId = _chunkWMRDOYPVjs.nextPanelId; exports.normalizeRef = _chunkWMRDOYPVjs.normalizeRef; exports.numberFields = _chunkWMRDOYPVjs.numberFields; exports.optionValue = _chunkWMRDOYPVjs.optionValue; exports.overrideProperties = _chunkWMRDOYPVjs.overrideProperties; exports.panelEdits = _chunkWMRDOYPVjs.panelEdits; exports.panelHasQueries = _chunkWMRDOYPVjs.panelHasQueries; exports.panelKey = _chunkWMRDOYPVjs.panelKey; exports.panelOptions = _chunkWMRDOYPVjs.panelOptions; exports.panelOverrides = _chunkWMRDOYPVjs.panelOverrides; exports.panelSize = _chunkWMRDOYPVjs.panelSize; exports.panelSpan = _chunkWMRDOYPVjs.panelSpan; exports.parseClockDigits = _chunkWMRDOYPVjs.parseClockDigits; exports.parseDashboardLink = _chunkWMRDOYPVjs.parseDashboardLink; exports.parseDuration = _chunkWMRDOYPVjs.parseDuration; exports.parseGazetteer = _chunkWMRDOYPVjs.parseGazetteer; exports.parseJsonText = _chunkWMRDOYPVjs.parseJsonText; exports.parseLocalDateTime = _chunkWMRDOYPVjs.parseLocalDateTime; exports.parseRange = _chunkWMRDOYPVjs.parseRange; exports.parseSnippet = _chunkWMRDOYPVjs.parseSnippet; exports.parseTime = _chunkWMRDOYPVjs.parseTime; exports.pasteSnippet = _chunkWMRDOYPVjs.pasteSnippet; exports.placePanel = _chunkWMRDOYPVjs.placePanel; exports.pointerToPath = _chunkWMRDOYPVjs.pointerToPath; exports.prepareDashboard = _chunkWMRDOYPVjs.prepareDashboard; exports.previewPaste = _chunkWMRDOYPVjs.previewPaste; exports.queryPanel = _chunkWMRDOYPVjs.queryPanel; exports.queryParam = _chunkWMRDOYPVjs.queryParam; exports.readConfigFiles = _chunkWMRDOYPVjs.readConfigFiles; exports.readingOrder = _chunkWMRDOYPVjs.readingOrder; exports.reduce = _chunkWMRDOYPVjs.reduce; exports.refineOptions = _chunkWMRDOYPVjs.refineOptions; exports.refreshedVariables = _chunkWMRDOYPVjs.refreshedVariables; exports.removeDocumentFromManifest = _chunkWMRDOYPVjs.removeDocumentFromManifest; exports.removePanel = _chunkWMRDOYPVjs.removePanel; exports.renameDocumentInManifest = _chunkWMRDOYPVjs.renameDocumentInManifest; exports.renameVariableInPanels = _chunkWMRDOYPVjs.renameVariableInPanels; exports.repack = _chunkWMRDOYPVjs.repack; exports.repeatOptions = _chunkWMRDOYPVjs.repeatOptions; exports.resizePanel = _chunkWMRDOYPVjs.resizePanel; exports.resolveColor = _chunkWMRDOYPVjs.resolveColor; exports.resolveFieldConfig = _chunkWMRDOYPVjs.resolveFieldConfig; exports.resolveLinks = _chunkWMRDOYPVjs.resolveLinks; exports.resolveTimezone = _chunkWMRDOYPVjs.resolveTimezone; exports.resolveUrl = _chunkWMRDOYPVjs.resolveUrl; exports.resolveVariables = _chunkWMRDOYPVjs.resolveVariables; exports.revalidateBundle = _chunkWMRDOYPVjs.revalidateBundle; exports.rowsToMappings = _chunkWMRDOYPVjs.rowsToMappings; exports.sampleEntries = _chunkWMRDOYPVjs.sampleEntries; exports.screenDocuments = _chunkWMRDOYPVjs.screenDocuments; exports.screenOfType = _chunkWMRDOYPVjs.screenOfType; exports.selectValue = _chunkWMRDOYPVjs.selectValue; exports.seriesColor = _chunkWMRDOYPVjs.seriesColor; exports.setHiddenOnPhones = _chunkWMRDOYPVjs.setHiddenOnPhones; exports.setJsonValue = _chunkWMRDOYPVjs.setJsonValue; exports.setOption = _chunkWMRDOYPVjs.setOption; exports.setOptionValue = _chunkWMRDOYPVjs.setOptionValue; exports.setOverrides = _chunkWMRDOYPVjs.setOverrides; exports.settleLayout = _chunkWMRDOYPVjs.settleLayout; exports.snapToGrid = _chunkWMRDOYPVjs.snapToGrid; exports.splitPath = _chunkWMRDOYPVjs.splitPath; exports.startOf = _chunkWMRDOYPVjs.startOf; exports.stringifyCompact = _chunkWMRDOYPVjs.stringifyCompact; exports.tabIdFor = _chunkWMRDOYPVjs.tabIdFor; exports.textSuggestions = _chunkWMRDOYPVjs.textSuggestions; exports.thresholdStep = _chunkWMRDOYPVjs.thresholdStep; exports.timeExprError = _chunkWMRDOYPVjs.timeExprError; exports.timeField = _chunkWMRDOYPVjs.timeField; exports.toEntries = _chunkWMRDOYPVjs.toEntries; exports.toMillis = _chunkWMRDOYPVjs.toMillis; exports.toSeries = _chunkWMRDOYPVjs.toSeries; exports.toXYSeries = _chunkWMRDOYPVjs.toXYSeries; exports.uniqueNames = _chunkWMRDOYPVjs.uniqueNames; exports.validateBundle = _chunkWMRDOYPVjs.validateBundle; exports.validateDashboard = _chunkWMRDOYPVjs.validateDashboard; exports.validateManifest = _chunkWMRDOYPVjs.validateManifest; exports.valueColor = _chunkWMRDOYPVjs.valueColor; exports.valueText = _chunkWMRDOYPVjs.valueText; exports.variableDependents = _chunkWMRDOYPVjs.variableDependents; exports.variableInfo = _chunkWMRDOYPVjs.variableInfo; exports.variableNameError = _chunkWMRDOYPVjs.variableNameError; exports.variableOptions = _chunkWMRDOYPVjs.variableOptions; exports.variableOrder = _chunkWMRDOYPVjs.variableOrder; exports.variableReferences = _chunkWMRDOYPVjs.variableReferences; exports.variableUses = _chunkWMRDOYPVjs.variableUses; exports.variableWithCurrent = _chunkWMRDOYPVjs.variableWithCurrent; exports.variableWithFlags = _chunkWMRDOYPVjs.variableWithFlags; exports.variableWithQuery = _chunkWMRDOYPVjs.variableWithQuery; exports.variableWithType = _chunkWMRDOYPVjs.variableWithType; exports.visibleVariables = _chunkWMRDOYPVjs.visibleVariables; exports.zoomRange = _chunkWMRDOYPVjs.zoomRange;
@@ -28,6 +28,7 @@ import {
28
28
  REFRESH_CHOICES,
29
29
  RELATIVE_RANGES,
30
30
  SERIES_PALETTE,
31
+ SNIPPET_VERSION,
31
32
  SPECIAL_MATCHES,
32
33
  SaveConflictError,
33
34
  TIME_PRESETS,
@@ -46,6 +47,9 @@ import {
46
47
  checkFiles,
47
48
  cleanDashboard,
48
49
  cleanPanelOptions,
50
+ collapseRow,
51
+ compactGrid,
52
+ copyPanels,
49
53
  dashboardSchema,
50
54
  dashboardSchemaIssues,
51
55
  dashboardSourceIds,
@@ -73,6 +77,7 @@ import {
73
77
  framesToOptions,
74
78
  fromWire,
75
79
  getPath,
80
+ gridOffsetPx,
76
81
  gridUnitsToPx,
77
82
  httpFetchJson,
78
83
  initialVariableValues,
@@ -123,9 +128,13 @@ import {
123
128
  parseJsonText,
124
129
  parseLocalDateTime,
125
130
  parseRange,
131
+ parseSnippet,
126
132
  parseTime,
133
+ pasteSnippet,
134
+ placePanel,
127
135
  pointerToPath,
128
136
  prepareDashboard,
137
+ previewPaste,
129
138
  queryPanel,
130
139
  queryParam,
131
140
  readConfigFiles,
@@ -158,6 +167,8 @@ import {
158
167
  setOption,
159
168
  setOptionValue,
160
169
  setOverrides,
170
+ settleLayout,
171
+ snapToGrid,
161
172
  splitPath,
162
173
  startOf,
163
174
  stringifyCompact,
@@ -189,7 +200,7 @@ import {
189
200
  variableWithType,
190
201
  visibleVariables,
191
202
  zoomRange
192
- } from "../chunk-MRHC6AEU.mjs";
203
+ } from "../chunk-ATRMUHKJ.mjs";
193
204
  export {
194
205
  ALL,
195
206
  BUNDLE_ACCEPT,
@@ -220,6 +231,7 @@ export {
220
231
  REFRESH_CHOICES,
221
232
  RELATIVE_RANGES,
222
233
  SERIES_PALETTE,
234
+ SNIPPET_VERSION,
223
235
  SPECIAL_MATCHES,
224
236
  SaveConflictError,
225
237
  TIME_PRESETS,
@@ -238,6 +250,9 @@ export {
238
250
  checkFiles,
239
251
  cleanDashboard,
240
252
  cleanPanelOptions,
253
+ collapseRow,
254
+ compactGrid,
255
+ copyPanels,
241
256
  dashboardSchema,
242
257
  dashboardSchemaIssues,
243
258
  dashboardSourceIds,
@@ -265,6 +280,7 @@ export {
265
280
  framesToOptions,
266
281
  fromWire,
267
282
  getPath,
283
+ gridOffsetPx,
268
284
  gridUnitsToPx,
269
285
  httpFetchJson,
270
286
  initialVariableValues,
@@ -315,9 +331,13 @@ export {
315
331
  parseJsonText,
316
332
  parseLocalDateTime,
317
333
  parseRange,
334
+ parseSnippet,
318
335
  parseTime,
336
+ pasteSnippet,
337
+ placePanel,
319
338
  pointerToPath,
320
339
  prepareDashboard,
340
+ previewPaste,
321
341
  queryPanel,
322
342
  queryParam,
323
343
  readConfigFiles,
@@ -350,6 +370,8 @@ export {
350
370
  setOption,
351
371
  setOptionValue,
352
372
  setOverrides,
373
+ settleLayout,
374
+ snapToGrid,
353
375
  splitPath,
354
376
  startOf,
355
377
  stringifyCompact,
@@ -26,15 +26,48 @@ export interface LayoutRow {
26
26
  /** Height in grid units. */
27
27
  h: number;
28
28
  }
29
+ /** A panel placed on Grafana's grid, relative to the top of its section. */
30
+ export interface GridCell extends LayoutCell {
31
+ /** Column of the left edge, 0 to 23. */
32
+ x: number;
33
+ /** In grid units from the top of the section. */
34
+ y: number;
35
+ /** Columns wide; the same as `span`. */
36
+ w: number;
37
+ /** Height in grid units. */
38
+ h: number;
39
+ }
29
40
  export interface LayoutSection {
30
41
  key: string;
31
42
  /** The Grafana "row" panel heading this section, if any. */
32
43
  row?: Panel;
33
44
  collapsed: boolean;
45
+ /** Panels packed into lines in reading order: how phones show the section. */
34
46
  rows: LayoutRow[];
47
+ /** Panels where Grafana puts them, floated up: how wide screens show the section. */
48
+ grid: {
49
+ cells: GridCell[];
50
+ h: number;
51
+ };
35
52
  }
36
53
  /** Grafana's pixel height for h grid units. */
37
54
  export declare const gridUnitsToPx: (h: number) => number;
55
+ /** How far down y grid units starts, in pixels: each unit is a cell plus the gap under it. */
56
+ export declare const gridOffsetPx: (y: number) => number;
57
+ /** A rectangle on Grafana's grid, in columns and height units. */
58
+ export interface GridBox {
59
+ x: number;
60
+ y: number;
61
+ w: number;
62
+ h: number;
63
+ }
64
+ /**
65
+ * Grafana's vertical compaction. Boxes are taken top to bottom, then left to right; each floats
66
+ * up as far as it can, and one that overlaps a box already placed drops below it. Boxes listed
67
+ * in `fixed` are placed first, where they are, so the rest make way for them. Columns are
68
+ * snapped to whole units and kept on the grid. Returns new boxes, in the same order.
69
+ */
70
+ export declare function compactGrid(boxes: GridBox[], fixed?: ReadonlySet<number>): GridBox[];
38
71
  export declare const isRow: (p: Panel) => boolean;
39
72
  /** Current variable values and options; without them repeated rows and panels render once, unrepeated. */
40
73
  export interface RepeatContext {
@@ -1,11 +1,12 @@
1
1
  /**
2
- * The layout editor's model. modelform lays panels out in reading order, packed into lines by
3
- * width (see layout.ts), so editing a layout is editing an order plus sizes: moving a panel
4
- * changes where it falls in the order, and every gridPos x/y is then rewritten from that
5
- * order so the file (and Grafana) agree with what the app shows.
2
+ * The layout editor's model. Wide screens show panels where Grafana does: at their gridPos,
3
+ * floated up (see compactGrid in layout.ts). So editing the grid is placing and sizing panels,
4
+ * and after every change gridPos is rewritten to the floated-up layout, so the file (and
5
+ * Grafana) say what the app shows. Phones show panels in reading order, packed into lines;
6
+ * moving a panel there moves it in that order, which is still a place on the grid.
6
7
  *
7
8
  * Panels are identified by their index in `dashboard.panels`, which edits keep stable (apart
8
- * from removing one), so the JSON text can be patched in place.
9
+ * from removing some), so the JSON text can be patched in place.
9
10
  */
10
11
  import { type JsonEdit } from './jsonEdit';
11
12
  import { type LayoutMode } from './layout';
@@ -13,8 +14,11 @@ import type { Panel } from './schema';
13
14
  /** Top-level panel indices (rows included) in the order the app shows them; ties keep file order. */
14
15
  export declare function readingOrder(panels: Panel[]): number[];
15
16
  /**
16
- * Rewrites gridPos x/y so that sorting by position gives `order`, packing each line by width
17
- * the way the app does. Sizes are kept. Returns new panels; untouched ones are the same objects.
17
+ * Rewrites gridPos x/y so that sorting by position gives `order`, packing each line by width.
18
+ * Sizes are kept. Returns new panels; untouched ones are the same objects.
19
+ *
20
+ * @deprecated Wide screens now show panels where their gridPos puts them, so packing into
21
+ * lines throws placement away. Use `settleLayout` to tidy a layout, `placePanel` to move one.
18
22
  */
19
23
  export declare function repack(panels: Panel[], order: number[]): Panel[];
20
24
  export interface CanvasItem {
@@ -39,11 +43,17 @@ export interface Canvas {
39
43
  }
40
44
  export declare const CANVAS_GAP = 8;
41
45
  export declare const CANVAS_ROW_HEADER = 32;
42
- /** A size to show for one panel while it's being resized, in the units of the current mode. */
46
+ /**
47
+ * One panel shown as it's being changed: a size while it's resized, in the units of the current
48
+ * mode, or (on the grid) a place while it's dragged. The other panels make way as they will.
49
+ */
43
50
  export interface SizeOverride {
44
51
  index: number;
45
- span: number;
46
- h: number;
52
+ span?: number;
53
+ h?: number;
54
+ /** Grid only: column and line of the top left. */
55
+ x?: number;
56
+ y?: number;
47
57
  }
48
58
  /** Sizes in the current mode: grid uses gridPos; phone uses `mobile`, falling back like the app does. */
49
59
  export declare function panelSize(panel: Panel, mode: LayoutMode): {
@@ -58,30 +68,63 @@ export declare function layoutCanvas(panels: Panel[], order: number[], mode: Lay
58
68
  * the pointer is over (left/right for panels, top/bottom for rows).
59
69
  */
60
70
  export declare function dropTarget(canvas: Canvas, x: number, y: number, dragging: number): number | null;
61
- /** Moves `index` to just before `before` (or to the end) and repacks. */
71
+ /**
72
+ * Moves `index` to just before `before` in reading order (or to the end), for phones, where
73
+ * order is all there is: it takes `before`'s place on the grid, which moves down to make way.
74
+ * The grid stays the source of truth, so panels beside the moved one can float up past
75
+ * `before` too; the moved panel always lands right before it.
76
+ */
62
77
  export declare function movePanel(panels: Panel[], index: number, before: number | null): Panel[];
63
- /** Resizes in the units of `mode`: gridPos w/h on the grid, mobile span/h on phones. */
78
+ /** Resizes in the units of `mode`: gridPos w/h on the grid (panels in the way move down), mobile span/h on phones. */
64
79
  export declare function resizePanel(panels: Panel[], index: number, mode: LayoutMode, span: number, h: number): Panel[];
65
80
  /** Shows or hides a panel on phones. */
66
81
  export declare function setHiddenOnPhones(panels: Panel[], index: number, hidden: boolean): Panel[];
67
82
  /** One more than the largest panel id anywhere, collapsed rows included. */
68
83
  export declare function nextPanelId(panels: Panel[]): number;
69
- /** Adds a panel after `after` (or at the end), with a fresh id. Returns the panels and the new one's index. */
84
+ /**
85
+ * Adds a panel with a fresh id: beside `after` if it fits on the same line, else under it, or
86
+ * at the bottom without one. Panels in the way move down. Returns the panels and the new one's index.
87
+ */
70
88
  export declare function insertPanel(panels: Panel[], panel: Panel, after: number | null): {
71
89
  panels: Panel[];
72
90
  index: number;
73
91
  };
74
- /** A copy of a panel right after it. */
92
+ /** A copy of a panel beside or under it. */
75
93
  export declare function duplicatePanel(panels: Panel[], index: number): {
76
94
  panels: Panel[];
77
95
  index: number;
78
96
  };
79
- /** Removes a panel. A collapsed row takes the panels inside it along. */
97
+ /** Removes a panel; the panels below float up. A collapsed row takes the panels inside it along. */
80
98
  export declare function removePanel(panels: Panel[], index: number): Panel[];
81
- /** Expands a collapsed row: its panels move out to the top level, right after it. */
99
+ /**
100
+ * Expands a collapsed row: its panels move out to the top level, under it, as they were laid
101
+ * out inside it, and everything below moves down to make room. They're added at the end of
102
+ * the panels array so the rest of the file stays as it is.
103
+ */
82
104
  export declare function expandRow(panels: Panel[], index: number): Panel[];
105
+ /**
106
+ * Collapses a row: the panels under it, down to the next row, move inside it, and the panels
107
+ * below float up. Returns the panels and the indices that left the top level, for panelEdits.
108
+ */
109
+ export declare function collapseRow(panels: Panel[], index: number): {
110
+ panels: Panel[];
111
+ removed: number[];
112
+ };
113
+ /**
114
+ * Floats every panel up the way the app shows them, so the file says what the app shows. With
115
+ * `fixed`, that panel (or those panels, e.g. a pasted block) keeps its place and any it now
116
+ * covers move down first. Panels already in place are left as the same objects.
117
+ */
118
+ export declare function settleLayout(panels: Panel[], fixed?: number | number[]): Panel[];
119
+ /** Puts a panel with its top left at column x, line y; panels in the way move down, then everything floats up. */
120
+ export declare function placePanel(panels: Panel[], index: number, x: number, y: number): Panel[];
121
+ /** The grid cell a panel `w` columns wide would take with its top left at pixel (x, y) on a canvas `width` wide. */
122
+ export declare function snapToGrid(width: number, x: number, y: number, w: number): {
123
+ x: number;
124
+ y: number;
125
+ };
83
126
  /**
84
127
  * JSON edits that turn `before` into `after` (panel arrays from the ops above), with
85
128
  * `panels` patched element by element so the file keeps its formatting.
86
129
  */
87
- export declare function panelEdits(before: Panel[], after: Panel[], removed?: number): JsonEdit[];
130
+ export declare function panelEdits(before: Panel[], after: Panel[], removed?: number | number[]): JsonEdit[];
@@ -0,0 +1,64 @@
1
+ import type { Dashboard, Panel, TemplateVariable } from './schema';
2
+ export declare const SNIPPET_VERSION = 1;
3
+ export interface PanelSnippet {
4
+ $modelform: 'panels';
5
+ version: number;
6
+ /** "form" when any panel is an input, which only forms can show. */
7
+ kind: 'form' | 'dashboard';
8
+ /** Top-level panels. A row brings its panels: inside it when collapsed, after it when not. */
9
+ panels: Panel[];
10
+ /** The dashboard variables the panels use, and the variables those use. */
11
+ variables: TemplateVariable[];
12
+ /** Every metric the panels record (inputs) or read (local queries). */
13
+ metrics: string[];
14
+ }
15
+ /**
16
+ * The top-level panels at `indices` as a snippet. A row brings the panels under it, down to the
17
+ * next row; a collapsed row already holds them. Ids go, positions become relative to the block.
18
+ */
19
+ export declare function copyPanels(dashboard: Dashboard, indices: number[]): PanelSnippet;
20
+ /**
21
+ * Reads clipboard text as a snippet: a snippet itself, one Grafana panel, an array of panels, or
22
+ * a whole dashboard (its panels and variables). Positions, ids, variables and metrics are worked
23
+ * out again from the panels, so hand-edited or foreign JSON comes out consistent.
24
+ */
25
+ export declare function parseSnippet(text: string): {
26
+ snippet: PanelSnippet;
27
+ } | {
28
+ error: string;
29
+ };
30
+ export interface PasteOptions {
31
+ /** Put the block under this top-level panel; otherwise at the bottom. */
32
+ after?: number | null;
33
+ /** Metrics to rename on the way in, e.g. { weight: 'body-weight' }. */
34
+ metrics?: Record<string, string>;
35
+ /** What's being pasted into. Inputs only go into forms. Defaults to a form if it has inputs. */
36
+ kind?: 'form' | 'dashboard';
37
+ }
38
+ export interface PasteResult {
39
+ panels: Panel[];
40
+ /** The dashboard's variables after the paste. */
41
+ variables: TemplateVariable[];
42
+ /** Index in `panels` of the first pasted panel; the rest follow it. */
43
+ index: number;
44
+ /** How many top-level panels were pasted. */
45
+ count: number;
46
+ /** Variables the dashboard didn't have, by name as added. */
47
+ added: string[];
48
+ /** Variables added under a new name because the dashboard has a different one of the same name. */
49
+ renamed: Record<string, string>;
50
+ /** Titles of panels left out: inputs going into a dashboard. */
51
+ skipped: string[];
52
+ }
53
+ /** What a paste would add and rename, without doing it: for asking first. */
54
+ export declare function previewPaste(dashboard: Dashboard, snippet: PanelSnippet): {
55
+ added: string[];
56
+ renamed: Record<string, string>;
57
+ };
58
+ /**
59
+ * Drops a snippet into a dashboard: fresh ids, metrics renamed per `options.metrics`, variables
60
+ * added (or added under a new name where one of the same name differs), and the block placed as
61
+ * a unit under `options.after` or at the bottom, with the panels below moving down. Pasted
62
+ * panels go at the end of the panels array, so the rest of the file stays as it is.
63
+ */
64
+ export declare function pasteSnippet(dashboard: Dashboard, snippet: PanelSnippet, options?: PasteOptions): PasteResult;