sqlmesh 0.184.3.dev6__py3-none-any.whl → 0.184.3.dev8__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 (54) hide show
  1. sqlmesh/_version.py +2 -2
  2. sqlmesh/cli/main.py +5 -0
  3. sqlmesh/core/context.py +17 -9
  4. sqlmesh/magics.py +6 -0
  5. {sqlmesh-0.184.3.dev6.dist-info → sqlmesh-0.184.3.dev8.dist-info}/METADATA +1 -1
  6. {sqlmesh-0.184.3.dev6.dist-info → sqlmesh-0.184.3.dev8.dist-info}/RECORD +53 -53
  7. web/client/dist/assets/{Audits-DF7amJxU.js → Audits-DIPZFtrx.js} +1 -1
  8. web/client/dist/assets/{Banner-C3VTntGq.js → Banner-DAsK-QL1.js} +1 -1
  9. web/client/dist/assets/{ChevronDownIcon-qm4bu8e3.js → ChevronDownIcon-DzDManbV.js} +1 -1
  10. web/client/dist/assets/{ChevronRightIcon-BolEdhGf.js → ChevronRightIcon-DSpbcx00.js} +1 -1
  11. web/client/dist/assets/{Content-B6xcwedd.js → Content-BJUjv8iu.js} +1 -1
  12. web/client/dist/assets/{Content-BRVWZ3mb.js → Content-D7h4mnHF.js} +1 -1
  13. web/client/dist/assets/{Data-Biu-V0fH.js → Data-ClFC_pBa.js} +1 -1
  14. web/client/dist/assets/{DataCatalog-B6evo1XW.js → DataCatalog-t3dziG8A.js} +1 -1
  15. web/client/dist/assets/{Editor-CLmFVr2P.js → Editor-7DfgGKw9.js} +1 -1
  16. web/client/dist/assets/{Editor-CVxCL2-Y.js → Editor-DSf-2EQT.js} +1 -1
  17. web/client/dist/assets/{Errors-oZskb8PG.js → Errors-DA2bBfpf.js} +1 -1
  18. web/client/dist/assets/{FileExplorer-CGr1vJjw.js → FileExplorer-4nRQY6cL.js} +1 -1
  19. web/client/dist/assets/{Footer-fJbe0D4K.js → Footer-D12q5O5Z.js} +1 -1
  20. web/client/dist/assets/{Header-BH87N9ET.js → Header-DLQZY2Ex.js} +1 -1
  21. web/client/dist/assets/{Input-D4nBSMWJ.js → Input-CRK-1wuV.js} +1 -1
  22. web/client/dist/assets/Lineage-BaSYxvZ8.js +1 -0
  23. web/client/dist/assets/{ListboxShow-BWNLIBMH.js → ListboxShow-DrFIArL6.js} +1 -1
  24. web/client/dist/assets/{ModelLineage-c5SOHuSl.js → ModelLineage-voejafVo.js} +1 -1
  25. web/client/dist/assets/{Models-BNHmcp1o.js → Models-es1Gq05d.js} +1 -1
  26. web/client/dist/assets/{Page-daP33Ypg.js → Page-DaopzNy3.js} +1 -1
  27. web/client/dist/assets/{Plan-DUHa3QdG.js → Plan-DbxRINvk.js} +1 -1
  28. web/client/dist/assets/{PlusCircleIcon-Bk7UCkgh.js → PlusCircleIcon-BXu3EzDy.js} +1 -1
  29. web/client/dist/assets/{ReportErrors-DfzGQ2eY.js → ReportErrors-DlOUEuvB.js} +1 -1
  30. web/client/dist/assets/{Root-uPpx7ocJ.js → Root-CY8b3FlQ.js} +1 -1
  31. web/client/dist/assets/{SearchList-87imxiuX.js → SearchList-Bts2_IsQ.js} +1 -1
  32. web/client/dist/assets/{SelectEnvironment-DRt5ys9a.js → SelectEnvironment-phnYBEdf.js} +1 -1
  33. web/client/dist/assets/{SourceList-Cfd2Hs4e.js → SourceList-DIGuOOMT.js} +1 -1
  34. web/client/dist/assets/{SourceListItem-Cgi7ENFV.js → SourceListItem-CH25ygOv.js} +1 -1
  35. web/client/dist/assets/{SplitPane-p-JrHTOr.js → SplitPane-DBt3cX7d.js} +1 -1
  36. web/client/dist/assets/{Tests-Das-Vk4n.js → Tests-Bs8w6XBf.js} +1 -1
  37. web/client/dist/assets/{Welcome-33aFy-Y-.js → Welcome-CHeVBRYR.js} +1 -1
  38. web/client/dist/assets/{context-C5ccds54.js → context-C1uFn1zg.js} +1 -1
  39. web/client/dist/assets/{context-NpzoJDLp.js → context-DrZJiN75.js} +1 -1
  40. web/client/dist/assets/{editor-B8OcqW2l.js → editor-DHvEZynA.js} +1 -1
  41. web/client/dist/assets/{file-D-wqO8gv.js → file-CiUz225S.js} +1 -1
  42. web/client/dist/assets/{floating-ui.react-dom-BrhHyVvs.js → floating-ui.react-dom-CWmFdbmT.js} +1 -1
  43. web/client/dist/assets/{help-CQWPRUV2.js → help-BAPK0Chk.js} +1 -1
  44. web/client/dist/assets/{index-xGKh539i.js → index-50Jk2AVj.js} +1 -1
  45. web/client/dist/assets/{index-Co-_3xPI.js → index-vSJ8fwXa.js} +1 -1
  46. web/client/dist/assets/{plan-BIz0iaor.js → plan-CzgwheKs.js} +1 -1
  47. web/client/dist/assets/{popover-BXDPVmB7.js → popover-xfBVdLdC.js} +1 -1
  48. web/client/dist/assets/{project-H8d6rukl.js → project-ox5qB7wx.js} +1 -1
  49. web/client/dist/index.html +1 -1
  50. web/client/dist/assets/Lineage-CPutJH7u.js +0 -1
  51. {sqlmesh-0.184.3.dev6.dist-info → sqlmesh-0.184.3.dev8.dist-info}/WHEEL +0 -0
  52. {sqlmesh-0.184.3.dev6.dist-info → sqlmesh-0.184.3.dev8.dist-info}/entry_points.txt +0 -0
  53. {sqlmesh-0.184.3.dev6.dist-info → sqlmesh-0.184.3.dev8.dist-info}/licenses/LICENSE +0 -0
  54. {sqlmesh-0.184.3.dev6.dist-info → sqlmesh-0.184.3.dev8.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.3.dev6'
21
- __version_tuple__ = version_tuple = (0, 184, 3, 'dev6')
20
+ __version__ = version = '0.184.3.dev8'
21
+ __version_tuple__ = version_tuple = (0, 184, 3, 'dev8')
sqlmesh/cli/main.py CHANGED
@@ -906,6 +906,11 @@ def create_external_models(obj: Context, **kwargs: t.Any) -> None:
906
906
  is_flag=True,
907
907
  help="Disable the check for a primary key (grain) that is missing or is not unique.",
908
908
  )
909
+ @click.option(
910
+ "--warn-grain-check",
911
+ is_flag=True,
912
+ help="Warn if any selected model is missing a grain, and compute diffs for the remaining models.",
913
+ )
909
914
  @click.option(
910
915
  "--temp-schema",
911
916
  type=str,
sqlmesh/core/context.py CHANGED
@@ -1629,6 +1629,7 @@ class GenericContext(BaseContext, t.Generic[C]):
1629
1629
  show_sample: bool = True,
1630
1630
  decimals: int = 3,
1631
1631
  skip_grain_check: bool = False,
1632
+ warn_grain_check: bool = False,
1632
1633
  temp_schema: t.Optional[str] = None,
1633
1634
  ) -> t.List[TableDiff]:
1634
1635
  """Show a diff between two tables.
@@ -1703,22 +1704,29 @@ class GenericContext(BaseContext, t.Generic[C]):
1703
1704
  target_env.naming_info, adapter.dialect
1704
1705
  )
1705
1706
  model_on = on or model.on
1706
- models_to_diff.append((model, adapter, source, target, model_on))
1707
1707
  if not model_on:
1708
1708
  models_without_grain.append(model)
1709
+ else:
1710
+ models_to_diff.append((model, adapter, source, target, model_on))
1711
+
1712
+ if models_without_grain:
1713
+ model_names = "\n".join(
1714
+ f"─ {model.name} \n at '{model._path}'" for model in models_without_grain
1715
+ )
1716
+ message = (
1717
+ "SQLMesh doesn't know how to join the tables for the following models:\n"
1718
+ f"{model_names}\n\n"
1719
+ "Please specify a `grain` in each model definition. It must be unique and not null."
1720
+ )
1721
+ if warn_grain_check:
1722
+ self.console.log_warning(message)
1723
+ else:
1724
+ raise SQLMeshError(message)
1709
1725
 
1710
1726
  if models_to_diff:
1711
1727
  self.console.show_table_diff_details(
1712
1728
  [model[0].name for model in models_to_diff],
1713
1729
  )
1714
- if models_without_grain:
1715
- model_names = "\n".join(
1716
- f"─ {model.name} \n at '{model._path}'" for model in models_without_grain
1717
- )
1718
- raise SQLMeshError(
1719
- f"SQLMesh doesn't know how to join the tables for the following models:\n{model_names}\n"
1720
- "\nPlease specify the `grain` in each model definition. Must be unique and not null."
1721
- )
1722
1730
 
1723
1731
  self.console.start_table_diff_progress(len(models_to_diff))
1724
1732
  try:
sqlmesh/magics.py CHANGED
@@ -702,6 +702,11 @@ class SQLMeshMagics(Magics):
702
702
  action="store_true",
703
703
  help="Disable the check for a primary key (grain) that is missing or is not unique.",
704
704
  )
705
+ @argument(
706
+ "--warn-grain-check",
707
+ action="store_true",
708
+ help="Warn if any selected model is missing a grain, and compute diffs for the remaining models.",
709
+ )
705
710
  @line_magic
706
711
  @pass_sqlmesh_context
707
712
  def table_diff(self, context: Context, line: str) -> None:
@@ -723,6 +728,7 @@ class SQLMeshMagics(Magics):
723
728
  show_sample=args.show_sample,
724
729
  decimals=args.decimals,
725
730
  skip_grain_check=args.skip_grain_check,
731
+ warn_grain_check=args.warn_grain_check,
726
732
  )
727
733
 
728
734
  @magic_arguments()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sqlmesh
3
- Version: 0.184.3.dev6
3
+ Version: 0.184.3.dev8
4
4
  Summary: Next-generation data transformation framework
5
5
  Author-email: "TobikoData Inc." <engineering@tobikodata.com>
6
6
  License: Apache License
@@ -1,19 +1,19 @@
1
1
  sqlmesh/__init__.py,sha256=DRovDXI-9D9xeYDP7t8Fq7mI31S2btlN-LHPOK3y7PA,7240
2
- sqlmesh/_version.py,sha256=Hrh7Bxarss4lFNHO4Sg4-OnyJtKuXsq_5gMlLZRxZ6U,528
3
- sqlmesh/magics.py,sha256=9oY1Uz8uwsuTtPRg9HTYDxnGiJ7-OVRCpmCgAhbKHUU,39431
2
+ sqlmesh/_version.py,sha256=G-Qj79bNfZsBHFjCfEWLkulXh3jC0q8DQtoh864eDRM,528
3
+ sqlmesh/magics.py,sha256=aeOyTdeNnyGzGtJXECDAbqJ8OAplrV4UAYl0I2hhtig,39670
4
4
  sqlmesh/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  sqlmesh/cicd/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  sqlmesh/cicd/bot.py,sha256=2zlbn-DXkqQzr3lA0__IGU4XaIfXBXBKLWXNI2DRJX8,759
7
7
  sqlmesh/cicd/config.py,sha256=mpgkisSBBovlNrNZir2unT8Wes6b38RW2UsU_o4e8vY,109
8
8
  sqlmesh/cli/__init__.py,sha256=MAXAyO7isbyM-PaSdFjkJNcjn32WjOl0XzxT5gvp_vo,1690
9
9
  sqlmesh/cli/example_project.py,sha256=QAFQbw_kzqn30GLTthqsuWXbFDBpX8W6RsCgQ-jx65M,9308
10
- sqlmesh/cli/main.py,sha256=z1Af0bwqtnYHzkY0_9REpaJe-onxvXN4rLw6upyxKec,31979
10
+ sqlmesh/cli/main.py,sha256=TnV6htxJEvRDU7XxcXPOXNKmCT--f6k3yANeqmNSo6Y,32143
11
11
  sqlmesh/cli/options.py,sha256=aC_L5WnMScKzMU55BD1Y-8R-QzqCkPSYrlCI-payHRA,1333
12
12
  sqlmesh/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
13
  sqlmesh/core/_typing.py,sha256=e1f7xO2aZCy38M_3VoDy-XI3shyd99-IFctgIFSgXWM,497
14
14
  sqlmesh/core/console.py,sha256=o5TSVb9rN0ygerS-CeWaZTIblaa7u-OZotucwTBu4ik,150790
15
15
  sqlmesh/core/constants.py,sha256=oqt6zjepUhQoWlgapKn_HpG7Pu9mrFwepdX5caNfJUI,2499
16
- sqlmesh/core/context.py,sha256=kLKXwOLc_5Orv-SxvI0zbpL9ZJ0XkB9HZgd9R6uh-9Y,114691
16
+ sqlmesh/core/context.py,sha256=r7wKGFx702NF06S0Y8AvkoMaeYjzDRcugArRwxT4LHU,114911
17
17
  sqlmesh/core/context_diff.py,sha256=s9toP17d4tJfOpFH91LcjGK2CM64PVuB0MPkeFgF4hQ,20415
18
18
  sqlmesh/core/dialect.py,sha256=fPTV517IOS0nWMxYznNNQnXkQkFFrPOSKe8ghsQ0o8A,49759
19
19
  sqlmesh/core/environment.py,sha256=0TTQf4C4LXwf37fm-dfYv1qyG7vtZfQI5rizgm5g0j0,11442
@@ -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.3.dev6.dist-info/licenses/LICENSE,sha256=OlMefUjgWJdULtf84BLW0AZZcY8DwdgQqb_1j2862j8,11346
270
+ sqlmesh-0.184.3.dev8.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=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
272
+ web/client/dist/index.html,sha256=h-jIuvBTQ-QurWEds39umXiJjP_TWPQmkHTiizCAeOI,5472
273
+ web/client/dist/assets/Audits-DIPZFtrx.js,sha256=Yn24xPBT3znH0fQJJaBLb1p1wjJz1nWjrZcm18e63W0,1041
274
+ web/client/dist/assets/Banner-DAsK-QL1.js,sha256=ET3G9qTfxZacYDPmgM6k0kBTac0scJp4T8CK85skfJI,1549
275
+ web/client/dist/assets/ChevronDownIcon-DzDManbV.js,sha256=hkQakWclRBHJkB0z2bCEAIeMe0mv8OGeDiDsQ7AFk5s,553
276
+ web/client/dist/assets/ChevronRightIcon-DSpbcx00.js,sha256=1On1PChFQJM1psU9x8G2sVefaKOBSe4q3fV0FMcsAn0,553
277
+ web/client/dist/assets/Content-BJUjv8iu.js,sha256=nC98VubRxwZrYpj1xkiprK6E-mq_skaHWVgorWYRrCc,37525
278
+ web/client/dist/assets/Content-D7h4mnHF.js,sha256=NQhmSIuiwjYCNUV1eiScQTQyKCc9Ddh_461dH4y-x9A,803
279
+ web/client/dist/assets/Data-ClFC_pBa.js,sha256=U6I9p7b5TcUk9omUQPdQ16kysAUgi98HcV7Pf-8tbjQ,984
280
+ web/client/dist/assets/DataCatalog-t3dziG8A.js,sha256=CDphniioOsgEaPSreXOC-ds5ct0ivnftC8wHqZ3upug,122464
281
+ web/client/dist/assets/Editor-7DfgGKw9.js,sha256=G6yclF9bSG7tjI_cdytE2lW6l2__b9qPagcy8xjkK5E,43614
282
+ web/client/dist/assets/Editor-DSf-2EQT.js,sha256=465rXn5pO6UfEhcFuuQ6NDlUATD5wEObaGNS06dPgI8,1490
283
+ web/client/dist/assets/Errors-DA2bBfpf.js,sha256=-ujVdmLLTJPU3kWzS3CmIXpi2k7LH-Al4TDIpAye9Y8,1361
284
+ web/client/dist/assets/FileExplorer-4nRQY6cL.js,sha256=xHJLe6RS8EMAVLb0Frx1M4H6k3-7COMj3NqCg5lFgZY,87619
285
+ web/client/dist/assets/Footer-D12q5O5Z.js,sha256=Uti7g6HrbGpuCSdCc4jguDE9svgsr0tJKrpfwLgSvEw,700
286
+ web/client/dist/assets/Header-DLQZY2Ex.js,sha256=tzRbb4zTHiOymxA00FttmgNsFjQ1dl_5ng4X_MlkukE,11424
287
+ web/client/dist/assets/Input-CRK-1wuV.js,sha256=G3Dt-_Xh8XekaQ9oIW2p-jaHBAcFFMkCFGL2FEJYL6Q,54788
288
+ web/client/dist/assets/Lineage-BaSYxvZ8.js,sha256=Cgx-_5t6PRNNNfCmdAkuPLOhyVdfUNW-23rIqeL6g7s,1002
289
+ web/client/dist/assets/ListboxShow-DrFIArL6.js,sha256=JUqPhekSEA6Q-8T7v9sRKiejNbNmc8lWmET9Vhl-vTA,29911
290
+ web/client/dist/assets/ModelLineage-voejafVo.js,sha256=nCs8VYsEt8hupAw5mmUJwXhZxucGzyUeZZH2DpAxGww,15546
291
+ web/client/dist/assets/Models-es1Gq05d.js,sha256=zYePeF8LmNI3DeYGD4R_-osNrUgl48w5BZaqR-icTwg,2194
292
+ web/client/dist/assets/Page-DaopzNy3.js,sha256=Cft4LYEXRojlfHYP5wa-rYrn53kQSuCvJ3VQKndx96Y,589
293
+ web/client/dist/assets/Plan-DbxRINvk.js,sha256=_Jtw56vTcGCygsyMUeYQF78by9M8ZdyRy-ii2pZ6DZQ,666
294
+ web/client/dist/assets/PlusCircleIcon-BXu3EzDy.js,sha256=_vG_peGlqwxhRsZtWN8jAYgp34VdXq29-LoBRd9MwQ0,11698
295
+ web/client/dist/assets/ReportErrors-DlOUEuvB.js,sha256=o2yG9YVY5sWwO-3OiYoUXS1FX3pLA4v-vMIwou41BIU,5419
296
+ web/client/dist/assets/Root-CY8b3FlQ.js,sha256=OqRFL47JqZ4Tr0dOPGzl-ggjO3mjNXQjnOyNpVpIQ04,42195
297
+ web/client/dist/assets/SearchList-Bts2_IsQ.js,sha256=g9kRjZFQP9rGGJSBkd2oy2QkgLKnBp8yONgVRbfjnVg,291983
298
+ web/client/dist/assets/SelectEnvironment-phnYBEdf.js,sha256=xvrvN1jtur9NSXGv2ZWUoUAXYfIZjRAwudps99VyZsY,37637
299
+ web/client/dist/assets/SourceList-DIGuOOMT.js,sha256=XZ4OO9on3itQaQnz53CLQ84clvA6WXWg35LLq81GVLo,3205
300
+ web/client/dist/assets/SourceListItem-CH25ygOv.js,sha256=onnr5JRXDaTK1UZ3Bbiy4MEnhfATQfKfa3aR0c5GHDA,1106
301
+ web/client/dist/assets/SplitPane-DBt3cX7d.js,sha256=Cfmj6PpRRQ-bR_ZFwmI5efcqA6fdkQmvMipUCQ2hiIo,10439
302
+ web/client/dist/assets/Tests-Bs8w6XBf.js,sha256=wov9jnXKiH7Nq6sA_45OnOaVJuqH3u_JkCEk8MnVoQY,1014
303
+ web/client/dist/assets/Welcome-CHeVBRYR.js,sha256=FjhWk3BCMutLXnaaYsGdAcV_v61h3jXkNxoXX9UHpAk,354
304
304
  web/client/dist/assets/_commonjs-dynamic-modules-TDtrdbi3.js,sha256=WQq4BXvAMsPhT58adqrv_QHaYJQT-xKIiBnKBDPB-uk,239
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
305
+ web/client/dist/assets/context-C1uFn1zg.js,sha256=K1DiqG-kLivmNO-Na6poZGAYefeDzqiyoFajRsgEbY8,4517
306
+ web/client/dist/assets/context-DrZJiN75.js,sha256=OC343eZ7gcE1RpYf6MHhnXDuCr_PyW6rmSviP0fS-m8,2053023
307
+ web/client/dist/assets/editor-DHvEZynA.js,sha256=zGXi2VFfq63-xnRgzcB0M4k9jzTaJMFjuJDAEu8RjhM,7858
308
+ web/client/dist/assets/file-CiUz225S.js,sha256=GW2NqpRkauw49M3E_bXcAyZanIRVYh9rO59fF6yBLZE,2349
309
+ web/client/dist/assets/floating-ui.react-dom-CWmFdbmT.js,sha256=F1LQVWP_FhHgJY3TFalMogAPKfaZwmLOMXH8ld4xDWM,22264
310
310
  web/client/dist/assets/help-6Q7f7fjd.js,sha256=93Iri9PzpAiPgCyRsrQwABjP2jomAUNR7y2OqHxPf34,445
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
311
+ web/client/dist/assets/help-BAPK0Chk.js,sha256=qOqRfGstanGQj-t_LIm_d15ZzsCRQV06RsHp-Zn-gQ4,57842
312
+ web/client/dist/assets/index-50Jk2AVj.js,sha256=pVIidikWAa4TCRbA3yNPItA2sh377VOKRRSNfra03HY,13562
313
+ web/client/dist/assets/index-vSJ8fwXa.js,sha256=z0yzF4pquHDGnCNhtOHW8Mg4S7HD1qOGMnibQceKS0Q,531311
314
+ web/client/dist/assets/plan-CzgwheKs.js,sha256=ukHlWUv8vx4yCL6UWlBVYAzrBBm7M6J9vjfHT67c9pg,13754
315
+ web/client/dist/assets/popover-xfBVdLdC.js,sha256=pZ8dBGyiloHPlxYx2uqORokW_Tl8CujLHnyQqUQ2H8o,68101
316
+ web/client/dist/assets/project-ox5qB7wx.js,sha256=pyk7jCJm3uWPXKvsY2A_56gWu0P8FNyzHzW990IB2tU,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
@@ -385,8 +385,8 @@ web/server/api/endpoints/models.py,sha256=SzS5bshzdXyM6hb948sZ_3k-xhpGCHkxkb7pHz
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.3.dev6.dist-info/METADATA,sha256=0BJHQ_ifMvCyWErdhA-sQyI1iP9PxFaciYhayno28dw,25498
389
- sqlmesh-0.184.3.dev6.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
390
- sqlmesh-0.184.3.dev6.dist-info/entry_points.txt,sha256=pIYKtg-u-uO7BK_Y0qrdmfyj0bYrcMc3Xiqr5WE3VFk,121
391
- sqlmesh-0.184.3.dev6.dist-info/top_level.txt,sha256=bspjo5vjELQkuN0qKuTFIbsrUt3Zeo8D2mlKeHG1LdE,12
392
- sqlmesh-0.184.3.dev6.dist-info/RECORD,,
388
+ sqlmesh-0.184.3.dev8.dist-info/METADATA,sha256=939HceRm9epgPpYaxrLuwzn79Y6J6mb50EvkxUqEiR0,25498
389
+ sqlmesh-0.184.3.dev8.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
390
+ sqlmesh-0.184.3.dev8.dist-info/entry_points.txt,sha256=pIYKtg-u-uO7BK_Y0qrdmfyj0bYrcMc3Xiqr5WE3VFk,121
391
+ sqlmesh-0.184.3.dev8.dist-info/top_level.txt,sha256=bspjo5vjELQkuN0qKuTFIbsrUt3Zeo8D2mlKeHG1LdE,12
392
+ sqlmesh-0.184.3.dev8.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-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
+ 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-vSJ8fwXa.js";import{P as j}from"./Page-DaopzNy3.js";import{u as h}from"./project-ox5qB7wx.js";import{S as v}from"./SourceList-DIGuOOMT.js";import{S as A}from"./SourceListItem-CH25ygOv.js";import"./SplitPane-DBt3cX7d.js";import"./file-CiUz225S.js";import"./Input-CRK-1wuV.js";import"./floating-ui.react-dom-CWmFdbmT.js";import"./index-50Jk2AVj.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-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
+ import{j as s,c as i,l as a,m as n,H as p}from"./index-vSJ8fwXa.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-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
+ import{r as e}from"./index-vSJ8fwXa.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-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
+ import{r as e}from"./index-vSJ8fwXa.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-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
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-vSJ8fwXa.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-phnYBEdf.js";import{u as j,a as Y,E as M}from"./plan-CzgwheKs.js";import{B as S}from"./Banner-DAsK-QL1.js";import{V as L,F as ke,a as Pe,p as ps}from"./PlusCircleIcon-BXu3EzDy.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-xfBVdLdC.js";import{I as K}from"./Input-CRK-1wuV.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-DrFIArL6.js";import{u as ze}from"./project-ox5qB7wx.js";import{F as we}from"./context-DrZJiN75.js";import"./ModelLineage-voejafVo.js";import"./editor-DHvEZynA.js";import"./file-CiUz225S.js";import"./SearchList-Bts2_IsQ.js";import"./help-6Q7f7fjd.js";import"./floating-ui.react-dom-CWmFdbmT.js";import"./ChevronDownIcon-DzDManbV.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./SourceList-DIGuOOMT.js";import"./index-50Jk2AVj.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-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
+ import{d as a,Q as l,v as e,j as r,U as n,e as d}from"./index-vSJ8fwXa.js";import{D as u}from"./ReportErrors-DlOUEuvB.js";import"./PlusCircleIcon-BXu3EzDy.js";import"./popover-xfBVdLdC.js";import"./floating-ui.react-dom-CWmFdbmT.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./SplitPane-DBt3cX7d.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-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};
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-vSJ8fwXa.js";import{g as b,T as g}from"./help-BAPK0Chk.js";import{u as r}from"./editor-DHvEZynA.js";import"./index-50Jk2AVj.js";import"./floating-ui.react-dom-CWmFdbmT.js";import"./Input-CRK-1wuV.js";import"./file-CiUz225S.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};