@4byte/shared-lib 0.0.1 → 0.0.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.
Files changed (123) hide show
  1. package/fesm2022/4byte-shared-lib.mjs +1176 -0
  2. package/fesm2022/4byte-shared-lib.mjs.map +1 -0
  3. package/package.json +15 -27
  4. package/types/4byte-shared-lib.d.ts +343 -0
  5. package/.editorconfig +0 -17
  6. package/.prettierrc +0 -12
  7. package/.vscode/extensions.json +0 -4
  8. package/.vscode/launch.json +0 -20
  9. package/.vscode/mcp.json +0 -9
  10. package/.vscode/tasks.json +0 -42
  11. package/angular.json +0 -211
  12. package/ng-package.json +0 -11
  13. package/projects/storybook-host/.storybook/main.ts +0 -20
  14. package/projects/storybook-host/.storybook/preview.ts +0 -74
  15. package/projects/storybook-host/.storybook/tsconfig.doc.json +0 -10
  16. package/projects/storybook-host/.storybook/tsconfig.json +0 -22
  17. package/projects/storybook-host/.storybook/tutorial/Installation.mdx +0 -6
  18. package/projects/storybook-host/.storybook/tutorial/Introduction.mdx +0 -18
  19. package/projects/storybook-host/.storybook/tutorial/Theming.mdx +0 -14
  20. package/projects/storybook-host/.storybook/typings.d.ts +0 -4
  21. package/projects/storybook-host/documentation.json +0 -605
  22. package/projects/storybook-host/public/favicon.ico +0 -0
  23. package/projects/storybook-host/src/app/app.config.ts +0 -8
  24. package/projects/storybook-host/src/app/app.css +0 -0
  25. package/projects/storybook-host/src/app/app.html +0 -343
  26. package/projects/storybook-host/src/app/app.ts +0 -11
  27. package/projects/storybook-host/src/index.html +0 -13
  28. package/projects/storybook-host/src/main.ts +0 -6
  29. package/projects/storybook-host/src/stories/assets/accessibility.png +0 -0
  30. package/projects/storybook-host/src/stories/assets/accessibility.svg +0 -1
  31. package/projects/storybook-host/src/stories/assets/addon-library.png +0 -0
  32. package/projects/storybook-host/src/stories/assets/assets.png +0 -0
  33. package/projects/storybook-host/src/stories/assets/avif-test-image.avif +0 -0
  34. package/projects/storybook-host/src/stories/assets/context.png +0 -0
  35. package/projects/storybook-host/src/stories/assets/discord.svg +0 -1
  36. package/projects/storybook-host/src/stories/assets/docs.png +0 -0
  37. package/projects/storybook-host/src/stories/assets/figma-plugin.png +0 -0
  38. package/projects/storybook-host/src/stories/assets/github.svg +0 -1
  39. package/projects/storybook-host/src/stories/assets/share.png +0 -0
  40. package/projects/storybook-host/src/stories/assets/styling.png +0 -0
  41. package/projects/storybook-host/src/stories/assets/testing.png +0 -0
  42. package/projects/storybook-host/src/stories/assets/theming.png +0 -0
  43. package/projects/storybook-host/src/stories/assets/tutorials.svg +0 -1
  44. package/projects/storybook-host/src/stories/assets/youtube.svg +0 -1
  45. package/projects/storybook-host/src/stories/button.component.ts +0 -50
  46. package/projects/storybook-host/src/stories/button.css +0 -30
  47. package/projects/storybook-host/src/stories/button.stories.ts +0 -49
  48. package/projects/storybook-host/src/stories/header.component.ts +0 -78
  49. package/projects/storybook-host/src/stories/header.css +0 -32
  50. package/projects/storybook-host/src/stories/header.stories.ts +0 -33
  51. package/projects/storybook-host/src/stories/page.component.ts +0 -84
  52. package/projects/storybook-host/src/stories/page.css +0 -68
  53. package/projects/storybook-host/src/stories/page.stories.ts +0 -32
  54. package/projects/storybook-host/src/stories/user.ts +0 -3
  55. package/projects/storybook-host/src/styles.css +0 -1
  56. package/projects/storybook-host/tsconfig.app.json +0 -15
  57. package/projects/storybook-host/tsconfig.spec.json +0 -15
  58. package/src/lib/components/byte-button/byte-button-group/byte-button-group.css +0 -27
  59. package/src/lib/components/byte-button/byte-button-group/byte-button-group.html +0 -6
  60. package/src/lib/components/byte-button/byte-button-group/byte-button-group.spec.ts +0 -22
  61. package/src/lib/components/byte-button/byte-button-group/byte-button-group.ts +0 -35
  62. package/src/lib/components/byte-button/byte-button.css +0 -0
  63. package/src/lib/components/byte-button/byte-button.directive.ts +0 -17
  64. package/src/lib/components/byte-button/byte-button.html +0 -29
  65. package/src/lib/components/byte-button/byte-button.module.ts +0 -19
  66. package/src/lib/components/byte-button/byte-button.stories.ts +0 -449
  67. package/src/lib/components/byte-button/byte-button.ts +0 -129
  68. package/src/lib/components/byte-dialog/byte-dialog.css +0 -0
  69. package/src/lib/components/byte-dialog/byte-dialog.directive.ts +0 -21
  70. package/src/lib/components/byte-dialog/byte-dialog.html +0 -47
  71. package/src/lib/components/byte-dialog/byte-dialog.module.ts +0 -21
  72. package/src/lib/components/byte-dialog/byte-dialog.spec.ts +0 -22
  73. package/src/lib/components/byte-dialog/byte-dialog.ts +0 -121
  74. package/src/lib/components/byte-dialog/byte.dialog.stories.ts +0 -215
  75. package/src/lib/components/byte-input/byte-input.css +0 -29
  76. package/src/lib/components/byte-input/byte-input.html +0 -58
  77. package/src/lib/components/byte-input/byte-input.spec.ts +0 -22
  78. package/src/lib/components/byte-input/byte-input.stories.ts +0 -60
  79. package/src/lib/components/byte-input/byte-input.ts +0 -97
  80. package/src/lib/components/byte-select/byte-select.css +0 -16
  81. package/src/lib/components/byte-select/byte-select.directive.ts +0 -61
  82. package/src/lib/components/byte-select/byte-select.html +0 -101
  83. package/src/lib/components/byte-select/byte-select.module.ts +0 -26
  84. package/src/lib/components/byte-select/byte-select.spec.ts +0 -22
  85. package/src/lib/components/byte-select/byte-select.stories.ts +0 -194
  86. package/src/lib/components/byte-select/byte-select.ts +0 -168
  87. package/src/lib/components/byte-select/index.ts +0 -3
  88. package/src/lib/components/byte-sidebar/byte-sidebar.css +0 -0
  89. package/src/lib/components/byte-sidebar/byte-sidebar.directive.ts +0 -11
  90. package/src/lib/components/byte-sidebar/byte-sidebar.html +0 -31
  91. package/src/lib/components/byte-sidebar/byte-sidebar.module.ts +0 -16
  92. package/src/lib/components/byte-sidebar/byte-sidebar.spec.ts +0 -22
  93. package/src/lib/components/byte-sidebar/byte-sidebar.stories.ts +0 -190
  94. package/src/lib/components/byte-sidebar/byte-sidebar.ts +0 -108
  95. package/src/lib/components/byte-table/byte-table.css +0 -0
  96. package/src/lib/components/byte-table/byte-table.directive.ts +0 -49
  97. package/src/lib/components/byte-table/byte-table.html +0 -102
  98. package/src/lib/components/byte-table/byte-table.module.ts +0 -33
  99. package/src/lib/components/byte-table/byte-table.spec.ts +0 -22
  100. package/src/lib/components/byte-table/byte-table.stories.ts +0 -296
  101. package/src/lib/components/byte-table/byte-table.ts +0 -162
  102. package/src/lib/components/calendar/calendar.css +0 -16
  103. package/src/lib/components/calendar/calendar.html +0 -15
  104. package/src/lib/components/calendar/calendar.spec.ts +0 -22
  105. package/src/lib/components/calendar/calendar.stories.ts +0 -153
  106. package/src/lib/components/calendar/calendar.ts +0 -89
  107. package/src/lib/components/select/select.css +0 -16
  108. package/src/lib/components/select/select.html +0 -14
  109. package/src/lib/components/select/select.spec.ts +0 -22
  110. package/src/lib/components/select/select.ts +0 -73
  111. package/src/lib/config/empresa-ui.token.ts +0 -5
  112. package/src/lib/providers/empresa-ui-config.ts +0 -8
  113. package/src/lib/providers/provide-empresa-ui.ts +0 -42
  114. package/src/lib/themes/CRM-Theme.ts +0 -34
  115. package/src/lib/themes/aura.ts +0 -3
  116. package/src/lib/themes/index.ts +0 -2
  117. package/src/lib/themes/registry.ts +0 -9
  118. package/src/lib/utils/inject-prime-icons.ts +0 -12
  119. package/src/public-api.ts +0 -30
  120. package/tsconfig.json +0 -45
  121. package/tsconfig.lib.json +0 -11
  122. package/tsconfig.lib.prod.json +0 -9
  123. package/tsconfig.spec.json +0 -8
@@ -1,20 +0,0 @@
1
- {
2
- // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
3
- "version": "0.2.0",
4
- "configurations": [
5
- {
6
- "name": "ng serve",
7
- "type": "chrome",
8
- "request": "launch",
9
- "preLaunchTask": "npm: start",
10
- "url": "http://localhost:4200/"
11
- },
12
- {
13
- "name": "ng test",
14
- "type": "chrome",
15
- "request": "launch",
16
- "preLaunchTask": "npm: test",
17
- "url": "http://localhost:9876/debug.html"
18
- }
19
- ]
20
- }
package/.vscode/mcp.json DELETED
@@ -1,9 +0,0 @@
1
- {
2
- // For more information, visit: https://angular.dev/ai/mcp
3
- "servers": {
4
- "angular-cli": {
5
- "command": "npx",
6
- "args": ["-y", "@angular/cli", "mcp"]
7
- }
8
- }
9
- }
@@ -1,42 +0,0 @@
1
- {
2
- // For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558
3
- "version": "2.0.0",
4
- "tasks": [
5
- {
6
- "type": "npm",
7
- "script": "start",
8
- "isBackground": true,
9
- "problemMatcher": {
10
- "owner": "typescript",
11
- "pattern": "$tsc",
12
- "background": {
13
- "activeOnStart": true,
14
- "beginsPattern": {
15
- "regexp": "Changes detected"
16
- },
17
- "endsPattern": {
18
- "regexp": "bundle generation (complete|failed)"
19
- }
20
- }
21
- }
22
- },
23
- {
24
- "type": "npm",
25
- "script": "test",
26
- "isBackground": true,
27
- "problemMatcher": {
28
- "owner": "typescript",
29
- "pattern": "$tsc",
30
- "background": {
31
- "activeOnStart": true,
32
- "beginsPattern": {
33
- "regexp": "Changes detected"
34
- },
35
- "endsPattern": {
36
- "regexp": "bundle generation (complete|failed)"
37
- }
38
- }
39
- }
40
- }
41
- ]
42
- }
package/angular.json DELETED
@@ -1,211 +0,0 @@
1
- {
2
- "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3
- "version": 1,
4
- "cli": {
5
- "packageManager": "npm",
6
- "analytics": false
7
- },
8
- "newProjectRoot": "projects",
9
- "projects": {
10
- "shared-ui": {
11
- "projectType": "library",
12
- "root": ".",
13
- "sourceRoot": "src",
14
- "prefix": "shared",
15
- "architect": {
16
- "build": {
17
- "builder": "@angular/build:ng-packagr",
18
- "configurations": {
19
- "production": {
20
- "tsConfig": "tsconfig.lib.prod.json"
21
- },
22
- "development": {
23
- "tsConfig": "tsconfig.lib.json"
24
- }
25
- },
26
- "defaultConfiguration": "production"
27
- },
28
- "test": {
29
- "builder": "@angular/build:unit-test",
30
- "options": {
31
- "tsConfig": "tsconfig.spec.json"
32
- }
33
- }
34
- }
35
- },
36
- "demo": {
37
- "projectType": "application",
38
- "schematics": {},
39
- "root": "projects/demo",
40
- "sourceRoot": "projects/demo/src",
41
- "prefix": "app",
42
- "architect": {
43
- "build": {
44
- "builder": "@angular/build:application",
45
- "options": {
46
- "browser": "projects/demo/src/main.ts",
47
- "tsConfig": "projects/demo/tsconfig.app.json",
48
- "assets": [
49
- {
50
- "glob": "**/*",
51
- "input": "projects/demo/public"
52
- }
53
- ],
54
- "styles": ["projects/demo/src/styles.css"]
55
- },
56
- "configurations": {
57
- "production": {
58
- "budgets": [
59
- {
60
- "type": "initial",
61
- "maximumWarning": "500kB",
62
- "maximumError": "1MB"
63
- },
64
- {
65
- "type": "anyComponentStyle",
66
- "maximumWarning": "4kB",
67
- "maximumError": "8kB"
68
- }
69
- ],
70
- "outputHashing": "all"
71
- },
72
- "development": {
73
- "optimization": false,
74
- "extractLicenses": false,
75
- "sourceMap": true
76
- }
77
- },
78
- "defaultConfiguration": "production"
79
- },
80
- "serve": {
81
- "builder": "@angular/build:dev-server",
82
- "configurations": {
83
- "production": {
84
- "buildTarget": "demo:build:production"
85
- },
86
- "development": {
87
- "buildTarget": "demo:build:development"
88
- }
89
- },
90
- "defaultConfiguration": "development"
91
- },
92
- "test": {
93
- "builder": "@angular/build:unit-test"
94
- }
95
- }
96
- },
97
- "storybook-host": {
98
- "projectType": "application",
99
- "schematics": {
100
- "@schematics/angular:class": {
101
- "skipTests": true
102
- },
103
- "@schematics/angular:component": {
104
- "skipTests": true
105
- },
106
- "@schematics/angular:directive": {
107
- "skipTests": true
108
- },
109
- "@schematics/angular:guard": {
110
- "skipTests": true
111
- },
112
- "@schematics/angular:interceptor": {
113
- "skipTests": true
114
- },
115
- "@schematics/angular:pipe": {
116
- "skipTests": true
117
- },
118
- "@schematics/angular:resolver": {
119
- "skipTests": true
120
- },
121
- "@schematics/angular:service": {
122
- "skipTests": true
123
- }
124
- },
125
- "root": "projects/storybook-host",
126
- "sourceRoot": "projects/storybook-host/src",
127
- "prefix": "app",
128
- "architect": {
129
- "build": {
130
- "builder": "@angular/build:application",
131
- "options": {
132
- "browser": "projects/storybook-host/src/main.ts",
133
- "tsConfig": "projects/storybook-host/tsconfig.app.json",
134
- "assets": [
135
- {
136
- "glob": "**/*",
137
- "input": "projects/storybook-host/public"
138
- }
139
- ],
140
- "styles": ["projects/storybook-host/src/styles.css"]
141
- },
142
- "configurations": {
143
- "production": {
144
- "budgets": [
145
- {
146
- "type": "initial",
147
- "maximumWarning": "500kB",
148
- "maximumError": "1MB"
149
- },
150
- {
151
- "type": "anyComponentStyle",
152
- "maximumWarning": "4kB",
153
- "maximumError": "8kB"
154
- }
155
- ],
156
- "outputHashing": "all"
157
- },
158
- "development": {
159
- "optimization": false,
160
- "extractLicenses": false,
161
- "sourceMap": true
162
- }
163
- },
164
- "defaultConfiguration": "production"
165
- },
166
- "serve": {
167
- "builder": "@angular/build:dev-server",
168
- "configurations": {
169
- "production": {
170
- "buildTarget": "storybook-host:build:production"
171
- },
172
- "development": {
173
- "buildTarget": "storybook-host:build:development"
174
- }
175
- },
176
- "defaultConfiguration": "development"
177
- },
178
- "storybook": {
179
- "builder": "@storybook/angular:start-storybook",
180
- "options": {
181
- "configDir": "projects/storybook-host/.storybook",
182
- "browserTarget": "storybook-host:build",
183
- "compodoc": true,
184
- "compodocArgs": [
185
- "-e",
186
- "json",
187
- "-d",
188
- "projects/storybook-host"
189
- ],
190
- "port": 6006
191
- }
192
- },
193
- "build-storybook": {
194
- "builder": "@storybook/angular:build-storybook",
195
- "options": {
196
- "configDir": "projects/storybook-host/.storybook",
197
- "browserTarget": "storybook-host:build",
198
- "compodoc": true,
199
- "compodocArgs": [
200
- "-e",
201
- "json",
202
- "-d",
203
- "projects/storybook-host"
204
- ],
205
- "outputDir": "dist/storybook/storybook-host"
206
- }
207
- }
208
- }
209
- }
210
- }
211
- }
package/ng-package.json DELETED
@@ -1,11 +0,0 @@
1
- {
2
- "$schema": "./node_modules/ng-packagr/ng-package.schema.json",
3
- "dest": "./dist/shared-ui",
4
- "lib": {
5
- "entryFile": "src/public-api.ts"
6
- },
7
- "allowedNonPeerDependencies": [
8
- "primeng",
9
- "@primeuix/themes"
10
- ]
11
- }
@@ -1,20 +0,0 @@
1
- import type { StorybookConfig } from '@storybook/angular';
2
-
3
- const config: StorybookConfig = {
4
- stories: [
5
- '../../../src/lib/**/*.stories.ts',
6
- '../../../src/lib/**/*.stories.mdx',
7
- './tutorial/*.mdx'
8
- ],
9
-
10
- addons: [
11
- '@storybook/addon-docs',
12
- ],
13
-
14
- framework: {
15
- name: '@storybook/angular',
16
- options: {},
17
- },
18
- };
19
-
20
- export default config;
@@ -1,74 +0,0 @@
1
- import type { Preview } from '@storybook/angular';
2
-
3
- import { setCompodocJson } from '@storybook/addon-docs/angular';
4
- import docJson from '../documentation.json';
5
-
6
- import { EMPRESA_THEMES } from '../../../src/lib/themes/registry';
7
- import { addons } from 'storybook/internal/preview-api';
8
- import { FORCE_RE_RENDER, FORCE_REMOUNT } from 'storybook/internal/core-events';
9
- import { injectPrimeIconsStylesheet } from '../../../src/lib/utils/inject-prime-icons';
10
-
11
- setCompodocJson(docJson);
12
-
13
- let previousTheme: string | undefined;
14
-
15
- injectPrimeIconsStylesheet(); // se ejecuta una sola vez al cargar Storybook
16
-
17
- const preview: Preview = {
18
- globalTypes: {
19
- theme: {
20
- name: 'Tema',
21
- description: 'Tema de Empresa UI',
22
- defaultValue: 'crm',
23
- toolbar: {
24
- icon: 'paintbrush',
25
- items: Object.keys(EMPRESA_THEMES)
26
- }
27
- }
28
- },
29
-
30
- decorators: [
31
- (story, context) => {
32
- const theme = context.globals['theme'] as string;
33
-
34
- if (previousTheme && previousTheme !== theme) {
35
-
36
- //sessionStorage.setItem('__storybook_theme_reload__', '1');
37
-
38
- requestAnimationFrame(() => {
39
- addons.getChannel().emit(FORCE_REMOUNT, {
40
- storyId: context.id
41
- });
42
- });
43
- console.log(previousTheme)
44
- }
45
-
46
- previousTheme = theme;
47
-
48
- return story();
49
-
50
- }
51
- ],
52
-
53
- parameters: {
54
- options: {
55
- storySort: {
56
- order: [
57
- 'Introduction',
58
- 'Installation',
59
- 'Theming',
60
- 'Components'
61
- ]
62
- }
63
- },
64
- controls: {
65
- disableSaveFromUI: true
66
- }
67
- }
68
- };
69
-
70
- if (sessionStorage.getItem('__storybook_theme_reload__')) {
71
- sessionStorage.removeItem('__storybook_theme_reload__');
72
- }
73
-
74
- export default preview;
@@ -1,10 +0,0 @@
1
- // This tsconfig is used by Compodoc to generate the documentation for the project.
2
- // If Compodoc is not used, this file can be deleted.
3
- {
4
- "extends": "./tsconfig.json",
5
- // Exclude all files that are not needed for documentation generation.
6
- "exclude": ["../src/test.ts", "../src/**/*.spec.ts", "../src/**/*.stories.ts"],
7
- // Please make sure to include all files from which Compodoc should generate documentation.
8
- "include": ["../src/**/*"],
9
- "files": ["./typings.d.ts"]
10
- }
@@ -1,22 +0,0 @@
1
- {
2
- "extends": "../tsconfig.app.json",
3
- "compilerOptions": {
4
- "types": ["node"],
5
- "allowSyntheticDefaultImports": true,
6
- "resolveJsonModule": true,
7
- "moduleResolution": "bundler",
8
- "rootDir": "../../.."
9
- },
10
- "exclude": [
11
- "../src/test.ts",
12
- "../src/**/*.spec.ts",
13
- "../../../src/lib/**/*.spec.ts"
14
- ],
15
- "include": [
16
- "../src/**/*.ts",
17
- "../src/**/*.stories.*",
18
- "../../../src/lib/**/*.ts",
19
- "./preview.ts"
20
- ],
21
- "files": ["./typings.d.ts"]
22
- }
@@ -1,6 +0,0 @@
1
- # Installation
2
-
3
- ## Instalar dependencias
4
-
5
- ```bash
6
- npm install
@@ -1,18 +0,0 @@
1
- import { Meta } from '@storybook/addon-docs/blocks';
2
-
3
- <Meta title="Introduction" />
4
-
5
- # 4Byte Shared Lib
6
-
7
- 4Byte Shared Lib es una librería de componentes reutilizables desarrollada con Angular y PrimeNG.
8
-
9
- ## Tecnologías
10
-
11
- - Angular 21
12
- - PrimeNG 21
13
-
14
- ## Requisitos
15
-
16
- - Node.js 22.12.0+
17
- - Angular 21
18
- - npm 10+
@@ -1,14 +0,0 @@
1
- # Theming
2
-
3
- Empresa UI permite configurar el tema global mediante `provideEmpresaUI()` en el archivo `app.config.ts`.
4
-
5
- ## Configuración
6
-
7
- ```ts
8
- export const appConfig: ApplicationConfig = {
9
- providers: [
10
- provideEmpresaUI({
11
- theme: 'crm'
12
- })
13
- ]
14
- };
@@ -1,4 +0,0 @@
1
- declare module '*.md' {
2
- const content: string;
3
- export default content;
4
- }