@masterteam/components 0.0.265 → 0.0.267
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.
- package/assets/common.css +2 -309
- package/fesm2022/masterteam-components-avatar-text.mjs +46 -0
- package/fesm2022/masterteam-components-avatar-text.mjs.map +1 -0
- package/fesm2022/masterteam-components-avatar.mjs +50 -0
- package/fesm2022/masterteam-components-avatar.mjs.map +1 -0
- package/fesm2022/masterteam-components-breadcrumb.mjs +27 -0
- package/fesm2022/masterteam-components-breadcrumb.mjs.map +1 -0
- package/fesm2022/masterteam-components-business-fields.mjs +1907 -0
- package/fesm2022/masterteam-components-business-fields.mjs.map +1 -0
- package/fesm2022/masterteam-components-button-group.mjs +20 -0
- package/fesm2022/masterteam-components-button-group.mjs.map +1 -0
- package/fesm2022/masterteam-components-button.mjs +82 -0
- package/fesm2022/masterteam-components-button.mjs.map +1 -0
- package/fesm2022/masterteam-components-card.mjs +28 -0
- package/fesm2022/masterteam-components-card.mjs.map +1 -0
- package/fesm2022/masterteam-components-checkbox-field.mjs +92 -0
- package/fesm2022/masterteam-components-checkbox-field.mjs.map +1 -0
- package/fesm2022/masterteam-components-chip.mjs +39 -0
- package/fesm2022/masterteam-components-chip.mjs.map +1 -0
- package/fesm2022/masterteam-components-client-page-menu.mjs +153 -0
- package/fesm2022/masterteam-components-client-page-menu.mjs.map +1 -0
- package/fesm2022/masterteam-components-client-page.mjs +413 -0
- package/fesm2022/masterteam-components-client-page.mjs.map +1 -0
- package/fesm2022/masterteam-components-color-picker-field.mjs +106 -0
- package/fesm2022/masterteam-components-color-picker-field.mjs.map +1 -0
- package/fesm2022/masterteam-components-confirmation.mjs +98 -0
- package/fesm2022/masterteam-components-confirmation.mjs.map +1 -0
- package/fesm2022/masterteam-components-date-field.mjs +158 -0
- package/fesm2022/masterteam-components-date-field.mjs.map +1 -0
- package/fesm2022/masterteam-components-dialog.mjs +33 -0
- package/fesm2022/masterteam-components-dialog.mjs.map +1 -0
- package/fesm2022/masterteam-components-drawer.mjs +268 -0
- package/fesm2022/masterteam-components-drawer.mjs.map +1 -0
- package/fesm2022/masterteam-components-dynamic-drawer.mjs +608 -0
- package/fesm2022/masterteam-components-dynamic-drawer.mjs.map +1 -0
- package/fesm2022/masterteam-components-editor-field.mjs +103 -0
- package/fesm2022/masterteam-components-editor-field.mjs.map +1 -0
- package/fesm2022/masterteam-components-empty-state.mjs +53 -0
- package/fesm2022/masterteam-components-empty-state.mjs.map +1 -0
- package/fesm2022/masterteam-components-entities.mjs +2242 -0
- package/fesm2022/masterteam-components-entities.mjs.map +1 -0
- package/fesm2022/masterteam-components-field-validation.mjs +237 -0
- package/fesm2022/masterteam-components-field-validation.mjs.map +1 -0
- package/fesm2022/masterteam-components-formula.mjs +3848 -0
- package/fesm2022/masterteam-components-formula.mjs.map +1 -0
- package/fesm2022/masterteam-components-icon-field.mjs +158 -0
- package/fesm2022/masterteam-components-icon-field.mjs.map +1 -0
- package/fesm2022/masterteam-components-list.mjs +31 -0
- package/fesm2022/masterteam-components-list.mjs.map +1 -0
- package/fesm2022/masterteam-components-location-field.mjs +607 -0
- package/fesm2022/masterteam-components-location-field.mjs.map +1 -0
- package/fesm2022/masterteam-components-menu.mjs +135 -0
- package/fesm2022/masterteam-components-menu.mjs.map +1 -0
- package/fesm2022/masterteam-components-modal.mjs +108 -0
- package/fesm2022/masterteam-components-modal.mjs.map +1 -0
- package/fesm2022/masterteam-components-module-summary-card.mjs +34 -0
- package/fesm2022/masterteam-components-module-summary-card.mjs.map +1 -0
- package/fesm2022/masterteam-components-multi-select-field.mjs +321 -0
- package/fesm2022/masterteam-components-multi-select-field.mjs.map +1 -0
- package/fesm2022/masterteam-components-number-field.mjs +102 -0
- package/fesm2022/masterteam-components-number-field.mjs.map +1 -0
- package/fesm2022/masterteam-components-page-header.mjs +42 -0
- package/fesm2022/masterteam-components-page-header.mjs.map +1 -0
- package/fesm2022/masterteam-components-page.mjs +35 -0
- package/fesm2022/masterteam-components-page.mjs.map +1 -0
- package/fesm2022/masterteam-components-paginator.mjs +43 -0
- package/fesm2022/masterteam-components-paginator.mjs.map +1 -0
- package/fesm2022/masterteam-components-pick-list-field.mjs +210 -0
- package/fesm2022/masterteam-components-pick-list-field.mjs.map +1 -0
- package/fesm2022/masterteam-components-progress.mjs +63 -0
- package/fesm2022/masterteam-components-progress.mjs.map +1 -0
- package/fesm2022/masterteam-components-property-filter-builder.mjs +386 -0
- package/fesm2022/masterteam-components-property-filter-builder.mjs.map +1 -0
- package/fesm2022/masterteam-components-radio-button-field.mjs +85 -0
- package/fesm2022/masterteam-components-radio-button-field.mjs.map +1 -0
- package/fesm2022/masterteam-components-radio-cards-field.mjs +131 -0
- package/fesm2022/masterteam-components-radio-cards-field.mjs.map +1 -0
- package/fesm2022/masterteam-components-radio-cards.mjs +74 -0
- package/fesm2022/masterteam-components-radio-cards.mjs.map +1 -0
- package/fesm2022/masterteam-components-runtime-action.mjs +406 -0
- package/fesm2022/masterteam-components-runtime-action.mjs.map +1 -0
- package/fesm2022/masterteam-components-select-field.mjs +415 -0
- package/fesm2022/masterteam-components-select-field.mjs.map +1 -0
- package/fesm2022/masterteam-components-sidebar.mjs +155 -0
- package/fesm2022/masterteam-components-sidebar.mjs.map +1 -0
- package/fesm2022/masterteam-components-slider-field.mjs +128 -0
- package/fesm2022/masterteam-components-slider-field.mjs.map +1 -0
- package/fesm2022/masterteam-components-statistic-card.mjs +42 -0
- package/fesm2022/masterteam-components-statistic-card.mjs.map +1 -0
- package/fesm2022/masterteam-components-table.mjs +3372 -0
- package/fesm2022/masterteam-components-table.mjs.map +1 -0
- package/fesm2022/masterteam-components-tabs.mjs +289 -0
- package/fesm2022/masterteam-components-tabs.mjs.map +1 -0
- package/fesm2022/masterteam-components-text-field.mjs +202 -0
- package/fesm2022/masterteam-components-text-field.mjs.map +1 -0
- package/fesm2022/masterteam-components-textarea-field.mjs +126 -0
- package/fesm2022/masterteam-components-textarea-field.mjs.map +1 -0
- package/fesm2022/masterteam-components-toast.mjs +80 -0
- package/fesm2022/masterteam-components-toast.mjs.map +1 -0
- package/fesm2022/masterteam-components-toggle-field.mjs +116 -0
- package/fesm2022/masterteam-components-toggle-field.mjs.map +1 -0
- package/fesm2022/masterteam-components-tooltip.mjs +147 -0
- package/fesm2022/masterteam-components-tooltip.mjs.map +1 -0
- package/fesm2022/masterteam-components-topbar.mjs +32 -0
- package/fesm2022/masterteam-components-topbar.mjs.map +1 -0
- package/fesm2022/masterteam-components-tree.mjs +260 -0
- package/fesm2022/masterteam-components-tree.mjs.map +1 -0
- package/fesm2022/masterteam-components-treeselect-field.mjs +265 -0
- package/fesm2022/masterteam-components-treeselect-field.mjs.map +1 -0
- package/fesm2022/masterteam-components-upload-field.mjs +846 -0
- package/fesm2022/masterteam-components-upload-field.mjs.map +1 -0
- package/fesm2022/masterteam-components-uploader.mjs +425 -0
- package/fesm2022/masterteam-components-uploader.mjs.map +1 -0
- package/fesm2022/masterteam-components-user-search-field.mjs +374 -0
- package/fesm2022/masterteam-components-user-search-field.mjs.map +1 -0
- package/fesm2022/masterteam-components.mjs +2536 -0
- package/fesm2022/masterteam-components.mjs.map +1 -0
- package/package.json +278 -54
- package/types/masterteam-components-avatar-text.d.ts +23 -0
- package/types/masterteam-components-avatar.d.ts +23 -0
- package/types/masterteam-components-breadcrumb.d.ts +18 -0
- package/types/masterteam-components-business-fields.d.ts +675 -0
- package/types/masterteam-components-button-group.d.ts +8 -0
- package/types/masterteam-components-button.d.ts +62 -0
- package/types/masterteam-components-card.d.ts +14 -0
- package/types/masterteam-components-checkbox-field.d.ts +38 -0
- package/types/masterteam-components-chip.d.ts +21 -0
- package/types/masterteam-components-client-page-menu.d.ts +55 -0
- package/types/masterteam-components-client-page.d.ts +115 -0
- package/types/masterteam-components-color-picker-field.d.ts +39 -0
- package/types/masterteam-components-confirmation.d.ts +41 -0
- package/types/masterteam-components-date-field.d.ts +57 -0
- package/types/masterteam-components-dialog.d.ts +12 -0
- package/types/masterteam-components-drawer.d.ts +62 -0
- package/types/masterteam-components-dynamic-drawer.d.ts +159 -0
- package/types/masterteam-components-editor-field.d.ts +39 -0
- package/types/masterteam-components-empty-state.d.ts +47 -0
- package/types/masterteam-components-entities.d.ts +1116 -0
- package/types/masterteam-components-field-validation.d.ts +59 -0
- package/types/masterteam-components-formula.d.ts +759 -0
- package/types/masterteam-components-icon-field.d.ts +44 -0
- package/types/masterteam-components-list.d.ts +18 -0
- package/types/masterteam-components-location-field.d.ts +173 -0
- package/types/masterteam-components-menu.d.ts +55 -0
- package/types/masterteam-components-modal.d.ts +30 -0
- package/types/masterteam-components-module-summary-card.d.ts +18 -0
- package/types/masterteam-components-multi-select-field.d.ts +104 -0
- package/types/masterteam-components-number-field.d.ts +47 -0
- package/types/masterteam-components-page-header.d.ts +30 -0
- package/types/masterteam-components-page.d.ts +26 -0
- package/types/masterteam-components-paginator.d.ts +20 -0
- package/types/masterteam-components-pick-list-field.d.ts +65 -0
- package/types/masterteam-components-progress.d.ts +30 -0
- package/types/masterteam-components-property-filter-builder.d.ts +90 -0
- package/types/masterteam-components-radio-button-field.d.ts +41 -0
- package/types/masterteam-components-radio-cards-field.d.ts +39 -0
- package/types/masterteam-components-radio-cards.d.ts +33 -0
- package/types/masterteam-components-runtime-action.d.ts +105 -0
- package/types/masterteam-components-select-field.d.ts +136 -0
- package/types/masterteam-components-sidebar.d.ts +71 -0
- package/types/masterteam-components-slider-field.d.ts +41 -0
- package/types/masterteam-components-statistic-card.d.ts +28 -0
- package/types/masterteam-components-table.d.ts +937 -0
- package/types/masterteam-components-tabs.d.ts +80 -0
- package/types/masterteam-components-text-field.d.ts +60 -0
- package/types/masterteam-components-textarea-field.d.ts +45 -0
- package/types/masterteam-components-toast.d.ts +27 -0
- package/types/masterteam-components-toggle-field.d.ts +44 -0
- package/types/masterteam-components-tooltip.d.ts +26 -0
- package/types/masterteam-components-topbar.d.ts +20 -0
- package/types/masterteam-components-tree.d.ts +106 -0
- package/types/masterteam-components-treeselect-field.d.ts +79 -0
- package/types/masterteam-components-upload-field.d.ts +112 -0
- package/types/masterteam-components-uploader.d.ts +53 -0
- package/types/masterteam-components-user-search-field.d.ts +110 -0
- package/types/masterteam-components.d.ts +1261 -0
- package/.angular/cache/21.2.7/@masterteam/components/.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/@masterteam/components/angular-compiler.db +0 -0
- package/.angular/cache/21.2.7/@masterteam/components/angular-compiler.db-lock +0 -0
- package/.angular/cache/21.2.7/ng-packagr/045efd332b9db1d21b3a595a37ae03ebb11b457a5dc6e2d1cbc561b694e17f1a +0 -1
- package/.angular/cache/21.2.7/ng-packagr/0727b170af3d53236c0cafe16ea670d089e48d4c5c525b1dbcc1c684bb6e99c7 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/0873bc9048494ebc33fe0a7b856324c7c4ca681b0dcaa87338e3290186906d49 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/1010cd8fc996d0c2df519ed60085f4b1f38ccfc873900055bc75fc20a3c26bab +0 -1
- package/.angular/cache/21.2.7/ng-packagr/12379a8ab7254ad3df2635823a358cfce32e6d0f390be68596cc97e02307e6c4 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/1239e7a937657b62f858d17d47738ed30facbdaa91032511e29ed148b748400b +0 -1
- package/.angular/cache/21.2.7/ng-packagr/133b9ecf47ba424244902da90d77cd3f135b85f95c01b16de7b2247f57518f01 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/175d45dc6da51834e7fe937c09d23dbf28d2a823f838ef5271fd3e148776d6ec +0 -1
- package/.angular/cache/21.2.7/ng-packagr/19d99ad4d927324b03cdbef34331ba2c58bd580f1f0ca591cb5f8dbf436c913c +0 -1
- package/.angular/cache/21.2.7/ng-packagr/1a86918763f95c1c2b9fa781bda1ceedf15aead87f0e11ea1324318af43a897a +0 -1
- package/.angular/cache/21.2.7/ng-packagr/1f08100dbc280be7da64c809315376eb7d0cfd074916a6042f609f03f4276a8e +0 -1
- package/.angular/cache/21.2.7/ng-packagr/2224877a7e762b86541428e4c40d61f54f505867c305769ae42e67e4aa81bd93 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/24957fb7ec060692ebcf1471e1bdce39f40aed938959e580048ade58015762d2 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/295fcdc1c4462e7feae96a24255369508a559faaecc4676267749a7ce23e4b6d +0 -1
- package/.angular/cache/21.2.7/ng-packagr/2b37e2f2d6564d10bad1fd0ecc16453962fd855cd1e36ad7aa24baf3e4f2e8b3 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/2c20f0929771e857b570ba2beffe91f598f299ce26d4825fe4315bfe5a3dd40a +0 -1
- package/.angular/cache/21.2.7/ng-packagr/37dea2e5798cad4a21d66292eeed5be26d04500d9a1534332ad42ce664a058c2 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/3b6239b640fcb5ea7067a2655a2901d32f55372812b586aa008e77c59e8f2090 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/3beb1b4dfe75d1e6749cf91f05d51ba4eece939f5c15f6f33ed587bfd198f0a3 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/3f161e6c2ead4519d0663dd79199dafceb2cc22da7ce92a72b809b93bfce0bb0 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/43551862d17cd02626e18b30243390081a6247784485660048b060a3d4ab7fa7 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/47aedf032519b41d96866fcf8fbd4f1dfd29f9e9a534b39dee0e44d402227d2d +0 -1
- package/.angular/cache/21.2.7/ng-packagr/4a1768888c60921955bfdfba8b31c8d853bd7b2a7d3a7b83934de049e1e6e6a2 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/4a783e339117597607bff17eeca0ad24d84b8cbc1e28927e7e453ccfa6223180 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/4d9331b2050326f586cd8f6593a9e04e1c7944b2f9e98023649023c099597a5d +0 -1
- package/.angular/cache/21.2.7/ng-packagr/4e379f506919d47af7008658c75242aa05f0056c1caec4061d7fa5746f776049 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/55009bb7d44552dd816ce32fa2b0f7985f3f08fefd6409c2b4f6b9ffe35dad83 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/58ae3f1f9664f7b16844d2e4a279dd4ca9371de014cf5687320c2d5cb259a74f +0 -1
- package/.angular/cache/21.2.7/ng-packagr/5c08e906bd3fe1aa6c1d62f2bbb2b3f276e1c17fe45ef081e76bd1b865ac3dfa +0 -1
- package/.angular/cache/21.2.7/ng-packagr/5ce333a40ad635188347fa9bc601d5fd14be6baacbae7d096259d725ac9757af +0 -1
- package/.angular/cache/21.2.7/ng-packagr/5f32cceaee6a6ea19cc6cbff5ea089b752f13a0fdcd32597d4c99d5e1e031bb5 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/691ad4ccdc0a8ede36e1f4e5e97638c20c2d3142916ffac3a1b172178c139205 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/6b57160e0d2da3f31693831e84a3f4209c1f33a04abd636e34af03956e7329d8 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/70bc711a1d7b631845885c26adc2d6b1bff47d11332b2625cedfa11e9d5ac79a +0 -1
- package/.angular/cache/21.2.7/ng-packagr/7427c266237012afaef486c2af94ee08a491e8d7b6fc7e5ee887980830bbd333 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/7e8fa7c61cf9a932ba3a0e65eb73c7412e81666b7a8f923dac7b75acfbb94b1d +0 -1
- package/.angular/cache/21.2.7/ng-packagr/81aab7fdab43cbdfa869db759d6113ae01ec6f5e0e9061d7fc089c260886e4d1 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/83a81758045ff710a34ea3cf6f54435a1f5dea9839d8c0adda0bbce7c3fb6e8b +0 -1
- package/.angular/cache/21.2.7/ng-packagr/883eae810a4c09f06617bdc2e4bc30a69f09726401b2a051840969f635d076f1 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/8a6b9be66de40c57054dca5fde376c3cec1bec1ae191a16f1ae6a83306d9ebfe +0 -1
- package/.angular/cache/21.2.7/ng-packagr/8d42c8144f6929de46984094bf390a0c4168404ab13a5194839f6ba5e42bc3ce +0 -1
- package/.angular/cache/21.2.7/ng-packagr/91093656c61a5404f0d576f872247eeb480dd938e6999d481a97893c72b5f3d0 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/91e881172037c63d819e30d30e390e0d7dc0dee9808b3902275ccc8b1887d864 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/9ef28cf3a676e7bd0d37762c4868b4810efca2f241ed0dae75ebca41988e2c00 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/a07cbea405c1831b3f686a8e57c4b500d89cbab2b95e110487890269945feeaa +0 -1
- package/.angular/cache/21.2.7/ng-packagr/a463deba940880d9461612c9cd00d90062bf97aa31b1c4556b8b47a967cb6882 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/ab03ed1e4a371113b41b663d526d2b06565ceb062e6f033f726f1e455fc5d1d6 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/ad0e84be4f2211aff6187b4bec9adbe15f0e8b36851e9c6c63b38303c2daad37 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/aece79242dae70eb748605e37483e75e122e4ce414fa8be875499e8af26ee5d6 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/aff32db91ce03de30d2bbc84f266fe3fb2c6629d5eeb39a364204d9499484368 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/b0671e73a162927d28ef1742ec008e514264bc2ce29f2255bedaea553492fe5d +0 -1
- package/.angular/cache/21.2.7/ng-packagr/bb50d71f3cdeebbb85fd983be8103f9c216060464f8e7e534271197391e6dcf7 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/c64241290ab30d8761b2f5493a039427f5cda1a48b5be88ce62ee5c714c0f690 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/c794d2e79b26ab378c0dbf8afa7b8ac1337ba9afb288941d44a086cb1bd4bad2 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/d942edf8fd8e8e884138ffcdb1a07ad14a0b5e211f8ccea1dc9ea0b48f50cfc9 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/dbe0b9b9f18ba7b96d9c84f4fd16cde158c9701c202d00113e6f88ba93407bce +0 -1
- package/.angular/cache/21.2.7/ng-packagr/f564395a410a2723aac48e582f5fe416bfeaa48677cea47b10c5152d4f2b6672 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/fc9b0d27f081ca7b2a4cbefa75136d7bd7a8c341dbaa0587855071a6003906b8 +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-avatar-text.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-avatar.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-breadcrumb.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-business-fields.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-button-group.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-button.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-card.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-checkbox-field.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-chip.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-client-page-menu.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-client-page.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-color-picker-field.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-confirmation.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-date-field.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-dialog.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-drawer.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-dynamic-drawer.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-editor-field.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-empty-state.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-entities.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-field-validation.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-formula.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-icon-field.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-list.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-location-field.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-menu.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-modal.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-module-summary-card.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-multi-select-field.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-number-field.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-page-header.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-page.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-paginator.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-pick-list-field.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-progress.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-property-filter-builder.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-radio-button-field.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-radio-cards-field.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-radio-cards.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-runtime-action.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-select-field.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-sidebar.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-slider-field.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-statistic-card.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-table.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-tabs.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-text-field.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-textarea-field.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-toast.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-toggle-field.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-tooltip.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-topbar.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-tree.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-treeselect-field.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-upload-field.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-uploader.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-user-search-field.tsbuildinfo +0 -1
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components.tsbuildinfo +0 -1
- package/angular.json +0 -32
- package/api/api.ts +0 -1
- package/api/public-api.ts +0 -5
- package/avatar/avatar.html +0 -32
- package/avatar/avatar.scss +0 -0
- package/avatar/avatar.ts +0 -54
- package/avatar/ng-package.json +0 -6
- package/avatar/public-api.ts +0 -1
- package/avatar-text/avatar-text.html +0 -26
- package/avatar-text/avatar-text.scss +0 -0
- package/avatar-text/avatar-text.ts +0 -52
- package/avatar-text/ng-package.json +0 -6
- package/avatar-text/public-api.ts +0 -1
- package/breadcrumb/breadcrumb.html +0 -53
- package/breadcrumb/breadcrumb.scss +0 -0
- package/breadcrumb/breadcrumb.ts +0 -26
- package/breadcrumb/ng-package.json +0 -6
- package/breadcrumb/public-api.ts +0 -1
- package/business-fields/entity-list-field/entity-list-add-token.ts +0 -25
- package/business-fields/entity-list-field/entity-list-field.html +0 -70
- package/business-fields/entity-list-field/entity-list-field.scss +0 -3
- package/business-fields/entity-list-field/entity-list-field.ts +0 -1067
- package/business-fields/lookup-matrix-field/lookup-matrix-field.html +0 -38
- package/business-fields/lookup-matrix-field/lookup-matrix-field.spec.ts +0 -183
- package/business-fields/lookup-matrix-field/lookup-matrix-field.ts +0 -239
- package/business-fields/lookup-module-check-list-field/lookup-module-check-list-field.html +0 -95
- package/business-fields/lookup-module-check-list-field/lookup-module-check-list-field.ts +0 -336
- package/business-fields/lookup-module-check-list-field/lookup-module-check-list-form-token.ts +0 -42
- package/business-fields/ng-package.json +0 -6
- package/business-fields/public-api.ts +0 -8
- package/business-fields/schedule-item-selector-field/schedule-item-selector-field.html +0 -32
- package/business-fields/schedule-item-selector-field/schedule-item-selector-field.ts +0 -272
- package/business-fields/schedule-predecessor-field/schedule-predecessor-field.html +0 -89
- package/business-fields/schedule-predecessor-field/schedule-predecessor-field.ts +0 -441
- package/business-fields/schema-connection-field/schema-connection-field.html +0 -58
- package/business-fields/schema-connection-field/schema-connection-field.scss +0 -0
- package/business-fields/schema-connection-field/schema-connection-field.ts +0 -456
- package/button/button.html +0 -44
- package/button/button.scss +0 -0
- package/button/button.ts +0 -120
- package/button/ng-package.json +0 -6
- package/button/public-api.ts +0 -1
- package/button-group/button-group.html +0 -3
- package/button-group/button-group.scss +0 -20
- package/button-group/button-group.ts +0 -12
- package/button-group/ng-package.json +0 -6
- package/button-group/public-api.ts +0 -1
- package/card/card.html +0 -26
- package/card/card.scss +0 -0
- package/card/card.ts +0 -29
- package/card/ng-package.json +0 -6
- package/card/public-api.ts +0 -1
- package/checkbox-field/checkbox-field.html +0 -31
- package/checkbox-field/checkbox-field.scss +0 -0
- package/checkbox-field/checkbox-field.spec.ts +0 -21
- package/checkbox-field/checkbox-field.ts +0 -123
- package/checkbox-field/ng-package.json +0 -6
- package/checkbox-field/public-api.ts +0 -1
- package/chip/chip.html +0 -16
- package/chip/chip.scss +0 -19
- package/chip/chip.ts +0 -45
- package/chip/ng-package.json +0 -6
- package/chip/public-api.ts +0 -1
- package/client-page/client-page.html +0 -232
- package/client-page/client-page.ts +0 -588
- package/client-page/index.ts +0 -2
- package/client-page/ng-package.json +0 -6
- package/client-page/public-api.ts +0 -1
- package/client-page-menu/client-page-menu.html +0 -142
- package/client-page-menu/client-page-menu.ts +0 -199
- package/client-page-menu/index.ts +0 -2
- package/client-page-menu/ng-package.json +0 -6
- package/client-page-menu/public-api.ts +0 -1
- package/color-picker-field/color-picker-field.html +0 -45
- package/color-picker-field/color-picker-field.scss +0 -52
- package/color-picker-field/color-picker-field.ts +0 -131
- package/color-picker-field/ng-package.json +0 -6
- package/color-picker-field/public-api.ts +0 -1
- package/confirmation/confirmation-dialog.html +0 -83
- package/confirmation/confirmation-dialog.scss +0 -0
- package/confirmation/confirmation-dialog.ts +0 -15
- package/confirmation/confirmation.spec.ts +0 -43
- package/confirmation/confirmation.ts +0 -103
- package/confirmation/ng-package.json +0 -6
- package/confirmation/public-api.ts +0 -2
- package/date-field/date-field.html +0 -65
- package/date-field/date-field.scss +0 -0
- package/date-field/date-field.spec.ts +0 -118
- package/date-field/date-field.ts +0 -196
- package/date-field/ng-package.json +0 -6
- package/date-field/public-api.ts +0 -1
- package/dialog/dialog.ts +0 -29
- package/dialog/ng-package.json +0 -6
- package/dialog/public-api.ts +0 -1
- package/drawer/drawer.html +0 -67
- package/drawer/drawer.scss +0 -1
- package/drawer/drawer.ts +0 -348
- package/drawer/ng-package.json +0 -5
- package/drawer/public-api.ts +0 -1
- package/dynamic-drawer/dynamic-drawer-host.ts +0 -476
- package/dynamic-drawer/dynamic-drawer.spec.ts +0 -204
- package/dynamic-drawer/dynamic-drawer.ts +0 -235
- package/dynamic-drawer/ng-package.json +0 -6
- package/dynamic-drawer/public-api.ts +0 -2
- package/editor-field/editor-field.html +0 -38
- package/editor-field/editor-field.scss +0 -219
- package/editor-field/editor-field.ts +0 -126
- package/editor-field/ng-package.json +0 -6
- package/editor-field/public-api.ts +0 -1
- package/empty-state/empty-state.html +0 -236
- package/empty-state/empty-state.ts +0 -85
- package/empty-state/ng-package.json +0 -6
- package/empty-state/public-api.ts +0 -1
- package/entities/comparison/comparison-entity-list/comparison-entity-list.html +0 -87
- package/entities/comparison/comparison-entity-list/comparison-entity-list.ts +0 -93
- package/entities/comparison/comparison-value/comparison-value.html +0 -31
- package/entities/comparison/comparison-value/comparison-value.ts +0 -53
- package/entities/currency-display.utils.spec.ts +0 -94
- package/entities/currency-display.utils.ts +0 -92
- package/entities/entities-manage/entities-manage.html +0 -74
- package/entities/entities-manage/entities-manage.scss +0 -72
- package/entities/entities-manage/entities-manage.ts +0 -121
- package/entities/entities-manage/entities-resize-base.ts +0 -153
- package/entities/entities-preview/entities-preview.css +0 -77
- package/entities/entities-preview/entities-preview.html +0 -56
- package/entities/entities-preview/entities-preview.ts +0 -281
- package/entities/entity-attachment/entity-attachment.html +0 -49
- package/entities/entity-attachment/entity-attachment.ts +0 -462
- package/entities/entity-checkbox/entity-checkbox.html +0 -28
- package/entities/entity-checkbox/entity-checkbox.ts +0 -65
- package/entities/entity-comparison.model.ts +0 -39
- package/entities/entity-connection/entity-connection.html +0 -12
- package/entities/entity-connection/entity-connection.ts +0 -75
- package/entities/entity-currency/entity-currency.html +0 -12
- package/entities/entity-currency/entity-currency.ts +0 -59
- package/entities/entity-date/entity-date.html +0 -16
- package/entities/entity-date/entity-date.ts +0 -50
- package/entities/entity-display.utils.ts +0 -94
- package/entities/entity-field/entity-field.ts +0 -94
- package/entities/entity-leaf-details/entity-leaf-details.html +0 -35
- package/entities/entity-leaf-details/entity-leaf-details.ts +0 -56
- package/entities/entity-location/entity-location.html +0 -34
- package/entities/entity-location/entity-location.ts +0 -98
- package/entities/entity-long-text/entity-long-text.html +0 -9
- package/entities/entity-long-text/entity-long-text.ts +0 -45
- package/entities/entity-lookup/entity-lookup.html +0 -25
- package/entities/entity-lookup/entity-lookup.ts +0 -68
- package/entities/entity-lookup-module-check-list/entity-lookup-module-check-list.html +0 -39
- package/entities/entity-lookup-module-check-list/entity-lookup-module-check-list.spec.ts +0 -148
- package/entities/entity-lookup-module-check-list/entity-lookup-module-check-list.ts +0 -152
- package/entities/entity-percentage/entity-percentage.html +0 -22
- package/entities/entity-percentage/entity-percentage.ts +0 -163
- package/entities/entity-phase-gate/entity-phase-gate.html +0 -20
- package/entities/entity-phase-gate/entity-phase-gate.ts +0 -129
- package/entities/entity-preview/entity-preview-body.html +0 -8
- package/entities/entity-preview/entity-preview-body.ts +0 -19
- package/entities/entity-preview/entity-preview.html +0 -14
- package/entities/entity-preview/entity-preview.ts +0 -33
- package/entities/entity-preview/entity-value-preview.html +0 -62
- package/entities/entity-preview/entity-value-preview.spec.ts +0 -191
- package/entities/entity-preview/entity-value-preview.ts +0 -69
- package/entities/entity-schedule-item/entity-schedule-item.html +0 -19
- package/entities/entity-schedule-item/entity-schedule-item.ts +0 -41
- package/entities/entity-sections.util.ts +0 -103
- package/entities/entity-status/entity-status.html +0 -20
- package/entities/entity-status/entity-status.ts +0 -60
- package/entities/entity-text/entity-text.html +0 -20
- package/entities/entity-text/entity-text.ts +0 -35
- package/entities/entity-user/entity-user.html +0 -181
- package/entities/entity-user/entity-user.ts +0 -179
- package/entities/entity.model.ts +0 -407
- package/entities/leaf-details-display.utils.ts +0 -269
- package/entities/ng-package.json +0 -6
- package/entities/percentage-color.utils.spec.ts +0 -94
- package/entities/percentage-color.utils.ts +0 -80
- package/entities/public-api.ts +0 -30
- package/field-validation/character-limit.validator.ts +0 -22
- package/field-validation/error-message.pipe.spec.ts +0 -184
- package/field-validation/error-message.pipe.ts +0 -80
- package/field-validation/field-validation.ts +0 -168
- package/field-validation/ng-package.json +0 -6
- package/field-validation/public-api.ts +0 -2
- package/formula/formula-editor/formula-editor.html +0 -89
- package/formula/formula-editor/formula-editor.scss +0 -25
- package/formula/formula-editor/formula-editor.ts +0 -467
- package/formula/formula-editor/index.ts +0 -1
- package/formula/formula-editor-code/formula-autocomplete-normalization.util.spec.ts +0 -58
- package/formula/formula-editor-code/formula-autocomplete-normalization.util.ts +0 -64
- package/formula/formula-editor-code/formula-completion-range.util.spec.ts +0 -62
- package/formula/formula-editor-code/formula-completion-range.util.ts +0 -71
- package/formula/formula-editor-code/formula-completion-suggestion.util.spec.ts +0 -23
- package/formula/formula-editor-code/formula-completion-suggestion.util.ts +0 -18
- package/formula/formula-editor-code/formula-editor-code.html +0 -15
- package/formula/formula-editor-code/formula-editor-code.scss +0 -90
- package/formula/formula-editor-code/formula-editor-code.ts +0 -1095
- package/formula/formula-editor-code/index.ts +0 -1
- package/formula/formula-status-bar/formula-status-bar.html +0 -119
- package/formula/formula-status-bar/formula-status-bar.ts +0 -66
- package/formula/formula-status-bar/index.ts +0 -1
- package/formula/formula-toolbar/formula-toolbar.html +0 -361
- package/formula/formula-toolbar/formula-toolbar.ts +0 -532
- package/formula/formula-toolbar/index.ts +0 -2
- package/formula/formula-toolbar/operators.ts +0 -122
- package/formula/models/formula-block.model.ts +0 -61
- package/formula/models/formula-token.model.spec.ts +0 -57
- package/formula/models/formula-token.model.ts +0 -852
- package/formula/models/index.ts +0 -5
- package/formula/models/smart-block.model.ts +0 -132
- package/formula/models/validation-result.model.ts +0 -80
- package/formula/ng-package.json +0 -6
- package/formula/public-api.ts +0 -8
- package/formula/runtime/formula-runtime-catalogs.ts +0 -554
- package/formula/runtime/formula-runtime-engine.spec.ts +0 -328
- package/formula/runtime/formula-runtime-engine.ts +0 -794
- package/formula/runtime/formula-runtime.model.ts +0 -53
- package/formula/runtime/index.ts +0 -3
- package/formula/toolbar-item/index.ts +0 -1
- package/formula/toolbar-item/toolbar-item.html +0 -143
- package/formula/toolbar-item/toolbar-item.scss +0 -14
- package/formula/toolbar-item/toolbar-item.ts +0 -223
- package/icon-field/icon-field.html +0 -58
- package/icon-field/icon-field.scss +0 -24
- package/icon-field/icon-field.spec.ts +0 -77
- package/icon-field/icon-field.ts +0 -205
- package/icon-field/ng-package.json +0 -6
- package/icon-field/public-api.ts +0 -1
- package/list/list.html +0 -22
- package/list/list.ts +0 -36
- package/list/ng-package.json +0 -6
- package/list/public-api.ts +0 -1
- package/location-field/location-field.html +0 -86
- package/location-field/location-field.spec.ts +0 -295
- package/location-field/location-field.ts +0 -662
- package/location-field/location-manual-dialog.html +0 -43
- package/location-field/location-manual-dialog.ts +0 -104
- package/location-field/location-value.ts +0 -67
- package/location-field/ng-package.json +0 -6
- package/location-field/public-api.ts +0 -3
- package/menu/menu.html +0 -71
- package/menu/menu.scss +0 -3
- package/menu/menu.ts +0 -186
- package/menu/ng-package.json +0 -6
- package/menu/public-api.ts +0 -1
- package/modal/modal.ts +0 -127
- package/modal/ng-package.json +0 -6
- package/modal/public-api.ts +0 -1
- package/module-summary-card/module-summary-card.html +0 -43
- package/module-summary-card/module-summary-card.scss +0 -0
- package/module-summary-card/module-summary-card.ts +0 -40
- package/module-summary-card/ng-package.json +0 -6
- package/module-summary-card/public-api.ts +0 -1
- package/multi-select-field/multi-select-field.html +0 -140
- package/multi-select-field/multi-select-field.scss +0 -0
- package/multi-select-field/multi-select-field.spec.ts +0 -21
- package/multi-select-field/multi-select-field.ts +0 -397
- package/multi-select-field/ng-package.json +0 -6
- package/multi-select-field/public-api.ts +0 -1
- package/ng-package.json +0 -9
- package/number-field/ng-package.json +0 -6
- package/number-field/number-field.html +0 -39
- package/number-field/number-field.scss +0 -8
- package/number-field/number-field.spec.ts +0 -21
- package/number-field/number-field.ts +0 -124
- package/number-field/public-api.ts +0 -1
- package/page/index.ts +0 -1
- package/page/ng-package.json +0 -6
- package/page/page.html +0 -37
- package/page/page.ts +0 -43
- package/page/public-api.ts +0 -1
- package/page-header/index.ts +0 -2
- package/page-header/ng-package.json +0 -6
- package/page-header/page-header.html +0 -60
- package/page-header/page-header.ts +0 -54
- package/page-header/public-api.ts +0 -1
- package/paginator/ng-package.json +0 -6
- package/paginator/paginator.html +0 -50
- package/paginator/paginator.scss +0 -0
- package/paginator/paginator.ts +0 -53
- package/paginator/public-api.ts +0 -1
- package/pick-list-field/ng-package.json +0 -6
- package/pick-list-field/pick-list-field.html +0 -39
- package/pick-list-field/pick-list-field.scss +0 -26
- package/pick-list-field/pick-list-field.ts +0 -259
- package/pick-list-field/public-api.ts +0 -1
- package/progress/ng-package.json +0 -6
- package/progress/progress.html +0 -36
- package/progress/progress.ts +0 -61
- package/progress/public-api.ts +0 -1
- package/property-filter-builder/ng-package.json +0 -6
- package/property-filter-builder/property-filter-builder.html +0 -192
- package/property-filter-builder/property-filter-builder.ts +0 -548
- package/property-filter-builder/public-api.ts +0 -1
- package/radio-button-field/ng-package.json +0 -6
- package/radio-button-field/public-api.ts +0 -1
- package/radio-button-field/radio-button-field.html +0 -44
- package/radio-button-field/radio-button-field.scss +0 -0
- package/radio-button-field/radio-button-field.ts +0 -114
- package/radio-cards/ng-package.json +0 -6
- package/radio-cards/public-api.ts +0 -1
- package/radio-cards/radio-cards.css +0 -3
- package/radio-cards/radio-cards.html +0 -54
- package/radio-cards/radio-cards.spec.ts +0 -22
- package/radio-cards/radio-cards.ts +0 -92
- package/radio-cards-field/ng-package.json +0 -6
- package/radio-cards-field/public-api.ts +0 -1
- package/radio-cards-field/radio-cards-field.css +0 -0
- package/radio-cards-field/radio-cards-field.html +0 -38
- package/radio-cards-field/radio-cards-field.spec.ts +0 -22
- package/radio-cards-field/radio-cards-field.ts +0 -182
- package/runtime-action/ng-package.json +0 -6
- package/runtime-action/payload-builder.ts +0 -246
- package/runtime-action/public-api.ts +0 -4
- package/runtime-action/runtime-action-context.store.ts +0 -26
- package/runtime-action/runtime-action.runner.ts +0 -302
- package/runtime-action/runtime-action.types.ts +0 -82
- package/select-field/current-user.util.ts +0 -54
- package/select-field/ng-package.json +0 -6
- package/select-field/public-api.ts +0 -1
- package/select-field/select-field.html +0 -142
- package/select-field/select-field.scss +0 -0
- package/select-field/select-field.spec.ts +0 -21
- package/select-field/select-field.ts +0 -471
- package/sidebar/ng-package.json +0 -6
- package/sidebar/public-api.ts +0 -1
- package/sidebar/sidebar.html +0 -368
- package/sidebar/sidebar.ts +0 -303
- package/slider-field/ng-package.json +0 -7
- package/slider-field/public-api.ts +0 -1
- package/slider-field/slider-field.html +0 -33
- package/slider-field/slider-field.scss +0 -11
- package/slider-field/slider-field.spec.ts +0 -44
- package/slider-field/slider-field.ts +0 -166
- package/src/lib/base/base.facade.ts +0 -159
- package/src/lib/base/crud-base.state.ts +0 -248
- package/src/lib/config/date-format.config.ts +0 -55
- package/src/lib/config/ds-identity.preset.ts +0 -538
- package/src/lib/config/ds-identity.tokens.ts +0 -209
- package/src/lib/config/dynamic-form.model.ts +0 -1162
- package/src/lib/config/povide-messages.ts +0 -5
- package/src/lib/config/provide-confirmation.ts +0 -5
- package/src/lib/config/providemt.ts +0 -506
- package/src/lib/config/public-api.ts +0 -0
- package/src/lib/pipes/mt-date-format.pipe.spec.ts +0 -60
- package/src/lib/pipes/mt-date-format.pipe.ts +0 -81
- package/src/lib/utils/api-request.helper.ts +0 -59
- package/src/lib/utils/clock-time.util.ts +0 -58
- package/src/lib/utils/color.utils.ts +0 -187
- package/src/lib/utils/entity-adapter.ts +0 -50
- package/src/lib/utils/field-id.ts +0 -42
- package/src/lib/utils/http-context.ts +0 -35
- package/src/lib/utils/inputs.ts +0 -6
- package/src/lib/utils/state-helpers.ts +0 -49
- package/src/lib/utils/theme.ts +0 -281
- package/src/public-api.ts +0 -30
- package/statistic-card/ng-package.json +0 -6
- package/statistic-card/public-api.ts +0 -1
- package/statistic-card/statistic-card.html +0 -31
- package/statistic-card/statistic-card.scss +0 -0
- package/statistic-card/statistic-card.ts +0 -59
- package/table/ng-package.json +0 -7
- package/table/public-api.ts +0 -10
- package/table/table-actions-menu/public-api.ts +0 -1
- package/table/table-actions-menu/table-actions-menu.html +0 -75
- package/table/table-actions-menu/table-actions-menu.ts +0 -171
- package/table/table-caption/public-api.ts +0 -1
- package/table/table-caption/table-caption.html +0 -118
- package/table/table-caption/table-caption.ts +0 -221
- package/table/table-column-filter/public-api.ts +0 -1
- package/table/table-column-filter/table-column-filter.html +0 -44
- package/table/table-column-filter/table-column-filter.ts +0 -106
- package/table/table-export/html-to-text.util.ts +0 -67
- package/table/table-export/public-api.ts +0 -1
- package/table/table-export/table-export.service.spec.ts +0 -186
- package/table/table-export/table-export.service.ts +0 -325
- package/table/table-filter/public-api.ts +0 -1
- package/table/table-filter/table-filter.css +0 -9
- package/table/table-filter/table-filter.html +0 -63
- package/table/table-filter/table-filter.ts +0 -126
- package/table/table-filter-field/public-api.ts +0 -1
- package/table/table-filter-field/table-filter-field.html +0 -182
- package/table/table-filter-field/table-filter-field.ts +0 -208
- package/table/table-grouping/public-api.ts +0 -1
- package/table/table-grouping/table-grouping.spec.ts +0 -218
- package/table/table-grouping/table-grouping.ts +0 -237
- package/table/table-types.ts +0 -242
- package/table/table-value.utils.spec.ts +0 -63
- package/table/table-value.utils.ts +0 -1014
- package/table/table.css +0 -145
- package/table/table.html +0 -572
- package/table/table.ts +0 -2042
- package/tabs/ng-package.json +0 -6
- package/tabs/public-api.ts +0 -1
- package/tabs/tabs.html +0 -417
- package/tabs/tabs.scss +0 -3
- package/tabs/tabs.spec.ts +0 -79
- package/tabs/tabs.ts +0 -397
- package/text-field/ng-package.json +0 -6
- package/text-field/public-api.ts +0 -1
- package/text-field/text-field.html +0 -75
- package/text-field/text-field.scss +0 -56
- package/text-field/text-field.ts +0 -251
- package/textarea-field/ng-package.json +0 -6
- package/textarea-field/public-api.ts +0 -1
- package/textarea-field/textarea-field.html +0 -37
- package/textarea-field/textarea-field.scss +0 -0
- package/textarea-field/textarea-field.spec.ts +0 -21
- package/textarea-field/textarea-field.ts +0 -169
- package/toast/ng-package.json +0 -6
- package/toast/public-api.ts +0 -2
- package/toast/toast.html +0 -18
- package/toast/toast.service.ts +0 -67
- package/toast/toast.ts +0 -21
- package/toggle-field/ng-package.json +0 -6
- package/toggle-field/public-api.ts +0 -1
- package/toggle-field/toggle-field.html +0 -78
- package/toggle-field/toggle-field.scss +0 -24
- package/toggle-field/toggle-field.ts +0 -150
- package/tooltip/ng-package.json +0 -6
- package/tooltip/public-api.ts +0 -2
- package/tooltip/tooltip.ts +0 -30
- package/tooltip/truncate-tooltip.ts +0 -124
- package/topbar/ng-package.json +0 -6
- package/topbar/public-api.ts +0 -1
- package/topbar/topbar.html +0 -52
- package/topbar/topbar.ts +0 -27
- package/tree/ng-package.json +0 -6
- package/tree/public-api.ts +0 -2
- package/tree/tree-types.ts +0 -55
- package/tree/tree.html +0 -126
- package/tree/tree.scss +0 -1
- package/tree/tree.ts +0 -303
- package/treeselect-field/ng-package.json +0 -6
- package/treeselect-field/public-api.ts +0 -1
- package/treeselect-field/treeselect-field.html +0 -71
- package/treeselect-field/treeselect-field.ts +0 -348
- package/tsconfig.check.json +0 -20
- package/tsconfig.json +0 -16
- package/tsconfig.spec.json +0 -24
- package/upload-field/ng-package.json +0 -6
- package/upload-field/public-api.ts +0 -2
- package/upload-field/secure-image.pipe.ts +0 -258
- package/upload-field/upload-field.html +0 -274
- package/upload-field/upload-field.scss +0 -0
- package/upload-field/upload-field.spec.ts +0 -169
- package/upload-field/upload-field.ts +0 -764
- package/upload-field/upload-file-preview/upload-file-preview.html +0 -41
- package/upload-field/upload-file-preview/upload-file-preview.scss +0 -0
- package/upload-field/upload-file-preview/upload-file-preview.ts +0 -57
- package/upload-field/upload-user-preview/upload-user-preview.css +0 -0
- package/upload-field/upload-user-preview/upload-user-preview.html +0 -73
- package/upload-field/upload-user-preview/upload-user-preview.ts +0 -54
- package/uploader/ng-package.json +0 -6
- package/uploader/public-api.ts +0 -1
- package/uploader/uploader.service.spec.ts +0 -271
- package/uploader/uploader.service.ts +0 -733
- package/user-search-field/ng-package.json +0 -6
- package/user-search-field/public-api.ts +0 -1
- package/user-search-field/user-search-field.html +0 -88
- package/user-search-field/user-search-field.scss +0 -4
- package/user-search-field/user-search-field.spec.ts +0 -176
- package/user-search-field/user-search-field.ts +0 -483
|
@@ -1,794 +0,0 @@
|
|
|
1
|
-
import { tokenizeFormulaTemplate, type FormulaToken } from '../models';
|
|
2
|
-
import type {
|
|
3
|
-
FormulaConditionConfig,
|
|
4
|
-
FormulaConditionEvaluation,
|
|
5
|
-
FormulaConditionMode,
|
|
6
|
-
FormulaEvaluationContext,
|
|
7
|
-
FormulaRuntimeEngineError,
|
|
8
|
-
FormulaRuntimeEngineErrorCode,
|
|
9
|
-
FormulaRuntimeMessage,
|
|
10
|
-
FormulaValidationEvaluation,
|
|
11
|
-
FormulaValidationRuleConfig,
|
|
12
|
-
FormulaValidationRulesEvaluation,
|
|
13
|
-
} from './formula-runtime.model';
|
|
14
|
-
|
|
15
|
-
type ConditionAction = Exclude<FormulaConditionMode, 'auto'>;
|
|
16
|
-
|
|
17
|
-
type AstNode =
|
|
18
|
-
| { type: 'literal'; value: any }
|
|
19
|
-
| { type: 'property'; key: string; raw: string }
|
|
20
|
-
| { type: 'unary'; operator: string; right: AstNode }
|
|
21
|
-
| { type: 'binary'; operator: string; left: AstNode; right: AstNode }
|
|
22
|
-
| { type: 'call'; name: string; args: AstNode[] };
|
|
23
|
-
|
|
24
|
-
type LexToken =
|
|
25
|
-
| { type: 'identifier'; value: string }
|
|
26
|
-
| { type: 'property'; value: string; raw: string }
|
|
27
|
-
| { type: 'literal'; value: any }
|
|
28
|
-
| { type: 'operator'; value: string }
|
|
29
|
-
| { type: 'lparen' }
|
|
30
|
-
| { type: 'rparen' }
|
|
31
|
-
| { type: 'comma' }
|
|
32
|
-
| { type: 'eof' };
|
|
33
|
-
|
|
34
|
-
interface CompiledFormula {
|
|
35
|
-
ast: AstNode;
|
|
36
|
-
dependencies: string[];
|
|
37
|
-
topLevelWrapper: ConditionAction | null;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
type RuntimeFunction = (...args: any[]) => any;
|
|
41
|
-
|
|
42
|
-
const CONDITION_WRAPPER_NAMES = new Set<ConditionAction>([
|
|
43
|
-
'show',
|
|
44
|
-
'hide',
|
|
45
|
-
'enable',
|
|
46
|
-
'disable',
|
|
47
|
-
]);
|
|
48
|
-
|
|
49
|
-
const PROPERTY_PREFIXES = ['@', '*.', '$.'];
|
|
50
|
-
|
|
51
|
-
// Matches plain integers / decimals (optionally signed). Such values are
|
|
52
|
-
// numbers, never dates — see `toDate`.
|
|
53
|
-
const NUMERIC_STRING_PATTERN = /^[+-]?(\d+\.?\d*|\.\d+)$/;
|
|
54
|
-
|
|
55
|
-
class FormulaParser {
|
|
56
|
-
private current = 0;
|
|
57
|
-
private readonly dependencies = new Set<string>();
|
|
58
|
-
|
|
59
|
-
constructor(private readonly tokens: LexToken[]) {}
|
|
60
|
-
|
|
61
|
-
parse(): CompiledFormula {
|
|
62
|
-
const ast = this.expression();
|
|
63
|
-
this.consume('eof', 'Unexpected tokens after formula end');
|
|
64
|
-
|
|
65
|
-
const topLevelWrapper =
|
|
66
|
-
ast.type === 'call' ? normalizeWrapperAction(ast.name) : null;
|
|
67
|
-
|
|
68
|
-
return {
|
|
69
|
-
ast,
|
|
70
|
-
dependencies: Array.from(this.dependencies),
|
|
71
|
-
topLevelWrapper,
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
private expression(): AstNode {
|
|
76
|
-
return this.logicalOr();
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
private logicalOr(): AstNode {
|
|
80
|
-
let expr = this.logicalAnd();
|
|
81
|
-
while (this.matchOperator('||')) {
|
|
82
|
-
const operator = this.previousOperator();
|
|
83
|
-
const right = this.logicalAnd();
|
|
84
|
-
expr = { type: 'binary', operator, left: expr, right };
|
|
85
|
-
}
|
|
86
|
-
return expr;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private logicalAnd(): AstNode {
|
|
90
|
-
let expr = this.equality();
|
|
91
|
-
while (this.matchOperator('&&')) {
|
|
92
|
-
const operator = this.previousOperator();
|
|
93
|
-
const right = this.equality();
|
|
94
|
-
expr = { type: 'binary', operator, left: expr, right };
|
|
95
|
-
}
|
|
96
|
-
return expr;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
private equality(): AstNode {
|
|
100
|
-
let expr = this.comparison();
|
|
101
|
-
while (this.matchOperator('==', '!=')) {
|
|
102
|
-
const operator = this.previousOperator();
|
|
103
|
-
const right = this.comparison();
|
|
104
|
-
expr = { type: 'binary', operator, left: expr, right };
|
|
105
|
-
}
|
|
106
|
-
return expr;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
private comparison(): AstNode {
|
|
110
|
-
let expr = this.addition();
|
|
111
|
-
while (this.matchOperator('>', '>=', '<', '<=')) {
|
|
112
|
-
const operator = this.previousOperator();
|
|
113
|
-
const right = this.addition();
|
|
114
|
-
expr = { type: 'binary', operator, left: expr, right };
|
|
115
|
-
}
|
|
116
|
-
return expr;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
private addition(): AstNode {
|
|
120
|
-
let expr = this.multiplication();
|
|
121
|
-
while (this.matchOperator('+', '-')) {
|
|
122
|
-
const operator = this.previousOperator();
|
|
123
|
-
const right = this.multiplication();
|
|
124
|
-
expr = { type: 'binary', operator, left: expr, right };
|
|
125
|
-
}
|
|
126
|
-
return expr;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
private multiplication(): AstNode {
|
|
130
|
-
let expr = this.unary();
|
|
131
|
-
while (this.matchOperator('*', '/')) {
|
|
132
|
-
const operator = this.previousOperator();
|
|
133
|
-
const right = this.unary();
|
|
134
|
-
expr = { type: 'binary', operator, left: expr, right };
|
|
135
|
-
}
|
|
136
|
-
return expr;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
private unary(): AstNode {
|
|
140
|
-
if (this.matchOperator('!', '-')) {
|
|
141
|
-
const operator = this.previousOperator();
|
|
142
|
-
const right = this.unary();
|
|
143
|
-
return { type: 'unary', operator, right };
|
|
144
|
-
}
|
|
145
|
-
return this.primary();
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
private primary(): AstNode {
|
|
149
|
-
if (this.match('literal')) {
|
|
150
|
-
return { type: 'literal', value: this.previous().value };
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
if (this.match('property')) {
|
|
154
|
-
const token = this.previousProperty();
|
|
155
|
-
this.dependencies.add(token.value);
|
|
156
|
-
return { type: 'property', key: token.value, raw: token.raw };
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
if (this.match('identifier')) {
|
|
160
|
-
const name = this.previous().value;
|
|
161
|
-
|
|
162
|
-
if (!this.match('lparen')) {
|
|
163
|
-
throw new Error(`Expected "(" after function "${name}"`);
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
const args: AstNode[] = [];
|
|
167
|
-
if (!this.check('rparen')) {
|
|
168
|
-
do {
|
|
169
|
-
args.push(this.expression());
|
|
170
|
-
} while (this.match('comma'));
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
this.consume('rparen', `Expected ")" after function "${name}"`);
|
|
174
|
-
return { type: 'call', name, args };
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
if (this.match('lparen')) {
|
|
178
|
-
const expr = this.expression();
|
|
179
|
-
this.consume('rparen', 'Expected ")" after expression');
|
|
180
|
-
return expr;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
throw new Error('Unexpected token while parsing formula');
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
private previous(): Extract<
|
|
187
|
-
LexToken,
|
|
188
|
-
{ type: 'identifier' | 'property' | 'literal' }
|
|
189
|
-
> {
|
|
190
|
-
return this.tokens[this.current - 1] as Extract<
|
|
191
|
-
LexToken,
|
|
192
|
-
{ type: 'identifier' | 'property' | 'literal' }
|
|
193
|
-
>;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
private previousProperty(): Extract<LexToken, { type: 'property' }> {
|
|
197
|
-
return this.tokens[this.current - 1] as Extract<
|
|
198
|
-
LexToken,
|
|
199
|
-
{ type: 'property' }
|
|
200
|
-
>;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
private previousOperator(): string {
|
|
204
|
-
return (
|
|
205
|
-
this.tokens[this.current - 1] as Extract<LexToken, { type: 'operator' }>
|
|
206
|
-
).value;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
private consume(type: LexToken['type'], message: string): void {
|
|
210
|
-
if (this.check(type)) {
|
|
211
|
-
this.advance();
|
|
212
|
-
return;
|
|
213
|
-
}
|
|
214
|
-
throw new Error(message);
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
private match(type: LexToken['type']): boolean {
|
|
218
|
-
if (!this.check(type)) return false;
|
|
219
|
-
this.advance();
|
|
220
|
-
return true;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
private matchOperator(...operators: string[]): boolean {
|
|
224
|
-
if (!this.check('operator')) return false;
|
|
225
|
-
const token = this.peek() as Extract<LexToken, { type: 'operator' }>;
|
|
226
|
-
if (!operators.includes(token.value)) return false;
|
|
227
|
-
this.advance();
|
|
228
|
-
return true;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
private check(type: LexToken['type']): boolean {
|
|
232
|
-
if (this.isAtEnd()) return type === 'eof';
|
|
233
|
-
return this.peek().type === type;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
private advance(): LexToken {
|
|
237
|
-
if (!this.isAtEnd()) this.current++;
|
|
238
|
-
return this.tokens[this.current - 1];
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
private isAtEnd(): boolean {
|
|
242
|
-
return this.peek().type === 'eof';
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
private peek(): LexToken {
|
|
246
|
-
return this.tokens[this.current];
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
export class FormulaRuntimeEngine {
|
|
251
|
-
private readonly compiledCache = new Map<string, CompiledFormula>();
|
|
252
|
-
private readonly functionRegistry: Record<string, RuntimeFunction>;
|
|
253
|
-
|
|
254
|
-
constructor(customFunctions?: Record<string, RuntimeFunction>) {
|
|
255
|
-
this.functionRegistry = {
|
|
256
|
-
...buildDefaultFunctionRegistry(),
|
|
257
|
-
...(customFunctions ?? {}),
|
|
258
|
-
};
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
evaluateCondition(
|
|
262
|
-
config: FormulaConditionConfig,
|
|
263
|
-
context: FormulaEvaluationContext,
|
|
264
|
-
): FormulaConditionEvaluation {
|
|
265
|
-
let compiled: CompiledFormula;
|
|
266
|
-
try {
|
|
267
|
-
compiled = this.getCompiledFormula(config.formulaTokens);
|
|
268
|
-
} catch (error) {
|
|
269
|
-
return {
|
|
270
|
-
dependencies: [],
|
|
271
|
-
errors: [createRuntimeError('FORMULA_PARSE_ERROR', error)],
|
|
272
|
-
};
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
let rawValue: any;
|
|
276
|
-
try {
|
|
277
|
-
rawValue = this.evaluateAst(compiled.ast, context.values);
|
|
278
|
-
} catch (error) {
|
|
279
|
-
return {
|
|
280
|
-
dependencies: compiled.dependencies,
|
|
281
|
-
errors: [createRuntimeError('FORMULA_EVALUATION_ERROR', error)],
|
|
282
|
-
};
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
const action = this.resolveConditionAction(config.mode, compiled);
|
|
286
|
-
const conditionValue = toBoolean(rawValue);
|
|
287
|
-
|
|
288
|
-
switch (action) {
|
|
289
|
-
case 'show':
|
|
290
|
-
return {
|
|
291
|
-
hidden: !conditionValue,
|
|
292
|
-
dependencies: compiled.dependencies,
|
|
293
|
-
errors: [],
|
|
294
|
-
};
|
|
295
|
-
case 'hide':
|
|
296
|
-
return {
|
|
297
|
-
hidden: conditionValue,
|
|
298
|
-
dependencies: compiled.dependencies,
|
|
299
|
-
errors: [],
|
|
300
|
-
};
|
|
301
|
-
case 'enable':
|
|
302
|
-
return {
|
|
303
|
-
disabled: !conditionValue,
|
|
304
|
-
dependencies: compiled.dependencies,
|
|
305
|
-
errors: [],
|
|
306
|
-
};
|
|
307
|
-
case 'disable':
|
|
308
|
-
return {
|
|
309
|
-
disabled: conditionValue,
|
|
310
|
-
dependencies: compiled.dependencies,
|
|
311
|
-
errors: [],
|
|
312
|
-
};
|
|
313
|
-
default:
|
|
314
|
-
return {
|
|
315
|
-
dependencies: compiled.dependencies,
|
|
316
|
-
errors: [],
|
|
317
|
-
};
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
evaluateValidation(
|
|
322
|
-
rule: FormulaValidationRuleConfig,
|
|
323
|
-
context: FormulaEvaluationContext,
|
|
324
|
-
): FormulaValidationEvaluation {
|
|
325
|
-
let compiled: CompiledFormula;
|
|
326
|
-
try {
|
|
327
|
-
compiled = this.getCompiledFormula(rule.formulaTokens);
|
|
328
|
-
} catch (error) {
|
|
329
|
-
return {
|
|
330
|
-
valid: false,
|
|
331
|
-
dependencies: [],
|
|
332
|
-
errors: [createRuntimeError('FORMULA_PARSE_ERROR', error)],
|
|
333
|
-
};
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
try {
|
|
337
|
-
const value = this.evaluateAst(compiled.ast, context.values);
|
|
338
|
-
return {
|
|
339
|
-
valid: toBoolean(value),
|
|
340
|
-
dependencies: compiled.dependencies,
|
|
341
|
-
errors: [],
|
|
342
|
-
};
|
|
343
|
-
} catch (error) {
|
|
344
|
-
return {
|
|
345
|
-
valid: false,
|
|
346
|
-
dependencies: compiled.dependencies,
|
|
347
|
-
errors: [createRuntimeError('FORMULA_EVALUATION_ERROR', error)],
|
|
348
|
-
};
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
evaluateValidationRules(
|
|
353
|
-
rules: FormulaValidationRuleConfig[],
|
|
354
|
-
context: FormulaEvaluationContext,
|
|
355
|
-
options?: {
|
|
356
|
-
isDependencyActive?: (dependency: string) => boolean;
|
|
357
|
-
},
|
|
358
|
-
): FormulaValidationRulesEvaluation {
|
|
359
|
-
const errors: FormulaRuntimeMessage[] = [];
|
|
360
|
-
const warnings: FormulaRuntimeMessage[] = [];
|
|
361
|
-
const isDependencyActive = options?.isDependencyActive ?? (() => true);
|
|
362
|
-
|
|
363
|
-
rules.forEach((rule) => {
|
|
364
|
-
if (!rule.enabled) return;
|
|
365
|
-
|
|
366
|
-
const result = this.evaluateValidation(rule, context);
|
|
367
|
-
const hasInactiveDependency = result.dependencies.some(
|
|
368
|
-
(dependency) => !isDependencyActive(dependency),
|
|
369
|
-
);
|
|
370
|
-
if (hasInactiveDependency) return;
|
|
371
|
-
|
|
372
|
-
if (result.errors.length > 0) {
|
|
373
|
-
const firstError = result.errors[0];
|
|
374
|
-
const message: FormulaRuntimeMessage = {
|
|
375
|
-
code: firstError.code,
|
|
376
|
-
severity: rule.severity,
|
|
377
|
-
message: firstError.message,
|
|
378
|
-
formulaText: rule.formulaText,
|
|
379
|
-
ruleId: rule.id,
|
|
380
|
-
};
|
|
381
|
-
|
|
382
|
-
if (rule.severity === 'error') errors.push(message);
|
|
383
|
-
else warnings.push(message);
|
|
384
|
-
return;
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
if (!result.valid) {
|
|
388
|
-
const message: FormulaRuntimeMessage = {
|
|
389
|
-
code: 'FORMULA_FALSE',
|
|
390
|
-
severity: rule.severity,
|
|
391
|
-
message: rule.message || 'Validation rule failed',
|
|
392
|
-
formulaText: rule.formulaText,
|
|
393
|
-
ruleId: rule.id,
|
|
394
|
-
};
|
|
395
|
-
|
|
396
|
-
if (rule.severity === 'error') errors.push(message);
|
|
397
|
-
else warnings.push(message);
|
|
398
|
-
}
|
|
399
|
-
});
|
|
400
|
-
|
|
401
|
-
return { errors, warnings };
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
extractDependencies(formulaTokens: string): string[] {
|
|
405
|
-
try {
|
|
406
|
-
return this.getCompiledFormula(formulaTokens).dependencies;
|
|
407
|
-
} catch {
|
|
408
|
-
return [];
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
private resolveConditionAction(
|
|
413
|
-
mode: FormulaConditionMode | undefined,
|
|
414
|
-
compiled: CompiledFormula,
|
|
415
|
-
): ConditionAction {
|
|
416
|
-
if (mode && mode !== 'auto') return mode;
|
|
417
|
-
return compiled.topLevelWrapper ?? 'show';
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
private getCompiledFormula(formulaTokens: string): CompiledFormula {
|
|
421
|
-
const key = formulaTokens?.trim();
|
|
422
|
-
if (!key) {
|
|
423
|
-
throw new Error('Formula tokens are empty');
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
const cached = this.compiledCache.get(key);
|
|
427
|
-
if (cached) return cached;
|
|
428
|
-
|
|
429
|
-
const tokens = this.deserializeFormulaTokens(key);
|
|
430
|
-
const lexTokens = this.toLexTokens(tokens);
|
|
431
|
-
const compiled = new FormulaParser(lexTokens).parse();
|
|
432
|
-
|
|
433
|
-
this.compiledCache.set(key, compiled);
|
|
434
|
-
return compiled;
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
private deserializeFormulaTokens(formulaTokens: string): FormulaToken[] {
|
|
438
|
-
const trimmed = formulaTokens.trim();
|
|
439
|
-
|
|
440
|
-
// `formulaTokens` may be persisted in two equivalent encodings:
|
|
441
|
-
// - the canonical executable EXPRESSION string (e.g.
|
|
442
|
-
// "OR(ISNULL(@Current::x), ...)") — what the back-end stores; or
|
|
443
|
-
// - a JSON token array (legacy / inline-form snapshots).
|
|
444
|
-
// Accept both: a value that parses to an array of token objects is used
|
|
445
|
-
// directly; anything else is tokenized from the expression string.
|
|
446
|
-
if (trimmed.startsWith('[')) {
|
|
447
|
-
try {
|
|
448
|
-
const parsed = JSON.parse(trimmed);
|
|
449
|
-
if (
|
|
450
|
-
Array.isArray(parsed) &&
|
|
451
|
-
(parsed.length === 0 ||
|
|
452
|
-
(typeof parsed[0] === 'object' &&
|
|
453
|
-
parsed[0] !== null &&
|
|
454
|
-
'type' in parsed[0]))
|
|
455
|
-
) {
|
|
456
|
-
return parsed as FormulaToken[];
|
|
457
|
-
}
|
|
458
|
-
} catch {
|
|
459
|
-
// Not valid JSON — fall through and treat it as an expression string.
|
|
460
|
-
}
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
return tokenizeFormulaTemplate(trimmed);
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
private toLexTokens(tokens: FormulaToken[]): LexToken[] {
|
|
467
|
-
if (!tokens.length) {
|
|
468
|
-
throw new Error('Formula token array is empty');
|
|
469
|
-
}
|
|
470
|
-
|
|
471
|
-
const lex: LexToken[] = [];
|
|
472
|
-
for (const token of tokens) {
|
|
473
|
-
switch (token.type) {
|
|
474
|
-
case 'fn-open': {
|
|
475
|
-
const functionName = (
|
|
476
|
-
token.functionName ?? token.value.replace(/\($/, '')
|
|
477
|
-
).trim();
|
|
478
|
-
if (!functionName) {
|
|
479
|
-
throw new Error('Formula contains function token without a name');
|
|
480
|
-
}
|
|
481
|
-
lex.push({ type: 'identifier', value: functionName });
|
|
482
|
-
lex.push({ type: 'lparen' });
|
|
483
|
-
break;
|
|
484
|
-
}
|
|
485
|
-
case 'fn-close':
|
|
486
|
-
lex.push({ type: 'rparen' });
|
|
487
|
-
break;
|
|
488
|
-
case 'fn-separator':
|
|
489
|
-
lex.push({ type: 'comma' });
|
|
490
|
-
break;
|
|
491
|
-
case 'operator':
|
|
492
|
-
lex.push({ type: 'operator', value: token.value });
|
|
493
|
-
break;
|
|
494
|
-
case 'property':
|
|
495
|
-
lex.push({
|
|
496
|
-
type: 'property',
|
|
497
|
-
value: normalizePropertyToken(token.value),
|
|
498
|
-
raw: token.value,
|
|
499
|
-
});
|
|
500
|
-
break;
|
|
501
|
-
case 'literal':
|
|
502
|
-
lex.push({ type: 'literal', value: parseLiteralTokenValue(token) });
|
|
503
|
-
break;
|
|
504
|
-
default:
|
|
505
|
-
throw new Error(
|
|
506
|
-
`Unsupported formula token type: ${(token as any).type}`,
|
|
507
|
-
);
|
|
508
|
-
}
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
lex.push({ type: 'eof' });
|
|
512
|
-
return lex;
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
private evaluateAst(ast: AstNode, values: Record<string, any>): any {
|
|
516
|
-
switch (ast.type) {
|
|
517
|
-
case 'literal':
|
|
518
|
-
return ast.value;
|
|
519
|
-
case 'property':
|
|
520
|
-
return resolvePropertyValue(values, ast.key, ast.raw);
|
|
521
|
-
case 'unary': {
|
|
522
|
-
const right = this.evaluateAst(ast.right, values);
|
|
523
|
-
if (ast.operator === '!') return !toBoolean(right);
|
|
524
|
-
if (ast.operator === '-') return -toNumber(right);
|
|
525
|
-
throw new Error(`Unsupported unary operator: ${ast.operator}`);
|
|
526
|
-
}
|
|
527
|
-
case 'binary': {
|
|
528
|
-
const left = this.evaluateAst(ast.left, values);
|
|
529
|
-
const right = this.evaluateAst(ast.right, values);
|
|
530
|
-
return evaluateBinary(ast.operator, left, right);
|
|
531
|
-
}
|
|
532
|
-
case 'call': {
|
|
533
|
-
const fn = this.functionRegistry[ast.name.toUpperCase()];
|
|
534
|
-
if (!fn) {
|
|
535
|
-
throw new Error(`Unsupported function: ${ast.name}`);
|
|
536
|
-
}
|
|
537
|
-
const args = ast.args.map((arg) => this.evaluateAst(arg, values));
|
|
538
|
-
return fn(...args);
|
|
539
|
-
}
|
|
540
|
-
default:
|
|
541
|
-
throw new Error('Unsupported formula AST node');
|
|
542
|
-
}
|
|
543
|
-
}
|
|
544
|
-
}
|
|
545
|
-
|
|
546
|
-
function evaluateBinary(operator: string, left: any, right: any): any {
|
|
547
|
-
switch (operator) {
|
|
548
|
-
case '||':
|
|
549
|
-
return toBoolean(left) || toBoolean(right);
|
|
550
|
-
case '&&':
|
|
551
|
-
return toBoolean(left) && toBoolean(right);
|
|
552
|
-
case '==':
|
|
553
|
-
return looseEqual(left, right);
|
|
554
|
-
case '!=':
|
|
555
|
-
return !looseEqual(left, right);
|
|
556
|
-
case '>':
|
|
557
|
-
return compareValues(left, right) > 0;
|
|
558
|
-
case '>=':
|
|
559
|
-
return compareValues(left, right) >= 0;
|
|
560
|
-
case '<':
|
|
561
|
-
return compareValues(left, right) < 0;
|
|
562
|
-
case '<=':
|
|
563
|
-
return compareValues(left, right) <= 0;
|
|
564
|
-
case '+':
|
|
565
|
-
return typeof left === 'string' || typeof right === 'string'
|
|
566
|
-
? `${left ?? ''}${right ?? ''}`
|
|
567
|
-
: toNumber(left) + toNumber(right);
|
|
568
|
-
case '-':
|
|
569
|
-
return toNumber(left) - toNumber(right);
|
|
570
|
-
case '*':
|
|
571
|
-
return toNumber(left) * toNumber(right);
|
|
572
|
-
case '/':
|
|
573
|
-
return toNumber(left) / toNumber(right);
|
|
574
|
-
default:
|
|
575
|
-
throw new Error(`Unsupported operator: ${operator}`);
|
|
576
|
-
}
|
|
577
|
-
}
|
|
578
|
-
|
|
579
|
-
function looseEqual(left: any, right: any): boolean {
|
|
580
|
-
if (Array.isArray(left) && Array.isArray(right)) {
|
|
581
|
-
return right.every((item) => left.includes(item));
|
|
582
|
-
}
|
|
583
|
-
if (Array.isArray(left)) return left.includes(right);
|
|
584
|
-
if (Array.isArray(right)) return right.includes(left);
|
|
585
|
-
|
|
586
|
-
const leftDate = toDate(left);
|
|
587
|
-
const rightDate = toDate(right);
|
|
588
|
-
if (leftDate && rightDate) {
|
|
589
|
-
return leftDate.getTime() === rightDate.getTime();
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
const leftNumber = maybeNumber(left);
|
|
593
|
-
const rightNumber = maybeNumber(right);
|
|
594
|
-
if (leftNumber !== null && rightNumber !== null) {
|
|
595
|
-
return leftNumber === rightNumber;
|
|
596
|
-
}
|
|
597
|
-
|
|
598
|
-
return left === right;
|
|
599
|
-
}
|
|
600
|
-
|
|
601
|
-
function compareValues(left: any, right: any): number {
|
|
602
|
-
const leftDate = toDate(left);
|
|
603
|
-
const rightDate = toDate(right);
|
|
604
|
-
if (leftDate && rightDate) {
|
|
605
|
-
return leftDate.getTime() - rightDate.getTime();
|
|
606
|
-
}
|
|
607
|
-
|
|
608
|
-
const leftNumber = toNumber(left);
|
|
609
|
-
const rightNumber = toNumber(right);
|
|
610
|
-
return leftNumber - rightNumber;
|
|
611
|
-
}
|
|
612
|
-
|
|
613
|
-
function buildDefaultFunctionRegistry(): Record<string, RuntimeFunction> {
|
|
614
|
-
const isNull = (value: any) =>
|
|
615
|
-
value === null ||
|
|
616
|
-
value === undefined ||
|
|
617
|
-
value === '' ||
|
|
618
|
-
(Array.isArray(value) && value.length === 0);
|
|
619
|
-
|
|
620
|
-
return {
|
|
621
|
-
SHOW_IF: (condition: any) => toBoolean(condition),
|
|
622
|
-
HIDE_IF: (condition: any) => toBoolean(condition),
|
|
623
|
-
ENABLE_IF: (condition: any) => toBoolean(condition),
|
|
624
|
-
DISABLE_IF: (condition: any) => toBoolean(condition),
|
|
625
|
-
AND: (...args: any[]) => args.every((arg) => toBoolean(arg)),
|
|
626
|
-
OR: (...args: any[]) => args.some((arg) => toBoolean(arg)),
|
|
627
|
-
NOT: (condition: any) => !toBoolean(condition),
|
|
628
|
-
ISNULL: (value: any) => isNull(value),
|
|
629
|
-
CONTAINS: (text: any, search: any) =>
|
|
630
|
-
String(text ?? '')
|
|
631
|
-
.toLowerCase()
|
|
632
|
-
.includes(String(search ?? '').toLowerCase()),
|
|
633
|
-
|
|
634
|
-
REQUIRED: (value: any) => !isNull(value),
|
|
635
|
-
MIN_LENGTH: (value: any, min: any) =>
|
|
636
|
-
String(value ?? '').length >= toNumber(min),
|
|
637
|
-
MAX_LENGTH: (value: any, max: any) =>
|
|
638
|
-
String(value ?? '').length <= toNumber(max),
|
|
639
|
-
REGEX: (value: any, pattern: any) => {
|
|
640
|
-
try {
|
|
641
|
-
return new RegExp(String(pattern ?? '')).test(String(value ?? ''));
|
|
642
|
-
} catch {
|
|
643
|
-
return false;
|
|
644
|
-
}
|
|
645
|
-
},
|
|
646
|
-
BEFORE: (date: any, reference: any) => {
|
|
647
|
-
const left = toDate(date);
|
|
648
|
-
const right = toDate(reference);
|
|
649
|
-
if (!left || !right) return false;
|
|
650
|
-
return left.getTime() < right.getTime();
|
|
651
|
-
},
|
|
652
|
-
AFTER: (date: any, reference: any) => {
|
|
653
|
-
const left = toDate(date);
|
|
654
|
-
const right = toDate(reference);
|
|
655
|
-
if (!left || !right) return false;
|
|
656
|
-
return left.getTime() > right.getTime();
|
|
657
|
-
},
|
|
658
|
-
};
|
|
659
|
-
}
|
|
660
|
-
|
|
661
|
-
function normalizeWrapperAction(name: string): ConditionAction | null {
|
|
662
|
-
const normalized = name.trim().toLowerCase();
|
|
663
|
-
return CONDITION_WRAPPER_NAMES.has(normalized as ConditionAction)
|
|
664
|
-
? (normalized as ConditionAction)
|
|
665
|
-
: null;
|
|
666
|
-
}
|
|
667
|
-
|
|
668
|
-
function normalizePropertyToken(raw: string): string {
|
|
669
|
-
const value = String(raw ?? '').trim();
|
|
670
|
-
const prefix = PROPERTY_PREFIXES.find((p) => value.startsWith(p));
|
|
671
|
-
return prefix ? value.slice(prefix.length) : value;
|
|
672
|
-
}
|
|
673
|
-
|
|
674
|
-
function parseLiteralTokenValue(token: FormulaToken): any {
|
|
675
|
-
if (token.literalType === 'number') {
|
|
676
|
-
return toNumber(token.value);
|
|
677
|
-
}
|
|
678
|
-
if (token.literalType === 'boolean') {
|
|
679
|
-
return toBoolean(token.value);
|
|
680
|
-
}
|
|
681
|
-
|
|
682
|
-
const value = String(token.value ?? '').trim();
|
|
683
|
-
|
|
684
|
-
if (
|
|
685
|
-
(value.startsWith('"') && value.endsWith('"')) ||
|
|
686
|
-
(value.startsWith("'") && value.endsWith("'"))
|
|
687
|
-
) {
|
|
688
|
-
return value.slice(1, -1);
|
|
689
|
-
}
|
|
690
|
-
|
|
691
|
-
if (value.toLowerCase() === 'true') return true;
|
|
692
|
-
if (value.toLowerCase() === 'false') return false;
|
|
693
|
-
|
|
694
|
-
const asNumber = maybeNumber(value);
|
|
695
|
-
if (asNumber !== null) return asNumber;
|
|
696
|
-
|
|
697
|
-
return value;
|
|
698
|
-
}
|
|
699
|
-
|
|
700
|
-
function resolvePropertyValue(
|
|
701
|
-
values: Record<string, any>,
|
|
702
|
-
key: string,
|
|
703
|
-
raw: string,
|
|
704
|
-
): any {
|
|
705
|
-
if (Object.prototype.hasOwnProperty.call(values, key)) {
|
|
706
|
-
return values[key];
|
|
707
|
-
}
|
|
708
|
-
|
|
709
|
-
if (Object.prototype.hasOwnProperty.call(values, raw)) {
|
|
710
|
-
return values[raw];
|
|
711
|
-
}
|
|
712
|
-
|
|
713
|
-
if (!key.includes('.')) {
|
|
714
|
-
return undefined;
|
|
715
|
-
}
|
|
716
|
-
|
|
717
|
-
const parts = key.split('.');
|
|
718
|
-
let current: any = values;
|
|
719
|
-
for (const part of parts) {
|
|
720
|
-
if (current === null || current === undefined) {
|
|
721
|
-
return undefined;
|
|
722
|
-
}
|
|
723
|
-
current = current[part];
|
|
724
|
-
}
|
|
725
|
-
return current;
|
|
726
|
-
}
|
|
727
|
-
|
|
728
|
-
function toBoolean(value: any): boolean {
|
|
729
|
-
if (typeof value === 'boolean') return value;
|
|
730
|
-
if (typeof value === 'number') return !Number.isNaN(value) && value !== 0;
|
|
731
|
-
if (typeof value === 'string') {
|
|
732
|
-
const normalized = value.trim().toLowerCase();
|
|
733
|
-
if (
|
|
734
|
-
normalized === '' ||
|
|
735
|
-
normalized === 'false' ||
|
|
736
|
-
normalized === '0' ||
|
|
737
|
-
normalized === 'null' ||
|
|
738
|
-
normalized === 'undefined'
|
|
739
|
-
) {
|
|
740
|
-
return false;
|
|
741
|
-
}
|
|
742
|
-
return true;
|
|
743
|
-
}
|
|
744
|
-
if (Array.isArray(value)) return value.length > 0;
|
|
745
|
-
return Boolean(value);
|
|
746
|
-
}
|
|
747
|
-
|
|
748
|
-
function toNumber(value: any): number {
|
|
749
|
-
const num = Number(value);
|
|
750
|
-
return Number.isFinite(num) ? num : 0;
|
|
751
|
-
}
|
|
752
|
-
|
|
753
|
-
function maybeNumber(value: any): number | null {
|
|
754
|
-
if (value === '' || value === null || value === undefined) return null;
|
|
755
|
-
const num = Number(value);
|
|
756
|
-
return Number.isFinite(num) ? num : null;
|
|
757
|
-
}
|
|
758
|
-
|
|
759
|
-
function toDate(value: any): Date | null {
|
|
760
|
-
if (value instanceof Date) {
|
|
761
|
-
return Number.isNaN(value.getTime()) ? null : value;
|
|
762
|
-
}
|
|
763
|
-
// Plain numbers and numeric strings are NOT dates. `new Date('100')` parses
|
|
764
|
-
// as the year 0100, which would otherwise hijack equality/ordering of a
|
|
765
|
-
// numeric value (e.g. a percentage `== 100`) into a bogus date comparison.
|
|
766
|
-
// Leave those to the numeric path.
|
|
767
|
-
if (typeof value === 'number') {
|
|
768
|
-
return null;
|
|
769
|
-
}
|
|
770
|
-
if (typeof value === 'string') {
|
|
771
|
-
const trimmed = value.trim();
|
|
772
|
-
if (trimmed === '' || NUMERIC_STRING_PATTERN.test(trimmed)) {
|
|
773
|
-
return null;
|
|
774
|
-
}
|
|
775
|
-
const date = new Date(trimmed);
|
|
776
|
-
return Number.isNaN(date.getTime()) ? null : date;
|
|
777
|
-
}
|
|
778
|
-
return null;
|
|
779
|
-
}
|
|
780
|
-
|
|
781
|
-
function toErrorMessage(error: unknown): string {
|
|
782
|
-
if (error instanceof Error && error.message) return error.message;
|
|
783
|
-
return 'Formula evaluation failed';
|
|
784
|
-
}
|
|
785
|
-
|
|
786
|
-
function createRuntimeError(
|
|
787
|
-
code: FormulaRuntimeEngineErrorCode,
|
|
788
|
-
error: unknown,
|
|
789
|
-
): FormulaRuntimeEngineError {
|
|
790
|
-
return {
|
|
791
|
-
code,
|
|
792
|
-
message: toErrorMessage(error),
|
|
793
|
-
};
|
|
794
|
-
}
|