@modelform/react-native 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/dist/{chunk-QIBL3YUL.js → chunk-FBZDJWT2.js} +359 -294
- package/dist/{chunk-AQO56KS2.mjs → chunk-KOCUG6GH.mjs} +358 -293
- package/dist/core/index.js +4 -2
- package/dist/core/index.mjs +3 -1
- package/dist/core/inputs.d.ts +6 -1
- package/dist/core/manifest.d.ts +4 -1
- package/dist/core/schema.d.ts +8 -1
- package/dist/index.js +157 -155
- package/dist/index.mjs +3 -1
- package/package.json +1 -1
- package/schema/dashboard.schema.json +12 -1
package/dist/core/index.js
CHANGED
|
@@ -221,8 +221,8 @@
|
|
|
221
221
|
|
|
222
222
|
|
|
223
223
|
|
|
224
|
-
var _chunkQIBL3YULjs = require('../chunk-QIBL3YUL.js');
|
|
225
224
|
|
|
225
|
+
var _chunkFBZDJWT2js = require('../chunk-FBZDJWT2.js');
|
|
226
226
|
|
|
227
227
|
|
|
228
228
|
|
|
@@ -445,4 +445,6 @@ var _chunkQIBL3YULjs = require('../chunk-QIBL3YUL.js');
|
|
|
445
445
|
|
|
446
446
|
|
|
447
447
|
|
|
448
|
-
exports.ALL = _chunkQIBL3YULjs.ALL; exports.BUNDLE_ACCEPT = _chunkQIBL3YULjs.BUNDLE_ACCEPT; exports.BUNDLE_TYPE = _chunkQIBL3YULjs.BUNDLE_TYPE; exports.CANVAS_GAP = _chunkQIBL3YULjs.CANVAS_GAP; exports.CANVAS_ROW_HEADER = _chunkQIBL3YULjs.CANVAS_ROW_HEADER; exports.ConfigLoader = _chunkQIBL3YULjs.ConfigLoader; exports.DASHBOARD_DS = _chunkQIBL3YULjs.DASHBOARD_DS; exports.DEFAULT_GAZETTEER = _chunkQIBL3YULjs.DEFAULT_GAZETTEER; exports.EDITABLE_VARIABLE_TYPES = _chunkQIBL3YULjs.EDITABLE_VARIABLE_TYPES; exports.GRID_COLUMNS = _chunkQIBL3YULjs.GRID_COLUMNS; exports.GROUP_FIELD_TYPES = _chunkQIBL3YULjs.GROUP_FIELD_TYPES; exports.GrafanaClient = _chunkQIBL3YULjs.GrafanaClient; exports.GrafanaDataSource = _chunkQIBL3YULjs.GrafanaDataSource; exports.GrafanaError = _chunkQIBL3YULjs.GrafanaError; exports.HttpConfigFiles = _chunkQIBL3YULjs.HttpConfigFiles; exports.INPUT_GROUP = _chunkQIBL3YULjs.INPUT_GROUP; exports.INPUT_OPTION_KEYS = _chunkQIBL3YULjs.INPUT_OPTION_KEYS; exports.INPUT_TYPES = _chunkQIBL3YULjs.INPUT_TYPES; exports.LOCAL_DATASOURCE_TYPE = _chunkQIBL3YULjs.LOCAL_DATASOURCE_TYPE; exports.LocalDataSource = _chunkQIBL3YULjs.LocalDataSource; exports.MANIFEST_VERSION = _chunkQIBL3YULjs.MANIFEST_VERSION; exports.MAPPING_TYPES = _chunkQIBL3YULjs.MAPPING_TYPES; exports.MemoryEntryStore = _chunkQIBL3YULjs.MemoryEntryStore; exports.NAMED_COLORS = _chunkQIBL3YULjs.NAMED_COLORS; exports.OPTION_CATEGORIES = _chunkQIBL3YULjs.OPTION_CATEGORIES; exports.OVERRIDE_MATCHERS = _chunkQIBL3YULjs.OVERRIDE_MATCHERS; exports.PANEL_TYPES = _chunkQIBL3YULjs.PANEL_TYPES; exports.REDUCER_LABELS = _chunkQIBL3YULjs.REDUCER_LABELS; exports.REFRESH_CHOICES = _chunkQIBL3YULjs.REFRESH_CHOICES; exports.RELATIVE_RANGES = _chunkQIBL3YULjs.RELATIVE_RANGES; exports.SERIES_PALETTE = _chunkQIBL3YULjs.SERIES_PALETTE; exports.SNIPPET_VERSION = _chunkQIBL3YULjs.SNIPPET_VERSION; exports.SPECIAL_MATCHES = _chunkQIBL3YULjs.SPECIAL_MATCHES; exports.SaveConflictError = _chunkQIBL3YULjs.SaveConflictError; exports.TEMPLATE_VERSION = _chunkQIBL3YULjs.TEMPLATE_VERSION; exports.TIME_PRESETS = _chunkQIBL3YULjs.TIME_PRESETS; exports.UNIT_CHOICES = _chunkQIBL3YULjs.UNIT_CHOICES; exports.addTime = _chunkQIBL3YULjs.addTime; exports.appSchema = _chunkQIBL3YULjs.appSchema; exports.applyDashboardLink = _chunkQIBL3YULjs.applyDashboardLink; exports.applyJsonEdits = _chunkQIBL3YULjs.applyJsonEdits; exports.applyTemplate = _chunkQIBL3YULjs.applyTemplate; exports.applyTransformations = _chunkQIBL3YULjs.applyTransformations; exports.assembleBundle = _chunkQIBL3YULjs.assembleBundle; exports.assembleFromResponse = _chunkQIBL3YULjs.assembleFromResponse; exports.buildFrames = _chunkQIBL3YULjs.buildFrames; exports.bundleFromFiles = _chunkQIBL3YULjs.bundleFromFiles; exports.bundleRoot = _chunkQIBL3YULjs.bundleRoot; exports.calculateInterval = _chunkQIBL3YULjs.calculateInterval; exports.checkFiles = _chunkQIBL3YULjs.checkFiles; exports.cleanDashboard = _chunkQIBL3YULjs.cleanDashboard; exports.cleanPanelOptions = _chunkQIBL3YULjs.cleanPanelOptions; exports.collapseRow = _chunkQIBL3YULjs.collapseRow; exports.compactGrid = _chunkQIBL3YULjs.compactGrid; exports.copyPanels = _chunkQIBL3YULjs.copyPanels; exports.dashboardSchema = _chunkQIBL3YULjs.dashboardSchema; exports.dashboardSchemaIssues = _chunkQIBL3YULjs.dashboardSchemaIssues; exports.dashboardSourceIds = _chunkQIBL3YULjs.dashboardSourceIds; exports.defaultFetchJson = _chunkQIBL3YULjs.defaultFetchJson; exports.describeRange = _chunkQIBL3YULjs.describeRange; exports.diffJson = _chunkQIBL3YULjs.diffJson; exports.documentIdFor = _chunkQIBL3YULjs.documentIdFor; exports.documentUses = _chunkQIBL3YULjs.documentUses; exports.dropTarget = _chunkQIBL3YULjs.dropTarget; exports.duplicatePanel = _chunkQIBL3YULjs.duplicatePanel; exports.entriesSavedWith = _chunkQIBL3YULjs.entriesSavedWith; exports.entriesToItems = _chunkQIBL3YULjs.entriesToItems; exports.entryToInputValue = _chunkQIBL3YULjs.entryToInputValue; exports.expandRow = _chunkQIBL3YULjs.expandRow; exports.fetchBundle = _chunkQIBL3YULjs.fetchBundle; exports.fetchJsonWithToken = _chunkQIBL3YULjs.fetchJsonWithToken; exports.fieldDisplayName = _chunkQIBL3YULjs.fieldDisplayName; exports.fieldMatches = _chunkQIBL3YULjs.fieldMatches; exports.formatClock = _chunkQIBL3YULjs.formatClock; exports.formatDisplay = _chunkQIBL3YULjs.formatDisplay; exports.formatDuration = _chunkQIBL3YULjs.formatDuration; exports.formatJsonText = _chunkQIBL3YULjs.formatJsonText; exports.formatLocalDateTime = _chunkQIBL3YULjs.formatLocalDateTime; exports.formatValue = _chunkQIBL3YULjs.formatValue; exports.frameLength = _chunkQIBL3YULjs.frameLength; exports.framesToOptions = _chunkQIBL3YULjs.framesToOptions; exports.fromWire = _chunkQIBL3YULjs.fromWire; exports.getPath = _chunkQIBL3YULjs.getPath; exports.gridOffsetPx = _chunkQIBL3YULjs.gridOffsetPx; exports.gridUnitsToPx = _chunkQIBL3YULjs.gridUnitsToPx; exports.groupField = _chunkQIBL3YULjs.groupField; exports.groupFields = _chunkQIBL3YULjs.groupFields; exports.groupProblems = _chunkQIBL3YULjs.groupProblems; exports.groupToEntries = _chunkQIBL3YULjs.groupToEntries; exports.httpFetchJson = _chunkQIBL3YULjs.httpFetchJson; exports.initialVariableValues = _chunkQIBL3YULjs.initialVariableValues; exports.inputGroups = _chunkQIBL3YULjs.inputGroups; exports.inputPanels = _chunkQIBL3YULjs.inputPanels; exports.inputProblem = _chunkQIBL3YULjs.inputProblem; exports.insertPanel = _chunkQIBL3YULjs.insertPanel; exports.interpolate = _chunkQIBL3YULjs.interpolate; exports.interpolateDeep = _chunkQIBL3YULjs.interpolateDeep; exports.isBundleResponse = _chunkQIBL3YULjs.isBundleResponse; exports.isEditableVariableType = _chunkQIBL3YULjs.isEditableVariableType; exports.isEmptyItem = _chunkQIBL3YULjs.isEmptyItem; exports.isFormPanelType = _chunkQIBL3YULjs.isFormPanelType; exports.isInputGroup = _chunkQIBL3YULjs.isInputGroup; exports.isInputPanel = _chunkQIBL3YULjs.isInputPanel; exports.isInputType = _chunkQIBL3YULjs.isInputType; exports.isLocalDatasource = _chunkQIBL3YULjs.isLocalDatasource; exports.isReducer = _chunkQIBL3YULjs.isReducer; exports.isRow = _chunkQIBL3YULjs.isRow; exports.isSqlDatasource = _chunkQIBL3YULjs.isSqlDatasource; exports.layoutCanvas = _chunkQIBL3YULjs.layoutCanvas; exports.layoutDashboard = _chunkQIBL3YULjs.layoutDashboard; exports.lineColumn = _chunkQIBL3YULjs.lineColumn; exports.loadGazetteer = _chunkQIBL3YULjs.loadGazetteer; exports.locate = _chunkQIBL3YULjs.locate; exports.makeTemplate = _chunkQIBL3YULjs.makeTemplate; exports.manifestSchemaIssues = _chunkQIBL3YULjs.manifestSchemaIssues; exports.mappedResult = _chunkQIBL3YULjs.mappedResult; exports.mappingProblem = _chunkQIBL3YULjs.mappingProblem; exports.mappingRow = _chunkQIBL3YULjs.mappingRow; exports.mappingRows = _chunkQIBL3YULjs.mappingRows; exports.metricChanges = _chunkQIBL3YULjs.metricChanges; exports.movePanel = _chunkQIBL3YULjs.movePanel; exports.newDocument = _chunkQIBL3YULjs.newDocument; exports.newPanel = _chunkQIBL3YULjs.newPanel; exports.newSaveId = _chunkQIBL3YULjs.newSaveId; exports.newVariable = _chunkQIBL3YULjs.newVariable; exports.nextPanelId = _chunkQIBL3YULjs.nextPanelId; exports.normalizeRef = _chunkQIBL3YULjs.normalizeRef; exports.numberFields = _chunkQIBL3YULjs.numberFields; exports.optionValue = _chunkQIBL3YULjs.optionValue; exports.overrideProperties = _chunkQIBL3YULjs.overrideProperties; exports.panelEdits = _chunkQIBL3YULjs.panelEdits; exports.panelHasQueries = _chunkQIBL3YULjs.panelHasQueries; exports.panelKey = _chunkQIBL3YULjs.panelKey; exports.panelMetrics = _chunkQIBL3YULjs.panelMetrics; exports.panelOptions = _chunkQIBL3YULjs.panelOptions; exports.panelOverrides = _chunkQIBL3YULjs.panelOverrides; exports.panelSize = _chunkQIBL3YULjs.panelSize; exports.panelSpan = _chunkQIBL3YULjs.panelSpan; exports.parseClockDigits = _chunkQIBL3YULjs.parseClockDigits; exports.parseDashboardLink = _chunkQIBL3YULjs.parseDashboardLink; exports.parseDuration = _chunkQIBL3YULjs.parseDuration; exports.parseGazetteer = _chunkQIBL3YULjs.parseGazetteer; exports.parseJsonText = _chunkQIBL3YULjs.parseJsonText; exports.parseLocalDateTime = _chunkQIBL3YULjs.parseLocalDateTime; exports.parseRange = _chunkQIBL3YULjs.parseRange; exports.parseSnippet = _chunkQIBL3YULjs.parseSnippet; exports.parseTemplate = _chunkQIBL3YULjs.parseTemplate; exports.parseTime = _chunkQIBL3YULjs.parseTime; exports.pasteSnippet = _chunkQIBL3YULjs.pasteSnippet; exports.placePanel = _chunkQIBL3YULjs.placePanel; exports.plainInputPanels = _chunkQIBL3YULjs.plainInputPanels; exports.pointerToPath = _chunkQIBL3YULjs.pointerToPath; exports.prepareDashboard = _chunkQIBL3YULjs.prepareDashboard; exports.previewPaste = _chunkQIBL3YULjs.previewPaste; exports.queryPanel = _chunkQIBL3YULjs.queryPanel; exports.queryParam = _chunkQIBL3YULjs.queryParam; exports.readConfigFiles = _chunkQIBL3YULjs.readConfigFiles; exports.readingOrder = _chunkQIBL3YULjs.readingOrder; exports.reduce = _chunkQIBL3YULjs.reduce; exports.refineOptions = _chunkQIBL3YULjs.refineOptions; exports.refreshedVariables = _chunkQIBL3YULjs.refreshedVariables; exports.removeDocumentFromManifest = _chunkQIBL3YULjs.removeDocumentFromManifest; exports.removePanel = _chunkQIBL3YULjs.removePanel; exports.renameDocumentInManifest = _chunkQIBL3YULjs.renameDocumentInManifest; exports.renameMetrics = _chunkQIBL3YULjs.renameMetrics; exports.renameVariableInPanels = _chunkQIBL3YULjs.renameVariableInPanels; exports.repack = _chunkQIBL3YULjs.repack; exports.repeatOptions = _chunkQIBL3YULjs.repeatOptions; exports.resizePanel = _chunkQIBL3YULjs.resizePanel; exports.resolveColor = _chunkQIBL3YULjs.resolveColor; exports.resolveFieldConfig = _chunkQIBL3YULjs.resolveFieldConfig; exports.resolveLinks = _chunkQIBL3YULjs.resolveLinks; exports.resolveTimezone = _chunkQIBL3YULjs.resolveTimezone; exports.resolveUrl = _chunkQIBL3YULjs.resolveUrl; exports.resolveVariables = _chunkQIBL3YULjs.resolveVariables; exports.revalidateBundle = _chunkQIBL3YULjs.revalidateBundle; exports.rowsToMappings = _chunkQIBL3YULjs.rowsToMappings; exports.sameSave = _chunkQIBL3YULjs.sameSave; exports.sampleEntries = _chunkQIBL3YULjs.sampleEntries; exports.screenDocuments = _chunkQIBL3YULjs.screenDocuments; exports.screenOfType = _chunkQIBL3YULjs.screenOfType; exports.selectValue = _chunkQIBL3YULjs.selectValue; exports.seriesColor = _chunkQIBL3YULjs.seriesColor; exports.setHiddenOnPhones = _chunkQIBL3YULjs.setHiddenOnPhones; exports.setJsonValue = _chunkQIBL3YULjs.setJsonValue; exports.setOption = _chunkQIBL3YULjs.setOption; exports.setOptionValue = _chunkQIBL3YULjs.setOptionValue; exports.setOverrides = _chunkQIBL3YULjs.setOverrides; exports.settleLayout = _chunkQIBL3YULjs.settleLayout; exports.snapToGrid = _chunkQIBL3YULjs.snapToGrid; exports.splitPath = _chunkQIBL3YULjs.splitPath; exports.startOf = _chunkQIBL3YULjs.startOf; exports.stringifyCompact = _chunkQIBL3YULjs.stringifyCompact; exports.tabIdFor = _chunkQIBL3YULjs.tabIdFor; exports.templateNeeds = _chunkQIBL3YULjs.templateNeeds; exports.textSuggestions = _chunkQIBL3YULjs.textSuggestions; exports.thresholdStep = _chunkQIBL3YULjs.thresholdStep; exports.timeExprError = _chunkQIBL3YULjs.timeExprError; exports.timeField = _chunkQIBL3YULjs.timeField; exports.toEntries = _chunkQIBL3YULjs.toEntries; exports.toMillis = _chunkQIBL3YULjs.toMillis; exports.toSeries = _chunkQIBL3YULjs.toSeries; exports.toXYSeries = _chunkQIBL3YULjs.toXYSeries; exports.uniqueNames = _chunkQIBL3YULjs.uniqueNames; exports.validateBundle = _chunkQIBL3YULjs.validateBundle; exports.validateDashboard = _chunkQIBL3YULjs.validateDashboard; exports.validateManifest = _chunkQIBL3YULjs.validateManifest; exports.valueColor = _chunkQIBL3YULjs.valueColor; exports.valueText = _chunkQIBL3YULjs.valueText; exports.variableDependents = _chunkQIBL3YULjs.variableDependents; exports.variableInfo = _chunkQIBL3YULjs.variableInfo; exports.variableNameError = _chunkQIBL3YULjs.variableNameError; exports.variableOptions = _chunkQIBL3YULjs.variableOptions; exports.variableOrder = _chunkQIBL3YULjs.variableOrder; exports.variableReferences = _chunkQIBL3YULjs.variableReferences; exports.variableUses = _chunkQIBL3YULjs.variableUses; exports.variableWithCurrent = _chunkQIBL3YULjs.variableWithCurrent; exports.variableWithFlags = _chunkQIBL3YULjs.variableWithFlags; exports.variableWithQuery = _chunkQIBL3YULjs.variableWithQuery; exports.variableWithType = _chunkQIBL3YULjs.variableWithType; exports.visibleVariables = _chunkQIBL3YULjs.visibleVariables; exports.zoomRange = _chunkQIBL3YULjs.zoomRange;
|
|
448
|
+
|
|
449
|
+
|
|
450
|
+
exports.ALL = _chunkFBZDJWT2js.ALL; exports.BUNDLE_ACCEPT = _chunkFBZDJWT2js.BUNDLE_ACCEPT; exports.BUNDLE_TYPE = _chunkFBZDJWT2js.BUNDLE_TYPE; exports.CANVAS_GAP = _chunkFBZDJWT2js.CANVAS_GAP; exports.CANVAS_ROW_HEADER = _chunkFBZDJWT2js.CANVAS_ROW_HEADER; exports.ConfigLoader = _chunkFBZDJWT2js.ConfigLoader; exports.DASHBOARD_DS = _chunkFBZDJWT2js.DASHBOARD_DS; exports.DEFAULT_GAZETTEER = _chunkFBZDJWT2js.DEFAULT_GAZETTEER; exports.EDITABLE_VARIABLE_TYPES = _chunkFBZDJWT2js.EDITABLE_VARIABLE_TYPES; exports.GRID_COLUMNS = _chunkFBZDJWT2js.GRID_COLUMNS; exports.GROUP_FIELD_TYPES = _chunkFBZDJWT2js.GROUP_FIELD_TYPES; exports.GrafanaClient = _chunkFBZDJWT2js.GrafanaClient; exports.GrafanaDataSource = _chunkFBZDJWT2js.GrafanaDataSource; exports.GrafanaError = _chunkFBZDJWT2js.GrafanaError; exports.HttpConfigFiles = _chunkFBZDJWT2js.HttpConfigFiles; exports.INPUT_GROUP = _chunkFBZDJWT2js.INPUT_GROUP; exports.INPUT_OPTION_KEYS = _chunkFBZDJWT2js.INPUT_OPTION_KEYS; exports.INPUT_TYPES = _chunkFBZDJWT2js.INPUT_TYPES; exports.LOCAL_DATASOURCE_TYPE = _chunkFBZDJWT2js.LOCAL_DATASOURCE_TYPE; exports.LocalDataSource = _chunkFBZDJWT2js.LocalDataSource; exports.MANIFEST_VERSION = _chunkFBZDJWT2js.MANIFEST_VERSION; exports.MAPPING_TYPES = _chunkFBZDJWT2js.MAPPING_TYPES; exports.MemoryEntryStore = _chunkFBZDJWT2js.MemoryEntryStore; exports.NAMED_COLORS = _chunkFBZDJWT2js.NAMED_COLORS; exports.OPTION_CATEGORIES = _chunkFBZDJWT2js.OPTION_CATEGORIES; exports.OVERRIDE_MATCHERS = _chunkFBZDJWT2js.OVERRIDE_MATCHERS; exports.PANEL_TYPES = _chunkFBZDJWT2js.PANEL_TYPES; exports.REDUCER_LABELS = _chunkFBZDJWT2js.REDUCER_LABELS; exports.REFRESH_CHOICES = _chunkFBZDJWT2js.REFRESH_CHOICES; exports.RELATIVE_RANGES = _chunkFBZDJWT2js.RELATIVE_RANGES; exports.SERIES_PALETTE = _chunkFBZDJWT2js.SERIES_PALETTE; exports.SNIPPET_VERSION = _chunkFBZDJWT2js.SNIPPET_VERSION; exports.SPECIAL_MATCHES = _chunkFBZDJWT2js.SPECIAL_MATCHES; exports.SaveConflictError = _chunkFBZDJWT2js.SaveConflictError; exports.TEMPLATE_VERSION = _chunkFBZDJWT2js.TEMPLATE_VERSION; exports.TIME_PRESETS = _chunkFBZDJWT2js.TIME_PRESETS; exports.UNIT_CHOICES = _chunkFBZDJWT2js.UNIT_CHOICES; exports.addTime = _chunkFBZDJWT2js.addTime; exports.appSchema = _chunkFBZDJWT2js.appSchema; exports.applyDashboardLink = _chunkFBZDJWT2js.applyDashboardLink; exports.applyJsonEdits = _chunkFBZDJWT2js.applyJsonEdits; exports.applyTemplate = _chunkFBZDJWT2js.applyTemplate; exports.applyTransformations = _chunkFBZDJWT2js.applyTransformations; exports.assembleBundle = _chunkFBZDJWT2js.assembleBundle; exports.assembleFromResponse = _chunkFBZDJWT2js.assembleFromResponse; exports.buildFrames = _chunkFBZDJWT2js.buildFrames; exports.bundleFromFiles = _chunkFBZDJWT2js.bundleFromFiles; exports.bundleRoot = _chunkFBZDJWT2js.bundleRoot; exports.calculateInterval = _chunkFBZDJWT2js.calculateInterval; exports.checkFiles = _chunkFBZDJWT2js.checkFiles; exports.cleanDashboard = _chunkFBZDJWT2js.cleanDashboard; exports.cleanPanelOptions = _chunkFBZDJWT2js.cleanPanelOptions; exports.collapseRow = _chunkFBZDJWT2js.collapseRow; exports.compactGrid = _chunkFBZDJWT2js.compactGrid; exports.copyPanels = _chunkFBZDJWT2js.copyPanels; exports.dashboardSchema = _chunkFBZDJWT2js.dashboardSchema; exports.dashboardSchemaIssues = _chunkFBZDJWT2js.dashboardSchemaIssues; exports.dashboardSourceIds = _chunkFBZDJWT2js.dashboardSourceIds; exports.defaultFetchJson = _chunkFBZDJWT2js.defaultFetchJson; exports.describeRange = _chunkFBZDJWT2js.describeRange; exports.diffJson = _chunkFBZDJWT2js.diffJson; exports.documentIdFor = _chunkFBZDJWT2js.documentIdFor; exports.documentKind = _chunkFBZDJWT2js.documentKind; exports.documentUses = _chunkFBZDJWT2js.documentUses; exports.dropTarget = _chunkFBZDJWT2js.dropTarget; exports.duplicatePanel = _chunkFBZDJWT2js.duplicatePanel; exports.entriesSavedWith = _chunkFBZDJWT2js.entriesSavedWith; exports.entriesToItems = _chunkFBZDJWT2js.entriesToItems; exports.entryToInputValue = _chunkFBZDJWT2js.entryToInputValue; exports.expandRow = _chunkFBZDJWT2js.expandRow; exports.fetchBundle = _chunkFBZDJWT2js.fetchBundle; exports.fetchJsonWithToken = _chunkFBZDJWT2js.fetchJsonWithToken; exports.fieldDisplayName = _chunkFBZDJWT2js.fieldDisplayName; exports.fieldMatches = _chunkFBZDJWT2js.fieldMatches; exports.formatClock = _chunkFBZDJWT2js.formatClock; exports.formatDisplay = _chunkFBZDJWT2js.formatDisplay; exports.formatDuration = _chunkFBZDJWT2js.formatDuration; exports.formatJsonText = _chunkFBZDJWT2js.formatJsonText; exports.formatLocalDateTime = _chunkFBZDJWT2js.formatLocalDateTime; exports.formatValue = _chunkFBZDJWT2js.formatValue; exports.frameLength = _chunkFBZDJWT2js.frameLength; exports.framesToOptions = _chunkFBZDJWT2js.framesToOptions; exports.fromWire = _chunkFBZDJWT2js.fromWire; exports.getPath = _chunkFBZDJWT2js.getPath; exports.gridOffsetPx = _chunkFBZDJWT2js.gridOffsetPx; exports.gridUnitsToPx = _chunkFBZDJWT2js.gridUnitsToPx; exports.groupField = _chunkFBZDJWT2js.groupField; exports.groupFields = _chunkFBZDJWT2js.groupFields; exports.groupProblems = _chunkFBZDJWT2js.groupProblems; exports.groupToEntries = _chunkFBZDJWT2js.groupToEntries; exports.httpFetchJson = _chunkFBZDJWT2js.httpFetchJson; exports.initialVariableValues = _chunkFBZDJWT2js.initialVariableValues; exports.inputGroups = _chunkFBZDJWT2js.inputGroups; exports.inputPanels = _chunkFBZDJWT2js.inputPanels; exports.inputProblem = _chunkFBZDJWT2js.inputProblem; exports.insertPanel = _chunkFBZDJWT2js.insertPanel; exports.interpolate = _chunkFBZDJWT2js.interpolate; exports.interpolateDeep = _chunkFBZDJWT2js.interpolateDeep; exports.isBundleResponse = _chunkFBZDJWT2js.isBundleResponse; exports.isEditableVariableType = _chunkFBZDJWT2js.isEditableVariableType; exports.isEmptyItem = _chunkFBZDJWT2js.isEmptyItem; exports.isFormPanelType = _chunkFBZDJWT2js.isFormPanelType; exports.isInputGroup = _chunkFBZDJWT2js.isInputGroup; exports.isInputPanel = _chunkFBZDJWT2js.isInputPanel; exports.isInputType = _chunkFBZDJWT2js.isInputType; exports.isLocalDatasource = _chunkFBZDJWT2js.isLocalDatasource; exports.isReducer = _chunkFBZDJWT2js.isReducer; exports.isRow = _chunkFBZDJWT2js.isRow; exports.isSqlDatasource = _chunkFBZDJWT2js.isSqlDatasource; exports.layoutCanvas = _chunkFBZDJWT2js.layoutCanvas; exports.layoutDashboard = _chunkFBZDJWT2js.layoutDashboard; exports.lineColumn = _chunkFBZDJWT2js.lineColumn; exports.loadGazetteer = _chunkFBZDJWT2js.loadGazetteer; exports.locate = _chunkFBZDJWT2js.locate; exports.makeTemplate = _chunkFBZDJWT2js.makeTemplate; exports.manifestSchemaIssues = _chunkFBZDJWT2js.manifestSchemaIssues; exports.mappedResult = _chunkFBZDJWT2js.mappedResult; exports.mappingProblem = _chunkFBZDJWT2js.mappingProblem; exports.mappingRow = _chunkFBZDJWT2js.mappingRow; exports.mappingRows = _chunkFBZDJWT2js.mappingRows; exports.metricChanges = _chunkFBZDJWT2js.metricChanges; exports.movePanel = _chunkFBZDJWT2js.movePanel; exports.newDocument = _chunkFBZDJWT2js.newDocument; exports.newPanel = _chunkFBZDJWT2js.newPanel; exports.newSaveId = _chunkFBZDJWT2js.newSaveId; exports.newVariable = _chunkFBZDJWT2js.newVariable; exports.nextPanelId = _chunkFBZDJWT2js.nextPanelId; exports.normalizeRef = _chunkFBZDJWT2js.normalizeRef; exports.numberFields = _chunkFBZDJWT2js.numberFields; exports.optionValue = _chunkFBZDJWT2js.optionValue; exports.overrideProperties = _chunkFBZDJWT2js.overrideProperties; exports.panelEdits = _chunkFBZDJWT2js.panelEdits; exports.panelHasQueries = _chunkFBZDJWT2js.panelHasQueries; exports.panelKey = _chunkFBZDJWT2js.panelKey; exports.panelMetrics = _chunkFBZDJWT2js.panelMetrics; exports.panelOptions = _chunkFBZDJWT2js.panelOptions; exports.panelOverrides = _chunkFBZDJWT2js.panelOverrides; exports.panelSize = _chunkFBZDJWT2js.panelSize; exports.panelSpan = _chunkFBZDJWT2js.panelSpan; exports.parseClockDigits = _chunkFBZDJWT2js.parseClockDigits; exports.parseDashboardLink = _chunkFBZDJWT2js.parseDashboardLink; exports.parseDuration = _chunkFBZDJWT2js.parseDuration; exports.parseGazetteer = _chunkFBZDJWT2js.parseGazetteer; exports.parseJsonText = _chunkFBZDJWT2js.parseJsonText; exports.parseLocalDateTime = _chunkFBZDJWT2js.parseLocalDateTime; exports.parseRange = _chunkFBZDJWT2js.parseRange; exports.parseSnippet = _chunkFBZDJWT2js.parseSnippet; exports.parseTemplate = _chunkFBZDJWT2js.parseTemplate; exports.parseTime = _chunkFBZDJWT2js.parseTime; exports.pasteSnippet = _chunkFBZDJWT2js.pasteSnippet; exports.placePanel = _chunkFBZDJWT2js.placePanel; exports.plainInputPanels = _chunkFBZDJWT2js.plainInputPanels; exports.pointerToPath = _chunkFBZDJWT2js.pointerToPath; exports.prepareDashboard = _chunkFBZDJWT2js.prepareDashboard; exports.previewPaste = _chunkFBZDJWT2js.previewPaste; exports.queryPanel = _chunkFBZDJWT2js.queryPanel; exports.queryParam = _chunkFBZDJWT2js.queryParam; exports.readConfigFiles = _chunkFBZDJWT2js.readConfigFiles; exports.readingOrder = _chunkFBZDJWT2js.readingOrder; exports.reduce = _chunkFBZDJWT2js.reduce; exports.refineOptions = _chunkFBZDJWT2js.refineOptions; exports.refreshedVariables = _chunkFBZDJWT2js.refreshedVariables; exports.removeDocumentFromManifest = _chunkFBZDJWT2js.removeDocumentFromManifest; exports.removePanel = _chunkFBZDJWT2js.removePanel; exports.renameDocumentInManifest = _chunkFBZDJWT2js.renameDocumentInManifest; exports.renameMetrics = _chunkFBZDJWT2js.renameMetrics; exports.renameVariableInPanels = _chunkFBZDJWT2js.renameVariableInPanels; exports.repack = _chunkFBZDJWT2js.repack; exports.repeatOptions = _chunkFBZDJWT2js.repeatOptions; exports.resizePanel = _chunkFBZDJWT2js.resizePanel; exports.resolveColor = _chunkFBZDJWT2js.resolveColor; exports.resolveFieldConfig = _chunkFBZDJWT2js.resolveFieldConfig; exports.resolveLinks = _chunkFBZDJWT2js.resolveLinks; exports.resolveTimezone = _chunkFBZDJWT2js.resolveTimezone; exports.resolveUrl = _chunkFBZDJWT2js.resolveUrl; exports.resolveVariables = _chunkFBZDJWT2js.resolveVariables; exports.revalidateBundle = _chunkFBZDJWT2js.revalidateBundle; exports.rowsToMappings = _chunkFBZDJWT2js.rowsToMappings; exports.sameSave = _chunkFBZDJWT2js.sameSave; exports.sampleEntries = _chunkFBZDJWT2js.sampleEntries; exports.screenDocuments = _chunkFBZDJWT2js.screenDocuments; exports.screenOfType = _chunkFBZDJWT2js.screenOfType; exports.selectValue = _chunkFBZDJWT2js.selectValue; exports.seriesColor = _chunkFBZDJWT2js.seriesColor; exports.setHiddenOnPhones = _chunkFBZDJWT2js.setHiddenOnPhones; exports.setJsonValue = _chunkFBZDJWT2js.setJsonValue; exports.setOption = _chunkFBZDJWT2js.setOption; exports.setOptionValue = _chunkFBZDJWT2js.setOptionValue; exports.setOverrides = _chunkFBZDJWT2js.setOverrides; exports.settleLayout = _chunkFBZDJWT2js.settleLayout; exports.snapToGrid = _chunkFBZDJWT2js.snapToGrid; exports.splitPath = _chunkFBZDJWT2js.splitPath; exports.startOf = _chunkFBZDJWT2js.startOf; exports.stringifyCompact = _chunkFBZDJWT2js.stringifyCompact; exports.tabIdFor = _chunkFBZDJWT2js.tabIdFor; exports.templateNeeds = _chunkFBZDJWT2js.templateNeeds; exports.textSuggestions = _chunkFBZDJWT2js.textSuggestions; exports.thresholdStep = _chunkFBZDJWT2js.thresholdStep; exports.timeExprError = _chunkFBZDJWT2js.timeExprError; exports.timeField = _chunkFBZDJWT2js.timeField; exports.toEntries = _chunkFBZDJWT2js.toEntries; exports.toMillis = _chunkFBZDJWT2js.toMillis; exports.toSeries = _chunkFBZDJWT2js.toSeries; exports.toXYSeries = _chunkFBZDJWT2js.toXYSeries; exports.uniqueNames = _chunkFBZDJWT2js.uniqueNames; exports.validateBundle = _chunkFBZDJWT2js.validateBundle; exports.validateDashboard = _chunkFBZDJWT2js.validateDashboard; exports.validateManifest = _chunkFBZDJWT2js.validateManifest; exports.valueColor = _chunkFBZDJWT2js.valueColor; exports.valueText = _chunkFBZDJWT2js.valueText; exports.variableDependents = _chunkFBZDJWT2js.variableDependents; exports.variableInfo = _chunkFBZDJWT2js.variableInfo; exports.variableNameError = _chunkFBZDJWT2js.variableNameError; exports.variableOptions = _chunkFBZDJWT2js.variableOptions; exports.variableOrder = _chunkFBZDJWT2js.variableOrder; exports.variableReferences = _chunkFBZDJWT2js.variableReferences; exports.variableUses = _chunkFBZDJWT2js.variableUses; exports.variableWithCurrent = _chunkFBZDJWT2js.variableWithCurrent; exports.variableWithFlags = _chunkFBZDJWT2js.variableWithFlags; exports.variableWithQuery = _chunkFBZDJWT2js.variableWithQuery; exports.variableWithType = _chunkFBZDJWT2js.variableWithType; exports.visibleVariables = _chunkFBZDJWT2js.visibleVariables; exports.zoomRange = _chunkFBZDJWT2js.zoomRange;
|
package/dist/core/index.mjs
CHANGED
|
@@ -61,6 +61,7 @@ import {
|
|
|
61
61
|
describeRange,
|
|
62
62
|
diffJson,
|
|
63
63
|
documentIdFor,
|
|
64
|
+
documentKind,
|
|
64
65
|
documentUses,
|
|
65
66
|
dropTarget,
|
|
66
67
|
duplicatePanel,
|
|
@@ -221,7 +222,7 @@ import {
|
|
|
221
222
|
variableWithType,
|
|
222
223
|
visibleVariables,
|
|
223
224
|
zoomRange
|
|
224
|
-
} from "../chunk-
|
|
225
|
+
} from "../chunk-KOCUG6GH.mjs";
|
|
225
226
|
export {
|
|
226
227
|
ALL,
|
|
227
228
|
BUNDLE_ACCEPT,
|
|
@@ -285,6 +286,7 @@ export {
|
|
|
285
286
|
describeRange,
|
|
286
287
|
diffJson,
|
|
287
288
|
documentIdFor,
|
|
289
|
+
documentKind,
|
|
288
290
|
documentUses,
|
|
289
291
|
dropTarget,
|
|
290
292
|
duplicatePanel,
|
package/dist/core/inputs.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Dashboard, Panel } from './schema';
|
|
1
|
+
import type { Dashboard, DocumentKind, Panel } from './schema';
|
|
2
2
|
/**
|
|
3
3
|
* Input forms reuse the dashboard format: a form is a dashboard whose panels have
|
|
4
4
|
* `input-*` types. Layout, rows and gridPos work exactly like visualization panels,
|
|
@@ -107,6 +107,11 @@ export declare const GROUP_FIELD_TYPES: ("input-number" | "input-slider" | "inpu
|
|
|
107
107
|
export declare function groupFields(group: InputGroupPanel): InputPanel[];
|
|
108
108
|
/** Every input that records, groups' fields included. */
|
|
109
109
|
export declare function inputPanels(dashboard: Dashboard): InputPanel[];
|
|
110
|
+
/**
|
|
111
|
+
* Whether a document is a form or a dashboard: its `kind` when it states one, otherwise a form
|
|
112
|
+
* if it has inputs. Prefer stating `kind`: a guess changes when a form's last input is removed.
|
|
113
|
+
*/
|
|
114
|
+
export declare function documentKind(dashboard: Partial<Dashboard>): DocumentKind;
|
|
110
115
|
/** The form's input-group panels. */
|
|
111
116
|
export declare function inputGroups(dashboard: Dashboard): InputGroupPanel[];
|
|
112
117
|
/** Inputs outside groups. */
|
package/dist/core/manifest.d.ts
CHANGED
|
@@ -89,7 +89,10 @@ export declare function prepareDashboard(json: unknown, file: string): {
|
|
|
89
89
|
};
|
|
90
90
|
/** The issues `prepareDashboard` would find. */
|
|
91
91
|
export declare function validateDashboard(json: unknown, file: string): ConfigIssue[];
|
|
92
|
-
/**
|
|
92
|
+
/**
|
|
93
|
+
* Cross-checks a loaded bundle: screens must point at documents that exist, forms must have inputs,
|
|
94
|
+
* and a document that states its kind is shown as that kind.
|
|
95
|
+
*/
|
|
93
96
|
export declare function validateBundle(bundle: ConfigBundle, file?: string): ConfigIssue[];
|
|
94
97
|
/**
|
|
95
98
|
* Resolves `rel` against the URL of the file that referenced it. Hand-rolled because
|
package/dist/core/schema.d.ts
CHANGED
|
@@ -3,11 +3,18 @@
|
|
|
3
3
|
* Unknown keys are tolerated and ignored, so dashboards exported from Grafana
|
|
4
4
|
* load as-is. See https://grafana.com/docs/grafana/latest/dashboards/build-dashboards/view-dashboard-json-model/
|
|
5
5
|
*
|
|
6
|
-
* modelform adds
|
|
6
|
+
* modelform adds three extensions, all of which Grafana ignores:
|
|
7
|
+
* - `kind` to say whether the document is a form or a dashboard
|
|
7
8
|
* - `panel.mobile` to tune phone layout per panel
|
|
8
9
|
* - `input-*` panel types for data entry forms (see inputs.ts)
|
|
9
10
|
*/
|
|
11
|
+
export type DocumentKind = 'form' | 'dashboard';
|
|
10
12
|
export interface Dashboard {
|
|
13
|
+
/**
|
|
14
|
+
* Whether this document is a form (for recording entries) or a dashboard (for showing them).
|
|
15
|
+
* Without it, a document with input-* panels counts as a form. See documentKind().
|
|
16
|
+
*/
|
|
17
|
+
kind?: DocumentKind;
|
|
11
18
|
uid?: string;
|
|
12
19
|
title: string;
|
|
13
20
|
description?: string;
|