sqlmesh 0.184.1.dev7__py3-none-any.whl → 0.184.2.dev2__py3-none-any.whl

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.
Files changed (58) hide show
  1. sqlmesh/_version.py +2 -2
  2. sqlmesh/lsp/api.py +9 -1
  3. sqlmesh/lsp/completions.py +5 -4
  4. sqlmesh/lsp/context.py +6 -7
  5. sqlmesh/lsp/main.py +34 -13
  6. sqlmesh/lsp/reference.py +4 -5
  7. {sqlmesh-0.184.1.dev7.dist-info → sqlmesh-0.184.2.dev2.dist-info}/METADATA +1 -1
  8. {sqlmesh-0.184.1.dev7.dist-info → sqlmesh-0.184.2.dev2.dist-info}/RECORD +56 -56
  9. web/client/dist/assets/{Audits-DiRd7NXk.js → Audits-DF7amJxU.js} +1 -1
  10. web/client/dist/assets/{Banner-34lJaqMH.js → Banner-C3VTntGq.js} +1 -1
  11. web/client/dist/assets/{ChevronDownIcon-BEfZMwIq.js → ChevronDownIcon-qm4bu8e3.js} +1 -1
  12. web/client/dist/assets/{ChevronRightIcon-CRtD2F1s.js → ChevronRightIcon-BolEdhGf.js} +1 -1
  13. web/client/dist/assets/{Content-BjziMWy_.js → Content-B6xcwedd.js} +1 -1
  14. web/client/dist/assets/{Content-DPMnGXgB.js → Content-BRVWZ3mb.js} +1 -1
  15. web/client/dist/assets/{Data-Z6F8o2ML.js → Data-Biu-V0fH.js} +1 -1
  16. web/client/dist/assets/{DataCatalog-XvD05neI.js → DataCatalog-B6evo1XW.js} +1 -1
  17. web/client/dist/assets/{Editor-CMra0GR-.js → Editor-CLmFVr2P.js} +1 -1
  18. web/client/dist/assets/{Editor-BBauicI1.js → Editor-CVxCL2-Y.js} +1 -1
  19. web/client/dist/assets/{Errors-BJPVdPAn.js → Errors-oZskb8PG.js} +1 -1
  20. web/client/dist/assets/{FileExplorer-Bcw8Oc1N.js → FileExplorer-CGr1vJjw.js} +1 -1
  21. web/client/dist/assets/{Footer-DkqrnEFk.js → Footer-fJbe0D4K.js} +1 -1
  22. web/client/dist/assets/{Header-Cbp8THC6.js → Header-BH87N9ET.js} +1 -1
  23. web/client/dist/assets/Input-D4nBSMWJ.js +41 -0
  24. web/client/dist/assets/Lineage-CPutJH7u.js +1 -0
  25. web/client/dist/assets/{ListboxShow-CNU6pC5Q.js → ListboxShow-BWNLIBMH.js} +1 -1
  26. web/client/dist/assets/{ModelLineage-BUzz3_b3.js → ModelLineage-c5SOHuSl.js} +1 -1
  27. web/client/dist/assets/{Models-Z7Jpg0H-.js → Models-BNHmcp1o.js} +1 -1
  28. web/client/dist/assets/{Page-B21QE6gQ.js → Page-daP33Ypg.js} +1 -1
  29. web/client/dist/assets/{Plan-D1J9cFla.js → Plan-DUHa3QdG.js} +1 -1
  30. web/client/dist/assets/{PlusCircleIcon-Cl1cWT27.js → PlusCircleIcon-Bk7UCkgh.js} +1 -1
  31. web/client/dist/assets/{ReportErrors-D15tD0Jx.js → ReportErrors-DfzGQ2eY.js} +1 -1
  32. web/client/dist/assets/{Root-CjnodTM-.js → Root-uPpx7ocJ.js} +1 -1
  33. web/client/dist/assets/{SearchList-COHTRb0L.js → SearchList-87imxiuX.js} +1 -1
  34. web/client/dist/assets/{SelectEnvironment-CKRnNDga.js → SelectEnvironment-DRt5ys9a.js} +1 -1
  35. web/client/dist/assets/{SourceList-B1uchtse.js → SourceList-Cfd2Hs4e.js} +1 -1
  36. web/client/dist/assets/{SourceListItem-IbZqPGQ-.js → SourceListItem-Cgi7ENFV.js} +1 -1
  37. web/client/dist/assets/{SplitPane-X49qF_M2.js → SplitPane-p-JrHTOr.js} +1 -1
  38. web/client/dist/assets/{Tests-DlffJtoP.js → Tests-Das-Vk4n.js} +1 -1
  39. web/client/dist/assets/{Welcome-Ba62ssiL.js → Welcome-33aFy-Y-.js} +1 -1
  40. web/client/dist/assets/{context-CvggAi88.js → context-C5ccds54.js} +1 -1
  41. web/client/dist/assets/{context-BvCFukJL.js → context-NpzoJDLp.js} +1 -1
  42. web/client/dist/assets/{editor-BNLMfBQ6.js → editor-B8OcqW2l.js} +1 -1
  43. web/client/dist/assets/{file-DYQzDhLd.js → file-D-wqO8gv.js} +1 -1
  44. web/client/dist/assets/{floating-ui.react-dom-tGq145Jn.js → floating-ui.react-dom-BrhHyVvs.js} +1 -1
  45. web/client/dist/assets/{help-Iv3AQtFM.js → help-CQWPRUV2.js} +1 -1
  46. web/client/dist/assets/{index-DyVIXHW8.js → index-Co-_3xPI.js} +1 -1
  47. web/client/dist/assets/{index-Dafo7IQA.js → index-xGKh539i.js} +1 -1
  48. web/client/dist/assets/{plan-b_STGhUH.js → plan-BIz0iaor.js} +1 -1
  49. web/client/dist/assets/{popover-CViXjwzR.js → popover-BXDPVmB7.js} +1 -1
  50. web/client/dist/assets/{project-DuzSX7Ps.js → project-H8d6rukl.js} +1 -1
  51. web/client/dist/index.html +1 -1
  52. web/server/api/endpoints/lineage.py +1 -1
  53. web/client/dist/assets/Input-ta8tMqGc.js +0 -41
  54. web/client/dist/assets/Lineage-Cq9-RKh4.js +0 -1
  55. {sqlmesh-0.184.1.dev7.dist-info → sqlmesh-0.184.2.dev2.dist-info}/WHEEL +0 -0
  56. {sqlmesh-0.184.1.dev7.dist-info → sqlmesh-0.184.2.dev2.dist-info}/entry_points.txt +0 -0
  57. {sqlmesh-0.184.1.dev7.dist-info → sqlmesh-0.184.2.dev2.dist-info}/licenses/LICENSE +0 -0
  58. {sqlmesh-0.184.1.dev7.dist-info → sqlmesh-0.184.2.dev2.dist-info}/top_level.txt +0 -0
sqlmesh/_version.py CHANGED
@@ -17,5 +17,5 @@ __version__: str
17
17
  __version_tuple__: VERSION_TUPLE
18
18
  version_tuple: VERSION_TUPLE
19
19
 
20
- __version__ = version = '0.184.1.dev7'
21
- __version_tuple__ = version_tuple = (0, 184, 1, 'dev7')
20
+ __version__ = version = '0.184.2.dev2'
21
+ __version_tuple__ = version_tuple = (0, 184, 2, 'dev2')
sqlmesh/lsp/api.py CHANGED
@@ -10,7 +10,7 @@ separate process for the web api.
10
10
  import typing as t
11
11
  from pydantic import field_validator
12
12
  from sqlmesh.utils.pydantic import PydanticModel
13
- from web.server.models import Model
13
+ from web.server.models import LineageColumn, Model
14
14
 
15
15
  API_FEATURE = "sqlmesh/api"
16
16
 
@@ -59,3 +59,11 @@ class ApiResponseGetLineage(PydanticModel):
59
59
  """
60
60
 
61
61
  data: t.Dict[str, t.List[str]]
62
+
63
+
64
+ class ApiResponseGetColumnLineage(PydanticModel):
65
+ """
66
+ Response from the SQLMesh API for the get_column_lineage endpoint.
67
+ """
68
+
69
+ data: t.Dict[str, t.Dict[str, LineageColumn]]
@@ -33,8 +33,9 @@ def get_models(context: t.Optional[LSPContext], file_uri: t.Optional[URI]) -> t.
33
33
  all_models.update(file_info.names)
34
34
 
35
35
  # Remove models from the current file
36
- if file_uri is not None and file_uri in context.map:
37
- file_info = context.map[file_uri]
36
+ path = file_uri.to_path() if file_uri is not None else None
37
+ if path is not None and path in context.map:
38
+ file_info = context.map[path]
38
39
  if isinstance(file_info, ModelTarget):
39
40
  for model in file_info.names:
40
41
  all_models.discard(model)
@@ -53,8 +54,8 @@ def get_keywords(context: t.Optional[LSPContext], file_uri: t.Optional[URI]) ->
53
54
  If both a context and a file_uri are provided, returns the keywords
54
55
  for the dialect of the model that the file belongs to.
55
56
  """
56
- if file_uri is not None and context is not None and file_uri in context.map:
57
- file_info = context.map[file_uri]
57
+ if file_uri is not None and context is not None and file_uri.to_path() in context.map:
58
+ file_info = context.map[file_uri.to_path()]
58
59
 
59
60
  # Handle ModelInfo objects
60
61
  if isinstance(file_info, ModelTarget) and file_info.names:
sqlmesh/lsp/context.py CHANGED
@@ -1,9 +1,8 @@
1
1
  from dataclasses import dataclass
2
+ from pathlib import Path
2
3
  from sqlmesh.core.context import Context
3
4
  import typing as t
4
5
 
5
- from sqlmesh.lsp.uri import URI
6
-
7
6
 
8
7
  @dataclass
9
8
  class ModelTarget:
@@ -29,24 +28,24 @@ class LSPContext:
29
28
  self.context = context
30
29
 
31
30
  # Add models to the map
32
- model_map: t.Dict[URI, ModelTarget] = {}
31
+ model_map: t.Dict[Path, ModelTarget] = {}
33
32
  for model in context.models.values():
34
33
  if model._path is not None:
35
- uri = URI.from_path(model._path)
34
+ uri = model._path
36
35
  if uri in model_map:
37
36
  model_map[uri].names.append(model.name)
38
37
  else:
39
38
  model_map[uri] = ModelTarget(names=[model.name])
40
39
 
41
40
  # Add standalone audits to the map
42
- audit_map: t.Dict[URI, AuditTarget] = {}
41
+ audit_map: t.Dict[Path, AuditTarget] = {}
43
42
  for audit in context.standalone_audits.values():
44
43
  if audit._path is not None:
45
- uri = URI.from_path(audit._path)
44
+ uri = audit._path
46
45
  if uri not in audit_map:
47
46
  audit_map[uri] = AuditTarget(name=audit.name)
48
47
 
49
- self.map: t.Dict[URI, t.Union[ModelTarget, AuditTarget]] = {
48
+ self.map: t.Dict[Path, t.Union[ModelTarget, AuditTarget]] = {
50
49
  **model_map,
51
50
  **audit_map,
52
51
  }
sqlmesh/lsp/main.py CHANGED
@@ -4,6 +4,7 @@
4
4
  import logging
5
5
  import typing as t
6
6
  from pathlib import Path
7
+ import urllib.parse
7
8
 
8
9
  from lsprotocol import types
9
10
  from pygls.server import LanguageServer
@@ -14,6 +15,7 @@ from sqlmesh.core.linter.definition import AnnotatedRuleViolation
14
15
  from sqlmesh.lsp.api import (
15
16
  API_FEATURE,
16
17
  ApiRequest,
18
+ ApiResponseGetColumnLineage,
17
19
  ApiResponseGetLineage,
18
20
  ApiResponseGetModels,
19
21
  )
@@ -24,7 +26,7 @@ from sqlmesh.lsp.reference import (
24
26
  get_references,
25
27
  )
26
28
  from sqlmesh.lsp.uri import URI
27
- from web.server.api.endpoints.lineage import model_lineage
29
+ from web.server.api.endpoints.lineage import column_lineage, model_lineage
28
30
  from web.server.api.endpoints.models import get_models
29
31
 
30
32
 
@@ -92,18 +94,37 @@ class SQLMeshLanguageServer:
92
94
  @self.server.feature(API_FEATURE)
93
95
  def api(
94
96
  ls: LanguageServer, request: ApiRequest
95
- ) -> t.Union[ApiResponseGetModels, ApiResponseGetLineage]:
97
+ ) -> t.Union[ApiResponseGetModels, ApiResponseGetLineage, ApiResponseGetColumnLineage]:
96
98
  ls.log_trace(f"API request: {request}")
97
99
  if self.lsp_context is None:
98
100
  raise RuntimeError("No context found")
99
- if request.url == "/api/models":
100
- response = ApiResponseGetModels(data=get_models(self.lsp_context.context))
101
- return response
102
- if request.url.startswith("/api/lineage"):
103
- name = request.url.split("/")[-1]
104
- lineage = model_lineage(name, self.lsp_context.context)
105
- non_set_lineage = {k: v for k, v in lineage.items() if v is not None}
106
- return ApiResponseGetLineage(data=non_set_lineage)
101
+
102
+ parsed_url = urllib.parse.urlparse(request.url)
103
+ path_parts = parsed_url.path.strip("/").split("/")
104
+
105
+ if request.method == "GET":
106
+ if path_parts == ["api", "models"]:
107
+ # /api/models
108
+ return ApiResponseGetModels(data=get_models(self.lsp_context.context))
109
+
110
+ if path_parts[:2] == ["api", "lineage"]:
111
+ if len(path_parts) == 3:
112
+ # /api/lineage/{model}
113
+ model_name = urllib.parse.unquote(path_parts[2])
114
+ lineage = model_lineage(model_name, self.lsp_context.context)
115
+ non_set_lineage = {k: v for k, v in lineage.items() if v is not None}
116
+ return ApiResponseGetLineage(data=non_set_lineage)
117
+
118
+ if len(path_parts) == 4:
119
+ # /api/lineage/{model}/{column}
120
+ model_name = urllib.parse.unquote(path_parts[2])
121
+ column = urllib.parse.unquote(path_parts[3])
122
+ logging.info(f"Column lineage request: {model_name} {column}")
123
+ column_lineage_response = column_lineage(
124
+ model_name, column, False, self.lsp_context.context
125
+ )
126
+ return ApiResponseGetColumnLineage(data=column_lineage_response)
127
+
107
128
  raise NotImplementedError(f"API request not implemented: {request.url}")
108
129
 
109
130
  @self.server.feature(types.TEXT_DOCUMENT_DID_OPEN)
@@ -116,7 +137,7 @@ class SQLMeshLanguageServer:
116
137
  SQLMeshLanguageServer._diagnostics_to_lsp_diagnostics(self.lint_cache[uri]),
117
138
  )
118
139
  return
119
- models = context.map[uri]
140
+ models = context.map[uri.to_path()]
120
141
  if models is None:
121
142
  return
122
143
  if not isinstance(models, ModelTarget):
@@ -134,7 +155,7 @@ class SQLMeshLanguageServer:
134
155
  def did_change(ls: LanguageServer, params: types.DidChangeTextDocumentParams) -> None:
135
156
  uri = URI(params.text_document.uri)
136
157
  context = self._context_get_or_load(uri)
137
- models = context.map[uri]
158
+ models = context.map[uri.to_path()]
138
159
  if models is None:
139
160
  return
140
161
  if not isinstance(models, ModelTarget):
@@ -152,7 +173,7 @@ class SQLMeshLanguageServer:
152
173
  def did_save(ls: LanguageServer, params: types.DidSaveTextDocumentParams) -> None:
153
174
  uri = URI(params.text_document.uri)
154
175
  context = self._context_get_or_load(uri)
155
- models = context.map[uri]
176
+ models = context.map[uri.to_path()]
156
177
  if models is None:
157
178
  return
158
179
  if not isinstance(models, ModelTarget):
sqlmesh/lsp/reference.py CHANGED
@@ -88,15 +88,14 @@ def get_model_definitions_for_a_path(
88
88
  - Try get_model before normalization
89
89
  - Match to models that the model refers to
90
90
  """
91
- # Ensure the path is a sql file
92
- if document_uri.to_path().suffix != ".sql":
91
+ path = document_uri.to_path()
92
+ if path.suffix != ".sql":
93
93
  return []
94
94
  # Get the file info from the context map
95
- if document_uri not in lint_context.map:
95
+ if path not in lint_context.map:
96
96
  return []
97
97
 
98
- file_info = lint_context.map[document_uri]
99
-
98
+ file_info = lint_context.map[path]
100
99
  # Process based on whether it's a model or standalone audit
101
100
  if isinstance(file_info, ModelTarget):
102
101
  # It's a model
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sqlmesh
3
- Version: 0.184.1.dev7
3
+ Version: 0.184.2.dev2
4
4
  Summary: Next-generation data transformation framework
5
5
  Author-email: "TobikoData Inc." <engineering@tobikodata.com>
6
6
  License: Apache License
@@ -1,5 +1,5 @@
1
1
  sqlmesh/__init__.py,sha256=DRovDXI-9D9xeYDP7t8Fq7mI31S2btlN-LHPOK3y7PA,7240
2
- sqlmesh/_version.py,sha256=E3NHNtNe_5mi9DTrVF08Ua-hAeRORyGKY1scnwoYyQ8,528
2
+ sqlmesh/_version.py,sha256=K1tcpWduhkaFG48YpByt7_MBd5gAWPAjrzyTLfzW7Wc,528
3
3
  sqlmesh/magics.py,sha256=9oY1Uz8uwsuTtPRg9HTYDxnGiJ7-OVRCpmCgAhbKHUU,39431
4
4
  sqlmesh/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  sqlmesh/cicd/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -155,12 +155,12 @@ sqlmesh/integrations/github/cicd/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRk
155
155
  sqlmesh/integrations/github/cicd/command.py,sha256=a48qtSeRM7RD3IeydJwHLAZBHRbmFdA7uHh7Yhe5a74,11301
156
156
  sqlmesh/integrations/github/cicd/config.py,sha256=qEy0mRfPYJw1pm68UK0v1_4kZBj5QodnpIsOZ8JjZro,1838
157
157
  sqlmesh/integrations/github/cicd/controller.py,sha256=AiEMsRW4WSVxXP_7oQSIdzBzmYPxfYDgYeOYRk9sfJA,41388
158
- sqlmesh/lsp/api.py,sha256=Ls7BjrPSovvOu6VU_eFR0_nHcbsQl020eJvGbdWi7s8,1957
159
- sqlmesh/lsp/completions.py,sha256=Jadpjxod_VYq2dCUuFhEVyI9odO13ZtyGmtd3YSOuaM,3511
160
- sqlmesh/lsp/context.py,sha256=N_sd9uuuDi40ABexjT_r9QuIrRBmYPfJltqaGGDekmM,1473
158
+ sqlmesh/lsp/api.py,sha256=LJdECSaEZoPbu_Xl4KscVG-WLt7_g4dY-zKGO68dH14,2162
159
+ sqlmesh/lsp/completions.py,sha256=Uo8lUzPBeoB58Eu2642YoAtNI0pgIFWFSvwmuJALTv4,3583
160
+ sqlmesh/lsp/context.py,sha256=Ff09vrsawdYS-7YcXbGZW_RU-tj_-k8WV7maCghpYp0,1438
161
161
  sqlmesh/lsp/custom.py,sha256=GvNAiW7imPI8xmIx3qLWN5FljGPHFJKh0N5b6aZnwRo,489
162
- sqlmesh/lsp/main.py,sha256=MmL5UuNkft1Yu4Fk_ILEkUJXctsfQ0kBvNz6eHpmgIY,15981
163
- sqlmesh/lsp/reference.py,sha256=YsXAPkxo_qMC_rDimpJTn4ri0bo9H6RIAyNkD9oWgY4,8166
162
+ sqlmesh/lsp/main.py,sha256=EgYQRk8s4W4PaIzUkiEKBKkXxkeWNvGLLQHDxJIPDSs,17024
163
+ sqlmesh/lsp/reference.py,sha256=MiTnNmaGrVs1Scms3jHkZ89Cu8_ZLJGAHcs1LRywFdU,8129
164
164
  sqlmesh/lsp/uri.py,sha256=mvSLbZGmMTHPpliThOtVWiFcHnfJzp1w39q9l-xD2SI,802
165
165
  sqlmesh/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
166
166
  sqlmesh/migrations/v0001_init.py,sha256=h8FwMYJj9_O8yGpk12guaSaGwX5A3we2GiKeHrXi15o,2048
@@ -267,53 +267,53 @@ sqlmesh/utils/pandas.py,sha256=uKI-ygEtMcGDRzXdBu0RkGmMBkYxwu5O2Wabho841Ls,2196
267
267
  sqlmesh/utils/pydantic.py,sha256=-u69PDY-4FLR7ODNKBoN7PsPNmZ0wdhsJcCAG2P6vyY,11061
268
268
  sqlmesh/utils/rich.py,sha256=xNZyPCqEc4TAlJlsEthg-5eYUWpaizz0QjBzO7a1Yv4,1509
269
269
  sqlmesh/utils/yaml.py,sha256=np-WVcwmwsKghCgAj1OBBMsK1SXSRn4wR-H37cGiFr8,2282
270
- sqlmesh-0.184.1.dev7.dist-info/licenses/LICENSE,sha256=OlMefUjgWJdULtf84BLW0AZZcY8DwdgQqb_1j2862j8,11346
270
+ sqlmesh-0.184.2.dev2.dist-info/licenses/LICENSE,sha256=OlMefUjgWJdULtf84BLW0AZZcY8DwdgQqb_1j2862j8,11346
271
271
  web/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
272
- web/client/dist/index.html,sha256=nPqIDCJmonOaEAp4hhwrwgPdwt_F-5zzw-WW1kJqq3I,5472
273
- web/client/dist/assets/Audits-DiRd7NXk.js,sha256=Q5dIFqsHps-vVYD8037NpTPW_1juQgn_Ov45smEm7Y8,1041
274
- web/client/dist/assets/Banner-34lJaqMH.js,sha256=0HsqPsVxsoAk-n74c9AKT7yaJb2Rx4_-As4peuN82kw,1549
275
- web/client/dist/assets/ChevronDownIcon-BEfZMwIq.js,sha256=1BznQ2mj6dcXKnrKUJeRwgkiA4EY0d9eIrgzyqa9xwU,553
276
- web/client/dist/assets/ChevronRightIcon-CRtD2F1s.js,sha256=4oryogrgcMzJerqCaUZCKSumNQUB6j5Ih9Klr6cEGTo,553
277
- web/client/dist/assets/Content-BjziMWy_.js,sha256=-NQBe8Zgv5hRxFcwMesSIgRHhdjjWAXJRZUpGf-Uwi4,37525
278
- web/client/dist/assets/Content-DPMnGXgB.js,sha256=3dxEi8Jh5EoAZ9h1MrVDeoSdQU95wFeDCG2BZ5NuRm0,803
279
- web/client/dist/assets/Data-Z6F8o2ML.js,sha256=iPNZ1i2eyDIrKpsh79nHjxFZFXS0hENgqTIGr78t1U0,984
280
- web/client/dist/assets/DataCatalog-XvD05neI.js,sha256=o8SIn4kwKZ4_Dd1mPdRcHpkBTDSJSlurDzSnTBJ-1sI,122464
281
- web/client/dist/assets/Editor-BBauicI1.js,sha256=Jtq_YzOSBQAX50xiUqDY1oTcdZ_SoxoktiTZDy1WgfI,1490
282
- web/client/dist/assets/Editor-CMra0GR-.js,sha256=X4LEVQ7-sDxM_GMe9fMJOpHmDoEuH7bgNlzlAAUgj1c,43614
283
- web/client/dist/assets/Errors-BJPVdPAn.js,sha256=8CcoybQYfpE450IDUFfyu6hnhzX9b5QqlMbp3Ar4pMM,1361
284
- web/client/dist/assets/FileExplorer-Bcw8Oc1N.js,sha256=FNFN_6SKxHGbtyktX1Z8vsSJvGGyVd6VCRPdFCYDQ94,87619
285
- web/client/dist/assets/Footer-DkqrnEFk.js,sha256=GafEoDj81pxVN5aasQfrDwn-X03ZmB4l_REosiaWNMo,700
286
- web/client/dist/assets/Header-Cbp8THC6.js,sha256=qiJWCH_8EVnkIypi47A4KjR6a1-vz2uoM5jp_usr-dU,11424
287
- web/client/dist/assets/Input-ta8tMqGc.js,sha256=a41ePVqkJr3w57pjV6Jid4wrdZE7EK26Tk9XM72eiu8,54729
288
- web/client/dist/assets/Lineage-Cq9-RKh4.js,sha256=vKiR3s0UCMvqxHUDDx-cQk1zyNaVwVv_1B8bwtCwIN0,1002
289
- web/client/dist/assets/ListboxShow-CNU6pC5Q.js,sha256=3CuecesPS7PpozlOEeAWEGx0xoN81b5zoX1mmXeeiwM,29911
290
- web/client/dist/assets/ModelLineage-BUzz3_b3.js,sha256=xw6siXoV0j4Nom9vPHtsBmFxwfxsoFtQIP3ah4fG_uk,15546
291
- web/client/dist/assets/Models-Z7Jpg0H-.js,sha256=99_jGiwZxhYC0fVtfwyGk3nu5q69wVpRIHpNXTaJzjU,2194
292
- web/client/dist/assets/Page-B21QE6gQ.js,sha256=g_tX5yWAML41mM0hSiHm0NsFPOgisgyrsrODR1cASRA,589
293
- web/client/dist/assets/Plan-D1J9cFla.js,sha256=wM-gDEty8VZefIAk4OJ4-f4OjGkxb6ptzCrsOuOIAao,666
294
- web/client/dist/assets/PlusCircleIcon-Cl1cWT27.js,sha256=-dU7QIAmfM8DHFaA6T3XxaMW1yztRnDu4m3Mlr36i6E,11698
295
- web/client/dist/assets/ReportErrors-D15tD0Jx.js,sha256=xZSiJ2xhbpkJo0rxZkPyMsjb-Z6j6tNaom4rn73dCDg,5419
296
- web/client/dist/assets/Root-CjnodTM-.js,sha256=T6P4ewKjgerKkPkVtpsqXwAufIcp0OiYuylvVVCAMb0,42195
297
- web/client/dist/assets/SearchList-COHTRb0L.js,sha256=J36fi_E3Vq0xUayfZ2kHKPT3GKaj8qrG_U0pb73YQFo,291983
298
- web/client/dist/assets/SelectEnvironment-CKRnNDga.js,sha256=njL5ZjYRFjWGdvJYz5evZgpb_PpgRQ-ctETtuHIZMBI,37637
299
- web/client/dist/assets/SourceList-B1uchtse.js,sha256=DwP_sKzd2U0npo3vNX-xeBbP86tE2V9FEedjGX2XPl0,3205
300
- web/client/dist/assets/SourceListItem-IbZqPGQ-.js,sha256=YUxikUnr9nbEv7aqjVhBFzcj68z_0Ra8EoYjJd634Uw,1106
301
- web/client/dist/assets/SplitPane-X49qF_M2.js,sha256=PcRjYht_L3ArU9MdBwtWbystIrHg_Oi9e-tGMkI3cfw,10439
302
- web/client/dist/assets/Tests-DlffJtoP.js,sha256=GkYLk_UpO85bun_Ht52nNMLmVu6MhqEz2P3wHE_CHMA,1014
303
- web/client/dist/assets/Welcome-Ba62ssiL.js,sha256=Obo0T9tggUJS7eQwfQP6aXDrarHzPnnI7WO6dl-tdaA,354
272
+ web/client/dist/index.html,sha256=f4Pg8Cex2Yzuh8nwt5XduYLO41HKza9RIL0rW1d9wKw,5472
273
+ web/client/dist/assets/Audits-DF7amJxU.js,sha256=VxuJ7bKHmPaqK8SvZaqdeSB_m9-oI7fi6HND54mJ4Y0,1041
274
+ web/client/dist/assets/Banner-C3VTntGq.js,sha256=2x5tgVTWdFQ0gFfD5H5AAVSWPrmej7cGIRl2TAUaXjk,1549
275
+ web/client/dist/assets/ChevronDownIcon-qm4bu8e3.js,sha256=B9Q-XeZ4sgsVvRB_XpVaEB2WEB_2WDtxcDijx7Al3nE,553
276
+ web/client/dist/assets/ChevronRightIcon-BolEdhGf.js,sha256=X5WZ3trnl-rRITC8Ig7Wg15VkS23bKIho6LtTrtCtsg,553
277
+ web/client/dist/assets/Content-B6xcwedd.js,sha256=Qpd426xW2K0hPnysyzFvRJ-N0iQQuYLQk4YSh-c-gBA,37525
278
+ web/client/dist/assets/Content-BRVWZ3mb.js,sha256=EmDe7B4WEtAhV2CF-g8dXHs6X5pqQl-o-piI7g9uDj4,803
279
+ web/client/dist/assets/Data-Biu-V0fH.js,sha256=WU1phAy16DbchWVHNtoXNxw0buHtCegquUFBK4epdgU,984
280
+ web/client/dist/assets/DataCatalog-B6evo1XW.js,sha256=z9vbGBd3hDKxoQnOjSpaIEp5Yx0syYIWh09IG3GjlZ8,122464
281
+ web/client/dist/assets/Editor-CLmFVr2P.js,sha256=4VonU8tJx_oWb9dw-arCz7ZSip-uNCvYnzoqBWe5dok,43614
282
+ web/client/dist/assets/Editor-CVxCL2-Y.js,sha256=mRfSmUlKwGFNMnw2w0ZlAmPVQhzCMpz4Y52ckRPtmi0,1490
283
+ web/client/dist/assets/Errors-oZskb8PG.js,sha256=GuNo8rdmq3Iqxlyma4GmTNowY-ve3p8nLouMn53ZKNk,1361
284
+ web/client/dist/assets/FileExplorer-CGr1vJjw.js,sha256=ZRmGcALK8FmYjY0Tagu3IWvYVE1h_r2zLyHOj4ajSE8,87619
285
+ web/client/dist/assets/Footer-fJbe0D4K.js,sha256=GrLx1OTGxF9DtrMEGURZM6P4zJLOsZuhOl6bZEJjfJQ,700
286
+ web/client/dist/assets/Header-BH87N9ET.js,sha256=irVpqouAGXgTCsr8Pu3krHuHMfGGdOLiuv_WgQ_nniE,11424
287
+ web/client/dist/assets/Input-D4nBSMWJ.js,sha256=JRLB4BgNE8hwPz2WJQ03K0KzqXYJuswXdjMCI6sfSLc,54788
288
+ web/client/dist/assets/Lineage-CPutJH7u.js,sha256=6ZfNg46vkcLXes2gs5IFlZ7wwvVLMEOuu95yoHPgjqg,1002
289
+ web/client/dist/assets/ListboxShow-BWNLIBMH.js,sha256=LPjDUU7oqvy3MDDsUHtC1Yf6c8BFLvXF9d-Cq9ogpr4,29911
290
+ web/client/dist/assets/ModelLineage-c5SOHuSl.js,sha256=92XDnJxdUB2OQyjRlxE3N3EWFBLNUxifRqTbhHFDqE0,15546
291
+ web/client/dist/assets/Models-BNHmcp1o.js,sha256=k-v5Szme29mTsGAqCxKmS5BsonKZjkdhAa-lbx4aQ5g,2194
292
+ web/client/dist/assets/Page-daP33Ypg.js,sha256=Y3uhOMtp_4e5tiwOeXnqNxp7y1gDfSuaThSSEQZb0Is,589
293
+ web/client/dist/assets/Plan-DUHa3QdG.js,sha256=bokS1FgKtlrtTO1PQwFNcre3bpbXqEBcEt54L27jqio,666
294
+ web/client/dist/assets/PlusCircleIcon-Bk7UCkgh.js,sha256=_oOSM4NwORFWhG1At3UWFmCaJmRb9gTUIHZ41z12ZCg,11698
295
+ web/client/dist/assets/ReportErrors-DfzGQ2eY.js,sha256=Y9khuKzFKFCQhw7D_CUSPyH-Cin820VT9mcbw2CBbP0,5419
296
+ web/client/dist/assets/Root-uPpx7ocJ.js,sha256=jQNvCSkgxnQCEQVGyY5w8rCxRMn0Uqk9t9a8KXhoGVI,42195
297
+ web/client/dist/assets/SearchList-87imxiuX.js,sha256=kJ62pI6BwsKYORZGchCZu9DZO6yOQFCusjUWDVhiAEY,291983
298
+ web/client/dist/assets/SelectEnvironment-DRt5ys9a.js,sha256=X5Cqj1rt-QueuB_u0ojMLeivWU95Vpb3jgCrL8TFz-w,37637
299
+ web/client/dist/assets/SourceList-Cfd2Hs4e.js,sha256=40bzdu7wTuGMkFEdexyrjSDwXcPXNupapVKVSM8V6iY,3205
300
+ web/client/dist/assets/SourceListItem-Cgi7ENFV.js,sha256=gTo-QT7pUT9VjDUaUU2d2Kwtso9-M1GkMlF4h1ROIQw,1106
301
+ web/client/dist/assets/SplitPane-p-JrHTOr.js,sha256=OaxfVLRJ_B3R4nS1OvqJzEuAA2hOdEXXn4mOFIZhz3U,10439
302
+ web/client/dist/assets/Tests-Das-Vk4n.js,sha256=7PVtIIKHPwozRUtkEvH5rN9ZM7fqbeq9MRJwmlHtK28,1014
303
+ web/client/dist/assets/Welcome-33aFy-Y-.js,sha256=9C04e3UmRwygroMjncA8qg_X3jU78ZZwGirE0YyTqQ4,354
304
304
  web/client/dist/assets/_commonjs-dynamic-modules-TDtrdbi3.js,sha256=WQq4BXvAMsPhT58adqrv_QHaYJQT-xKIiBnKBDPB-uk,239
305
- web/client/dist/assets/context-BvCFukJL.js,sha256=6cPkI-zkxkd_gklXLzXaZaWmUHLtyIirtmfhEejNGnc,2053023
306
- web/client/dist/assets/context-CvggAi88.js,sha256=tmaCSuTGLz3a0iarq6uC4_ULIFB8oD0kaPdD4gS8NJU,4517
307
- web/client/dist/assets/editor-BNLMfBQ6.js,sha256=zrKGT6zy6Vmahld2FK3E_zEMpqpDLl0qNkjaGBSLowA,7858
308
- web/client/dist/assets/file-DYQzDhLd.js,sha256=4xLfT_-H8WYu6Hcxwkq1oPVbypO2c9emCqdoKzY5Kg4,2349
309
- web/client/dist/assets/floating-ui.react-dom-tGq145Jn.js,sha256=NdNLrWZAonpKOg-Bvr_SxUoCToYzoaXo1HRS6_BwjLY,22264
305
+ web/client/dist/assets/context-C5ccds54.js,sha256=flCixYuKureIPSaOWkK4F5jRF5tZMCAqDzWl0NJuOTY,4517
306
+ web/client/dist/assets/context-NpzoJDLp.js,sha256=G9Ua24x12RyjMcFS6m_bAZInMlZyZMk4Sz_s---CNLI,2053023
307
+ web/client/dist/assets/editor-B8OcqW2l.js,sha256=oPz2qWdVISP4EDIXzl0xDrQp3o1D0CLydY10oy_w2Gg,7858
308
+ web/client/dist/assets/file-D-wqO8gv.js,sha256=BJ4HwJzve_MUPY33DqqE2Kow48-uNxga22o9_FUN-Ug,2349
309
+ web/client/dist/assets/floating-ui.react-dom-BrhHyVvs.js,sha256=XQDk9mlSk5bx3n_5ZIbURIhmFeN-1FoDMfoZ9gCzH9g,22264
310
310
  web/client/dist/assets/help-6Q7f7fjd.js,sha256=93Iri9PzpAiPgCyRsrQwABjP2jomAUNR7y2OqHxPf34,445
311
- web/client/dist/assets/help-Iv3AQtFM.js,sha256=_uh0MfA22FRWEL-DlqjV2xlEDIGTzgWU2SC7YcPjZgo,57842
312
- web/client/dist/assets/index-Dafo7IQA.js,sha256=1czYFTGGW4BxQlPqwQzw5_V6snOEZD1aMh0wbP7JWxA,13562
313
- web/client/dist/assets/index-DyVIXHW8.js,sha256=67H88EfKnG1GsifEoNlz9YZk25ksHVYRJbz3ewb28_8,531311
314
- web/client/dist/assets/plan-b_STGhUH.js,sha256=ysdp0VZ1dH6KqM6pxa6x6xZ2xYTtjlrkjCWouudD5x8,13754
315
- web/client/dist/assets/popover-CViXjwzR.js,sha256=00TyVEeqED8L5Sm9NGq5xtnEFzfsWR0IXYR_ZGqw5Jc,68080
316
- web/client/dist/assets/project-DuzSX7Ps.js,sha256=lHju8eqA3AJ-PdkHARdzFMfsflzoHV10lSY6HI7uCms,3338
311
+ web/client/dist/assets/help-CQWPRUV2.js,sha256=0QJR_dzz-wmyYhp4vmxLs4DqiNCW0PQNFCgtGXM4n4s,57842
312
+ web/client/dist/assets/index-Co-_3xPI.js,sha256=HaBCTvpgB3d-0Y5rXwQsvdVk65_DP86qBjGB8uY4g70,531311
313
+ web/client/dist/assets/index-xGKh539i.js,sha256=7ceY0AkgAXUQqY11b2A5rYiXc5Yl6sDRcTtBF8lG5rQ,13562
314
+ web/client/dist/assets/plan-BIz0iaor.js,sha256=MnR9pApOHktjs-zLWcxBIx9mzABu8WjHzoFWEGZPbkA,13754
315
+ web/client/dist/assets/popover-BXDPVmB7.js,sha256=C7pIAdpzrPA6VFSptAqCpqiVQo6j8I3BeP3XVw3UO6c,68080
316
+ web/client/dist/assets/project-H8d6rukl.js,sha256=02BZ9_n71ocYPK8phsYVqHHwzGel-6AQOwetanTYftI,3338
317
317
  web/client/dist/css/base.css,sha256=JApDmQihY7DRy5Bd30uYMm5NdMKm0QsEOMBsOuK7gyU,9048
318
318
  web/client/dist/css/design.css,sha256=9VTHN-aYFVW6I53jUWbV8qaqo87tXyZTYSWFLC_sRQY,17057
319
319
  web/client/dist/favicons/favicon.svg,sha256=ZPNT00J77RHUj6Nlh6Z4Puxnp_oq9RSqACjomhDRUXE,1586
@@ -379,14 +379,14 @@ web/server/api/endpoints/directories.py,sha256=Aa8U4pTs3Saj5DnJ9TDnX9mZois-EXgpc
379
379
  web/server/api/endpoints/environments.py,sha256=g3YC6j4LLlG_wjJqn-Hrz78BWmgS7vhUhzaycsiez00,2124
380
380
  web/server/api/endpoints/events.py,sha256=tjhOhGe9jt7L1mOLLapl5qTvicDRnP5lPZHSq9OnSVI,932
381
381
  web/server/api/endpoints/files.py,sha256=UnZPScF-HANNNZhNFhxfAPihcU3p85mB7P2rqFc2wG4,6698
382
- web/server/api/endpoints/lineage.py,sha256=RdK1QmNhgVU6dkfEcgdSLnko1SkGQhJP_IgeDWRJ4vM,5775
382
+ web/server/api/endpoints/lineage.py,sha256=re2mNADlUQsBZVeA7jKw857mQvMxwijynP5iVB7YAnY,5769
383
383
  web/server/api/endpoints/meta.py,sha256=QKWWrHewGh5JS8mCSWXTKCIQwXw-TQfaT9tWt_SsNY4,1032
384
384
  web/server/api/endpoints/models.py,sha256=SzS5bshzdXyM6hb948sZ_3k-xhpGCHkxkb7pHzPjM_o,4675
385
385
  web/server/api/endpoints/modules.py,sha256=8hqqgonGay_mJmpCw0IdbjsPhWlQH2VLdKAqha-myac,468
386
386
  web/server/api/endpoints/plan.py,sha256=OYuQ_4dgbhG9ibTcX1a8mvYgH3ANxw9Fhbb4wg6QWqc,9222
387
387
  web/server/api/endpoints/table_diff.py,sha256=Wd5YxeKbZB7AkrDvqFgvV9ZQlnKYOF1n5W_w2EHE_Zw,2085
388
- sqlmesh-0.184.1.dev7.dist-info/METADATA,sha256=zkEJlJ2o7TIu7mDuzkFMbzbT4N0XOkGuZq9ZOu2-yR4,25498
389
- sqlmesh-0.184.1.dev7.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
390
- sqlmesh-0.184.1.dev7.dist-info/entry_points.txt,sha256=pIYKtg-u-uO7BK_Y0qrdmfyj0bYrcMc3Xiqr5WE3VFk,121
391
- sqlmesh-0.184.1.dev7.dist-info/top_level.txt,sha256=bspjo5vjELQkuN0qKuTFIbsrUt3Zeo8D2mlKeHG1LdE,12
392
- sqlmesh-0.184.1.dev7.dist-info/RECORD,,
388
+ sqlmesh-0.184.2.dev2.dist-info/METADATA,sha256=_LtGgD1Kkkn6kxUjsFdqjqOw8wS8BO92ePAgPYbabAo,25498
389
+ sqlmesh-0.184.2.dev2.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
390
+ sqlmesh-0.184.2.dev2.dist-info/entry_points.txt,sha256=pIYKtg-u-uO7BK_Y0qrdmfyj0bYrcMc3Xiqr5WE3VFk,121
391
+ sqlmesh-0.184.2.dev2.dist-info/top_level.txt,sha256=bspjo5vjELQkuN0qKuTFIbsrUt3Zeo8D2mlKeHG1LdE,12
392
+ sqlmesh-0.184.2.dev2.dist-info/RECORD,,
@@ -1 +1 @@
1
- import{x as n,j as s,O as f,e as t,H as c,B as p,m as x,l as d}from"./index-DyVIXHW8.js";import{P as j}from"./Page-B21QE6gQ.js";import{u as h}from"./project-DuzSX7Ps.js";import{S as v}from"./SourceList-B1uchtse.js";import{S as A}from"./SourceListItem-IbZqPGQ-.js";import"./SplitPane-X49qF_M2.js";import"./file-DYQzDhLd.js";import"./Input-ta8tMqGc.js";import"./floating-ui.react-dom-tGq145Jn.js";import"./index-Dafo7IQA.js";function k(){const{pathname:a}=n(),i=h(e=>e.files),r=Array.from(i.values()).filter(e=>e.path.endsWith("audits"));return s.jsx(j,{sidebar:s.jsxs("div",{className:"flex flex-col w-full h-full",children:[s.jsx(v,{keyId:"basename",keyName:"basename",to:t.Audits,items:r,isActive:e=>`${t.Audits}/${e}`===a,className:"h-full",listItem:({to:e,name:o,description:m,text:l,disabled:u=!1})=>s.jsx(A,{to:e,name:o,text:l,description:m,disabled:u})}),s.jsx(c,{}),s.jsx("div",{className:"py-1 px-1 flex justify-end",children:s.jsx(p,{size:d.sm,variant:x.Neutral,children:"Run All"})})]}),content:s.jsx(f,{})})}export{k as default};
1
+ import{x as n,j as s,O as f,e as t,H as c,B as p,m as x,l as d}from"./index-Co-_3xPI.js";import{P as j}from"./Page-daP33Ypg.js";import{u as h}from"./project-H8d6rukl.js";import{S as v}from"./SourceList-Cfd2Hs4e.js";import{S as A}from"./SourceListItem-Cgi7ENFV.js";import"./SplitPane-p-JrHTOr.js";import"./file-D-wqO8gv.js";import"./Input-D4nBSMWJ.js";import"./floating-ui.react-dom-BrhHyVvs.js";import"./index-xGKh539i.js";function k(){const{pathname:a}=n(),i=h(e=>e.files),r=Array.from(i.values()).filter(e=>e.path.endsWith("audits"));return s.jsx(j,{sidebar:s.jsxs("div",{className:"flex flex-col w-full h-full",children:[s.jsx(v,{keyId:"basename",keyName:"basename",to:t.Audits,items:r,isActive:e=>`${t.Audits}/${e}`===a,className:"h-full",listItem:({to:e,name:o,description:m,text:l,disabled:u=!1})=>s.jsx(A,{to:e,name:o,text:l,description:m,disabled:u})}),s.jsx(c,{}),s.jsx("div",{className:"py-1 px-1 flex justify-end",children:s.jsx(p,{size:d.sm,variant:x.Neutral,children:"Run All"})})]}),content:s.jsx(f,{})})}export{k as default};
@@ -1 +1 @@
1
- import{j as s,c as i,l as a,m as n,H as p}from"./index-DyVIXHW8.js";function l({variant:t=n.Neutral,size:e=a.md,isFull:r=!1,isCenter:u=!1,hasBackground:x=!0,hasBackgroundOnHover:f=!1,hasBorder:c=!1,children:m,className:b}){return s.jsx("div",{className:i("w-full text-sm px-4 overflow-hidden rounded-lg",e===a.sm&&"py-2",e===a.md&&"py-4",e===a.lg&&"py-6",r&&"h-full",u&&"justify-center items-center",c&&"border-2",w(t,x,f),b),children:m})}function g({className:t}){return s.jsx(p,{className:i("mx-4 w-full",t)})}function d({children:t,className:e}){return s.jsx("h4",{className:i("font-bold text-sm whitespace-nowrap text-left",e),children:t})}function o({children:t,className:e}){return s.jsx("p",{className:i("text-neutral-600",e),children:t})}l.Label=d;l.Description=o;l.Divider=g;function w(t,e=!0,r=!1){switch(t){case n.Primary:return[r?"hover:bg-primary-5":"",e?"bg-primary-5":"","text-primary-600 dark:text-primary-400"];case n.Success:return[r?"hover:bg-success-5":"",e?"bg-success-5":"","text-success-600 dark:text-success-400"];case n.Warning:return[r?"hover:bg-warning-5":"",e?"bg-warning-5":"","text-warning-600 dark:text-warning-400"];case n.Danger:return[r?"hover:bg-danger-5":"",e?"bg-danger-5":"","text-danger-600 dark:text-danger-400"];case n.Info:return[r?"hover:bg-info-5":"",e?"bg-info-5":"","text-info-600 dark:text-info-400"];case n.Neutral:return[r?"hover:bg-neutral-5":"",e?"bg-neutral-5":"","text-neutral-600 dark:text-neutral-400"];default:return["bg-transparent","text-neutral-600 dark:text-neutral-400"]}}export{l as B};
1
+ import{j as s,c as i,l as a,m as n,H as p}from"./index-Co-_3xPI.js";function l({variant:t=n.Neutral,size:e=a.md,isFull:r=!1,isCenter:u=!1,hasBackground:x=!0,hasBackgroundOnHover:f=!1,hasBorder:c=!1,children:m,className:b}){return s.jsx("div",{className:i("w-full text-sm px-4 overflow-hidden rounded-lg",e===a.sm&&"py-2",e===a.md&&"py-4",e===a.lg&&"py-6",r&&"h-full",u&&"justify-center items-center",c&&"border-2",w(t,x,f),b),children:m})}function g({className:t}){return s.jsx(p,{className:i("mx-4 w-full",t)})}function d({children:t,className:e}){return s.jsx("h4",{className:i("font-bold text-sm whitespace-nowrap text-left",e),children:t})}function o({children:t,className:e}){return s.jsx("p",{className:i("text-neutral-600",e),children:t})}l.Label=d;l.Description=o;l.Divider=g;function w(t,e=!0,r=!1){switch(t){case n.Primary:return[r?"hover:bg-primary-5":"",e?"bg-primary-5":"","text-primary-600 dark:text-primary-400"];case n.Success:return[r?"hover:bg-success-5":"",e?"bg-success-5":"","text-success-600 dark:text-success-400"];case n.Warning:return[r?"hover:bg-warning-5":"",e?"bg-warning-5":"","text-warning-600 dark:text-warning-400"];case n.Danger:return[r?"hover:bg-danger-5":"",e?"bg-danger-5":"","text-danger-600 dark:text-danger-400"];case n.Info:return[r?"hover:bg-info-5":"",e?"bg-info-5":"","text-info-600 dark:text-info-400"];case n.Neutral:return[r?"hover:bg-neutral-5":"",e?"bg-neutral-5":"","text-neutral-600 dark:text-neutral-400"];default:return["bg-transparent","text-neutral-600 dark:text-neutral-400"]}}export{l as B};
@@ -1 +1 @@
1
- import{r as e}from"./index-DyVIXHW8.js";function t({title:r,titleId:a,...l},o){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":a},l),r?e.createElement("title",{id:a},r):null,e.createElement("path",{fillRule:"evenodd",d:"M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))}const c=e.forwardRef(t);export{c as F};
1
+ import{r as e}from"./index-Co-_3xPI.js";function t({title:r,titleId:a,...l},o){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":a},l),r?e.createElement("title",{id:a},r):null,e.createElement("path",{fillRule:"evenodd",d:"M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))}const c=e.forwardRef(t);export{c as F};
@@ -1 +1 @@
1
- import{r as e}from"./index-DyVIXHW8.js";function o({title:r,titleId:a,...t},l){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":a},t),r?e.createElement("title",{id:a},r):null,e.createElement("path",{fillRule:"evenodd",d:"M8.22 5.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.75.75 0 0 1-1.06-1.06L11.94 10 8.22 6.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))}const i=e.forwardRef(o);export{i as F};
1
+ import{r as e}from"./index-Co-_3xPI.js";function o({title:r,titleId:a,...t},l){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":a},t),r?e.createElement("title",{id:a},r):null,e.createElement("path",{fillRule:"evenodd",d:"M8.22 5.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.75.75 0 0 1-1.06-1.06L11.94 10 8.22 6.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))}const i=e.forwardRef(o);export{i as F};
@@ -1,4 +1,4 @@
1
- import{r as v,R as J,a as _,j as e,m as O,s as Qe,b as C,B as oe,v as E,l as T,c as w,M as De,f as V,I as Xe,J as de,i as I,K as Q,g as H,T as Me,H as ue,P as ye,C as es,A as $,q as ss,L as as,d as ns,k as ts,o as ls,p as is,Q as rs,U as os,e as cs}from"./index-DyVIXHW8.js";import{u as W,S as ds,A as us,a as Ne,b as R,E as A,P as z,c as ms}from"./SelectEnvironment-CKRnNDga.js";import{u as j,a as Y,E as M}from"./plan-b_STGhUH.js";import{B as S}from"./Banner-34lJaqMH.js";import{V as L,F as ke,a as Pe,p as ps}from"./PlusCircleIcon-Cl1cWT27.js";import{K as fs,L as $e,V as hs,y as xs,p as js,o as ce,$ as vs,W as gs,X as ys,_ as ws,Y as bs,a as Re,Z as Ns,z as se}from"./popover-CViXjwzR.js";import{I as K}from"./Input-ta8tMqGc.js";import{H as ks,V as Ps,Q as Ts,w as Cs,u as Fs,a as As,l as Ss,T as Ds,N as Rs,U as Es,j as Bs,p as _s}from"./ListboxShow-CNU6pC5Q.js";import{u as ze}from"./project-DuzSX7Ps.js";import{F as we}from"./context-BvCFukJL.js";import"./ModelLineage-BUzz3_b3.js";import"./editor-BNLMfBQ6.js";import"./file-DYQzDhLd.js";import"./SearchList-COHTRb0L.js";import"./help-6Q7f7fjd.js";import"./floating-ui.react-dom-tGq145Jn.js";import"./ChevronDownIcon-BEfZMwIq.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./SourceList-B1uchtse.js";import"./index-Dafo7IQA.js";function Os({title:s,titleId:a,...t},r){return v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":a},t),s?v.createElement("title",{id:a},s):null,v.createElement("path",{fillRule:"evenodd",d:"M16.704 4.153a.75.75 0 0 1 .143 1.052l-8 10.5a.75.75 0 0 1-1.127.075l-4.5-4.5a.75.75 0 0 1 1.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 0 1 1.05-.143Z",clipRule:"evenodd"}))}const X=v.forwardRef(Os);let Te=v.createContext(null);Te.displayName="GroupContext";let Is=v.Fragment;function Ms(s){var a;let[t,r]=v.useState(null),[l,i]=Ts(),[c,u]=Cs(),o=v.useMemo(()=>({switch:t,setSwitch:r}),[t,r]),d={},m=s,n=$e();return J.createElement(u,{name:"Switch.Description",value:c},J.createElement(i,{name:"Switch.Label",value:l,props:{htmlFor:(a=o.switch)==null?void 0:a.id,onClick(h){t&&(hs(h.currentTarget)&&h.preventDefault(),t.click(),t.focus({preventScroll:!0}))}}},J.createElement(Te.Provider,{value:o},n({ourProps:d,theirProps:m,slot:{},defaultTag:Is,name:"Switch.Group"}))))}let $s="button";function zs(s,a){var t;let r=v.useId(),l=Fs(),i=As(),{id:c=l||`headlessui-switch-${r}`,disabled:u=i||!1,checked:o,defaultChecked:d,onChange:m,name:n,value:h,form:p,autoFocus:f=!1,...x}=s,F=v.useContext(Te),[B,D]=v.useState(null),N=v.useRef(null),k=xs(N,a,F===null?null:F.setSwitch,D),g=Ss(d),[P,Z]=Ds(o,m,g??!1),je=js(),[le,b]=v.useState(!1),ie=ce(()=>{b(!0),Z==null||Z(!P),je.nextFrame(()=>{b(!1)})}),re=ce(U=>{if(Ns(U.currentTarget))return U.preventDefault();U.preventDefault(),ie()}),ve=ce(U=>{U.key===Re.Space?(U.preventDefault(),ie()):U.key===Re.Enter&&_s(U.currentTarget)}),Le=ce(U=>U.preventDefault()),Ve=Rs(),Ge=Es(),{isFocusVisible:Fe,focusProps:He}=vs({autoFocus:f}),{isHovered:Ae,hoverProps:Ke}=gs({isDisabled:u}),{pressed:Se,pressProps:Ze}=ys({disabled:u}),qe=v.useMemo(()=>({checked:P,disabled:u,hover:Ae,focus:Fe,active:Se,autofocus:f,changing:le}),[P,Ae,Fe,Se,u,le,f]),We=ws({id:c,ref:k,role:"switch",type:bs(s,B),tabIndex:s.tabIndex===-1?0:(t=s.tabIndex)!=null?t:0,"aria-checked":P,"aria-labelledby":Ve,"aria-describedby":Ge,disabled:u||void 0,autoFocus:f,onClick:re,onKeyUp:ve,onKeyPress:Le},He,Ke,Ze),Ye=v.useCallback(()=>{if(g!==void 0)return Z==null?void 0:Z(g)},[Z,g]),Je=$e();return J.createElement(J.Fragment,null,n!=null&&J.createElement(Bs,{disabled:u,data:{[n]:h||"on"},overrides:{type:"checkbox",checked:P},form:p,onReset:Ye}),Je({ourProps:We,theirProps:x,slot:qe,defaultTag:$s,name:"Switch"}))}let Us=fs(zs),Ls=Ms,Vs=Ps,Gs=ks,ge=Object.assign(Us,{Group:Ls,Label:Vs,Description:Gs});function Hs(){const s=_(a=>a.environment);return e.jsx("div",{className:"flex flex-col px-4 py-2 w-full",children:e.jsx(S,{variant:O.Warning,children:e.jsx(L,{defaultOpen:!1,children:({open:a})=>e.jsxs(e.Fragment,{children:[e.jsxs(L.Button,{className:"w-full flex items-center justify-between",children:[e.jsx(S.Label,{className:"w-full",children:s.isInitialProd?"Initializing Prod Environment":"Prod Environment"}),s.isInitialProd&&e.jsx(e.Fragment,{children:a?e.jsx(ke,{className:"w-5 text-warning-500"}):e.jsx(Pe,{className:"w-5 text-warning-500"})})]}),s.isInitialProd&&e.jsx(L.Panel,{className:"px-2 text-sm mt-2",children:e.jsx(S.Description,{children:"Prod will be completely backfilled in order to ensure there are no data gaps. After this is applied, it is recommended to validate further changes in a dev environment before deploying to production."})})]})})})})}function Ks(s=0){return v.useCallback(a=>{setTimeout(()=>{a==null||a.focus()},s)},[s])}function Zs({run:s,apply:a,cancel:t,reset:r}){const l=Qe(),{change_categorization:i}=W(),c=_(b=>b.modules),u=_(b=>b.environment),o=_(b=>b.environments),d=_(b=>b.addConfirmation),m=_(b=>b.setShowConfirmation),n=j(b=>b.planAction),h=j(b=>b.planOverview),p=j(b=>b.planApply),f=j(b=>b.planCancel),x=Ks();function F(b){b.stopPropagation(),r()}function B(b){b.stopPropagation(),t()}function D(b){b.stopPropagation(),l(-1)}function N(b){b.stopPropagation();const ie=u.isProd&&C(u.isInitial),re=Array.from(i.values()).some(ve=>E(ve.category));ie?d({headline:"Applying Plan Directly On Prod Environment!",tagline:"Safer choice will be to select or add new environment first.",description:"Are you sure you want to apply your changes directly on prod?",yesText:`Yes, Run ${u.name}`,noText:"No, Cancel",action:a,details:re?["ATTENTION!","[Breaking Change] category will be applied to all uncategorized changes"]:void 0,children:e.jsxs("div",{className:"mt-5 pt-4",children:[e.jsx("h4",{className:"mb-2",children:`${o.size>1?"Select or ":""}Add Environment`}),e.jsxs("div",{className:"flex items-center relative",children:[o.size>1&&e.jsx(ds,{className:"mr-2",showAddEnvironment:!1,onSelect:()=>{m(!1)},size:T.md}),e.jsx(us,{className:"w-full",size:T.md,onAdd:()=>{m(!1)}})]})]})}):re?d({headline:"Some changes are missing categorization!",description:"Are you sure you want to proceed?",details:["[Breaking Change] category will be applied to all uncategorized changes"],yesText:"Yes, Apply",noText:"No, Cancel",action:a}):a()}function k(b){b.stopPropagation(),s()}const g=h.isFailed||p.isFailed||f.isSuccessful,P=C(n.isCancelling)&&C(n.isDone)&&(n.isProcessing?C(f.isSuccessful):!0)&&C(g),Z=n.isApplying||f.isCancelling||p.isRunning&&h.isFinished,je=g||C(n.isProcessing)&&C(n.isRun)&&C(n.isDone),le=c.showHistoryNavigation;return e.jsx(e.Fragment,{children:e.jsxs("div",{className:"flex justify-between pt-2 pl-4 pr-2 pb-2",children:[e.jsx("div",{className:"flex w-full items-center",children:e.jsx(se,{appear:!0,show:P,enter:"transition ease duration-300 transform",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"transition ease duration-300 transform",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",className:"trasition-all duration-300 ease-in-out",as:"div",children:P&&e.jsx(oe,{disabled:n.isProcessing||f.isSuccessful||n.isDone,onClick:n.isRun?k:f.isSuccessful?void 0:N,ref:x,variant:f.isSuccessful?O.Danger:O.Primary,autoFocus:!0,className:"trasition-all duration-300 ease-in-out",children:e.jsx("span",{children:Y.getActionDisplayName(n,f.isSuccessful?[]:[M.RunningTask,M.Running,M.Run,M.Applying,M.ApplyBackfill,M.ApplyVirtual,M.ApplyChangesAndBackfill,M.ApplyMetadata],f.isSuccessful?"Canceled":"Done")})})})}),e.jsxs("div",{className:"flex items-center",children:[Z&&e.jsx(oe,{onClick:B,variant:O.Danger,disabled:n.isCancelling||n.isProcessing&&f.isSuccessful,children:Y.getActionDisplayName(n,n.isProcessing&&C(f.isSuccessful)?[M.Cancelling]:[],f.isSuccessful?"Finishing Cancellation...":"Cancel")}),je&&e.jsx(oe,{onClick:F,variant:O.Info,disabled:n.isCancelling||n.isProcessing&&f.isSuccessful,children:"Start Over"}),le&&e.jsx(oe,{onClick:D,variant:O.Info,children:"Go Back"})]})]})})}function qs({label:s,enabled:a,setEnabled:t,a11yTitle:r,size:l=T.md,disabled:i=!1,className:c}){return e.jsxs(ge.Group,{as:"div",className:"m-1",children:[e.jsxs(ge,{checked:i?!1:a,onChange:t,className:w("flex relative border-secondary-30 rounded-full m-0","shrink-0 focus:outline-none ring-secondary-300 ring-opacity-60 ring-offset ring-offset-secondary-100 focus:border-secondary-500 focus-visible:ring-opacity-75","transition duration-200 ease-in-out",a?"bg-secondary-500":"bg-secondary-20",c,i?"opacity-50 cursor-not-allowed":"cursor-pointer",l===T.sm&&"h-[14px] w-6 focus:ring-1 border",l===T.md&&"h-5 w-10 focus:ring-2 border-2",l===T.lg&&"h-7 w-14 focus:ring-4 border-2"),disabled:i,children:[e.jsx("span",{className:"sr-only",children:r}),e.jsx("span",{"aria-hidden":"true",className:w("pointer-events-none inline-block transform rounded-full shadow-md transition duration-200 ease-in-out","bg-light",l===T.sm&&"h-3 w-3",l===T.md&&"h-4 w-4",l===T.lg&&"h-6 w-6",a&&l===T.sm&&"translate-x-[10px]",a&&l===T.md&&"translate-x-5",a&&l===T.lg&&"translate-x-7")})]}),s!=null&&e.jsx(ge.Label,{className:w("text-xs font-light ml-1 text-neutral-600 dark:text-neutral-400"),children:s})]})}function q({label:s,info:a,enabled:t,disabled:r=!1,setEnabled:l,className:i}){return e.jsxs("div",{className:w("flex justify-between",i),children:[e.jsxs("label",{className:"block mb-1 px-3 text-sm font-bold",children:[s,e.jsx("small",{className:"block text-xs text-neutral-500",children:a})]}),e.jsx(qs,{disabled:r,enabled:t,setEnabled:l,size:T.lg})]})}function Ws({disabled:s=!1,className:a}){const t=Ne(),{start:r,end:l,isInitialPlanRun:i}=W();return e.jsxs("div",{className:w("flex w-full flex-wrap md:flex-nowrap",a),children:[e.jsx(K,{className:"w-full md:w-[50%]",label:"Start Date (UTC)",info:"The start datetime of the interval",disabled:s||i,children:({disabled:c,className:u})=>e.jsx(K.Textfield,{className:w(u,"w-full"),disabled:c,placeholder:"2023-12-13",value:r,onInput:o=>{o.stopPropagation(),t({type:R.DateStart,start:o.target.value})}})}),e.jsx(K,{className:"w-full md:w-[50%]",label:"End Date (UTC)",info:"The end datetime of the interval",disabled:s||i,children:({disabled:c,className:u})=>e.jsx(K.Textfield,{className:w(u,"w-full"),disabled:c,placeholder:"2022-12-13",value:l,onInput:o=>{o.stopPropagation(),t({type:R.DateEnd,end:o.target.value})}})})]})}function Ys(){const s=Ne(),{skip_tests:a,no_gaps:t,skip_backfill:r,forward_only:l,auto_apply:i,no_auto_categorization:c,restate_models:u,isInitialPlanRun:o,create_from:d,include_unmodified:m}=W(),n=v.useRef(null),h=j(N=>N.planAction),p=j(N=>N.planOverview),f=j(N=>N.planApply),x=_(N=>N.environment),F=_(N=>N.environments),B=De.getOnlyRemote(Array.from(F));v.useEffect(()=>{s({type:R.PlanOptions,...p.plan_options,skip_tests:!1})},[]);const D=h.isProcessing||h.isDone||f.isFinished||p.isLatest&&C(h.isRun)||p.isVirtualUpdate;return v.useEffect(()=>{var N;E(n.current)||h.isProcessing&&n.current.classList.contains("--is-open")&&((N=n.current)==null||N.click())},[n,h]),e.jsxs("form",{className:"w-full",children:[e.jsx("fieldset",{className:w(D&&"opacity-50 cursor-not-allowed"),children:e.jsx(Ws,{className:w(D&&"pointer-events-none")})}),e.jsx("fieldset",{className:"my-2",children:e.jsx(S,{children:e.jsx(L,{defaultOpen:h.isRun,children:({open:N})=>e.jsxs(e.Fragment,{children:[e.jsxs(L.Button,{ref:n,className:w("w-full flex items-center",N&&"--is-open"),children:[e.jsxs(S.Label,{className:"mr-2 text-sm w-full",children:[e.jsx("span",{children:"Additional Options"}),D&&e.jsx("span",{className:"ml-1",children:"(Read Only)"})]}),N?e.jsx(ke,{className:"h-5 w-5 text-neutral-400"}):e.jsx(Pe,{className:"h-5 w-5 text-neutral-400"})]}),e.jsxs(L.Panel,{unmount:!1,className:w("py-4 text-sm text-neutral-500",D&&"opacity-50 cursor-not-allowed"),children:[e.jsx("div",{className:w(D&&"pointer-events-none"),children:e.jsxs("div",{className:"flex flex-wrap md:flex-nowrap",children:[C(x.isProd)&&e.jsx(K,{className:"w-full",label:"Create From Environment",info:"The environment to base the plan on rather than local files",disabled:B.length<2,children:({className:k,disabled:g})=>e.jsx(K.Selector,{className:w(k,"w-full"),list:De.getOnlyRemote(Array.from(F)).filter(P=>P!==x).map(P=>({value:P.name,text:P.name})),onChange:P=>{s({type:R.PlanOptions,create_from:P})},value:d,disabled:g})}),e.jsx(K,{className:"w-full",label:"Restate Models",info:`Restate data for specified models and models
1
+ import{r as v,R as J,a as _,j as e,m as O,s as Qe,b as C,B as oe,v as E,l as T,c as w,M as De,f as V,I as Xe,J as de,i as I,K as Q,g as H,T as Me,H as ue,P as ye,C as es,A as $,q as ss,L as as,d as ns,k as ts,o as ls,p as is,Q as rs,U as os,e as cs}from"./index-Co-_3xPI.js";import{u as W,S as ds,A as us,a as Ne,b as R,E as A,P as z,c as ms}from"./SelectEnvironment-DRt5ys9a.js";import{u as j,a as Y,E as M}from"./plan-BIz0iaor.js";import{B as S}from"./Banner-C3VTntGq.js";import{V as L,F as ke,a as Pe,p as ps}from"./PlusCircleIcon-Bk7UCkgh.js";import{K as fs,L as $e,V as hs,y as xs,p as js,o as ce,$ as vs,W as gs,X as ys,_ as ws,Y as bs,a as Re,Z as Ns,z as se}from"./popover-BXDPVmB7.js";import{I as K}from"./Input-D4nBSMWJ.js";import{H as ks,V as Ps,Q as Ts,w as Cs,u as Fs,a as As,l as Ss,T as Ds,N as Rs,U as Es,j as Bs,p as _s}from"./ListboxShow-BWNLIBMH.js";import{u as ze}from"./project-H8d6rukl.js";import{F as we}from"./context-NpzoJDLp.js";import"./ModelLineage-c5SOHuSl.js";import"./editor-B8OcqW2l.js";import"./file-D-wqO8gv.js";import"./SearchList-87imxiuX.js";import"./help-6Q7f7fjd.js";import"./floating-ui.react-dom-BrhHyVvs.js";import"./ChevronDownIcon-qm4bu8e3.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./SourceList-Cfd2Hs4e.js";import"./index-xGKh539i.js";function Os({title:s,titleId:a,...t},r){return v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":a},t),s?v.createElement("title",{id:a},s):null,v.createElement("path",{fillRule:"evenodd",d:"M16.704 4.153a.75.75 0 0 1 .143 1.052l-8 10.5a.75.75 0 0 1-1.127.075l-4.5-4.5a.75.75 0 0 1 1.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 0 1 1.05-.143Z",clipRule:"evenodd"}))}const X=v.forwardRef(Os);let Te=v.createContext(null);Te.displayName="GroupContext";let Is=v.Fragment;function Ms(s){var a;let[t,r]=v.useState(null),[l,i]=Ts(),[c,u]=Cs(),o=v.useMemo(()=>({switch:t,setSwitch:r}),[t,r]),d={},m=s,n=$e();return J.createElement(u,{name:"Switch.Description",value:c},J.createElement(i,{name:"Switch.Label",value:l,props:{htmlFor:(a=o.switch)==null?void 0:a.id,onClick(h){t&&(hs(h.currentTarget)&&h.preventDefault(),t.click(),t.focus({preventScroll:!0}))}}},J.createElement(Te.Provider,{value:o},n({ourProps:d,theirProps:m,slot:{},defaultTag:Is,name:"Switch.Group"}))))}let $s="button";function zs(s,a){var t;let r=v.useId(),l=Fs(),i=As(),{id:c=l||`headlessui-switch-${r}`,disabled:u=i||!1,checked:o,defaultChecked:d,onChange:m,name:n,value:h,form:p,autoFocus:f=!1,...x}=s,F=v.useContext(Te),[B,D]=v.useState(null),N=v.useRef(null),k=xs(N,a,F===null?null:F.setSwitch,D),g=Ss(d),[P,Z]=Ds(o,m,g??!1),je=js(),[le,b]=v.useState(!1),ie=ce(()=>{b(!0),Z==null||Z(!P),je.nextFrame(()=>{b(!1)})}),re=ce(U=>{if(Ns(U.currentTarget))return U.preventDefault();U.preventDefault(),ie()}),ve=ce(U=>{U.key===Re.Space?(U.preventDefault(),ie()):U.key===Re.Enter&&_s(U.currentTarget)}),Le=ce(U=>U.preventDefault()),Ve=Rs(),Ge=Es(),{isFocusVisible:Fe,focusProps:He}=vs({autoFocus:f}),{isHovered:Ae,hoverProps:Ke}=gs({isDisabled:u}),{pressed:Se,pressProps:Ze}=ys({disabled:u}),qe=v.useMemo(()=>({checked:P,disabled:u,hover:Ae,focus:Fe,active:Se,autofocus:f,changing:le}),[P,Ae,Fe,Se,u,le,f]),We=ws({id:c,ref:k,role:"switch",type:bs(s,B),tabIndex:s.tabIndex===-1?0:(t=s.tabIndex)!=null?t:0,"aria-checked":P,"aria-labelledby":Ve,"aria-describedby":Ge,disabled:u||void 0,autoFocus:f,onClick:re,onKeyUp:ve,onKeyPress:Le},He,Ke,Ze),Ye=v.useCallback(()=>{if(g!==void 0)return Z==null?void 0:Z(g)},[Z,g]),Je=$e();return J.createElement(J.Fragment,null,n!=null&&J.createElement(Bs,{disabled:u,data:{[n]:h||"on"},overrides:{type:"checkbox",checked:P},form:p,onReset:Ye}),Je({ourProps:We,theirProps:x,slot:qe,defaultTag:$s,name:"Switch"}))}let Us=fs(zs),Ls=Ms,Vs=Ps,Gs=ks,ge=Object.assign(Us,{Group:Ls,Label:Vs,Description:Gs});function Hs(){const s=_(a=>a.environment);return e.jsx("div",{className:"flex flex-col px-4 py-2 w-full",children:e.jsx(S,{variant:O.Warning,children:e.jsx(L,{defaultOpen:!1,children:({open:a})=>e.jsxs(e.Fragment,{children:[e.jsxs(L.Button,{className:"w-full flex items-center justify-between",children:[e.jsx(S.Label,{className:"w-full",children:s.isInitialProd?"Initializing Prod Environment":"Prod Environment"}),s.isInitialProd&&e.jsx(e.Fragment,{children:a?e.jsx(ke,{className:"w-5 text-warning-500"}):e.jsx(Pe,{className:"w-5 text-warning-500"})})]}),s.isInitialProd&&e.jsx(L.Panel,{className:"px-2 text-sm mt-2",children:e.jsx(S.Description,{children:"Prod will be completely backfilled in order to ensure there are no data gaps. After this is applied, it is recommended to validate further changes in a dev environment before deploying to production."})})]})})})})}function Ks(s=0){return v.useCallback(a=>{setTimeout(()=>{a==null||a.focus()},s)},[s])}function Zs({run:s,apply:a,cancel:t,reset:r}){const l=Qe(),{change_categorization:i}=W(),c=_(b=>b.modules),u=_(b=>b.environment),o=_(b=>b.environments),d=_(b=>b.addConfirmation),m=_(b=>b.setShowConfirmation),n=j(b=>b.planAction),h=j(b=>b.planOverview),p=j(b=>b.planApply),f=j(b=>b.planCancel),x=Ks();function F(b){b.stopPropagation(),r()}function B(b){b.stopPropagation(),t()}function D(b){b.stopPropagation(),l(-1)}function N(b){b.stopPropagation();const ie=u.isProd&&C(u.isInitial),re=Array.from(i.values()).some(ve=>E(ve.category));ie?d({headline:"Applying Plan Directly On Prod Environment!",tagline:"Safer choice will be to select or add new environment first.",description:"Are you sure you want to apply your changes directly on prod?",yesText:`Yes, Run ${u.name}`,noText:"No, Cancel",action:a,details:re?["ATTENTION!","[Breaking Change] category will be applied to all uncategorized changes"]:void 0,children:e.jsxs("div",{className:"mt-5 pt-4",children:[e.jsx("h4",{className:"mb-2",children:`${o.size>1?"Select or ":""}Add Environment`}),e.jsxs("div",{className:"flex items-center relative",children:[o.size>1&&e.jsx(ds,{className:"mr-2",showAddEnvironment:!1,onSelect:()=>{m(!1)},size:T.md}),e.jsx(us,{className:"w-full",size:T.md,onAdd:()=>{m(!1)}})]})]})}):re?d({headline:"Some changes are missing categorization!",description:"Are you sure you want to proceed?",details:["[Breaking Change] category will be applied to all uncategorized changes"],yesText:"Yes, Apply",noText:"No, Cancel",action:a}):a()}function k(b){b.stopPropagation(),s()}const g=h.isFailed||p.isFailed||f.isSuccessful,P=C(n.isCancelling)&&C(n.isDone)&&(n.isProcessing?C(f.isSuccessful):!0)&&C(g),Z=n.isApplying||f.isCancelling||p.isRunning&&h.isFinished,je=g||C(n.isProcessing)&&C(n.isRun)&&C(n.isDone),le=c.showHistoryNavigation;return e.jsx(e.Fragment,{children:e.jsxs("div",{className:"flex justify-between pt-2 pl-4 pr-2 pb-2",children:[e.jsx("div",{className:"flex w-full items-center",children:e.jsx(se,{appear:!0,show:P,enter:"transition ease duration-300 transform",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"transition ease duration-300 transform",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",className:"trasition-all duration-300 ease-in-out",as:"div",children:P&&e.jsx(oe,{disabled:n.isProcessing||f.isSuccessful||n.isDone,onClick:n.isRun?k:f.isSuccessful?void 0:N,ref:x,variant:f.isSuccessful?O.Danger:O.Primary,autoFocus:!0,className:"trasition-all duration-300 ease-in-out",children:e.jsx("span",{children:Y.getActionDisplayName(n,f.isSuccessful?[]:[M.RunningTask,M.Running,M.Run,M.Applying,M.ApplyBackfill,M.ApplyVirtual,M.ApplyChangesAndBackfill,M.ApplyMetadata],f.isSuccessful?"Canceled":"Done")})})})}),e.jsxs("div",{className:"flex items-center",children:[Z&&e.jsx(oe,{onClick:B,variant:O.Danger,disabled:n.isCancelling||n.isProcessing&&f.isSuccessful,children:Y.getActionDisplayName(n,n.isProcessing&&C(f.isSuccessful)?[M.Cancelling]:[],f.isSuccessful?"Finishing Cancellation...":"Cancel")}),je&&e.jsx(oe,{onClick:F,variant:O.Info,disabled:n.isCancelling||n.isProcessing&&f.isSuccessful,children:"Start Over"}),le&&e.jsx(oe,{onClick:D,variant:O.Info,children:"Go Back"})]})]})})}function qs({label:s,enabled:a,setEnabled:t,a11yTitle:r,size:l=T.md,disabled:i=!1,className:c}){return e.jsxs(ge.Group,{as:"div",className:"m-1",children:[e.jsxs(ge,{checked:i?!1:a,onChange:t,className:w("flex relative border-secondary-30 rounded-full m-0","shrink-0 focus:outline-none ring-secondary-300 ring-opacity-60 ring-offset ring-offset-secondary-100 focus:border-secondary-500 focus-visible:ring-opacity-75","transition duration-200 ease-in-out",a?"bg-secondary-500":"bg-secondary-20",c,i?"opacity-50 cursor-not-allowed":"cursor-pointer",l===T.sm&&"h-[14px] w-6 focus:ring-1 border",l===T.md&&"h-5 w-10 focus:ring-2 border-2",l===T.lg&&"h-7 w-14 focus:ring-4 border-2"),disabled:i,children:[e.jsx("span",{className:"sr-only",children:r}),e.jsx("span",{"aria-hidden":"true",className:w("pointer-events-none inline-block transform rounded-full shadow-md transition duration-200 ease-in-out","bg-light",l===T.sm&&"h-3 w-3",l===T.md&&"h-4 w-4",l===T.lg&&"h-6 w-6",a&&l===T.sm&&"translate-x-[10px]",a&&l===T.md&&"translate-x-5",a&&l===T.lg&&"translate-x-7")})]}),s!=null&&e.jsx(ge.Label,{className:w("text-xs font-light ml-1 text-neutral-600 dark:text-neutral-400"),children:s})]})}function q({label:s,info:a,enabled:t,disabled:r=!1,setEnabled:l,className:i}){return e.jsxs("div",{className:w("flex justify-between",i),children:[e.jsxs("label",{className:"block mb-1 px-3 text-sm font-bold",children:[s,e.jsx("small",{className:"block text-xs text-neutral-500",children:a})]}),e.jsx(qs,{disabled:r,enabled:t,setEnabled:l,size:T.lg})]})}function Ws({disabled:s=!1,className:a}){const t=Ne(),{start:r,end:l,isInitialPlanRun:i}=W();return e.jsxs("div",{className:w("flex w-full flex-wrap md:flex-nowrap",a),children:[e.jsx(K,{className:"w-full md:w-[50%]",label:"Start Date (UTC)",info:"The start datetime of the interval",disabled:s||i,children:({disabled:c,className:u})=>e.jsx(K.Textfield,{className:w(u,"w-full"),disabled:c,placeholder:"2023-12-13",value:r,onInput:o=>{o.stopPropagation(),t({type:R.DateStart,start:o.target.value})}})}),e.jsx(K,{className:"w-full md:w-[50%]",label:"End Date (UTC)",info:"The end datetime of the interval",disabled:s||i,children:({disabled:c,className:u})=>e.jsx(K.Textfield,{className:w(u,"w-full"),disabled:c,placeholder:"2022-12-13",value:l,onInput:o=>{o.stopPropagation(),t({type:R.DateEnd,end:o.target.value})}})})]})}function Ys(){const s=Ne(),{skip_tests:a,no_gaps:t,skip_backfill:r,forward_only:l,auto_apply:i,no_auto_categorization:c,restate_models:u,isInitialPlanRun:o,create_from:d,include_unmodified:m}=W(),n=v.useRef(null),h=j(N=>N.planAction),p=j(N=>N.planOverview),f=j(N=>N.planApply),x=_(N=>N.environment),F=_(N=>N.environments),B=De.getOnlyRemote(Array.from(F));v.useEffect(()=>{s({type:R.PlanOptions,...p.plan_options,skip_tests:!1})},[]);const D=h.isProcessing||h.isDone||f.isFinished||p.isLatest&&C(h.isRun)||p.isVirtualUpdate;return v.useEffect(()=>{var N;E(n.current)||h.isProcessing&&n.current.classList.contains("--is-open")&&((N=n.current)==null||N.click())},[n,h]),e.jsxs("form",{className:"w-full",children:[e.jsx("fieldset",{className:w(D&&"opacity-50 cursor-not-allowed"),children:e.jsx(Ws,{className:w(D&&"pointer-events-none")})}),e.jsx("fieldset",{className:"my-2",children:e.jsx(S,{children:e.jsx(L,{defaultOpen:h.isRun,children:({open:N})=>e.jsxs(e.Fragment,{children:[e.jsxs(L.Button,{ref:n,className:w("w-full flex items-center",N&&"--is-open"),children:[e.jsxs(S.Label,{className:"mr-2 text-sm w-full",children:[e.jsx("span",{children:"Additional Options"}),D&&e.jsx("span",{className:"ml-1",children:"(Read Only)"})]}),N?e.jsx(ke,{className:"h-5 w-5 text-neutral-400"}):e.jsx(Pe,{className:"h-5 w-5 text-neutral-400"})]}),e.jsxs(L.Panel,{unmount:!1,className:w("py-4 text-sm text-neutral-500",D&&"opacity-50 cursor-not-allowed"),children:[e.jsx("div",{className:w(D&&"pointer-events-none"),children:e.jsxs("div",{className:"flex flex-wrap md:flex-nowrap",children:[C(x.isProd)&&e.jsx(K,{className:"w-full",label:"Create From Environment",info:"The environment to base the plan on rather than local files",disabled:B.length<2,children:({className:k,disabled:g})=>e.jsx(K.Selector,{className:w(k,"w-full"),list:De.getOnlyRemote(Array.from(F)).filter(P=>P!==x).map(P=>({value:P.name,text:P.name})),onChange:P=>{s({type:R.PlanOptions,create_from:P})},value:d,disabled:g})}),e.jsx(K,{className:"w-full",label:"Restate Models",info:`Restate data for specified models and models
2
2
  downstream from the one specified. For production
3
3
  environment, all related model versions will have
4
4
  their intervals wiped, but only the current
@@ -1 +1 @@
1
- import{d as a,Q as l,v as e,j as r,U as n,e as d}from"./index-DyVIXHW8.js";import{D as u}from"./ReportErrors-D15tD0Jx.js";import"./PlusCircleIcon-Cl1cWT27.js";import"./popover-CViXjwzR.js";import"./floating-ui.react-dom-tGq145Jn.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./SplitPane-X49qF_M2.js";function v(){const{errors:i}=a(),{id:o}=l(),s=e(o)?void 0:Array.from(i).find(t=>t.id===o);return r.jsx("div",{className:"flex overflow-auto w-full h-full",children:e(s)?r.jsx(n,{link:d.Errors,description:e(o)?void 0:`Error ${o} Does Not Exist`,message:"Back To Errors"}):r.jsx("div",{className:"p-4 h-full w-full",children:r.jsx("div",{className:"w-full h-full p-4 rounded-lg bg-danger-5 text-danger-700",children:r.jsx(u,{error:s,scope:s.key,withSplitPane:!0})})})})}export{v as default};
1
+ import{d as a,Q as l,v as e,j as r,U as n,e as d}from"./index-Co-_3xPI.js";import{D as u}from"./ReportErrors-DfzGQ2eY.js";import"./PlusCircleIcon-Bk7UCkgh.js";import"./popover-BXDPVmB7.js";import"./floating-ui.react-dom-BrhHyVvs.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./SplitPane-p-JrHTOr.js";function v(){const{errors:i}=a(),{id:o}=l(),s=e(o)?void 0:Array.from(i).find(t=>t.id===o);return r.jsx("div",{className:"flex overflow-auto w-full h-full",children:e(s)?r.jsx(n,{link:d.Errors,description:e(o)?void 0:`Error ${o} Does Not Exist`,message:"Back To Errors"}):r.jsx("div",{className:"p-4 h-full w-full",children:r.jsx("div",{className:"w-full h-full p-4 rounded-lg bg-danger-5 text-danger-700",children:r.jsx(u,{error:s,scope:s.key,withSplitPane:!0})})})})}export{v as default};
@@ -1 +1 @@
1
- import{Q as x,a as m,v as h,P as a,a4 as c,a5 as D,a6 as P,r as T,j as u}from"./index-DyVIXHW8.js";import{g as b,T as g}from"./help-Iv3AQtFM.js";import{u as r}from"./editor-BNLMfBQ6.js";import"./index-Dafo7IQA.js";import"./floating-ui.react-dom-tGq145Jn.js";import"./Input-ta8tMqGc.js";import"./file-DYQzDhLd.js";const d=24*60*60*1e3;function S(){const{modelName:o}=x(),p=m(e=>e.models),s=m(e=>e.lastSelectedModel),v=r(e=>e.previewTable),i=r(e=>e.setPreviewQuery),n=r(e=>e.setPreviewTable),t=h(o)||o===(s==null?void 0:s.name)?s:p.get(encodeURI(o)),l={model:t.displayName,start:a(c(Date.now()-d)),end:a(new Date),execution_time:a(c(Date.now()-d)),limit:1e3},{refetch:f}=D(l),{refetch:w}=P(l);return T.useEffect(()=>{i(void 0),n(void 0),f().then(({data:e})=>{i(e==null?void 0:e.sql)}),w().then(({data:e})=>{n(b(e))})},[t]),u.jsx("div",{className:"flex overflow-hidden w-full h-full px-2",children:u.jsx(g,{headline:t==null?void 0:t.displayName,data:v??[[],[]]})})}export{S as default};
1
+ import{Q as x,a as m,v as h,P as a,a4 as c,a5 as D,a6 as P,r as T,j as u}from"./index-Co-_3xPI.js";import{g as b,T as g}from"./help-CQWPRUV2.js";import{u as r}from"./editor-B8OcqW2l.js";import"./index-xGKh539i.js";import"./floating-ui.react-dom-BrhHyVvs.js";import"./Input-D4nBSMWJ.js";import"./file-D-wqO8gv.js";const d=24*60*60*1e3;function S(){const{modelName:o}=x(),p=m(e=>e.models),s=m(e=>e.lastSelectedModel),v=r(e=>e.previewTable),i=r(e=>e.setPreviewQuery),n=r(e=>e.setPreviewTable),t=h(o)||o===(s==null?void 0:s.name)?s:p.get(encodeURI(o)),l={model:t.displayName,start:a(c(Date.now()-d)),end:a(new Date),execution_time:a(c(Date.now()-d)),limit:1e3},{refetch:f}=D(l),{refetch:w}=P(l);return T.useEffect(()=>{i(void 0),n(void 0),f().then(({data:e})=>{i(e==null?void 0:e.sql)}),w().then(({data:e})=>{n(b(e))})},[t]),u.jsx("div",{className:"flex overflow-hidden w-full h-full px-2",children:u.jsx(g,{headline:t==null?void 0:t.displayName,data:v??[[],[]]})})}export{S as default};