angular-ui-controls 0.0.0-stage → 0.1.0-rc.2

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Abhilash A S
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,75 @@
1
- # Temporary Holding Version
1
+ # Angular UI Controls
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Reusable Angular 20 controls with `ui-` selectors, Angular Forms support, and local input utilities.
4
+
5
+ **Release candidate — not yet published.** Package: `angular-ui-controls`. This build includes compatibility bindings and regression tests. It is not a claim of complete production certification.
6
+
7
+ The source demo includes all 23 main controls.
8
+
9
+ ## Install the packaged library
10
+
11
+ From the source workspace, run `npm ci` and `npm run pack:library` to generate the tarball in the workspace root. Then install it from your Angular 20 application:
12
+
13
+ ```bash
14
+ npm install /path/to/angular-ui-controls-0.1.0-rc.2.tgz
15
+ ```
16
+
17
+ After publication, use `npm install angular-ui-controls@next` for the candidate. The package declares its Angular Material, translation, date, selection, mentions, and editor peer dependencies. Configure a Material theme, animations and translations in the host application. Built-in icons are bundled. Consumer-supplied menu/option SVG icons require host registration. The controls include their layout, spacing and alignment styles. Bootstrap is optional.
18
+
19
+ ```ts
20
+ import { FormsModule } from '@angular/forms';
21
+ import { TextInputComponent } from 'angular-ui-controls/forms';
22
+ // Add both to your standalone component's imports.
23
+ ```
24
+
25
+ ```html
26
+ <ui-text-input inputId="first-name" label="First name" [(ngModel)]="firstName" />
27
+ ```
28
+
29
+ Reactive Forms bindings are also supported. For use outside Angular Forms, prefer `[(value)]`. Do not bind `ngModel`, `formControl` and `value` simultaneously on one control.
30
+
31
+ ## Naming and compatibility
32
+
33
+ - `value` / `valueChange` are the canonical raw-value bindings. Existing Angular inputs and outputs retain their names. The deprecated `inputModelValue` accessors forward direct component-instance reads and writes.
34
+ - Prefer `ui-radio-group` / `RadioGroupComponent`; `ui-radio-button` / `RadioButtonComponent` remain compatible.
35
+ - Prefer `SegmentOption` and `LanguageService`; existing exports remain available.
36
+ - Textarea focus state is `isFocused`; counters use `characterCount`, `remainingCharacters` and `shouldShowRemainingCharacters`.
37
+ - `maxLength` takes precedence over the legacy character-limit input `wordsLimit`.
38
+ - Programmatic writes no longer emit user-change notifications or mark controls touched. Focus leaving the control marks it touched.
39
+ - Number-input user edits now emit `number | null`. Password entry preserves leading spaces.
40
+ - Date controls use the Moment date adapter; existing adapter-dependent values are preserved. Search-filter values retain `{searchVal, selectVal}` for compatibility.
41
+
42
+ ## Choosing an import
43
+
44
+ Use `angular-ui-controls/forms` for `TextInputComponent` and `SearchableSelectComponent`. The forms entry point does not import the date adapters or CKEditor. The root entry point continues to export all 23 controls. npm installs the full package's required peers in both cases.
45
+
46
+ ## PDF viewer
47
+
48
+ Pass a PDF URL from a source your application trusts. The viewer accepts HTTPS, HTTP, same-origin or other relative URLs resolved against the host application's base URL, and blob URLs created by the host. It embeds the URL in an iframe without a sandbox and does not verify the response type or content. Validate any URLs supplied by users or external data before passing them to the viewer. If your application creates a blob URL, revoke it when the preview is no longer needed.
49
+
50
+ ## Rich-text editor
51
+
52
+ Import `RichTextEditorComponent` from the root entry point and include `ckeditor5/ckeditor5.css` in your application's global styles. Bind an HTML string using Angular Forms or `[(value)]`. The demo's **Save draft** button stores that HTML in browser storage and restores it on reload. A production application supplies its own persistence.
53
+
54
+ ```html
55
+ <ui-rich-text-editor inputId="notes" [(ngModel)]="notesHtml" [licenseKey]="editorLicenseKey" />
56
+ ```
57
+
58
+ The demo uses the CKEditor license setting `GPL`. Configure your host's CKEditor license key for your deployment. Check the CKEditor license terms separately from the library's MIT license. If loading fails, subscribe to `editorLoadFailed` for the original error. Multiple installed copies of CKEditor core can cause `ckeditor-duplicated-modules`. The workspace lockfile resolves one copy.
59
+
60
+ ## Select API
61
+
62
+ | Purpose | Preferred API | Compatibility |
63
+ | ----------------------------------- | ------------------------------------------------ | ----------------------------------------------------------------- |
64
+ | Raw form value | `[(ngModel)]`, reactive forms, or `[(value)]` | Existing event-specific payloads remain available. |
65
+ | Group advanced options | `[grouped]`, `groupLabelKey`, `groupChildrenKey` | `isGroupingEnabled` forwards to the same setting. |
66
+ | Show the search toggle-all checkbox | `showToggleAllCheckbox` | `showSearchCheckbox` also enables it. |
67
+ | Include a selectable “All” item | `enableAllOption` on advanced select | This controls the list item independently of the search checkbox. |
68
+ | Select event metadata | `value`, `fieldName` | `modelValue`, `textFieldName` carry the same event values. |
69
+ | Panel state | `panelOpenChange.isOpen` | `selectionChange` on the panel event also carries the boolean. |
70
+
71
+ For grouped data choose `labelKey` and `valueKey` for the children. Use `displayFields` and `layoutMode` for option presentation, `hiddenKey` for filtering, and `serverSideSearch` with `searchTextChange` when the host provides filtered options.
72
+
73
+ ## Browser checks
74
+
75
+ Run `npm test`, `npx playwright-core install chromium`, and `npm run test:browser`. Set `UI_BROWSER_EXECUTABLE` to use an existing browser executable. Run `npm run verify:consumer -- --browser` for a strict npm install, a lightweight production build and browser tests against the installed package. The browser suite exercises desktop and mobile viewports, keyboard actions, accessibility checks, virtual scrolling, and saving formatted editor content. Physical screen-reader testing is a separate manual check.
@@ -0,0 +1,2 @@
1
+ export { Alignment, BlockQuote, Bold, DecoupledEditor, Essentials, Font, Heading, Image, ImageCaption, ImageResize, ImageStyle, ImageToolbar, ImageUpload, Indent, IndentBlock, Italic, Link, List, ListProperties, Paragraph, Strikethrough, Table, TableToolbar, Underline } from 'ckeditor5';
2
+ //# sourceMappingURL=angular-ui-controls-editor-build-Cm2HSXEy.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"angular-ui-controls-editor-build-Cm2HSXEy.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}