@lucca-front/ng 19.1.6 → 19.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.
Files changed (189) hide show
  1. package/chip/chip.component.d.ts +12 -0
  2. package/chip/chip.translate.d.ts +7 -0
  3. package/chip/index.d.ts +5 -0
  4. package/chip/public-api.d.ts +1 -0
  5. package/chip/translations.d.ts +26 -0
  6. package/core-select/input/select-input.component.d.ts +13 -2
  7. package/core-select/no-clue/index.d.ts +1 -0
  8. package/core-select/no-clue/no-clue.directive.d.ts +6 -0
  9. package/core-select/option/option-outlet.directive.d.ts +1 -0
  10. package/core-select/public-api.d.ts +1 -0
  11. package/date/calendar/calendar-input.component.d.ts +1 -0
  12. package/date/calendar/calendar-input.translate.d.ts +8 -0
  13. package/date/calendar/translations.d.ts +34 -0
  14. package/date2/date-input/date-input.component.d.ts +18 -3
  15. package/date2/date-range-input/date-range-input.component.d.ts +12 -1
  16. package/date2/date2.translate.d.ts +2 -0
  17. package/date2/repeat-times.directive.d.ts +1 -0
  18. package/date2/translations.d.ts +4 -0
  19. package/department/service/department-v4.service.d.ts +1 -2
  20. package/fesm2022/lucca-front-ng-a11y.mjs +2 -2
  21. package/fesm2022/lucca-front-ng-a11y.mjs.map +1 -1
  22. package/fesm2022/lucca-front-ng-api.mjs +6 -6
  23. package/fesm2022/lucca-front-ng-api.mjs.map +1 -1
  24. package/fesm2022/lucca-front-ng-button.mjs +2 -2
  25. package/fesm2022/lucca-front-ng-button.mjs.map +1 -1
  26. package/fesm2022/lucca-front-ng-callout.mjs +6 -6
  27. package/fesm2022/lucca-front-ng-callout.mjs.map +1 -1
  28. package/fesm2022/lucca-front-ng-chip.mjs +75 -0
  29. package/fesm2022/lucca-front-ng-chip.mjs.map +1 -0
  30. package/fesm2022/lucca-front-ng-core-select-user.mjs +4 -4
  31. package/fesm2022/lucca-front-ng-core-select-user.mjs.map +1 -1
  32. package/fesm2022/lucca-front-ng-core-select.mjs +63 -13
  33. package/fesm2022/lucca-front-ng-core-select.mjs.map +1 -1
  34. package/fesm2022/lucca-front-ng-date.mjs +46 -5
  35. package/fesm2022/lucca-front-ng-date.mjs.map +1 -1
  36. package/fesm2022/lucca-front-ng-date2.mjs +141 -33
  37. package/fesm2022/lucca-front-ng-date2.mjs.map +1 -1
  38. package/fesm2022/lucca-front-ng-department.mjs +13 -10
  39. package/fesm2022/lucca-front-ng-department.mjs.map +1 -1
  40. package/fesm2022/lucca-front-ng-dialog.mjs +6 -6
  41. package/fesm2022/lucca-front-ng-dialog.mjs.map +1 -1
  42. package/fesm2022/lucca-front-ng-divider.mjs +2 -2
  43. package/fesm2022/lucca-front-ng-divider.mjs.map +1 -1
  44. package/fesm2022/lucca-front-ng-dropdown.mjs +3 -3
  45. package/fesm2022/lucca-front-ng-dropdown.mjs.map +1 -1
  46. package/fesm2022/lucca-front-ng-empty-state.mjs +4 -4
  47. package/fesm2022/lucca-front-ng-empty-state.mjs.map +1 -1
  48. package/fesm2022/lucca-front-ng-establishment.mjs +6 -6
  49. package/fesm2022/lucca-front-ng-establishment.mjs.map +1 -1
  50. package/fesm2022/lucca-front-ng-fancy-box.mjs +2 -2
  51. package/fesm2022/lucca-front-ng-fancy-box.mjs.map +1 -1
  52. package/fesm2022/lucca-front-ng-filter-pills.mjs +294 -0
  53. package/fesm2022/lucca-front-ng-filter-pills.mjs.map +1 -0
  54. package/fesm2022/lucca-front-ng-form-field.mjs +5 -3
  55. package/fesm2022/lucca-front-ng-form-field.mjs.map +1 -1
  56. package/fesm2022/lucca-front-ng-formly.mjs +36 -36
  57. package/fesm2022/lucca-front-ng-formly.mjs.map +1 -1
  58. package/fesm2022/lucca-front-ng-forms-phone-number-input.mjs +10 -4
  59. package/fesm2022/lucca-front-ng-forms-phone-number-input.mjs.map +1 -1
  60. package/fesm2022/lucca-front-ng-forms.mjs +38 -10
  61. package/fesm2022/lucca-front-ng-forms.mjs.map +1 -1
  62. package/fesm2022/lucca-front-ng-inline-message.mjs +2 -2
  63. package/fesm2022/lucca-front-ng-inline-message.mjs.map +1 -1
  64. package/fesm2022/lucca-front-ng-input.mjs +37 -3
  65. package/fesm2022/lucca-front-ng-input.mjs.map +1 -1
  66. package/fesm2022/lucca-front-ng-link.mjs +3 -3
  67. package/fesm2022/lucca-front-ng-link.mjs.map +1 -1
  68. package/fesm2022/lucca-front-ng-modal.mjs +2 -2
  69. package/fesm2022/lucca-front-ng-modal.mjs.map +1 -1
  70. package/fesm2022/lucca-front-ng-multi-select.mjs +101 -38
  71. package/fesm2022/lucca-front-ng-multi-select.mjs.map +1 -1
  72. package/fesm2022/lucca-front-ng-new-badge.mjs +2 -2
  73. package/fesm2022/lucca-front-ng-new-badge.mjs.map +1 -1
  74. package/fesm2022/lucca-front-ng-number-format.mjs +1 -6
  75. package/fesm2022/lucca-front-ng-number-format.mjs.map +1 -1
  76. package/fesm2022/lucca-front-ng-numeric-badge.mjs +18 -4
  77. package/fesm2022/lucca-front-ng-numeric-badge.mjs.map +1 -1
  78. package/fesm2022/lucca-front-ng-option.mjs +14 -14
  79. package/fesm2022/lucca-front-ng-option.mjs.map +1 -1
  80. package/fesm2022/lucca-front-ng-plg-push.mjs +2 -2
  81. package/fesm2022/lucca-front-ng-plg-push.mjs.map +1 -1
  82. package/fesm2022/lucca-front-ng-popover2.mjs +2 -2
  83. package/fesm2022/lucca-front-ng-popover2.mjs.map +1 -1
  84. package/fesm2022/lucca-front-ng-popup-employee.mjs +2 -6
  85. package/fesm2022/lucca-front-ng-popup-employee.mjs.map +1 -1
  86. package/fesm2022/lucca-front-ng-qualification.mjs +2 -2
  87. package/fesm2022/lucca-front-ng-qualification.mjs.map +1 -1
  88. package/fesm2022/lucca-front-ng-scrollBox.mjs +63 -0
  89. package/fesm2022/lucca-front-ng-scrollBox.mjs.map +1 -0
  90. package/fesm2022/lucca-front-ng-select.mjs +2 -2
  91. package/fesm2022/lucca-front-ng-select.mjs.map +1 -1
  92. package/fesm2022/lucca-front-ng-simple-select.mjs +79 -31
  93. package/fesm2022/lucca-front-ng-simple-select.mjs.map +1 -1
  94. package/fesm2022/lucca-front-ng-skeleton.mjs +12 -12
  95. package/fesm2022/lucca-front-ng-skeleton.mjs.map +1 -1
  96. package/fesm2022/lucca-front-ng-statusBadge.mjs +2 -2
  97. package/fesm2022/lucca-front-ng-statusBadge.mjs.map +1 -1
  98. package/fesm2022/lucca-front-ng-tag.mjs +2 -2
  99. package/fesm2022/lucca-front-ng-tag.mjs.map +1 -1
  100. package/fesm2022/lucca-front-ng-time.mjs +4 -4
  101. package/fesm2022/lucca-front-ng-time.mjs.map +1 -1
  102. package/fesm2022/lucca-front-ng-tooltip.mjs +3 -3
  103. package/fesm2022/lucca-front-ng-tooltip.mjs.map +1 -1
  104. package/fesm2022/lucca-front-ng-user.mjs +8 -8
  105. package/fesm2022/lucca-front-ng-user.mjs.map +1 -1
  106. package/filter-pills/core/filter-pill-displayer.directive.d.ts +14 -0
  107. package/filter-pills/core/filter-pill-input-component.d.ts +17 -0
  108. package/filter-pills/core/filter-pill-label.directive.d.ts +15 -0
  109. package/filter-pills/core/index.d.ts +4 -0
  110. package/filter-pills/core/tokens.d.ts +4 -0
  111. package/filter-pills/filter-bar/filter-bar.component.d.ts +14 -0
  112. package/filter-pills/filter-bar/filter-pill-addon.directive.d.ts +13 -0
  113. package/filter-pills/filter-pill/filter-pill.component.d.ts +45 -0
  114. package/filter-pills/filter-pills.translate.d.ts +9 -0
  115. package/filter-pills/index.d.ts +5 -0
  116. package/filter-pills/public-api.d.ts +4 -0
  117. package/filter-pills/translations.d.ts +42 -0
  118. package/form-field/form-field.component.d.ts +2 -1
  119. package/formly/style/_components.scss +4 -3
  120. package/formly/style/main.scss +2 -2
  121. package/forms/checkbox-input/checkbox-input.component.d.ts +13 -1
  122. package/forms/phone-number-input/phone-number-input.component.d.ts +3 -1
  123. package/input/clearer/clearer.component.d.ts +1 -0
  124. package/input/clearer/clearer.translate.d.ts +7 -0
  125. package/input/clearer/translations.d.ts +26 -0
  126. package/link/link.component.d.ts +1 -1
  127. package/link/link.translate.d.ts +3 -3
  128. package/multi-select/displayer/default-displayer.component.d.ts +1 -0
  129. package/multi-select/input/panel-ref.factory.d.ts +2 -1
  130. package/multi-select/input/panel.model.d.ts +1 -1
  131. package/multi-select/input/select-input.component.d.ts +11 -3
  132. package/numeric-badge/numeric-badge.component.d.ts +4 -1
  133. package/package.json +56 -44
  134. package/popup-employee/card/trigger/user-popover-trigger.directive.d.ts +0 -4
  135. package/schematics/action-icon/index.js +3 -7
  136. package/schematics/action-icon/migration.js +3 -3
  137. package/schematics/action-icon/schema.json +21 -5
  138. package/schematics/cdn-urls/index.js +21 -0
  139. package/schematics/cdn-urls/migration.js +81 -0
  140. package/schematics/cdn-urls/migration.spec.js +50 -0
  141. package/schematics/cdn-urls/schema.json +23 -0
  142. package/schematics/collection.json +38 -28
  143. package/schematics/empty-state-title/index.js +4 -8
  144. package/schematics/empty-state-title/schema.json +21 -5
  145. package/schematics/lib/angular-component-ast.js +215 -0
  146. package/schematics/lib/angular-template.js +52 -12
  147. package/schematics/lib/css-mapper.js +14 -14
  148. package/schematics/lib/html-ast.js +25 -25
  149. package/schematics/lib/lf-schematic-context.js +51 -0
  150. package/schematics/lib/migration-test.js +9 -0
  151. package/schematics/lib/scss-ast.js +3 -3
  152. package/schematics/lu-select/index.js +24 -0
  153. package/schematics/lu-select/migration.js +319 -0
  154. package/schematics/lu-select/migration.spec.js +23 -0
  155. package/schematics/lu-select/model/select-context.js +17 -0
  156. package/schematics/lu-select/schema.json +28 -0
  157. package/schematics/lu-select/util.js +241 -0
  158. package/schematics/new-icons/index.js +4 -8
  159. package/schematics/new-icons/migration.js +11 -10
  160. package/schematics/new-icons/schema.json +21 -5
  161. package/schematics/palettes/index.js +7 -10
  162. package/schematics/palettes/schema.json +21 -5
  163. package/schematics/tokens-spacing/index.js +7 -10
  164. package/schematics/tokens-spacing/schema.json +21 -5
  165. package/scrollBox/index.d.ts +5 -0
  166. package/scrollBox/public-api.d.ts +1 -0
  167. package/scrollBox/scroll-box.component.d.ts +13 -0
  168. package/simple-select/input/panel-ref.factory.d.ts +2 -1
  169. package/simple-select/input/select-input.component.d.ts +5 -0
  170. package/simple-select/panel/panel.component.d.ts +1 -1
  171. package/src/_components.scss +12 -12
  172. package/src/_definitions.scss +6 -6
  173. package/src/components/_picker.scss +25 -23
  174. package/src/components/_popover.scss +3 -2
  175. package/src/components/_popup.scss +37 -34
  176. package/src/components/_sidepanel.scss +11 -12
  177. package/src/components/cdk/_dragDrop.scss +4 -4
  178. package/src/components/cdk/_global.scss +10 -11
  179. package/src/components/cdk/_misc.scss +2 -2
  180. package/src/components/cdk/_overlay.scss +11 -14
  181. package/src/components/cdk/_textarea.scss +8 -6
  182. package/src/definitions/option/_option-item.scss +15 -15
  183. package/src/definitions/option/_option-placeholder.scss +2 -1
  184. package/src/definitions/option/_option-searcher.scss +4 -3
  185. package/src/definitions/select/_select-input.scss +43 -46
  186. package/src/definitions/user/user-picture.scss +1 -1
  187. package/src/definitions/user/user-tile.scss +4 -3
  188. package/src/main.scss +2 -2
  189. package/src/components/_dropdown.scss +0 -84
@@ -1,19 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const installer_js_1 = require("../lib/local-deps/installer.js");
4
3
  const schematics_js_1 = require("../lib/schematics.js");
5
4
  const migration_js_1 = require("./migration.js");
5
+ const lf_schematic_context_1 = require("../lib/lf-schematic-context");
6
6
  // Nx need to see "@angular-devkit/schematics" in order to run this migration correctly (see https://github.com/nrwl/nx/blob/d9fed4b832bf01d1b9a44ae9e486a5e5cd2d2253/packages/nx/src/command-line/migrate/migrate.ts#L1729-L1738)
7
7
  // eslint-disable-next-line @typescript-eslint/no-require-imports
8
8
  require('@angular-devkit/schematics');
9
9
  exports.default = (options) => {
10
- const skipInstallation = options?.skipInstallation ?? false;
11
10
  return async (tree, context) => {
12
- if (!skipInstallation) {
13
- (0, installer_js_1.installLocalDependencies)(context);
14
- }
11
+ await lf_schematic_context_1.currentSchematicContext.init(context, options);
15
12
  const postCssScss = await Promise.resolve().then(() => require('../lib/local-deps/postcss-scss.js'));
16
- const angularCompiler = await Promise.resolve().then(() => require('@angular/compiler'));
17
13
  const { postcssSelectorParser } = await Promise.resolve().then(() => require('../lib/local-deps/postcss-selector-parser.js'));
18
14
  tree.visit((path, entry) => {
19
15
  if (path.includes('node_modules') || !entry) {
@@ -23,10 +19,10 @@ exports.default = (options) => {
23
19
  (0, schematics_js_1.migrateFile)(path, entry, tree, (content) => (0, migration_js_1.migrateScssFile)(content, postCssScss, postcssSelectorParser));
24
20
  }
25
21
  if (path.endsWith('.html')) {
26
- (0, schematics_js_1.migrateFile)(path, entry, tree, (content) => (0, migration_js_1.migrateHTMLFile)(content, angularCompiler));
22
+ (0, schematics_js_1.migrateFile)(path, entry, tree, (content) => (0, migration_js_1.migrateHTMLFile)(content));
27
23
  }
28
24
  if (path.endsWith('.ts')) {
29
- (0, schematics_js_1.migrateFile)(path, entry, tree, (content) => (0, migration_js_1.migrateTsFile)(path, content, angularCompiler));
25
+ (0, schematics_js_1.migrateFile)(path, entry, tree, (content) => (0, migration_js_1.migrateTsFile)(path, content));
30
26
  }
31
27
  });
32
28
  };
@@ -10,41 +10,42 @@ const html_ast_js_1 = require("../lib/html-ast.js");
10
10
  const scss_ast_js_1 = require("../lib/scss-ast.js");
11
11
  const typescript_ast_js_1 = require("../lib/typescript-ast.js");
12
12
  const mapping_js_1 = require("./mapping.js");
13
+ const lf_schematic_context_1 = require("../lib/lf-schematic-context");
13
14
  function migrateScssFile(content, postCssScss, postcssSelectorParser) {
14
15
  const root = postCssScss.parse(content);
15
16
  (0, scss_ast_js_1.updateCSSClassNamesInRules)(root, mapping_js_1.oldIconClassToNewIconClass, postcssSelectorParser);
16
17
  return root.toResult({ syntax: { stringify: postCssScss.stringify } }).css;
17
18
  }
18
- function migrateHTMLFile(content, angularCompiler) {
19
- content = (0, html_ast_js_1.updateCssClassNames)(content, mapping_js_1.oldIconClassToNewIconClass, angularCompiler);
20
- content = (0, angular_template_js_1.replaceComponentInput)('lu-icon', 'icon', mapping_js_1.oldIconToNewIcon, content, angularCompiler);
19
+ function migrateHTMLFile(content) {
20
+ content = (0, html_ast_js_1.updateCssClassNames)(content, mapping_js_1.oldIconClassToNewIconClass);
21
+ content = (0, angular_template_js_1.replaceComponentInput)('lu-icon', 'icon', mapping_js_1.oldIconToNewIcon, content);
21
22
  return (0, file_update_js_1.updateContent)(content, (updates) => {
22
- const htmlAst = new html_ast_js_1.HtmlAst(content, angularCompiler);
23
+ const htmlAst = new html_ast_js_1.HtmlAst(content);
23
24
  htmlAst.visitElementWithAttribute(/.*/, 'class', (elem, attr) => {
24
- const legacyIconText = attr.value.includes('lucca-icon') && elem.children.find((c) => c instanceof angularCompiler.TmplAstText && mapping_js_1.oldIcons.has(c.value));
25
- if (attr.valueSpan && legacyIconText && legacyIconText instanceof angularCompiler.TmplAstText) {
25
+ const legacyIconText = attr.value.includes('lucca-icon') && elem.children.find((c) => c instanceof lf_schematic_context_1.currentSchematicContext.angularCompiler.TmplAstText && mapping_js_1.oldIcons.has(c.value));
26
+ if (attr.valueSpan && legacyIconText && legacyIconText instanceof lf_schematic_context_1.currentSchematicContext.angularCompiler.TmplAstText) {
26
27
  updates.push({
27
28
  position: legacyIconText.sourceSpan.start.offset,
28
29
  oldContent: legacyIconText.value,
29
- newContent: '',
30
+ newContent: ''
30
31
  });
31
32
  updates.push({
32
33
  position: attr.valueSpan.start.offset,
33
34
  oldContent: attr.value,
34
- newContent: attr.value.replace('lucca-icon', 'lucca-icon ' + mapping_js_1.oldIconClassToNewIconClass['icon-' + legacyIconText.value]),
35
+ newContent: attr.value.replace('lucca-icon', 'lucca-icon ' + mapping_js_1.oldIconClassToNewIconClass['icon-' + legacyIconText.value])
35
36
  });
36
37
  }
37
38
  });
38
39
  });
39
40
  }
40
- function migrateTsFile(fileName, content, angularCompiler) {
41
+ function migrateTsFile(fileName, content) {
41
42
  return (0, file_update_js_1.updateContent)(content, (updates) => {
42
43
  const sourcefile = (0, typescript_1.createSourceFile)(fileName, content, typescript_1.ScriptTarget.ESNext);
43
44
  const templates = (0, angular_template_js_1.extractNgTemplates)(sourcefile);
44
45
  updates.push(...templates.map((tpl) => ({
45
46
  position: tpl.offsetStart,
46
47
  oldContent: tpl.content,
47
- newContent: migrateHTMLFile(tpl.content, angularCompiler),
48
+ newContent: migrateHTMLFile(tpl.content)
48
49
  })));
49
50
  updates.push(...(0, typescript_ast_js_1.replaceStringLiterals)(sourcefile, mapping_js_1.oldIconClassToNewIconClass));
50
51
  });
@@ -1,7 +1,23 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-07/schema",
3
- "$id": "LuccaFrontNewIcons",
4
- "title": "Lucca Front New Icons Schema",
5
- "type": "object",
6
- "properties": {}
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
+ "$id": "LuccaFrontNewIcons",
4
+ "title": "Lucca Front New Icons Schema",
5
+ "type": "object",
6
+ "properties": {
7
+ "dryRun": {
8
+ "type": "boolean",
9
+ "description": "Run through the migration without making any changes.",
10
+ "default": false
11
+ },
12
+ "skipInstall": {
13
+ "type": "boolean",
14
+ "description": "Skip installing dependencies.",
15
+ "default": false
16
+ },
17
+ "verbose": {
18
+ "type": "boolean",
19
+ "description": "Enable verbose logging.",
20
+ "default": false
21
+ }
22
+ }
7
23
  }
@@ -1,31 +1,28 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const css_mapper_1 = require("../lib/css-mapper");
4
- const installer_1 = require("../lib/local-deps/installer");
4
+ const lf_schematic_context_1 = require("../lib/lf-schematic-context");
5
5
  // Nx need to see "@angular-devkit/schematics" in order to run this migration correctly (see https://github.com/nrwl/nx/blob/d9fed4b832bf01d1b9a44ae9e486a5e5cd2d2253/packages/nx/src/command-line/migrate/migrate.ts#L1729-L1738)
6
6
  // eslint-disable-next-line @typescript-eslint/no-require-imports
7
7
  require('@angular-devkit/schematics');
8
8
  exports.default = (options) => {
9
- const skipInstallation = options?.skipInstallation ?? false;
10
9
  return async (tree, context) => {
11
- if (!skipInstallation) {
12
- (0, installer_1.installLocalDependencies)(context);
13
- }
10
+ await lf_schematic_context_1.currentSchematicContext.init(context, options);
14
11
  await new css_mapper_1.CssMapper(tree, {
15
12
  classes: {
16
13
  'palette-grey': 'palette-neutral',
17
14
  'palette-primary': 'palette-product',
18
15
  'palette-secondary': 'palette-product',
19
- 'palette-lucca': 'palette-brand',
16
+ 'palette-lucca': 'palette-brand'
20
17
  },
21
18
  variables: {
22
19
  '--palettes-grey-{val}': `--palettes-neutral-{val}`,
23
20
  '--palettes-primary-{val}': `--palettes-product-{val}`,
24
21
  '--palettes-secondary-{val}': `--palettes-product-{val}`,
25
22
  '--palettes-lucca-{val}': `--palettes-brand-{val}`,
26
- '--colors-grey-{val}': `--colors-neutral-{val}`,
23
+ '--colors-grey-{val}': `--colors-neutral-{val}`
27
24
  },
28
- mixins: {},
25
+ mixins: {}
29
26
  }, {
30
27
  val: {
31
28
  25: '25',
@@ -38,8 +35,8 @@ exports.default = (options) => {
38
35
  600: '600',
39
36
  700: '700',
40
37
  800: '800',
41
- 900: '900',
42
- },
38
+ 900: '900'
39
+ }
43
40
  }).run();
44
41
  };
45
42
  };
@@ -1,7 +1,23 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-07/schema",
3
- "$id": "LuccaFrontPalettes",
4
- "title": "Lucca Front Palettes Schema",
5
- "type": "object",
6
- "properties": {}
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
+ "$id": "LuccaFrontPalettes",
4
+ "title": "Lucca Front Palettes Schema",
5
+ "type": "object",
6
+ "properties": {
7
+ "dryRun": {
8
+ "type": "boolean",
9
+ "description": "Run through the migration without making any changes.",
10
+ "default": false
11
+ },
12
+ "skipInstall": {
13
+ "type": "boolean",
14
+ "description": "Skip installing dependencies.",
15
+ "default": false
16
+ },
17
+ "verbose": {
18
+ "type": "boolean",
19
+ "description": "Enable verbose logging.",
20
+ "default": false
21
+ }
22
+ }
7
23
  }
@@ -1,16 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const css_mapper_1 = require("../lib/css-mapper");
4
- const installer_1 = require("../lib/local-deps/installer");
4
+ const lf_schematic_context_1 = require("../lib/lf-schematic-context");
5
5
  // Nx need to see "@angular-devkit/schematics" in order to run this migration correctly (see https://github.com/nrwl/nx/blob/d9fed4b832bf01d1b9a44ae9e486a5e5cd2d2253/packages/nx/src/command-line/migrate/migrate.ts#L1729-L1738)
6
6
  // eslint-disable-next-line @typescript-eslint/no-require-imports
7
7
  require('@angular-devkit/schematics');
8
8
  exports.default = (options) => {
9
- const skipInstallation = options?.skipInstallation ?? false;
10
9
  return async (tree, context) => {
11
- if (!skipInstallation) {
12
- (0, installer_1.installLocalDependencies)(context);
13
- }
10
+ await lf_schematic_context_1.currentSchematicContext.init(context, options);
14
11
  await new css_mapper_1.CssMapper(tree, {
15
12
  classes: {
16
13
  'u-margin{tshirt}': 'pr-u-margin{tshirt}',
@@ -29,12 +26,12 @@ exports.default = (options) => {
29
26
  'u-paddingBlock{tshirt}': 'pr-u-paddingBlock{tshirt}',
30
27
  'u-gap{tshirt}': 'pr-u-gap{tshirt}',
31
28
  'u-rowGap{tshirt}': 'pr-u-rowGap{tshirt}',
32
- 'u-columnGap{tshirt}': 'pr-u-columnGap{tshirt}',
29
+ 'u-columnGap{tshirt}': 'pr-u-columnGap{tshirt}'
33
30
  },
34
31
  variables: {
35
- '--spacings-{tshirt}': `--pr-t-spacings-{tshirt}`,
32
+ '--spacings-{tshirt}': `--pr-t-spacings-{tshirt}`
36
33
  },
37
- mixins: {},
34
+ mixins: {}
38
35
  }, {
39
36
  tshirt: {
40
37
  Auto: 'Auto',
@@ -45,8 +42,8 @@ exports.default = (options) => {
45
42
  M: '300',
46
43
  L: '400',
47
44
  XL: '600',
48
- XXL: '800',
49
- },
45
+ XXL: '800'
46
+ }
50
47
  }).run();
51
48
  };
52
49
  };
@@ -1,7 +1,23 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-07/schema",
3
- "$id": "LuccaFrontTokensSpacing",
4
- "title": "Lucca Front Tokens Spacing Schema",
5
- "type": "object",
6
- "properties": {}
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
+ "$id": "LuccaFrontTokensSpacing",
4
+ "title": "Lucca Front Tokens Spacing Schema",
5
+ "type": "object",
6
+ "properties": {
7
+ "dryRun": {
8
+ "type": "boolean",
9
+ "description": "Run through the migration without making any changes.",
10
+ "default": false
11
+ },
12
+ "skipInstall": {
13
+ "type": "boolean",
14
+ "description": "Skip installing dependencies.",
15
+ "default": false
16
+ },
17
+ "verbose": {
18
+ "type": "boolean",
19
+ "description": "Enable verbose logging.",
20
+ "default": false
21
+ }
22
+ }
7
23
  }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@lucca-front/ng/scrollBox" />
5
+ export * from './public-api';
@@ -0,0 +1 @@
1
+ export * from './scroll-box.component';
@@ -0,0 +1,13 @@
1
+ import { OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ScrollBoxComponent implements OnInit {
4
+ #private;
5
+ get isFirstVisibleClass(): boolean;
6
+ isFirstVisible: import("@angular/core").WritableSignal<boolean>;
7
+ get isLastVisibleClass(): boolean;
8
+ isLastVisible: import("@angular/core").WritableSignal<boolean>;
9
+ initObserver(element: Element, isFirst: boolean): void;
10
+ ngOnInit(): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScrollBoxComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<ScrollBoxComponent, "lu-scroll-box", never, {}, {}, never, ["*"], true, never>;
13
+ }
@@ -1,5 +1,5 @@
1
1
  import { Overlay, OverlayConfig, OverlayPositionBuilder, ScrollStrategyOptions } from '@angular/cdk/overlay';
2
- import { ElementRef, Injector } from '@angular/core';
2
+ import { ElementRef, Injector, ViewContainerRef } from '@angular/core';
3
3
  import { LuSelectPanelRef } from '@lucca-front/ng/core-select';
4
4
  import { LuSimpleSelectInputComponent } from './select-input.component';
5
5
  import * as i0 from "@angular/core";
@@ -12,6 +12,7 @@ export declare class LuSimpleSelectPanelRefFactory {
12
12
  private selectLabelId;
13
13
  private selectId;
14
14
  buildPanelRef<T>(selectInput: LuSimpleSelectInputComponent<T>, overlayConfigOverride?: OverlayConfig): LuSelectPanelRef<T, T>;
15
+ buildAndAttachPanelRef<T>(selectInput: LuSimpleSelectInputComponent<T>, host: ViewContainerRef): LuSelectPanelRef<T, T>;
15
16
  protected buildOverlayConfig(overlayConfigOverride?: OverlayConfig): OverlayConfig;
16
17
  static ɵfac: i0.ɵɵFactoryDeclaration<LuSimpleSelectPanelRefFactory, never>;
17
18
  static ɵprov: i0.ɵɵInjectableDeclaration<LuSimpleSelectPanelRefFactory>;
@@ -1,13 +1,18 @@
1
+ import { ViewContainerRef } from '@angular/core';
1
2
  import { ControlValueAccessor } from '@angular/forms';
2
3
  import { ALuSelectInputComponent, LuSelectPanelRef } from '@lucca-front/ng/core-select';
3
4
  import { LuSimpleSelectPanelRefFactory } from './panel-ref.factory';
4
5
  import * as i0 from "@angular/core";
5
6
  export declare class LuSimpleSelectInputComponent<T> extends ALuSelectInputComponent<T, T> implements ControlValueAccessor {
6
7
  intl: import("../select.translate").ILuSimpleSelectLabel;
8
+ get filterPillClass(): boolean;
7
9
  autocomplete?: string;
10
+ filterPillPanelAnchorRef: import("@angular/core").Signal<ViewContainerRef>;
8
11
  protected panelRefFactory: LuSimpleSelectPanelRefFactory;
9
12
  protected buildPanelRef(): LuSelectPanelRef<T, T>;
13
+ inputSpace(event: Event): void;
10
14
  protected hasValue(): boolean;
15
+ enableFilterPillMode(): void;
11
16
  static ɵfac: i0.ɵɵFactoryDeclaration<LuSimpleSelectInputComponent<any>, never>;
12
17
  static ɵcmp: i0.ɵɵComponentDeclaration<LuSimpleSelectInputComponent<any>, "lu-simple-select", never, { "autocomplete": { "alias": "autocomplete"; "required": false; }; }, {}, never, never, true, never>;
13
18
  }
@@ -19,7 +19,7 @@ export declare class LuSelectPanelComponent<T> implements AfterViewInit {
19
19
  optionTpl: import("@angular/core").ModelSignal<import("@angular/core").Type<unknown> | import("@angular/core").TemplateRef<import("@lucca-front/ng/core-select").LuOptionContext<T>>>;
20
20
  optionsQL: QueryList<ɵLuOptionComponent<T>>;
21
21
  keyManager: CoreSelectKeyManager<T>;
22
- get selected(): T | undefined;
22
+ selected: import("@angular/core").Signal<T>;
23
23
  clueChange$: import("rxjs").Observable<string>;
24
24
  shouldDisplayAddOption$: import("rxjs").Observable<boolean>;
25
25
  groupTemplateLocation$: import("rxjs").Observable<import("@lucca-front/ng/core-select/panel/panel.utils").GroupTemplateLocation>;
@@ -1,12 +1,12 @@
1
- @import 'components/calendar';
2
- @import 'components/input';
3
- @import 'components/picker';
4
- @import 'components/popover';
5
- @import 'components/popup';
6
- @import 'components/dropdown';
7
- @import 'components/sidepanel';
8
- @import 'components/cdk/overlay';
9
- @import 'components/cdk/textarea';
10
- @import 'components/cdk/misc';
11
- @import 'components/cdk/global';
12
- @import 'components/cdk/dragDrop';
1
+ @forward 'components/calendar';
2
+ @forward 'components/input';
3
+ @forward 'components/popover';
4
+ @forward 'components/picker';
5
+ @forward 'components/popup';
6
+ @forward 'components/sidepanel';
7
+
8
+ @forward 'components/cdk/overlay';
9
+ @forward 'components/cdk/textarea';
10
+ @forward 'components/cdk/misc';
11
+ @forward 'components/cdk/global';
12
+ @forward 'components/cdk/dragDrop';
@@ -1,6 +1,6 @@
1
- @import 'definitions/select/select-input';
2
- @import 'definitions/select/select-clearer';
3
- @import 'definitions/option/option-item';
4
- @import 'definitions/option/option-searcher';
5
- @import 'definitions/option/option-selector';
6
- @import 'definitions/option/option-placeholder';
1
+ @forward 'definitions/select/select-input';
2
+ @forward 'definitions/select/select-clearer';
3
+ @forward 'definitions/option/option-item';
4
+ @forward 'definitions/option/option-searcher';
5
+ @forward 'definitions/option/option-selector';
6
+ @forward 'definitions/option/option-placeholder';
@@ -1,3 +1,5 @@
1
+ @use 'popover';
2
+
1
3
  .lu-picker-panel {
2
4
  @extend %popover-panel;
3
5
  }
@@ -5,16 +7,16 @@
5
7
  .lu-picker-content {
6
8
  @extend %popover-content;
7
9
 
8
- max-height: 20rem;
10
+ max-block-size: 20rem;
9
11
  padding: var(--pr-t-spacings-50);
10
12
  overflow-y: auto;
11
13
  display: block;
12
14
  animation: scaleIn 150ms cubic-bezier(0.25, 0.8, 0.25, 1);
13
- margin-left: calc(var(--pr-t-spacings-50) * -1);
14
- margin-right: calc(var(--pr-t-spacings-50) * -1);
15
+ margin-inline-start: calc(var(--pr-t-spacings-50) * -1);
16
+ margin-inline-end: calc(var(--pr-t-spacings-50) * -1);
15
17
 
16
18
  &.is-loading {
17
- //height: 17.5rem;
19
+ //block-size: 17.5rem;
18
20
  }
19
21
  }
20
22
 
@@ -31,17 +33,18 @@
31
33
  }
32
34
 
33
35
  .lu-picker-content-option-group {
34
- margin-bottom: var(--pr-t-spacings-50);
36
+ margin-block-end: var(--pr-t-spacings-50);
35
37
  }
36
38
 
37
39
  .lu-picker-content-option-group-title {
38
40
  font-size: var(--sizes-S-fontSize);
39
41
  line-height: var(--sizes-S-lineHeight);
40
42
  font-weight: 600;
41
- padding: var(--components-options-item-padding-vertical) var(--components-options-item-padding-horizontal);
43
+ padding-block: var(--components-options-item-padding-vertical);
44
+ padding-inline: var(--components-options-item-padding-horizontal);
42
45
  color: var(--palettes-neutral-600);
43
46
  position: sticky;
44
- top: 0;
47
+ inset-block-start: 0;
45
48
  background-color: var(--pr-t-elevation-surface-raised);
46
49
  z-index: 1;
47
50
  display: flex;
@@ -52,15 +55,16 @@
52
55
 
53
56
  .lu-picker-content-add {
54
57
  position: sticky;
55
- bottom: 0;
58
+ inset-block-end: 0;
56
59
  background-color: var(--palettes-neutral-0);
57
60
  box-shadow: var(--pr-t-elevation-shadow-overflow);
58
61
  padding: var(--pr-t-spacings-50);
59
- margin: 0 calc(var(--pr-t-spacings-50) * -1);
62
+ margin-block: 0;
63
+ margin-inline: calc(var(--pr-t-spacings-50) * -1);
60
64
  transform: translateY(var(--pr-t-spacings-50));
61
65
 
62
66
  .button {
63
- width: 100%;
67
+ inline-size: 100%;
64
68
  justify-content: left;
65
69
  }
66
70
  }
@@ -74,26 +78,25 @@
74
78
  .lu-picker-loading {
75
79
  // deprecated
76
80
  position: absolute;
77
- left: 50%;
78
- top: 50%;
81
+ inset-inline-start: 50%;
82
+ inset-block-start: 50%;
79
83
  transform: translateX(-50%) translateY(-50%);
80
84
  }
81
85
 
82
86
  .lu-picker-header {
83
87
  background-color: var(--pr-t-elevation-surface-raised);
84
88
  position: sticky;
85
- top: 0;
86
- left: 0;
87
- right: 0;
89
+ inset-block-start: 0;
90
+ inset-inline: 0;
88
91
  display: block;
89
92
  z-index: 1;
90
- margin-bottom: var(--pr-t-spacings-50);
93
+ margin-block-end: var(--pr-t-spacings-50);
91
94
  box-shadow: 0 -4px 0 var(--pr-t-spacings-100) var(--pr-t-elevation-surface-raised); // Avoid showing options list while scrolling due to header sticky potisionning
92
95
  }
93
96
 
94
97
  .lu-picker-textfield {
95
- width: 100%;
96
- padding-bottom: var(--pr-t-spacings-100);
98
+ inline-size: 100%;
99
+ padding-block-end: var(--pr-t-spacings-100);
97
100
 
98
101
  .textfield-input {
99
102
  background-color: var(--palettes-neutral-0);
@@ -104,18 +107,17 @@
104
107
  .lu-picker-footer {
105
108
  background-color: var(--pr-t-elevation-surface-raised);
106
109
  position: sticky;
107
- bottom: 0;
108
- left: 0;
109
- right: 0;
110
+ inset-block-end: 0;
111
+ inset-inline: 0;
110
112
  display: block;
111
113
  z-index: 1;
112
114
  }
113
115
 
114
116
  .lu-date-picker-panel {
115
- width: var(--components-calendar-width);
117
+ inline-size: var(--components-calendar-width);
116
118
 
117
119
  .lu-picker-content {
118
- max-height: none;
120
+ max-block-size: none;
119
121
  }
120
122
  }
121
123
 
@@ -1,7 +1,7 @@
1
1
  %popover-panel {
2
2
  display: flex;
3
3
  flex-direction: column;
4
- max-height: calc(100vh + 48px);
4
+ max-block-size: calc(100vh + 48px);
5
5
  position: relative;
6
6
 
7
7
  &.is-above {
@@ -54,5 +54,6 @@
54
54
  .lu-popover-content {
55
55
  @extend %popover-content;
56
56
 
57
- padding: var(--pr-t-spacings-100) var(--pr-t-spacings-150);
57
+ padding-block: var(--pr-t-spacings-100);
58
+ padding-inline: var(--pr-t-spacings-150);
58
59
  }