ng-jvx-multiselect 19.0.37 → 20.0.0

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.
@@ -1,172 +1,172 @@
1
- @use 'sass:map';
2
-
3
- $primary: var(--jvx-multiselect-primary);
4
- $accent: var(--jvx-multiselect-accent);
5
- $warn: var(--jvx-multiselect-warn);
6
- ng-jvx-multiselect {
7
- display: flex;
8
- align-items: center;
9
- width: 100%;
10
-
11
- .ng-jvx-multiselect {
12
- width: 100%;
13
- display: flex;
14
- align-items: center;
15
-
16
- .ng-jvx-multiselect-value-container {
17
- width: 100%;
18
- display: flex;
19
- cursor: pointer;
20
- position: relative;
21
- justify-content: space-between;
22
- align-items: center;
23
-
24
- .ng-jvx-multiselect__placeholder {
25
- height: 100%;
26
- display: flex;
27
- align-items: center;
28
- position: absolute;
29
- }
30
-
31
- .ng-jvx-multiselect-value {
32
- flex: 1 1 100%;
33
- max-width: calc(100% - 28px);
34
- display: flex;
35
- align-items: center;
36
- }
37
-
38
-
39
- .ng-jvx-multiselect__remove-button {
40
- display: flex;
41
- height: 100%;
42
- align-items: center;
43
- }
44
-
45
- .ng-jvx-multiselect-arrow {
46
- width: 24px;
47
- padding-right: 4px;
48
- display: flex;
49
- align-items: center;
50
- height: 24px;
51
-
52
- svg {
53
- transition: transform 0.3s ease-in-out;
54
- }
55
-
56
- @keyframes lds-ring {
57
- 0% {
58
- transform: rotate(0deg);
59
- }
60
- 100% {
61
- transform: rotate(360deg);
62
- }
63
- }
64
-
65
- .lds-ring {
66
- display: inline-block;
67
- position: relative;
68
- width: 24px;
69
- height: 24px;
70
-
71
- div {
72
- box-sizing: border-box;
73
- display: block;
74
- position: absolute;
75
- width: 6px;
76
- height: 16px;
77
- margin: 4px;
78
- border: 2px solid;
79
- border-radius: 50%;
80
- animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
81
- border-color: #{$accent} transparent transparent transparent;
82
-
83
- &:nth-child(1) {
84
- animation-delay: -0.45s;
85
- }
86
-
87
- &:nth-child(2) {
88
- animation-delay: -0.3s;
89
- }
90
-
91
- &:nth-child(3) {
92
- animation-delay: -0.15s;
93
- }
94
- }
95
- }
96
- }
97
-
98
- &.is-open {
99
- .ng-jvx-multiselect-arrow {
100
- svg {
101
- transform: rotate(180deg);
102
- }
103
- }
104
- }
105
-
106
- }
107
-
108
- &.disabled {
109
- pointer-events: none;
110
-
111
- .ng-jvx-multiselect-arrow {
112
- svg {
113
- opacity: 0.3;
114
- }
115
- }
116
- }
117
-
118
- &.has-errors {
119
- color: red;
120
-
121
- .ng-jvx-multiselect-value {
122
- &.single-value-container {
123
- color: red;
124
- }
125
-
126
- &.multi-value-container {
127
- width: 100%;
128
- }
129
- }
130
-
131
- .ng-jvx-multiselect-arrow {
132
- svg {
133
- color: red;
134
- }
135
- }
136
- }
137
- }
138
- }
139
-
140
- .menu-list-container {
141
- flex: 1 1 0;
142
- max-height: 300px;
143
- display: flex;
144
- flex-direction: column;
145
- }
146
-
147
- .menu-footer {
148
- //max-height: 30px;
149
- overflow: hidden;
150
- }
151
-
152
- .cdk-overlay-pane {
153
- .closeMenuButton {
154
- height: 22px;
155
- width: 22px;
156
- background-color: #{$primary};
157
- position: absolute;
158
- top: -11px;
159
- right: 11px;
160
- border-radius: 100%;
161
- cursor: pointer;
162
- color: #fff;
163
- z-index: 10;
164
-
165
- svg {
166
- fill: var(--jvx-multiselect-on-primary);
167
- font-size: 15px;
168
- height: 100%;
169
- width: 100%;
170
- }
171
- }
172
- }
1
+ @use 'sass:map';
2
+
3
+ $primary: var(--jvx-multiselect-primary);
4
+ $accent: var(--jvx-multiselect-accent);
5
+ $warn: var(--jvx-multiselect-warn);
6
+ ng-jvx-multiselect {
7
+ display: flex;
8
+ align-items: center;
9
+ width: 100%;
10
+
11
+ .ng-jvx-multiselect {
12
+ width: 100%;
13
+ display: flex;
14
+ align-items: center;
15
+
16
+ .ng-jvx-multiselect-value-container {
17
+ width: 100%;
18
+ display: flex;
19
+ cursor: pointer;
20
+ position: relative;
21
+ justify-content: space-between;
22
+ align-items: center;
23
+
24
+ .ng-jvx-multiselect__placeholder {
25
+ height: 100%;
26
+ display: flex;
27
+ align-items: center;
28
+ position: absolute;
29
+ }
30
+
31
+ .ng-jvx-multiselect-value {
32
+ flex: 1 1 100%;
33
+ max-width: calc(100% - 28px);
34
+ display: flex;
35
+ align-items: center;
36
+ }
37
+
38
+
39
+ .ng-jvx-multiselect__remove-button {
40
+ display: flex;
41
+ height: 100%;
42
+ align-items: center;
43
+ }
44
+
45
+ .ng-jvx-multiselect-arrow {
46
+ width: 24px;
47
+ padding-right: 4px;
48
+ display: flex;
49
+ align-items: center;
50
+ height: 24px;
51
+
52
+ svg {
53
+ transition: transform 0.3s ease-in-out;
54
+ }
55
+
56
+ @keyframes lds-ring {
57
+ 0% {
58
+ transform: rotate(0deg);
59
+ }
60
+ 100% {
61
+ transform: rotate(360deg);
62
+ }
63
+ }
64
+
65
+ .lds-ring {
66
+ display: inline-block;
67
+ position: relative;
68
+ width: 24px;
69
+ height: 24px;
70
+
71
+ div {
72
+ box-sizing: border-box;
73
+ display: block;
74
+ position: absolute;
75
+ width: 6px;
76
+ height: 16px;
77
+ margin: 4px;
78
+ border: 2px solid;
79
+ border-radius: 50%;
80
+ animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
81
+ border-color: #{$accent} transparent transparent transparent;
82
+
83
+ &:nth-child(1) {
84
+ animation-delay: -0.45s;
85
+ }
86
+
87
+ &:nth-child(2) {
88
+ animation-delay: -0.3s;
89
+ }
90
+
91
+ &:nth-child(3) {
92
+ animation-delay: -0.15s;
93
+ }
94
+ }
95
+ }
96
+ }
97
+
98
+ &.is-open {
99
+ .ng-jvx-multiselect-arrow {
100
+ svg {
101
+ transform: rotate(180deg);
102
+ }
103
+ }
104
+ }
105
+
106
+ }
107
+
108
+ &.disabled {
109
+ pointer-events: none;
110
+
111
+ .ng-jvx-multiselect-arrow {
112
+ svg {
113
+ opacity: 0.3;
114
+ }
115
+ }
116
+ }
117
+
118
+ &.has-errors {
119
+ color: red;
120
+
121
+ .ng-jvx-multiselect-value {
122
+ &.single-value-container {
123
+ color: red;
124
+ }
125
+
126
+ &.multi-value-container {
127
+ width: 100%;
128
+ }
129
+ }
130
+
131
+ .ng-jvx-multiselect-arrow {
132
+ svg {
133
+ color: red;
134
+ }
135
+ }
136
+ }
137
+ }
138
+ }
139
+
140
+ .menu-list-container {
141
+ flex: 1 1 0;
142
+ max-height: 300px;
143
+ display: flex;
144
+ flex-direction: column;
145
+ }
146
+
147
+ .menu-footer {
148
+ //max-height: 30px;
149
+ overflow: hidden;
150
+ }
151
+
152
+ .cdk-overlay-pane {
153
+ .closeMenuButton {
154
+ height: 22px;
155
+ width: 22px;
156
+ background-color: #{$primary};
157
+ position: absolute;
158
+ top: -11px;
159
+ right: 11px;
160
+ border-radius: 100%;
161
+ cursor: pointer;
162
+ color: #fff;
163
+ z-index: 10;
164
+
165
+ svg {
166
+ fill: var(--jvx-multiselect-on-primary);
167
+ font-size: 15px;
168
+ height: 100%;
169
+ width: 100%;
170
+ }
171
+ }
172
+ }
@@ -1,32 +1,32 @@
1
- @use 'sass:map';
2
-
3
- $primary: var(--jvx-multiselect-primary);
4
- $accent: var(--jvx-multiselect-accent);
5
- $warn: var(--jvx-multiselect-warn);
6
- ng-jvx-option {
7
- .option-content{
8
- min-height: 48px;
9
- }
10
- .ng-jvx-option {
11
- padding: 0;
12
- height: auto;
13
- min-height: 48px;
14
- cursor: pointer;
15
- position: relative;
16
-
17
- &.ng-jvx-single-selected-option {
18
-
19
- .list-option-background {
20
- position: absolute;
21
- left: 0;
22
- top: 0;
23
- z-index: -1;
24
- opacity: 0.45;
25
- height: 100%;
26
- width: 100%;
27
- background-color: #{$primary};
28
- background-opacity: .3;
29
- }
30
- }
31
- }
32
- }
1
+ @use 'sass:map';
2
+
3
+ $primary: var(--jvx-multiselect-primary);
4
+ $accent: var(--jvx-multiselect-accent);
5
+ $warn: var(--jvx-multiselect-warn);
6
+ ng-jvx-option {
7
+ .option-content{
8
+ min-height: 48px;
9
+ }
10
+ .ng-jvx-option {
11
+ padding: 0;
12
+ height: auto;
13
+ min-height: 48px;
14
+ cursor: pointer;
15
+ position: relative;
16
+
17
+ &.ng-jvx-single-selected-option {
18
+
19
+ .list-option-background {
20
+ position: absolute;
21
+ left: 0;
22
+ top: 0;
23
+ z-index: -1;
24
+ opacity: 0.45;
25
+ height: 100%;
26
+ width: 100%;
27
+ background-color: #{$primary};
28
+ background-opacity: .3;
29
+ }
30
+ }
31
+ }
32
+ }
@@ -1,11 +1,11 @@
1
- @use '@angular/cdk/overlay-prebuilt';
2
-
3
- .ng-jvx-panel{
4
- display: flex;
5
- flex-direction: column;
6
- box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12);
7
- background: var(--jvx-multiselect-panel-bg);
8
- }
9
- .ng-jvx-panel-overlay{
10
- background-opacity: 0;
11
- }
1
+ @use '@angular/cdk/overlay-prebuilt';
2
+
3
+ .ng-jvx-panel{
4
+ display: flex;
5
+ flex-direction: column;
6
+ box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12);
7
+ background: var(--jvx-multiselect-panel-bg);
8
+ }
9
+ .ng-jvx-panel-overlay{
10
+ background-opacity: 0;
11
+ }
@@ -1,11 +0,0 @@
1
- import { NgJvxMultiselectComponent } from '../../ng-jvx-multiselect.component';
2
- import * as i0 from "@angular/core";
3
- export declare class NgJvxMultisectChipComponent {
4
- removed: import("@angular/core").OutputEmitterRef<any>;
5
- value: import("@angular/core").InputSignal<any>;
6
- disabled: import("@angular/core").InputSignal<boolean>;
7
- container: NgJvxMultiselectComponent;
8
- clickOnRemove(e: MouseEvent): void;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<NgJvxMultisectChipComponent, never>;
10
- static ɵcmp: i0.ɵɵComponentDeclaration<NgJvxMultisectChipComponent, "ng-jvx-multiselect-chip", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "removed": "removed"; }, never, ["*"], true, never>;
11
- }
@@ -1,15 +0,0 @@
1
- import { ElementRef, OnDestroy, OnInit } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class NgJvxDisabledOptionDirective implements OnInit, OnDestroy {
4
- private el;
5
- private isDisabled;
6
- private originalOpacity;
7
- private unsubs;
8
- private restore;
9
- set ngJvxDisabledOption(source: boolean);
10
- constructor(el: ElementRef);
11
- ngOnInit(): void;
12
- ngOnDestroy(): void;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<NgJvxDisabledOptionDirective, never>;
14
- static ɵdir: i0.ɵɵDirectiveDeclaration<NgJvxDisabledOptionDirective, "[ngJvxDisabledOption]", never, { "ngJvxDisabledOption": { "alias": "ngJvxDisabledOption"; "required": false; }; }, {}, never, never, true, never>;
15
- }
@@ -1,11 +0,0 @@
1
- import { ElementRef, OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class NgJvxFocusDirective implements OnInit, OnChanges {
4
- private el;
5
- ngJvxFocus: boolean;
6
- constructor(el: ElementRef);
7
- ngOnInit(): void;
8
- ngOnChanges(changes: SimpleChanges): void;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<NgJvxFocusDirective, never>;
10
- static ɵdir: i0.ɵɵDirectiveDeclaration<NgJvxFocusDirective, "[ngJvxFocus]", never, { "ngJvxFocus": { "alias": "ngJvxFocus"; "required": false; }; }, {}, never, never, true, never>;
11
- }
@@ -1,10 +0,0 @@
1
- import { TemplateRef, ViewContainerRef } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class NgJvxGroupHeaderDirective {
4
- template: TemplateRef<any>;
5
- private vcRef;
6
- constructor(template: TemplateRef<any>, vcRef: ViewContainerRef);
7
- set ngJvxGroupHeaderOf(source: Array<any[]>);
8
- static ɵfac: i0.ɵɵFactoryDeclaration<NgJvxGroupHeaderDirective, never>;
9
- static ɵdir: i0.ɵɵDirectiveDeclaration<NgJvxGroupHeaderDirective, "[ngJvxGroupHeader]", never, { "ngJvxGroupHeaderOf": { "alias": "ngJvxGroupHeaderOf"; "required": false; }; }, {}, never, never, true, never>;
10
- }
@@ -1,11 +0,0 @@
1
- import { ElementRef, TemplateRef, ViewContainerRef } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class NgJvxOptionsTemplateDirective {
4
- private el;
5
- template: TemplateRef<any>;
6
- private vcRef;
7
- constructor(el: ElementRef, template: TemplateRef<any>, vcRef: ViewContainerRef);
8
- set ngJvxOptionsTemplateOf(source: Array<any[]>);
9
- static ɵfac: i0.ɵɵFactoryDeclaration<NgJvxOptionsTemplateDirective, never>;
10
- static ɵdir: i0.ɵɵDirectiveDeclaration<NgJvxOptionsTemplateDirective, "[ngJvxOptionsTemplate]", never, { "ngJvxOptionsTemplateOf": { "alias": "ngJvxOptionsTemplateOf"; "required": false; }; }, {}, never, never, true, never>;
11
- }
@@ -1,10 +0,0 @@
1
- import { TemplateRef, ViewContainerRef } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class NgJvxSelectionTemplateDirective {
4
- template: TemplateRef<any>;
5
- private vcRef;
6
- constructor(template: TemplateRef<any>, vcRef: ViewContainerRef);
7
- set ngJvxSelectionTemplateOf(source: Array<any[]>);
8
- static ɵfac: i0.ɵɵFactoryDeclaration<NgJvxSelectionTemplateDirective, never>;
9
- static ɵdir: i0.ɵɵDirectiveDeclaration<NgJvxSelectionTemplateDirective, "[ngJvxSelectionTemplate]", never, { "ngJvxSelectionTemplateOf": { "alias": "ngJvxSelectionTemplateOf"; "required": false; }; }, {}, never, never, true, never>;
10
- }
@@ -1,8 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- export interface NgJvxGroupMapper<T> {
3
- mapGroup(option: T): Observable<NgJvxGroup<T>>;
4
- }
5
- export interface NgJvxGroup<T> {
6
- group: string;
7
- option: T;
8
- }
@@ -1,13 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- /**
3
- * Maps the option returned by the async call in an object of type T. When object is mapped the resulting object is returned in an observable
4
- */
5
- export interface NgJvxOptionMapper<T> {
6
- mapOption(source: any): Observable<T>;
7
- }
8
- /**
9
- * Maps the options returned by the async call in an object of type T. When object is mapped the resulting object is returned in an observable
10
- */
11
- export interface NgJvxMultiOptionMapper<T> {
12
- mapOptions(source: any): Observable<T[]>;
13
- }
@@ -1,7 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- /**
3
- * Maps the option returned by the async call in an object of type T. When object is mapped the resulting object is returned in an observable
4
- */
5
- export interface NgJvxSearchMapper<T> {
6
- mapSearch(source: any, options: T[]): Observable<T[]>;
7
- }