sqlmesh 0.189.3.dev9__py3-none-any.whl → 0.189.3.dev10__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 (53) hide show
  1. sqlmesh/_version.py +2 -2
  2. sqlmesh/lsp/custom.py +27 -0
  3. sqlmesh/lsp/main.py +26 -0
  4. {sqlmesh-0.189.3.dev9.dist-info → sqlmesh-0.189.3.dev10.dist-info}/METADATA +1 -1
  5. {sqlmesh-0.189.3.dev9.dist-info → sqlmesh-0.189.3.dev10.dist-info}/RECORD +52 -52
  6. web/client/dist/assets/{Audits-DB1HcP9M.js → Audits-Bvr7M5Cg.js} +1 -1
  7. web/client/dist/assets/{Banner-DNY__4sG.js → Banner-B_rJvh8O.js} +1 -1
  8. web/client/dist/assets/{ChevronDownIcon-lHn9zjvd.js → ChevronDownIcon-SZg7zD3B.js} +1 -1
  9. web/client/dist/assets/{ChevronRightIcon-oQ5f5ZGP.js → ChevronRightIcon-BGlTDFlW.js} +1 -1
  10. web/client/dist/assets/{Content-QpBh5BIf.js → Content-BX5bHEIM.js} +1 -1
  11. web/client/dist/assets/{Content-Da0wstVW.js → Content-DuTflNnu.js} +1 -1
  12. web/client/dist/assets/{Data-C7p96ruh.js → Data--_LvHKB5.js} +1 -1
  13. web/client/dist/assets/{DataCatalog-C7cUGv8x.js → DataCatalog-CDUa7UBO.js} +2 -2
  14. web/client/dist/assets/{Editor-B6PRl__L.js → Editor---NX-EOB.js} +1 -1
  15. web/client/dist/assets/{Editor-S5kDO3v1.js → Editor-ClU6zMcH.js} +1 -1
  16. web/client/dist/assets/{Errors-CxCutNFm.js → Errors-lzXHPiom.js} +1 -1
  17. web/client/dist/assets/{FileExplorer-kP-IjmYP.js → FileExplorer-CB7x6Zt5.js} +1 -1
  18. web/client/dist/assets/{Footer-rRlYYZGX.js → Footer-C0X7AnA5.js} +1 -1
  19. web/client/dist/assets/{Header-DWsJQ7Zd.js → Header-T0redAYU.js} +1 -1
  20. web/client/dist/assets/{Input-DdPN19Px.js → Input-BQqcM0yt.js} +1 -1
  21. web/client/dist/assets/Lineage-Z_rKyQjf.js +1 -0
  22. web/client/dist/assets/{ListboxShow-BmQk-sC6.js → ListboxShow-DrRCf9sL.js} +1 -1
  23. web/client/dist/assets/{ModelLineage-Cb-ryU8k.js → ModelLineage-DC1kbGVO.js} +1 -1
  24. web/client/dist/assets/{Models-Bv0YKo6C.js → Models-nG2g7q6-.js} +1 -1
  25. web/client/dist/assets/{Page-C-F04Qw-.js → Page-BQKUIqng.js} +1 -1
  26. web/client/dist/assets/{Plan-DfF6_rdE.js → Plan-C0T4Faqg.js} +1 -1
  27. web/client/dist/assets/{PlusCircleIcon-D8BJTuwF.js → PlusCircleIcon-BDES6aDU.js} +1 -1
  28. web/client/dist/assets/{ReportErrors-BR3yV5Ru.js → ReportErrors-Cuv4D77y.js} +1 -1
  29. web/client/dist/assets/{Root-gCyYAZOq.js → Root-q1MHWtlB.js} +1 -1
  30. web/client/dist/assets/{SearchList-Mw4DP7x1.js → SearchList-BU76SGzL.js} +6 -6
  31. web/client/dist/assets/{SelectEnvironment-C-I8dl8g.js → SelectEnvironment-BtI6wkY7.js} +1 -1
  32. web/client/dist/assets/{SourceList-nJbKxW-u.js → SourceList-C1RxJTpZ.js} +1 -1
  33. web/client/dist/assets/{SourceListItem-Cpx6p_wh.js → SourceListItem-BTqd6jLB.js} +1 -1
  34. web/client/dist/assets/{SplitPane-CwtTNpO8.js → SplitPane-zgn_nUAw.js} +1 -1
  35. web/client/dist/assets/{Tests-BKeeabY_.js → Tests-CK6uzr59.js} +1 -1
  36. web/client/dist/assets/{Welcome-D191sGJC.js → Welcome-DKlRE9Lt.js} +1 -1
  37. web/client/dist/assets/{context-5PbIKqqT.js → context-CHLxBWS9.js} +1 -1
  38. web/client/dist/assets/{context-CVkhr9QB.js → context-CzXAuYu4.js} +3 -3
  39. web/client/dist/assets/{editor-DWINdd81.js → editor-A537AE0N.js} +1 -1
  40. web/client/dist/assets/{file-e9qyDfWg.js → file-DfM1ePvm.js} +1 -1
  41. web/client/dist/assets/{floating-ui.react-dom-B-NNWGkz.js → floating-ui.react-dom-DhdjjAk5.js} +1 -1
  42. web/client/dist/assets/{help-CjbSQwWi.js → help-DtSFwTCR.js} +1 -1
  43. web/client/dist/assets/{index-BZGZqBUO.js → index-BBxFj1Oj.js} +1 -1
  44. web/client/dist/assets/{index-BkNpRAHt.js → index-DvOWtL0R.js} +1 -1
  45. web/client/dist/assets/{plan-C2UHjG7p.js → plan-Bm6MqEdG.js} +1 -1
  46. web/client/dist/assets/{popover-C8e3ENo3.js → popover-nHJ-KXbz.js} +1 -1
  47. web/client/dist/assets/{project-BDZ1fnja.js → project-B1HtWBfw.js} +1 -1
  48. web/client/dist/index.html +1 -1
  49. web/client/dist/assets/Lineage-BQJPyHVL.js +0 -1
  50. {sqlmesh-0.189.3.dev9.dist-info → sqlmesh-0.189.3.dev10.dist-info}/WHEEL +0 -0
  51. {sqlmesh-0.189.3.dev9.dist-info → sqlmesh-0.189.3.dev10.dist-info}/entry_points.txt +0 -0
  52. {sqlmesh-0.189.3.dev9.dist-info → sqlmesh-0.189.3.dev10.dist-info}/licenses/LICENSE +0 -0
  53. {sqlmesh-0.189.3.dev9.dist-info → sqlmesh-0.189.3.dev10.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.189.3.dev9'
21
- __version_tuple__ = version_tuple = (0, 189, 3, 'dev9')
20
+ __version__ = version = '0.189.3.dev10'
21
+ __version_tuple__ = version_tuple = (0, 189, 3, 'dev10')
sqlmesh/lsp/custom.py CHANGED
@@ -72,3 +72,30 @@ class AllModelsForRenderResponse(PydanticModel):
72
72
  """
73
73
 
74
74
  models: t.List[ModelForRendering]
75
+
76
+
77
+ SUPPORTED_METHODS_FEATURE = "sqlmesh/supported_methods"
78
+
79
+
80
+ class SupportedMethodsRequest(PydanticModel):
81
+ """
82
+ Request to get all supported custom LSP methods.
83
+ """
84
+
85
+ pass
86
+
87
+
88
+ class CustomMethod(PydanticModel):
89
+ """
90
+ Information about a custom LSP method.
91
+ """
92
+
93
+ name: str
94
+
95
+
96
+ class SupportedMethodsResponse(PydanticModel):
97
+ """
98
+ Response containing all supported custom LSP methods.
99
+ """
100
+
101
+ methods: t.List[CustomMethod]
sqlmesh/lsp/main.py CHANGED
@@ -29,12 +29,16 @@ from sqlmesh.lsp.custom import (
29
29
  ALL_MODELS_FEATURE,
30
30
  ALL_MODELS_FOR_RENDER_FEATURE,
31
31
  RENDER_MODEL_FEATURE,
32
+ SUPPORTED_METHODS_FEATURE,
32
33
  AllModelsRequest,
33
34
  AllModelsResponse,
34
35
  AllModelsForRenderRequest,
35
36
  AllModelsForRenderResponse,
36
37
  RenderModelRequest,
37
38
  RenderModelResponse,
39
+ SupportedMethodsRequest,
40
+ SupportedMethodsResponse,
41
+ CustomMethod,
38
42
  )
39
43
  from sqlmesh.lsp.hints import get_hints
40
44
  from sqlmesh.lsp.reference import get_references, get_cte_references
@@ -42,6 +46,14 @@ from sqlmesh.lsp.uri import URI
42
46
  from web.server.api.endpoints.lineage import column_lineage, model_lineage
43
47
  from web.server.api.endpoints.models import get_models
44
48
 
49
+ SUPPORTED_CUSTOM_METHODS = [
50
+ ALL_MODELS_FEATURE,
51
+ RENDER_MODEL_FEATURE,
52
+ ALL_MODELS_FOR_RENDER_FEATURE,
53
+ API_FEATURE,
54
+ SUPPORTED_METHODS_FEATURE,
55
+ ]
56
+
45
57
 
46
58
  class SQLMeshLanguageServer:
47
59
  def __init__(
@@ -149,6 +161,20 @@ class SQLMeshLanguageServer:
149
161
  models=self.lsp_context.list_of_models_for_rendering()
150
162
  )
151
163
 
164
+ @self.server.feature(SUPPORTED_METHODS_FEATURE)
165
+ def supported_methods(
166
+ ls: LanguageServer, params: SupportedMethodsRequest
167
+ ) -> SupportedMethodsResponse:
168
+ """Return all supported custom LSP methods."""
169
+ return SupportedMethodsResponse(
170
+ methods=[
171
+ CustomMethod(
172
+ name=name,
173
+ )
174
+ for name in SUPPORTED_CUSTOM_METHODS
175
+ ]
176
+ )
177
+
152
178
  @self.server.feature(API_FEATURE)
153
179
  def api(ls: LanguageServer, request: ApiRequest) -> t.Dict[str, t.Any]:
154
180
  ls.log_trace(f"API request: {request}")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sqlmesh
3
- Version: 0.189.3.dev9
3
+ Version: 0.189.3.dev10
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=QjwaamJIdW7voXoS880yAx7tHm-Im4_mqGA-XJgafos,7631
2
- sqlmesh/_version.py,sha256=PswVjwpsndD4dtblRGZmYxzHJiU0lwRX8it8w0djGPo,528
2
+ sqlmesh/_version.py,sha256=FJkjszzzHetna4ZyMF5hpNdbQOzIbMjc_E5XAYytY2I,530
3
3
  sqlmesh/magics.py,sha256=gjzoxREb1XT8Yho_PQMlMqhhkLq_sEfBM8S3PTgxvWE,40337
4
4
  sqlmesh/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  sqlmesh/cicd/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -161,10 +161,10 @@ sqlmesh/integrations/github/cicd/controller.py,sha256=IgUWK9orYSMiElO3GaL6Ja-osF
161
161
  sqlmesh/lsp/api.py,sha256=LJdECSaEZoPbu_Xl4KscVG-WLt7_g4dY-zKGO68dH14,2162
162
162
  sqlmesh/lsp/completions.py,sha256=Y6zNKNne91tzRm5vRk82JmhIpo7dIBUoK8GGQesGlT8,5746
163
163
  sqlmesh/lsp/context.py,sha256=36bUTiMSyfX91bri_F1aivDvSllq0rKidIM_RGAtirs,6253
164
- sqlmesh/lsp/custom.py,sha256=Mml6V1nYAHdP4Zt8gxly1ZLKYALtxGeAVzPrrYpc7m8,1426
164
+ sqlmesh/lsp/custom.py,sha256=0kiztcI_UyttXcIsDQ4tUzeaTtp-Yb-5A0ZzrkLLvB8,1880
165
165
  sqlmesh/lsp/description.py,sha256=4QIGC9ix8IzmWF6DVUNhY4m1Crk3sNQA6hZ1RbyqU78,827
166
166
  sqlmesh/lsp/hints.py,sha256=j-blccBUil94yRoDjWfkSM0HqMmsKD6hP2TaWdWWVk4,3734
167
- sqlmesh/lsp/main.py,sha256=c1h1hWluBixEFZEX2jiBjA_EOgguruaG9cSLjCrEPr8,33581
167
+ sqlmesh/lsp/main.py,sha256=FckdvGADwFwvWT3XxyfDOdKqxfujeTZVUg4MbCVbOaU,34355
168
168
  sqlmesh/lsp/reference.py,sha256=dyeacD_MHATGRIrl8Ax86nDK9EC_dh3TaaVNAepPce0,17902
169
169
  sqlmesh/lsp/uri.py,sha256=mvSLbZGmMTHPpliThOtVWiFcHnfJzp1w39q9l-xD2SI,802
170
170
  sqlmesh/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -274,53 +274,53 @@ sqlmesh/utils/pydantic.py,sha256=I898jAFqa3qU6lG2uPpRebVFncOUo8ZrLWM_R3K3DHU,116
274
274
  sqlmesh/utils/rich.py,sha256=xNZyPCqEc4TAlJlsEthg-5eYUWpaizz0QjBzO7a1Yv4,1509
275
275
  sqlmesh/utils/windows.py,sha256=r7Yin4WEwbvH7sKA3hOJtRsclmscNuBeCklCfVPvtQs,611
276
276
  sqlmesh/utils/yaml.py,sha256=np-WVcwmwsKghCgAj1OBBMsK1SXSRn4wR-H37cGiFr8,2282
277
- sqlmesh-0.189.3.dev9.dist-info/licenses/LICENSE,sha256=OlMefUjgWJdULtf84BLW0AZZcY8DwdgQqb_1j2862j8,11346
277
+ sqlmesh-0.189.3.dev10.dist-info/licenses/LICENSE,sha256=OlMefUjgWJdULtf84BLW0AZZcY8DwdgQqb_1j2862j8,11346
278
278
  web/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
279
- web/client/dist/index.html,sha256=LbR9XrOXE77otBPoDnaomssYz6h2TBwLANs6hUJ0p2M,5472
280
- web/client/dist/assets/Audits-DB1HcP9M.js,sha256=eGI_Soj69Jntsixw1NqQpdwG94N5jipQZv7T1Y7WUSs,1041
281
- web/client/dist/assets/Banner-DNY__4sG.js,sha256=MHFI6MSjQ-kdcqdCzcX58sC0Vbdt1q8jFCrGjJxRDPY,1549
282
- web/client/dist/assets/ChevronDownIcon-lHn9zjvd.js,sha256=nFfu7HwcpjjkZATZfPJ4nLCIqMs0nszn3dtITOlnRvU,553
283
- web/client/dist/assets/ChevronRightIcon-oQ5f5ZGP.js,sha256=3auKRSI5ylUAzDlAKiiuBCt-pJG8DMvjeJyAx0e67sY,553
284
- web/client/dist/assets/Content-Da0wstVW.js,sha256=D4BSbpMm17LhFqA-mgFGn_eguaonX88QiVyDg4lXohk,37525
285
- web/client/dist/assets/Content-QpBh5BIf.js,sha256=B6J1nBW3ToGCHnHrMZUMBTRoDrVNeoCWW9HYTgewnZw,803
286
- web/client/dist/assets/Data-C7p96ruh.js,sha256=zsnNWQo3iTW2yL1dKSm-27MksxXR90KDdvdUXabdMZI,984
287
- web/client/dist/assets/DataCatalog-C7cUGv8x.js,sha256=ftIhmvTNxO7bVBGrO7CSL7-P7iaoK8C1xdV097T7nJk,122464
288
- web/client/dist/assets/Editor-B6PRl__L.js,sha256=U78vD85JuPwILSavgxrfPfPbxSgh_VrBT-I8BXQj-UA,43614
289
- web/client/dist/assets/Editor-S5kDO3v1.js,sha256=eTwRrSrxtEdzpkojjmFIG_ewQ6qV-wi5616fsvuhOEU,1490
290
- web/client/dist/assets/Errors-CxCutNFm.js,sha256=SfAkBkwFTamu_YBrTTEwoA61ZI9Cx8PqDg0neUZH5vc,1361
291
- web/client/dist/assets/FileExplorer-kP-IjmYP.js,sha256=1gLXEPzC9RG4m-OFu4cFjSrqaBDo4IMcCFfQDADQa5A,87619
292
- web/client/dist/assets/Footer-rRlYYZGX.js,sha256=6OMBT1-sihUhfr1FFoyf5dXCpTEgv9uJ8eO0tggiqo8,700
293
- web/client/dist/assets/Header-DWsJQ7Zd.js,sha256=c8M15XDy-R17Uk7KcBlXO5taK3W3ilgqayAD6S7XwDc,11424
294
- web/client/dist/assets/Input-DdPN19Px.js,sha256=ypiVP-45YEb6R7M8QxAKo2J4OUDH384r25BovHC7wXo,54814
295
- web/client/dist/assets/Lineage-BQJPyHVL.js,sha256=eWYxp5OcAmsXIFUUunevHYkh5w_qWCOhSrOB64xIv-k,1002
296
- web/client/dist/assets/ListboxShow-BmQk-sC6.js,sha256=UiisKaBQ5dvPOYG9RTcncY6ptmQUWODUsOMY5OFn7ok,29911
297
- web/client/dist/assets/ModelLineage-Cb-ryU8k.js,sha256=eEYBNc9de6CG6oJTxzRGBp3rYUP9uARAbhqHcqNerVc,15546
298
- web/client/dist/assets/Models-Bv0YKo6C.js,sha256=TrHYt4oj1CvIZrsgl4dp0WoV5vTmzj3SfpHO-6XwSLU,2194
299
- web/client/dist/assets/Page-C-F04Qw-.js,sha256=eVbFoDvEMJw1O6myLDPOzixM2rYejr_Rl0YMV9iMTSQ,589
300
- web/client/dist/assets/Plan-DfF6_rdE.js,sha256=lCfNym3p1J7hN9-Bnz-YjGWUUZiyNT9SXZChwv8rSoo,666
301
- web/client/dist/assets/PlusCircleIcon-D8BJTuwF.js,sha256=oSLQHe_3RFZi7XxNXC9J5GWs2zfqPCxmKCa-YOtjaAo,11698
302
- web/client/dist/assets/ReportErrors-BR3yV5Ru.js,sha256=7eUV5k8Ogqon0cmp7ma6KRu05Ki09APAYXx_rmEGsmA,5419
303
- web/client/dist/assets/Root-gCyYAZOq.js,sha256=NFCVD5R5zXJ-0_yWezkYUTV0I3QPRuBWw2hp-6yxJGQ,42195
304
- web/client/dist/assets/SearchList-Mw4DP7x1.js,sha256=kf4Gg0BCc1nWjDqp5MggGIL0OPEnQSPQjRcwDLNTZIg,291983
305
- web/client/dist/assets/SelectEnvironment-C-I8dl8g.js,sha256=UagAZgmNZmj4YDB0RKlIpC5VRnKztzDpGjCiRcG4G6c,37637
306
- web/client/dist/assets/SourceList-nJbKxW-u.js,sha256=gq5XgY_-Q0-w8NRxaTchVhRTlZ8nX4Lb6B61aRGMErw,3205
307
- web/client/dist/assets/SourceListItem-Cpx6p_wh.js,sha256=ZkM1o2OwIdAa7MnTXo_njVhLZqI5fF-CGSP7RdPls-E,1106
308
- web/client/dist/assets/SplitPane-CwtTNpO8.js,sha256=lqX5XmiRhSXUsH2fj1YU6Zwps0JGogCtJToq36pGRWs,10439
309
- web/client/dist/assets/Tests-BKeeabY_.js,sha256=tkrJX3jO9bL-ZjdWNzdTYP2Zioy1LrrttGDev3lC6sc,1014
310
- web/client/dist/assets/Welcome-D191sGJC.js,sha256=ljA2ApBIlkOpScz_-BG3WoBhHtpKPkdW8CMMUBpEYXs,354
279
+ web/client/dist/index.html,sha256=OVPMTMsqC8zy0qnBcMb7PpVcqTHdIJoCmJLYh7gC1Xs,5472
280
+ web/client/dist/assets/Audits-Bvr7M5Cg.js,sha256=GrigkyEVYbM5zy0PAjOXdqmVV0kL-STP5gFQmx35vhw,1041
281
+ web/client/dist/assets/Banner-B_rJvh8O.js,sha256=vTopnfDeOxhpbWkiCPFXX7id1Kw31txTdmRvrJDfiTc,1549
282
+ web/client/dist/assets/ChevronDownIcon-SZg7zD3B.js,sha256=7yh1j3_iOy5i_0gOrIrE8SuL15kE6xMYoCwHwbN4Fus,553
283
+ web/client/dist/assets/ChevronRightIcon-BGlTDFlW.js,sha256=2vSJz7OVRh4UFMAZ44DCRhnd28B-JkveEI9HMFsQO38,553
284
+ web/client/dist/assets/Content-BX5bHEIM.js,sha256=pdVTMoS3fFQyNKkoEb1VUhqTu-hVHlfGPNJSLlHDMwk,803
285
+ web/client/dist/assets/Content-DuTflNnu.js,sha256=UUJ3A6OYyrekpY7sA-Rlb9n9RexU7rJgg6cjj-O0qNg,37525
286
+ web/client/dist/assets/Data--_LvHKB5.js,sha256=YaQGC60Z41YtppP8fBGWLbx432isYZ_vfmZYZab03go,984
287
+ web/client/dist/assets/DataCatalog-CDUa7UBO.js,sha256=mPHq1-cMUUWh2StUEwGwH2Fhvwr05DNGMsYSxGH_iTo,122486
288
+ web/client/dist/assets/Editor---NX-EOB.js,sha256=Eif7iOyuJLvbnmw0iMdfZaXgiCkcZt0YO_41ly2rXtg,43614
289
+ web/client/dist/assets/Editor-ClU6zMcH.js,sha256=cxL3LW3_olVm3H3iMSv4H8XCmQ6vasAj0c87g9j0txo,1490
290
+ web/client/dist/assets/Errors-lzXHPiom.js,sha256=Fs7kkpbxP9qr5NXJwlleTC8rZrnzGumHyqUVTrh2j1Q,1361
291
+ web/client/dist/assets/FileExplorer-CB7x6Zt5.js,sha256=Ig6DzQJB2eAE19It505FckgjXiKNMdXV2LC32vuOL5g,87619
292
+ web/client/dist/assets/Footer-C0X7AnA5.js,sha256=gqp2r66grY0fx53EH8K6eMym_kZXrPvCzI-qWd6VE6g,700
293
+ web/client/dist/assets/Header-T0redAYU.js,sha256=3IVQGOtu22HyYdQQuJ2vafk-f5MsahYzWa8TSv2Xq3c,11424
294
+ web/client/dist/assets/Input-BQqcM0yt.js,sha256=T72goDHiUH7mC3oMQQYbQg4Q34DAtxs9M7vQqMNr6aM,54814
295
+ web/client/dist/assets/Lineage-Z_rKyQjf.js,sha256=wEdRjQjEzsV2O_TryDv8dmv3x_aZ6UimztX_I1bPeNA,1002
296
+ web/client/dist/assets/ListboxShow-DrRCf9sL.js,sha256=AXpnDgsQK3AkBYaGFHEaXGEBXPsKrrs3SXrq7Nag9Ks,29911
297
+ web/client/dist/assets/ModelLineage-DC1kbGVO.js,sha256=F8E5fulE4cpapg1ya5njHVb8ejvCgek8vrFM4tGwes4,15546
298
+ web/client/dist/assets/Models-nG2g7q6-.js,sha256=K1ea4u3LAypmaUYwfXIsCNw9M-yCWSImONkpF-WJOYQ,2194
299
+ web/client/dist/assets/Page-BQKUIqng.js,sha256=ln-7ic2ESfWPC2l3e79VzA7B_kzj1l6fhF8Ps3YNhV0,589
300
+ web/client/dist/assets/Plan-C0T4Faqg.js,sha256=zbr8gRgPuLFhYSjWaULOMohkxl0BHivm4OKDDdoXJSA,666
301
+ web/client/dist/assets/PlusCircleIcon-BDES6aDU.js,sha256=fGaB9xdI80C50icWtLXdlpDCs0RYs8Nb3FiIOkBmbAc,11698
302
+ web/client/dist/assets/ReportErrors-Cuv4D77y.js,sha256=M9RB3b0tG7ZM0DS1_SmW025fxZspcskpUW3XQzNHUCE,5419
303
+ web/client/dist/assets/Root-q1MHWtlB.js,sha256=v6sbvsJ1Yrs7e-7ZyyQf4Wud5LuE36APPfDNBY11BKI,42195
304
+ web/client/dist/assets/SearchList-BU76SGzL.js,sha256=yRQUkz5D2htZfmc_N1zkH2hoVjY4yRSAqNJWrKqw3ps,291947
305
+ web/client/dist/assets/SelectEnvironment-BtI6wkY7.js,sha256=0k4QtbMgz9DlQz8cMaTKMX2oOsDLMP_EBroCR3ZUp1Y,37637
306
+ web/client/dist/assets/SourceList-C1RxJTpZ.js,sha256=tmT1Sg1adB8f88fsvlmbZDlVEf1hjS042k0NiczsBaQ,3205
307
+ web/client/dist/assets/SourceListItem-BTqd6jLB.js,sha256=8HcM-2oVduhTCSqkkKExs_scIT9NK7BOBTwhR8q7mg8,1106
308
+ web/client/dist/assets/SplitPane-zgn_nUAw.js,sha256=NgPfTeOZvU3A93Q3hCUm9QHuVclhRW3gGilQpf7wmpc,10439
309
+ web/client/dist/assets/Tests-CK6uzr59.js,sha256=q5U_p4bgPk3eQ80V22P9JLMqFeIBbU585gwh9r00W14,1014
310
+ web/client/dist/assets/Welcome-DKlRE9Lt.js,sha256=ugilqIBOUufu4ZdSvy8tBkLmtu9E_qI6b6iWTLKoz0g,354
311
311
  web/client/dist/assets/_commonjs-dynamic-modules-TDtrdbi3.js,sha256=WQq4BXvAMsPhT58adqrv_QHaYJQT-xKIiBnKBDPB-uk,239
312
- web/client/dist/assets/context-5PbIKqqT.js,sha256=JCirCgqW4JJTeAeaCqqNFQzzqbR-cc8kfmdr8A2Exm4,4517
313
- web/client/dist/assets/context-CVkhr9QB.js,sha256=rKuqXGNR4nvw1wEm1n4dgcgNOGD9Y61uwP2xIDQDT24,2043849
314
- web/client/dist/assets/editor-DWINdd81.js,sha256=9THwKsu3NVL0N56MWVGQjqCU7k5LYaArjH4ZFCJuTYs,7858
315
- web/client/dist/assets/file-e9qyDfWg.js,sha256=_hJrQKHFokFZTRU9ik--Fp9IUxTaTlQdMOGycGhEAF4,2349
316
- web/client/dist/assets/floating-ui.react-dom-B-NNWGkz.js,sha256=AqBVBhmFWJJvGkdaofFSjajKoEwqVtcH6iQudYlwgXE,22266
312
+ web/client/dist/assets/context-CHLxBWS9.js,sha256=zugi25a8l1-oxzdEWVwfCt_im7jUWKvZ2141426b_Sg,4517
313
+ web/client/dist/assets/context-CzXAuYu4.js,sha256=on768jXu5VKzWz1P8Q2dWeq_69iJ_0Ic2mBNsjLQelI,2043851
314
+ web/client/dist/assets/editor-A537AE0N.js,sha256=R4khEFgR38YC2sYMzwiPmkdUPRdHBupwfp0-IJvbMd8,7858
315
+ web/client/dist/assets/file-DfM1ePvm.js,sha256=KoReDzb1vWr3F2U7CIPIYfdrJaxy2iPmZ0Iq-2R3PyY,2349
316
+ web/client/dist/assets/floating-ui.react-dom-DhdjjAk5.js,sha256=pr447ErOPKLhKNuQ-y_g0L2l5yTUug631XUhTL3qnek,22266
317
317
  web/client/dist/assets/help-6Q7f7fjd.js,sha256=93Iri9PzpAiPgCyRsrQwABjP2jomAUNR7y2OqHxPf34,445
318
- web/client/dist/assets/help-CjbSQwWi.js,sha256=6rFvvtTYfVZNvWl4b0fq5mYcLS3BNDhN6S8FHTtOaMs,57842
319
- web/client/dist/assets/index-BZGZqBUO.js,sha256=aUduhqAlVvv_eOz7HKyN98AvHEvDfo8eMXDYI3eWjUI,13582
320
- web/client/dist/assets/index-BkNpRAHt.js,sha256=oIsOss_G2MjA8kaAK0NMHjyStjf4HPKGFERo0JLMg34,531620
321
- web/client/dist/assets/plan-C2UHjG7p.js,sha256=Gvqlho3RGF4W4nT-TftjWyPCk_vMgGbiJGcKiih8tzY,13754
322
- web/client/dist/assets/popover-C8e3ENo3.js,sha256=ZC31wGtbx3cKwHY00hV9Kgmuiod1QuROetOy76i_Kmo,68101
323
- web/client/dist/assets/project-BDZ1fnja.js,sha256=OIeWOzzM_ZZAq735X4cM0EWSDczizvU4Z1Ci8jerTB8,3338
318
+ web/client/dist/assets/help-DtSFwTCR.js,sha256=bACbmZ1gLaqBJSy-snayddELCTg7iSM4Bf65EwRCLxs,57842
319
+ web/client/dist/assets/index-BBxFj1Oj.js,sha256=h00j8iwjy_CODdr1JkHcUD_dgqJRmrt64RIuRqneZkg,13582
320
+ web/client/dist/assets/index-DvOWtL0R.js,sha256=fePwrcjfhgogBModkkwx-Ri0IxAicBO834gneA7Gjck,531620
321
+ web/client/dist/assets/plan-Bm6MqEdG.js,sha256=84UOLhEQd_83bwHpphkN_JZhzRfe7I1HEj_Y73-F5aA,13754
322
+ web/client/dist/assets/popover-nHJ-KXbz.js,sha256=P7p0UYTsOvO165ilN6x4Rot6ab2rt4j8Z-PAFYn4mXg,68101
323
+ web/client/dist/assets/project-B1HtWBfw.js,sha256=3M16ER-6y3IviB1_FNAMuJzHTl91D6cizfF2JbFY0kg,3338
324
324
  web/client/dist/css/base.css,sha256=JApDmQihY7DRy5Bd30uYMm5NdMKm0QsEOMBsOuK7gyU,9048
325
325
  web/client/dist/css/design.css,sha256=9VTHN-aYFVW6I53jUWbV8qaqo87tXyZTYSWFLC_sRQY,17057
326
326
  web/client/dist/favicons/favicon.svg,sha256=ZPNT00J77RHUj6Nlh6Z4Puxnp_oq9RSqACjomhDRUXE,1586
@@ -392,8 +392,8 @@ web/server/api/endpoints/models.py,sha256=ud-lRwriyI_OYg9tZchrBgeiXELiRTLNEodraf
392
392
  web/server/api/endpoints/modules.py,sha256=8hqqgonGay_mJmpCw0IdbjsPhWlQH2VLdKAqha-myac,468
393
393
  web/server/api/endpoints/plan.py,sha256=OYuQ_4dgbhG9ibTcX1a8mvYgH3ANxw9Fhbb4wg6QWqc,9222
394
394
  web/server/api/endpoints/table_diff.py,sha256=SCy3-pr5x6bEEiOaZGCDbiHQhpgxwmnz3Acqa2Ie6jI,2090
395
- sqlmesh-0.189.3.dev9.dist-info/METADATA,sha256=zVTXZ-ImHhUcdv0X2uVlYSOjwdgErDHpli58y54Cn2k,26540
396
- sqlmesh-0.189.3.dev9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
397
- sqlmesh-0.189.3.dev9.dist-info/entry_points.txt,sha256=pIYKtg-u-uO7BK_Y0qrdmfyj0bYrcMc3Xiqr5WE3VFk,121
398
- sqlmesh-0.189.3.dev9.dist-info/top_level.txt,sha256=bspjo5vjELQkuN0qKuTFIbsrUt3Zeo8D2mlKeHG1LdE,12
399
- sqlmesh-0.189.3.dev9.dist-info/RECORD,,
395
+ sqlmesh-0.189.3.dev10.dist-info/METADATA,sha256=mSDVrBL2E-PnKrywO202qaVHlpWWlboL0su3vhnl8f8,26541
396
+ sqlmesh-0.189.3.dev10.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
397
+ sqlmesh-0.189.3.dev10.dist-info/entry_points.txt,sha256=pIYKtg-u-uO7BK_Y0qrdmfyj0bYrcMc3Xiqr5WE3VFk,121
398
+ sqlmesh-0.189.3.dev10.dist-info/top_level.txt,sha256=bspjo5vjELQkuN0qKuTFIbsrUt3Zeo8D2mlKeHG1LdE,12
399
+ sqlmesh-0.189.3.dev10.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-BkNpRAHt.js";import{P as j}from"./Page-C-F04Qw-.js";import{u as h}from"./project-BDZ1fnja.js";import{S as v}from"./SourceList-nJbKxW-u.js";import{S as A}from"./SourceListItem-Cpx6p_wh.js";import"./SplitPane-CwtTNpO8.js";import"./file-e9qyDfWg.js";import"./Input-DdPN19Px.js";import"./floating-ui.react-dom-B-NNWGkz.js";import"./index-BZGZqBUO.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-DvOWtL0R.js";import{P as j}from"./Page-BQKUIqng.js";import{u as h}from"./project-B1HtWBfw.js";import{S as v}from"./SourceList-C1RxJTpZ.js";import{S as A}from"./SourceListItem-BTqd6jLB.js";import"./SplitPane-zgn_nUAw.js";import"./file-DfM1ePvm.js";import"./Input-BQqcM0yt.js";import"./floating-ui.react-dom-DhdjjAk5.js";import"./index-BBxFj1Oj.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-BkNpRAHt.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-DvOWtL0R.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-BkNpRAHt.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-DvOWtL0R.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-BkNpRAHt.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-DvOWtL0R.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 +1 @@
1
- import{d as a,Q as l,v as e,j as r,U as n,e as d}from"./index-BkNpRAHt.js";import{D as u}from"./ReportErrors-BR3yV5Ru.js";import"./PlusCircleIcon-D8BJTuwF.js";import"./popover-C8e3ENo3.js";import"./floating-ui.react-dom-B-NNWGkz.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./SplitPane-CwtTNpO8.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-DvOWtL0R.js";import{D as u}from"./ReportErrors-Cuv4D77y.js";import"./PlusCircleIcon-BDES6aDU.js";import"./popover-nHJ-KXbz.js";import"./floating-ui.react-dom-DhdjjAk5.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./SplitPane-zgn_nUAw.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,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-BkNpRAHt.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-C-I8dl8g.js";import{u as j,a as Y,E as M}from"./plan-C2UHjG7p.js";import{B as S}from"./Banner-DNY__4sG.js";import{V as L,F as ke,a as Pe,p as ps}from"./PlusCircleIcon-D8BJTuwF.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-C8e3ENo3.js";import{I as K}from"./Input-DdPN19Px.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-BmQk-sC6.js";import{u as ze}from"./project-BDZ1fnja.js";import{F as we}from"./context-CVkhr9QB.js";import"./ModelLineage-Cb-ryU8k.js";import"./editor-DWINdd81.js";import"./file-e9qyDfWg.js";import"./SearchList-Mw4DP7x1.js";import"./help-6Q7f7fjd.js";import"./floating-ui.react-dom-B-NNWGkz.js";import"./ChevronDownIcon-lHn9zjvd.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./SourceList-nJbKxW-u.js";import"./index-BZGZqBUO.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-DvOWtL0R.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-BtI6wkY7.js";import{u as j,a as Y,E as M}from"./plan-Bm6MqEdG.js";import{B as S}from"./Banner-B_rJvh8O.js";import{V as L,F as ke,a as Pe,p as ps}from"./PlusCircleIcon-BDES6aDU.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-nHJ-KXbz.js";import{I as K}from"./Input-BQqcM0yt.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-DrRCf9sL.js";import{u as ze}from"./project-B1HtWBfw.js";import{F as we}from"./context-CzXAuYu4.js";import"./ModelLineage-DC1kbGVO.js";import"./editor-A537AE0N.js";import"./file-DfM1ePvm.js";import"./SearchList-BU76SGzL.js";import"./help-6Q7f7fjd.js";import"./floating-ui.react-dom-DhdjjAk5.js";import"./ChevronDownIcon-SZg7zD3B.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./SourceList-C1RxJTpZ.js";import"./index-BBxFj1Oj.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{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-BkNpRAHt.js";import{g as b,T as g}from"./help-CjbSQwWi.js";import{u as r}from"./editor-DWINdd81.js";import"./index-BZGZqBUO.js";import"./floating-ui.react-dom-B-NNWGkz.js";import"./Input-DdPN19Px.js";import"./file-e9qyDfWg.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-DvOWtL0R.js";import{g as b,T as g}from"./help-DtSFwTCR.js";import{u as r}from"./editor-A537AE0N.js";import"./index-BBxFj1Oj.js";import"./floating-ui.react-dom-DhdjjAk5.js";import"./Input-BQqcM0yt.js";import"./file-DfM1ePvm.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};