@alfresco/aca-shared 7.3.0-20920584655 → 7.3.0-20950287046

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.
@@ -3505,6 +3505,44 @@ const noWhitespaceValidator = () => {
3505
3505
  };
3506
3506
  };
3507
3507
 
3508
+ /*!
3509
+ * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
3510
+ *
3511
+ * Alfresco Example Content Application
3512
+ *
3513
+ * This file is part of the Alfresco Example Content Application.
3514
+ * If the software was purchased under a paid Alfresco license, the terms of
3515
+ * the paid license agreement will prevail. Otherwise, the software is
3516
+ * provided under the following open source license terms:
3517
+ *
3518
+ * The Alfresco Example Content Application is free software: you can redistribute it and/or modify
3519
+ * it under the terms of the GNU Lesser General Public License as published by
3520
+ * the Free Software Foundation, either version 3 of the License, or
3521
+ * (at your option) any later version.
3522
+ *
3523
+ * The Alfresco Example Content Application is distributed in the hope that it will be useful,
3524
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
3525
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3526
+ * GNU Lesser General Public License for more details.
3527
+ *
3528
+ * You should have received a copy of the GNU Lesser General Public License
3529
+ * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
3530
+ */
3531
+ const isOperator = (word) => {
3532
+ const operators = ['AND', 'OR'];
3533
+ return operators.includes(word.trim());
3534
+ };
3535
+ const noLeadingTrailingOperatorsValidator = () => {
3536
+ return (control) => {
3537
+ const rawValue = control.value;
3538
+ if (!rawValue) {
3539
+ return null;
3540
+ }
3541
+ const words = rawValue.trim().split(/\s+/);
3542
+ return isOperator(words[0]) || isOperator(words[words.length - 1]) ? { operators: true } : null;
3543
+ };
3544
+ };
3545
+
3508
3546
  /*!
3509
3547
  * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
3510
3548
  *
@@ -3533,5 +3571,5 @@ const noWhitespaceValidator = () => {
3533
3571
  * Generated bundle index. Do not edit.
3534
3572
  */
3535
3573
 
3536
- export { AppExtensionService, AppHookService, AppService, AppSettingsService, AppSharedRuleGuard, AutoDownloadService, ContentApiService, ContextActionsDirective, DefaultExtensionLoaderFactory, DefaultMimeTypes, DocumentBasePageService, DocumentBasePageServiceMock, EXTENSION_DATA_LOADERS, ExtensionsDataLoaderGuard, GenericErrorComponent, InfoDrawerComponent, LibTestingModule, LockedByComponent, NavigationHistoryService, NodePermissionService, OpenInAppComponent, PageComponent, PageLayoutComponent, PageLayoutContentComponent, PageLayoutErrorComponent, PageLayoutHeaderComponent, PageLayoutModule, PaginationDirective, PluginEnabledGuard, RouterExtensionService, ToolbarActionComponent, ToolbarButtonComponent, ToolbarButtonType, ToolbarComponent, ToolbarMenuComponent, ToolbarMenuItemComponent, UserProfileService, discoveryApiServiceMockValue, initialState, isLibrary, isLocked, noWhitespaceValidator, provideContentAppExtensions, resetInvoked };
3574
+ export { AppExtensionService, AppHookService, AppService, AppSettingsService, AppSharedRuleGuard, AutoDownloadService, ContentApiService, ContextActionsDirective, DefaultExtensionLoaderFactory, DefaultMimeTypes, DocumentBasePageService, DocumentBasePageServiceMock, EXTENSION_DATA_LOADERS, ExtensionsDataLoaderGuard, GenericErrorComponent, InfoDrawerComponent, LibTestingModule, LockedByComponent, NavigationHistoryService, NodePermissionService, OpenInAppComponent, PageComponent, PageLayoutComponent, PageLayoutContentComponent, PageLayoutErrorComponent, PageLayoutHeaderComponent, PageLayoutModule, PaginationDirective, PluginEnabledGuard, RouterExtensionService, ToolbarActionComponent, ToolbarButtonComponent, ToolbarButtonType, ToolbarComponent, ToolbarMenuComponent, ToolbarMenuItemComponent, UserProfileService, discoveryApiServiceMockValue, initialState, isLibrary, isLocked, noLeadingTrailingOperatorsValidator, noWhitespaceValidator, provideContentAppExtensions, resetInvoked };
3537
3575
  //# sourceMappingURL=alfresco-aca-shared.mjs.map