sqlmesh 0.181.2.dev14__py3-none-any.whl → 0.181.2.dev16__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.
- sqlmesh/_version.py +2 -2
- {sqlmesh-0.181.2.dev14.dist-info → sqlmesh-0.181.2.dev16.dist-info}/METADATA +1 -1
- {sqlmesh-0.181.2.dev14.dist-info → sqlmesh-0.181.2.dev16.dist-info}/RECORD +49 -49
- web/client/dist/assets/{Audits-Dt3QUYCw.js → Audits-CpTpRWJS.js} +1 -1
- web/client/dist/assets/{Banner-NSDMTUuS.js → Banner-DoiNAKye.js} +1 -1
- web/client/dist/assets/{ChevronDownIcon-PDbmvmYa.js → ChevronDownIcon-BEGYfY2e.js} +1 -1
- web/client/dist/assets/{ChevronRightIcon-e7qtOZnd.js → ChevronRightIcon-DukIeKXy.js} +1 -1
- web/client/dist/assets/{Content-UwEUgKuG.js → Content-C_JUq1Do.js} +1 -1
- web/client/dist/assets/{Content-BlU-e5xI.js → Content-CfmwrKKm.js} +1 -1
- web/client/dist/assets/{Data-DEoVdKU8.js → Data-ChAnh4ni.js} +1 -1
- web/client/dist/assets/{DataCatalog-CgZ0v9q7.js → DataCatalog-DWoqDoha.js} +7 -7
- web/client/dist/assets/{Editor-BRHZhM5n.js → Editor-CUljCEXi.js} +1 -1
- web/client/dist/assets/{Editor-Dch_R4cm.js → Editor-ClszqJ2I.js} +1 -1
- web/client/dist/assets/{Errors-DH-4Ne3K.js → Errors-Fuw_f-1a.js} +1 -1
- web/client/dist/assets/{FileExplorer-T0Rm9zhJ.js → FileExplorer-CXZ9Q150.js} +1 -1
- web/client/dist/assets/{Footer-1h_XqoQ5.js → Footer-BFLq78dA.js} +1 -1
- web/client/dist/assets/{Header-DxWr0vca.js → Header-BEK5IMP9.js} +1 -1
- web/client/dist/assets/Input-tR0WpVuK.js +41 -0
- web/client/dist/assets/Lineage-CpFxhla3.js +1 -0
- web/client/dist/assets/{ListboxShow-DT2Vq8H-.js → ListboxShow-C9Uz0VvV.js} +1 -1
- web/client/dist/assets/ModelLineage-bdWk08Ab.js +1 -0
- web/client/dist/assets/{Models-7gFwDtX4.js → Models-BU-MA8yO.js} +1 -1
- web/client/dist/assets/{Page-CxGA6pbl.js → Page-DwNrMCBx.js} +1 -1
- web/client/dist/assets/{Plan-0rJvdSbW.js → Plan-CrjOn4QG.js} +1 -1
- web/client/dist/assets/{PlusCircleIcon-D6THv_ZD.js → PlusCircleIcon-C1VPxB8A.js} +1 -1
- web/client/dist/assets/{ReportErrors-BcdDXnmw.js → ReportErrors-BcmrRxbG.js} +1 -1
- web/client/dist/assets/{Root-PD0OqcHQ.js → Root-BzyY-jcn.js} +1 -1
- web/client/dist/assets/{SearchList-k4ylxX-x.js → SearchList-wEGQkxPR.js} +1 -1
- web/client/dist/assets/{SelectEnvironment-BsRoqhGW.js → SelectEnvironment-LGhN0dhR.js} +1 -1
- web/client/dist/assets/{SourceList-DsSkJAMU.js → SourceList-DHZ9-QtW.js} +1 -1
- web/client/dist/assets/{SourceListItem-Bt7Bfyt2.js → SourceListItem-CzN9ypEP.js} +1 -1
- web/client/dist/assets/{SplitPane-DWWdLh3i.js → SplitPane-Djy_uJgV.js} +1 -1
- web/client/dist/assets/{Tests-Cq9jRmAp.js → Tests-DXoZpfR7.js} +1 -1
- web/client/dist/assets/{Welcome-BrOApqHN.js → Welcome-DREQuVRP.js} +1 -1
- web/client/dist/assets/{context-YFUfJm57.js → context-C8brTRBZ.js} +2 -2
- web/client/dist/assets/{context-DH7g-F8j.js → context-CKu1HxT0.js} +1 -1
- web/client/dist/assets/{editor-BKhlmwRX.js → editor-D_hgjDRq.js} +1 -1
- web/client/dist/assets/{file-DahECWZX.js → file-CyBkQGGI.js} +1 -1
- web/client/dist/assets/{help-CeInptNb.js → help-BcOVbjKP.js} +1 -1
- web/client/dist/assets/{index-BafGN4in.js → index-CYAA3nVF.js} +1 -1
- web/client/dist/assets/index-RJnYVUFY.js +4 -0
- web/client/dist/assets/{plan-BX1iXHwl.js → plan-BaiSs9Um.js} +1 -1
- web/client/dist/assets/{project-Bag2J0QC.js → project-vqNomsgg.js} +1 -1
- web/client/dist/assets/{transition-BlPPv2uy.js → transition-CtNxN7ku.js} +1 -1
- web/client/dist/index.html +1 -1
- web/client/dist/assets/Input-CLgDkIXg.js +0 -41
- web/client/dist/assets/Lineage-UyUAWe1z.js +0 -1
- web/client/dist/assets/ModelLineage-E21kqsuu.js +0 -1
- web/client/dist/assets/index-CAWWTpIH.js +0 -4
- {sqlmesh-0.181.2.dev14.dist-info → sqlmesh-0.181.2.dev16.dist-info}/WHEEL +0 -0
- {sqlmesh-0.181.2.dev14.dist-info → sqlmesh-0.181.2.dev16.dist-info}/entry_points.txt +0 -0
- {sqlmesh-0.181.2.dev14.dist-info → sqlmesh-0.181.2.dev16.dist-info}/licenses/LICENSE +0 -0
- {sqlmesh-0.181.2.dev14.dist-info → sqlmesh-0.181.2.dev16.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.181.2.
|
|
21
|
-
__version_tuple__ = version_tuple = (0, 181, 2, '
|
|
20
|
+
__version__ = version = '0.181.2.dev16'
|
|
21
|
+
__version_tuple__ = version_tuple = (0, 181, 2, 'dev16')
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
sqlmesh/__init__.py,sha256=DRovDXI-9D9xeYDP7t8Fq7mI31S2btlN-LHPOK3y7PA,7240
|
|
2
|
-
sqlmesh/_version.py,sha256=
|
|
2
|
+
sqlmesh/_version.py,sha256=dIrvDLT8SbWBv-NfeE3EQ87vatRApfXRf_QMW8YQ5yo,530
|
|
3
3
|
sqlmesh/magics.py,sha256=9oY1Uz8uwsuTtPRg9HTYDxnGiJ7-OVRCpmCgAhbKHUU,39431
|
|
4
4
|
sqlmesh/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
sqlmesh/cicd/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -266,52 +266,52 @@ sqlmesh/utils/pandas.py,sha256=j_tYhuPcWpzuPceZZ6IhdTVbmxYyGJW7l4FHr4bQqjM,1824
|
|
|
266
266
|
sqlmesh/utils/pydantic.py,sha256=ioaAzYF42PutEJRyAS11-AHguiCG3yWI6VRcTVa2G-g,10470
|
|
267
267
|
sqlmesh/utils/rich.py,sha256=xNZyPCqEc4TAlJlsEthg-5eYUWpaizz0QjBzO7a1Yv4,1509
|
|
268
268
|
sqlmesh/utils/yaml.py,sha256=np-WVcwmwsKghCgAj1OBBMsK1SXSRn4wR-H37cGiFr8,2282
|
|
269
|
-
sqlmesh-0.181.2.
|
|
269
|
+
sqlmesh-0.181.2.dev16.dist-info/licenses/LICENSE,sha256=OlMefUjgWJdULtf84BLW0AZZcY8DwdgQqb_1j2862j8,11346
|
|
270
270
|
web/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
271
|
-
web/client/dist/index.html,sha256=
|
|
272
|
-
web/client/dist/assets/Audits-
|
|
273
|
-
web/client/dist/assets/Banner-
|
|
274
|
-
web/client/dist/assets/ChevronDownIcon-
|
|
275
|
-
web/client/dist/assets/ChevronRightIcon-
|
|
276
|
-
web/client/dist/assets/Content-
|
|
277
|
-
web/client/dist/assets/Content-
|
|
278
|
-
web/client/dist/assets/Data-
|
|
279
|
-
web/client/dist/assets/DataCatalog-
|
|
280
|
-
web/client/dist/assets/Editor-
|
|
281
|
-
web/client/dist/assets/Editor-
|
|
282
|
-
web/client/dist/assets/Errors-
|
|
283
|
-
web/client/dist/assets/FileExplorer-
|
|
284
|
-
web/client/dist/assets/Footer-
|
|
285
|
-
web/client/dist/assets/Header-
|
|
286
|
-
web/client/dist/assets/Input-
|
|
287
|
-
web/client/dist/assets/Lineage-
|
|
288
|
-
web/client/dist/assets/ListboxShow-
|
|
289
|
-
web/client/dist/assets/ModelLineage-
|
|
290
|
-
web/client/dist/assets/Models-
|
|
291
|
-
web/client/dist/assets/Page-
|
|
292
|
-
web/client/dist/assets/Plan-
|
|
293
|
-
web/client/dist/assets/PlusCircleIcon-
|
|
294
|
-
web/client/dist/assets/ReportErrors-
|
|
295
|
-
web/client/dist/assets/Root-
|
|
296
|
-
web/client/dist/assets/SearchList-
|
|
297
|
-
web/client/dist/assets/SelectEnvironment-
|
|
298
|
-
web/client/dist/assets/SourceList-
|
|
299
|
-
web/client/dist/assets/SourceListItem-
|
|
300
|
-
web/client/dist/assets/SplitPane-
|
|
301
|
-
web/client/dist/assets/Tests-
|
|
302
|
-
web/client/dist/assets/Welcome-
|
|
271
|
+
web/client/dist/index.html,sha256=h9JJluFdidBC-R8QZ6MYyyjQibuzphKa0VaehDgeBvA,5472
|
|
272
|
+
web/client/dist/assets/Audits-CpTpRWJS.js,sha256=evkKwQbPHYKSBcTsYcC4K7wAPA1eEb3vjKr2uT3dccE,997
|
|
273
|
+
web/client/dist/assets/Banner-DoiNAKye.js,sha256=kffsT2XPoXn2cBRtk7rBSS9im1VktuT67u4-gRRNq6Q,1544
|
|
274
|
+
web/client/dist/assets/ChevronDownIcon-BEGYfY2e.js,sha256=oD9JcUcSDanLyilsThGZ9TjK-kKMSKIDyGewHDSYdDQ,553
|
|
275
|
+
web/client/dist/assets/ChevronRightIcon-DukIeKXy.js,sha256=95fWhWbMyf8jcSiz6fbBbi8n1oP2kBzCxQJAPEVMdbM,553
|
|
276
|
+
web/client/dist/assets/Content-C_JUq1Do.js,sha256=pPpCLNQiSndPLUIuCfCr9ZpSIpkM-aGdViaqlW5l9uk,762
|
|
277
|
+
web/client/dist/assets/Content-CfmwrKKm.js,sha256=jVbCw6eUXfFAH297Or4uU0wdP_0_2dlxsq0M5I9lWPA,37120
|
|
278
|
+
web/client/dist/assets/Data-ChAnh4ni.js,sha256=j6M8AHcA7bcoq-IBXRMOrHfUp_vA-BiaV7mGSkwcfng,935
|
|
279
|
+
web/client/dist/assets/DataCatalog-DWoqDoha.js,sha256=fGAULWOqlJvh6jDXKgkJm2ygnn23KpUYQgiI8dwlzf4,122505
|
|
280
|
+
web/client/dist/assets/Editor-CUljCEXi.js,sha256=7eq2641si1ynZPyGnPfvE48rbV0fqX7EueAoPApj9vo,1490
|
|
281
|
+
web/client/dist/assets/Editor-ClszqJ2I.js,sha256=5raQQ1m4DVTo90Al7ZvwSnYkHCSUpF8ecJYWGZ98424,43432
|
|
282
|
+
web/client/dist/assets/Errors-Fuw_f-1a.js,sha256=9Ltazl_iNNRoSo5PN9gLu7b_22GDMw8_yStFq6pKuXE,1322
|
|
283
|
+
web/client/dist/assets/FileExplorer-CXZ9Q150.js,sha256=4WZvyNqn4Nedev5iYsriXIfG6fiao7ZAHKUXiw3Yysg,111732
|
|
284
|
+
web/client/dist/assets/Footer-BFLq78dA.js,sha256=0VIMDsp3mm5H8lOSKQo5KqgqCiLoCq32uik0nneYlPo,700
|
|
285
|
+
web/client/dist/assets/Header-BEK5IMP9.js,sha256=vb0YWyfummMHOddT7OhCppUYQA9Nr2IsN-onDzLUNvc,11424
|
|
286
|
+
web/client/dist/assets/Input-tR0WpVuK.js,sha256=Wfz5lBSEpYH8wQ3LNRc7NogABhaBvUq6hdaLk1c_0Gg,74100
|
|
287
|
+
web/client/dist/assets/Lineage-CpFxhla3.js,sha256=Fa0kMyhmaj6p_kN9wE7yyBMm9OUwDW-zqaWGy4vmhrA,961
|
|
288
|
+
web/client/dist/assets/ListboxShow-C9Uz0VvV.js,sha256=U44Y2rWFO24_n1ruvGnZ6eN38IU5XCLvHNefAPG5B6A,17746
|
|
289
|
+
web/client/dist/assets/ModelLineage-bdWk08Ab.js,sha256=DIUd3OLYnr7uuq1aqytzNmmG411S2-fIZeAy_-ly3mQ,16556
|
|
290
|
+
web/client/dist/assets/Models-BU-MA8yO.js,sha256=cHEAspOb9yFTGs1OS7IDJfUKZOZfjAzzaZWG0VAszR8,2153
|
|
291
|
+
web/client/dist/assets/Page-DwNrMCBx.js,sha256=C0yiiTIUBUhvZo5b6inYrfTeiRI9TZHd-Ck7ga6jYD0,589
|
|
292
|
+
web/client/dist/assets/Plan-CrjOn4QG.js,sha256=BfY0SPau9E0Y-Le0bkmg674WpEZplr6s2a6IKe6EYzc,666
|
|
293
|
+
web/client/dist/assets/PlusCircleIcon-C1VPxB8A.js,sha256=S_nOAcYs_OFZtZNvVpmNnqYEMJQjCUiUJvpy_r8Y0ow,11175
|
|
294
|
+
web/client/dist/assets/ReportErrors-BcmrRxbG.js,sha256=-AjWeq89Hzc2nZN-iWg84qsDwxyY5j9fQ7O-W7fwQAc,5417
|
|
295
|
+
web/client/dist/assets/Root-BzyY-jcn.js,sha256=Zv8azTUaRSWy1ctO75qmSN9Vp9rckF10uMRdCMlbhsU,46591
|
|
296
|
+
web/client/dist/assets/SearchList-wEGQkxPR.js,sha256=fhtwmJWEpK8RvvbuSxJyQ6eD-jF7NkKTcF-0aVHjTV4,291986
|
|
297
|
+
web/client/dist/assets/SelectEnvironment-LGhN0dhR.js,sha256=g9FQV5OvNsYPRp180pF9ytMmha5BAsmO1OBjlhxvaXE,33099
|
|
298
|
+
web/client/dist/assets/SourceList-DHZ9-QtW.js,sha256=55utRdpU4qge1U4WZIN46q4zoRGjrhvtXKq5rRQmBms,3205
|
|
299
|
+
web/client/dist/assets/SourceListItem-CzN9ypEP.js,sha256=t4rfF2NXP2TX--ItOLWczg8nOloEb5UOONgafm5kxEM,1106
|
|
300
|
+
web/client/dist/assets/SplitPane-Djy_uJgV.js,sha256=TVbbAFLgj6Bh3vE0UFBoQZcurU2r9y7Np-fJrz4GHt4,10439
|
|
301
|
+
web/client/dist/assets/Tests-DXoZpfR7.js,sha256=sc1jMQ55OLWbRex3D2lwjncpE292-n3V87KLv8JCffM,975
|
|
302
|
+
web/client/dist/assets/Welcome-DREQuVRP.js,sha256=MdJYn0djDAv4KxHA3akNtrcpqD6EbwJkSbA3sV0Q8bU,354
|
|
303
303
|
web/client/dist/assets/_commonjs-dynamic-modules-TDtrdbi3.js,sha256=WQq4BXvAMsPhT58adqrv_QHaYJQT-xKIiBnKBDPB-uk,239
|
|
304
|
-
web/client/dist/assets/context-
|
|
305
|
-
web/client/dist/assets/context-
|
|
306
|
-
web/client/dist/assets/editor-
|
|
307
|
-
web/client/dist/assets/file-
|
|
304
|
+
web/client/dist/assets/context-C8brTRBZ.js,sha256=aq5BsBCl8kaKHIhUeSsX4dOGffcePQRTRkHHczTmL_A,2044062
|
|
305
|
+
web/client/dist/assets/context-CKu1HxT0.js,sha256=Uw-nUJ9hdDgxzJ47wFem0g3rYOn0j7y73y7UCjxoLbI,4522
|
|
306
|
+
web/client/dist/assets/editor-D_hgjDRq.js,sha256=KPmzmV0eZXaof3tVvsSy3vAinVr4cLTh0jDAluKHLNA,7858
|
|
307
|
+
web/client/dist/assets/file-CyBkQGGI.js,sha256=hc-i3E6IMSEq22EfgYBdXnSZulIlonsuDX8M8rb3iRo,2350
|
|
308
308
|
web/client/dist/assets/help-6Q7f7fjd.js,sha256=93Iri9PzpAiPgCyRsrQwABjP2jomAUNR7y2OqHxPf34,445
|
|
309
|
-
web/client/dist/assets/help-
|
|
310
|
-
web/client/dist/assets/index-
|
|
311
|
-
web/client/dist/assets/index-
|
|
312
|
-
web/client/dist/assets/plan-
|
|
313
|
-
web/client/dist/assets/project-
|
|
314
|
-
web/client/dist/assets/transition-
|
|
309
|
+
web/client/dist/assets/help-BcOVbjKP.js,sha256=JrU9_BATcjPKhJPd8Z4mjJYhrR-k2kYQJW5pCwEDpxo,57842
|
|
310
|
+
web/client/dist/assets/index-CYAA3nVF.js,sha256=se1AxggC77IucdB-L3yyKuRlfIvhRJRF_MPWcEb_oAY,517239
|
|
311
|
+
web/client/dist/assets/index-RJnYVUFY.js,sha256=lUupuMd5VN3IjH84ittS45BJKMPdIpyiGfV52HsJJ5A,13514
|
|
312
|
+
web/client/dist/assets/plan-BaiSs9Um.js,sha256=gegD4tt9QOlsEibF0jkXttyDsYnHTxO6bYoT4YQTSL8,13755
|
|
313
|
+
web/client/dist/assets/project-vqNomsgg.js,sha256=BdpypXgEuN2ioPuv5pCd_j1n2ISbMpHaksO95Iyox1U,3338
|
|
314
|
+
web/client/dist/assets/transition-CtNxN7ku.js,sha256=nL3iBEBkgUBeti2Jz7nv4oTXOiXBnnmPhoQnZiRpPvU,34243
|
|
315
315
|
web/client/dist/css/base.css,sha256=JApDmQihY7DRy5Bd30uYMm5NdMKm0QsEOMBsOuK7gyU,9048
|
|
316
316
|
web/client/dist/css/design.css,sha256=9VTHN-aYFVW6I53jUWbV8qaqo87tXyZTYSWFLC_sRQY,17057
|
|
317
317
|
web/client/dist/favicons/favicon.svg,sha256=ZPNT00J77RHUj6Nlh6Z4Puxnp_oq9RSqACjomhDRUXE,1586
|
|
@@ -383,8 +383,8 @@ web/server/api/endpoints/models.py,sha256=SzS5bshzdXyM6hb948sZ_3k-xhpGCHkxkb7pHz
|
|
|
383
383
|
web/server/api/endpoints/modules.py,sha256=8hqqgonGay_mJmpCw0IdbjsPhWlQH2VLdKAqha-myac,468
|
|
384
384
|
web/server/api/endpoints/plan.py,sha256=OYuQ_4dgbhG9ibTcX1a8mvYgH3ANxw9Fhbb4wg6QWqc,9222
|
|
385
385
|
web/server/api/endpoints/table_diff.py,sha256=Wd5YxeKbZB7AkrDvqFgvV9ZQlnKYOF1n5W_w2EHE_Zw,2085
|
|
386
|
-
sqlmesh-0.181.2.
|
|
387
|
-
sqlmesh-0.181.2.
|
|
388
|
-
sqlmesh-0.181.2.
|
|
389
|
-
sqlmesh-0.181.2.
|
|
390
|
-
sqlmesh-0.181.2.
|
|
386
|
+
sqlmesh-0.181.2.dev16.dist-info/METADATA,sha256=oB7oGjK-XBua500-t4lVRlibhb-tlJusr3MSonjoA5Y,25253
|
|
387
|
+
sqlmesh-0.181.2.dev16.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
|
|
388
|
+
sqlmesh-0.181.2.dev16.dist-info/entry_points.txt,sha256=pIYKtg-u-uO7BK_Y0qrdmfyj0bYrcMc3Xiqr5WE3VFk,121
|
|
389
|
+
sqlmesh-0.181.2.dev16.dist-info/top_level.txt,sha256=bspjo5vjELQkuN0qKuTFIbsrUt3Zeo8D2mlKeHG1LdE,12
|
|
390
|
+
sqlmesh-0.181.2.dev16.dist-info/RECORD,,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{y as u,j as s,O as f,e as t,I as c,B as d,n as p,m as x}from"./index-
|
|
1
|
+
import{y as u,j as s,O as f,e as t,I as c,B as d,n as p,m as x}from"./index-CYAA3nVF.js";import{P as j}from"./Page-DwNrMCBx.js";import{u as h}from"./project-vqNomsgg.js";import{S as v}from"./SourceList-DHZ9-QtW.js";import{S as y}from"./SourceListItem-CzN9ypEP.js";import"./SplitPane-Djy_uJgV.js";import"./file-CyBkQGGI.js";import"./Input-tR0WpVuK.js";import"./index-RJnYVUFY.js";function g(){const{pathname:a}=u(),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:n=!1})=>s.jsx(y,{to:e,name:o,text:l,description:m,disabled:n})}),s.jsx(c,{}),s.jsx("div",{className:"py-1 px-1 flex justify-end",children:s.jsx(d,{size:x.sm,variant:p.Neutral,children:"Run All"})})]}),content:s.jsx(f,{})})}export{g as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as s,c as i,m as a,n,I as p}from"./index-
|
|
1
|
+
import{j as s,c as i,m as a,n,I as p}from"./index-CYAA3nVF.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-
|
|
1
|
+
import{r as e}from"./index-CYAA3nVF.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-
|
|
1
|
+
import{r as e}from"./index-CYAA3nVF.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,U as l,w as e,j as r,V as n,e as d}from"./index-
|
|
1
|
+
import{d as a,U as l,w as e,j as r,V as n,e as d}from"./index-CYAA3nVF.js";import{D as u}from"./ReportErrors-BcmrRxbG.js";import"./PlusCircleIcon-C1VPxB8A.js";import"./transition-CtNxN7ku.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./SplitPane-Djy_uJgV.js";function j(){const{errors:i}=a(),{id:s}=l(),o=e(s)?void 0:Array.from(i).find(t=>t.id===s);return r.jsx("div",{className:"flex overflow-auto w-full h-full",children:e(o)?r.jsx(n,{link:d.Errors,description:e(s)?void 0:`Error ${s} 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:o,scope:o.key,withSplitPane:!0})})})})}export{j as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as y,R as J,a as O,j as e,n as I,t as Me,b as C,B as te,w as B,m as T,c as g,M as Pe,g as V,J as ze,K as ie,i as M,P as Q,h as H,T as Re,I as re,Q as xe,D as Ue,C as U,s as Le,L as $e,d as Ve,l as Ge,p as He,q as qe,U as Ke,V as Ze,e as Ye}from"./index-BafGN4in.js";import{G as Je,B as Qe,F as We,w as Xe,u as Z,S as es,A as ss,a as ge,b as E,E as A,P as L,c as as}from"./SelectEnvironment-BsRoqhGW.js";import{u as x,a as Y,E as z}from"./plan-BX1iXHwl.js";import{B as F}from"./Banner-NSDMTUuS.js";import{A as $,F as ye,a as we,p as ns}from"./PlusCircleIcon-D6THv_ZD.js";import{U as ts,C as Ee,I as ls,y as is,o as le,T as rs,p as os,b as cs,F as ds,c as ms,A as us,z as Te,D as ee}from"./transition-BlPPv2uy.js";import{I as q}from"./Input-CLgDkIXg.js";import{T as ps,p as fs}from"./ListboxShow-DT2Vq8H-.js";import{u as Be}from"./project-Bag2J0QC.js";import{F as je}from"./context-YFUfJm57.js";import"./ModelLineage-E21kqsuu.js";import"./editor-BKhlmwRX.js";import"./file-DahECWZX.js";import"./SearchList-k4ylxX-x.js";import"./help-6Q7f7fjd.js";import"./ChevronDownIcon-PDbmvmYa.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./SourceList-DsSkJAMU.js";import"./index-CAWWTpIH.js";function hs({title:s,titleId:a,...t},r){return y.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?y.createElement("title",{id:a},s):null,y.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 W=y.forwardRef(hs);let be=y.createContext(null);be.displayName="GroupContext";let xs=y.Fragment;function js(s){var a;let[t,r]=y.useState(null),[l,i]=We(),[o,u]=Xe(),c=y.useMemo(()=>({switch:t,setSwitch:r,labelledby:l,describedby:o}),[t,r,l,o]),d={},p=s;return J.createElement(u,{name:"Switch.Description"},J.createElement(i,{name:"Switch.Label",props:{htmlFor:(a=c.switch)==null?void 0:a.id,onClick(n){t&&(n.currentTarget.tagName==="LABEL"&&n.preventDefault(),t.click(),t.focus({preventScroll:!0}))}}},J.createElement(be.Provider,{value:c},Ee({ourProps:d,theirProps:p,defaultTag:xs,name:"Switch.Group"}))))}let vs="button";function gs(s,a){var t;let r=ls(),{id:l=`headlessui-switch-${r}`,checked:i,defaultChecked:o=!1,onChange:u,disabled:c=!1,name:d,value:p,form:n,...j}=s,m=y.useContext(be),f=y.useRef(null),h=is(f,a,m===null?null:m.setSwitch),[P,S]=ps(i,u,o),D=le(()=>S==null?void 0:S(!P)),N=le(_=>{if(us(_.currentTarget))return _.preventDefault();_.preventDefault(),D()}),k=le(_=>{_.key===Te.Space?(_.preventDefault(),D()):_.key===Te.Enter&&fs(_.currentTarget)}),w=le(_=>_.preventDefault()),R=y.useMemo(()=>({checked:P}),[P]),pe={id:l,ref:h,role:"switch",type:rs(s,f),tabIndex:s.tabIndex===-1?0:(t=s.tabIndex)!=null?t:0,"aria-checked":P,"aria-labelledby":m==null?void 0:m.labelledby,"aria-describedby":m==null?void 0:m.describedby,disabled:c,onClick:N,onKeyUp:k,onKeyPress:w},fe=os();return y.useEffect(()=>{var _;let b=(_=f.current)==null?void 0:_.closest("form");b&&o!==void 0&&fe.addEventListener(b,"reset",()=>{S(o)})},[f,S]),J.createElement(J.Fragment,null,d!=null&&P&&J.createElement(cs,{features:ms.Hidden,...ds({as:"input",type:"checkbox",hidden:!0,readOnly:!0,disabled:c,form:n,checked:P,name:d,value:p})}),Ee({ourProps:pe,theirProps:j,slot:R,defaultTag:vs,name:"Switch"}))}let ys=ts(gs),ws=js,he=Object.assign(ys,{Group:ws,Label:Qe,Description:Je});function bs(){const s=O(a=>a.environment);return e.jsx("div",{className:"flex flex-col px-4 py-2 w-full",children:e.jsx(F,{variant:I.Warning,children:e.jsx($,{defaultOpen:!1,children:({open:a})=>e.jsxs(e.Fragment,{children:[e.jsxs($.Button,{className:"w-full flex items-center justify-between",children:[e.jsx(F.Label,{className:"w-full",children:s.isInitialProd?"Initializing Prod Environment":"Prod Environment"}),s.isInitialProd&&e.jsx(e.Fragment,{children:a?e.jsx(ye,{className:"w-5 text-warning-500"}):e.jsx(we,{className:"w-5 text-warning-500"})})]}),s.isInitialProd&&e.jsx($.Panel,{className:"px-2 text-sm mt-2",children:e.jsx(F.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 Ns(s=0){return y.useCallback(a=>{setTimeout(()=>{a==null||a.focus()},s)},[s])}function ks({run:s,apply:a,cancel:t,reset:r}){const l=Me(),{change_categorization:i}=Z(),o=O(b=>b.modules),u=O(b=>b.environment),c=O(b=>b.environments),d=O(b=>b.addConfirmation),p=O(b=>b.setShowConfirmation),n=x(b=>b.planAction),j=x(b=>b.planOverview),m=x(b=>b.planApply),f=x(b=>b.planCancel),h=Ns();function P(b){b.stopPropagation(),r()}function S(b){b.stopPropagation(),t()}function D(b){b.stopPropagation(),l(-1)}function N(b){b.stopPropagation();const Oe=u.isProd&&C(u.isInitial),ke=Array.from(i.values()).some(Ie=>B(Ie.category));Oe?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:ke?["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:`${c.size>1?"Select or ":""}Add Environment`}),e.jsxs("div",{className:"flex items-center relative",children:[c.size>1&&e.jsx(es,{className:"mr-2",showAddEnvironment:!1,onSelect:()=>{p(!1)},size:T.md}),e.jsx(ss,{className:"w-full",size:T.md,onAdd:()=>{p(!1)}})]})]})}):ke?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 w=j.isFailed||m.isFailed||f.isSuccessful,R=C(n.isCancelling)&&C(n.isDone)&&(n.isProcessing?C(f.isSuccessful):!0)&&C(w),pe=n.isApplying||f.isCancelling||m.isRunning&&j.isFinished,fe=w||C(n.isProcessing)&&C(n.isRun)&&C(n.isDone),_=o.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(ee,{appear:!0,show:R,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",children:R&&e.jsx(te,{disabled:n.isProcessing||f.isSuccessful||n.isDone,onClick:n.isRun?k:f.isSuccessful?void 0:N,ref:h,variant:f.isSuccessful?I.Danger:I.Primary,autoFocus:!0,className:"trasition-all duration-300 ease-in-out",children:e.jsx("span",{children:Y.getActionDisplayName(n,f.isSuccessful?[]:[z.RunningTask,z.Running,z.Run,z.Applying,z.ApplyBackfill,z.ApplyVirtual,z.ApplyChangesAndBackfill,z.ApplyMetadata],f.isSuccessful?"Canceled":"Done")})})})}),e.jsxs("div",{className:"flex items-center",children:[pe&&e.jsx(te,{onClick:S,variant:I.Danger,disabled:n.isCancelling||n.isProcessing&&f.isSuccessful,children:Y.getActionDisplayName(n,n.isProcessing&&C(f.isSuccessful)?[z.Cancelling]:[],f.isSuccessful?"Finishing Cancellation...":"Cancel")}),fe&&e.jsx(te,{onClick:P,variant:I.Info,disabled:n.isCancelling||n.isProcessing&&f.isSuccessful,children:"Start Over"}),_&&e.jsx(te,{onClick:D,variant:I.Info,children:"Go Back"})]})]})})}function Ps({label:s,enabled:a,setEnabled:t,a11yTitle:r,size:l=T.md,disabled:i=!1,className:o}){return e.jsxs(he.Group,{as:"div",className:"m-1",children:[e.jsxs(he,{checked:i?!1:a,onChange:t,className:g("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",o,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:g("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(he.Label,{className:g("text-xs font-light ml-1 text-neutral-600 dark:text-neutral-400"),children:s})]})}function K({label:s,info:a,enabled:t,disabled:r=!1,setEnabled:l,className:i}){return e.jsxs("div",{className:g("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(Ps,{disabled:r,enabled:t,setEnabled:l,size:T.lg})]})}function Ts({disabled:s=!1,className:a}){const t=ge(),{start:r,end:l,isInitialPlanRun:i}=Z();return e.jsxs("div",{className:g("flex w-full flex-wrap md:flex-nowrap",a),children:[e.jsx(q,{className:"w-full md:w-[50%]",label:"Start Date (UTC)",info:"The start datetime of the interval",disabled:s||i,children:({disabled:o,className:u})=>e.jsx(q.Textfield,{className:g(u,"w-full"),disabled:o,placeholder:"2023-12-13",value:r,onInput:c=>{c.stopPropagation(),t({type:E.DateStart,start:c.target.value})}})}),e.jsx(q,{className:"w-full md:w-[50%]",label:"End Date (UTC)",info:"The end datetime of the interval",disabled:s||i,children:({disabled:o,className:u})=>e.jsx(q.Textfield,{className:g(u,"w-full"),disabled:o,placeholder:"2022-12-13",value:l,onInput:c=>{c.stopPropagation(),t({type:E.DateEnd,end:c.target.value})}})})]})}function Cs(){const s=ge(),{skip_tests:a,no_gaps:t,skip_backfill:r,forward_only:l,auto_apply:i,no_auto_categorization:o,restate_models:u,isInitialPlanRun:c,create_from:d,include_unmodified:p}=Z(),n=y.useRef(null),j=x(N=>N.planAction),m=x(N=>N.planOverview),f=x(N=>N.planApply),h=O(N=>N.environment),P=O(N=>N.environments),S=Pe.getOnlyRemote(Array.from(P));y.useEffect(()=>{s({type:E.PlanOptions,...m.plan_options,skip_tests:!1})},[]);const D=j.isProcessing||j.isDone||f.isFinished||m.isLatest&&C(j.isRun)||m.isVirtualUpdate;return y.useEffect(()=>{var N;B(n.current)||j.isProcessing&&n.current.classList.contains("--is-open")&&((N=n.current)==null||N.click())},[n,j]),e.jsxs("form",{className:"w-full",children:[e.jsx("fieldset",{className:g(D&&"opacity-50 cursor-not-allowed"),children:e.jsx(Ts,{className:g(D&&"pointer-events-none")})}),e.jsx("fieldset",{className:"my-2",children:e.jsx(F,{children:e.jsx($,{defaultOpen:j.isRun,children:({open:N})=>e.jsxs(e.Fragment,{children:[e.jsxs($.Button,{ref:n,className:g("w-full flex items-center",N&&"--is-open"),children:[e.jsxs(F.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(ye,{className:"h-5 w-5 text-neutral-400"}):e.jsx(we,{className:"h-5 w-5 text-neutral-400"})]}),e.jsxs($.Panel,{unmount:!1,className:g("py-4 text-sm text-neutral-500",D&&"opacity-50 cursor-not-allowed"),children:[e.jsx("div",{className:g(D&&"pointer-events-none"),children:e.jsxs("div",{className:"flex flex-wrap md:flex-nowrap",children:[C(h.isProd)&&e.jsx(q,{className:"w-full",label:"Create From Environment",info:"The environment to base the plan on rather than local files",disabled:S.length<2,children:({className:k,disabled:w})=>e.jsx(q.Selector,{className:g(k,"w-full"),list:Pe.getOnlyRemote(Array.from(P)).filter(R=>R!==h).map(R=>({value:R.name,text:R.name})),onChange:R=>{s({type:E.PlanOptions,create_from:R})},value:d,disabled:w})}),e.jsx(q,{className:"w-full",label:"Restate Models",info:`Restate data for specified models and models
|
|
1
|
+
import{r as y,R as J,a as O,j as e,n as I,t as Me,b as C,B as te,w as B,m as T,c as g,M as Pe,g as V,J as ze,K as ie,i as M,P as Q,h as H,T as Re,I as re,Q as xe,D as Ue,C as U,s as Le,L as $e,d as Ve,l as Ge,p as He,q as qe,U as Ke,V as Ze,e as Ye}from"./index-CYAA3nVF.js";import{G as Je,B as Qe,F as We,w as Xe,u as Z,S as es,A as ss,a as ge,b as E,E as A,P as L,c as as}from"./SelectEnvironment-LGhN0dhR.js";import{u as x,a as Y,E as z}from"./plan-BaiSs9Um.js";import{B as F}from"./Banner-DoiNAKye.js";import{A as $,F as ye,a as we,p as ns}from"./PlusCircleIcon-C1VPxB8A.js";import{U as ts,C as Ee,I as ls,y as is,o as le,T as rs,p as os,b as cs,F as ds,c as ms,A as us,z as Te,D as ee}from"./transition-CtNxN7ku.js";import{I as q}from"./Input-tR0WpVuK.js";import{T as ps,p as fs}from"./ListboxShow-C9Uz0VvV.js";import{u as Be}from"./project-vqNomsgg.js";import{F as je}from"./context-C8brTRBZ.js";import"./ModelLineage-bdWk08Ab.js";import"./editor-D_hgjDRq.js";import"./file-CyBkQGGI.js";import"./SearchList-wEGQkxPR.js";import"./help-6Q7f7fjd.js";import"./ChevronDownIcon-BEGYfY2e.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./SourceList-DHZ9-QtW.js";import"./index-RJnYVUFY.js";function hs({title:s,titleId:a,...t},r){return y.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?y.createElement("title",{id:a},s):null,y.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 W=y.forwardRef(hs);let be=y.createContext(null);be.displayName="GroupContext";let xs=y.Fragment;function js(s){var a;let[t,r]=y.useState(null),[l,i]=We(),[o,u]=Xe(),c=y.useMemo(()=>({switch:t,setSwitch:r,labelledby:l,describedby:o}),[t,r,l,o]),d={},p=s;return J.createElement(u,{name:"Switch.Description"},J.createElement(i,{name:"Switch.Label",props:{htmlFor:(a=c.switch)==null?void 0:a.id,onClick(n){t&&(n.currentTarget.tagName==="LABEL"&&n.preventDefault(),t.click(),t.focus({preventScroll:!0}))}}},J.createElement(be.Provider,{value:c},Ee({ourProps:d,theirProps:p,defaultTag:xs,name:"Switch.Group"}))))}let vs="button";function gs(s,a){var t;let r=ls(),{id:l=`headlessui-switch-${r}`,checked:i,defaultChecked:o=!1,onChange:u,disabled:c=!1,name:d,value:p,form:n,...j}=s,m=y.useContext(be),f=y.useRef(null),h=is(f,a,m===null?null:m.setSwitch),[P,S]=ps(i,u,o),D=le(()=>S==null?void 0:S(!P)),N=le(_=>{if(us(_.currentTarget))return _.preventDefault();_.preventDefault(),D()}),k=le(_=>{_.key===Te.Space?(_.preventDefault(),D()):_.key===Te.Enter&&fs(_.currentTarget)}),w=le(_=>_.preventDefault()),R=y.useMemo(()=>({checked:P}),[P]),pe={id:l,ref:h,role:"switch",type:rs(s,f),tabIndex:s.tabIndex===-1?0:(t=s.tabIndex)!=null?t:0,"aria-checked":P,"aria-labelledby":m==null?void 0:m.labelledby,"aria-describedby":m==null?void 0:m.describedby,disabled:c,onClick:N,onKeyUp:k,onKeyPress:w},fe=os();return y.useEffect(()=>{var _;let b=(_=f.current)==null?void 0:_.closest("form");b&&o!==void 0&&fe.addEventListener(b,"reset",()=>{S(o)})},[f,S]),J.createElement(J.Fragment,null,d!=null&&P&&J.createElement(cs,{features:ms.Hidden,...ds({as:"input",type:"checkbox",hidden:!0,readOnly:!0,disabled:c,form:n,checked:P,name:d,value:p})}),Ee({ourProps:pe,theirProps:j,slot:R,defaultTag:vs,name:"Switch"}))}let ys=ts(gs),ws=js,he=Object.assign(ys,{Group:ws,Label:Qe,Description:Je});function bs(){const s=O(a=>a.environment);return e.jsx("div",{className:"flex flex-col px-4 py-2 w-full",children:e.jsx(F,{variant:I.Warning,children:e.jsx($,{defaultOpen:!1,children:({open:a})=>e.jsxs(e.Fragment,{children:[e.jsxs($.Button,{className:"w-full flex items-center justify-between",children:[e.jsx(F.Label,{className:"w-full",children:s.isInitialProd?"Initializing Prod Environment":"Prod Environment"}),s.isInitialProd&&e.jsx(e.Fragment,{children:a?e.jsx(ye,{className:"w-5 text-warning-500"}):e.jsx(we,{className:"w-5 text-warning-500"})})]}),s.isInitialProd&&e.jsx($.Panel,{className:"px-2 text-sm mt-2",children:e.jsx(F.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 Ns(s=0){return y.useCallback(a=>{setTimeout(()=>{a==null||a.focus()},s)},[s])}function ks({run:s,apply:a,cancel:t,reset:r}){const l=Me(),{change_categorization:i}=Z(),o=O(b=>b.modules),u=O(b=>b.environment),c=O(b=>b.environments),d=O(b=>b.addConfirmation),p=O(b=>b.setShowConfirmation),n=x(b=>b.planAction),j=x(b=>b.planOverview),m=x(b=>b.planApply),f=x(b=>b.planCancel),h=Ns();function P(b){b.stopPropagation(),r()}function S(b){b.stopPropagation(),t()}function D(b){b.stopPropagation(),l(-1)}function N(b){b.stopPropagation();const Oe=u.isProd&&C(u.isInitial),ke=Array.from(i.values()).some(Ie=>B(Ie.category));Oe?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:ke?["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:`${c.size>1?"Select or ":""}Add Environment`}),e.jsxs("div",{className:"flex items-center relative",children:[c.size>1&&e.jsx(es,{className:"mr-2",showAddEnvironment:!1,onSelect:()=>{p(!1)},size:T.md}),e.jsx(ss,{className:"w-full",size:T.md,onAdd:()=>{p(!1)}})]})]})}):ke?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 w=j.isFailed||m.isFailed||f.isSuccessful,R=C(n.isCancelling)&&C(n.isDone)&&(n.isProcessing?C(f.isSuccessful):!0)&&C(w),pe=n.isApplying||f.isCancelling||m.isRunning&&j.isFinished,fe=w||C(n.isProcessing)&&C(n.isRun)&&C(n.isDone),_=o.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(ee,{appear:!0,show:R,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",children:R&&e.jsx(te,{disabled:n.isProcessing||f.isSuccessful||n.isDone,onClick:n.isRun?k:f.isSuccessful?void 0:N,ref:h,variant:f.isSuccessful?I.Danger:I.Primary,autoFocus:!0,className:"trasition-all duration-300 ease-in-out",children:e.jsx("span",{children:Y.getActionDisplayName(n,f.isSuccessful?[]:[z.RunningTask,z.Running,z.Run,z.Applying,z.ApplyBackfill,z.ApplyVirtual,z.ApplyChangesAndBackfill,z.ApplyMetadata],f.isSuccessful?"Canceled":"Done")})})})}),e.jsxs("div",{className:"flex items-center",children:[pe&&e.jsx(te,{onClick:S,variant:I.Danger,disabled:n.isCancelling||n.isProcessing&&f.isSuccessful,children:Y.getActionDisplayName(n,n.isProcessing&&C(f.isSuccessful)?[z.Cancelling]:[],f.isSuccessful?"Finishing Cancellation...":"Cancel")}),fe&&e.jsx(te,{onClick:P,variant:I.Info,disabled:n.isCancelling||n.isProcessing&&f.isSuccessful,children:"Start Over"}),_&&e.jsx(te,{onClick:D,variant:I.Info,children:"Go Back"})]})]})})}function Ps({label:s,enabled:a,setEnabled:t,a11yTitle:r,size:l=T.md,disabled:i=!1,className:o}){return e.jsxs(he.Group,{as:"div",className:"m-1",children:[e.jsxs(he,{checked:i?!1:a,onChange:t,className:g("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",o,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:g("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(he.Label,{className:g("text-xs font-light ml-1 text-neutral-600 dark:text-neutral-400"),children:s})]})}function K({label:s,info:a,enabled:t,disabled:r=!1,setEnabled:l,className:i}){return e.jsxs("div",{className:g("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(Ps,{disabled:r,enabled:t,setEnabled:l,size:T.lg})]})}function Ts({disabled:s=!1,className:a}){const t=ge(),{start:r,end:l,isInitialPlanRun:i}=Z();return e.jsxs("div",{className:g("flex w-full flex-wrap md:flex-nowrap",a),children:[e.jsx(q,{className:"w-full md:w-[50%]",label:"Start Date (UTC)",info:"The start datetime of the interval",disabled:s||i,children:({disabled:o,className:u})=>e.jsx(q.Textfield,{className:g(u,"w-full"),disabled:o,placeholder:"2023-12-13",value:r,onInput:c=>{c.stopPropagation(),t({type:E.DateStart,start:c.target.value})}})}),e.jsx(q,{className:"w-full md:w-[50%]",label:"End Date (UTC)",info:"The end datetime of the interval",disabled:s||i,children:({disabled:o,className:u})=>e.jsx(q.Textfield,{className:g(u,"w-full"),disabled:o,placeholder:"2022-12-13",value:l,onInput:c=>{c.stopPropagation(),t({type:E.DateEnd,end:c.target.value})}})})]})}function Cs(){const s=ge(),{skip_tests:a,no_gaps:t,skip_backfill:r,forward_only:l,auto_apply:i,no_auto_categorization:o,restate_models:u,isInitialPlanRun:c,create_from:d,include_unmodified:p}=Z(),n=y.useRef(null),j=x(N=>N.planAction),m=x(N=>N.planOverview),f=x(N=>N.planApply),h=O(N=>N.environment),P=O(N=>N.environments),S=Pe.getOnlyRemote(Array.from(P));y.useEffect(()=>{s({type:E.PlanOptions,...m.plan_options,skip_tests:!1})},[]);const D=j.isProcessing||j.isDone||f.isFinished||m.isLatest&&C(j.isRun)||m.isVirtualUpdate;return y.useEffect(()=>{var N;B(n.current)||j.isProcessing&&n.current.classList.contains("--is-open")&&((N=n.current)==null||N.click())},[n,j]),e.jsxs("form",{className:"w-full",children:[e.jsx("fieldset",{className:g(D&&"opacity-50 cursor-not-allowed"),children:e.jsx(Ts,{className:g(D&&"pointer-events-none")})}),e.jsx("fieldset",{className:"my-2",children:e.jsx(F,{children:e.jsx($,{defaultOpen:j.isRun,children:({open:N})=>e.jsxs(e.Fragment,{children:[e.jsxs($.Button,{ref:n,className:g("w-full flex items-center",N&&"--is-open"),children:[e.jsxs(F.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(ye,{className:"h-5 w-5 text-neutral-400"}):e.jsx(we,{className:"h-5 w-5 text-neutral-400"})]}),e.jsxs($.Panel,{unmount:!1,className:g("py-4 text-sm text-neutral-500",D&&"opacity-50 cursor-not-allowed"),children:[e.jsx("div",{className:g(D&&"pointer-events-none"),children:e.jsxs("div",{className:"flex flex-wrap md:flex-nowrap",children:[C(h.isProd)&&e.jsx(q,{className:"w-full",label:"Create From Environment",info:"The environment to base the plan on rather than local files",disabled:S.length<2,children:({className:k,disabled:w})=>e.jsx(q.Selector,{className:g(k,"w-full"),list:Pe.getOnlyRemote(Array.from(P)).filter(R=>R!==h).map(R=>({value:R.name,text:R.name})),onChange:R=>{s({type:E.PlanOptions,create_from:R})},value:d,disabled:w})}),e.jsx(q,{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{U as x,a as m,w as h,Q as o,a5 as c,a6 as D,a7 as T,r as b,j as u}from"./index-
|
|
1
|
+
import{U as x,a as m,w as h,Q as o,a5 as c,a6 as D,a7 as T,r as b,j as u}from"./index-CYAA3nVF.js";import{g,T as E}from"./help-BcOVbjKP.js";import{u as r}from"./editor-D_hgjDRq.js";import"./index-RJnYVUFY.js";import"./Input-tR0WpVuK.js";import"./file-CyBkQGGI.js";const d=24*60*60*1e3;function Q(){const{modelName:a}=x(),p=m(e=>e.models),s=m(e=>e.lastSelectedModel),f=r(e=>e.previewTable),i=r(e=>e.setPreviewQuery),n=r(e=>e.setPreviewTable),t=h(a)||a===(s==null?void 0:s.name)?s:p.get(encodeURI(a)),l={model:t.displayName,start:o(c(Date.now()-d)),end:o(new Date),execution_time:o(c(Date.now()-d)),limit:1e3},{refetch:v}=D(l),{refetch:w}=T(l);return b.useEffect(()=>{i(void 0),n(void 0),v().then(({data:e})=>{i(e==null?void 0:e.sql)}),w().then(({data:e})=>{n(g(e))})},[t]),u.jsx("div",{className:"flex overflow-hidden w-full h-full px-2",children:u.jsx(E,{headline:t==null?void 0:t.displayName,data:f??[[],[]]})})}export{Q as default};
|