@liuk123/insui 0.0.1-alpha.1 → 0.0.1-alpha.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/README.md CHANGED
@@ -1,63 +1,101 @@
1
- # Insui
1
+ # InsuiProject
2
2
 
3
- This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 20.3.0.
3
+ insui的安装过程
4
4
 
5
- ## Code scaffolding
5
+ ## Install
6
6
 
7
- Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
7
+ ### 安装插件
8
8
 
9
- ```bash
10
- ng generate component component-name
11
- ```
12
-
13
- For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:
9
+ 安装 `@liuk123/insui` 和 `@liuk123/insui-icons` 插件。
14
10
 
15
- ```bash
16
- ng generate --help
11
+ ```
12
+ npm install @liuk123/insui @liuk123/insui-icons
17
13
  ```
18
14
 
19
- ## Building
15
+ ### 引入样式
20
16
 
21
- To build the library, run:
17
+ 在项目的 `angular.json` 文件中引入 `ins-ui-global.less` 样式文件。
22
18
 
23
- ```bash
24
- ng build insui
25
19
  ```
26
20
 
27
- This command will compile your project, and the build artifacts will be placed in the `dist/` directory.
28
-
29
- ### Publishing the Library
30
-
31
- Once the project is built, you can publish your library by following these steps:
21
+ {
22
+ "projects": {
23
+ "my-project": {
24
+ "architect": {
25
+ "build": {
26
+ "options": {
27
+ "styles": [
28
+ "node_modules/@liuk123/insui/styles/ins-ui-global.less"
29
+ ]
30
+ }
31
+ }
32
+ }
33
+ }
34
+ }
35
+ }
36
+ ```
32
37
 
33
- 1. Navigate to the `dist` directory:
34
- ```bash
35
- cd dist/insui
36
- ```
38
+ ### 引入依赖注入项
37
39
 
38
- 2. Run the `npm publish` command to publish your library to the npm registry:
39
- ```bash
40
- npm publish
41
- ```
40
+ 在项目的`src/app/app.config.ts`文件中引入 `NG_EVENT_PLUGINS` 依赖注入项。
42
41
 
43
- ## Running unit tests
42
+ ```
43
+ export const appConfig: ApplicationConfig = {
44
+ providers: [
45
+ provideBrowserGlobalErrorListeners(),
46
+ provideZoneChangeDetection({ eventCoalescing: true }),
47
+ provideRouter(routes), provideClientHydration(withEventReplay()),
48
+ ...
49
+ NG_EVENT_PLUGINS <!-- 引入事件插件 -->
50
+ ]
51
+ };
52
+ ```
53
+ ### 引入root组件和主题
44
54
 
45
- To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command:
55
+ `app.component.ts` 文件中引入 `InsRoot` 组件和主题服务。
56
+ 主题目前支持 `light` 和 `dark` 两种主题。
46
57
 
47
- ```bash
48
- ng test
58
+ ```
59
+ @Component({
60
+ selector: 'app-root',
61
+ imports: [RouterOutlet, InsRoot], <!-- 引入InsRoot组件 -->
62
+ template: `<ins-root ><router-outlet /></ins-root>`, <!-- 在最外层使用InsRoot组件 -->
63
+ host: {
64
+ '[attr.insTheme]': 'theme()', <!-- 绑定主题属性 light dark -->
65
+ },
66
+ providers: []
67
+ })
68
+ export class AppComponent {
69
+ settingSrv = inject(SettingService)
70
+ theme = toSignal(
71
+ this.settingSrv.theme$.pipe(
72
+ map(v=>v=='sys'?this.settingSrv.getSystemTheme(): v)
73
+ )
74
+ )
75
+ }
49
76
  ```
50
77
 
51
- ## Running end-to-end tests
78
+ ### 设置ICONS
52
79
 
53
- For end-to-end (e2e) testing, run:
80
+ `angular.json` 文件中配置 `assets` 选项,将 `@liuk123/insui-icons` 插件的图标文件复制到项目的 `assets/ins-ui/icons` 目录下。
54
81
 
55
- ```bash
56
- ng e2e
57
82
  ```
83
+ {
84
+ "projects": {
85
+ "my-project": {
86
+ "architect": {
87
+ "build": {
88
+ // ...
89
+ "assets": [
90
+ {
91
+ "glob": "**/*",
92
+ "input": "node_modules/@liuk123/insui-icons/src",
93
+ "output": "assets/icons"
94
+ }
95
+ ]
96
+ }
97
+ }
98
+ }
99
+ }
100
+ }
58
101
 
59
- Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
60
-
61
- ## Additional Resources
62
-
63
- For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
@@ -1,9 +1,9 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Directive, contentChild, TemplateRef, signal, Input, ChangeDetectionStrategy, Component, InjectionToken, inject, DestroyRef, EnvironmentInjector, createComponent, ViewEncapsulation, ElementRef, afterNextRender, model, computed, Injector, ChangeDetectorRef, ViewContainerRef, INJECTOR, reflectComponentType, NgZone, RendererFactory2, DOCUMENT, Injectable, EventEmitter, Output, PLATFORM_ID, HostListener, input, viewChild, QueryList, output, effect, Optional, Self, SkipSelf, ContentChild, contentChildren, forwardRef, Pipe, untracked, ViewChild, ViewChildren } from '@angular/core';
2
+ import { Directive, contentChild, TemplateRef, signal, Input, ChangeDetectionStrategy, Component, InjectionToken, inject, DestroyRef, EnvironmentInjector, createComponent, ViewEncapsulation, ElementRef, afterNextRender, model, computed, Injector, ChangeDetectorRef, ViewContainerRef, INJECTOR, reflectComponentType, NgZone, RendererFactory2, DOCUMENT, Injectable, EventEmitter, Output, PLATFORM_ID, HostListener, input, viewChild, QueryList, output, untracked, effect, Optional, Self, SkipSelf, ContentChild, contentChildren, forwardRef, Pipe, ViewChild, ViewChildren } from '@angular/core';
3
3
  import { NgTemplateOutlet, isPlatformBrowser, DOCUMENT as DOCUMENT$1, isPlatformServer } from '@angular/common';
4
4
  import * as i2 from '@angular/forms';
5
- import { NG_VALIDATORS, FormArray, FormGroup, NgControl, RadioControlValueAccessor, NgModel, FormControl, ReactiveFormsModule, NG_VALUE_ACCESSOR, Validators } from '@angular/forms';
6
- import { Observable, pipe, asyncScheduler, Subject, startWith, switchMap, timer, map, share, identity, merge, fromEvent, throttleTime, distinctUntilChanged, EMPTY, pairwise, filter, tap, scan, takeUntil, of, shareReplay, ignoreElements, endWith, finalize, repeat, withLatestFrom, take, skip, BehaviorSubject, takeWhile, delay, combineLatest, isObservable, exhaustMap, debounceTime, combineLatestWith, mergeMap, catchError } from 'rxjs';
5
+ import { NG_VALIDATORS, FormArray, FormGroup, NgControl, NgModel, RadioControlValueAccessor, FormControl, ReactiveFormsModule, NG_VALUE_ACCESSOR, Validators } from '@angular/forms';
6
+ import { Observable, pipe, asyncScheduler, Subject, startWith, switchMap, timer, map, share, identity, merge, fromEvent, throttleTime, distinctUntilChanged, EMPTY, pairwise, filter, tap, scan, takeUntil, of, shareReplay, ignoreElements, endWith, finalize, delay, repeat, withLatestFrom, take, skip, BehaviorSubject, takeWhile, combineLatest, isObservable, exhaustMap, debounceTime, combineLatestWith, mergeMap, catchError } from 'rxjs';
7
7
  import { takeUntilDestroyed, toSignal, outputFromObservable, toObservable as toObservable$1 } from '@angular/core/rxjs-interop';
8
8
  import { Router, ActivationStart, RouterLinkActive } from '@angular/router';
9
9
  import { EventManagerPlugin, EVENT_MANAGER_PLUGINS } from '@angular/platform-browser';
@@ -2214,6 +2214,112 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
2214
2214
  type: Injectable
2215
2215
  }], ctorParameters: () => [{ type: undefined }] });
2216
2216
 
2217
+ class InsValueTransformer {
2218
+ }
2219
+ function insValueTransformerFrom(token) {
2220
+ return {
2221
+ provide: InsValueTransformer,
2222
+ useFactory: () => inject(token).valueTransformer,
2223
+ };
2224
+ }
2225
+ class InsNonNullableValueTransformer extends InsValueTransformer {
2226
+ prevValue;
2227
+ fromControlValue(value) {
2228
+ this.prevValue = value;
2229
+ return value;
2230
+ }
2231
+ toControlValue(value) {
2232
+ this.prevValue = value ?? this.prevValue;
2233
+ return this.prevValue;
2234
+ }
2235
+ }
2236
+ const INS_IDENTITY_VALUE_TRANSFORMER = {
2237
+ fromControlValue: identity,
2238
+ toControlValue: identity,
2239
+ };
2240
+
2241
+ const INS_FALLBACK_VALUE = new InjectionToken('', {
2242
+ factory: () => null,
2243
+ });
2244
+ function insFallbackValueProvider(useValue) {
2245
+ return {
2246
+ provide: INS_FALLBACK_VALUE,
2247
+ useValue,
2248
+ };
2249
+ }
2250
+
2251
+ const FLAGS = { self: true, optional: true };
2252
+ /**
2253
+ * Basic ControlValueAccessor class to build form components upon
2254
+ */
2255
+ class InsControl {
2256
+ fallback = inject(INS_FALLBACK_VALUE, FLAGS);
2257
+ refresh$ = new Subject();
2258
+ internal = signal(this.fallback, ...(ngDevMode ? [{ debugName: "internal" }] : []));
2259
+ control = inject(NgControl, { self: true });
2260
+ cdr = inject(ChangeDetectorRef);
2261
+ transformer = inject(InsValueTransformer, FLAGS) ?? INS_IDENTITY_VALUE_TRANSFORMER;
2262
+ value = computed(() => this.internal() ?? this.fallback, ...(ngDevMode ? [{ debugName: "value" }] : []));
2263
+ readOnly = input(false, ...(ngDevMode ? [{ debugName: "readOnly" }] : []));
2264
+ pseudoInvalid = input(null, ...(ngDevMode ? [{ debugName: "pseudoInvalid", alias: 'invalid' }] : [{ alias: 'invalid' }]));
2265
+ touched = signal(false, ...(ngDevMode ? [{ debugName: "touched" }] : []));
2266
+ status = signal(undefined, ...(ngDevMode ? [{ debugName: "status" }] : []));
2267
+ disabled = computed(() => this.status() === 'DISABLED', ...(ngDevMode ? [{ debugName: "disabled" }] : []));
2268
+ interactive = computed(() => !this.disabled() && !this.readOnly(), ...(ngDevMode ? [{ debugName: "interactive" }] : []));
2269
+ invalid = computed(() => this.pseudoInvalid() !== null
2270
+ ? !!this.pseudoInvalid() && this.interactive()
2271
+ : this.interactive() && this.touched() && this.status() === 'INVALID', ...(ngDevMode ? [{ debugName: "invalid" }] : []));
2272
+ mode = computed(() => this.readOnly() ? 'readonly' : this.invalid() ? 'invalid' : 'valid', ...(ngDevMode ? [{ debugName: "mode" }] : []));
2273
+ onTouched = EMPTY_FUNCTION;
2274
+ onChange = EMPTY_FUNCTION;
2275
+ constructor() {
2276
+ this.control.valueAccessor = this;
2277
+ this.refresh$
2278
+ .pipe(delay(0), startWith(null), map(() => this.control.control), filter(Boolean), distinctUntilChanged(), switchMap((c) => merge(c.valueChanges, c.statusChanges, c.events || EMPTY).pipe(startWith(null))), takeUntilDestroyed())
2279
+ .subscribe(() => this.update());
2280
+ }
2281
+ registerOnChange(onChange) {
2282
+ this.refresh$.next();
2283
+ this.onChange = (value) => {
2284
+ const internal = untracked(() => this.internal());
2285
+ if (value === internal) {
2286
+ return;
2287
+ }
2288
+ onChange(this.transformer.toControlValue(value));
2289
+ this.internal.set(value);
2290
+ this.update();
2291
+ };
2292
+ }
2293
+ registerOnTouched(onTouched) {
2294
+ this.onTouched = () => {
2295
+ onTouched();
2296
+ this.update();
2297
+ };
2298
+ }
2299
+ setDisabledState() {
2300
+ this.update();
2301
+ }
2302
+ writeValue(value) {
2303
+ // TODO: https://github.com/angular/angular/issues/14988
2304
+ const safe = this.control instanceof NgModel ? this.control.model : value;
2305
+ this.internal.set(this.transformer.fromControlValue(safe));
2306
+ this.update();
2307
+ }
2308
+ update() {
2309
+ this.status.set(this.control.control?.status);
2310
+ this.touched.set(!!this.control.control?.touched);
2311
+ this.cdr.markForCheck();
2312
+ }
2313
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InsControl, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2314
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.16", type: InsControl, isStandalone: true, inputs: { readOnly: { classPropertyName: "readOnly", publicName: "readOnly", isSignal: true, isRequired: false, transformFunction: null }, pseudoInvalid: { classPropertyName: "pseudoInvalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
2315
+ }
2316
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InsControl, decorators: [{
2317
+ type: Directive
2318
+ }], ctorParameters: () => [], propDecorators: { readOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readOnly", required: false }] }], pseudoInvalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }] } });
2319
+ function insAsControl(control) {
2320
+ return insProvide(InsControl, control);
2321
+ }
2322
+
2217
2323
  // Checks if focusout event should be considered leaving active zone
2218
2324
  function isValidFocusout(target, removedElement = null) {
2219
2325
  return (
@@ -2632,7 +2738,6 @@ class InsDropdownComponent {
2632
2738
  win = inject(WINDOW);
2633
2739
  accessor = inject(InsRectAccessor);
2634
2740
  directive = inject(InsDropdownDirective);
2635
- // protected readonly openRef = inject(InsDropdownOpen, {optional: true})
2636
2741
  options = inject(INS_DROPDOWN_OPTIONS);
2637
2742
  styles$ = inject(InsPositionService)
2638
2743
  .pipe(takeWhile(() => this.directive.el.isConnected &&
@@ -2972,6 +3077,72 @@ function commonIconsProvider(icons) {
2972
3077
  const IS_IOS = createTokenFromFactory(() => false);
2973
3078
  // export const IS_APPLE = createTokenFromFactory(() => false);
2974
3079
 
3080
+ const INS_CHINESE_LANGUAGE_ADDON_EDITOR = {
3081
+ colorSelectorModeNames: ['纯色', '渐变色'],
3082
+ toolbarTools: {
3083
+ undo: '撤消',
3084
+ redo: '重做',
3085
+ font: '字体',
3086
+ fontStyle: '字体样式',
3087
+ fontSize: '字体大小',
3088
+ bold: '加粗',
3089
+ italic: '斜体',
3090
+ underline: '下划线',
3091
+ strikeThrough: '删除线',
3092
+ justify: '对齐',
3093
+ justifyLeft: '左对齐',
3094
+ justifyCenter: '中心对齐',
3095
+ justifyRight: '右对齐',
3096
+ justifyFull: '两端对齐',
3097
+ list: '列表',
3098
+ indent: '缩进',
3099
+ outdent: '减小缩进',
3100
+ unorderedList: '无序列表',
3101
+ orderedList: '有序列表',
3102
+ quote: '引用',
3103
+ foreColor: '颜色',
3104
+ backColor: '背景颜色',
3105
+ hiliteColor: '高亮颜色',
3106
+ clear: '清除',
3107
+ link: '链接',
3108
+ attach: '附加文件',
3109
+ tex: '插入 TeX',
3110
+ code: '代码',
3111
+ image: '插入图片',
3112
+ insertHorizontalRule: '插入水平线',
3113
+ superscript: '上标',
3114
+ subscript: '下标',
3115
+ insertTable: '插入表格',
3116
+ insertGroup: 'Insert group',
3117
+ hiliteGroup: 'Hilite group',
3118
+ removeGroup: 'Remove group',
3119
+ insertAnchor: 'Insert anchor',
3120
+ mergeCells: '合并单元格',
3121
+ splitCells: '拆分单元格',
3122
+ rowsColumnsManaging: '管理行和列',
3123
+ cellColor: '单元格颜色',
3124
+ setDetails: '详细信息',
3125
+ removeDetails: '删除详细信息',
3126
+ },
3127
+ editorEditLink: {
3128
+ urlExample: 'example.com',
3129
+ anchorExample: 'anchor',
3130
+ },
3131
+ editorTableCommands: [
3132
+ ['在前面插入列', '在后面插入列'],
3133
+ ['在前面插入行', '在后面插入行'],
3134
+ ['删除列', '删除行'],
3135
+ ],
3136
+ editorCodeOptions: ['文中代码', '代码块'],
3137
+ editorFontOptions: {
3138
+ small: '小的',
3139
+ large: '大的',
3140
+ normal: '普通的',
3141
+ title: '标题',
3142
+ subtitle: '副标题',
3143
+ },
3144
+ };
3145
+
2975
3146
  const INS_CHINESE_LANGUAGE_CORE = {
2976
3147
  months: [
2977
3148
  '一月',
@@ -3013,7 +3184,8 @@ const INS_CHINESE_LANGUAGE_CORE = {
3013
3184
 
3014
3185
  const INS_CHINESE_LANGUAGE = {
3015
3186
  name: 'chinese',
3016
- ...INS_CHINESE_LANGUAGE_CORE
3187
+ ...INS_CHINESE_LANGUAGE_CORE,
3188
+ ...INS_CHINESE_LANGUAGE_ADDON_EDITOR,
3017
3189
  };
3018
3190
 
3019
3191
  const INS_DEFAULT_LANGUAGE = new InjectionToken('[TUI_DEFAULT_LANGUAGE]', {
@@ -4803,112 +4975,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
4803
4975
  }]
4804
4976
  }] });
4805
4977
 
4806
- class InsValueTransformer {
4807
- }
4808
- function insValueTransformerFrom(token) {
4809
- return {
4810
- provide: InsValueTransformer,
4811
- useFactory: () => inject(token).valueTransformer,
4812
- };
4813
- }
4814
- class InsNonNullableValueTransformer extends InsValueTransformer {
4815
- prevValue;
4816
- fromControlValue(value) {
4817
- this.prevValue = value;
4818
- return value;
4819
- }
4820
- toControlValue(value) {
4821
- this.prevValue = value ?? this.prevValue;
4822
- return this.prevValue;
4823
- }
4824
- }
4825
- const INS_IDENTITY_VALUE_TRANSFORMER = {
4826
- fromControlValue: identity,
4827
- toControlValue: identity,
4828
- };
4829
-
4830
- const INS_FALLBACK_VALUE = new InjectionToken('', {
4831
- factory: () => null,
4832
- });
4833
- function insFallbackValueProvider(useValue) {
4834
- return {
4835
- provide: INS_FALLBACK_VALUE,
4836
- useValue,
4837
- };
4838
- }
4839
-
4840
- const FLAGS = { self: true, optional: true };
4841
- /**
4842
- * Basic ControlValueAccessor class to build form components upon
4843
- */
4844
- class InsControl {
4845
- fallback = inject(INS_FALLBACK_VALUE, FLAGS);
4846
- refresh$ = new Subject();
4847
- internal = signal(this.fallback, ...(ngDevMode ? [{ debugName: "internal" }] : []));
4848
- control = inject(NgControl, { self: true });
4849
- cdr = inject(ChangeDetectorRef);
4850
- transformer = inject(InsValueTransformer, FLAGS) ?? INS_IDENTITY_VALUE_TRANSFORMER;
4851
- value = computed(() => this.internal() ?? this.fallback, ...(ngDevMode ? [{ debugName: "value" }] : []));
4852
- readOnly = input(false, ...(ngDevMode ? [{ debugName: "readOnly" }] : []));
4853
- pseudoInvalid = input(null, ...(ngDevMode ? [{ debugName: "pseudoInvalid", alias: 'invalid' }] : [{ alias: 'invalid' }]));
4854
- touched = signal(false, ...(ngDevMode ? [{ debugName: "touched" }] : []));
4855
- status = signal(undefined, ...(ngDevMode ? [{ debugName: "status" }] : []));
4856
- disabled = computed(() => this.status() === 'DISABLED', ...(ngDevMode ? [{ debugName: "disabled" }] : []));
4857
- interactive = computed(() => !this.disabled() && !this.readOnly(), ...(ngDevMode ? [{ debugName: "interactive" }] : []));
4858
- invalid = computed(() => this.pseudoInvalid() !== null
4859
- ? !!this.pseudoInvalid() && this.interactive()
4860
- : this.interactive() && this.touched() && this.status() === 'INVALID', ...(ngDevMode ? [{ debugName: "invalid" }] : []));
4861
- mode = computed(() => this.readOnly() ? 'readonly' : this.invalid() ? 'invalid' : 'valid', ...(ngDevMode ? [{ debugName: "mode" }] : []));
4862
- onTouched = EMPTY_FUNCTION;
4863
- onChange = EMPTY_FUNCTION;
4864
- constructor() {
4865
- this.control.valueAccessor = this;
4866
- this.refresh$
4867
- .pipe(delay(0), startWith(null), map(() => this.control.control), filter(Boolean), distinctUntilChanged(), switchMap((c) => merge(c.valueChanges, c.statusChanges, c.events || EMPTY).pipe(startWith(null))), takeUntilDestroyed())
4868
- .subscribe(() => this.update());
4869
- }
4870
- registerOnChange(onChange) {
4871
- this.refresh$.next();
4872
- this.onChange = (value) => {
4873
- const internal = untracked(() => this.internal());
4874
- if (value === internal) {
4875
- return;
4876
- }
4877
- onChange(this.transformer.toControlValue(value));
4878
- this.internal.set(value);
4879
- this.update();
4880
- };
4881
- }
4882
- registerOnTouched(onTouched) {
4883
- this.onTouched = () => {
4884
- onTouched();
4885
- this.update();
4886
- };
4887
- }
4888
- setDisabledState() {
4889
- this.update();
4890
- }
4891
- writeValue(value) {
4892
- // TODO: https://github.com/angular/angular/issues/14988
4893
- const safe = this.control instanceof NgModel ? this.control.model : value;
4894
- this.internal.set(this.transformer.fromControlValue(safe));
4895
- this.update();
4896
- }
4897
- update() {
4898
- this.status.set(this.control.control?.status);
4899
- this.touched.set(!!this.control.control?.touched);
4900
- this.cdr.markForCheck();
4901
- }
4902
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InsControl, deps: [], target: i0.ɵɵFactoryTarget.Directive });
4903
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.16", type: InsControl, isStandalone: true, inputs: { readOnly: { classPropertyName: "readOnly", publicName: "readOnly", isSignal: true, isRequired: false, transformFunction: null }, pseudoInvalid: { classPropertyName: "pseudoInvalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
4904
- }
4905
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InsControl, decorators: [{
4906
- type: Directive
4907
- }], ctorParameters: () => [], propDecorators: { readOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readOnly", required: false }] }], pseudoInvalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }] } });
4908
- function insAsControl(control) {
4909
- return insProvide(InsControl, control);
4910
- }
4911
-
4912
4978
  class TextfieldOptionItem {
4913
4979
  data;
4914
4980
  constructor(data) {
@@ -6837,5 +6903,5 @@ const InsTableControl = [
6837
6903
  * Generated bundle index. Do not edit.
6838
6904
  */
6839
6905
 
6840
- export { ANIMATION_FRAME, EMPTY_ARRAY, EMPTY_CLIENT_RECT, EMPTY_FUNCTION, EMPTY_QUERY, FieldErrorPipe, INS_ACTIVE_ELEMENT, INS_ALERT_CONCURRENCY, INS_ALERT_DEFAULT_OPTIONS, INS_ALERT_OPTIONS, INS_APPEARANCE_DEFAULT_OPTIONS, INS_APPEARANCE_OPTIONS, INS_ASSETS_PATH, INS_AVATAR_DEFAULT_OPTIONS, INS_AVATAR_OPTIONS, INS_BUTTON_DEFAULT_OPTIONS, INS_BUTTON_OPTIONS, INS_CHECKBOX_DEFAULT_OPTIONS, INS_CHECKBOX_OPTIONS, INS_CHEVRON, INS_CHINESE_LANGUAGE, INS_CHIP_DEFAULT_OPTIONS, INS_CHIP_OPTIONS, INS_CLEAR_WORD, INS_CLOSE_WORD, INS_COMMON_ICONS, INS_DATA_LIST_ACCESSOR, INS_DATA_LIST_HOST, INS_DEFAULT_ERROR_MESSAGE, INS_DEFAULT_LANGUAGE, INS_DEFAULT_TREE_CONTROLLER, INS_DIALOG_DEFAULT_OPTIONS, INS_DIALOG_OPTIONS, INS_DROPDOWN_COMPONENT, INS_DROPDOWN_CONTEXT, INS_DROPDOWN_DEFAULT_OPTIONS, INS_DROPDOWN_HOVER_DEFAULT_OPTIONS, INS_DROPDOWN_HOVER_OPTIONS, INS_DROPDOWN_OPTIONS, INS_ENTER, INS_FORM_DEFAULT_OPTIONS, INS_FORM_OPTIONS, INS_GROUP_DEFAULT_OPTIONS, INS_GROUP_OPTIONS, INS_ICON_END, INS_ICON_START, INS_ICON_STARTS, INS_INPUT_TAG_DEFAULT_OPTIONS, INS_INPUT_TAG_OPTIONS, INS_LABEL_DEFAULT_OPTIONS, INS_LABEL_OPTIONS, INS_LANGUAGE, INS_LEAVE, INS_LINK_DEFAULT_OPTIONS, INS_LINK_OPTIONS, INS_LOADER_DEFAULT_OPTIONS, INS_LOADER_OPTIONS, INS_MEDIA, INS_MORE_WORD, INS_NOTHING_FOUND_MESSAGE, INS_NOTIFICATION_DEFAULT_OPTIONS, INS_NOTIFICATION_OPTIONS, INS_PAGINATION_TEXTS, INS_RADIO_DEFAULT_OPTIONS, INS_RADIO_OPTIONS, INS_REMOVED_ELEMENT, INS_SELECTION_STREAM, INS_SPIN_ICONS, INS_SWIPE_OPTIONS, INS_TABLE_DEFAULT_OPTIONS, INS_TABLE_OPTIONS, INS_TABS_DEFAULT_OPTIONS, INS_TABS_OPTIONS, INS_TAB_ACTIVATE, INS_TEXTAREA_DEFAULT_OPTIONS, INS_TEXTAREA_OPTIONS, INS_TEXTFIELD_ACCESSOR, INS_TEXTFIELD_DEFAULT_OPTIONS, INS_TEXTFIELD_OPTIONS, INS_TREE_ACCESSOR, INS_TREE_CONTROLLER, INS_TREE_LEVEL, INS_TREE_LOADER, INS_TREE_LOADING, INS_TREE_NODE, INS_TREE_START, INS_VALIDATION_ERRORS, INS_VIEWPORT, INS_ZOOM_OPTIONS, IS_IOS, InsAccessor, InsAccordion, InsAccordionComponent, InsAccordionDirective, InsActiveZone, InsAlert, InsAlertComponent, InsAlertService, InsAnimated, InsAppearance, InsAvatar, InsBreakpointService, InsButton, InsButtonLoading, InsCardLarge, InsCell, InsCheckbox, InsCheckboxRowDirective, InsCheckboxTableDirective, InsChevron, InsChip, InsCopyProcessor, InsDataList, InsDataListComponent, InsDialog, InsDialogComponent, InsDialogService, InsDriver, InsDriverDirective, InsDropdown, InsDropdownComponent, InsDropdownContent, InsDropdownDirective, InsDropdownDriver, InsDropdownDriverDirective, InsDropdownHover, InsDropdownOpen, InsDropdownOptionsDirective, InsDropdownPosition, InsDropdownPositionSided, InsDropdownSelection, InsError, InsExpand, InsFade, InsFocusTrap, InsForm, InsGroup, InsHeader, InsIcon, InsIcons, InsIdService, InsInputTagComponent, InsItem, InsLabel, InsLink, InsLoader, InsMapperPipe, InsModalComponent, InsModalService, InsNativeValidator, InsNoHostException, InsNotification, InsNotificationDirective, InsNotificationService, InsObscured, InsObscuredService, InsOptGroup, InsOption, InsPagination, InsPopup, InsPopupService, InsPopups, InsPortal, InsPortalDirective, InsPortalService, InsPortals, InsPositionAccessor, InsPositionService, InsPresent, InsRadio, InsRadioComponent, InsRadioDirective, InsRectAccessor, InsResize, InsRoot, InsSelectComponent, InsStuck, InsSwipe, InsSwipeService, InsTab, InsTable, InsTableCell, InsTableControl, InsTableControlDirective, InsTableDirective, InsTableExpand, InsTableHead, InsTableResized, InsTableTbody, InsTableTd, InsTableTh, InsTableThGroup, InsTableThead, InsTableTr, InsTabs, InsTabsDirective, InsTabsHorizontal, InsTabsStyles, InsTabsVertical, InsTabsWithMore, InsTextFieldController, InsTextFieldDataDirective, InsTextFieldSingleDataDirective, InsTextarea, InsTextareaCounterComponent, InsTextareaLimit, InsTextareaLimitComponent, InsTextfield, InsTextfieldComponent, InsTextfieldDirective, InsTextfieldDropdownDirective, InsTitle, InsTransitioned, InsTree, InsTreeChildren, InsTreeControllerDirective, InsTreeItem, InsTreeItemController, InsTreeService, InsValidationError, InsVehicle, InsWithAppearance, InsWithDropdownOpen, InsWithIcons, InsWithTextfieldDropdown, InsZoom, InsZoomService, LOCAL_STORAGE, MUTATION_OBSERVER_INIT, MutationObserver$1 as MutationObserver, MutationObserverService, NG_EVENT_PLUGINS, OptionsEventPlugin, POLYMORPHEUS_CONTEXT, PolymorpheusComponent, PolymorpheusContext, PolymorpheusOutlet, PolymorpheusTemplate, PreventEventPlugin, REDUCED_MOTION, RESIZE_OPTION_BOX, RESIZE_OPTION_BOX_DEFAULT, ResizeObserver$1 as ResizeObserver, ResizeObserverService, SafeObserver$2 as SafeObserver, SelfEventPlugin, SilentEventPlugin, StopEventPlugin, TextfieldOptionItem, WINDOW, commonIconsProvider, containsOrAfter, createToken, createTokenFromFactory, getActualTarget, getClosestFocusable, getDocumentOrShadowRoot, getNativeFocused, getViewportHeight, getViewportWidth, injectElement, insAlertOptionsProvider, insAppearanceOptionsProvider, insArrayRemove, insArrayToggle, insAsDataListAccessor, insAsDataListHost, insAsDriver, insAsPortal, insAsPositionAccessor, insAsRectAccessor, insAsVehicle, insAsViewport, insAssetsPathProvider, insAvatarOptionsProvider, insBlurNativeFocused, insButtonOptionsProvider, insCheckFixedPosition, insCheckboxOptionsProvider, insChipOptionsProvider, insClamp, insDropdownHoverOptionsProvider, insDropdownOptionsProvider, insExtractI18n, insFocusedIn, insFormOptionsProvider, insGetElementObscures, insGetSelectedText, insGetSemanticWordRange, insGetWordRange, insGroupOptionsProvider, insIconsProvider, insIfMap, insInjectIconResolver, insInjectId, insInputTagOptionsProvider, insIsElementEditable, insLabelOptionsProvider, insLinkOptionsProvider, insLoaderOptionsProvider, insMarkControlAsTouchedAndValidate, insMoveFocus, insNotificationOptionsProvider, insOverrideOptions, insProvide, insRadioOptionsProvider, insTableOptionsProvider, insTabsOptionsProvider, insTextareaOptionsProvider, insTextfieldOptionsProvider, insWithStyles, insZoneOptimized, insZonefree, insZonefreeScheduler, insZonefull, insZonefullScheduler, isEditingKey, isElement, isHTMLElement, isInput, isNativeFocused, isNativeFocusedIn, isNativeKeyboardFocusable, isNativeMouseFocusable, isPresent, isTextNode, isTextarea, isTextfield, provideMutationObserverInit, provideOptions, svgNodeFilter };
6906
+ export { ANIMATION_FRAME, EMPTY_ARRAY, EMPTY_CLIENT_RECT, EMPTY_FUNCTION, EMPTY_QUERY, FieldErrorPipe, INS_ACTIVE_ELEMENT, INS_ALERT_CONCURRENCY, INS_ALERT_DEFAULT_OPTIONS, INS_ALERT_OPTIONS, INS_APPEARANCE_DEFAULT_OPTIONS, INS_APPEARANCE_OPTIONS, INS_ASSETS_PATH, INS_AVATAR_DEFAULT_OPTIONS, INS_AVATAR_OPTIONS, INS_BUTTON_DEFAULT_OPTIONS, INS_BUTTON_OPTIONS, INS_CHECKBOX_DEFAULT_OPTIONS, INS_CHECKBOX_OPTIONS, INS_CHEVRON, INS_CHINESE_LANGUAGE, INS_CHIP_DEFAULT_OPTIONS, INS_CHIP_OPTIONS, INS_CLEAR_WORD, INS_CLOSE_WORD, INS_COMMON_ICONS, INS_DATA_LIST_ACCESSOR, INS_DATA_LIST_HOST, INS_DEFAULT_ERROR_MESSAGE, INS_DEFAULT_LANGUAGE, INS_DEFAULT_TREE_CONTROLLER, INS_DIALOG_DEFAULT_OPTIONS, INS_DIALOG_OPTIONS, INS_DROPDOWN_COMPONENT, INS_DROPDOWN_CONTEXT, INS_DROPDOWN_DEFAULT_OPTIONS, INS_DROPDOWN_HOVER_DEFAULT_OPTIONS, INS_DROPDOWN_HOVER_OPTIONS, INS_DROPDOWN_OPTIONS, INS_ENTER, INS_FORM_DEFAULT_OPTIONS, INS_FORM_OPTIONS, INS_GROUP_DEFAULT_OPTIONS, INS_GROUP_OPTIONS, INS_ICON_END, INS_ICON_START, INS_ICON_STARTS, INS_IDENTITY_VALUE_TRANSFORMER, INS_INPUT_TAG_DEFAULT_OPTIONS, INS_INPUT_TAG_OPTIONS, INS_LABEL_DEFAULT_OPTIONS, INS_LABEL_OPTIONS, INS_LANGUAGE, INS_LEAVE, INS_LINK_DEFAULT_OPTIONS, INS_LINK_OPTIONS, INS_LOADER_DEFAULT_OPTIONS, INS_LOADER_OPTIONS, INS_MEDIA, INS_MORE_WORD, INS_NOTHING_FOUND_MESSAGE, INS_NOTIFICATION_DEFAULT_OPTIONS, INS_NOTIFICATION_OPTIONS, INS_PAGINATION_TEXTS, INS_RADIO_DEFAULT_OPTIONS, INS_RADIO_OPTIONS, INS_REMOVED_ELEMENT, INS_SELECTION_STREAM, INS_SPIN_ICONS, INS_SWIPE_OPTIONS, INS_TABLE_DEFAULT_OPTIONS, INS_TABLE_OPTIONS, INS_TABS_DEFAULT_OPTIONS, INS_TABS_OPTIONS, INS_TAB_ACTIVATE, INS_TEXTAREA_DEFAULT_OPTIONS, INS_TEXTAREA_OPTIONS, INS_TEXTFIELD_ACCESSOR, INS_TEXTFIELD_DEFAULT_OPTIONS, INS_TEXTFIELD_OPTIONS, INS_TREE_ACCESSOR, INS_TREE_CONTROLLER, INS_TREE_LEVEL, INS_TREE_LOADER, INS_TREE_LOADING, INS_TREE_NODE, INS_TREE_START, INS_VALIDATION_ERRORS, INS_VIEWPORT, INS_ZOOM_OPTIONS, IS_IOS, InsAccessor, InsAccordion, InsAccordionComponent, InsAccordionDirective, InsActiveZone, InsAlert, InsAlertComponent, InsAlertService, InsAnimated, InsAppearance, InsAvatar, InsBreakpointService, InsButton, InsButtonLoading, InsCardLarge, InsCell, InsCheckbox, InsCheckboxRowDirective, InsCheckboxTableDirective, InsChevron, InsChip, InsControl, InsCopyProcessor, InsDataList, InsDataListComponent, InsDialog, InsDialogComponent, InsDialogService, InsDriver, InsDriverDirective, InsDropdown, InsDropdownComponent, InsDropdownContent, InsDropdownDirective, InsDropdownDriver, InsDropdownDriverDirective, InsDropdownHover, InsDropdownOpen, InsDropdownOptionsDirective, InsDropdownPosition, InsDropdownPositionSided, InsDropdownSelection, InsError, InsExpand, InsFade, InsFocusTrap, InsForm, InsGroup, InsHeader, InsIcon, InsIcons, InsIdService, InsInputTagComponent, InsItem, InsLabel, InsLink, InsLoader, InsMapperPipe, InsModalComponent, InsModalService, InsNativeValidator, InsNoHostException, InsNonNullableValueTransformer, InsNotification, InsNotificationDirective, InsNotificationService, InsObscured, InsObscuredService, InsOptGroup, InsOption, InsPagination, InsPopup, InsPopupService, InsPopups, InsPortal, InsPortalDirective, InsPortalService, InsPortals, InsPositionAccessor, InsPositionService, InsPresent, InsRadio, InsRadioComponent, InsRadioDirective, InsRectAccessor, InsResize, InsRoot, InsSelectComponent, InsStuck, InsSwipe, InsSwipeService, InsTab, InsTable, InsTableCell, InsTableControl, InsTableControlDirective, InsTableDirective, InsTableExpand, InsTableHead, InsTableResized, InsTableTbody, InsTableTd, InsTableTh, InsTableThGroup, InsTableThead, InsTableTr, InsTabs, InsTabsDirective, InsTabsHorizontal, InsTabsStyles, InsTabsVertical, InsTabsWithMore, InsTextFieldController, InsTextFieldDataDirective, InsTextFieldSingleDataDirective, InsTextarea, InsTextareaCounterComponent, InsTextareaLimit, InsTextareaLimitComponent, InsTextfield, InsTextfieldComponent, InsTextfieldDirective, InsTextfieldDropdownDirective, InsTitle, InsTransitioned, InsTree, InsTreeChildren, InsTreeControllerDirective, InsTreeItem, InsTreeItemController, InsTreeService, InsValidationError, InsValueTransformer, InsVehicle, InsWithAppearance, InsWithDropdownOpen, InsWithIcons, InsWithTextfieldDropdown, InsZoom, InsZoomService, LOCAL_STORAGE, MUTATION_OBSERVER_INIT, MutationObserver$1 as MutationObserver, MutationObserverService, NG_EVENT_PLUGINS, OptionsEventPlugin, POLYMORPHEUS_CONTEXT, PolymorpheusComponent, PolymorpheusContext, PolymorpheusOutlet, PolymorpheusTemplate, PreventEventPlugin, REDUCED_MOTION, RESIZE_OPTION_BOX, RESIZE_OPTION_BOX_DEFAULT, ResizeObserver$1 as ResizeObserver, ResizeObserverService, SafeObserver$2 as SafeObserver, SelfEventPlugin, SilentEventPlugin, StopEventPlugin, TextfieldOptionItem, WINDOW, commonIconsProvider, containsOrAfter, createToken, createTokenFromFactory, getActualTarget, getClosestFocusable, getDocumentOrShadowRoot, getNativeFocused, getViewportHeight, getViewportWidth, injectElement, insAlertOptionsProvider, insAppearanceOptionsProvider, insArrayRemove, insArrayToggle, insAsControl, insAsDataListAccessor, insAsDataListHost, insAsDriver, insAsPortal, insAsPositionAccessor, insAsRectAccessor, insAsVehicle, insAsViewport, insAssetsPathProvider, insAvatarOptionsProvider, insBlurNativeFocused, insButtonOptionsProvider, insCheckFixedPosition, insCheckboxOptionsProvider, insChipOptionsProvider, insClamp, insDropdownHoverOptionsProvider, insDropdownOptionsProvider, insExtractI18n, insFocusedIn, insFormOptionsProvider, insGetElementObscures, insGetSelectedText, insGetSemanticWordRange, insGetWordRange, insGroupOptionsProvider, insIconsProvider, insIfMap, insInjectIconResolver, insInjectId, insInputTagOptionsProvider, insIsElementEditable, insLabelOptionsProvider, insLinkOptionsProvider, insLoaderOptionsProvider, insMarkControlAsTouchedAndValidate, insMoveFocus, insNotificationOptionsProvider, insOverrideOptions, insProvide, insRadioOptionsProvider, insTableOptionsProvider, insTabsOptionsProvider, insTextareaOptionsProvider, insTextfieldOptionsProvider, insValueTransformerFrom, insWithStyles, insZoneOptimized, insZonefree, insZonefreeScheduler, insZonefull, insZonefullScheduler, isEditingKey, isElement, isHTMLElement, isInput, isNativeFocused, isNativeFocusedIn, isNativeKeyboardFocusable, isNativeMouseFocusable, isPresent, isTextNode, isTextarea, isTextfield, provideMutationObserverInit, provideOptions, svgNodeFilter };
6841
6907
  //# sourceMappingURL=liuk123-insui.mjs.map