@gloww/gloww 19.0.0-beta.3 → 19.0.0-beta.5

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,7 +1,7 @@
1
1
  const path = require('path');
2
2
  const fs = require('fs');
3
3
  const util = require('util');
4
- const yargs = require('yargs');
4
+ const yargs = require('yargs/yargs')(process.argv.slice(2));
5
5
 
6
6
  // get application version from package.json
7
7
  console.log(`Current directory: ${process.cwd()}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gloww/gloww",
3
- "version": "19.0.0-beta.3",
3
+ "version": "19.0.0-beta.5",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.0.0",
6
6
  "@angular/core": "^19.0.0",
package/gloww.theme.scss DELETED
@@ -1,196 +0,0 @@
1
- @use 'sass:map';
2
- @use '@angular/material' as mat;
3
- //@use 'sass:map';
4
-
5
- @mixin menu-list-item-component-theme($theme) {
6
- $color-map: map.get($theme, color);
7
- $primary-palette: map.get($color-map, primary);
8
- $primary-color: map.get($primary-palette, default);
9
- $active-bg: map.get($primary-palette, 50);
10
- $hover-bg: map.get($primary-palette, 100);
11
-
12
- mat-nav-list mat-icon i {
13
- color: $primary-color;
14
- }
15
-
16
- .thisMenu {
17
- // État actif du lien
18
- .menu-list-item.active {
19
- background-color: $active-bg;
20
- color: $primary-color;
21
- }
22
-
23
- // États de survol et focus
24
- &:hover,
25
- &:focus {
26
- .menu-list-item:not(.expanded) {
27
- background-color: $hover-bg !important;
28
- }
29
- }
30
- }
31
- }
32
-
33
- // Styles de base du composant
34
- .thisMenu {
35
- display: flex; // Remplace fxLayout="row"
36
- flex-direction: row;
37
- align-items: center; // Aligne verticalement l'icône, le texte et l'expansion
38
- outline: none;
39
- width: calc(100% - 20px); // Conserve ton dimensionnement spécifique
40
- margin: 10px;
41
- cursor: pointer;
42
- }
43
-
44
- .menu-list-item {
45
- display: flex;
46
- align-items: center;
47
- flex: 1; // REMPLACE fxFlex : prend toute la place pour pousser l'icône à droite
48
- padding: 8px 0;
49
- text-decoration: none;
50
- color: inherit;
51
- min-width: 0; // Sécurité pour éviter que le texte ne casse le layout
52
-
53
- .routeIcon {
54
- margin-right: 20px; // Ajusté selon tes deux définitions précédentes
55
- flex-shrink: 0; // L'icône ne doit jamais rétrécir
56
- }
57
-
58
- .menu-label {
59
- white-space: nowrap;
60
- overflow: hidden;
61
- text-overflow: ellipsis; // Coupe proprement le texte trop long
62
- }
63
- }
64
-
65
- .expand-container {
66
- display: flex;
67
- align-items: center;
68
- justify-content: center;
69
- flex-shrink: 0; // L'icône d'expansion reste fixe à droite
70
- }
71
-
72
- mat-icon {
73
- height: 32px;
74
- width: 40px;
75
- display: flex;
76
- align-items: center;
77
- justify-content: center;
78
- }
79
-
80
- .expandIcon {
81
- cursor: pointer;
82
- }
83
-
84
- // Gestion des états désactivés
85
- :disabled,
86
- .disabled {
87
- color: lightgrey !important;
88
- pointer-events: none; // Empêche le clic si désactivé
89
-
90
- mat-icon i {
91
- color: lightgrey !important;
92
- }
93
- }
94
-
95
- .CodeMirror {
96
- /*height: 95%;*/
97
- resize: both;
98
- padding: 0px;
99
- margin: 0px;
100
- }
101
-
102
- .sameSize {
103
- padding: 0px;
104
- margin: 0px;
105
- border: 1px solid;
106
- }
107
-
108
- @mixin code-editor-component-theme($theme) {
109
- // Get the color config from the theme.
110
- $warn-color: mat.get-theme-color($theme, warn);
111
- gloww-code-editor.ng-invalid .mainDiv {
112
- border: 1px solid $warn-color;
113
- }
114
- }
115
-
116
- .mainDiv {
117
- // Remplacent fxLayout="column", fxFill, fxLayoutAlign="stretch"
118
- display: flex;
119
- flex-direction: column;
120
- align-items: stretch;
121
- width: 100%;
122
- height: 100%;
123
- min-height: 100%;
124
- }
125
-
126
- .snippet-header {
127
- // Remplace fxLayout="row"
128
- display: flex;
129
- flex-direction: row;
130
- align-items: center; // Aligne verticalement le select et le bouton
131
- gap: 8px; // Ajoute un espace propre entre les éléments (plus simple que fxLayoutGap)
132
- width: 100%;
133
- }
134
-
135
- .snippet-select {
136
- // Remplace fxFlex
137
- flex: 1 1 auto;
138
- }
139
-
140
- .editor-full-width {
141
- width: 100%;
142
- // Si fxFlex était aussi sur le codemirror, ajoutez : flex: 1 1 auto;
143
- }
144
- @mixin auto-complete-component-theme($theme) {
145
- // Get the color config from the theme.
146
- $warn-color: mat.get-theme-color($theme, warn);
147
- /*TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version.*/
148
- gloww-auto-complete.ng-invalid .autocff .mat-form-field-underline {
149
- background-color: $warn-color;
150
- ;
151
- }
152
- /*TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version.*/
153
- gloww-auto-complete.ng-invalid .autocff .mat-form-field-label {
154
- color: $warn-color;
155
- }
156
- }
157
- @mixin gloww-lib-theme($theme) {
158
- @include code-editor-component-theme($theme);
159
- @include menu-list-item-component-theme($theme);
160
- @include auto-complete-component-theme($theme);
161
- html,
162
- body {
163
- height: 100%;
164
- }
165
- body {
166
- margin: 0;
167
- font-family: Roboto, "Helvetica Neue", sans-serif;
168
- }
169
- .cdk-overlay-pane {
170
- width: unset !important;
171
- height: unset !important;
172
- max-width: 100% !important;
173
- max-height: 90% !important;
174
- }
175
- .mat-mdc-dialog-container {
176
- max-width: 100%;
177
- max-height: 90% !important;
178
- //height: unset !important;
179
- resize: both;
180
- }
181
- .dlg {
182
- display: flex;
183
- flex-direction: column;
184
- height: 100%;
185
- }
186
- /*TODO(mdc-migration): The following rule targets internal classes of dialog that may no longer apply for the MDC version.*/
187
- mat-dialog-content {
188
- flex-grow: 1;
189
- max-height: 80vh !important;
190
- /*max-height: unset !important;*/
191
- }
192
- td.mat-mdc-cell {
193
- padding-right: 10px !important;
194
- padding-left: 10px !important;
195
- }
196
- }