@masterteam/components 0.0.263 → 0.0.265
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/.angular/cache/21.2.7/@masterteam/components/.tsbuildinfo +1 -0
- 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 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/0727b170af3d53236c0cafe16ea670d089e48d4c5c525b1dbcc1c684bb6e99c7 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/0873bc9048494ebc33fe0a7b856324c7c4ca681b0dcaa87338e3290186906d49 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/1010cd8fc996d0c2df519ed60085f4b1f38ccfc873900055bc75fc20a3c26bab +1 -0
- package/.angular/cache/21.2.7/ng-packagr/12379a8ab7254ad3df2635823a358cfce32e6d0f390be68596cc97e02307e6c4 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/1239e7a937657b62f858d17d47738ed30facbdaa91032511e29ed148b748400b +1 -0
- package/.angular/cache/21.2.7/ng-packagr/133b9ecf47ba424244902da90d77cd3f135b85f95c01b16de7b2247f57518f01 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/175d45dc6da51834e7fe937c09d23dbf28d2a823f838ef5271fd3e148776d6ec +1 -0
- package/.angular/cache/21.2.7/ng-packagr/19d99ad4d927324b03cdbef34331ba2c58bd580f1f0ca591cb5f8dbf436c913c +1 -0
- package/.angular/cache/21.2.7/ng-packagr/1a86918763f95c1c2b9fa781bda1ceedf15aead87f0e11ea1324318af43a897a +1 -0
- package/.angular/cache/21.2.7/ng-packagr/1f08100dbc280be7da64c809315376eb7d0cfd074916a6042f609f03f4276a8e +1 -0
- package/.angular/cache/21.2.7/ng-packagr/2224877a7e762b86541428e4c40d61f54f505867c305769ae42e67e4aa81bd93 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/24957fb7ec060692ebcf1471e1bdce39f40aed938959e580048ade58015762d2 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/295fcdc1c4462e7feae96a24255369508a559faaecc4676267749a7ce23e4b6d +1 -0
- package/.angular/cache/21.2.7/ng-packagr/2b37e2f2d6564d10bad1fd0ecc16453962fd855cd1e36ad7aa24baf3e4f2e8b3 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/2c20f0929771e857b570ba2beffe91f598f299ce26d4825fe4315bfe5a3dd40a +1 -0
- package/.angular/cache/21.2.7/ng-packagr/37dea2e5798cad4a21d66292eeed5be26d04500d9a1534332ad42ce664a058c2 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/3b6239b640fcb5ea7067a2655a2901d32f55372812b586aa008e77c59e8f2090 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/3beb1b4dfe75d1e6749cf91f05d51ba4eece939f5c15f6f33ed587bfd198f0a3 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/3f161e6c2ead4519d0663dd79199dafceb2cc22da7ce92a72b809b93bfce0bb0 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/43551862d17cd02626e18b30243390081a6247784485660048b060a3d4ab7fa7 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/47aedf032519b41d96866fcf8fbd4f1dfd29f9e9a534b39dee0e44d402227d2d +1 -0
- package/.angular/cache/21.2.7/ng-packagr/4a1768888c60921955bfdfba8b31c8d853bd7b2a7d3a7b83934de049e1e6e6a2 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/4a783e339117597607bff17eeca0ad24d84b8cbc1e28927e7e453ccfa6223180 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/4d9331b2050326f586cd8f6593a9e04e1c7944b2f9e98023649023c099597a5d +1 -0
- package/.angular/cache/21.2.7/ng-packagr/4e379f506919d47af7008658c75242aa05f0056c1caec4061d7fa5746f776049 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/55009bb7d44552dd816ce32fa2b0f7985f3f08fefd6409c2b4f6b9ffe35dad83 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/58ae3f1f9664f7b16844d2e4a279dd4ca9371de014cf5687320c2d5cb259a74f +1 -0
- package/.angular/cache/21.2.7/ng-packagr/5c08e906bd3fe1aa6c1d62f2bbb2b3f276e1c17fe45ef081e76bd1b865ac3dfa +1 -0
- package/.angular/cache/21.2.7/ng-packagr/5ce333a40ad635188347fa9bc601d5fd14be6baacbae7d096259d725ac9757af +1 -0
- package/.angular/cache/21.2.7/ng-packagr/5f32cceaee6a6ea19cc6cbff5ea089b752f13a0fdcd32597d4c99d5e1e031bb5 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/691ad4ccdc0a8ede36e1f4e5e97638c20c2d3142916ffac3a1b172178c139205 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/6b57160e0d2da3f31693831e84a3f4209c1f33a04abd636e34af03956e7329d8 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/70bc711a1d7b631845885c26adc2d6b1bff47d11332b2625cedfa11e9d5ac79a +1 -0
- package/.angular/cache/21.2.7/ng-packagr/7427c266237012afaef486c2af94ee08a491e8d7b6fc7e5ee887980830bbd333 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/7e8fa7c61cf9a932ba3a0e65eb73c7412e81666b7a8f923dac7b75acfbb94b1d +1 -0
- package/.angular/cache/21.2.7/ng-packagr/81aab7fdab43cbdfa869db759d6113ae01ec6f5e0e9061d7fc089c260886e4d1 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/83a81758045ff710a34ea3cf6f54435a1f5dea9839d8c0adda0bbce7c3fb6e8b +1 -0
- package/.angular/cache/21.2.7/ng-packagr/883eae810a4c09f06617bdc2e4bc30a69f09726401b2a051840969f635d076f1 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/8a6b9be66de40c57054dca5fde376c3cec1bec1ae191a16f1ae6a83306d9ebfe +1 -0
- package/.angular/cache/21.2.7/ng-packagr/8d42c8144f6929de46984094bf390a0c4168404ab13a5194839f6ba5e42bc3ce +1 -0
- package/.angular/cache/21.2.7/ng-packagr/91093656c61a5404f0d576f872247eeb480dd938e6999d481a97893c72b5f3d0 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/91e881172037c63d819e30d30e390e0d7dc0dee9808b3902275ccc8b1887d864 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/9ef28cf3a676e7bd0d37762c4868b4810efca2f241ed0dae75ebca41988e2c00 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/a07cbea405c1831b3f686a8e57c4b500d89cbab2b95e110487890269945feeaa +1 -0
- package/.angular/cache/21.2.7/ng-packagr/a463deba940880d9461612c9cd00d90062bf97aa31b1c4556b8b47a967cb6882 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/ab03ed1e4a371113b41b663d526d2b06565ceb062e6f033f726f1e455fc5d1d6 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/ad0e84be4f2211aff6187b4bec9adbe15f0e8b36851e9c6c63b38303c2daad37 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/aece79242dae70eb748605e37483e75e122e4ce414fa8be875499e8af26ee5d6 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/aff32db91ce03de30d2bbc84f266fe3fb2c6629d5eeb39a364204d9499484368 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/b0671e73a162927d28ef1742ec008e514264bc2ce29f2255bedaea553492fe5d +1 -0
- package/.angular/cache/21.2.7/ng-packagr/bb50d71f3cdeebbb85fd983be8103f9c216060464f8e7e534271197391e6dcf7 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/c64241290ab30d8761b2f5493a039427f5cda1a48b5be88ce62ee5c714c0f690 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/c794d2e79b26ab378c0dbf8afa7b8ac1337ba9afb288941d44a086cb1bd4bad2 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/d942edf8fd8e8e884138ffcdb1a07ad14a0b5e211f8ccea1dc9ea0b48f50cfc9 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/dbe0b9b9f18ba7b96d9c84f4fd16cde158c9701c202d00113e6f88ba93407bce +1 -0
- package/.angular/cache/21.2.7/ng-packagr/f564395a410a2723aac48e582f5fe416bfeaa48677cea47b10c5152d4f2b6672 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/fc9b0d27f081ca7b2a4cbefa75136d7bd7a8c341dbaa0587855071a6003906b8 +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-avatar-text.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-avatar.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-breadcrumb.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-business-fields.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-button-group.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-button.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-card.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-checkbox-field.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-chip.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-client-page-menu.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-client-page.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-color-picker-field.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-confirmation.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-date-field.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-dialog.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-drawer.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-dynamic-drawer.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-editor-field.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-empty-state.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-entities.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-field-validation.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-formula.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-icon-field.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-list.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-location-field.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-menu.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-modal.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-module-summary-card.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-multi-select-field.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-number-field.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-page-header.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-page.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-paginator.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-pick-list-field.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-progress.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-property-filter-builder.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-radio-button-field.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-radio-cards-field.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-radio-cards.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-runtime-action.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-select-field.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-sidebar.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-slider-field.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-statistic-card.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-table.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-tabs.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-text-field.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-textarea-field.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-toast.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-toggle-field.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-tooltip.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-topbar.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-tree.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-treeselect-field.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-upload-field.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-uploader.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-user-search-field.tsbuildinfo +1 -0
- package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components.tsbuildinfo +1 -0
- package/angular.json +32 -0
- package/api/api.ts +1 -0
- package/api/public-api.ts +5 -0
- package/assets/common.css +309 -2
- package/assets/i18n/ar.json +10 -2
- package/assets/i18n/en.json +10 -2
- package/avatar/avatar.html +32 -0
- package/avatar/avatar.scss +0 -0
- package/avatar/avatar.ts +54 -0
- package/avatar/ng-package.json +6 -0
- package/avatar/public-api.ts +1 -0
- package/avatar-text/avatar-text.html +26 -0
- package/avatar-text/avatar-text.scss +0 -0
- package/avatar-text/avatar-text.ts +52 -0
- package/avatar-text/ng-package.json +6 -0
- package/avatar-text/public-api.ts +1 -0
- package/breadcrumb/breadcrumb.html +53 -0
- package/breadcrumb/breadcrumb.scss +0 -0
- package/breadcrumb/breadcrumb.ts +26 -0
- package/breadcrumb/ng-package.json +6 -0
- package/breadcrumb/public-api.ts +1 -0
- package/business-fields/entity-list-field/entity-list-add-token.ts +25 -0
- package/business-fields/entity-list-field/entity-list-field.html +70 -0
- package/business-fields/entity-list-field/entity-list-field.scss +3 -0
- package/business-fields/entity-list-field/entity-list-field.ts +1067 -0
- package/business-fields/lookup-matrix-field/lookup-matrix-field.html +38 -0
- package/business-fields/lookup-matrix-field/lookup-matrix-field.spec.ts +183 -0
- package/business-fields/lookup-matrix-field/lookup-matrix-field.ts +239 -0
- package/business-fields/lookup-module-check-list-field/lookup-module-check-list-field.html +95 -0
- package/business-fields/lookup-module-check-list-field/lookup-module-check-list-field.ts +336 -0
- package/business-fields/lookup-module-check-list-field/lookup-module-check-list-form-token.ts +42 -0
- package/business-fields/ng-package.json +6 -0
- package/business-fields/public-api.ts +8 -0
- package/business-fields/schedule-item-selector-field/schedule-item-selector-field.html +32 -0
- package/business-fields/schedule-item-selector-field/schedule-item-selector-field.ts +272 -0
- package/business-fields/schedule-predecessor-field/schedule-predecessor-field.html +89 -0
- package/business-fields/schedule-predecessor-field/schedule-predecessor-field.ts +441 -0
- package/business-fields/schema-connection-field/schema-connection-field.html +58 -0
- package/business-fields/schema-connection-field/schema-connection-field.scss +0 -0
- package/business-fields/schema-connection-field/schema-connection-field.ts +456 -0
- package/button/button.html +44 -0
- package/button/button.scss +0 -0
- package/button/button.ts +120 -0
- package/button/ng-package.json +6 -0
- package/button/public-api.ts +1 -0
- package/button-group/button-group.html +3 -0
- package/button-group/button-group.scss +20 -0
- package/button-group/button-group.ts +12 -0
- package/button-group/ng-package.json +6 -0
- package/button-group/public-api.ts +1 -0
- package/card/card.html +26 -0
- package/card/card.scss +0 -0
- package/card/card.ts +29 -0
- package/card/ng-package.json +6 -0
- package/card/public-api.ts +1 -0
- package/checkbox-field/checkbox-field.html +31 -0
- package/checkbox-field/checkbox-field.scss +0 -0
- package/checkbox-field/checkbox-field.spec.ts +21 -0
- package/checkbox-field/checkbox-field.ts +123 -0
- package/checkbox-field/ng-package.json +6 -0
- package/checkbox-field/public-api.ts +1 -0
- package/chip/chip.html +16 -0
- package/chip/chip.scss +19 -0
- package/chip/chip.ts +45 -0
- package/chip/ng-package.json +6 -0
- package/chip/public-api.ts +1 -0
- package/client-page/client-page.html +232 -0
- package/client-page/client-page.ts +588 -0
- package/client-page/index.ts +2 -0
- package/client-page/ng-package.json +6 -0
- package/client-page/public-api.ts +1 -0
- package/client-page-menu/client-page-menu.html +142 -0
- package/client-page-menu/client-page-menu.ts +199 -0
- package/client-page-menu/index.ts +2 -0
- package/client-page-menu/ng-package.json +6 -0
- package/client-page-menu/public-api.ts +1 -0
- package/color-picker-field/color-picker-field.html +45 -0
- package/color-picker-field/color-picker-field.scss +52 -0
- package/color-picker-field/color-picker-field.ts +131 -0
- package/color-picker-field/ng-package.json +6 -0
- package/color-picker-field/public-api.ts +1 -0
- package/confirmation/confirmation-dialog.html +83 -0
- package/confirmation/confirmation-dialog.scss +0 -0
- package/confirmation/confirmation-dialog.ts +15 -0
- package/confirmation/confirmation.spec.ts +43 -0
- package/confirmation/confirmation.ts +103 -0
- package/confirmation/ng-package.json +6 -0
- package/confirmation/public-api.ts +2 -0
- package/date-field/date-field.html +65 -0
- package/date-field/date-field.scss +0 -0
- package/date-field/date-field.spec.ts +118 -0
- package/date-field/date-field.ts +196 -0
- package/date-field/ng-package.json +6 -0
- package/date-field/public-api.ts +1 -0
- package/dialog/dialog.ts +29 -0
- package/dialog/ng-package.json +6 -0
- package/dialog/public-api.ts +1 -0
- package/drawer/drawer.html +67 -0
- package/drawer/drawer.scss +1 -0
- package/drawer/drawer.ts +348 -0
- package/drawer/ng-package.json +5 -0
- package/drawer/public-api.ts +1 -0
- package/dynamic-drawer/dynamic-drawer-host.ts +476 -0
- package/dynamic-drawer/dynamic-drawer.spec.ts +204 -0
- package/dynamic-drawer/dynamic-drawer.ts +235 -0
- package/dynamic-drawer/ng-package.json +6 -0
- package/dynamic-drawer/public-api.ts +2 -0
- package/editor-field/editor-field.html +38 -0
- package/editor-field/editor-field.scss +219 -0
- package/editor-field/editor-field.ts +126 -0
- package/editor-field/ng-package.json +6 -0
- package/editor-field/public-api.ts +1 -0
- package/empty-state/empty-state.html +236 -0
- package/empty-state/empty-state.ts +85 -0
- package/empty-state/ng-package.json +6 -0
- package/empty-state/public-api.ts +1 -0
- package/entities/comparison/comparison-entity-list/comparison-entity-list.html +87 -0
- package/entities/comparison/comparison-entity-list/comparison-entity-list.ts +93 -0
- package/entities/comparison/comparison-value/comparison-value.html +31 -0
- package/entities/comparison/comparison-value/comparison-value.ts +53 -0
- package/entities/currency-display.utils.spec.ts +94 -0
- package/entities/currency-display.utils.ts +92 -0
- package/entities/entities-manage/entities-manage.html +74 -0
- package/entities/entities-manage/entities-manage.scss +72 -0
- package/entities/entities-manage/entities-manage.ts +121 -0
- package/entities/entities-manage/entities-resize-base.ts +153 -0
- package/entities/entities-preview/entities-preview.css +77 -0
- package/entities/entities-preview/entities-preview.html +56 -0
- package/entities/entities-preview/entities-preview.ts +281 -0
- package/entities/entity-attachment/entity-attachment.html +49 -0
- package/entities/entity-attachment/entity-attachment.ts +462 -0
- package/entities/entity-checkbox/entity-checkbox.html +28 -0
- package/entities/entity-checkbox/entity-checkbox.ts +65 -0
- package/entities/entity-comparison.model.ts +39 -0
- package/entities/entity-connection/entity-connection.html +12 -0
- package/entities/entity-connection/entity-connection.ts +75 -0
- package/entities/entity-currency/entity-currency.html +12 -0
- package/entities/entity-currency/entity-currency.ts +59 -0
- package/entities/entity-date/entity-date.html +16 -0
- package/entities/entity-date/entity-date.ts +50 -0
- package/entities/entity-display.utils.ts +94 -0
- package/entities/entity-field/entity-field.ts +94 -0
- package/entities/entity-leaf-details/entity-leaf-details.html +35 -0
- package/entities/entity-leaf-details/entity-leaf-details.ts +56 -0
- package/entities/entity-location/entity-location.html +34 -0
- package/entities/entity-location/entity-location.ts +98 -0
- package/entities/entity-long-text/entity-long-text.html +9 -0
- package/entities/entity-long-text/entity-long-text.ts +45 -0
- package/entities/entity-lookup/entity-lookup.html +25 -0
- package/entities/entity-lookup/entity-lookup.ts +68 -0
- package/entities/entity-lookup-module-check-list/entity-lookup-module-check-list.html +39 -0
- package/entities/entity-lookup-module-check-list/entity-lookup-module-check-list.spec.ts +148 -0
- package/entities/entity-lookup-module-check-list/entity-lookup-module-check-list.ts +152 -0
- package/entities/entity-percentage/entity-percentage.html +22 -0
- package/entities/entity-percentage/entity-percentage.ts +163 -0
- package/entities/entity-phase-gate/entity-phase-gate.html +20 -0
- package/entities/entity-phase-gate/entity-phase-gate.ts +129 -0
- package/entities/entity-preview/entity-preview-body.html +8 -0
- package/entities/entity-preview/entity-preview-body.ts +19 -0
- package/entities/entity-preview/entity-preview.html +14 -0
- package/entities/entity-preview/entity-preview.ts +33 -0
- package/entities/entity-preview/entity-value-preview.html +62 -0
- package/entities/entity-preview/entity-value-preview.spec.ts +191 -0
- package/entities/entity-preview/entity-value-preview.ts +69 -0
- package/entities/entity-schedule-item/entity-schedule-item.html +19 -0
- package/entities/entity-schedule-item/entity-schedule-item.ts +41 -0
- package/entities/entity-sections.util.ts +103 -0
- package/entities/entity-status/entity-status.html +20 -0
- package/entities/entity-status/entity-status.ts +60 -0
- package/entities/entity-text/entity-text.html +20 -0
- package/entities/entity-text/entity-text.ts +35 -0
- package/entities/entity-user/entity-user.html +181 -0
- package/entities/entity-user/entity-user.ts +179 -0
- package/entities/entity.model.ts +407 -0
- package/entities/leaf-details-display.utils.ts +269 -0
- package/entities/ng-package.json +6 -0
- package/entities/percentage-color.utils.spec.ts +94 -0
- package/entities/percentage-color.utils.ts +80 -0
- package/entities/public-api.ts +30 -0
- package/field-validation/character-limit.validator.ts +22 -0
- package/field-validation/error-message.pipe.spec.ts +184 -0
- package/field-validation/error-message.pipe.ts +80 -0
- package/field-validation/field-validation.ts +168 -0
- package/field-validation/ng-package.json +6 -0
- package/field-validation/public-api.ts +2 -0
- package/formula/formula-editor/formula-editor.html +89 -0
- package/formula/formula-editor/formula-editor.scss +25 -0
- package/formula/formula-editor/formula-editor.ts +467 -0
- package/formula/formula-editor/index.ts +1 -0
- package/formula/formula-editor-code/formula-autocomplete-normalization.util.spec.ts +58 -0
- package/formula/formula-editor-code/formula-autocomplete-normalization.util.ts +64 -0
- package/formula/formula-editor-code/formula-completion-range.util.spec.ts +62 -0
- package/formula/formula-editor-code/formula-completion-range.util.ts +71 -0
- package/formula/formula-editor-code/formula-completion-suggestion.util.spec.ts +23 -0
- package/formula/formula-editor-code/formula-completion-suggestion.util.ts +18 -0
- package/formula/formula-editor-code/formula-editor-code.html +15 -0
- package/formula/formula-editor-code/formula-editor-code.scss +90 -0
- package/formula/formula-editor-code/formula-editor-code.ts +1095 -0
- package/formula/formula-editor-code/index.ts +1 -0
- package/formula/formula-status-bar/formula-status-bar.html +119 -0
- package/formula/formula-status-bar/formula-status-bar.ts +66 -0
- package/formula/formula-status-bar/index.ts +1 -0
- package/formula/formula-toolbar/formula-toolbar.html +361 -0
- package/formula/formula-toolbar/formula-toolbar.ts +532 -0
- package/formula/formula-toolbar/index.ts +2 -0
- package/formula/formula-toolbar/operators.ts +122 -0
- package/formula/models/formula-block.model.ts +61 -0
- package/formula/models/formula-token.model.spec.ts +57 -0
- package/formula/models/formula-token.model.ts +852 -0
- package/formula/models/index.ts +5 -0
- package/formula/models/smart-block.model.ts +132 -0
- package/formula/models/validation-result.model.ts +80 -0
- package/formula/ng-package.json +6 -0
- package/formula/public-api.ts +8 -0
- package/formula/runtime/formula-runtime-catalogs.ts +554 -0
- package/formula/runtime/formula-runtime-engine.spec.ts +328 -0
- package/formula/runtime/formula-runtime-engine.ts +794 -0
- package/formula/runtime/formula-runtime.model.ts +53 -0
- package/formula/runtime/index.ts +3 -0
- package/formula/toolbar-item/index.ts +1 -0
- package/formula/toolbar-item/toolbar-item.html +143 -0
- package/formula/toolbar-item/toolbar-item.scss +14 -0
- package/formula/toolbar-item/toolbar-item.ts +223 -0
- package/icon-field/icon-field.html +58 -0
- package/icon-field/icon-field.scss +24 -0
- package/icon-field/icon-field.spec.ts +77 -0
- package/icon-field/icon-field.ts +205 -0
- package/icon-field/ng-package.json +6 -0
- package/icon-field/public-api.ts +1 -0
- package/list/list.html +22 -0
- package/list/list.ts +36 -0
- package/list/ng-package.json +6 -0
- package/list/public-api.ts +1 -0
- package/location-field/location-field.html +86 -0
- package/location-field/location-field.spec.ts +295 -0
- package/location-field/location-field.ts +662 -0
- package/location-field/location-manual-dialog.html +43 -0
- package/location-field/location-manual-dialog.ts +104 -0
- package/location-field/location-value.ts +67 -0
- package/location-field/ng-package.json +6 -0
- package/location-field/public-api.ts +3 -0
- package/menu/menu.html +71 -0
- package/menu/menu.scss +3 -0
- package/menu/menu.ts +186 -0
- package/menu/ng-package.json +6 -0
- package/menu/public-api.ts +1 -0
- package/modal/modal.ts +127 -0
- package/modal/ng-package.json +6 -0
- package/modal/public-api.ts +1 -0
- package/module-summary-card/module-summary-card.html +43 -0
- package/module-summary-card/module-summary-card.scss +0 -0
- package/module-summary-card/module-summary-card.ts +40 -0
- package/module-summary-card/ng-package.json +6 -0
- package/module-summary-card/public-api.ts +1 -0
- package/multi-select-field/multi-select-field.html +140 -0
- package/multi-select-field/multi-select-field.scss +0 -0
- package/multi-select-field/multi-select-field.spec.ts +21 -0
- package/multi-select-field/multi-select-field.ts +397 -0
- package/multi-select-field/ng-package.json +6 -0
- package/multi-select-field/public-api.ts +1 -0
- package/ng-package.json +9 -0
- package/number-field/ng-package.json +6 -0
- package/number-field/number-field.html +39 -0
- package/number-field/number-field.scss +8 -0
- package/number-field/number-field.spec.ts +21 -0
- package/number-field/number-field.ts +124 -0
- package/number-field/public-api.ts +1 -0
- package/package.json +54 -274
- package/page/index.ts +1 -0
- package/page/ng-package.json +6 -0
- package/page/page.html +37 -0
- package/page/page.ts +43 -0
- package/page/public-api.ts +1 -0
- package/page-header/index.ts +2 -0
- package/page-header/ng-package.json +6 -0
- package/page-header/page-header.html +60 -0
- package/page-header/page-header.ts +54 -0
- package/page-header/public-api.ts +1 -0
- package/paginator/ng-package.json +6 -0
- package/paginator/paginator.html +50 -0
- package/paginator/paginator.scss +0 -0
- package/paginator/paginator.ts +53 -0
- package/paginator/public-api.ts +1 -0
- package/pick-list-field/ng-package.json +6 -0
- package/pick-list-field/pick-list-field.html +39 -0
- package/pick-list-field/pick-list-field.scss +26 -0
- package/pick-list-field/pick-list-field.ts +259 -0
- package/pick-list-field/public-api.ts +1 -0
- package/progress/ng-package.json +6 -0
- package/progress/progress.html +36 -0
- package/progress/progress.ts +61 -0
- package/progress/public-api.ts +1 -0
- package/property-filter-builder/ng-package.json +6 -0
- package/property-filter-builder/property-filter-builder.html +192 -0
- package/property-filter-builder/property-filter-builder.ts +548 -0
- package/property-filter-builder/public-api.ts +1 -0
- package/radio-button-field/ng-package.json +6 -0
- package/radio-button-field/public-api.ts +1 -0
- package/radio-button-field/radio-button-field.html +44 -0
- package/radio-button-field/radio-button-field.scss +0 -0
- package/radio-button-field/radio-button-field.ts +114 -0
- package/radio-cards/ng-package.json +6 -0
- package/radio-cards/public-api.ts +1 -0
- package/radio-cards/radio-cards.css +3 -0
- package/radio-cards/radio-cards.html +54 -0
- package/radio-cards/radio-cards.spec.ts +22 -0
- package/radio-cards/radio-cards.ts +92 -0
- package/radio-cards-field/ng-package.json +6 -0
- package/radio-cards-field/public-api.ts +1 -0
- package/radio-cards-field/radio-cards-field.css +0 -0
- package/radio-cards-field/radio-cards-field.html +38 -0
- package/radio-cards-field/radio-cards-field.spec.ts +22 -0
- package/radio-cards-field/radio-cards-field.ts +182 -0
- package/runtime-action/ng-package.json +6 -0
- package/runtime-action/payload-builder.ts +246 -0
- package/runtime-action/public-api.ts +4 -0
- package/runtime-action/runtime-action-context.store.ts +26 -0
- package/runtime-action/runtime-action.runner.ts +302 -0
- package/runtime-action/runtime-action.types.ts +82 -0
- package/select-field/current-user.util.ts +54 -0
- package/select-field/ng-package.json +6 -0
- package/select-field/public-api.ts +1 -0
- package/select-field/select-field.html +142 -0
- package/select-field/select-field.scss +0 -0
- package/select-field/select-field.spec.ts +21 -0
- package/select-field/select-field.ts +471 -0
- package/sidebar/ng-package.json +6 -0
- package/sidebar/public-api.ts +1 -0
- package/sidebar/sidebar.html +368 -0
- package/sidebar/sidebar.ts +303 -0
- package/slider-field/ng-package.json +7 -0
- package/slider-field/public-api.ts +1 -0
- package/slider-field/slider-field.html +33 -0
- package/slider-field/slider-field.scss +11 -0
- package/slider-field/slider-field.spec.ts +44 -0
- package/slider-field/slider-field.ts +166 -0
- package/src/lib/base/base.facade.ts +159 -0
- package/src/lib/base/crud-base.state.ts +248 -0
- package/src/lib/config/date-format.config.ts +55 -0
- package/src/lib/config/ds-identity.preset.ts +538 -0
- package/src/lib/config/ds-identity.tokens.ts +209 -0
- package/src/lib/config/dynamic-form.model.ts +1162 -0
- package/src/lib/config/povide-messages.ts +5 -0
- package/src/lib/config/provide-confirmation.ts +5 -0
- package/src/lib/config/providemt.ts +506 -0
- package/src/lib/config/public-api.ts +0 -0
- package/src/lib/pipes/mt-date-format.pipe.spec.ts +60 -0
- package/src/lib/pipes/mt-date-format.pipe.ts +81 -0
- package/src/lib/utils/api-request.helper.ts +59 -0
- package/src/lib/utils/clock-time.util.ts +58 -0
- package/src/lib/utils/color.utils.ts +187 -0
- package/src/lib/utils/entity-adapter.ts +50 -0
- package/src/lib/utils/field-id.ts +42 -0
- package/src/lib/utils/http-context.ts +35 -0
- package/src/lib/utils/inputs.ts +6 -0
- package/src/lib/utils/state-helpers.ts +49 -0
- package/src/lib/utils/theme.ts +281 -0
- package/src/public-api.ts +30 -0
- package/statistic-card/ng-package.json +6 -0
- package/statistic-card/public-api.ts +1 -0
- package/statistic-card/statistic-card.html +31 -0
- package/statistic-card/statistic-card.scss +0 -0
- package/statistic-card/statistic-card.ts +59 -0
- package/table/ng-package.json +7 -0
- package/table/public-api.ts +10 -0
- package/table/table-actions-menu/public-api.ts +1 -0
- package/table/table-actions-menu/table-actions-menu.html +75 -0
- package/table/table-actions-menu/table-actions-menu.ts +171 -0
- package/table/table-caption/public-api.ts +1 -0
- package/table/table-caption/table-caption.html +118 -0
- package/table/table-caption/table-caption.ts +221 -0
- package/table/table-column-filter/public-api.ts +1 -0
- package/table/table-column-filter/table-column-filter.html +44 -0
- package/table/table-column-filter/table-column-filter.ts +106 -0
- package/table/table-export/html-to-text.util.ts +67 -0
- package/table/table-export/public-api.ts +1 -0
- package/table/table-export/table-export.service.spec.ts +186 -0
- package/table/table-export/table-export.service.ts +325 -0
- package/table/table-filter/public-api.ts +1 -0
- package/table/table-filter/table-filter.css +9 -0
- package/table/table-filter/table-filter.html +63 -0
- package/table/table-filter/table-filter.ts +126 -0
- package/table/table-filter-field/public-api.ts +1 -0
- package/table/table-filter-field/table-filter-field.html +182 -0
- package/table/table-filter-field/table-filter-field.ts +208 -0
- package/table/table-grouping/public-api.ts +1 -0
- package/table/table-grouping/table-grouping.spec.ts +218 -0
- package/table/table-grouping/table-grouping.ts +237 -0
- package/table/table-types.ts +242 -0
- package/table/table-value.utils.spec.ts +63 -0
- package/table/table-value.utils.ts +1014 -0
- package/table/table.css +145 -0
- package/table/table.html +572 -0
- package/table/table.ts +2042 -0
- package/tabs/ng-package.json +6 -0
- package/tabs/public-api.ts +1 -0
- package/tabs/tabs.html +417 -0
- package/tabs/tabs.scss +3 -0
- package/tabs/tabs.spec.ts +79 -0
- package/tabs/tabs.ts +397 -0
- package/text-field/ng-package.json +6 -0
- package/text-field/public-api.ts +1 -0
- package/text-field/text-field.html +75 -0
- package/text-field/text-field.scss +56 -0
- package/text-field/text-field.ts +251 -0
- package/textarea-field/ng-package.json +6 -0
- package/textarea-field/public-api.ts +1 -0
- package/textarea-field/textarea-field.html +37 -0
- package/textarea-field/textarea-field.scss +0 -0
- package/textarea-field/textarea-field.spec.ts +21 -0
- package/textarea-field/textarea-field.ts +169 -0
- package/toast/ng-package.json +6 -0
- package/toast/public-api.ts +2 -0
- package/toast/toast.html +18 -0
- package/toast/toast.service.ts +67 -0
- package/toast/toast.ts +21 -0
- package/toggle-field/ng-package.json +6 -0
- package/toggle-field/public-api.ts +1 -0
- package/toggle-field/toggle-field.html +78 -0
- package/toggle-field/toggle-field.scss +24 -0
- package/toggle-field/toggle-field.ts +150 -0
- package/tooltip/ng-package.json +6 -0
- package/tooltip/public-api.ts +2 -0
- package/tooltip/tooltip.ts +30 -0
- package/tooltip/truncate-tooltip.ts +124 -0
- package/topbar/ng-package.json +6 -0
- package/topbar/public-api.ts +1 -0
- package/topbar/topbar.html +52 -0
- package/topbar/topbar.ts +27 -0
- package/tree/ng-package.json +6 -0
- package/tree/public-api.ts +2 -0
- package/tree/tree-types.ts +55 -0
- package/tree/tree.html +126 -0
- package/tree/tree.scss +1 -0
- package/tree/tree.ts +303 -0
- package/treeselect-field/ng-package.json +6 -0
- package/treeselect-field/public-api.ts +1 -0
- package/treeselect-field/treeselect-field.html +71 -0
- package/treeselect-field/treeselect-field.ts +348 -0
- package/tsconfig.check.json +20 -0
- package/tsconfig.json +16 -0
- package/tsconfig.spec.json +24 -0
- package/upload-field/ng-package.json +6 -0
- package/upload-field/public-api.ts +2 -0
- package/upload-field/secure-image.pipe.ts +258 -0
- package/upload-field/upload-field.html +274 -0
- package/upload-field/upload-field.scss +0 -0
- package/upload-field/upload-field.spec.ts +169 -0
- package/upload-field/upload-field.ts +764 -0
- package/upload-field/upload-file-preview/upload-file-preview.html +41 -0
- package/upload-field/upload-file-preview/upload-file-preview.scss +0 -0
- package/upload-field/upload-file-preview/upload-file-preview.ts +57 -0
- package/upload-field/upload-user-preview/upload-user-preview.css +0 -0
- package/upload-field/upload-user-preview/upload-user-preview.html +73 -0
- package/upload-field/upload-user-preview/upload-user-preview.ts +54 -0
- package/uploader/ng-package.json +6 -0
- package/uploader/public-api.ts +1 -0
- package/uploader/uploader.service.spec.ts +271 -0
- package/uploader/uploader.service.ts +733 -0
- package/user-search-field/ng-package.json +6 -0
- package/user-search-field/public-api.ts +1 -0
- package/user-search-field/user-search-field.html +88 -0
- package/user-search-field/user-search-field.scss +4 -0
- package/user-search-field/user-search-field.spec.ts +176 -0
- package/user-search-field/user-search-field.ts +483 -0
- package/fesm2022/masterteam-components-avatar-text.mjs +0 -46
- package/fesm2022/masterteam-components-avatar-text.mjs.map +0 -1
- package/fesm2022/masterteam-components-avatar.mjs +0 -50
- package/fesm2022/masterteam-components-avatar.mjs.map +0 -1
- package/fesm2022/masterteam-components-breadcrumb.mjs +0 -27
- package/fesm2022/masterteam-components-breadcrumb.mjs.map +0 -1
- package/fesm2022/masterteam-components-business-fields.mjs +0 -1902
- package/fesm2022/masterteam-components-business-fields.mjs.map +0 -1
- package/fesm2022/masterteam-components-button-group.mjs +0 -20
- package/fesm2022/masterteam-components-button-group.mjs.map +0 -1
- package/fesm2022/masterteam-components-button.mjs +0 -52
- package/fesm2022/masterteam-components-button.mjs.map +0 -1
- package/fesm2022/masterteam-components-card.mjs +0 -28
- package/fesm2022/masterteam-components-card.mjs.map +0 -1
- package/fesm2022/masterteam-components-checkbox-field.mjs +0 -88
- package/fesm2022/masterteam-components-checkbox-field.mjs.map +0 -1
- package/fesm2022/masterteam-components-chip.mjs +0 -39
- package/fesm2022/masterteam-components-chip.mjs.map +0 -1
- package/fesm2022/masterteam-components-client-page-menu.mjs +0 -152
- package/fesm2022/masterteam-components-client-page-menu.mjs.map +0 -1
- package/fesm2022/masterteam-components-client-page.mjs +0 -371
- package/fesm2022/masterteam-components-client-page.mjs.map +0 -1
- package/fesm2022/masterteam-components-color-picker-field.mjs +0 -102
- package/fesm2022/masterteam-components-color-picker-field.mjs.map +0 -1
- package/fesm2022/masterteam-components-confirmation.mjs +0 -98
- package/fesm2022/masterteam-components-confirmation.mjs.map +0 -1
- package/fesm2022/masterteam-components-date-field.mjs +0 -154
- package/fesm2022/masterteam-components-date-field.mjs.map +0 -1
- package/fesm2022/masterteam-components-dialog.mjs +0 -33
- package/fesm2022/masterteam-components-dialog.mjs.map +0 -1
- package/fesm2022/masterteam-components-drawer.mjs +0 -268
- package/fesm2022/masterteam-components-drawer.mjs.map +0 -1
- package/fesm2022/masterteam-components-dynamic-drawer.mjs +0 -608
- package/fesm2022/masterteam-components-dynamic-drawer.mjs.map +0 -1
- package/fesm2022/masterteam-components-editor-field.mjs +0 -99
- package/fesm2022/masterteam-components-editor-field.mjs.map +0 -1
- package/fesm2022/masterteam-components-entities.mjs +0 -2033
- package/fesm2022/masterteam-components-entities.mjs.map +0 -1
- package/fesm2022/masterteam-components-field-validation.mjs +0 -158
- package/fesm2022/masterteam-components-field-validation.mjs.map +0 -1
- package/fesm2022/masterteam-components-formula.mjs +0 -3848
- package/fesm2022/masterteam-components-formula.mjs.map +0 -1
- package/fesm2022/masterteam-components-icon-field.mjs +0 -161
- package/fesm2022/masterteam-components-icon-field.mjs.map +0 -1
- package/fesm2022/masterteam-components-list.mjs +0 -31
- package/fesm2022/masterteam-components-list.mjs.map +0 -1
- package/fesm2022/masterteam-components-location-field.mjs +0 -603
- package/fesm2022/masterteam-components-location-field.mjs.map +0 -1
- package/fesm2022/masterteam-components-menu.mjs +0 -135
- package/fesm2022/masterteam-components-menu.mjs.map +0 -1
- package/fesm2022/masterteam-components-modal.mjs +0 -108
- package/fesm2022/masterteam-components-modal.mjs.map +0 -1
- package/fesm2022/masterteam-components-module-summary-card.mjs +0 -34
- package/fesm2022/masterteam-components-module-summary-card.mjs.map +0 -1
- package/fesm2022/masterteam-components-multi-select-field.mjs +0 -317
- package/fesm2022/masterteam-components-multi-select-field.mjs.map +0 -1
- package/fesm2022/masterteam-components-number-field.mjs +0 -98
- package/fesm2022/masterteam-components-number-field.mjs.map +0 -1
- package/fesm2022/masterteam-components-page-header.mjs +0 -42
- package/fesm2022/masterteam-components-page-header.mjs.map +0 -1
- package/fesm2022/masterteam-components-page.mjs +0 -35
- package/fesm2022/masterteam-components-page.mjs.map +0 -1
- package/fesm2022/masterteam-components-paginator.mjs +0 -43
- package/fesm2022/masterteam-components-paginator.mjs.map +0 -1
- package/fesm2022/masterteam-components-pick-list-field.mjs +0 -206
- package/fesm2022/masterteam-components-pick-list-field.mjs.map +0 -1
- package/fesm2022/masterteam-components-progress.mjs +0 -63
- package/fesm2022/masterteam-components-progress.mjs.map +0 -1
- package/fesm2022/masterteam-components-property-filter-builder.mjs +0 -386
- package/fesm2022/masterteam-components-property-filter-builder.mjs.map +0 -1
- package/fesm2022/masterteam-components-radio-button-field.mjs +0 -85
- package/fesm2022/masterteam-components-radio-button-field.mjs.map +0 -1
- package/fesm2022/masterteam-components-radio-cards-field.mjs +0 -126
- package/fesm2022/masterteam-components-radio-cards-field.mjs.map +0 -1
- package/fesm2022/masterteam-components-radio-cards.mjs +0 -74
- package/fesm2022/masterteam-components-radio-cards.mjs.map +0 -1
- package/fesm2022/masterteam-components-runtime-action.mjs +0 -406
- package/fesm2022/masterteam-components-runtime-action.mjs.map +0 -1
- package/fesm2022/masterteam-components-select-field.mjs +0 -411
- package/fesm2022/masterteam-components-select-field.mjs.map +0 -1
- package/fesm2022/masterteam-components-sidebar.mjs +0 -155
- package/fesm2022/masterteam-components-sidebar.mjs.map +0 -1
- package/fesm2022/masterteam-components-slider-field.mjs +0 -128
- package/fesm2022/masterteam-components-slider-field.mjs.map +0 -1
- package/fesm2022/masterteam-components-statistic-card.mjs +0 -42
- package/fesm2022/masterteam-components-statistic-card.mjs.map +0 -1
- package/fesm2022/masterteam-components-table.mjs +0 -3197
- package/fesm2022/masterteam-components-table.mjs.map +0 -1
- package/fesm2022/masterteam-components-tabs.mjs +0 -289
- package/fesm2022/masterteam-components-tabs.mjs.map +0 -1
- package/fesm2022/masterteam-components-text-field.mjs +0 -198
- package/fesm2022/masterteam-components-text-field.mjs.map +0 -1
- package/fesm2022/masterteam-components-textarea-field.mjs +0 -122
- package/fesm2022/masterteam-components-textarea-field.mjs.map +0 -1
- package/fesm2022/masterteam-components-toast.mjs +0 -80
- package/fesm2022/masterteam-components-toast.mjs.map +0 -1
- package/fesm2022/masterteam-components-toggle-field.mjs +0 -116
- package/fesm2022/masterteam-components-toggle-field.mjs.map +0 -1
- package/fesm2022/masterteam-components-tooltip.mjs +0 -147
- package/fesm2022/masterteam-components-tooltip.mjs.map +0 -1
- package/fesm2022/masterteam-components-topbar.mjs +0 -32
- package/fesm2022/masterteam-components-topbar.mjs.map +0 -1
- package/fesm2022/masterteam-components-tree.mjs +0 -260
- package/fesm2022/masterteam-components-tree.mjs.map +0 -1
- package/fesm2022/masterteam-components-treeselect-field.mjs +0 -265
- package/fesm2022/masterteam-components-treeselect-field.mjs.map +0 -1
- package/fesm2022/masterteam-components-upload-field.mjs +0 -841
- package/fesm2022/masterteam-components-upload-field.mjs.map +0 -1
- package/fesm2022/masterteam-components-uploader.mjs +0 -425
- package/fesm2022/masterteam-components-uploader.mjs.map +0 -1
- package/fesm2022/masterteam-components-user-search-field.mjs +0 -370
- package/fesm2022/masterteam-components-user-search-field.mjs.map +0 -1
- package/fesm2022/masterteam-components.mjs +0 -2334
- package/fesm2022/masterteam-components.mjs.map +0 -1
- package/types/masterteam-components-avatar-text.d.ts +0 -23
- package/types/masterteam-components-avatar.d.ts +0 -23
- package/types/masterteam-components-breadcrumb.d.ts +0 -18
- package/types/masterteam-components-business-fields.d.ts +0 -671
- package/types/masterteam-components-button-group.d.ts +0 -8
- package/types/masterteam-components-button.d.ts +0 -36
- package/types/masterteam-components-card.d.ts +0 -14
- package/types/masterteam-components-checkbox-field.d.ts +0 -34
- package/types/masterteam-components-chip.d.ts +0 -21
- package/types/masterteam-components-client-page-menu.d.ts +0 -55
- package/types/masterteam-components-client-page.d.ts +0 -109
- package/types/masterteam-components-color-picker-field.d.ts +0 -35
- package/types/masterteam-components-confirmation.d.ts +0 -41
- package/types/masterteam-components-date-field.d.ts +0 -53
- package/types/masterteam-components-dialog.d.ts +0 -12
- package/types/masterteam-components-drawer.d.ts +0 -62
- package/types/masterteam-components-dynamic-drawer.d.ts +0 -159
- package/types/masterteam-components-editor-field.d.ts +0 -35
- package/types/masterteam-components-entities.d.ts +0 -1030
- package/types/masterteam-components-field-validation.d.ts +0 -23
- package/types/masterteam-components-formula.d.ts +0 -759
- package/types/masterteam-components-icon-field.d.ts +0 -40
- package/types/masterteam-components-list.d.ts +0 -18
- package/types/masterteam-components-location-field.d.ts +0 -169
- package/types/masterteam-components-menu.d.ts +0 -55
- package/types/masterteam-components-modal.d.ts +0 -30
- package/types/masterteam-components-module-summary-card.d.ts +0 -18
- package/types/masterteam-components-multi-select-field.d.ts +0 -100
- package/types/masterteam-components-number-field.d.ts +0 -43
- package/types/masterteam-components-page-header.d.ts +0 -30
- package/types/masterteam-components-page.d.ts +0 -26
- package/types/masterteam-components-paginator.d.ts +0 -20
- package/types/masterteam-components-pick-list-field.d.ts +0 -61
- package/types/masterteam-components-progress.d.ts +0 -30
- package/types/masterteam-components-property-filter-builder.d.ts +0 -90
- package/types/masterteam-components-radio-button-field.d.ts +0 -41
- package/types/masterteam-components-radio-cards-field.d.ts +0 -35
- package/types/masterteam-components-radio-cards.d.ts +0 -33
- package/types/masterteam-components-runtime-action.d.ts +0 -105
- package/types/masterteam-components-select-field.d.ts +0 -132
- package/types/masterteam-components-sidebar.d.ts +0 -71
- package/types/masterteam-components-slider-field.d.ts +0 -41
- package/types/masterteam-components-statistic-card.d.ts +0 -28
- package/types/masterteam-components-table.d.ts +0 -827
- package/types/masterteam-components-tabs.d.ts +0 -80
- package/types/masterteam-components-text-field.d.ts +0 -56
- package/types/masterteam-components-textarea-field.d.ts +0 -41
- package/types/masterteam-components-toast.d.ts +0 -27
- package/types/masterteam-components-toggle-field.d.ts +0 -44
- package/types/masterteam-components-tooltip.d.ts +0 -26
- package/types/masterteam-components-topbar.d.ts +0 -20
- package/types/masterteam-components-tree.d.ts +0 -106
- package/types/masterteam-components-treeselect-field.d.ts +0 -79
- package/types/masterteam-components-upload-field.d.ts +0 -108
- package/types/masterteam-components-uploader.d.ts +0 -53
- package/types/masterteam-components-user-search-field.d.ts +0 -106
- package/types/masterteam-components.d.ts +0 -1181
|
@@ -0,0 +1,852 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Flat Formula Token Model
|
|
3
|
+
*
|
|
4
|
+
* The formula is represented as a FLAT array of tokens.
|
|
5
|
+
* This approach provides:
|
|
6
|
+
* - Better performance (no deep component nesting)
|
|
7
|
+
* - Solid drag-drop behavior (functions move as complete units)
|
|
8
|
+
* - Simple serialization (just join token values)
|
|
9
|
+
*
|
|
10
|
+
* STRUCTURE RULES:
|
|
11
|
+
* - fn-open: "IF(" - function name + opening paren as ONE token
|
|
12
|
+
* - fn-close: ")" - closing paren, belongs to a function
|
|
13
|
+
* - fn-separator: "," - argument separator, belongs to a function
|
|
14
|
+
* - Dragging any structural token moves the ENTIRE function
|
|
15
|
+
* - Content tokens (property, operator, literal) can move individually
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
/** Token types */
|
|
19
|
+
export type TokenType =
|
|
20
|
+
| 'fn-open' // Function opening: "SUM(", "IF("
|
|
21
|
+
| 'fn-close' // Function closing: ")"
|
|
22
|
+
| 'fn-separator' // Argument separator: ","
|
|
23
|
+
| 'property' // Property reference: "@Status", "*.Cost"
|
|
24
|
+
| 'operator' // Operators: "+", "-", "==", etc.
|
|
25
|
+
| 'literal' // Literal values: "0", '"Active"'
|
|
26
|
+
| 'text'; // Raw identifier/text fragments such as named-argument labels
|
|
27
|
+
|
|
28
|
+
/** What happens when this token is dragged */
|
|
29
|
+
export type DragBehavior =
|
|
30
|
+
| 'function' // Drag entire function (start to matching end)
|
|
31
|
+
| 'single'; // Drag only this token
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Formula Token - a single element in the flat formula array
|
|
35
|
+
*/
|
|
36
|
+
export interface FormulaToken {
|
|
37
|
+
id: string;
|
|
38
|
+
type: TokenType;
|
|
39
|
+
value: string; // Display/serialize value
|
|
40
|
+
display?: string; // Optional display label (when different from value)
|
|
41
|
+
|
|
42
|
+
// Function context
|
|
43
|
+
functionId?: string; // Which function this token belongs to (for grouping)
|
|
44
|
+
depth: number; // Nesting level (0 = root level)
|
|
45
|
+
argIndex?: number; // Which argument slot (0, 1, 2...) - for content tokens
|
|
46
|
+
|
|
47
|
+
// Drag behavior
|
|
48
|
+
dragBehavior: DragBehavior;
|
|
49
|
+
|
|
50
|
+
// Metadata for specific types
|
|
51
|
+
functionName?: string; // For fn-open: the function name
|
|
52
|
+
propertyType?: 'current' | 'children' | 'parent'; // For property tokens
|
|
53
|
+
literalType?: 'string' | 'number' | 'boolean'; // For literal tokens
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Function structure info - tracks open/close pairs
|
|
58
|
+
*/
|
|
59
|
+
export interface FunctionInfo {
|
|
60
|
+
id: string;
|
|
61
|
+
name: string;
|
|
62
|
+
openIndex: number; // Index of fn-open token
|
|
63
|
+
closeIndex: number; // Index of fn-close token
|
|
64
|
+
argCount: number; // Number of arguments
|
|
65
|
+
depth: number; // Nesting depth
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// ============ UTILITY FUNCTIONS ============
|
|
69
|
+
|
|
70
|
+
/** Generate unique token ID */
|
|
71
|
+
export function generateTokenId(): string {
|
|
72
|
+
return `tok_${Date.now()}_${Math.random().toString(36).substring(2, 7)}`;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/** Generate unique function ID */
|
|
76
|
+
export function generateFunctionId(): string {
|
|
77
|
+
return `fn_${Date.now()}_${Math.random().toString(36).substring(2, 7)}`;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/** Parse function signature like "SUM(values)" or "IF(cond, a, b)" */
|
|
81
|
+
export function parseSignature(signature: string): {
|
|
82
|
+
name: string;
|
|
83
|
+
args: string[];
|
|
84
|
+
} {
|
|
85
|
+
const match = signature.match(/^(\w+)\((.*)\)$/);
|
|
86
|
+
if (!match) return { name: signature, args: [] };
|
|
87
|
+
|
|
88
|
+
const name = match[1];
|
|
89
|
+
const argsStr = match[2].trim();
|
|
90
|
+
if (!argsStr) return { name, args: [] };
|
|
91
|
+
|
|
92
|
+
const args: string[] = [];
|
|
93
|
+
let current = '';
|
|
94
|
+
let depth = 0;
|
|
95
|
+
|
|
96
|
+
for (const char of argsStr) {
|
|
97
|
+
if (char === '(') depth++;
|
|
98
|
+
else if (char === ')') depth--;
|
|
99
|
+
else if (char === ',' && depth === 0) {
|
|
100
|
+
args.push(current.trim());
|
|
101
|
+
current = '';
|
|
102
|
+
continue;
|
|
103
|
+
}
|
|
104
|
+
current += char;
|
|
105
|
+
}
|
|
106
|
+
if (current.trim()) args.push(current.trim());
|
|
107
|
+
|
|
108
|
+
return { name, args };
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Create a function's tokens from signature
|
|
113
|
+
* e.g., "IF(condition, trueVal, falseVal)" creates:
|
|
114
|
+
* - fn-open: "IF("
|
|
115
|
+
* - fn-separator: "," (x2)
|
|
116
|
+
* - fn-close: ")"
|
|
117
|
+
*/
|
|
118
|
+
export function createFunctionTokens(
|
|
119
|
+
signature: string,
|
|
120
|
+
depth: number = 0,
|
|
121
|
+
): FormulaToken[] {
|
|
122
|
+
const parsed = parseSignature(signature);
|
|
123
|
+
const functionId = generateFunctionId();
|
|
124
|
+
const tokens: FormulaToken[] = [];
|
|
125
|
+
|
|
126
|
+
// Opening token: "NAME("
|
|
127
|
+
tokens.push({
|
|
128
|
+
id: generateTokenId(),
|
|
129
|
+
type: 'fn-open',
|
|
130
|
+
value: `${parsed.name}(`,
|
|
131
|
+
functionId,
|
|
132
|
+
functionName: parsed.name,
|
|
133
|
+
depth,
|
|
134
|
+
dragBehavior: 'function',
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
// Separators for arguments (one less than arg count)
|
|
138
|
+
for (let i = 0; i < parsed.args.length - 1; i++) {
|
|
139
|
+
tokens.push({
|
|
140
|
+
id: generateTokenId(),
|
|
141
|
+
type: 'fn-separator',
|
|
142
|
+
value: ',',
|
|
143
|
+
functionId,
|
|
144
|
+
depth,
|
|
145
|
+
argIndex: i, // Separator AFTER this argument
|
|
146
|
+
dragBehavior: 'function',
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
// Closing token: ")"
|
|
151
|
+
tokens.push({
|
|
152
|
+
id: generateTokenId(),
|
|
153
|
+
type: 'fn-close',
|
|
154
|
+
value: ')',
|
|
155
|
+
functionId,
|
|
156
|
+
depth,
|
|
157
|
+
dragBehavior: 'function',
|
|
158
|
+
});
|
|
159
|
+
|
|
160
|
+
return tokens;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Create a property token
|
|
165
|
+
*/
|
|
166
|
+
export function createPropertyToken(
|
|
167
|
+
propertyKey: string,
|
|
168
|
+
propertyType: 'current' | 'children' | 'parent' = 'current',
|
|
169
|
+
depth: number = 0,
|
|
170
|
+
functionId?: string,
|
|
171
|
+
argIndex?: number,
|
|
172
|
+
display?: string,
|
|
173
|
+
): FormulaToken {
|
|
174
|
+
const usesFullPath = propertyKey.startsWith('@');
|
|
175
|
+
const prefix =
|
|
176
|
+
propertyType === 'current'
|
|
177
|
+
? '@'
|
|
178
|
+
: propertyType === 'children'
|
|
179
|
+
? '*.'
|
|
180
|
+
: '$.';
|
|
181
|
+
return {
|
|
182
|
+
id: generateTokenId(),
|
|
183
|
+
type: 'property',
|
|
184
|
+
value: usesFullPath ? propertyKey : `${prefix}${propertyKey}`,
|
|
185
|
+
display,
|
|
186
|
+
propertyType,
|
|
187
|
+
depth,
|
|
188
|
+
functionId,
|
|
189
|
+
argIndex,
|
|
190
|
+
dragBehavior: 'single',
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* Create an operator token
|
|
196
|
+
*/
|
|
197
|
+
export function createOperatorToken(
|
|
198
|
+
symbol: string,
|
|
199
|
+
depth: number = 0,
|
|
200
|
+
functionId?: string,
|
|
201
|
+
argIndex?: number,
|
|
202
|
+
): FormulaToken {
|
|
203
|
+
return {
|
|
204
|
+
id: generateTokenId(),
|
|
205
|
+
type: 'operator',
|
|
206
|
+
value: symbol,
|
|
207
|
+
depth,
|
|
208
|
+
functionId,
|
|
209
|
+
argIndex,
|
|
210
|
+
dragBehavior: 'single',
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Create a literal token
|
|
216
|
+
*/
|
|
217
|
+
export function createLiteralToken(
|
|
218
|
+
value: string | number | boolean,
|
|
219
|
+
depth: number = 0,
|
|
220
|
+
functionId?: string,
|
|
221
|
+
argIndex?: number,
|
|
222
|
+
display?: string,
|
|
223
|
+
): FormulaToken {
|
|
224
|
+
let displayValue = String(value);
|
|
225
|
+
let literalType: 'string' | 'number' | 'boolean' = 'string';
|
|
226
|
+
|
|
227
|
+
if (typeof value === 'number') {
|
|
228
|
+
literalType = 'number';
|
|
229
|
+
} else if (typeof value === 'boolean') {
|
|
230
|
+
literalType = 'boolean';
|
|
231
|
+
} else if (typeof value === 'string' && !value.startsWith('"')) {
|
|
232
|
+
displayValue = `"${value}"`;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
return {
|
|
236
|
+
id: generateTokenId(),
|
|
237
|
+
type: 'literal',
|
|
238
|
+
value: displayValue,
|
|
239
|
+
// Friendly label rendered on the chip while `value` stays the executable
|
|
240
|
+
// (serialized) form — e.g. a lookup value shows "Completed" but serializes
|
|
241
|
+
// as "completed". Cosmetic only; serialization never reads `display`.
|
|
242
|
+
display: display?.trim() ? display : undefined,
|
|
243
|
+
literalType,
|
|
244
|
+
depth,
|
|
245
|
+
functionId,
|
|
246
|
+
argIndex,
|
|
247
|
+
dragBehavior: 'single',
|
|
248
|
+
};
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* Create a raw text token for identifiers or syntax fragments that are not
|
|
253
|
+
* properties, literals, or operators.
|
|
254
|
+
*/
|
|
255
|
+
export function createTextToken(
|
|
256
|
+
value: string,
|
|
257
|
+
depth: number = 0,
|
|
258
|
+
functionId?: string,
|
|
259
|
+
argIndex?: number,
|
|
260
|
+
): FormulaToken {
|
|
261
|
+
return {
|
|
262
|
+
id: generateTokenId(),
|
|
263
|
+
type: 'text',
|
|
264
|
+
value,
|
|
265
|
+
depth,
|
|
266
|
+
functionId,
|
|
267
|
+
argIndex,
|
|
268
|
+
dragBehavior: 'single',
|
|
269
|
+
};
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
// ============ TOKEN ARRAY OPERATIONS ============
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Find the complete range of a function in the token array
|
|
276
|
+
* This includes ALL tokens between fn-open and fn-close (including nested content)
|
|
277
|
+
* Returns [startIndex, endIndex] inclusive
|
|
278
|
+
*/
|
|
279
|
+
export function findFunctionRange(
|
|
280
|
+
tokens: FormulaToken[],
|
|
281
|
+
functionId: string,
|
|
282
|
+
): [number, number] | null {
|
|
283
|
+
// Find the fn-open token with this functionId
|
|
284
|
+
const openIndex = tokens.findIndex(
|
|
285
|
+
(t) => t.functionId === functionId && t.type === 'fn-open',
|
|
286
|
+
);
|
|
287
|
+
if (openIndex === -1) return null;
|
|
288
|
+
|
|
289
|
+
// Now find the matching fn-close by counting depth
|
|
290
|
+
// Start from fn-open and find matching close paren
|
|
291
|
+
let depth = 1;
|
|
292
|
+
for (let i = openIndex + 1; i < tokens.length; i++) {
|
|
293
|
+
const token = tokens[i];
|
|
294
|
+
if (token.type === 'fn-open') {
|
|
295
|
+
depth++;
|
|
296
|
+
} else if (token.type === 'fn-close') {
|
|
297
|
+
depth--;
|
|
298
|
+
if (depth === 0) {
|
|
299
|
+
// Found the matching close
|
|
300
|
+
return [openIndex, i];
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
// Fallback: find fn-close with same functionId
|
|
306
|
+
const closeIndex = tokens.findIndex(
|
|
307
|
+
(t) => t.functionId === functionId && t.type === 'fn-close',
|
|
308
|
+
);
|
|
309
|
+
if (closeIndex === -1) return null;
|
|
310
|
+
|
|
311
|
+
return [openIndex, closeIndex];
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* Get all tokens belonging to a function (including nested content)
|
|
316
|
+
*/
|
|
317
|
+
export function getFunctionTokens(
|
|
318
|
+
tokens: FormulaToken[],
|
|
319
|
+
functionId: string,
|
|
320
|
+
): FormulaToken[] {
|
|
321
|
+
const range = findFunctionRange(tokens, functionId);
|
|
322
|
+
if (!range) return [];
|
|
323
|
+
return tokens.slice(range[0], range[1] + 1);
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* Validate if a drop position is allowed
|
|
328
|
+
*/
|
|
329
|
+
export function isValidDropPosition(
|
|
330
|
+
tokens: FormulaToken[],
|
|
331
|
+
dropIndex: number,
|
|
332
|
+
draggedTokens: FormulaToken[],
|
|
333
|
+
): boolean {
|
|
334
|
+
// Can always drop at start or end
|
|
335
|
+
if (dropIndex === 0 || dropIndex === tokens.length) return true;
|
|
336
|
+
|
|
337
|
+
const _prevToken = tokens[dropIndex - 1];
|
|
338
|
+
const _nextToken = tokens[dropIndex];
|
|
339
|
+
|
|
340
|
+
// If dragging a function, check if it would create invalid nesting
|
|
341
|
+
const isDraggingFunction = draggedTokens.some(
|
|
342
|
+
(t) => t.type === 'fn-open' || t.type === 'fn-close',
|
|
343
|
+
);
|
|
344
|
+
|
|
345
|
+
if (isDraggingFunction) {
|
|
346
|
+
// Don't allow dropping a function that would break structure
|
|
347
|
+
// For now, allow all - we can refine later
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
return true;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* Serialize tokens to the canonical, executable formula string.
|
|
355
|
+
* Uses each token's `value` (e.g. `@Current::startdate`) — never `display` —
|
|
356
|
+
* so the produced expression is stable and engine/back-end compatible.
|
|
357
|
+
*/
|
|
358
|
+
export function serializeTokens(tokens: FormulaToken[]): string {
|
|
359
|
+
const parts: string[] = [];
|
|
360
|
+
let lastType: TokenType | null = null;
|
|
361
|
+
let lastValue = '';
|
|
362
|
+
|
|
363
|
+
for (const token of tokens) {
|
|
364
|
+
if (shouldInsertSpace(lastType, lastValue, token)) {
|
|
365
|
+
parts.push(' ');
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
parts.push(token.value);
|
|
369
|
+
lastType = token.type;
|
|
370
|
+
lastValue = token.value;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
return parts.join('');
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* Serialize tokens to a human-readable preview string using each token's
|
|
378
|
+
* `display` label (the friendly property name) when present, falling back to
|
|
379
|
+
* its `value`. Spacing is computed from the canonical `value`/`type` so that a
|
|
380
|
+
* friendly name containing spaces (e.g. "Start Date") does not corrupt
|
|
381
|
+
* function/paren/separator spacing. This output is for display/preview ONLY
|
|
382
|
+
* (e.g. `formulaText`) — never feed it to the validator or persist it as the
|
|
383
|
+
* executable expression.
|
|
384
|
+
*/
|
|
385
|
+
export function serializeTokensForDisplay(tokens: FormulaToken[]): string {
|
|
386
|
+
const parts: string[] = [];
|
|
387
|
+
let lastType: TokenType | null = null;
|
|
388
|
+
let lastValue = '';
|
|
389
|
+
|
|
390
|
+
for (const token of tokens) {
|
|
391
|
+
if (shouldInsertSpace(lastType, lastValue, token)) {
|
|
392
|
+
parts.push(' ');
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
parts.push(token.display ?? token.value);
|
|
396
|
+
lastType = token.type;
|
|
397
|
+
lastValue = token.value;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
return parts.join('');
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
export function shouldInsertSpace(
|
|
404
|
+
previousType: TokenType | null,
|
|
405
|
+
previousValue: string,
|
|
406
|
+
current: FormulaToken,
|
|
407
|
+
): boolean {
|
|
408
|
+
if (!previousType) return false;
|
|
409
|
+
|
|
410
|
+
if (previousType === 'fn-open') return false;
|
|
411
|
+
if (current.type === 'fn-close') return false;
|
|
412
|
+
if (current.type === 'fn-separator') return false;
|
|
413
|
+
if (previousType === 'fn-separator') return true;
|
|
414
|
+
|
|
415
|
+
if (current.value === ':') return false;
|
|
416
|
+
if (previousValue === ':') return true;
|
|
417
|
+
|
|
418
|
+
return true;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
/**
|
|
422
|
+
* Clone a token with new ID
|
|
423
|
+
*/
|
|
424
|
+
export function cloneToken(token: FormulaToken): FormulaToken {
|
|
425
|
+
return {
|
|
426
|
+
...token,
|
|
427
|
+
id: generateTokenId(),
|
|
428
|
+
};
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
/**
|
|
432
|
+
* Clone multiple tokens with new IDs and new function IDs
|
|
433
|
+
*/
|
|
434
|
+
export function cloneTokens(tokens: FormulaToken[]): FormulaToken[] {
|
|
435
|
+
// Map old function IDs to new ones
|
|
436
|
+
const functionIdMap = new Map<string, string>();
|
|
437
|
+
|
|
438
|
+
return tokens.map((token) => {
|
|
439
|
+
const newToken = cloneToken(token);
|
|
440
|
+
|
|
441
|
+
// Remap function IDs
|
|
442
|
+
if (token.functionId) {
|
|
443
|
+
if (!functionIdMap.has(token.functionId)) {
|
|
444
|
+
functionIdMap.set(token.functionId, generateFunctionId());
|
|
445
|
+
}
|
|
446
|
+
newToken.functionId = functionIdMap.get(token.functionId);
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
return newToken;
|
|
450
|
+
});
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
/**
|
|
454
|
+
* Update depth for all tokens (after move)
|
|
455
|
+
*/
|
|
456
|
+
export function recalculateDepths(tokens: FormulaToken[]): FormulaToken[] {
|
|
457
|
+
let currentDepth = 0;
|
|
458
|
+
const result: FormulaToken[] = [];
|
|
459
|
+
|
|
460
|
+
for (const token of tokens) {
|
|
461
|
+
if (token.type === 'fn-open') {
|
|
462
|
+
result.push({ ...token, depth: currentDepth });
|
|
463
|
+
currentDepth++;
|
|
464
|
+
} else if (token.type === 'fn-close') {
|
|
465
|
+
currentDepth--;
|
|
466
|
+
result.push({ ...token, depth: currentDepth });
|
|
467
|
+
} else {
|
|
468
|
+
result.push({ ...token, depth: currentDepth });
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
return result;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
type ParsedTokenContext = {
|
|
476
|
+
depth: number;
|
|
477
|
+
functionId?: string;
|
|
478
|
+
argIndex?: number;
|
|
479
|
+
};
|
|
480
|
+
|
|
481
|
+
/**
|
|
482
|
+
* Convert a backend template or insertText into builder tokens while
|
|
483
|
+
* preserving the authored syntax as closely as the flat token model allows.
|
|
484
|
+
*/
|
|
485
|
+
export function tokenizeFormulaTemplate(template: string): FormulaToken[] {
|
|
486
|
+
const source = template.trim();
|
|
487
|
+
if (!source) return [];
|
|
488
|
+
|
|
489
|
+
let index = 0;
|
|
490
|
+
|
|
491
|
+
const parseExpression = (context: ParsedTokenContext): FormulaToken[] => {
|
|
492
|
+
const tokens: FormulaToken[] = [];
|
|
493
|
+
|
|
494
|
+
while (index < source.length) {
|
|
495
|
+
skipWhitespace();
|
|
496
|
+
|
|
497
|
+
if (index >= source.length) break;
|
|
498
|
+
|
|
499
|
+
const char = source[index];
|
|
500
|
+
|
|
501
|
+
if (char === ',' || char === ')') {
|
|
502
|
+
break;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
if (char === '@') {
|
|
506
|
+
const propertyPath = readPropertyPath();
|
|
507
|
+
tokens.push(
|
|
508
|
+
createPropertyToken(
|
|
509
|
+
propertyPath,
|
|
510
|
+
'current',
|
|
511
|
+
context.depth,
|
|
512
|
+
context.functionId,
|
|
513
|
+
context.argIndex,
|
|
514
|
+
resolvePropertyDisplay(propertyPath),
|
|
515
|
+
),
|
|
516
|
+
);
|
|
517
|
+
continue;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
if (char === '"' || char === "'") {
|
|
521
|
+
tokens.push(
|
|
522
|
+
createLiteralToken(
|
|
523
|
+
readQuotedString(),
|
|
524
|
+
context.depth,
|
|
525
|
+
context.functionId,
|
|
526
|
+
context.argIndex,
|
|
527
|
+
),
|
|
528
|
+
);
|
|
529
|
+
continue;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
if (isDigit(char)) {
|
|
533
|
+
tokens.push(
|
|
534
|
+
createLiteralToken(
|
|
535
|
+
Number(readNumber()),
|
|
536
|
+
context.depth,
|
|
537
|
+
context.functionId,
|
|
538
|
+
context.argIndex,
|
|
539
|
+
),
|
|
540
|
+
);
|
|
541
|
+
continue;
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
if (
|
|
545
|
+
char === '-' &&
|
|
546
|
+
isDigit(source[index + 1] ?? '') &&
|
|
547
|
+
shouldReadNegativeNumber(tokens)
|
|
548
|
+
) {
|
|
549
|
+
tokens.push(
|
|
550
|
+
createLiteralToken(
|
|
551
|
+
Number(readNumber()),
|
|
552
|
+
context.depth,
|
|
553
|
+
context.functionId,
|
|
554
|
+
context.argIndex,
|
|
555
|
+
),
|
|
556
|
+
);
|
|
557
|
+
continue;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
if (isIdentifierStart(char)) {
|
|
561
|
+
const identifier = readIdentifier();
|
|
562
|
+
skipWhitespace();
|
|
563
|
+
|
|
564
|
+
if (source[index] === '(') {
|
|
565
|
+
tokens.push(...parseFunction(identifier, context.depth));
|
|
566
|
+
continue;
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
if (identifier === 'true' || identifier === 'false') {
|
|
570
|
+
tokens.push(
|
|
571
|
+
createLiteralToken(
|
|
572
|
+
identifier === 'true',
|
|
573
|
+
context.depth,
|
|
574
|
+
context.functionId,
|
|
575
|
+
context.argIndex,
|
|
576
|
+
),
|
|
577
|
+
);
|
|
578
|
+
continue;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
if (identifier === 'null') {
|
|
582
|
+
tokens.push(
|
|
583
|
+
createTextToken(
|
|
584
|
+
identifier,
|
|
585
|
+
context.depth,
|
|
586
|
+
context.functionId,
|
|
587
|
+
context.argIndex,
|
|
588
|
+
),
|
|
589
|
+
);
|
|
590
|
+
continue;
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
tokens.push(
|
|
594
|
+
createTextToken(
|
|
595
|
+
identifier,
|
|
596
|
+
context.depth,
|
|
597
|
+
context.functionId,
|
|
598
|
+
context.argIndex,
|
|
599
|
+
),
|
|
600
|
+
);
|
|
601
|
+
continue;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
const operator = readOperator();
|
|
605
|
+
if (operator) {
|
|
606
|
+
tokens.push(
|
|
607
|
+
createOperatorToken(
|
|
608
|
+
operator,
|
|
609
|
+
context.depth,
|
|
610
|
+
context.functionId,
|
|
611
|
+
context.argIndex,
|
|
612
|
+
),
|
|
613
|
+
);
|
|
614
|
+
continue;
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
tokens.push(
|
|
618
|
+
createTextToken(
|
|
619
|
+
char,
|
|
620
|
+
context.depth,
|
|
621
|
+
context.functionId,
|
|
622
|
+
context.argIndex,
|
|
623
|
+
),
|
|
624
|
+
);
|
|
625
|
+
index += 1;
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
return tokens;
|
|
629
|
+
};
|
|
630
|
+
|
|
631
|
+
const parseFunction = (name: string, depth: number): FormulaToken[] => {
|
|
632
|
+
const functionId = generateFunctionId();
|
|
633
|
+
const tokens: FormulaToken[] = [
|
|
634
|
+
{
|
|
635
|
+
id: generateTokenId(),
|
|
636
|
+
type: 'fn-open',
|
|
637
|
+
value: `${name}(`,
|
|
638
|
+
functionId,
|
|
639
|
+
functionName: name,
|
|
640
|
+
depth,
|
|
641
|
+
dragBehavior: 'function',
|
|
642
|
+
},
|
|
643
|
+
];
|
|
644
|
+
|
|
645
|
+
index += 1; // consume '('
|
|
646
|
+
|
|
647
|
+
let argIndex = 0;
|
|
648
|
+
while (index < source.length) {
|
|
649
|
+
skipWhitespace();
|
|
650
|
+
|
|
651
|
+
if (source[index] === ')') {
|
|
652
|
+
index += 1;
|
|
653
|
+
break;
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
tokens.push(
|
|
657
|
+
...parseExpression({
|
|
658
|
+
depth: depth + 1,
|
|
659
|
+
functionId,
|
|
660
|
+
argIndex,
|
|
661
|
+
}),
|
|
662
|
+
);
|
|
663
|
+
|
|
664
|
+
skipWhitespace();
|
|
665
|
+
if (source[index] === ',') {
|
|
666
|
+
tokens.push({
|
|
667
|
+
id: generateTokenId(),
|
|
668
|
+
type: 'fn-separator',
|
|
669
|
+
value: ',',
|
|
670
|
+
functionId,
|
|
671
|
+
depth,
|
|
672
|
+
argIndex,
|
|
673
|
+
dragBehavior: 'function',
|
|
674
|
+
});
|
|
675
|
+
argIndex += 1;
|
|
676
|
+
index += 1;
|
|
677
|
+
continue;
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
if (source[index] === ')') {
|
|
681
|
+
index += 1;
|
|
682
|
+
break;
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
tokens.push({
|
|
687
|
+
id: generateTokenId(),
|
|
688
|
+
type: 'fn-close',
|
|
689
|
+
value: ')',
|
|
690
|
+
functionId,
|
|
691
|
+
depth,
|
|
692
|
+
dragBehavior: 'function',
|
|
693
|
+
});
|
|
694
|
+
|
|
695
|
+
return tokens;
|
|
696
|
+
};
|
|
697
|
+
|
|
698
|
+
const skipWhitespace = (): void => {
|
|
699
|
+
while (index < source.length && /\s/.test(source[index])) {
|
|
700
|
+
index += 1;
|
|
701
|
+
}
|
|
702
|
+
};
|
|
703
|
+
|
|
704
|
+
const readQuotedString = (): string => {
|
|
705
|
+
const quote = source[index];
|
|
706
|
+
let value = quote;
|
|
707
|
+
index += 1;
|
|
708
|
+
|
|
709
|
+
while (index < source.length) {
|
|
710
|
+
const char = source[index];
|
|
711
|
+
value += char;
|
|
712
|
+
index += 1;
|
|
713
|
+
|
|
714
|
+
if (char === '\\' && index < source.length) {
|
|
715
|
+
value += source[index];
|
|
716
|
+
index += 1;
|
|
717
|
+
continue;
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
if (char === quote) {
|
|
721
|
+
break;
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
return value;
|
|
726
|
+
};
|
|
727
|
+
|
|
728
|
+
const readNumber = (): string => {
|
|
729
|
+
const start = index;
|
|
730
|
+
if (source[index] === '-') {
|
|
731
|
+
index += 1;
|
|
732
|
+
}
|
|
733
|
+
while (index < source.length && /[0-9.]/.test(source[index])) {
|
|
734
|
+
index += 1;
|
|
735
|
+
}
|
|
736
|
+
return source.slice(start, index);
|
|
737
|
+
};
|
|
738
|
+
|
|
739
|
+
const readIdentifier = (): string => {
|
|
740
|
+
const start = index;
|
|
741
|
+
index += 1;
|
|
742
|
+
while (index < source.length && /[\w.]/.test(source[index])) {
|
|
743
|
+
index += 1;
|
|
744
|
+
}
|
|
745
|
+
return source.slice(start, index);
|
|
746
|
+
};
|
|
747
|
+
|
|
748
|
+
const readPropertyPath = (): string => {
|
|
749
|
+
const start = index;
|
|
750
|
+
index += 1;
|
|
751
|
+
|
|
752
|
+
while (index < source.length) {
|
|
753
|
+
const char = source[index];
|
|
754
|
+
const next = source[index + 1] ?? '';
|
|
755
|
+
|
|
756
|
+
if (/\s/.test(char) || char === ',' || char === ')' || char === '(') {
|
|
757
|
+
break;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
if (char === ':' && next === ':') {
|
|
761
|
+
index += 2;
|
|
762
|
+
continue;
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
if (/[+\-*/%<>=!&|?:]/.test(char)) {
|
|
766
|
+
break;
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
index += 1;
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
return source.slice(start, index);
|
|
773
|
+
};
|
|
774
|
+
|
|
775
|
+
const readOperator = (): string | null => {
|
|
776
|
+
const operators = [
|
|
777
|
+
'==',
|
|
778
|
+
'!=',
|
|
779
|
+
'>=',
|
|
780
|
+
'<=',
|
|
781
|
+
'&&',
|
|
782
|
+
'||',
|
|
783
|
+
':',
|
|
784
|
+
'+',
|
|
785
|
+
'-',
|
|
786
|
+
'*',
|
|
787
|
+
'/',
|
|
788
|
+
'%',
|
|
789
|
+
'>',
|
|
790
|
+
'<',
|
|
791
|
+
'!',
|
|
792
|
+
'?',
|
|
793
|
+
];
|
|
794
|
+
for (const operator of operators) {
|
|
795
|
+
if (source.startsWith(operator, index)) {
|
|
796
|
+
index += operator.length;
|
|
797
|
+
return operator;
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
return null;
|
|
801
|
+
};
|
|
802
|
+
|
|
803
|
+
return recalculateDepths(parseExpression({ depth: 0 }));
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
function isDigit(value: string): boolean {
|
|
807
|
+
return /[0-9]/.test(value);
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
function isIdentifierStart(value: string): boolean {
|
|
811
|
+
return /[A-Za-z_]/.test(value);
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
function resolvePropertyDisplay(propertyPath: string): string | undefined {
|
|
815
|
+
const scopedSeparatorIndex = propertyPath.lastIndexOf('::');
|
|
816
|
+
if (scopedSeparatorIndex < 0) {
|
|
817
|
+
return undefined;
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
const propertyKey = propertyPath.slice(scopedSeparatorIndex + 2).trim();
|
|
821
|
+
return propertyKey || undefined;
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
function shouldReadNegativeNumber(tokens: FormulaToken[]): boolean {
|
|
825
|
+
const previous = tokens[tokens.length - 1];
|
|
826
|
+
if (!previous) return true;
|
|
827
|
+
return previous.type === 'operator' || previous.type === 'fn-open';
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
/**
|
|
831
|
+
* Find which argument index a position belongs to within a function
|
|
832
|
+
*/
|
|
833
|
+
export function getArgumentIndexAtPosition(
|
|
834
|
+
tokens: FormulaToken[],
|
|
835
|
+
functionId: string,
|
|
836
|
+
position: number,
|
|
837
|
+
): number {
|
|
838
|
+
const range = findFunctionRange(tokens, functionId);
|
|
839
|
+
if (!range) return 0;
|
|
840
|
+
|
|
841
|
+
let argIndex = 0;
|
|
842
|
+
for (let i = range[0] + 1; i < position && i <= range[1]; i++) {
|
|
843
|
+
if (
|
|
844
|
+
tokens[i].type === 'fn-separator' &&
|
|
845
|
+
tokens[i].functionId === functionId
|
|
846
|
+
) {
|
|
847
|
+
argIndex++;
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
return argIndex;
|
|
852
|
+
}
|