ngwr 0.1.3 → 0.2.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.
- package/LICENSE +3 -1
- package/README.md +35 -22
- package/_index.scss +27 -0
- package/button/{button.module.d.ts → button-module.d.ts} +4 -4
- package/button/button.d.ts +58 -0
- package/button/button.scss +160 -0
- package/button/index.d.ts +2 -2
- package/checkbox/{checkbox.module.d.ts → checkbox-module.d.ts} +2 -2
- package/checkbox/checkbox.d.ts +49 -0
- package/checkbox/checkbox.scss +103 -0
- package/checkbox/index.d.ts +2 -2
- package/core/abstract/base.d.ts +9 -0
- package/core/abstract/index.d.ts +1 -0
- package/core/color/color.d.ts +2 -0
- package/core/color/index.d.ts +2 -0
- package/core/color/is-theme-color.d.ts +2 -0
- package/core/decorators/index.d.ts +1 -0
- package/core/decorators/input-boolean.d.ts +1 -0
- package/core/types/index.d.ts +3 -0
- package/{_core → core}/types/on-change-type.d.ts +0 -0
- package/{_core → core}/types/on-touched-type.d.ts +0 -0
- package/{_core → core}/types/safe-any.d.ts +0 -0
- package/divider/{divider.module.d.ts → divider-module.d.ts} +2 -2
- package/divider/divider.d.ts +40 -0
- package/divider/divider.scss +34 -0
- package/divider/index.d.ts +2 -2
- package/esm2020/button/button-module.mjs +20 -0
- package/esm2020/button/button.mjs +187 -0
- package/esm2020/button/index.mjs +3 -3
- package/esm2020/button/ngwr-button.mjs +5 -0
- package/esm2020/checkbox/checkbox-module.mjs +20 -0
- package/esm2020/checkbox/checkbox.mjs +154 -0
- package/esm2020/checkbox/index.mjs +3 -3
- package/esm2020/checkbox/ngwr-checkbox.mjs +5 -0
- package/esm2020/core/abstract/base.mjs +18 -0
- package/esm2020/core/abstract/index.mjs +2 -0
- package/esm2020/core/abstract/ngwr-core-abstract.mjs +5 -0
- package/esm2020/core/color/color.mjs +11 -0
- package/esm2020/core/color/index.mjs +3 -0
- package/esm2020/core/color/is-theme-color.mjs +9 -0
- package/esm2020/core/color/ngwr-core-color.mjs +5 -0
- package/esm2020/core/decorators/index.mjs +2 -0
- package/esm2020/core/decorators/input-boolean.mjs +15 -0
- package/esm2020/core/decorators/ngwr-core-decorators.mjs +5 -0
- package/esm2020/core/types/index.mjs +4 -0
- package/esm2020/core/types/ngwr-core-types.mjs +5 -0
- package/esm2020/core/types/on-change-type.mjs +2 -0
- package/esm2020/core/types/on-touched-type.mjs +2 -0
- package/esm2020/core/types/safe-any.mjs +2 -0
- package/esm2020/divider/divider-module.mjs +16 -0
- package/esm2020/divider/divider.mjs +100 -0
- package/esm2020/divider/index.mjs +3 -3
- package/esm2020/divider/ngwr-divider.mjs +5 -0
- package/esm2020/form/form-error.mjs +23 -0
- package/esm2020/form/form-item.mjs +46 -0
- package/esm2020/form/form-module.mjs +19 -0
- package/esm2020/form/index.mjs +4 -4
- package/esm2020/form/ngwr-form.mjs +5 -0
- package/esm2020/icon/icon-module.mjs +21 -0
- package/esm2020/icon/icon-service.mjs +21 -0
- package/esm2020/icon/icon.mjs +60 -0
- package/esm2020/icon/icons.mjs +424 -0
- package/esm2020/icon/index.mjs +5 -5
- package/esm2020/icon/ngwr-icon.mjs +5 -0
- package/esm2020/index.mjs +3 -0
- package/esm2020/input/index.mjs +3 -3
- package/esm2020/input/input-module.mjs +20 -0
- package/esm2020/input/input-types.mjs +2 -0
- package/esm2020/input/input.mjs +240 -0
- package/esm2020/input/ngwr-input.mjs +5 -0
- package/esm2020/ngwr.mjs +2 -2
- package/esm2020/skeleton/index.mjs +3 -3
- package/esm2020/skeleton/ngwr-skeleton.mjs +5 -0
- package/esm2020/skeleton/skeleton-module.mjs +18 -0
- package/esm2020/skeleton/skeleton.mjs +44 -0
- package/esm2020/spinner/index.mjs +3 -3
- package/esm2020/spinner/ngwr-spinner.mjs +5 -0
- package/esm2020/spinner/spinner-module.mjs +16 -0
- package/esm2020/spinner/spinner.mjs +23 -0
- package/esm2020/tag/index.mjs +3 -3
- package/esm2020/tag/ngwr-tag.mjs +5 -0
- package/esm2020/tag/tag-module.mjs +20 -0
- package/esm2020/tag/tag.mjs +80 -0
- package/fesm2015/ngwr-button.mjs +211 -0
- package/fesm2015/ngwr-button.mjs.map +1 -0
- package/fesm2015/ngwr-checkbox.mjs +177 -0
- package/fesm2015/ngwr-checkbox.mjs.map +1 -0
- package/fesm2015/ngwr-core-abstract.mjs +25 -0
- package/fesm2015/ngwr-core-abstract.mjs.map +1 -0
- package/fesm2015/ngwr-core-color.mjs +25 -0
- package/fesm2015/ngwr-core-color.mjs.map +1 -0
- package/fesm2015/ngwr-core-decorators.mjs +22 -0
- package/fesm2015/ngwr-core-decorators.mjs.map +1 -0
- package/fesm2015/ngwr-core-types.mjs +4 -0
- package/fesm2015/ngwr-core-types.mjs.map +1 -0
- package/fesm2015/ngwr-divider.mjs +120 -0
- package/fesm2015/ngwr-divider.mjs.map +1 -0
- package/fesm2015/ngwr-form.mjs +89 -0
- package/fesm2015/ngwr-form.mjs.map +1 -0
- package/fesm2015/ngwr-icon.mjs +527 -0
- package/fesm2015/ngwr-icon.mjs.map +1 -0
- package/fesm2015/ngwr-input.mjs +262 -0
- package/fesm2015/ngwr-input.mjs.map +1 -0
- package/fesm2015/ngwr-skeleton.mjs +66 -0
- package/fesm2015/ngwr-skeleton.mjs.map +1 -0
- package/fesm2015/ngwr-spinner.mjs +43 -0
- package/fesm2015/ngwr-spinner.mjs.map +1 -0
- package/fesm2015/ngwr-tag.mjs +104 -0
- package/fesm2015/ngwr-tag.mjs.map +1 -0
- package/fesm2015/ngwr.mjs +2 -1404
- package/fesm2015/ngwr.mjs.map +1 -1
- package/fesm2020/ngwr-button.mjs +211 -0
- package/fesm2020/ngwr-button.mjs.map +1 -0
- package/fesm2020/ngwr-checkbox.mjs +177 -0
- package/fesm2020/ngwr-checkbox.mjs.map +1 -0
- package/fesm2020/ngwr-core-abstract.mjs +25 -0
- package/fesm2020/ngwr-core-abstract.mjs.map +1 -0
- package/fesm2020/ngwr-core-color.mjs +25 -0
- package/fesm2020/ngwr-core-color.mjs.map +1 -0
- package/fesm2020/ngwr-core-decorators.mjs +22 -0
- package/fesm2020/ngwr-core-decorators.mjs.map +1 -0
- package/fesm2020/ngwr-core-types.mjs +4 -0
- package/fesm2020/ngwr-core-types.mjs.map +1 -0
- package/fesm2020/ngwr-divider.mjs +120 -0
- package/fesm2020/ngwr-divider.mjs.map +1 -0
- package/fesm2020/ngwr-form.mjs +89 -0
- package/fesm2020/ngwr-form.mjs.map +1 -0
- package/fesm2020/ngwr-icon.mjs +525 -0
- package/fesm2020/ngwr-icon.mjs.map +1 -0
- package/fesm2020/ngwr-input.mjs +263 -0
- package/fesm2020/ngwr-input.mjs.map +1 -0
- package/fesm2020/ngwr-skeleton.mjs +66 -0
- package/fesm2020/ngwr-skeleton.mjs.map +1 -0
- package/fesm2020/ngwr-spinner.mjs +43 -0
- package/fesm2020/ngwr-spinner.mjs.map +1 -0
- package/fesm2020/ngwr-tag.mjs +104 -0
- package/fesm2020/ngwr-tag.mjs.map +1 -0
- package/fesm2020/ngwr.mjs +2 -1402
- package/fesm2020/ngwr.mjs.map +1 -1
- package/form/form-error.d.ts +6 -0
- package/form/form-item.d.ts +15 -0
- package/form/{form.module.d.ts → form-module.d.ts} +3 -3
- package/form/form.scss +52 -0
- package/form/index.d.ts +3 -3
- package/icon/{wr-icon.module.d.ts → icon-module.d.ts} +2 -2
- package/icon/{wr-icon.service.d.ts → icon-service.d.ts} +0 -9
- package/icon/icon.d.ts +20 -0
- package/icon/icon.scss +27 -0
- package/icon/{wr-icons.d.ts → icons.d.ts} +59 -3
- package/icon/index.d.ts +4 -4
- package/index.d.ts +2 -5
- package/input/index.d.ts +2 -2
- package/input/{input.module.d.ts → input-module.d.ts} +3 -3
- package/{_core/types/input-autocomplete-type.d.ts → input/input-types.d.ts} +2 -0
- package/input/{input.component.d.ts → input.d.ts} +7 -4
- package/input/input.scss +163 -0
- package/logo.svg +6 -1
- package/package.json +124 -19
- package/skeleton/index.d.ts +2 -2
- package/skeleton/{skeleton.module.d.ts → skeleton-module.d.ts} +2 -2
- package/skeleton/skeleton.d.ts +11 -0
- package/skeleton/skeleton.scss +54 -0
- package/spinner/index.d.ts +2 -2
- package/spinner/{spinner.module.d.ts → spinner-module.d.ts} +2 -2
- package/spinner/spinner.d.ts +6 -0
- package/spinner/spinner.scss +33 -0
- package/styles/animations.scss +14 -0
- package/styles/grid.scss +164 -0
- package/styles/reset.scss +106 -0
- package/styles/root.scss +152 -0
- package/styles/vars.scss +2 -0
- package/tag/index.d.ts +2 -2
- package/tag/{tag.module.d.ts → tag-module.d.ts} +4 -4
- package/tag/tag.d.ts +18 -0
- package/tag/tag.scss +106 -0
- package/_core/components/base.component.d.ts +0 -9
- package/_core/constants/style-prefix.d.ts +0 -1
- package/_core/index.d.ts +0 -4
- package/_core/types/boolean-input.d.ts +0 -1
- package/_core/types/color.d.ts +0 -1
- package/_core/types/index.d.ts +0 -8
- package/_core/types/input-mode-type.d.ts +0 -1
- package/_core/types/input-type.d.ts +0 -1
- package/_core/util/convert.d.ts +0 -19
- package/button/button.component.d.ts +0 -36
- package/checkbox/checkbox.component.d.ts +0 -32
- package/divider/divider.component.d.ts +0 -28
- package/esm2020/_core/components/base.component.mjs +0 -18
- package/esm2020/_core/constants/style-prefix.mjs +0 -2
- package/esm2020/_core/index.mjs +0 -9
- package/esm2020/_core/types/boolean-input.mjs +0 -2
- package/esm2020/_core/types/color.mjs +0 -2
- package/esm2020/_core/types/index.mjs +0 -2
- package/esm2020/_core/types/input-autocomplete-type.mjs +0 -2
- package/esm2020/_core/types/input-mode-type.mjs +0 -2
- package/esm2020/_core/types/input-type.mjs +0 -2
- package/esm2020/_core/types/on-change-type.mjs +0 -2
- package/esm2020/_core/types/on-touched-type.mjs +0 -2
- package/esm2020/_core/types/safe-any.mjs +0 -2
- package/esm2020/_core/util/convert.mjs +0 -51
- package/esm2020/button/button.component.mjs +0 -137
- package/esm2020/button/button.module.mjs +0 -20
- package/esm2020/checkbox/checkbox.component.mjs +0 -128
- package/esm2020/checkbox/checkbox.module.mjs +0 -20
- package/esm2020/divider/divider.component.mjs +0 -72
- package/esm2020/divider/divider.module.mjs +0 -16
- package/esm2020/form/form-error.component.mjs +0 -23
- package/esm2020/form/form-item.component.mjs +0 -35
- package/esm2020/form/form.module.mjs +0 -19
- package/esm2020/icon/wr-icon.component.mjs +0 -51
- package/esm2020/icon/wr-icon.module.mjs +0 -21
- package/esm2020/icon/wr-icon.service.mjs +0 -30
- package/esm2020/icon/wr-icons.mjs +0 -384
- package/esm2020/input/input.component.mjs +0 -239
- package/esm2020/input/input.module.mjs +0 -20
- package/esm2020/public-api.mjs +0 -11
- package/esm2020/skeleton/skeleton.component.mjs +0 -47
- package/esm2020/skeleton/skeleton.module.mjs +0 -18
- package/esm2020/spinner/spinner.component.mjs +0 -23
- package/esm2020/spinner/spinner.module.mjs +0 -16
- package/esm2020/tag/tag.component.mjs +0 -80
- package/esm2020/tag/tag.module.mjs +0 -20
- package/form/form-error.component.d.ts +0 -6
- package/form/form-item.component.d.ts +0 -8
- package/icon/wr-icon.component.d.ts +0 -17
- package/ngwr.min.css +0 -8
- package/public-api.d.ts +0 -10
- package/skeleton/skeleton.component.d.ts +0 -9
- package/spinner/spinner.component.d.ts +0 -6
- package/tag/tag.component.d.ts +0 -16
|
@@ -66,10 +66,18 @@ export declare const wrIconBug: {
|
|
|
66
66
|
name: 'bug';
|
|
67
67
|
data: string;
|
|
68
68
|
};
|
|
69
|
+
export declare const wrIconCaretBackCircle: {
|
|
70
|
+
name: 'caret-back-circle';
|
|
71
|
+
data: string;
|
|
72
|
+
};
|
|
69
73
|
export declare const wrIconCaretBack: {
|
|
70
74
|
name: 'caret-back';
|
|
71
75
|
data: string;
|
|
72
76
|
};
|
|
77
|
+
export declare const wrIconCaretForwardCircle: {
|
|
78
|
+
name: 'caret-forward-circle';
|
|
79
|
+
data: string;
|
|
80
|
+
};
|
|
73
81
|
export declare const wrIconCaretForward: {
|
|
74
82
|
name: 'caret-forward';
|
|
75
83
|
data: string;
|
|
@@ -206,14 +214,26 @@ export declare const wrIconLogoAppscreener: {
|
|
|
206
214
|
name: 'logo-appscreener';
|
|
207
215
|
data: string;
|
|
208
216
|
};
|
|
217
|
+
export declare const wrIconLogoAppstore: {
|
|
218
|
+
name: 'logo-appstore';
|
|
219
|
+
data: string;
|
|
220
|
+
};
|
|
209
221
|
export declare const wrIconLogoGithub: {
|
|
210
222
|
name: 'logo-github';
|
|
211
223
|
data: string;
|
|
212
224
|
};
|
|
225
|
+
export declare const wrIconLogoGooglePlay: {
|
|
226
|
+
name: 'logo-google-play';
|
|
227
|
+
data: string;
|
|
228
|
+
};
|
|
213
229
|
export declare const wrIconLogoOversecured: {
|
|
214
230
|
name: 'logo-oversecured';
|
|
215
231
|
data: string;
|
|
216
232
|
};
|
|
233
|
+
export declare const wrIconLogoRustore: {
|
|
234
|
+
name: 'logo-rustore';
|
|
235
|
+
data: string;
|
|
236
|
+
};
|
|
217
237
|
export declare const wrIconLogoStingray: {
|
|
218
238
|
name: 'logo-stingray';
|
|
219
239
|
data: string;
|
|
@@ -222,6 +242,10 @@ export declare const wrIconModules: {
|
|
|
222
242
|
name: 'modules';
|
|
223
243
|
data: string;
|
|
224
244
|
};
|
|
245
|
+
export declare const wrIconMoon: {
|
|
246
|
+
name: 'moon';
|
|
247
|
+
data: string;
|
|
248
|
+
};
|
|
225
249
|
export declare const wrIconPlayBack: {
|
|
226
250
|
name: 'play-back';
|
|
227
251
|
data: string;
|
|
@@ -278,6 +302,14 @@ export declare const wrIconStop: {
|
|
|
278
302
|
name: 'stop';
|
|
279
303
|
data: string;
|
|
280
304
|
};
|
|
305
|
+
export declare const wrIconSun: {
|
|
306
|
+
name: 'sun';
|
|
307
|
+
data: string;
|
|
308
|
+
};
|
|
309
|
+
export declare const wrIconTerminal: {
|
|
310
|
+
name: 'terminal';
|
|
311
|
+
data: string;
|
|
312
|
+
};
|
|
281
313
|
export declare const wrIconTrash: {
|
|
282
314
|
name: 'trash';
|
|
283
315
|
data: string;
|
|
@@ -302,12 +334,12 @@ export declare const wrIconWarning: {
|
|
|
302
334
|
name: 'warning';
|
|
303
335
|
data: string;
|
|
304
336
|
};
|
|
305
|
-
export declare type wrIconName = 'add-circle-outline' | 'add-circle' | 'add' | 'alert-circle-outline' | 'alert-circle' | 'alert-squircle' | 'alert' | 'arrow-back-circle' | 'arrow-back' | 'arrow-bottom-circle' | 'arrow-bottom' | 'arrow-forward-circle' | 'arrow-forward' | 'arrow-top-circle' | 'arrow-top' | 'bug-outline' | 'bug' | 'caret-back' | 'caret-forward' | 'checkmark-circle-outline' | 'checkmark-circle' | 'checkmark' | 'chevron-down' | 'chevron-up' | 'clock' | 'close-circle' | 'cog' | 'copy-outline' | 'copy' | 'discover' | 'document' | 'dots-horizontal' | 'dots-vertical' | 'download' | 'eye-off' | 'eye' | 'file-aab' | 'file-apk' | 'file-ipa' | 'file-zip' | 'filter-outline' | 'filter' | 'flash' | 'folder' | 'help' | 'home' | 'info-circle-outline' | 'lock-opened' | 'lock' | 'logo-android' | 'logo-apple' | 'logo-appscreener' | 'logo-github' | 'logo-oversecured' | 'logo-stingray' | 'modules' | 'play-back' | 'play-circle' | 'play-forward' | 'play' | 'plus-circle' | 'reader' | 'repeat' | 'search' | 'shield-checkmark-outline' | 'shield-checkmark' | 'shield-outline' | 'shield' | 'stop-circle' | 'stop' | 'trash' | 'user-add' | 'user-circle' | 'user-remove' | 'user' | 'warning';
|
|
306
|
-
export interface
|
|
337
|
+
export declare type wrIconName = 'add-circle-outline' | 'add-circle' | 'add' | 'alert-circle-outline' | 'alert-circle' | 'alert-squircle' | 'alert' | 'arrow-back-circle' | 'arrow-back' | 'arrow-bottom-circle' | 'arrow-bottom' | 'arrow-forward-circle' | 'arrow-forward' | 'arrow-top-circle' | 'arrow-top' | 'bug-outline' | 'bug' | 'caret-back-circle' | 'caret-back' | 'caret-forward-circle' | 'caret-forward' | 'checkmark-circle-outline' | 'checkmark-circle' | 'checkmark' | 'chevron-down' | 'chevron-up' | 'clock' | 'close-circle' | 'cog' | 'copy-outline' | 'copy' | 'discover' | 'document' | 'dots-horizontal' | 'dots-vertical' | 'download' | 'eye-off' | 'eye' | 'file-aab' | 'file-apk' | 'file-ipa' | 'file-zip' | 'filter-outline' | 'filter' | 'flash' | 'folder' | 'help' | 'home' | 'info-circle-outline' | 'lock-opened' | 'lock' | 'logo-android' | 'logo-apple' | 'logo-appscreener' | 'logo-appstore' | 'logo-github' | 'logo-google-play' | 'logo-oversecured' | 'logo-rustore' | 'logo-stingray' | 'modules' | 'moon' | 'play-back' | 'play-circle' | 'play-forward' | 'play' | 'plus-circle' | 'reader' | 'repeat' | 'search' | 'shield-checkmark-outline' | 'shield-checkmark' | 'shield-outline' | 'shield' | 'stop-circle' | 'stop' | 'sun' | 'terminal' | 'trash' | 'user-add' | 'user-circle' | 'user-remove' | 'user' | 'warning';
|
|
338
|
+
export interface IWrIcon {
|
|
307
339
|
name: wrIconName;
|
|
308
340
|
data: string;
|
|
309
341
|
}
|
|
310
|
-
export declare type
|
|
342
|
+
export declare type IWrIconNameSubset<T extends Readonly<IWrIcon[]>> = T[number]['name'];
|
|
311
343
|
export declare const wrIconSet: ({
|
|
312
344
|
name: 'add-circle-outline';
|
|
313
345
|
data: string;
|
|
@@ -359,9 +391,15 @@ export declare const wrIconSet: ({
|
|
|
359
391
|
} | {
|
|
360
392
|
name: 'bug';
|
|
361
393
|
data: string;
|
|
394
|
+
} | {
|
|
395
|
+
name: 'caret-back-circle';
|
|
396
|
+
data: string;
|
|
362
397
|
} | {
|
|
363
398
|
name: 'caret-back';
|
|
364
399
|
data: string;
|
|
400
|
+
} | {
|
|
401
|
+
name: 'caret-forward-circle';
|
|
402
|
+
data: string;
|
|
365
403
|
} | {
|
|
366
404
|
name: 'caret-forward';
|
|
367
405
|
data: string;
|
|
@@ -464,18 +502,30 @@ export declare const wrIconSet: ({
|
|
|
464
502
|
} | {
|
|
465
503
|
name: 'logo-appscreener';
|
|
466
504
|
data: string;
|
|
505
|
+
} | {
|
|
506
|
+
name: 'logo-appstore';
|
|
507
|
+
data: string;
|
|
467
508
|
} | {
|
|
468
509
|
name: 'logo-github';
|
|
469
510
|
data: string;
|
|
511
|
+
} | {
|
|
512
|
+
name: 'logo-google-play';
|
|
513
|
+
data: string;
|
|
470
514
|
} | {
|
|
471
515
|
name: 'logo-oversecured';
|
|
472
516
|
data: string;
|
|
517
|
+
} | {
|
|
518
|
+
name: 'logo-rustore';
|
|
519
|
+
data: string;
|
|
473
520
|
} | {
|
|
474
521
|
name: 'logo-stingray';
|
|
475
522
|
data: string;
|
|
476
523
|
} | {
|
|
477
524
|
name: 'modules';
|
|
478
525
|
data: string;
|
|
526
|
+
} | {
|
|
527
|
+
name: 'moon';
|
|
528
|
+
data: string;
|
|
479
529
|
} | {
|
|
480
530
|
name: 'play-back';
|
|
481
531
|
data: string;
|
|
@@ -518,6 +568,12 @@ export declare const wrIconSet: ({
|
|
|
518
568
|
} | {
|
|
519
569
|
name: 'stop';
|
|
520
570
|
data: string;
|
|
571
|
+
} | {
|
|
572
|
+
name: 'sun';
|
|
573
|
+
data: string;
|
|
574
|
+
} | {
|
|
575
|
+
name: 'terminal';
|
|
576
|
+
data: string;
|
|
521
577
|
} | {
|
|
522
578
|
name: 'trash';
|
|
523
579
|
data: string;
|
package/icon/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
1
|
+
export { WrIcon } from './icon';
|
|
2
|
+
export { WrIconModule } from './icon-module';
|
|
3
|
+
export { WrIconService } from './icon-service';
|
|
4
|
+
export { IWrIcon, wrIconName, wrIconSet } from './icons';
|
package/index.d.ts
CHANGED
package/input/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { WrInputModule } from './input
|
|
1
|
+
export { WrInput } from './input';
|
|
2
|
+
export { WrInputModule } from './input-module';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./input
|
|
2
|
+
import * as i1 from "./input";
|
|
3
3
|
import * as i2 from "@angular/common";
|
|
4
4
|
import * as i3 from "@angular/forms";
|
|
5
|
-
import * as i4 from "
|
|
5
|
+
import * as i4 from "ngwr/icon";
|
|
6
6
|
export declare class WrInputModule {
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<WrInputModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<WrInputModule, [typeof i1.
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<WrInputModule, [typeof i1.WrInput], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.WrIconModule], [typeof i1.WrInput]>;
|
|
9
9
|
static ɵinj: i0.ɵɵInjectorDeclaration<WrInputModule>;
|
|
10
10
|
}
|
|
@@ -1 +1,3 @@
|
|
|
1
1
|
export declare type WrInputAutocomplete = 'off' | 'name' | 'email' | 'username' | 'new-password' | 'current-password' | 'one-time-code' | 'organization-title' | 'organization' | 'street-address' | 'country' | 'country-name' | 'postal-code' | 'cc-name' | 'cc-given-name' | 'cc-additional-name' | 'cc-family-name' | 'cc-number' | 'cc-exp' | 'cc-exp-month' | 'cc-exp-year' | 'cc-csc' | 'cc-type' | 'transaction-currency' | 'transaction-amount' | 'language' | 'bday' | 'bday-day' | 'bday-month' | 'bday-year' | 'sex' | 'tel' | 'tel-extension' | 'url' | 'photo';
|
|
2
|
+
export declare type WrInputModeType = 'text' | 'numeric' | 'tel' | 'email' | 'url';
|
|
3
|
+
export declare type WrInputType = 'text' | 'number' | 'password' | 'email';
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
2
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
3
|
import { AfterViewInit, ChangeDetectorRef, ElementRef, NgZone, OnDestroy, OnInit } from '@angular/core';
|
|
3
4
|
import { AbstractControl, ControlValueAccessor, ValidationErrors, Validator } from '@angular/forms';
|
|
4
|
-
import {
|
|
5
|
+
import { WrAbstractBase } from 'ngwr/core/abstract';
|
|
6
|
+
import { OnChangeType, OnTouchedType, SafeAny } from 'ngwr/core/types';
|
|
7
|
+
import { WrInputAutocomplete, WrInputModeType, WrInputType } from './input-types';
|
|
5
8
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class
|
|
9
|
+
export declare class WrInput extends WrAbstractBase implements ControlValueAccessor, AfterViewInit, OnInit, OnDestroy, Validator {
|
|
7
10
|
private readonly cdr;
|
|
8
11
|
private readonly elRef;
|
|
9
12
|
private readonly focusMonitor;
|
|
@@ -57,6 +60,6 @@ export declare class WrInputComponent extends BaseComponent implements ControlVa
|
|
|
57
60
|
registerOnTouched(fn: OnTouchedType): void;
|
|
58
61
|
onPasswordVisibilityChange(): void;
|
|
59
62
|
setDisabledState(isDisabled: boolean): void;
|
|
60
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
61
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
63
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WrInput, never>;
|
|
64
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WrInput, "wr-input", ["wrInput"], { "placeholder": "placeholder"; "prefix": "prefix"; "suffix": "suffix"; "passwordIcons": "passwordIcons"; "type": "type"; "inputmode": "inputmode"; "disabled": "disabled"; "readonly": "readonly"; "required": "required"; "autofocus": "autofocus"; "autocomplete": "autocomplete"; "value": "value"; }, {}, never, never, false>;
|
|
62
65
|
}
|
package/input/input.scss
ADDED
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
.wr-input {
|
|
2
|
+
--input-icon-size: 1rem;
|
|
3
|
+
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: stretch;
|
|
6
|
+
flex-wrap: nowrap;
|
|
7
|
+
|
|
8
|
+
position: relative;
|
|
9
|
+
|
|
10
|
+
background: var(--wr-input-bg);
|
|
11
|
+
border-radius: var(--wr-input-border-radius-base);
|
|
12
|
+
|
|
13
|
+
padding: 0;
|
|
14
|
+
margin: 0;
|
|
15
|
+
|
|
16
|
+
&--fullwidth {
|
|
17
|
+
width: 100%;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&--disabled {
|
|
21
|
+
pointer-events: none;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&--password {
|
|
25
|
+
.wr-input-el__native {
|
|
26
|
+
padding-right: calc(var(--input-icon-size) + calc(var(--wr-input-padding-x-base) * 2));
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&--has-prefix {
|
|
31
|
+
.wr-input-el__native {
|
|
32
|
+
border-top-left-radius: 0;
|
|
33
|
+
border-bottom-left-radius: 0;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&--has-suffix {
|
|
38
|
+
.wr-input-el__native {
|
|
39
|
+
border-top-right-radius: 0;
|
|
40
|
+
border-bottom-right-radius: 0;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&-prefix,
|
|
45
|
+
&-suffix {
|
|
46
|
+
display: flex;
|
|
47
|
+
border: 1px solid var(--wr-input-border-color);
|
|
48
|
+
background: var(--wr-input-suffix-prefix-bg);
|
|
49
|
+
|
|
50
|
+
color: var(--wr-input-suffix-prefix-color);
|
|
51
|
+
font-size: var(--wr-input-font-size-base);
|
|
52
|
+
font-weight: var(--wr-input-font-weight-base);
|
|
53
|
+
line-height: var(--wr-input-line-height-base);
|
|
54
|
+
|
|
55
|
+
padding: var(--wr-input-padding-y-base) var(--wr-input-padding-x-base);
|
|
56
|
+
margin: 0;
|
|
57
|
+
max-width: 30%;
|
|
58
|
+
|
|
59
|
+
&__text {
|
|
60
|
+
overflow: hidden;
|
|
61
|
+
text-overflow: ellipsis;
|
|
62
|
+
white-space: nowrap;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&-prefix {
|
|
67
|
+
border-top-left-radius: var(--wr-input-border-radius-base);
|
|
68
|
+
border-bottom-left-radius: var(--wr-input-border-radius-base);
|
|
69
|
+
border-right: 0;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&-suffix {
|
|
73
|
+
border-top-right-radius: var(--wr-input-border-radius-base);
|
|
74
|
+
border-bottom-right-radius: var(--wr-input-border-radius-base);
|
|
75
|
+
border-left: 0;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&-el {
|
|
79
|
+
display: flex;
|
|
80
|
+
align-items: center;
|
|
81
|
+
|
|
82
|
+
height: 100%;
|
|
83
|
+
flex: 1;
|
|
84
|
+
|
|
85
|
+
position: relative;
|
|
86
|
+
|
|
87
|
+
margin: 0;
|
|
88
|
+
padding: 0;
|
|
89
|
+
|
|
90
|
+
&-icon {
|
|
91
|
+
display: flex;
|
|
92
|
+
flex-direction: column;
|
|
93
|
+
align-items: center;
|
|
94
|
+
justify-content: center;
|
|
95
|
+
|
|
96
|
+
width: calc(calc(var(--wr-input-padding-x-base) * 2) + var(--input-icon-size));
|
|
97
|
+
height: 100%;
|
|
98
|
+
|
|
99
|
+
position: absolute;
|
|
100
|
+
z-index: 3;
|
|
101
|
+
right: 0;
|
|
102
|
+
top: 0;
|
|
103
|
+
|
|
104
|
+
color: var(--wr-color-medium);
|
|
105
|
+
cursor: pointer;
|
|
106
|
+
|
|
107
|
+
&__icon {
|
|
108
|
+
width: var(--input-icon-size);
|
|
109
|
+
height: var(--input-icon-size);
|
|
110
|
+
transition: var(--wr-transition-base);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
&:hover {
|
|
114
|
+
color: var(--wr-color-secondary);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
&__native {
|
|
119
|
+
display: inline-block;
|
|
120
|
+
|
|
121
|
+
appearance: none;
|
|
122
|
+
background: transparent;
|
|
123
|
+
border: 1px solid var(--wr-input-border-color);
|
|
124
|
+
border-radius: var(--wr-input-border-radius-base);
|
|
125
|
+
box-shadow: none;
|
|
126
|
+
|
|
127
|
+
color: var(--wr-input-color);
|
|
128
|
+
font-family: var(--wr-font-family-base);
|
|
129
|
+
font-size: var(--wr-input-font-size-base);
|
|
130
|
+
font-weight: var(--wr-input-font-weight-base);
|
|
131
|
+
line-height: var(--wr-input-line-height-base);
|
|
132
|
+
resize: none;
|
|
133
|
+
|
|
134
|
+
width: 100%;
|
|
135
|
+
|
|
136
|
+
padding: var(--wr-input-padding-y-base) var(--wr-input-padding-x-base);
|
|
137
|
+
|
|
138
|
+
position: relative;
|
|
139
|
+
z-index: 2;
|
|
140
|
+
|
|
141
|
+
transition: var(--wr-transition-base);
|
|
142
|
+
|
|
143
|
+
&::placeholder {
|
|
144
|
+
color: rgba(var(--wr-color-medium-rgb), 0.5);
|
|
145
|
+
font-style: italic;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
&[disabled],
|
|
149
|
+
&:disabled,
|
|
150
|
+
&.disabled {
|
|
151
|
+
color: var(--wr-input-disabled-color);
|
|
152
|
+
border-color: var(--wr-input-disabled-border-color);
|
|
153
|
+
background: var(--wr-input-disabled-bg);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
&:active,
|
|
157
|
+
&:focus {
|
|
158
|
+
border-color: var(--wr-color-primary);
|
|
159
|
+
box-shadow: 0 0 0 2px rgba(var(--wr-color-primary-rgb), 0.125);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
package/logo.svg
CHANGED
|
@@ -1 +1,6 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 3195.1 996.4">
|
|
2
|
+
<path d="M421.7 0C188.8 0 0 109.2 0 375.9s153.8 620.4 421.7 620.4 421.7-353.8 421.7-620.4S654.6 0 421.7 0z" style="fill:#3969E2"/>
|
|
3
|
+
<path d="M1346.9 243.7c29.6 0 56.7 4.9 81.2 14.6s45.7 23.8 63.4 42.2c17.7 18.4 31.4 40.6 41.2 66.6 9.7 26 14.6 55.2 14.6 87.7v292.4h-124.5V471.1c0-32.5-9.6-58.7-28.7-78.5-19.1-19.8-43.9-29.8-74.2-29.8-30.3 0-55.1 9.9-74.2 29.8s-28.7 46-28.7 78.5v276.2h-124.5V249.1h92.1l21.7 48.7c12.3-10.1 25.6-19.1 40.1-27.1 12.3-6.5 26.9-12.6 43.9-18.4 16.7-5.7 35.7-8.6 56.6-8.6zM1846.1 243.7c21.7 0 41.2 2.9 58.5 8.7 17.3 5.8 32.1 11.9 44.4 18.4 13.7 8 26.3 17 37.9 27.1l21.7-48.7h92.1v465.7c0 65-20.8 117.3-62.3 157s-100.2 59.6-176 59.6c-46.2 0-83.6-8.3-112.1-24.9-28.5-16.6-51.1-35.4-67.7-56.3-18.8-23.8-32.9-50.9-42.2-81.2h124.5c5 9.4 11.9 17.7 20.6 24.9 7.9 5.8 18 11.2 30.3 16.2s27.8 7.6 46.6 7.6c35.4 0 63.2-9.6 83.4-28.7 20.2-19.1 30.3-43.9 30.3-74.2V677c-10.1 10.1-21.7 19.1-34.7 27.1-11.6 7.2-25.3 13.5-41.2 19-15.9 5.4-33.9 8.1-54.2 8.1-31.1 0-60.5-6.1-88.3-18.4-27.8-12.3-52-29.2-72.6-50.9s-36.8-47.3-48.7-76.9c-11.9-29.6-17.9-62.1-17.9-97.5s6-67.9 17.9-97.5c11.9-29.6 28.2-55.2 48.7-76.9 20.6-21.7 44.8-38.6 72.6-50.9 27.9-12.4 57.3-18.5 88.4-18.5zm-102.9 243.7c0 17.3 3.1 33.6 9.2 48.7 6.1 15.2 14.6 28.3 25.5 39.5 10.8 11.2 23.5 20 37.9 26.5 14.4 6.5 30 9.7 46.6 9.7 15.9 0 31-3.2 45.5-9.7 14.4-6.5 27.1-15.3 37.9-26.5 10.8-11.2 19.5-24.4 26-39.5 6.5-15.2 9.7-31.4 9.7-48.7 0-17.3-3.2-33.6-9.7-48.7-6.5-15.2-15.2-28.3-26-39.5s-23.5-20-37.9-26.5c-14.5-6.5-29.6-9.7-45.5-9.7-16.6 0-32.1 3.2-46.6 9.7-14.5 6.5-27.1 15.3-37.9 26.5-10.8 11.2-19.3 24.4-25.5 39.5-6.1 15.1-9.2 31.3-9.2 48.7zM2512.8 449.5l-92.1 297.8h-108.3L2150 249.1h124.5l97.5 319.5 102.9-319.5h75.8l102.9 319.5 97.5-319.5h124.5l-162.5 498.2h-108.3l-92-297.8zM3157.2 243.7c5.8 0 10.8.4 15.2 1.1 4.3.7 8.3 1.5 11.9 2.2 3.6.7 7.2 1.5 10.8 2.2v130c-3.6-.7-7.6-1.4-11.9-2.2-3.6-.7-8.1-1.4-13.5-2.2-5.4-.7-11.4-1.1-17.9-1.1-30.3 0-55.1 9.9-74.2 29.8s-28.7 46-28.7 78.5v265.3h-124.5V249.1h92.1l21.7 54.2c8.7-10.8 19.1-20.6 31.4-29.2 10.1-7.9 22.6-15 37.4-21.1 14.6-6.2 31.4-9.3 50.2-9.3z" style="fill:#19243A" />
|
|
4
|
+
<path d="M326.6 515.7c-8.8 90.7-13.6 200.8-8 288.5.9 13.7-17.7 18.9-24 6.6-32.7-64.7-62.5-151.1-78.5-241.9-2.7-15 4.9-30 18.5-36.7 22.2-11 43.5-23.7 60.1-33.1 1.1-.6 2.1-1.2 3.2-1.8 13.7-7.8 30.2 2.9 28.7 18.4zM627.2 569.7c-16 90.8-45.8 177.3-78.5 241.9-6.2 12.4-24.8 7.2-24-6.6 5.5-87.8.7-197.9-8-288.5-1.5-15.5 15.1-26.2 28.7-18.4 1.1.6 2.1 1.2 3.2 1.8 16.5 9.4 37.9 22.1 60.1 33.1 13.6 6.7 21.2 21.7 18.5 36.7z" style="fill:#FFFFFF" />
|
|
5
|
+
<path d="M548.6 434.2c-41.1-23.3-77.8-51.1-126.9-51.1s-85.8 27.9-126.9 51.1c-69.9 39.7-226 140.4-171.1-97.3 26.4-114.3 96.3-162.3 161.8-181.3 18.1-5.3 37.8.4 50.2 14.5 18.5 21.2 53.1 38.6 86 38.6s67.4-17.4 86-38.6c12.5-14.1 32.2-19.8 50.2-14.5 65.5 19 135.4 67.1 161.8 181.3 55 237.7-101.1 137-171.1 97.3z" style="fill:#FFFFFF"/>
|
|
6
|
+
</svg>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ngwr",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "NGWR – Angular UI components library",
|
|
6
6
|
"author": "Roman Khegay <rk@garuna.dev> (https://garuna.dev/)",
|
|
@@ -20,15 +20,133 @@
|
|
|
20
20
|
"bugs": {
|
|
21
21
|
"url": "https://github.com/thekhegay/ngwr/issues"
|
|
22
22
|
},
|
|
23
|
+
"exports": {
|
|
24
|
+
".": {
|
|
25
|
+
"sass": "./_index.scss",
|
|
26
|
+
"types": "./index.d.ts",
|
|
27
|
+
"esm2020": "./esm2020/ngwr.mjs",
|
|
28
|
+
"es2020": "./fesm2020/ngwr.mjs",
|
|
29
|
+
"es2015": "./fesm2015/ngwr.mjs",
|
|
30
|
+
"node": "./fesm2015/ngwr.mjs",
|
|
31
|
+
"default": "./fesm2020/ngwr.mjs"
|
|
32
|
+
},
|
|
33
|
+
"./package.json": {
|
|
34
|
+
"default": "./package.json"
|
|
35
|
+
},
|
|
36
|
+
"./button": {
|
|
37
|
+
"types": "./button/index.d.ts",
|
|
38
|
+
"esm2020": "./esm2020/button/ngwr-button.mjs",
|
|
39
|
+
"es2020": "./fesm2020/ngwr-button.mjs",
|
|
40
|
+
"es2015": "./fesm2015/ngwr-button.mjs",
|
|
41
|
+
"node": "./fesm2015/ngwr-button.mjs",
|
|
42
|
+
"default": "./fesm2020/ngwr-button.mjs"
|
|
43
|
+
},
|
|
44
|
+
"./checkbox": {
|
|
45
|
+
"types": "./checkbox/index.d.ts",
|
|
46
|
+
"esm2020": "./esm2020/checkbox/ngwr-checkbox.mjs",
|
|
47
|
+
"es2020": "./fesm2020/ngwr-checkbox.mjs",
|
|
48
|
+
"es2015": "./fesm2015/ngwr-checkbox.mjs",
|
|
49
|
+
"node": "./fesm2015/ngwr-checkbox.mjs",
|
|
50
|
+
"default": "./fesm2020/ngwr-checkbox.mjs"
|
|
51
|
+
},
|
|
52
|
+
"./core/abstract": {
|
|
53
|
+
"types": "./core/abstract/index.d.ts",
|
|
54
|
+
"esm2020": "./esm2020/core/abstract/ngwr-core-abstract.mjs",
|
|
55
|
+
"es2020": "./fesm2020/ngwr-core-abstract.mjs",
|
|
56
|
+
"es2015": "./fesm2015/ngwr-core-abstract.mjs",
|
|
57
|
+
"node": "./fesm2015/ngwr-core-abstract.mjs",
|
|
58
|
+
"default": "./fesm2020/ngwr-core-abstract.mjs"
|
|
59
|
+
},
|
|
60
|
+
"./core/color": {
|
|
61
|
+
"types": "./core/color/index.d.ts",
|
|
62
|
+
"esm2020": "./esm2020/core/color/ngwr-core-color.mjs",
|
|
63
|
+
"es2020": "./fesm2020/ngwr-core-color.mjs",
|
|
64
|
+
"es2015": "./fesm2015/ngwr-core-color.mjs",
|
|
65
|
+
"node": "./fesm2015/ngwr-core-color.mjs",
|
|
66
|
+
"default": "./fesm2020/ngwr-core-color.mjs"
|
|
67
|
+
},
|
|
68
|
+
"./core/decorators": {
|
|
69
|
+
"types": "./core/decorators/index.d.ts",
|
|
70
|
+
"esm2020": "./esm2020/core/decorators/ngwr-core-decorators.mjs",
|
|
71
|
+
"es2020": "./fesm2020/ngwr-core-decorators.mjs",
|
|
72
|
+
"es2015": "./fesm2015/ngwr-core-decorators.mjs",
|
|
73
|
+
"node": "./fesm2015/ngwr-core-decorators.mjs",
|
|
74
|
+
"default": "./fesm2020/ngwr-core-decorators.mjs"
|
|
75
|
+
},
|
|
76
|
+
"./core/types": {
|
|
77
|
+
"types": "./core/types/index.d.ts",
|
|
78
|
+
"esm2020": "./esm2020/core/types/ngwr-core-types.mjs",
|
|
79
|
+
"es2020": "./fesm2020/ngwr-core-types.mjs",
|
|
80
|
+
"es2015": "./fesm2015/ngwr-core-types.mjs",
|
|
81
|
+
"node": "./fesm2015/ngwr-core-types.mjs",
|
|
82
|
+
"default": "./fesm2020/ngwr-core-types.mjs"
|
|
83
|
+
},
|
|
84
|
+
"./divider": {
|
|
85
|
+
"types": "./divider/index.d.ts",
|
|
86
|
+
"esm2020": "./esm2020/divider/ngwr-divider.mjs",
|
|
87
|
+
"es2020": "./fesm2020/ngwr-divider.mjs",
|
|
88
|
+
"es2015": "./fesm2015/ngwr-divider.mjs",
|
|
89
|
+
"node": "./fesm2015/ngwr-divider.mjs",
|
|
90
|
+
"default": "./fesm2020/ngwr-divider.mjs"
|
|
91
|
+
},
|
|
92
|
+
"./form": {
|
|
93
|
+
"types": "./form/index.d.ts",
|
|
94
|
+
"esm2020": "./esm2020/form/ngwr-form.mjs",
|
|
95
|
+
"es2020": "./fesm2020/ngwr-form.mjs",
|
|
96
|
+
"es2015": "./fesm2015/ngwr-form.mjs",
|
|
97
|
+
"node": "./fesm2015/ngwr-form.mjs",
|
|
98
|
+
"default": "./fesm2020/ngwr-form.mjs"
|
|
99
|
+
},
|
|
100
|
+
"./icon": {
|
|
101
|
+
"types": "./icon/index.d.ts",
|
|
102
|
+
"esm2020": "./esm2020/icon/ngwr-icon.mjs",
|
|
103
|
+
"es2020": "./fesm2020/ngwr-icon.mjs",
|
|
104
|
+
"es2015": "./fesm2015/ngwr-icon.mjs",
|
|
105
|
+
"node": "./fesm2015/ngwr-icon.mjs",
|
|
106
|
+
"default": "./fesm2020/ngwr-icon.mjs"
|
|
107
|
+
},
|
|
108
|
+
"./input": {
|
|
109
|
+
"types": "./input/index.d.ts",
|
|
110
|
+
"esm2020": "./esm2020/input/ngwr-input.mjs",
|
|
111
|
+
"es2020": "./fesm2020/ngwr-input.mjs",
|
|
112
|
+
"es2015": "./fesm2015/ngwr-input.mjs",
|
|
113
|
+
"node": "./fesm2015/ngwr-input.mjs",
|
|
114
|
+
"default": "./fesm2020/ngwr-input.mjs"
|
|
115
|
+
},
|
|
116
|
+
"./skeleton": {
|
|
117
|
+
"types": "./skeleton/index.d.ts",
|
|
118
|
+
"esm2020": "./esm2020/skeleton/ngwr-skeleton.mjs",
|
|
119
|
+
"es2020": "./fesm2020/ngwr-skeleton.mjs",
|
|
120
|
+
"es2015": "./fesm2015/ngwr-skeleton.mjs",
|
|
121
|
+
"node": "./fesm2015/ngwr-skeleton.mjs",
|
|
122
|
+
"default": "./fesm2020/ngwr-skeleton.mjs"
|
|
123
|
+
},
|
|
124
|
+
"./spinner": {
|
|
125
|
+
"types": "./spinner/index.d.ts",
|
|
126
|
+
"esm2020": "./esm2020/spinner/ngwr-spinner.mjs",
|
|
127
|
+
"es2020": "./fesm2020/ngwr-spinner.mjs",
|
|
128
|
+
"es2015": "./fesm2015/ngwr-spinner.mjs",
|
|
129
|
+
"node": "./fesm2015/ngwr-spinner.mjs",
|
|
130
|
+
"default": "./fesm2020/ngwr-spinner.mjs"
|
|
131
|
+
},
|
|
132
|
+
"./tag": {
|
|
133
|
+
"types": "./tag/index.d.ts",
|
|
134
|
+
"esm2020": "./esm2020/tag/ngwr-tag.mjs",
|
|
135
|
+
"es2020": "./fesm2020/ngwr-tag.mjs",
|
|
136
|
+
"es2015": "./fesm2015/ngwr-tag.mjs",
|
|
137
|
+
"node": "./fesm2015/ngwr-tag.mjs",
|
|
138
|
+
"default": "./fesm2020/ngwr-tag.mjs"
|
|
139
|
+
}
|
|
140
|
+
},
|
|
23
141
|
"dependencies": {
|
|
24
|
-
"@angular/cdk": "^14.
|
|
142
|
+
"@angular/cdk": "^14.0.0",
|
|
25
143
|
"tslib": "^2.3.0"
|
|
26
144
|
},
|
|
27
145
|
"peerDependencies": {
|
|
28
|
-
"@angular/common": ">=14.
|
|
29
|
-
"@angular/core": ">=14.
|
|
30
|
-
"@angular/forms": ">=14.
|
|
31
|
-
"rxjs": "
|
|
146
|
+
"@angular/common": ">=14.0.0 <15.0.0",
|
|
147
|
+
"@angular/core": ">=14.0.0 <15.0.0",
|
|
148
|
+
"@angular/forms": ">=14.0.0 <15.0.0",
|
|
149
|
+
"rxjs": ">=6.5.5 < 7.6.0"
|
|
32
150
|
},
|
|
33
151
|
"module": "fesm2015/ngwr.mjs",
|
|
34
152
|
"es2020": "fesm2020/ngwr.mjs",
|
|
@@ -36,18 +154,5 @@
|
|
|
36
154
|
"fesm2020": "fesm2020/ngwr.mjs",
|
|
37
155
|
"fesm2015": "fesm2015/ngwr.mjs",
|
|
38
156
|
"typings": "index.d.ts",
|
|
39
|
-
"exports": {
|
|
40
|
-
"./package.json": {
|
|
41
|
-
"default": "./package.json"
|
|
42
|
-
},
|
|
43
|
-
".": {
|
|
44
|
-
"types": "./index.d.ts",
|
|
45
|
-
"esm2020": "./esm2020/ngwr.mjs",
|
|
46
|
-
"es2020": "./fesm2020/ngwr.mjs",
|
|
47
|
-
"es2015": "./fesm2015/ngwr.mjs",
|
|
48
|
-
"node": "./fesm2015/ngwr.mjs",
|
|
49
|
-
"default": "./fesm2020/ngwr.mjs"
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
157
|
"sideEffects": false
|
|
53
158
|
}
|
package/skeleton/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { WrSkeletonModule } from './skeleton
|
|
1
|
+
export { WrSkeleton } from './skeleton';
|
|
2
|
+
export { WrSkeletonModule } from './skeleton-module';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./skeleton
|
|
2
|
+
import * as i1 from "./skeleton";
|
|
3
3
|
import * as i2 from "@angular/common";
|
|
4
4
|
export declare class WrSkeletonModule {
|
|
5
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<WrSkeletonModule, never>;
|
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<WrSkeletonModule, [typeof i1.
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<WrSkeletonModule, [typeof i1.WrSkeleton], [typeof i2.CommonModule], [typeof i1.WrSkeleton]>;
|
|
7
7
|
static ɵinj: i0.ɵɵInjectorDeclaration<WrSkeletonModule>;
|
|
8
8
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
|
+
import { WrThemeColor } from 'ngwr/core/color';
|
|
3
|
+
import { SafeAny } from 'ngwr/core/types';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class WrSkeleton {
|
|
6
|
+
color: WrThemeColor;
|
|
7
|
+
animated: BooleanInput;
|
|
8
|
+
get elClasses(): SafeAny;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WrSkeleton, never>;
|
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<WrSkeleton, "wr-skeleton", ["wrSkeleton"], { "color": "color"; "animated": "animated"; }, {}, never, never, false>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
@import '../styles/vars';
|
|
2
|
+
|
|
3
|
+
$skeleton-prefix: wr-skeleton;
|
|
4
|
+
|
|
5
|
+
.wr-skeleton {
|
|
6
|
+
display: block;
|
|
7
|
+
|
|
8
|
+
width: 100%;
|
|
9
|
+
|
|
10
|
+
margin-top: 0.25rem;
|
|
11
|
+
margin-bottom: 0.25rem;
|
|
12
|
+
|
|
13
|
+
height: var(--wr-font-size-base);
|
|
14
|
+
border-radius: var(--wr-border-radius-base);
|
|
15
|
+
|
|
16
|
+
position: relative;
|
|
17
|
+
overflow: hidden;
|
|
18
|
+
|
|
19
|
+
user-select: none;
|
|
20
|
+
pointer-events: none;
|
|
21
|
+
|
|
22
|
+
&:after {
|
|
23
|
+
content: '';
|
|
24
|
+
position: absolute;
|
|
25
|
+
top: 0;
|
|
26
|
+
right: 0;
|
|
27
|
+
bottom: 0;
|
|
28
|
+
left: 0;
|
|
29
|
+
transform: translateX(-100%);
|
|
30
|
+
animation: none;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&--animated {
|
|
34
|
+
&:after {
|
|
35
|
+
animation: shimmer 2s infinite;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@each $color, $value in $theme-colors {
|
|
41
|
+
.wr-skeleton--#{$color} {
|
|
42
|
+
background: rgba(var(--wr-color-#{$color}-rgb), 0.125);
|
|
43
|
+
|
|
44
|
+
&:after {
|
|
45
|
+
background-image: linear-gradient(
|
|
46
|
+
90deg,
|
|
47
|
+
rgba(var(--wr-color-#{$color}-rgb), 0) 0,
|
|
48
|
+
rgba(var(--wr-color-#{$color}-rgb), 0.125) 20%,
|
|
49
|
+
rgba(var(--wr-color-#{$color}-rgb), 0.25) 60%,
|
|
50
|
+
rgba(var(--wr-color-#{$color}-rgb), 0)
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
package/spinner/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { WrSpinnerModule } from './spinner
|
|
1
|
+
export { WrSpinner } from './spinner';
|
|
2
|
+
export { WrSpinnerModule } from './spinner-module';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./spinner
|
|
2
|
+
import * as i1 from "./spinner";
|
|
3
3
|
export declare class WrSpinnerModule {
|
|
4
4
|
static ɵfac: i0.ɵɵFactoryDeclaration<WrSpinnerModule, never>;
|
|
5
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<WrSpinnerModule, [typeof i1.
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<WrSpinnerModule, [typeof i1.WrSpinner], never, [typeof i1.WrSpinner]>;
|
|
6
6
|
static ɵinj: i0.ɵɵInjectorDeclaration<WrSpinnerModule>;
|
|
7
7
|
}
|