@indice/ng-components 0.2.167 → 0.2.169

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.
Files changed (111) hide show
  1. package/README.md +4 -4
  2. package/{_styles.css → _styles.scss} +4249 -4273
  3. package/esm2020/lib/controls/advanced-search/advanced-search.component.mjs +13 -7
  4. package/esm2020/lib/controls/advanced-search/models.mjs +1 -1
  5. package/esm2020/lib/controls/avatar-initials/avatar-initials.component.mjs +5 -5
  6. package/esm2020/lib/controls/breadcrumb/breadcrumb-item.mjs +14 -0
  7. package/esm2020/lib/controls/breadcrumb/breadcrumb.component.mjs +26 -0
  8. package/esm2020/lib/controls/collapsible-panel/collapsible-panel.component.mjs +5 -5
  9. package/esm2020/lib/controls/combobox/combobox.component.mjs +33 -13
  10. package/esm2020/lib/controls/date-picker/date-picker.component.mjs +6 -6
  11. package/esm2020/lib/controls/drop-down-menu/drop-down-menu.component.mjs +9 -5
  12. package/esm2020/lib/controls/kpi-tile/kpi-tile.component.mjs +9 -5
  13. package/esm2020/lib/controls/language-selection/language-selection.component.mjs +5 -5
  14. package/esm2020/lib/controls/list-view/list-column.component.mjs +4 -4
  15. package/esm2020/lib/controls/list-view/list-details-section.component.mjs +4 -4
  16. package/esm2020/lib/controls/list-view/list-tile.component.mjs +4 -4
  17. package/esm2020/lib/controls/list-view/list-view-empty-state.component.mjs +5 -5
  18. package/esm2020/lib/controls/list-view/list-view.component.mjs +8 -8
  19. package/esm2020/lib/controls/nav-links-list/nav-links-list.component.mjs +13 -5
  20. package/esm2020/lib/controls/notifications-indicator/notifications-indicator.component.mjs +5 -5
  21. package/esm2020/lib/controls/pager/pager.component.mjs +5 -5
  22. package/esm2020/lib/controls/side-pane/side-pane.component.mjs +5 -5
  23. package/esm2020/lib/controls/skeleton-loader/skeleton-loader.component.mjs +5 -5
  24. package/esm2020/lib/controls/stepper/lib-step-info.directive.mjs +4 -4
  25. package/esm2020/lib/controls/stepper/lib-step-label.directive.mjs +5 -5
  26. package/esm2020/lib/controls/stepper/lib-step.component.mjs +11 -11
  27. package/esm2020/lib/controls/stepper/lib-stepper.component.mjs +6 -6
  28. package/esm2020/lib/controls/stepper/types/step-selected-event.mjs +1 -1
  29. package/esm2020/lib/controls/stepper/types/stepper-type.mjs +1 -1
  30. package/esm2020/lib/controls/tabs/lib-tab-group.component.mjs +20 -14
  31. package/esm2020/lib/controls/tabs/lib-tab-label.directive.mjs +16 -0
  32. package/esm2020/lib/controls/tabs/lib-tab.component.mjs +21 -14
  33. package/esm2020/lib/controls/toaster/toaster-container.component.mjs +5 -5
  34. package/esm2020/lib/controls/toaster/toaster.component.mjs +5 -5
  35. package/esm2020/lib/controls/toggle/toggle.component.mjs +6 -6
  36. package/esm2020/lib/controls/toggle-button/toggle-button.component.mjs +87 -0
  37. package/esm2020/lib/controls/toggle-buttons-list/toggle-buttons-list.component.mjs +31 -0
  38. package/esm2020/lib/controls/user-profile-menu/user-profile-menu.component.mjs +5 -5
  39. package/esm2020/lib/directives/click-outside.directive.mjs +4 -4
  40. package/esm2020/lib/directives/dynamic-component-host.directive.mjs +4 -4
  41. package/esm2020/lib/helpers/base-list.component.mjs +4 -4
  42. package/esm2020/lib/icons.mjs +4 -2
  43. package/esm2020/lib/layouts/shell/shell-footer/shell-footer.component.mjs +5 -5
  44. package/esm2020/lib/layouts/shell/shell-header/shell-header.component.mjs +8 -8
  45. package/esm2020/lib/layouts/shell/shell-layout/shell-layout.component.mjs +41 -52
  46. package/esm2020/lib/layouts/shell/shell-sidebar/shell-sidebar.component.mjs +15 -8
  47. package/esm2020/lib/layouts/shell/shell-sidebar-header/shell-sidebar-header.component.mjs +7 -7
  48. package/esm2020/lib/layouts/shell/shell-sidebar-layout/shell-sidebar-layout.component.mjs +19 -14
  49. package/esm2020/lib/layouts/shell/shell-stacked-layout/shell-stacked-layout.component.mjs +8 -9
  50. package/esm2020/lib/layouts/views/form-layout/form-layout.component.mjs +5 -5
  51. package/esm2020/lib/layouts/views/model-view-layout/model-view-layout.component.mjs +14 -5
  52. package/esm2020/lib/layouts/views/side-view-layout/side-view-layout.component.mjs +5 -5
  53. package/esm2020/lib/layouts/views/view-layout/view-layout.component.mjs +5 -5
  54. package/esm2020/lib/ng-components.module.mjs +112 -107
  55. package/esm2020/lib/pages/auth/auth-callback/auth-callback.component.mjs +4 -4
  56. package/esm2020/lib/pages/auth/auth-renew/auth-renew.component.mjs +4 -4
  57. package/esm2020/lib/pages/auth/logged-out/logged-out.component.mjs +4 -4
  58. package/esm2020/lib/pages/http-status/error/error.component.mjs +5 -5
  59. package/esm2020/lib/pages/http-status/page-not-found/page-not-found.component.mjs +5 -5
  60. package/esm2020/lib/pages/http-status/unauthorized/unauthorized.component.mjs +5 -5
  61. package/esm2020/lib/pipes/address.pipe.mjs +4 -4
  62. package/esm2020/lib/pipes/duration-format.pipe.mjs +4 -4
  63. package/esm2020/lib/services/breadcrumb.service.mjs +174 -0
  64. package/esm2020/lib/services/component-loader/component-loader-options.class.mjs +1 -1
  65. package/esm2020/lib/services/component-loader/component-loader.class.mjs +2 -2
  66. package/esm2020/lib/services/component-loader/component-loader.factory.mjs +4 -4
  67. package/esm2020/lib/services/component-loader/content-ref.class.mjs +1 -1
  68. package/esm2020/lib/services/modal-service/modal-backdrop-component.mjs +4 -4
  69. package/esm2020/lib/services/modal-service/modal-container-component.mjs +15 -15
  70. package/esm2020/lib/services/modal-service/modal-options.class.mjs +4 -4
  71. package/esm2020/lib/services/modal-service/modal-service.mjs +4 -4
  72. package/esm2020/lib/services/modal-service/modal-styles.class.mjs +1 -1
  73. package/esm2020/lib/services/modal-service/modal.class.mjs +4 -4
  74. package/esm2020/lib/services/toaster.service.mjs +10 -8
  75. package/esm2020/lib/services/user-settings.service.mjs +35 -0
  76. package/esm2020/lib/services/utilities.service.mjs +47 -0
  77. package/esm2020/lib/tokens.mjs +1 -1
  78. package/esm2020/lib/types.mjs +12 -9
  79. package/esm2020/public-api.mjs +8 -1
  80. package/fesm2015/indice-ng-components.mjs +978 -496
  81. package/fesm2015/indice-ng-components.mjs.map +1 -1
  82. package/fesm2020/indice-ng-components.mjs +970 -501
  83. package/fesm2020/indice-ng-components.mjs.map +1 -1
  84. package/lib/controls/breadcrumb/breadcrumb-item.d.ts +7 -0
  85. package/lib/controls/breadcrumb/breadcrumb.component.d.ts +12 -0
  86. package/lib/controls/combobox/combobox.component.d.ts +10 -5
  87. package/lib/controls/drop-down-menu/drop-down-menu.component.d.ts +3 -2
  88. package/lib/controls/kpi-tile/kpi-tile.component.d.ts +2 -1
  89. package/lib/controls/list-view/list-view.component.d.ts +1 -1
  90. package/lib/controls/nav-links-list/nav-links-list.component.d.ts +3 -1
  91. package/lib/controls/pager/pager.component.d.ts +1 -1
  92. package/lib/controls/tabs/lib-tab-group.component.d.ts +3 -3
  93. package/lib/controls/tabs/lib-tab-label.directive.d.ts +8 -0
  94. package/lib/controls/tabs/lib-tab.component.d.ts +8 -6
  95. package/lib/controls/toggle-button/toggle-button.component.d.ts +25 -0
  96. package/lib/controls/toggle-buttons-list/toggle-buttons-list.component.d.ts +14 -0
  97. package/lib/icons.d.ts +2 -0
  98. package/lib/layouts/shell/shell-layout/shell-layout.component.d.ts +10 -13
  99. package/lib/layouts/shell/shell-sidebar/shell-sidebar.component.d.ts +5 -3
  100. package/lib/layouts/shell/shell-sidebar-layout/shell-sidebar-layout.component.d.ts +6 -3
  101. package/lib/layouts/shell/shell-stacked-layout/shell-stacked-layout.component.d.ts +1 -1
  102. package/lib/layouts/views/model-view-layout/model-view-layout.component.d.ts +5 -2
  103. package/lib/ng-components.module.d.ts +57 -53
  104. package/lib/services/breadcrumb.service.d.ts +29 -0
  105. package/lib/services/toaster.service.d.ts +2 -2
  106. package/lib/services/user-settings.service.d.ts +13 -0
  107. package/lib/services/utilities.service.d.ts +11 -0
  108. package/lib/types.d.ts +16 -12
  109. package/modal.css +157 -157
  110. package/package.json +1 -1
  111. package/public-api.d.ts +7 -0
package/lib/types.d.ts CHANGED
@@ -50,7 +50,8 @@ export declare class ViewAction {
50
50
  param: any;
51
51
  icon: string;
52
52
  tooltip: string | null;
53
- constructor(type: string, key: string | null, param: any, icon: string, tooltip: string | null);
53
+ text?: string;
54
+ constructor(type: string, key: string | null, param: any, icon: string, tooltip: string | null, text?: string);
54
55
  }
55
56
  export declare class ListViewType {
56
57
  static Tiles: string;
@@ -61,7 +62,7 @@ export declare class ListViewType {
61
62
  export declare class RouterViewAction extends ViewAction {
62
63
  outlet: string | null;
63
64
  link: string | null;
64
- constructor(icon: string, link: string, outlet: string | null, tooltip: string | null);
65
+ constructor(icon: string, link: string, outlet: string | null, tooltip: string | null, text?: string);
65
66
  }
66
67
  export declare class SwitchViewAction extends ViewAction {
67
68
  constructor(view: string, icon: string, tooltip: string | null);
@@ -98,31 +99,33 @@ export interface IAddress {
98
99
  country?: string | null;
99
100
  }
100
101
  export interface IShellConfig {
101
- layout?: ShellLayoutType;
102
102
  appLogo: string;
103
103
  appLogoAlt: string;
104
- showHeader: boolean;
105
- showUserNameOnHeader?: boolean;
106
- showAlertsOnHeader?: boolean;
107
- customHeaderComponent?: any;
108
- showFooter: boolean;
104
+ breadcrumb: boolean;
109
105
  customFooterComponent?: any;
106
+ customHeaderComponent?: any;
110
107
  fluid: boolean;
108
+ layout?: ShellLayoutType;
109
+ showAlertsOnHeader?: boolean;
110
+ showFooter: boolean;
111
+ showHeader: boolean;
111
112
  showLangsOnHeader?: boolean;
113
+ showUserNameOnHeader?: boolean;
112
114
  }
113
115
  export declare enum ShellLayoutType {
114
116
  Stacked = "Stacked",
115
117
  Sidebar = "Sidebar"
116
118
  }
117
119
  export declare class DefaultShellConfig implements IShellConfig {
118
- layout: ShellLayoutType;
119
120
  appLogo: string;
120
121
  appLogoAlt: string;
121
- showHeader: boolean;
122
- showUserNameOnHeader: boolean;
122
+ breadcrumb: boolean;
123
+ fluid: boolean;
124
+ layout: ShellLayoutType;
123
125
  showAlertsOnHeader: boolean;
124
126
  showFooter: boolean;
125
- fluid: boolean;
127
+ showHeader: boolean;
128
+ showUserNameOnHeader: boolean;
126
129
  }
127
130
  export declare enum SCREEN_SIZE {
128
131
  XS = 0,
@@ -171,3 +174,4 @@ export interface IValidationProblemDetails {
171
174
  [key: string]: string[];
172
175
  } | undefined;
173
176
  }
177
+ export declare type UserSettingKey = 'MobileSideBar';
package/modal.css CHANGED
@@ -1,157 +1,157 @@
1
- .modal-open {
2
- overflow: hidden;
3
- }
4
- .modal-open .modal {
5
- overflow-x: hidden;
6
- overflow-y: auto;
7
- }
8
- .modal {
9
- position: fixed;
10
- top: 0;
11
- left: 0;
12
- z-index: 1050;
13
- display: none;
14
- width: 100%;
15
- height: 100%;
16
- overflow: hidden;
17
- outline: 0;
18
- }
19
- .modal-dialog {
20
- position: relative;
21
- width: auto;
22
- margin: 0.5rem;
23
- pointer-events: none;
24
- }
25
- .modal.fade .modal-dialog {
26
- transition: transform 0.3s ease-out;
27
- transform: translate(0, -50px);
28
- }
29
-
30
- .fade {
31
- transition: opacity 0.15s linear;
32
- }
33
- .fade:not(.show) {
34
- opacity: 0;
35
- }
36
- @media (prefers-reduced-motion: reduce) {
37
- .modal.fade .modal-dialog {
38
- transition: none;
39
- }
40
- }
41
- .modal.show .modal-dialog {
42
- transform: none;
43
- }
44
- .modal.modal-static .modal-dialog {
45
- transform: scale(1.02);
46
- }
47
- .modal-dialog-scrollable {
48
- display: flex;
49
- max-height: subtract(100%, 1rem);
50
- }
51
- .modal-dialog-scrollable .modal-content {
52
- max-height: subtract(100vh, 1rem);
53
- overflow: hidden;
54
- }
55
- .modal-dialog-scrollable .modal-header,
56
- .modal-dialog-scrollable .modal-footer {
57
- flex-shrink: 0;
58
- }
59
- .modal-dialog-scrollable .modal-body {
60
- overflow-y: auto;
61
- }
62
- .modal-dialog-centered {
63
- display: flex;
64
- align-items: center;
65
- min-height: subtract(100%, 1rem);
66
- }
67
- .modal-dialog-centered::before {
68
- display: block;
69
- height: subtract(100vh, 1rem);
70
- height: -webkit-min-content;
71
- height: min-content;
72
- content: "";
73
- }
74
- .modal-dialog-centered.modal-dialog-scrollable {
75
- flex-direction: column;
76
- justify-content: center;
77
- height: 100%;
78
- }
79
- .modal-dialog-centered.modal-dialog-scrollable .modal-content {
80
- max-height: none;
81
- }
82
- .modal-dialog-centered.modal-dialog-scrollable::before {
83
- content: none;
84
- }
85
- .modal-content {
86
- position: relative;
87
- display: flex;
88
- flex-direction: column;
89
- width: 100%;
90
- pointer-events: auto;
91
- background-color: #fff;
92
- background-clip: padding-box;
93
- border: 1px solid rgba(0, 0, 0, 0.2);
94
- border-radius: 0.3rem;
95
- outline: 0;
96
- }
97
- .modal-backdrop {
98
- position: fixed;
99
- top: 0;
100
- left: 0;
101
- z-index: 1040;
102
- width: 100vw;
103
- height: 100vh;
104
- background-color: #000;
105
- }
106
- .modal-backdrop.fade {
107
- opacity: 0;
108
- }
109
- .modal-backdrop.show {
110
- opacity: 0.5;
111
- }
112
- .modal-scrollbar-measure {
113
- position: absolute;
114
- top: -9999px;
115
- width: 50px;
116
- height: 50px;
117
- overflow: scroll;
118
- }
119
- @media (min-width: 576px) {
120
- .modal-dialog {
121
- max-width: 500px;
122
- margin: 1.75rem auto;
123
- }
124
-
125
- .modal-dialog-scrollable {
126
- max-height: subtract(100%, 3.5rem);
127
- }
128
- .modal-dialog-scrollable .modal-content {
129
- max-height: subtract(100vh, 3.5rem);
130
- }
131
-
132
- .modal-dialog-centered {
133
- min-height: subtract(100%, 3.5rem);
134
- }
135
- .modal-dialog-centered::before {
136
- height: subtract(100vh, 3.5rem);
137
- height: -webkit-min-content;
138
- height: min-content;
139
- }
140
-
141
- .modal-sm {
142
- max-width: 300px;
143
- }
144
- }
145
- @media (min-width: 992px) {
146
- .modal-lg,
147
- .modal-xl {
148
- max-width: 800px;
149
- }
150
- }
151
- @media (min-width: 1200px) {
152
- .modal-xl {
153
- max-width: 1140px;
154
- }
155
- }
156
-
157
- /*# sourceMappingURL=styles.css.map*/
1
+ .modal-open {
2
+ overflow: hidden;
3
+ }
4
+ .modal-open .modal {
5
+ overflow-x: hidden;
6
+ overflow-y: auto;
7
+ }
8
+ .modal {
9
+ position: fixed;
10
+ top: 0;
11
+ left: 0;
12
+ z-index: 1050;
13
+ display: none;
14
+ width: 100%;
15
+ height: 100%;
16
+ overflow: hidden;
17
+ outline: 0;
18
+ }
19
+ .modal-dialog {
20
+ position: relative;
21
+ width: auto;
22
+ margin: 0.5rem;
23
+ pointer-events: none;
24
+ }
25
+ .modal.fade .modal-dialog {
26
+ transition: transform 0.3s ease-out;
27
+ transform: translate(0, -50px);
28
+ }
29
+
30
+ .fade {
31
+ transition: opacity 0.15s linear;
32
+ }
33
+ .fade:not(.show) {
34
+ opacity: 0;
35
+ }
36
+ @media (prefers-reduced-motion: reduce) {
37
+ .modal.fade .modal-dialog {
38
+ transition: none;
39
+ }
40
+ }
41
+ .modal.show .modal-dialog {
42
+ transform: none;
43
+ }
44
+ .modal.modal-static .modal-dialog {
45
+ transform: scale(1.02);
46
+ }
47
+ .modal-dialog-scrollable {
48
+ display: flex;
49
+ max-height: subtract(100%, 1rem);
50
+ }
51
+ .modal-dialog-scrollable .modal-content {
52
+ max-height: subtract(100vh, 1rem);
53
+ overflow: hidden;
54
+ }
55
+ .modal-dialog-scrollable .modal-header,
56
+ .modal-dialog-scrollable .modal-footer {
57
+ flex-shrink: 0;
58
+ }
59
+ .modal-dialog-scrollable .modal-body {
60
+ overflow-y: auto;
61
+ }
62
+ .modal-dialog-centered {
63
+ display: flex;
64
+ align-items: center;
65
+ min-height: subtract(100%, 1rem);
66
+ }
67
+ .modal-dialog-centered::before {
68
+ display: block;
69
+ height: subtract(100vh, 1rem);
70
+ height: -webkit-min-content;
71
+ height: min-content;
72
+ content: "";
73
+ }
74
+ .modal-dialog-centered.modal-dialog-scrollable {
75
+ flex-direction: column;
76
+ justify-content: center;
77
+ height: 100%;
78
+ }
79
+ .modal-dialog-centered.modal-dialog-scrollable .modal-content {
80
+ max-height: none;
81
+ }
82
+ .modal-dialog-centered.modal-dialog-scrollable::before {
83
+ content: none;
84
+ }
85
+ .modal-content {
86
+ position: relative;
87
+ display: flex;
88
+ flex-direction: column;
89
+ width: 100%;
90
+ pointer-events: auto;
91
+ background-color: #fff;
92
+ background-clip: padding-box;
93
+ border: 1px solid rgba(0, 0, 0, 0.2);
94
+ border-radius: 0.3rem;
95
+ outline: 0;
96
+ }
97
+ .modal-backdrop {
98
+ position: fixed;
99
+ top: 0;
100
+ left: 0;
101
+ z-index: 1040;
102
+ width: 100vw;
103
+ height: 100vh;
104
+ background-color: #000;
105
+ }
106
+ .modal-backdrop.fade {
107
+ opacity: 0;
108
+ }
109
+ .modal-backdrop.show {
110
+ opacity: 0.5;
111
+ }
112
+ .modal-scrollbar-measure {
113
+ position: absolute;
114
+ top: -9999px;
115
+ width: 50px;
116
+ height: 50px;
117
+ overflow: scroll;
118
+ }
119
+ @media (min-width: 576px) {
120
+ .modal-dialog {
121
+ max-width: 500px;
122
+ margin: 1.75rem auto;
123
+ }
124
+
125
+ .modal-dialog-scrollable {
126
+ max-height: subtract(100%, 3.5rem);
127
+ }
128
+ .modal-dialog-scrollable .modal-content {
129
+ max-height: subtract(100vh, 3.5rem);
130
+ }
131
+
132
+ .modal-dialog-centered {
133
+ min-height: subtract(100%, 3.5rem);
134
+ }
135
+ .modal-dialog-centered::before {
136
+ height: subtract(100vh, 3.5rem);
137
+ height: -webkit-min-content;
138
+ height: min-content;
139
+ }
140
+
141
+ .modal-sm {
142
+ max-width: 300px;
143
+ }
144
+ }
145
+ @media (min-width: 992px) {
146
+ .modal-lg,
147
+ .modal-xl {
148
+ max-width: 800px;
149
+ }
150
+ }
151
+ @media (min-width: 1200px) {
152
+ .modal-xl {
153
+ max-width: 1140px;
154
+ }
155
+ }
156
+
157
+ /*# sourceMappingURL=styles.css.map*/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indice/ng-components",
3
- "version": "0.2.167",
3
+ "version": "0.2.169",
4
4
  "description": "Indice common components for Angular v12",
5
5
  "repository": {
6
6
  "type": "git",
package/public-api.d.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  export * from './lib/directives/click-outside.directive';
2
2
  export * from './lib/controls/drop-down-menu/drop-down-menu.component';
3
3
  export * from './lib/controls/pager/pager.component';
4
+ export * from './lib/controls/breadcrumb/breadcrumb.component';
5
+ export * from './lib/controls/breadcrumb/breadcrumb-item';
4
6
  export * from './lib/controls/list-view/list-view.component';
5
7
  export * from './lib/controls/list-view/list-column.component';
6
8
  export * from './lib/controls/list-view/list-tile.component';
@@ -19,11 +21,14 @@ export * from './lib/controls/nav-links-list/nav-links-list.component';
19
21
  export * from './lib/controls/combobox/combobox.component';
20
22
  export * from './lib/controls/tabs/lib-tab.component';
21
23
  export * from './lib/controls/tabs/lib-tab-group.component';
24
+ export * from './lib/controls/tabs/lib-tab-label.directive';
22
25
  export * from './lib/controls/stepper/lib-stepper.component';
23
26
  export * from './lib/controls/stepper/lib-step.component';
24
27
  export * from './lib/controls/stepper/lib-step-label.directive';
25
28
  export * from './lib/controls/stepper/lib-step-info.directive';
26
29
  export * from './lib/controls/stepper/types/stepper-type';
30
+ export * from './lib/controls/toggle-button/toggle-button.component';
31
+ export * from './lib/controls/toggle-buttons-list/toggle-buttons-list.component';
27
32
  export * from './lib/layouts/shell/shell-layout/shell-layout.component';
28
33
  export * from './lib/layouts/shell/shell-header/shell-header.component';
29
34
  export * from './lib/layouts/shell/shell-footer/shell-footer.component';
@@ -50,4 +55,6 @@ export * from './lib/services/modal-service/modal-service';
50
55
  export { ModalOptions, MODAL_CONFIG_DEFAULT_OVERRIDE, CloseInterceptorFn } from './lib/services/modal-service/modal-options.class';
51
56
  export * from './lib/services/modal-service/modal.class';
52
57
  export * from './lib/services/toaster.service';
58
+ export * from './lib/services/breadcrumb.service';
59
+ export * from './lib/services/user-settings.service';
53
60
  export * from './lib/ng-components.module';