PageSourceSearch

https://ville-boisemont.fr/modules/contrib/webform/js/webform.element.inputmask.js?tlvj62

js ville-boisemont.fr collected 2026-09-25 08:21:59 UTC 2,111 bytes, 89 lines download raw bytes

1/**
2 * @file
3 * JavaScript behaviors for jquery.inputmask integration.
4 */
5
6(function ($, Drupal, once) {
7  // Revert: Set currency prefix to empty by default #2066.
8  // @see https://github.com/RobinHerbots/Inputmask/issues/2066
9  if (window.Inputmask) {
10    window.Inputmask.extendAliases({
11      currency: {
12        prefix: '$ ',
13        groupSeparator: ',',
14        alias: 'numeric',
15        placeholder: '0',
16        autoGroup: true,
17        digits: 2,
18        digitsOptional: false,
19        clearMaskOnLostFocus: false
20      },
21      currency_negative: {
22        prefix: '$ ',
23        groupSeparator: ',',
24        alias: 'numeric',
25        placeholder: '0',
26        autoGroup: true,
27        digits: 2,
28        digitsOptional: false,
29        clearMaskOnLostFocus: false
30      },
31      currency_positive_negative: {
32        prefix: '$ ',
33        groupSeparator: ',',
34        alias: 'numeric',
35        placeholder: '0',
36        autoGroup: true,
37        digits: 2,
38        digitsOptional: false,
39        clearMaskOnLostFocus: false
40      },
41      decimal: {
42        prefix: '',
43        groupSeparator: ',',
44        alias: 'numeric',
45        placeholder: '0',
46        autoGroup: true,
47        digits: 3,
48        digitsOptional: true,
49        clearMaskOnLostFocus: false
50      },
51      decimal_negative: {
52        prefix: '',
53        groupSeparator: ',',
54        alias: 'numeric',
55        placeholder: '0',
56        autoGroup: true,
57        digits: 3,
58        digitsOptional: true,
59        clearMaskOnLostFocus: false
60      },
61      decimal_positive_negative: {
62        prefix: '',
63        groupSeparator: ',',
64        alias: 'numeric',
65        placeholder: '0',
66        autoGroup: true,
67        digits: 3,
68        digitsOptional: true,
69        clearMaskOnLostFocus: false
70      }
71    });
72  }
73
74  /**
75   * Initialize input masks.
76   *
77   * @type {Drupal~behavior}
78   */
79  Drupal.behaviors.webformInputMask = {
80    attach(context) {
81      if (!$.fn.inputmask) {
82        return;
83      }
84
85      $(once('webform-input-mask', 'input.js-webform-input-mask', context)).inputmask();
86    }
87  };
88
89})(jQuery, Drupal, once);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.