@rxap/directives 16.0.0-dev.1 → 16.0.0-dev.11

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 (45) hide show
  1. package/CHANGELOG.md +313 -0
  2. package/LICENSE +621 -21
  3. package/LICENSE.md +621 -0
  4. package/README.md +8 -22
  5. package/esm2022/index.mjs +1 -1
  6. package/esm2022/lib/avatar-background-image.directive.mjs +16 -30
  7. package/esm2022/lib/background-image.directive.mjs +12 -25
  8. package/esm2022/lib/confirm-click.mjs +6 -7
  9. package/esm2022/lib/contenteditable.directive.mjs +9 -22
  10. package/esm2022/lib/full-width.directive.mjs +7 -20
  11. package/esm2022/lib/if-truthy.directive.mjs +13 -26
  12. package/esm2022/lib/method-template.directive.mjs +23 -33
  13. package/esm2022/lib/method.directive.mjs +17 -30
  14. package/esm2022/lib/movable-divider.directive.mjs +16 -36
  15. package/esm2022/lib/prevent-default.directive.mjs +8 -21
  16. package/esm2022/lib/share-button.directive.mjs +20 -34
  17. package/esm2022/lib/stop-immediate-propagation.directive.mjs +8 -21
  18. package/esm2022/lib/stop-propagation.directive.mjs +8 -21
  19. package/esm2022/rxap-directives.mjs +1 -1
  20. package/fesm2022/rxap-directives.mjs +123 -256
  21. package/fesm2022/rxap-directives.mjs.map +1 -1
  22. package/lib/avatar-background-image.directive.d.ts +3 -8
  23. package/lib/background-image.directive.d.ts +2 -7
  24. package/lib/confirm-click.d.ts +1 -1
  25. package/lib/contenteditable.directive.d.ts +3 -8
  26. package/lib/full-width.directive.d.ts +1 -6
  27. package/lib/if-truthy.directive.d.ts +7 -12
  28. package/lib/method-template.directive.d.ts +6 -10
  29. package/lib/method.directive.d.ts +5 -10
  30. package/lib/movable-divider.directive.d.ts +1 -6
  31. package/lib/prevent-default.directive.d.ts +1 -6
  32. package/lib/share-button.directive.d.ts +1 -6
  33. package/lib/stop-immediate-propagation.directive.d.ts +1 -6
  34. package/lib/stop-propagation.directive.d.ts +1 -6
  35. package/package.json +55 -41
  36. package/theme.css +1 -0
  37. package/collection.json +0 -10
  38. package/migration.json +0 -10
  39. package/src/migrations/v11-2-0/index.d.ts +0 -2
  40. package/src/migrations/v11-2-0/index.js +0 -29
  41. package/src/migrations/v11-2-0/index.js.map +0 -1
  42. package/src/schematics/ng-add/index.d.ts +0 -2
  43. package/src/schematics/ng-add/index.js +0 -8
  44. package/src/schematics/ng-add/index.js.map +0 -1
  45. package/src/schematics/ng-add/schema.json +0 -7
package/package.json CHANGED
@@ -1,53 +1,67 @@
1
1
  {
2
2
  "name": "@rxap/directives",
3
- "version": "16.0.0-dev.1",
4
- "private": false,
5
- "author": "Merzough Münker",
6
- "homepage": "https://gitlab.com/rxap/packages/libs/directives",
7
- "repository": "git@gitlab.com:rxap/packages.git",
8
- "license": "MIT",
3
+ "version": "16.0.0-dev.11",
4
+ "peerDependencies": {
5
+ "@angular/core": "^16.1.4",
6
+ "@rxap/pattern": "^1.0.1-dev.5",
7
+ "@rxap/rxjs": "^1.0.1-dev.5",
8
+ "@rxap/services": "^16.0.0-dev.9",
9
+ "@rxap/utilities": "^16.0.0-dev.13",
10
+ "rxjs": "^7.8.0"
11
+ },
12
+ "sideEffects": false,
13
+ "dependencies": {
14
+ "tslib": "2.5.3"
15
+ },
16
+ "description": "A collection of utility angular directives used in RxAP.",
17
+ "publishConfig": {
18
+ "access": "public",
19
+ "directory": "../../../dist/packages/angular/directives"
20
+ },
9
21
  "keywords": [
10
22
  "rxap",
11
- "directives"
23
+ "angular",
24
+ "ngx",
25
+ "packages",
26
+ "directives",
27
+ "angular-directives"
12
28
  ],
29
+ "homepage": "https:/gitlab.com/rxap/packages/packages/angular/directives",
13
30
  "bugs": {
14
31
  "url": "https://gitlab.com/rxap/packages/-/issues",
15
32
  "email": "incoming+rxap-packages-14898188-issue-@incoming.gitlab.com"
16
33
  },
17
- "description": "A collection of utility angular directives used in RxAP.",
18
- "peerDependencies": {
19
- "@angular-devkit/core": "^15.0.3",
20
- "@angular-devkit/schematics": "^15.0.3",
21
- "@angular/cdk": "^16.0.1",
22
- "@angular/common": "^16.0.2",
23
- "@angular/core": "^16.0.2",
24
- "@angular/platform-browser-dynamic": "^16.0.2",
25
- "@angular/router": "^16.0.2",
26
- "@rxap/services": "^16.0.0-dev.1",
27
- "@rxap/utilities": "^16.0.0-dev.1",
28
- "reflect-metadata": "^0.1.13",
29
- "rxjs": "^6.6.0"
34
+ "license": "GPL-3.0-or-later",
35
+ "repository": {
36
+ "type": "git",
37
+ "url": "https://gitlab.com/rxap/packages.git",
38
+ "directory": "packages/angular/directives"
30
39
  },
31
- "schematics": "./collection.json",
32
- "ng-update": {
33
- "migrations": "./migration.json",
40
+ "author": {
41
+ "name": "Merzough Münker",
42
+ "email": "mmuenker@digitaix.com"
43
+ },
44
+ "nx-migrations": {
34
45
  "packageGroup": [
35
- "@rxap/directives",
36
- "@rxap/services",
37
- "@rxap/utilities"
46
+ {
47
+ "package": "@rxap/pattern",
48
+ "version": "1.0.1-dev.5"
49
+ },
50
+ {
51
+ "package": "@rxap/rxjs",
52
+ "version": "1.0.1-dev.5"
53
+ },
54
+ {
55
+ "package": "@rxap/services",
56
+ "version": "16.0.0-dev.9"
57
+ },
58
+ {
59
+ "package": "@rxap/utilities",
60
+ "version": "16.0.0-dev.13"
61
+ }
38
62
  ]
39
63
  },
40
- "publishConfig": {
41
- "directory": "../../dist/libs/directives",
42
- "access": "public"
43
- },
44
- "ng-add": {
45
- "save": "dependencies"
46
- },
47
- "dependencies": {
48
- "@rxap/schematics-utilities": "^16.0.0-dev.1",
49
- "tslib": "^2.3.1"
50
- },
64
+ "gitHead": "570517e2cea17029b8546b9e03f71a5da274369d",
51
65
  "module": "fesm2022/rxap-directives.mjs",
52
66
  "typings": "index.d.ts",
53
67
  "exports": {
@@ -59,7 +73,7 @@
59
73
  "esm2022": "./esm2022/rxap-directives.mjs",
60
74
  "esm": "./esm2022/rxap-directives.mjs",
61
75
  "default": "./fesm2022/rxap-directives.mjs"
62
- }
63
- },
64
- "sideEffects": false
65
- }
76
+ },
77
+ "./theme": "./theme.css"
78
+ }
79
+ }
package/theme.css ADDED
@@ -0,0 +1 @@
1
+ .static{position:static}.fixed{position:fixed}.sticky{position:sticky}.block{display:block}.inline{display:inline}.contents{display:contents}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.capitalize{text-transform:capitalize}.invert{--tw-invert:invert(100%)}.filter,.invert{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}
package/collection.json DELETED
@@ -1,10 +0,0 @@
1
- {
2
- "schematics": {
3
- "ng-add": {
4
- "description": "Setup the package @rxap/directives for the workspace.",
5
- "factory": "./src/schematics/ng-add/index",
6
- "schema": "./src/schematics/ng-add/schema.json"
7
- }
8
- },
9
- "$schema": "../../node_modules/@angular-devkit/schematics/collection-schema.json"
10
- }
package/migration.json DELETED
@@ -1,10 +0,0 @@
1
- {
2
- "schematics": {
3
- "v11-2-0": {
4
- "version": "11.2.0",
5
- "factory": "./src/migrations/v11-2-0/index",
6
- "description": "updates to v11.2.0"
7
- }
8
- },
9
- "$schema": "../../node_modules/@angular-devkit/schematics/collection-schema.json"
10
- }
@@ -1,2 +0,0 @@
1
- import { Rule } from '@angular-devkit/schematics';
2
- export default function (): Rule;
@@ -1,29 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- function default_1() {
4
- return (host) => {
5
- host.visit((path, entry) => {
6
- if (entry && path.match(/\.ts$/) && !path.match(/\/node_modules\//)) {
7
- const content = entry.content.toString('utf-8');
8
- {
9
- const regex = /from '@rxap\/directives\/material([^']+)'/g;
10
- const match = content.match(regex);
11
- if (match) {
12
- const newContent = content.replace(regex, 'from \'@rxap/material-directives$1\'');
13
- host.overwrite(path, newContent);
14
- }
15
- }
16
- {
17
- const regex = /from '@rxap\/directives\/form-field-no-padding'/g;
18
- const match = content.match(regex);
19
- if (match) {
20
- const newContent = content.replace(regex, 'from \'@rxap/material-directives/form-field\'');
21
- host.overwrite(path, newContent);
22
- }
23
- }
24
- }
25
- });
26
- };
27
- }
28
- exports.default = default_1;
29
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../libs/directives/src/migrations/v11-2-0/index.ts"],"names":[],"mappings":";;AAQA;IAEE,OAAO,CAAC,IAAU,EAAE,EAAE;QAEpB,IAAI,CAAC,KAAK,CAAC,CAAC,IAAU,EAAE,KAAkC,EAAQ,EAAE;YAElE,IAAI,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,kBAAkB,CAAC,EAAE;gBAEnE,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;gBAChD;oBACE,MAAM,KAAK,GAAG,4CAA4C,CAAC;oBAC3D,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;oBAEnC,IAAI,KAAK,EAAE;wBACT,MAAM,UAAU,GAAG,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,sCAAsC,CAAC,CAAC;wBAClF,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;qBAClC;iBACF;gBACD;oBACE,MAAM,KAAK,GAAG,kDAAkD,CAAC;oBACjE,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;oBAEnC,IAAI,KAAK,EAAE;wBACT,MAAM,UAAU,GAAG,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,+CAA+C,CAAC,CAAC;wBAC3F,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;qBAClC;iBACF;aAEF;QAEH,CAAC,CAAC,CAAC;IAEL,CAAC,CAAC;AAEJ,CAAC;AAlCD,4BAkCC"}
@@ -1,2 +0,0 @@
1
- import { Rule } from '@angular-devkit/schematics';
2
- export default function (): Rule;
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const schematics_utilities_1 = require("@rxap/schematics-utilities");
4
- function default_1() {
5
- return (0, schematics_utilities_1.InstallPeerDependencies)();
6
- }
7
- exports.default = default_1;
8
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../libs/directives/src/schematics/ng-add/index.ts"],"names":[],"mappings":";;AACA,qEAAqE;AAErE;IACE,OAAO,IAAA,8CAAuB,GAAE,CAAC;AACnC,CAAC;AAFD,4BAEC"}
@@ -1,7 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema",
3
- "$id": "directives-ng-add",
4
- "type": "object",
5
- "properties": {},
6
- "required": []
7
- }