sqlmesh 0.181.2.dev17__py3-none-any.whl → 0.181.2.dev19__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.dev17.dist-info → sqlmesh-0.181.2.dev19.dist-info}/METADATA +1 -1
- {sqlmesh-0.181.2.dev17.dist-info → sqlmesh-0.181.2.dev19.dist-info}/RECORD +49 -49
- web/client/dist/assets/{Audits-CpTpRWJS.js → Audits--i7rYGSa.js} +1 -1
- web/client/dist/assets/{Banner-DoiNAKye.js → Banner-DF5cAYB3.js} +1 -1
- web/client/dist/assets/{ChevronDownIcon-BEGYfY2e.js → ChevronDownIcon-_pxKYWw3.js} +1 -1
- web/client/dist/assets/{ChevronRightIcon-DukIeKXy.js → ChevronRightIcon-CefdPe7l.js} +1 -1
- web/client/dist/assets/{Content-CfmwrKKm.js → Content-CTSG98TE.js} +1 -1
- web/client/dist/assets/{Content-C_JUq1Do.js → Content-DP0RBcBf.js} +1 -1
- web/client/dist/assets/{Data-ChAnh4ni.js → Data-C_D2LPey.js} +1 -1
- web/client/dist/assets/{DataCatalog-DWoqDoha.js → DataCatalog-C6QIcOlP.js} +2 -2
- web/client/dist/assets/{Editor-ClszqJ2I.js → Editor-DJCE_ntM.js} +1 -1
- web/client/dist/assets/{Editor-CUljCEXi.js → Editor-DmDOoKYg.js} +1 -1
- web/client/dist/assets/{Errors-Fuw_f-1a.js → Errors-B0nrU2iZ.js} +1 -1
- web/client/dist/assets/{FileExplorer-CXZ9Q150.js → FileExplorer-oDv7Eqdg.js} +1 -1
- web/client/dist/assets/{Footer-BFLq78dA.js → Footer-BKOrdgAB.js} +1 -1
- web/client/dist/assets/{Header-BEK5IMP9.js → Header-BQ_cV1fD.js} +1 -1
- web/client/dist/assets/{Input-tR0WpVuK.js → Input-CNRmf1P2.js} +1 -1
- web/client/dist/assets/Lineage-Cmw3A5oO.js +1 -0
- web/client/dist/assets/{ListboxShow-C9Uz0VvV.js → ListboxShow-D2SfV_lp.js} +1 -1
- web/client/dist/assets/{ModelLineage-bdWk08Ab.js → ModelLineage-Chq1txJw.js} +1 -1
- web/client/dist/assets/{Models-BU-MA8yO.js → Models-z9CSIay9.js} +1 -1
- web/client/dist/assets/{Page-DwNrMCBx.js → Page-DNluW_Oq.js} +1 -1
- web/client/dist/assets/{Plan-CrjOn4QG.js → Plan-BnEsOAVM.js} +1 -1
- web/client/dist/assets/{PlusCircleIcon-C1VPxB8A.js → PlusCircleIcon-C_oR9H28.js} +1 -1
- web/client/dist/assets/{ReportErrors-BcmrRxbG.js → ReportErrors-BS1FbDhZ.js} +1 -1
- web/client/dist/assets/{Root-BzyY-jcn.js → Root-DGB1oz4_.js} +1 -1
- web/client/dist/assets/{SearchList-wEGQkxPR.js → SearchList-DenwkrNa.js} +1 -1
- web/client/dist/assets/{SelectEnvironment-LGhN0dhR.js → SelectEnvironment-M4epaYAa.js} +1 -1
- web/client/dist/assets/{SourceList-DHZ9-QtW.js → SourceList-DZowh00b.js} +1 -1
- web/client/dist/assets/{SourceListItem-CzN9ypEP.js → SourceListItem-BCR0gsPk.js} +1 -1
- web/client/dist/assets/{SplitPane-Djy_uJgV.js → SplitPane-LM6lbO06.js} +1 -1
- web/client/dist/assets/{Tests-DXoZpfR7.js → Tests-B9FFl0mr.js} +1 -1
- web/client/dist/assets/{Welcome-DREQuVRP.js → Welcome-Dp8mGwQ0.js} +1 -1
- web/client/dist/assets/context-CL_HG-xI.js +65 -0
- web/client/dist/assets/{context-CKu1HxT0.js → context-CdQ7jSjG.js} +1 -1
- web/client/dist/assets/{editor-D_hgjDRq.js → editor-CFjxlO9u.js} +1 -1
- web/client/dist/assets/{file-CyBkQGGI.js → file-Dc9MV3mO.js} +1 -1
- web/client/dist/assets/{help-BcOVbjKP.js → help-DnBhZsmH.js} +1 -1
- web/client/dist/assets/{index-CYAA3nVF.js → index-1Gje0-Tv.js} +1 -1
- web/client/dist/assets/{index-RJnYVUFY.js → index-BYdIMlzP.js} +1 -1
- web/client/dist/assets/{plan-BaiSs9Um.js → plan-BBb6522E.js} +1 -1
- web/client/dist/assets/{project-vqNomsgg.js → project-DyvofLzB.js} +1 -1
- web/client/dist/assets/{transition-CtNxN7ku.js → transition-BAtDdXay.js} +1 -1
- web/client/dist/index.html +1 -1
- web/client/dist/assets/Lineage-CpFxhla3.js +0 -1
- web/client/dist/assets/context-C8brTRBZ.js +0 -61
- {sqlmesh-0.181.2.dev17.dist-info → sqlmesh-0.181.2.dev19.dist-info}/WHEEL +0 -0
- {sqlmesh-0.181.2.dev17.dist-info → sqlmesh-0.181.2.dev19.dist-info}/entry_points.txt +0 -0
- {sqlmesh-0.181.2.dev17.dist-info → sqlmesh-0.181.2.dev19.dist-info}/licenses/LICENSE +0 -0
- {sqlmesh-0.181.2.dev17.dist-info → sqlmesh-0.181.2.dev19.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.dev19'
|
|
21
|
+
__version_tuple__ = version_tuple = (0, 181, 2, 'dev19')
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
sqlmesh/__init__.py,sha256=DRovDXI-9D9xeYDP7t8Fq7mI31S2btlN-LHPOK3y7PA,7240
|
|
2
|
-
sqlmesh/_version.py,sha256=
|
|
2
|
+
sqlmesh/_version.py,sha256=gzK1YNbUPAcA9TZgiE4JAzhMn8OTbUfth0wrSvCGwvM,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.dev19.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=jtRQpgcl57S8VTsLUAbXsqggosO_DRy0O0a263Babjw,5472
|
|
272
|
+
web/client/dist/assets/Audits--i7rYGSa.js,sha256=E_-ayMb4yYuXyHKd6IOCWHnbun43WCr42_AAcxQsnOw,997
|
|
273
|
+
web/client/dist/assets/Banner-DF5cAYB3.js,sha256=89-qFfo22XL2vRMq8Boh-YknWmJtMRmE0l21jh-9174,1544
|
|
274
|
+
web/client/dist/assets/ChevronDownIcon-_pxKYWw3.js,sha256=g0jQ23IahnBfI3SMryQAAqqKhTbVSfDpXM_fdh887Zk,553
|
|
275
|
+
web/client/dist/assets/ChevronRightIcon-CefdPe7l.js,sha256=aM5J9NBPX8eJIJuxSuC-IbK7OuGSzIt1utFdvWW42G4,553
|
|
276
|
+
web/client/dist/assets/Content-CTSG98TE.js,sha256=5irSRQYCdVQJumd6hHb3d_cjqRgGO7kW1SBHIPaPybE,37120
|
|
277
|
+
web/client/dist/assets/Content-DP0RBcBf.js,sha256=D7P-7mMoiLJim5vJ7bj7iZOVJhcuXJZ5lqLPWJfrJrs,762
|
|
278
|
+
web/client/dist/assets/Data-C_D2LPey.js,sha256=3KO5XwVQK_iZ-Ah0m78ob2XSjEcY6q0eIh-xLwmibTo,935
|
|
279
|
+
web/client/dist/assets/DataCatalog-C6QIcOlP.js,sha256=xrQBgBfFkifmiVr-SpkVmi1LAfh9fzpSp7gyYozjf6M,122423
|
|
280
|
+
web/client/dist/assets/Editor-DJCE_ntM.js,sha256=sdAsLqIRiJAQW1eKK371E2Sdwd20gEvsg5iXoFmQ_ws,43432
|
|
281
|
+
web/client/dist/assets/Editor-DmDOoKYg.js,sha256=E1KG8lX3HGVqV77DLBT7vCr0s2ocWPcpfsLjMRsJhEQ,1490
|
|
282
|
+
web/client/dist/assets/Errors-B0nrU2iZ.js,sha256=TZa-OtIY67UFoVmOAO0C6pgNlwbJFbrFoOYZdmBj3xc,1322
|
|
283
|
+
web/client/dist/assets/FileExplorer-oDv7Eqdg.js,sha256=a2SUL50rPURysPBWQ1llRyyOs1i5Qa6NCsEO64q6KxI,111732
|
|
284
|
+
web/client/dist/assets/Footer-BKOrdgAB.js,sha256=BN-cVuNhl_JHqLa5oz_NpPdqQHjL1iFeoJGBneXR4HM,700
|
|
285
|
+
web/client/dist/assets/Header-BQ_cV1fD.js,sha256=dbizFzWw0LWaqSKaUd-0yL5MNt1MP6_wnoJpInlGe_c,11424
|
|
286
|
+
web/client/dist/assets/Input-CNRmf1P2.js,sha256=beDAA5c-2FluUejdDQjq6Twb6Zf_eKHsZ4VBN1zMSPc,74100
|
|
287
|
+
web/client/dist/assets/Lineage-Cmw3A5oO.js,sha256=7iKqVZ1aFo4DNsfLg492_XQQeZNQvRvajk9ZBI0SesU,961
|
|
288
|
+
web/client/dist/assets/ListboxShow-D2SfV_lp.js,sha256=4b-kOBF0TPRYzfJma2YS9AB_lC_PV4jZw1Qr2WzKkjI,17746
|
|
289
|
+
web/client/dist/assets/ModelLineage-Chq1txJw.js,sha256=0QYwOt2Kuf4v9IGw7yjxNIvEoe-Mrzb6HfcPZZGC1oU,16556
|
|
290
|
+
web/client/dist/assets/Models-z9CSIay9.js,sha256=wSosvn21svvA1uIWq5tNWv2zmCRo_AiFEN7m8eCMp_0,2153
|
|
291
|
+
web/client/dist/assets/Page-DNluW_Oq.js,sha256=RvrBWuh7a7QK0AwQO9I60mvVZbsEb8MKbQfQLzNxKeM,589
|
|
292
|
+
web/client/dist/assets/Plan-BnEsOAVM.js,sha256=Yjm9dmPjfzA1oyGsGeIXQIflII-VeB3HLMwfBeK7z3Y,666
|
|
293
|
+
web/client/dist/assets/PlusCircleIcon-C_oR9H28.js,sha256=vbRTaYQemCuVhYq6HoFfYpKCMZeLDTB4B97LXbfdkTc,11175
|
|
294
|
+
web/client/dist/assets/ReportErrors-BS1FbDhZ.js,sha256=WoxxcndDR99hjEUwSyc_yq0Hu02U-g4ORIpYgvJsoSM,5417
|
|
295
|
+
web/client/dist/assets/Root-DGB1oz4_.js,sha256=Ih8_CB_A1KhLHCE59FR5cxN5rsS4I5bcK4A4XppiBLQ,46591
|
|
296
|
+
web/client/dist/assets/SearchList-DenwkrNa.js,sha256=oIJU-bjijgjbeXOC3tOZH_t7JdLa5yJJj1V8nxyObtg,291986
|
|
297
|
+
web/client/dist/assets/SelectEnvironment-M4epaYAa.js,sha256=HnRquIA2to7BCNx7axcA3fVn0TntimnG-43oQYXT-Fk,33099
|
|
298
|
+
web/client/dist/assets/SourceList-DZowh00b.js,sha256=bcE-gLhFvn0mh01nKJF9Iygl_ssWnfVKaqmkNLUujbc,3205
|
|
299
|
+
web/client/dist/assets/SourceListItem-BCR0gsPk.js,sha256=pfo-6cRf9_0cwT3HHPgco8RFRQ-Hj0Z8AU6BKH-bj4k,1106
|
|
300
|
+
web/client/dist/assets/SplitPane-LM6lbO06.js,sha256=ID_SEu51hpvYx6AePbWmjshx5Kwy7dqM1qjkjhyMQok,10439
|
|
301
|
+
web/client/dist/assets/Tests-B9FFl0mr.js,sha256=6KE0KuJYz3YtVH67CyaYXeGRS8lniZt1GrxVBGokgzA,975
|
|
302
|
+
web/client/dist/assets/Welcome-Dp8mGwQ0.js,sha256=Bk-kYV4oTXteaCJpMoNtr6Li7xmDg5eWG5Use6FEFiM,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-CL_HG-xI.js,sha256=NXytFhRTswrw2tL8wWoIbFeTK7BtwZRxX7gmlEq_5i0,2051664
|
|
305
|
+
web/client/dist/assets/context-CdQ7jSjG.js,sha256=wcZbrMTDDwrpmx3UMdmUC_XE3zlEU-BbEvKv2DRMHhc,4522
|
|
306
|
+
web/client/dist/assets/editor-CFjxlO9u.js,sha256=aykDg3f7JtyVzuFYPYLnaxNSpfj5ywFxHs9DE80XMiA,7858
|
|
307
|
+
web/client/dist/assets/file-Dc9MV3mO.js,sha256=1ywX-v4zAwNcwQmTPbzRnLJJ6zpkFr0ZjxXq5FyewbQ,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-DnBhZsmH.js,sha256=o6F8qReuf98QiZstVrwK33xf6AWPRKIIt3j4W1OWo9M,57842
|
|
310
|
+
web/client/dist/assets/index-1Gje0-Tv.js,sha256=IMpDdQGNm5co_uERtt3TtZzp5Rx8NW4Jc_elevIS2vc,517239
|
|
311
|
+
web/client/dist/assets/index-BYdIMlzP.js,sha256=54QOrNMEgxhDGjAZJm7pYq4WwmjpursrkjBm7cqppqQ,13514
|
|
312
|
+
web/client/dist/assets/plan-BBb6522E.js,sha256=84-PSLWpvZ6Ltcvs2u5Z0Zm-12JEbMavxahov-hBUl0,13755
|
|
313
|
+
web/client/dist/assets/project-DyvofLzB.js,sha256=ruMBNUTFmy6H08wv9t-YDKk5vOLgwE4625ERbbg6n_8,3338
|
|
314
|
+
web/client/dist/assets/transition-BAtDdXay.js,sha256=A2hpoWVk7SYpV8o8qruZsWozHhvI6OiJdC7mrJSaNtE,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.dev19.dist-info/METADATA,sha256=04hrQV9HGTAoxQrEOTbGLsJhop5k1KKMUfIJUBgfy8k,25253
|
|
387
|
+
sqlmesh-0.181.2.dev19.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
|
|
388
|
+
sqlmesh-0.181.2.dev19.dist-info/entry_points.txt,sha256=pIYKtg-u-uO7BK_Y0qrdmfyj0bYrcMc3Xiqr5WE3VFk,121
|
|
389
|
+
sqlmesh-0.181.2.dev19.dist-info/top_level.txt,sha256=bspjo5vjELQkuN0qKuTFIbsrUt3Zeo8D2mlKeHG1LdE,12
|
|
390
|
+
sqlmesh-0.181.2.dev19.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-1Gje0-Tv.js";import{P as j}from"./Page-DNluW_Oq.js";import{u as h}from"./project-DyvofLzB.js";import{S as v}from"./SourceList-DZowh00b.js";import{S as y}from"./SourceListItem-BCR0gsPk.js";import"./SplitPane-LM6lbO06.js";import"./file-Dc9MV3mO.js";import"./Input-CNRmf1P2.js";import"./index-BYdIMlzP.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-1Gje0-Tv.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-1Gje0-Tv.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-1Gje0-Tv.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 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
|
|
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-1Gje0-Tv.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-M4epaYAa.js";import{u as x,a as Y,E as z}from"./plan-BBb6522E.js";import{B as F}from"./Banner-DF5cAYB3.js";import{A as $,F as ye,a as we,p as ns}from"./PlusCircleIcon-C_oR9H28.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-BAtDdXay.js";import{I as q}from"./Input-CNRmf1P2.js";import{T as ps,p as fs}from"./ListboxShow-D2SfV_lp.js";import{u as Be}from"./project-DyvofLzB.js";import{F as je}from"./context-CL_HG-xI.js";import"./ModelLineage-Chq1txJw.js";import"./editor-CFjxlO9u.js";import"./file-Dc9MV3mO.js";import"./SearchList-DenwkrNa.js";import"./help-6Q7f7fjd.js";import"./ChevronDownIcon-_pxKYWw3.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./SourceList-DZowh00b.js";import"./index-BYdIMlzP.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{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-1Gje0-Tv.js";import{D as u}from"./ReportErrors-BS1FbDhZ.js";import"./PlusCircleIcon-C_oR9H28.js";import"./transition-BAtDdXay.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./SplitPane-LM6lbO06.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 +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-1Gje0-Tv.js";import{g,T as E}from"./help-DnBhZsmH.js";import{u as r}from"./editor-CFjxlO9u.js";import"./index-BYdIMlzP.js";import"./Input-CNRmf1P2.js";import"./file-Dc9MV3mO.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};
|